mailcast 0.0.0-stage → 0.1.0
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/.next/BUILD_ID +1 -0
- package/.next/app-path-routes-manifest.json +63 -0
- package/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js +500 -0
- package/.next/build/chunks/[root-of-the-server]__05i36w1t4lzaf._.js.map +11 -0
- package/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js +189 -0
- package/.next/build/chunks/[root-of-the-server]__1kki86fknkq7y._.js.map +8 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js +13 -0
- package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_1gfkiq9iz8yb8._.js.map +5 -0
- package/.next/build/chunks/[turbopack]_runtime.js +1054 -0
- package/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
- package/.next/build/chunks/node_modules__pnpm_1e0eoiefxqbi6._.js +7265 -0
- package/.next/build/chunks/node_modules__pnpm_1e0eoiefxqbi6._.js.map +47 -0
- package/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js +6 -0
- package/.next/build/chunks/pool_entry-[turbopack-node]_transforms_postcss_ts_0tp-k2vy8nj6i._.js.map +5 -0
- package/.next/build/package.json +1 -0
- package/.next/build-manifest.json +223 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/diagnostics/route-bundle-stats.json +305 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +15 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +209 -0
- package/.next/required-server-files.js +370 -0
- package/.next/required-server-files.json +370 -0
- package/.next/routes-manifest.json +456 -0
- package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_global-error/page/build-manifest.json +22 -0
- package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_global-error/page.js +11 -0
- package/.next/server/app/_global-error/page.js.map +5 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +30 -0
- package/.next/server/app/_global-error.rsc +18 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +23 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +18 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -0
- package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_not-found/page/build-manifest.json +22 -0
- package/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_not-found/page.js +13 -0
- package/.next/server/app/_not-found/page.js.map +5 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +35 -0
- package/.next/server/app/_not-found.rsc +25 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +25 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +31 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/api/auth/login/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/auth/login/route/build-manifest.json +12 -0
- package/.next/server/app/api/auth/login/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/auth/login/route.js +10 -0
- package/.next/server/app/api/auth/login/route.js.map +5 -0
- package/.next/server/app/api/auth/login/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/login/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/auth/logout/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/auth/logout/route/build-manifest.json +12 -0
- package/.next/server/app/api/auth/logout/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/auth/logout/route.js +10 -0
- package/.next/server/app/api/auth/logout/route.js.map +5 -0
- package/.next/server/app/api/auth/logout/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/auth/session/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/auth/session/route/build-manifest.json +12 -0
- package/.next/server/app/api/auth/session/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/auth/session/route.js +10 -0
- package/.next/server/app/api/auth/session/route.js.map +5 -0
- package/.next/server/app/api/auth/session/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/session/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/auth/setup/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/auth/setup/route/build-manifest.json +12 -0
- package/.next/server/app/api/auth/setup/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/auth/setup/route.js +10 -0
- package/.next/server/app/api/auth/setup/route.js.map +5 -0
- package/.next/server/app/api/auth/setup/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/setup/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/campaigns/[id]/publish/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/campaigns/[id]/publish/route/build-manifest.json +12 -0
- package/.next/server/app/api/campaigns/[id]/publish/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/campaigns/[id]/publish/route.js +9 -0
- package/.next/server/app/api/campaigns/[id]/publish/route.js.map +5 -0
- package/.next/server/app/api/campaigns/[id]/publish/route.js.nft.json +1 -0
- package/.next/server/app/api/campaigns/[id]/publish/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/campaigns/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/campaigns/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/campaigns/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/campaigns/[id]/route.js +8 -0
- package/.next/server/app/api/campaigns/[id]/route.js.map +5 -0
- package/.next/server/app/api/campaigns/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/campaigns/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/campaigns/[id]/send/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/campaigns/[id]/send/route/build-manifest.json +12 -0
- package/.next/server/app/api/campaigns/[id]/send/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/campaigns/[id]/send/route.js +13 -0
- package/.next/server/app/api/campaigns/[id]/send/route.js.map +5 -0
- package/.next/server/app/api/campaigns/[id]/send/route.js.nft.json +1 -0
- package/.next/server/app/api/campaigns/[id]/send/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/campaigns/[id]/stats/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/campaigns/[id]/stats/route/build-manifest.json +12 -0
- package/.next/server/app/api/campaigns/[id]/stats/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/campaigns/[id]/stats/route.js +8 -0
- package/.next/server/app/api/campaigns/[id]/stats/route.js.map +5 -0
- package/.next/server/app/api/campaigns/[id]/stats/route.js.nft.json +1 -0
- package/.next/server/app/api/campaigns/[id]/stats/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/campaigns/all/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/campaigns/all/route/build-manifest.json +12 -0
- package/.next/server/app/api/campaigns/all/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/campaigns/all/route.js +8 -0
- package/.next/server/app/api/campaigns/all/route.js.map +5 -0
- package/.next/server/app/api/campaigns/all/route.js.nft.json +1 -0
- package/.next/server/app/api/campaigns/all/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/campaigns/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/campaigns/route/build-manifest.json +12 -0
- package/.next/server/app/api/campaigns/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/campaigns/route.js +9 -0
- package/.next/server/app/api/campaigns/route.js.map +5 -0
- package/.next/server/app/api/campaigns/route.js.nft.json +1 -0
- package/.next/server/app/api/campaigns/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/contacts/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/contacts/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/contacts/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/contacts/[id]/route.js +8 -0
- package/.next/server/app/api/contacts/[id]/route.js.map +5 -0
- package/.next/server/app/api/contacts/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/contacts/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/contacts/all/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/contacts/all/route/build-manifest.json +12 -0
- package/.next/server/app/api/contacts/all/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/contacts/all/route.js +8 -0
- package/.next/server/app/api/contacts/all/route.js.map +5 -0
- package/.next/server/app/api/contacts/all/route.js.nft.json +1 -0
- package/.next/server/app/api/contacts/all/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/contacts/import/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/contacts/import/route/build-manifest.json +12 -0
- package/.next/server/app/api/contacts/import/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/contacts/import/route.js +8 -0
- package/.next/server/app/api/contacts/import/route.js.map +5 -0
- package/.next/server/app/api/contacts/import/route.js.nft.json +1 -0
- package/.next/server/app/api/contacts/import/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/contacts/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/contacts/route/build-manifest.json +12 -0
- package/.next/server/app/api/contacts/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/contacts/route.js +8 -0
- package/.next/server/app/api/contacts/route.js.map +5 -0
- package/.next/server/app/api/contacts/route.js.nft.json +1 -0
- package/.next/server/app/api/contacts/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/cron/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/cron/route/build-manifest.json +12 -0
- package/.next/server/app/api/cron/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/cron/route.js +15 -0
- package/.next/server/app/api/cron/route.js.map +5 -0
- package/.next/server/app/api/cron/route.js.nft.json +1 -0
- package/.next/server/app/api/cron/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/forms/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/forms/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/forms/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/forms/[id]/route.js +9 -0
- package/.next/server/app/api/forms/[id]/route.js.map +5 -0
- package/.next/server/app/api/forms/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/forms/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/forms/[id]/submissions/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/forms/[id]/submissions/route/build-manifest.json +12 -0
- package/.next/server/app/api/forms/[id]/submissions/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/forms/[id]/submissions/route.js +8 -0
- package/.next/server/app/api/forms/[id]/submissions/route.js.map +5 -0
- package/.next/server/app/api/forms/[id]/submissions/route.js.nft.json +1 -0
- package/.next/server/app/api/forms/[id]/submissions/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/forms/[id]/submit/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/forms/[id]/submit/route/build-manifest.json +12 -0
- package/.next/server/app/api/forms/[id]/submit/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/forms/[id]/submit/route.js +17 -0
- package/.next/server/app/api/forms/[id]/submit/route.js.map +5 -0
- package/.next/server/app/api/forms/[id]/submit/route.js.nft.json +1 -0
- package/.next/server/app/api/forms/[id]/submit/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/forms/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/forms/route/build-manifest.json +12 -0
- package/.next/server/app/api/forms/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/forms/route.js +9 -0
- package/.next/server/app/api/forms/route.js.map +5 -0
- package/.next/server/app/api/forms/route.js.nft.json +1 -0
- package/.next/server/app/api/forms/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/forms/templates/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/forms/templates/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/forms/templates/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/forms/templates/[id]/route.js +8 -0
- package/.next/server/app/api/forms/templates/[id]/route.js.map +5 -0
- package/.next/server/app/api/forms/templates/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/forms/templates/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/forms/templates/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/forms/templates/route/build-manifest.json +12 -0
- package/.next/server/app/api/forms/templates/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/forms/templates/route.js +9 -0
- package/.next/server/app/api/forms/templates/route.js.map +5 -0
- package/.next/server/app/api/forms/templates/route.js.nft.json +1 -0
- package/.next/server/app/api/forms/templates/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/groups/[id]/contacts/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/groups/[id]/contacts/route/build-manifest.json +12 -0
- package/.next/server/app/api/groups/[id]/contacts/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/groups/[id]/contacts/route.js +8 -0
- package/.next/server/app/api/groups/[id]/contacts/route.js.map +5 -0
- package/.next/server/app/api/groups/[id]/contacts/route.js.nft.json +1 -0
- package/.next/server/app/api/groups/[id]/contacts/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/groups/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/groups/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/groups/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/groups/[id]/route.js +8 -0
- package/.next/server/app/api/groups/[id]/route.js.map +5 -0
- package/.next/server/app/api/groups/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/groups/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/groups/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/groups/route/build-manifest.json +12 -0
- package/.next/server/app/api/groups/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/groups/route.js +8 -0
- package/.next/server/app/api/groups/route.js.map +5 -0
- package/.next/server/app/api/groups/route.js.nft.json +1 -0
- package/.next/server/app/api/groups/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/media/[name]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/media/[name]/route/build-manifest.json +12 -0
- package/.next/server/app/api/media/[name]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/media/[name]/route.js +8 -0
- package/.next/server/app/api/media/[name]/route.js.map +5 -0
- package/.next/server/app/api/media/[name]/route.js.nft.json +1 -0
- package/.next/server/app/api/media/[name]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/media/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/media/route/build-manifest.json +12 -0
- package/.next/server/app/api/media/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/media/route.js +8 -0
- package/.next/server/app/api/media/route.js.map +5 -0
- package/.next/server/app/api/media/route.js.nft.json +1 -0
- package/.next/server/app/api/media/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/public/forms/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/public/forms/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/public/forms/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/public/forms/[id]/route.js +17 -0
- package/.next/server/app/api/public/forms/[id]/route.js.map +5 -0
- package/.next/server/app/api/public/forms/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/public/forms/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/public/posts/[slug]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/public/posts/[slug]/route/build-manifest.json +12 -0
- package/.next/server/app/api/public/posts/[slug]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/public/posts/[slug]/route.js +9 -0
- package/.next/server/app/api/public/posts/[slug]/route.js.map +5 -0
- package/.next/server/app/api/public/posts/[slug]/route.js.nft.json +1 -0
- package/.next/server/app/api/public/posts/[slug]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/public/posts/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/public/posts/route/build-manifest.json +12 -0
- package/.next/server/app/api/public/posts/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/public/posts/route.js +8 -0
- package/.next/server/app/api/public/posts/route.js.map +5 -0
- package/.next/server/app/api/public/posts/route.js.nft.json +1 -0
- package/.next/server/app/api/public/posts/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/public/unsubscribe/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/public/unsubscribe/route/build-manifest.json +12 -0
- package/.next/server/app/api/public/unsubscribe/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/public/unsubscribe/route.js +9 -0
- package/.next/server/app/api/public/unsubscribe/route.js.map +5 -0
- package/.next/server/app/api/public/unsubscribe/route.js.nft.json +1 -0
- package/.next/server/app/api/public/unsubscribe/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/route/build-manifest.json +12 -0
- package/.next/server/app/api/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/route.js +7 -0
- package/.next/server/app/api/route.js.map +5 -0
- package/.next/server/app/api/route.js.nft.json +1 -0
- package/.next/server/app/api/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/senders/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/senders/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/senders/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/senders/[id]/route.js +8 -0
- package/.next/server/app/api/senders/[id]/route.js.map +5 -0
- package/.next/server/app/api/senders/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/senders/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/senders/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/senders/route/build-manifest.json +12 -0
- package/.next/server/app/api/senders/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/senders/route.js +11 -0
- package/.next/server/app/api/senders/route.js.map +5 -0
- package/.next/server/app/api/senders/route.js.nft.json +1 -0
- package/.next/server/app/api/senders/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/settings/telegram/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/settings/telegram/route/build-manifest.json +12 -0
- package/.next/server/app/api/settings/telegram/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/settings/telegram/route.js +9 -0
- package/.next/server/app/api/settings/telegram/route.js.map +5 -0
- package/.next/server/app/api/settings/telegram/route.js.nft.json +1 -0
- package/.next/server/app/api/settings/telegram/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/settings/telegram/stats/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/settings/telegram/stats/route/build-manifest.json +12 -0
- package/.next/server/app/api/settings/telegram/stats/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/settings/telegram/stats/route.js +8 -0
- package/.next/server/app/api/settings/telegram/stats/route.js.map +5 -0
- package/.next/server/app/api/settings/telegram/stats/route.js.nft.json +1 -0
- package/.next/server/app/api/settings/telegram/stats/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/stats/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/stats/route/build-manifest.json +12 -0
- package/.next/server/app/api/stats/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/stats/route.js +8 -0
- package/.next/server/app/api/stats/route.js.map +5 -0
- package/.next/server/app/api/stats/route.js.nft.json +1 -0
- package/.next/server/app/api/stats/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/t/[token]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/t/[token]/route/build-manifest.json +12 -0
- package/.next/server/app/api/t/[token]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/t/[token]/route.js +8 -0
- package/.next/server/app/api/t/[token]/route.js.map +5 -0
- package/.next/server/app/api/t/[token]/route.js.nft.json +1 -0
- package/.next/server/app/api/t/[token]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/templates/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/templates/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/templates/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/templates/[id]/route.js +8 -0
- package/.next/server/app/api/templates/[id]/route.js.map +5 -0
- package/.next/server/app/api/templates/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/templates/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/templates/route/build-manifest.json +12 -0
- package/.next/server/app/api/templates/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/templates/route.js +8 -0
- package/.next/server/app/api/templates/route.js.map +5 -0
- package/.next/server/app/api/templates/route.js.nft.json +1 -0
- package/.next/server/app/api/templates/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/workflows/[id]/enroll/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/workflows/[id]/enroll/route/build-manifest.json +12 -0
- package/.next/server/app/api/workflows/[id]/enroll/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/workflows/[id]/enroll/route.js +15 -0
- package/.next/server/app/api/workflows/[id]/enroll/route.js.map +5 -0
- package/.next/server/app/api/workflows/[id]/enroll/route.js.nft.json +1 -0
- package/.next/server/app/api/workflows/[id]/enroll/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/workflows/[id]/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/workflows/[id]/route/build-manifest.json +12 -0
- package/.next/server/app/api/workflows/[id]/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/workflows/[id]/route.js +8 -0
- package/.next/server/app/api/workflows/[id]/route.js.map +5 -0
- package/.next/server/app/api/workflows/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/workflows/[id]/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/workflows/[id]/run/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/workflows/[id]/run/route/build-manifest.json +12 -0
- package/.next/server/app/api/workflows/[id]/run/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/workflows/[id]/run/route.js +15 -0
- package/.next/server/app/api/workflows/[id]/run/route.js.map +5 -0
- package/.next/server/app/api/workflows/[id]/run/route.js.nft.json +1 -0
- package/.next/server/app/api/workflows/[id]/run/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/workflows/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/workflows/route/build-manifest.json +12 -0
- package/.next/server/app/api/workflows/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/workflows/route.js +8 -0
- package/.next/server/app/api/workflows/route.js.map +5 -0
- package/.next/server/app/api/workflows/route.js.nft.json +1 -0
- package/.next/server/app/api/workflows/route_client-reference-manifest.js +3 -0
- package/.next/server/app/blog/[slug]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/blog/[slug]/page/build-manifest.json +22 -0
- package/.next/server/app/blog/[slug]/page/next-font-manifest.json +6 -0
- package/.next/server/app/blog/[slug]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/blog/[slug]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/blog/[slug]/page.js +19 -0
- package/.next/server/app/blog/[slug]/page.js.map +5 -0
- package/.next/server/app/blog/[slug]/page.js.nft.json +1 -0
- package/.next/server/app/blog/[slug]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/blog/page/app-paths-manifest.json +3 -0
- package/.next/server/app/blog/page/build-manifest.json +22 -0
- package/.next/server/app/blog/page/next-font-manifest.json +6 -0
- package/.next/server/app/blog/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/blog/page/server-reference-manifest.json +4 -0
- package/.next/server/app/blog/page.js +16 -0
- package/.next/server/app/blog/page.js.map +5 -0
- package/.next/server/app/blog/page.js.nft.json +1 -0
- package/.next/server/app/blog/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/automations/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/automations/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/automations/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/automations/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/automations/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/automations/page.js +18 -0
- package/.next/server/app/dashboard/automations/page.js.map +5 -0
- package/.next/server/app/dashboard/automations/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/automations/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/campaigns/[id]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/campaigns/[id]/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/campaigns/[id]/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/campaigns/[id]/page/react-loadable-manifest.json +10 -0
- package/.next/server/app/dashboard/campaigns/[id]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/campaigns/[id]/page.js +18 -0
- package/.next/server/app/dashboard/campaigns/[id]/page.js.map +5 -0
- package/.next/server/app/dashboard/campaigns/[id]/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/campaigns/[id]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/campaigns/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/campaigns/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/campaigns/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/campaigns/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/campaigns/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/campaigns/page.js +18 -0
- package/.next/server/app/dashboard/campaigns/page.js.map +5 -0
- package/.next/server/app/dashboard/campaigns/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/campaigns/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/contacts/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/contacts/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/contacts/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/contacts/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/contacts/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/contacts/page.js +18 -0
- package/.next/server/app/dashboard/contacts/page.js.map +5 -0
- package/.next/server/app/dashboard/contacts/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/contacts/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/forms/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/forms/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/forms/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/forms/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/forms/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/forms/page.js +18 -0
- package/.next/server/app/dashboard/forms/page.js.map +5 -0
- package/.next/server/app/dashboard/forms/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/forms/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/media/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/media/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/media/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/media/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/media/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/media/page.js +18 -0
- package/.next/server/app/dashboard/media/page.js.map +5 -0
- package/.next/server/app/dashboard/media/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/media/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/page.js +18 -0
- package/.next/server/app/dashboard/page.js.map +5 -0
- package/.next/server/app/dashboard/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/senders/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/senders/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/senders/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/senders/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/senders/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/senders/page.js +18 -0
- package/.next/server/app/dashboard/senders/page.js.map +5 -0
- package/.next/server/app/dashboard/senders/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/senders/page_client-reference-manifest.js +3 -0
- package/.next/server/app/dashboard/settings/page/app-paths-manifest.json +3 -0
- package/.next/server/app/dashboard/settings/page/build-manifest.json +22 -0
- package/.next/server/app/dashboard/settings/page/next-font-manifest.json +6 -0
- package/.next/server/app/dashboard/settings/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/dashboard/settings/page/server-reference-manifest.json +4 -0
- package/.next/server/app/dashboard/settings/page.js +18 -0
- package/.next/server/app/dashboard/settings/page.js.map +5 -0
- package/.next/server/app/dashboard/settings/page.js.nft.json +1 -0
- package/.next/server/app/dashboard/settings/page_client-reference-manifest.js +3 -0
- package/.next/server/app/doc/page/app-paths-manifest.json +3 -0
- package/.next/server/app/doc/page/build-manifest.json +22 -0
- package/.next/server/app/doc/page/next-font-manifest.json +6 -0
- package/.next/server/app/doc/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/doc/page/server-reference-manifest.json +4 -0
- package/.next/server/app/doc/page.js +16 -0
- package/.next/server/app/doc/page.js.map +5 -0
- package/.next/server/app/doc/page.js.nft.json +1 -0
- package/.next/server/app/doc/page_client-reference-manifest.js +3 -0
- package/.next/server/app/doc.html +1 -0
- package/.next/server/app/doc.meta +36 -0
- package/.next/server/app/doc.rsc +26 -0
- package/.next/server/app/doc.segments/_full.segment.rsc +26 -0
- package/.next/server/app/doc.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/doc.segments/doc/__PAGE__.segment.rsc +32 -0
- package/.next/server/app/documentation/page/app-paths-manifest.json +3 -0
- package/.next/server/app/documentation/page/build-manifest.json +22 -0
- package/.next/server/app/documentation/page/next-font-manifest.json +6 -0
- package/.next/server/app/documentation/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/documentation/page/server-reference-manifest.json +4 -0
- package/.next/server/app/documentation/page.js +16 -0
- package/.next/server/app/documentation/page.js.map +5 -0
- package/.next/server/app/documentation/page.js.nft.json +1 -0
- package/.next/server/app/documentation/page_client-reference-manifest.js +3 -0
- package/.next/server/app/documentation.html +1 -0
- package/.next/server/app/documentation.meta +36 -0
- package/.next/server/app/documentation.rsc +26 -0
- package/.next/server/app/documentation.segments/_full.segment.rsc +26 -0
- package/.next/server/app/documentation.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/documentation.segments/documentation/__PAGE__.segment.rsc +32 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +29 -0
- package/.next/server/app/index.rsc +26 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +31 -0
- package/.next/server/app/index.segments/_full.segment.rsc +26 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +3 -0
- package/.next/server/app/login/page/app-paths-manifest.json +3 -0
- package/.next/server/app/login/page/build-manifest.json +22 -0
- package/.next/server/app/login/page/next-font-manifest.json +6 -0
- package/.next/server/app/login/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/login/page/server-reference-manifest.json +4 -0
- package/.next/server/app/login/page.js +14 -0
- package/.next/server/app/login/page.js.map +5 -0
- package/.next/server/app/login/page.js.nft.json +1 -0
- package/.next/server/app/login/page_client-reference-manifest.js +3 -0
- package/.next/server/app/login.html +1 -0
- package/.next/server/app/login.meta +34 -0
- package/.next/server/app/login.rsc +27 -0
- package/.next/server/app/login.segments/_full.segment.rsc +27 -0
- package/.next/server/app/login.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +33 -0
- package/.next/server/app/page/app-paths-manifest.json +3 -0
- package/.next/server/app/page/build-manifest.json +22 -0
- package/.next/server/app/page/next-font-manifest.json +6 -0
- package/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/page/server-reference-manifest.json +4 -0
- package/.next/server/app/page.js +14 -0
- package/.next/server/app/page.js.map +5 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +3 -0
- package/.next/server/app/unsubscribe/page/app-paths-manifest.json +3 -0
- package/.next/server/app/unsubscribe/page/build-manifest.json +22 -0
- package/.next/server/app/unsubscribe/page/next-font-manifest.json +6 -0
- package/.next/server/app/unsubscribe/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/unsubscribe/page/server-reference-manifest.json +4 -0
- package/.next/server/app/unsubscribe/page.js +14 -0
- package/.next/server/app/unsubscribe/page.js.map +5 -0
- package/.next/server/app/unsubscribe/page.js.nft.json +1 -0
- package/.next/server/app/unsubscribe/page_client-reference-manifest.js +3 -0
- package/.next/server/app/unsubscribe.html +1 -0
- package/.next/server/app/unsubscribe.meta +34 -0
- package/.next/server/app/unsubscribe.rsc +31 -0
- package/.next/server/app/unsubscribe.segments/_full.segment.rsc +31 -0
- package/.next/server/app/unsubscribe.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/unsubscribe.segments/unsubscribe/__PAGE__.segment.rsc +37 -0
- package/.next/server/app-paths-manifest.json +63 -0
- package/.next/server/chunks/06xu_next_dist_esm_build_templates_app-route_0rhnea3oufq9j.js +3 -0
- package/.next/server/chunks/06xu_next_dist_esm_build_templates_app-route_0rhnea3oufq9j.js.map +1 -0
- package/.next/server/chunks/14u8_jose_dist_webapi_jwt_sign_0e9dnv3w_dkc3.js +3 -0
- package/.next/server/chunks/14u8_jose_dist_webapi_jwt_sign_0e9dnv3w_dkc3.js.map +1 -0
- package/.next/server/chunks/1oeh_server_app_api_settings_telegram_stats_route_actions_0y5ocpob4bzxr.js +3 -0
- package/.next/server/chunks/1oeh_server_app_api_settings_telegram_stats_route_actions_0y5ocpob4bzxr.js.map +1 -0
- package/.next/server/chunks/[externals]__15ba62yk88w55._.js +3 -0
- package/.next/server/chunks/[externals]__15ba62yk88w55._.js.map +1 -0
- package/.next/server/chunks/[externals]__1da-de2642zdu._.js +3 -0
- package/.next/server/chunks/[externals]__1da-de2642zdu._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__00t3s_fd941rt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__00t3s_fd941rt._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__07pbetxujjj00._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__07pbetxujjj00._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0a6x-tjsjctmn._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0a6x-tjsjctmn._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0bg8pg0fpimav._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0bg8pg0fpimav._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0e93ko_-d32s0._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0e93ko_-d32s0._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0m07o9851_xfr._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0m07o9851_xfr._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0mswm6179vwl1._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0mswm6179vwl1._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0mz1nms56oghw._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0mz1nms56oghw._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0rtfqbe0ob35m._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0rtfqbe0ob35m._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__153ayjbkba0bf._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__153ayjbkba0bf._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1ap2hmo6cbsb3._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ap2hmo6cbsb3._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1em5dex851pk2._.js +63 -0
- package/.next/server/chunks/[root-of-the-server]__1em5dex851pk2._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1llxcp69_fvli._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1llxcp69_fvli._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1oipwj090n6_7._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1oipwj090n6_7._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1zybyzpuf50yc._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1zybyzpuf50yc._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__20eb2dgpl3qoj._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__20eb2dgpl3qoj._.js.map +1 -0
- package/.next/server/chunks/[turbopack]_runtime.js +935 -0
- package/.next/server/chunks/[turbopack]_runtime.js.map +10 -0
- package/.next/server/chunks/_016pksr_tokt8._.js +3 -0
- package/.next/server/chunks/_016pksr_tokt8._.js.map +1 -0
- package/.next/server/chunks/_01htjrztdn3g5._.js +3 -0
- package/.next/server/chunks/_01htjrztdn3g5._.js.map +1 -0
- package/.next/server/chunks/_01n_eoupdy17l._.js +3 -0
- package/.next/server/chunks/_01n_eoupdy17l._.js.map +1 -0
- package/.next/server/chunks/_03yxncv3hk3vr._.js +3 -0
- package/.next/server/chunks/_03yxncv3hk3vr._.js.map +1 -0
- package/.next/server/chunks/_040a09tcfi6x9._.js +3 -0
- package/.next/server/chunks/_040a09tcfi6x9._.js.map +1 -0
- package/.next/server/chunks/_04_9nfa-lxjd9._.js +3 -0
- package/.next/server/chunks/_04_9nfa-lxjd9._.js.map +1 -0
- package/.next/server/chunks/_04bjifcoxwu5o._.js +3 -0
- package/.next/server/chunks/_04bjifcoxwu5o._.js.map +1 -0
- package/.next/server/chunks/_07u19kpttm6vp._.js +3 -0
- package/.next/server/chunks/_07u19kpttm6vp._.js.map +1 -0
- package/.next/server/chunks/_09-td-68cdtha._.js +3 -0
- package/.next/server/chunks/_09-td-68cdtha._.js.map +1 -0
- package/.next/server/chunks/_09r_gh4zqv3wl._.js +3 -0
- package/.next/server/chunks/_09r_gh4zqv3wl._.js.map +1 -0
- package/.next/server/chunks/_0_-vw5kg2iooe._.js +3 -0
- package/.next/server/chunks/_0_-vw5kg2iooe._.js.map +1 -0
- package/.next/server/chunks/_0fyvad-iex4-9._.js +3 -0
- package/.next/server/chunks/_0fyvad-iex4-9._.js.map +1 -0
- package/.next/server/chunks/_0h--d0xv_53cr._.js +3 -0
- package/.next/server/chunks/_0h--d0xv_53cr._.js.map +1 -0
- package/.next/server/chunks/_0ih52_m6zdv66._.js +3 -0
- package/.next/server/chunks/_0ih52_m6zdv66._.js.map +1 -0
- package/.next/server/chunks/_0ioztrwebatxi._.js +3 -0
- package/.next/server/chunks/_0ioztrwebatxi._.js.map +1 -0
- package/.next/server/chunks/_0mf3thpvi2w9-._.js +3 -0
- package/.next/server/chunks/_0mf3thpvi2w9-._.js.map +1 -0
- package/.next/server/chunks/_0mxirr5hu7uvj._.js +3 -0
- package/.next/server/chunks/_0mxirr5hu7uvj._.js.map +1 -0
- package/.next/server/chunks/_0p2s1sp75f_j9._.js +3 -0
- package/.next/server/chunks/_0p2s1sp75f_j9._.js.map +1 -0
- package/.next/server/chunks/_0q47xwx7d_6ra._.js +3 -0
- package/.next/server/chunks/_0q47xwx7d_6ra._.js.map +1 -0
- package/.next/server/chunks/_0r4rhsoq7d2hp._.js +3 -0
- package/.next/server/chunks/_0r4rhsoq7d2hp._.js.map +1 -0
- package/.next/server/chunks/_0t_kwe5a4tov4._.js +3 -0
- package/.next/server/chunks/_0t_kwe5a4tov4._.js.map +1 -0
- package/.next/server/chunks/_0tx_colipxkxn._.js +3 -0
- package/.next/server/chunks/_0tx_colipxkxn._.js.map +1 -0
- package/.next/server/chunks/_0vpnhlc3j1p06._.js +3 -0
- package/.next/server/chunks/_0vpnhlc3j1p06._.js.map +1 -0
- package/.next/server/chunks/_1-ti64gr5yz18._.js +3 -0
- package/.next/server/chunks/_1-ti64gr5yz18._.js.map +1 -0
- package/.next/server/chunks/_1-xxzx1khwzji._.js +3 -0
- package/.next/server/chunks/_1-xxzx1khwzji._.js.map +1 -0
- package/.next/server/chunks/_18qgmv1t3_d91._.js +3 -0
- package/.next/server/chunks/_18qgmv1t3_d91._.js.map +1 -0
- package/.next/server/chunks/_18rxxnsk2a6wq._.js +3 -0
- package/.next/server/chunks/_18rxxnsk2a6wq._.js.map +1 -0
- package/.next/server/chunks/_1cwegmbbn2hju._.js +3 -0
- package/.next/server/chunks/_1cwegmbbn2hju._.js.map +1 -0
- package/.next/server/chunks/_1f94wdko3-7rw._.js +3 -0
- package/.next/server/chunks/_1f94wdko3-7rw._.js.map +1 -0
- package/.next/server/chunks/_1gp6hcs1274ln._.js +3 -0
- package/.next/server/chunks/_1gp6hcs1274ln._.js.map +1 -0
- package/.next/server/chunks/_1h445ssbyo_y5._.js +3 -0
- package/.next/server/chunks/_1h445ssbyo_y5._.js.map +1 -0
- package/.next/server/chunks/_1h6whc3etiive._.js +3 -0
- package/.next/server/chunks/_1h6whc3etiive._.js.map +1 -0
- package/.next/server/chunks/_1iji2r4-sk-we._.js +3 -0
- package/.next/server/chunks/_1iji2r4-sk-we._.js.map +1 -0
- package/.next/server/chunks/_1k4vlrzpby6a_._.js +3 -0
- package/.next/server/chunks/_1k4vlrzpby6a_._.js.map +1 -0
- package/.next/server/chunks/_1lv9rcsvu5f_o._.js +3 -0
- package/.next/server/chunks/_1lv9rcsvu5f_o._.js.map +1 -0
- package/.next/server/chunks/_1mz0a5he7e22i._.js +3 -0
- package/.next/server/chunks/_1mz0a5he7e22i._.js.map +1 -0
- package/.next/server/chunks/_1o0ng4bsm4gyq._.js +3 -0
- package/.next/server/chunks/_1o0ng4bsm4gyq._.js.map +1 -0
- package/.next/server/chunks/_1o2yk6-lm2_f5._.js +3 -0
- package/.next/server/chunks/_1o2yk6-lm2_f5._.js.map +1 -0
- package/.next/server/chunks/_1qu9xleffmuhh._.js +3 -0
- package/.next/server/chunks/_1qu9xleffmuhh._.js.map +1 -0
- package/.next/server/chunks/_1sma8mtgsvlrb._.js +3 -0
- package/.next/server/chunks/_1sma8mtgsvlrb._.js.map +1 -0
- package/.next/server/chunks/_1uilkda5rycrk._.js +3 -0
- package/.next/server/chunks/_1uilkda5rycrk._.js.map +1 -0
- package/.next/server/chunks/_1vclmxko_5xe0._.js +3 -0
- package/.next/server/chunks/_1vclmxko_5xe0._.js.map +1 -0
- package/.next/server/chunks/_1y1s5uiktpy3o._.js +3 -0
- package/.next/server/chunks/_1y1s5uiktpy3o._.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_login_route_actions_1ox7zi0683rx3.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_login_route_actions_1ox7zi0683rx3.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_logout_route_actions_0regwyrnie28t.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_logout_route_actions_0regwyrnie28t.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_session_route_actions_0-ylu5i7oqlzd.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_session_route_actions_0-ylu5i7oqlzd.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_setup_route_actions_14j5aonxk6m_0.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_auth_setup_route_actions_14j5aonxk6m_0.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_publish_route_actions_09311-fzm8pgf.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_publish_route_actions_09311-fzm8pgf.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_route_actions_1a0zhdfdyla42.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_route_actions_1a0zhdfdyla42.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_send_route_actions_1av8d5nb-ear4.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_send_route_actions_1av8d5nb-ear4.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_stats_route_actions_06bh5t647rne9.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_[id]_stats_route_actions_06bh5t647rne9.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_all_route_actions_0vv-2ofeydk_2.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_all_route_actions_0vv-2ofeydk_2.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_route_actions_1z1l7o3vmwi8j.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_campaigns_route_actions_1z1l7o3vmwi8j.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_[id]_route_actions_0edp9gto9mrwd.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_[id]_route_actions_0edp9gto9mrwd.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_all_route_actions_1kp0fjcv5w1lz.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_all_route_actions_1kp0fjcv5w1lz.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_import_route_actions_1u0x5u848vtkc.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_import_route_actions_1u0x5u848vtkc.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_route_actions_1bx4umbpbb4es.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_contacts_route_actions_1bx4umbpbb4es.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_cron_route_actions_0hfzp9ksvuhv8.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_cron_route_actions_0hfzp9ksvuhv8.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_route_actions_1zn9c6hm712n_.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_route_actions_1zn9c6hm712n_.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submissions_route_actions_0npj-livx0neo.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submissions_route_actions_0npj-livx0neo.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submit_route_actions_1p_av2ya-hn__.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_[id]_submit_route_actions_1p_av2ya-hn__.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_route_actions_0wx1h14s4xiqj.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_route_actions_0wx1h14s4xiqj.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_templates_[id]_route_actions_1tjt-yf1ufx4t.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_templates_[id]_route_actions_1tjt-yf1ufx4t.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_templates_route_actions_0jx0yyx-a9e8a.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_forms_templates_route_actions_0jx0yyx-a9e8a.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_contacts_route_actions_16zvoezq09gzs.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_contacts_route_actions_16zvoezq09gzs.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_route_actions_1a972-ku-88li.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_groups_[id]_route_actions_1a972-ku-88li.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_groups_route_actions_1g3bvao_xtom7.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_groups_route_actions_1g3bvao_xtom7.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_media_[name]_route_actions_1x1oymi5s9e43.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_media_[name]_route_actions_1x1oymi5s9e43.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_media_route_actions_08_28_1c7w9t_.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_media_route_actions_08_28_1c7w9t_.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_forms_[id]_route_actions_0qjba17y_8y2z.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_forms_[id]_route_actions_0qjba17y_8y2z.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_posts_[slug]_route_actions_0s-2m-qbt3a4g.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_posts_[slug]_route_actions_0s-2m-qbt3a4g.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_posts_route_actions_1coxdlltzg2ec.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_posts_route_actions_1coxdlltzg2ec.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_unsubscribe_route_actions_04pb699mm7zhs.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_public_unsubscribe_route_actions_04pb699mm7zhs.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_route_actions_1spy6egqqw5nf.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_route_actions_1spy6egqqw5nf.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_senders_[id]_route_actions_1acuhlzaull6v.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_senders_[id]_route_actions_1acuhlzaull6v.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_senders_route_actions_0hbw-3u122an8.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_senders_route_actions_0hbw-3u122an8.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_settings_telegram_route_actions_1ecznfq0kf4oi.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_settings_telegram_route_actions_1ecznfq0kf4oi.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_stats_route_actions_0o9u2yifvs5i8.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_stats_route_actions_0o9u2yifvs5i8.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_t_[token]_route_actions_1h2u1jcimhu0m.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_t_[token]_route_actions_1h2u1jcimhu0m.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_templates_[id]_route_actions_0w75q6vjtgysm.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_templates_[id]_route_actions_0w75q6vjtgysm.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_templates_route_actions_1c0yqgfnurom3.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_templates_route_actions_1c0yqgfnurom3.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_enroll_route_actions_1t3actfkyjz50.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_enroll_route_actions_1t3actfkyjz50.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_route_actions_0hdifc39l0kzl.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_route_actions_0hdifc39l0kzl.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_run_route_actions_0a0iqptu82a4a.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_[id]_run_route_actions_0a0iqptu82a4a.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_route_actions_1-qmgyxvh5cwy.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_workflows_route_actions_1-qmgyxvh5cwy.js.map +1 -0
- package/.next/server/chunks/src_0x0k1ybx0poim._.js +3 -0
- package/.next/server/chunks/src_0x0k1ybx0poim._.js.map +1 -0
- package/.next/server/chunks/src_app_api_forms_[id]_submit_route_ts_1nivtdhvc93f6._.js +23 -0
- package/.next/server/chunks/src_app_api_forms_[id]_submit_route_ts_1nivtdhvc93f6._.js.map +1 -0
- package/.next/server/chunks/src_lib_automation_ts_0gl7ssziqm14z._.js +149 -0
- package/.next/server/chunks/src_lib_automation_ts_0gl7ssziqm14z._.js.map +1 -0
- package/.next/server/chunks/src_lib_automation_ts_1a34dych48thk._.js +3 -0
- package/.next/server/chunks/src_lib_automation_ts_1a34dych48thk._.js.map +1 -0
- package/.next/server/chunks/src_lib_automation_ts_207uuptnebs4l._.js +3 -0
- package/.next/server/chunks/src_lib_automation_ts_207uuptnebs4l._.js.map +1 -0
- package/.next/server/chunks/src_lib_db_ts_12rrbm4_je1ts._.js +3 -0
- package/.next/server/chunks/src_lib_db_ts_12rrbm4_je1ts._.js.map +1 -0
- package/.next/server/chunks/src_lib_email-template_ts_10pfim6kqnxua._.js +126 -0
- package/.next/server/chunks/src_lib_email-template_ts_10pfim6kqnxua._.js.map +1 -0
- package/.next/server/chunks/src_lib_form-builder_ts_1cp0xz7mqn56d._.js +3 -0
- package/.next/server/chunks/src_lib_form-builder_ts_1cp0xz7mqn56d._.js.map +1 -0
- package/.next/server/chunks/src_lib_gmail_ts_1s2ltf6xpps8u._.js +3 -0
- package/.next/server/chunks/src_lib_gmail_ts_1s2ltf6xpps8u._.js.map +1 -0
- package/.next/server/chunks/src_lib_supabase-storage_ts_1dfw8x9k0tgmv._.js +26 -0
- package/.next/server/chunks/src_lib_supabase-storage_ts_1dfw8x9k0tgmv._.js.map +1 -0
- package/.next/server/chunks/src_lib_telegram_ts_0ysg2aj42jeux._.js +3 -0
- package/.next/server/chunks/src_lib_telegram_ts_0ysg2aj42jeux._.js.map +1 -0
- package/.next/server/chunks/ssr/02c-_@radix-ui_react-dialog_dist_index_mjs_00ymwmtf3k3mw._.js +3 -0
- package/.next/server/chunks/ssr/02c-_@radix-ui_react-dialog_dist_index_mjs_00ymwmtf3k3mw._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_0r9zyafjirm2h._.js +32 -0
- package/.next/server/chunks/ssr/06xu_next_0r9zyafjirm2h._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0-pwksyiyjqj6._.js +6 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0-pwksyiyjqj6._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0_wf08lquq9u4._.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0_wf08lquq9u4._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0lnz__th3f5zr._.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0lnz__th3f5zr._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0q5i7q4kqow99._.js +23 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0q5i7q4kqow99._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0yftpqcu15_jh._.js +32 -0
- package/.next/server/chunks/ssr/06xu_next_dist_0yftpqcu15_jh._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_1ysb4fqlnpjfg._.js +32 -0
- package/.next/server/chunks/ssr/06xu_next_dist_1ysb4fqlnpjfg._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_0qj_uk660e2yb._.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_0qj_uk660e2yb._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_15i6o-11_85p_._.js +33 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_15i6o-11_85p_._.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_forbidden_1vceoosdyq6ip.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_forbidden_1vceoosdyq6ip.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_global-error_1p7ftpe87ygv1.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_global-error_1p7ftpe87ygv1.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_unauthorized_002xbraemrk92.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_client_components_builtin_unauthorized_002xbraemrk92.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_compiled_@edge-runtime_cookies_index_0ieglv5lnsyri.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_compiled_@edge-runtime_cookies_index_0ieglv5lnsyri.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0-vqyq0vovi_i.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0-vqyq0vovi_i.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_02v5nrvtk32c6.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_02v5nrvtk32c6.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_03qrcs7au7ivq.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_03qrcs7au7ivq.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_045x_qclmi4m8.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_045x_qclmi4m8.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0_t0dbl5dozbx.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0_t0dbl5dozbx.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0c_t0os-4cbs3.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0c_t0os-4cbs3.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0h0emnvw_w9hz.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0h0emnvw_w9hz.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0hf32whzcuz52.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0hf32whzcuz52.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0jnsbu-6ck6mc.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0jnsbu-6ck6mc.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0o-vhcup-3b3z.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_0o-vhcup-3b3z.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_11l8elffx5v39.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_11l8elffx5v39.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_13788nvenj_0p.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_13788nvenj_0p.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_16f4zm9x692nw.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_16f4zm9x692nw.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1bootgt-epvt6.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1bootgt-epvt6.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1l1dlajssgq1c.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1l1dlajssgq1c.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1rlfqzolbd21n.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1rlfqzolbd21n.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1vxqj6-npabju.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_1vxqj6-npabju.js.map +1 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_20n28cdchbrpp.js +3 -0
- package/.next/server/chunks/ssr/06xu_next_dist_esm_build_templates_app-page_20n28cdchbrpp.js.map +1 -0
- package/.next/server/chunks/ssr/1l0a_@radix-ui_react-collection_dist_index_mjs_0rxx5d5lmo6u4._.js +3 -0
- package/.next/server/chunks/ssr/1l0a_@radix-ui_react-collection_dist_index_mjs_0rxx5d5lmo6u4._.js.map +1 -0
- package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_flask-conical_1vs3jvn162eqg.js +3 -0
- package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_flask-conical_1vs3jvn162eqg.js.map +1 -0
- package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_globe_0jwul3h6rwm1l.js +3 -0
- package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_globe_0jwul3h6rwm1l.js.map +1 -0
- package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_menu_1jtgq-_6gw2ad.js +3 -0
- package/.next/server/chunks/ssr/1saf_lucide-react_dist_esm_icons_menu_1jtgq-_6gw2ad.js.map +1 -0
- package/.next/server/chunks/ssr/21ai_sonner_dist_index_mjs_0lemus0y9eb08._.js +3 -0
- package/.next/server/chunks/ssr/21ai_sonner_dist_index_mjs_0lemus0y9eb08._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__01mn3kop4h9ln._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__01mn3kop4h9ln._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__02jgmnf51m_bw._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__02jgmnf51m_bw._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__04f9g0ord6h_z._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__04f9g0ord6h_z._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06666h874g5hp._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06666h874g5hp._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__07me011e7ku2k._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__07me011e7ku2k._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__07pj5lrkqzifr._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__07pj5lrkqzifr._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0dri3jnl96cro._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0dri3jnl96cro._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0e6ie8f1lflit._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0e6ie8f1lflit._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ebwcvxo9acvx._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ebwcvxo9acvx._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0idhg2fbiknzj._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0idhg2fbiknzj._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0k-w18w428_5_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0k-w18w428_5_._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0qcpq09hg4us0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0qcpq09hg4us0._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ue6kxnxcsdwm._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ue6kxnxcsdwm._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ws8ymfetd__e._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0ws8ymfetd__e._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0x434x8kjfomg._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0x434x8kjfomg._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12ucz-z8gi2wm._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12ucz-z8gi2wm._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12v4b4ag6pnuz._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__12v4b4ag6pnuz._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__14-2op73282-w._.js +14 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__14-2op73282-w._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__17gzuebq4v3qk._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__17gzuebq4v3qk._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1csnvoh619028._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1csnvoh619028._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1m7dl-6i9qiqn._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1m7dl-6i9qiqn._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1rn9z04uwbxhb._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1rn9z04uwbxhb._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1wlwflqfou0bh._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1wlwflqfou0bh._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__20ne3r6pcgicp._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__20ne3r6pcgicp._.js.map +1 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +935 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +10 -0
- package/.next/server/chunks/ssr/_0-pg9xcfzsxes._.js +3 -0
- package/.next/server/chunks/ssr/_0-pg9xcfzsxes._.js.map +1 -0
- package/.next/server/chunks/ssr/_00xm33jaybves._.js +3 -0
- package/.next/server/chunks/ssr/_00xm33jaybves._.js.map +1 -0
- package/.next/server/chunks/ssr/_026bi60jl1puk._.js +3 -0
- package/.next/server/chunks/ssr/_026bi60jl1puk._.js.map +1 -0
- package/.next/server/chunks/ssr/_055fzzctizrl9._.js +3 -0
- package/.next/server/chunks/ssr/_055fzzctizrl9._.js.map +1 -0
- package/.next/server/chunks/ssr/_05yfy_2w07awo._.js +3 -0
- package/.next/server/chunks/ssr/_05yfy_2w07awo._.js.map +1 -0
- package/.next/server/chunks/ssr/_07h0nhyqn2dzr._.js +3 -0
- package/.next/server/chunks/ssr/_07h0nhyqn2dzr._.js.map +1 -0
- package/.next/server/chunks/ssr/_07h_4c6z4aup2._.js +3 -0
- package/.next/server/chunks/ssr/_07h_4c6z4aup2._.js.map +1 -0
- package/.next/server/chunks/ssr/_07ns5-wirt2rm._.js +3 -0
- package/.next/server/chunks/ssr/_07ns5-wirt2rm._.js.map +1 -0
- package/.next/server/chunks/ssr/_07qibgb3c5l89._.js +3 -0
- package/.next/server/chunks/ssr/_07qibgb3c5l89._.js.map +1 -0
- package/.next/server/chunks/ssr/_0axhkh5eel9yw._.js +3 -0
- package/.next/server/chunks/ssr/_0axhkh5eel9yw._.js.map +1 -0
- package/.next/server/chunks/ssr/_0cw6p0eedzd28._.js +3 -0
- package/.next/server/chunks/ssr/_0cw6p0eedzd28._.js.map +1 -0
- package/.next/server/chunks/ssr/_0f8-6t0_oqza5._.js +9 -0
- package/.next/server/chunks/ssr/_0f8-6t0_oqza5._.js.map +1 -0
- package/.next/server/chunks/ssr/_0ijop4gxx3i74._.js +25 -0
- package/.next/server/chunks/ssr/_0ijop4gxx3i74._.js.map +1 -0
- package/.next/server/chunks/ssr/_0j7t-g9s-xw2k._.js +3 -0
- package/.next/server/chunks/ssr/_0j7t-g9s-xw2k._.js.map +1 -0
- package/.next/server/chunks/ssr/_0omyccx6813z2._.js +3 -0
- package/.next/server/chunks/ssr/_0omyccx6813z2._.js.map +1 -0
- package/.next/server/chunks/ssr/_0rs3zupho3jtn._.js +3 -0
- package/.next/server/chunks/ssr/_0rs3zupho3jtn._.js.map +1 -0
- package/.next/server/chunks/ssr/_0tpg1kyh-jvo_._.js +3 -0
- package/.next/server/chunks/ssr/_0tpg1kyh-jvo_._.js.map +1 -0
- package/.next/server/chunks/ssr/_0umx11tm2hknm._.js +3 -0
- package/.next/server/chunks/ssr/_0umx11tm2hknm._.js.map +1 -0
- package/.next/server/chunks/ssr/_100pig1hqblaj._.js +3 -0
- package/.next/server/chunks/ssr/_100pig1hqblaj._.js.map +1 -0
- package/.next/server/chunks/ssr/_10fls_hq4fpul._.js +3 -0
- package/.next/server/chunks/ssr/_10fls_hq4fpul._.js.map +1 -0
- package/.next/server/chunks/ssr/_135h5be3e-da_._.js +3 -0
- package/.next/server/chunks/ssr/_135h5be3e-da_._.js.map +1 -0
- package/.next/server/chunks/ssr/_15_m3et_qvi8o._.js +136 -0
- package/.next/server/chunks/ssr/_15_m3et_qvi8o._.js.map +1 -0
- package/.next/server/chunks/ssr/_17qjjfpo8bdyr._.js +3 -0
- package/.next/server/chunks/ssr/_17qjjfpo8bdyr._.js.map +1 -0
- package/.next/server/chunks/ssr/_1_zhi9sw7y-9k._.js +3 -0
- package/.next/server/chunks/ssr/_1_zhi9sw7y-9k._.js.map +1 -0
- package/.next/server/chunks/ssr/_1j3n0s5oa8ydl._.js +3 -0
- package/.next/server/chunks/ssr/_1j3n0s5oa8ydl._.js.map +1 -0
- package/.next/server/chunks/ssr/_1l_ctr5xszb5f._.js +3 -0
- package/.next/server/chunks/ssr/_1l_ctr5xszb5f._.js.map +1 -0
- package/.next/server/chunks/ssr/_1le90grlliyg5._.js +3 -0
- package/.next/server/chunks/ssr/_1le90grlliyg5._.js.map +1 -0
- package/.next/server/chunks/ssr/_1n1x5lti-0y_f._.js +3 -0
- package/.next/server/chunks/ssr/_1n1x5lti-0y_f._.js.map +1 -0
- package/.next/server/chunks/ssr/_1oaxfn6inhrly._.js +3 -0
- package/.next/server/chunks/ssr/_1oaxfn6inhrly._.js.map +1 -0
- package/.next/server/chunks/ssr/_1tk04py_mc595._.js +3 -0
- package/.next/server/chunks/ssr/_1tk04py_mc595._.js.map +1 -0
- package/.next/server/chunks/ssr/_1x4-igv-plryx._.js +3 -0
- package/.next/server/chunks/ssr/_1x4-igv-plryx._.js.map +1 -0
- package/.next/server/chunks/ssr/_1ydm1bpbu80ve._.js +3 -0
- package/.next/server/chunks/ssr/_1ydm1bpbu80ve._.js.map +1 -0
- package/.next/server/chunks/ssr/_1zpk-aphfnyrn._.js +3 -0
- package/.next/server/chunks/ssr/_1zpk-aphfnyrn._.js.map +1 -0
- package/.next/server/chunks/ssr/_208buljkex-zn._.js +3 -0
- package/.next/server/chunks/ssr/_208buljkex-zn._.js.map +1 -0
- package/.next/server/chunks/ssr/_21awjpye_8ftw._.js +3 -0
- package/.next/server/chunks/ssr/_21awjpye_8ftw._.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-psc_d2.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yrisjoev.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_blog_[slug]_page_actions_1xd8lf61mupwf.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_blog_[slug]_page_actions_1xd8lf61mupwf.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_blog_page_actions_1nf9zawbhjeiv.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_blog_page_actions_1nf9zawbhjeiv.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_automations_page_actions_0goq3aojk1w34.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_automations_page_actions_0goq3aojk1w34.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_[id]_page_actions_0yprr1p1obhkv.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_[id]_page_actions_0yprr1p1obhkv.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_page_actions_0wxku62xg7-8d.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_campaigns_page_actions_0wxku62xg7-8d.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_contacts_page_actions_03nfyumhdne4o.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_contacts_page_actions_03nfyumhdne4o.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_forms_page_actions_0y0vhf1s8gskw.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_forms_page_actions_0y0vhf1s8gskw.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_media_page_actions_15b2td6gfl39a.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_media_page_actions_15b2td6gfl39a.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_page_actions_10dr1c56aj99-.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_page_actions_10dr1c56aj99-.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_senders_page_actions_1wuvc1b945nkt.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_senders_page_actions_1wuvc1b945nkt.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_settings_page_actions_0zse4882vcfr3.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_dashboard_settings_page_actions_0zse4882vcfr3.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_doc_page_actions_0rt535c9bfkq2.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_doc_page_actions_0rt535c9bfkq2.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_documentation_page_actions_1iy5tav034rd5.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_documentation_page_actions_1iy5tav034rd5.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_04fnjo0ny9dmg.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_04fnjo0ny9dmg.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1jew5ls7.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_unsubscribe_page_actions_0tw5uaxujcbgr.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_unsubscribe_page_actions_0tw5uaxujcbgr.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_09-vsdyv4rf07._.js +33 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_09-vsdyv4rf07._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0g_pkwhpxnn41._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0g_pkwhpxnn41._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0ish0pdmujvdk._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0ish0pdmujvdk._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0ki86aixwegwo._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_0ki86aixwegwo._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_19v8qxrrt436n._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_19v8qxrrt436n._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_1g-xnwqgszuwu._.js +3 -0
- package/.next/server/chunks/ssr/node_modules__pnpm_1g-xnwqgszuwu._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_blog_[slug]_page_tsx_1ug1kslm_svqp._.js +77 -0
- package/.next/server/chunks/ssr/src_app_blog_[slug]_page_tsx_1ug1kslm_svqp._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_dashboard_senders_page_tsx_1b3t4vyr5fnbx._.js +3 -0
- package/.next/server/chunks/ssr/src_app_dashboard_senders_page_tsx_1b3t4vyr5fnbx._.js.map +1 -0
- package/.next/server/chunks/ssr/src_app_unsubscribe_page_tsx_0o16gze50x9sf._.js +3 -0
- package/.next/server/chunks/ssr/src_app_unsubscribe_page_tsx_0o16gze50x9sf._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_12ptlsadu9zd7._.js +3 -0
- package/.next/server/chunks/ssr/src_components_12ptlsadu9zd7._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_0pk35_glzt8wq._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_0pk35_glzt8wq._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_auth_login-form_tsx_1r6tbf3s9mxu7._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_auth_login-form_tsx_1r6tbf3s9mxu7._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_campaigns_campaign-list_tsx_1-1uum6gsaisy._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_campaigns_campaign-list_tsx_1-1uum6gsaisy._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_contacts_contact-list_tsx_1f91x0dykt7wo._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_contacts_contact-list_tsx_1f91x0dykt7wo._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_forms_forms-section_tsx_15gbq9k8__4dn._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_forms_forms-section_tsx_15gbq9k8__4dn._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_media_media-manager_tsx_08p0-g5iq1xdy._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_media_media-manager_tsx_08p0-g5iq1xdy._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_overview_tsx_0106-5tj3j3_u._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_overview_tsx_0106-5tj3j3_u._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_app_settings_tsx_151892lqtlh2m._.js +3 -0
- package/.next/server/chunks/ssr/src_components_app_settings_tsx_151892lqtlh2m._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_landing_footer_tsx_17g4as_911h_z._.js +3 -0
- package/.next/server/chunks/ssr/src_components_landing_footer_tsx_17g4as_911h_z._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_landing_landing-page_tsx_0jt_enjh4367d._.js +3 -0
- package/.next/server/chunks/ssr/src_components_landing_landing-page_tsx_0jt_enjh4367d._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_landing_navbar_tsx_0ixz81r-fflfv._.js +3 -0
- package/.next/server/chunks/ssr/src_components_landing_navbar_tsx_0ixz81r-fflfv._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_ui_14xpyv0xpr1d4._.js +3 -0
- package/.next/server/chunks/ssr/src_components_ui_14xpyv0xpr1d4._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_ui_alert-dialog_tsx_0pzef58n2zd63._.js +3 -0
- package/.next/server/chunks/ssr/src_components_ui_alert-dialog_tsx_0pzef58n2zd63._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js +3 -0
- package/.next/server/chunks/ssr/src_components_ui_dialog_tsx_1tn-i_6d3rhzt._.js.map +1 -0
- package/.next/server/chunks/ssr/src_lib_db_ts_16pqnef5-fsqp._.js +3 -0
- package/.next/server/chunks/ssr/src_lib_db_ts_16pqnef5-fsqp._.js.map +1 -0
- package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_0_zgqn351fy42.js.map +1 -0
- package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_13xzu7i5n4bm6.js.map +1 -0
- package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_1bso2q3tp24ts.js +3 -0
- package/.next/server/edge/chunks/06xu_next_dist_esm_build_templates_edge-wrapper_1bso2q3tp24ts.js.map +1 -0
- package/.next/server/edge/chunks/1v4i_next_dist_esm_build_templates_edge-wrapper_0_zgqn351fy42.js +3 -0
- package/.next/server/edge/chunks/1v4i_next_dist_esm_build_templates_edge-wrapper_13xzu7i5n4bm6.js +3 -0
- package/.next/server/edge/chunks/[root-of-the-server]__1hmjpfrn42nte._.js +11 -0
- package/.next/server/edge/chunks/[root-of-the-server]__1hmjpfrn42nte._.js.map +1 -0
- package/.next/server/edge/chunks/_0h6n282dfcei-._.js +3 -0
- package/.next/server/edge/chunks/_0h6n282dfcei-._.js.map +1 -0
- package/.next/server/functions-config-manifest.json +11 -0
- package/.next/server/instrumentation/middleware-manifest.json +12 -0
- package/.next/server/instrumentation.js +4 -0
- package/.next/server/instrumentation.js.map +5 -0
- package/.next/server/instrumentation.js.nft.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware/middleware-manifest.json +36 -0
- package/.next/server/middleware-build-manifest.js +223 -0
- package/.next/server/middleware-manifest.json +40 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +6 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +90 -0
- package/.next/server/preview-props.json +5 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/static/chunks/05aoy23ycul7p.js +1 -0
- package/.next/static/chunks/05sohy0cbb3y1.js +1 -0
- package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/.next/static/chunks/0i_sn52ynzipf.js +1 -0
- package/.next/static/chunks/0p7bxql_g7q64.js +1 -0
- package/.next/static/chunks/0slfvme32bzta.js +1 -0
- package/.next/static/chunks/0uofq2n85u5yc.js +1 -0
- package/.next/static/chunks/0w4j5ek-0m_l6.js +1 -0
- package/.next/static/chunks/0y6_igpmb5q25.js +1 -0
- package/.next/static/chunks/10g8gc1_4dmb6.js +7 -0
- package/.next/static/chunks/10r5b4lw40ag0.js +1 -0
- package/.next/static/chunks/14e2j0tc9nsmf.js +1 -0
- package/.next/static/chunks/1561y2t336828.js +132 -0
- package/.next/static/chunks/19th1mnoh3o6j.js +1 -0
- package/.next/static/chunks/1_-m6h07aqh30.js +134 -0
- package/.next/static/chunks/1_x2f-g925jb6.js +1 -0
- package/.next/static/chunks/1bitvurkxx2nz.js +1 -0
- package/.next/static/chunks/1ecuhonper9l0.js +1 -0
- package/.next/static/chunks/1h2_45-gp-481.js +1 -0
- package/.next/static/chunks/1j3ehn_xw8a55.js +1 -0
- package/.next/static/chunks/1l65wr07pb00x.js +1 -0
- package/.next/static/chunks/1vu83p4si8fws.js +1 -0
- package/.next/static/chunks/21bye8lfwlt44.js +1 -0
- package/.next/static/chunks/2e9dsi1shhtgh.js +22 -0
- package/.next/static/chunks/2k_rdgx_r4jwv.js +1 -0
- package/.next/static/chunks/2lagivmzn853-.js +276 -0
- package/.next/static/chunks/2pwymhlh1h5hq.js +1 -0
- package/.next/static/chunks/2qh8jmvqq3j7u.js +1 -0
- package/.next/static/chunks/30ut98lh7sgz_.js +1 -0
- package/.next/static/chunks/31iu25a06-uq5.js +31 -0
- package/.next/static/chunks/357eter5z_lqp.js +1 -0
- package/.next/static/chunks/36ycf2tz4-z71.js +1 -0
- package/.next/static/chunks/3ecdy1hiasj67.css +1 -0
- package/.next/static/chunks/3h6bvrhsfedzo.js +1 -0
- package/.next/static/chunks/3nv776qckior_.js +1 -0
- package/.next/static/chunks/3w8vde_er6gsg.js +1 -0
- package/.next/static/chunks/44l1w8l12d4mt.css +1 -0
- package/.next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- package/.next/static/vK0UjQCR1UeWb0AjLM6gH/_buildManifest.js +11 -0
- package/.next/static/vK0UjQCR1UeWb0AjLM6gH/_clientMiddlewareManifest.js +10 -0
- package/.next/static/vK0UjQCR1UeWb0AjLM6gH/_ssgManifest.js +1 -0
- package/.next/trace +2 -0
- package/.next/trace-build +1 -0
- package/.next/turbopack +0 -0
- package/.next/types/cache-life.d.ts +114 -0
- package/.next/types/root-params.d.ts +3 -0
- package/.next/types/routes.d.ts +131 -0
- package/.next/types/validator.ts +793 -0
- package/README.md +36 -2
- package/bin/lib/config.mjs +236 -0
- package/bin/mailcast.mjs +567 -0
- package/components.json +21 -0
- package/next.config.mjs +13 -0
- package/package.json +142 -4
- package/postcss.config.mjs +5 -0
- package/prisma/migrations/20261122000000_init/migration.sql +295 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +332 -0
- package/public/logo.svg +29 -0
- package/public/robots.txt +14 -0
- package/scripts/load-env.mjs +12 -0
- package/scripts/seed-admin.mjs +74 -0
- package/src/app/api/auth/login/route.ts +69 -0
- package/src/app/api/auth/logout/route.ts +35 -0
- package/src/app/api/auth/session/route.ts +55 -0
- package/src/app/api/auth/setup/route.ts +88 -0
- package/src/app/api/campaigns/[id]/publish/route.ts +62 -0
- package/src/app/api/campaigns/[id]/route.ts +180 -0
- package/src/app/api/campaigns/[id]/send/route.ts +285 -0
- package/src/app/api/campaigns/[id]/stats/route.ts +98 -0
- package/src/app/api/campaigns/all/route.ts +15 -0
- package/src/app/api/campaigns/route.ts +167 -0
- package/src/app/api/contacts/[id]/route.ts +21 -0
- package/src/app/api/contacts/all/route.ts +14 -0
- package/src/app/api/contacts/import/route.ts +230 -0
- package/src/app/api/contacts/route.ts +189 -0
- package/src/app/api/cron/route.ts +36 -0
- package/src/app/api/forms/[id]/route.ts +330 -0
- package/src/app/api/forms/[id]/submissions/route.ts +72 -0
- package/src/app/api/forms/[id]/submit/route.ts +448 -0
- package/src/app/api/forms/route.ts +283 -0
- package/src/app/api/forms/templates/[id]/route.ts +18 -0
- package/src/app/api/forms/templates/route.ts +94 -0
- package/src/app/api/groups/[id]/contacts/route.ts +201 -0
- package/src/app/api/groups/[id]/route.ts +154 -0
- package/src/app/api/groups/route.ts +105 -0
- package/src/app/api/media/[name]/route.ts +19 -0
- package/src/app/api/media/route.ts +52 -0
- package/src/app/api/public/forms/[id]/route.ts +3 -0
- package/src/app/api/public/posts/[slug]/route.ts +37 -0
- package/src/app/api/public/posts/route.ts +27 -0
- package/src/app/api/public/unsubscribe/route.ts +202 -0
- package/src/app/api/route.ts +5 -0
- package/src/app/api/senders/[id]/route.ts +28 -0
- package/src/app/api/senders/route.ts +100 -0
- package/src/app/api/settings/telegram/route.ts +110 -0
- package/src/app/api/settings/telegram/stats/route.ts +45 -0
- package/src/app/api/stats/route.ts +87 -0
- package/src/app/api/t/[token]/route.ts +99 -0
- package/src/app/api/templates/[id]/route.ts +97 -0
- package/src/app/api/templates/route.ts +71 -0
- package/src/app/api/workflows/[id]/enroll/route.ts +131 -0
- package/src/app/api/workflows/[id]/route.ts +326 -0
- package/src/app/api/workflows/[id]/run/route.ts +36 -0
- package/src/app/api/workflows/route.ts +212 -0
- package/src/app/blog/[slug]/page.tsx +66 -0
- package/src/app/blog/page.tsx +69 -0
- package/src/app/dashboard/automations/page.tsx +10 -0
- package/src/app/dashboard/campaigns/[id]/page.tsx +10 -0
- package/src/app/dashboard/campaigns/page.tsx +5 -0
- package/src/app/dashboard/contacts/page.tsx +5 -0
- package/src/app/dashboard/forms/page.tsx +5 -0
- package/src/app/dashboard/layout.tsx +18 -0
- package/src/app/dashboard/media/page.tsx +5 -0
- package/src/app/dashboard/page.tsx +5 -0
- package/src/app/dashboard/senders/page.tsx +20 -0
- package/src/app/dashboard/settings/page.tsx +5 -0
- package/src/app/doc/page.tsx +5 -0
- package/src/app/documentation/page.tsx +5 -0
- package/src/app/globals.css +146 -0
- package/src/app/layout.tsx +48 -0
- package/src/app/login/page.tsx +10 -0
- package/src/app/page.tsx +5 -0
- package/src/app/unsubscribe/page.tsx +333 -0
- package/src/components/app/auth/login-form.tsx +237 -0
- package/src/components/app/automations/automations-section.tsx +462 -0
- package/src/components/app/automations/enroll-dialog.tsx +23 -0
- package/src/components/app/automations/flow-nodes.tsx +203 -0
- package/src/components/app/automations/node-library.tsx +192 -0
- package/src/components/app/automations/node-types.ts +520 -0
- package/src/components/app/automations/property-panel.tsx +1657 -0
- package/src/components/app/automations/workflow-builder.tsx +751 -0
- package/src/components/app/campaigns/campaign-editor.tsx +1603 -0
- package/src/components/app/campaigns/campaign-list.tsx +227 -0
- package/src/components/app/campaigns/rich-text-editor.tsx +296 -0
- package/src/components/app/client-auth-gate.tsx +54 -0
- package/src/components/app/contacts/contact-list.tsx +1174 -0
- package/src/components/app/contacts/import-dialog.tsx +296 -0
- package/src/components/app/dashboard-shell.tsx +43 -0
- package/src/components/app/dashboard.tsx +93 -0
- package/src/components/app/empty-state.tsx +43 -0
- package/src/components/app/forms/embed-dialog.tsx +243 -0
- package/src/components/app/forms/form-builder.tsx +1433 -0
- package/src/components/app/forms/form-inspector.tsx +1560 -0
- package/src/components/app/forms/form-preview.tsx +993 -0
- package/src/components/app/forms/forms-section.tsx +315 -0
- package/src/components/app/forms/submissions-dialog.tsx +245 -0
- package/src/components/app/forms/types.ts +103 -0
- package/src/components/app/media/media-manager.tsx +212 -0
- package/src/components/app/overview.tsx +209 -0
- package/src/components/app/quick-create.tsx +708 -0
- package/src/components/app/section-heading.tsx +34 -0
- package/src/components/app/senders/add-sender-dialog.tsx +179 -0
- package/src/components/app/senders/sender-list.tsx +296 -0
- package/src/components/app/settings.tsx +611 -0
- package/src/components/app/sidebar.tsx +207 -0
- package/src/components/app/stat-card.tsx +56 -0
- package/src/components/app/status-badge.tsx +49 -0
- package/src/components/app/templates/block-inspector.tsx +1594 -0
- package/src/components/app/templates/canvas-block.tsx +541 -0
- package/src/components/app/templates/email-builder-client.tsx +986 -0
- package/src/components/app/templates/email-builder.tsx +23 -0
- package/src/components/app/topbar.tsx +72 -0
- package/src/components/app/use-api.ts +202 -0
- package/src/components/landing/faq.tsx +84 -0
- package/src/components/landing/features.tsx +147 -0
- package/src/components/landing/final-cta.tsx +52 -0
- package/src/components/landing/footer.tsx +89 -0
- package/src/components/landing/hero.tsx +391 -0
- package/src/components/landing/how-it-works.tsx +87 -0
- package/src/components/landing/landing-page.tsx +45 -0
- package/src/components/landing/logo.tsx +19 -0
- package/src/components/landing/navbar.tsx +113 -0
- package/src/components/landing/pricing.tsx +135 -0
- package/src/components/landing/reveal.tsx +36 -0
- package/src/components/landing/stats-bar.tsx +61 -0
- package/src/components/ui/accordion.tsx +66 -0
- package/src/components/ui/alert-dialog.tsx +157 -0
- package/src/components/ui/alert.tsx +66 -0
- package/src/components/ui/aspect-ratio.tsx +11 -0
- package/src/components/ui/avatar.tsx +53 -0
- package/src/components/ui/badge.tsx +46 -0
- package/src/components/ui/breadcrumb.tsx +109 -0
- package/src/components/ui/button.tsx +59 -0
- package/src/components/ui/calendar.tsx +213 -0
- package/src/components/ui/card.tsx +92 -0
- package/src/components/ui/carousel.tsx +246 -0
- package/src/components/ui/chart.tsx +353 -0
- package/src/components/ui/checkbox.tsx +32 -0
- package/src/components/ui/collapsible.tsx +33 -0
- package/src/components/ui/command.tsx +184 -0
- package/src/components/ui/context-menu.tsx +252 -0
- package/src/components/ui/dialog.tsx +143 -0
- package/src/components/ui/drawer.tsx +135 -0
- package/src/components/ui/dropdown-menu.tsx +257 -0
- package/src/components/ui/form.tsx +167 -0
- package/src/components/ui/hover-card.tsx +44 -0
- package/src/components/ui/input-otp.tsx +77 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/menubar.tsx +276 -0
- package/src/components/ui/navigation-menu.tsx +168 -0
- package/src/components/ui/pagination.tsx +127 -0
- package/src/components/ui/popover.tsx +48 -0
- package/src/components/ui/progress.tsx +31 -0
- package/src/components/ui/radio-group.tsx +45 -0
- package/src/components/ui/resizable.tsx +56 -0
- package/src/components/ui/scroll-area.tsx +58 -0
- package/src/components/ui/select.tsx +185 -0
- package/src/components/ui/separator.tsx +28 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +726 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +63 -0
- package/src/components/ui/sonner.tsx +25 -0
- package/src/components/ui/switch.tsx +31 -0
- package/src/components/ui/table.tsx +116 -0
- package/src/components/ui/tabs.tsx +66 -0
- package/src/components/ui/textarea.tsx +18 -0
- package/src/components/ui/toast.tsx +129 -0
- package/src/components/ui/toaster.tsx +35 -0
- package/src/components/ui/toggle-group.tsx +73 -0
- package/src/components/ui/toggle.tsx +47 -0
- package/src/components/ui/tooltip.tsx +61 -0
- package/src/hooks/use-app-store.ts +57 -0
- package/src/hooks/use-mobile.ts +21 -0
- package/src/hooks/use-toast.ts +194 -0
- package/src/instrumentation.ts +9 -0
- package/src/lib/auth.ts +95 -0
- package/src/lib/automation-engine.ts +1094 -0
- package/src/lib/automation.ts +43 -0
- package/src/lib/blog-render.ts +34 -0
- package/src/lib/campaign-persist.ts +10 -0
- package/src/lib/contact-import.ts +137 -0
- package/src/lib/cron-runner.ts +61 -0
- package/src/lib/cron.ts +203 -0
- package/src/lib/crypto.ts +52 -0
- package/src/lib/database-url.ts +30 -0
- package/src/lib/db.ts +560 -0
- package/src/lib/email-builder.ts +1558 -0
- package/src/lib/email-cid.ts +53 -0
- package/src/lib/email-font.ts +39 -0
- package/src/lib/email-template.ts +182 -0
- package/src/lib/file-types.ts +18 -0
- package/src/lib/form-builder.ts +1489 -0
- package/src/lib/form-response.ts +101 -0
- package/src/lib/form-submission.ts +98 -0
- package/src/lib/gmail.ts +185 -0
- package/src/lib/grapes-config.ts +38 -0
- package/src/lib/group-memberships.ts +13 -0
- package/src/lib/markdown.ts +25 -0
- package/src/lib/public-url.ts +14 -0
- package/src/lib/send-result.ts +65 -0
- package/src/lib/session-token.ts +42 -0
- package/src/lib/supabase-storage.ts +219 -0
- package/src/lib/telegram.ts +197 -0
- package/src/lib/template-validation.ts +34 -0
- package/src/lib/tracking-html.ts +29 -0
- package/src/lib/tracking-store.ts +65 -0
- package/src/lib/tracking.ts +46 -0
- package/src/lib/unsubscribe-token.ts +79 -0
- package/src/lib/utils.ts +6 -0
- package/src/middleware.ts +59 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/.pnpm/react-compiler-runtime%401.0.0_react%4019.3.1/node_modules/react-compiler-runtime/src/index.ts","../../../../node_modules/.pnpm/d3-dispatch%403.0.2/node_modules/d3-dispatch/dist/d3-dispatch.mjs","../../../../node_modules/.pnpm/d3-selection%403.0.1/node_modules/d3-selection/dist/d3-selection.mjs","../../../../node_modules/.pnpm/d3-color%403.1.1/node_modules/d3-color/dist/d3-color.mjs","../../../../node_modules/.pnpm/d3-timer%403.0.2/node_modules/d3-timer/dist/d3-timer.mjs","../../../../node_modules/.pnpm/d3-ease%403.0.2/node_modules/d3-ease/dist/d3-ease.mjs","../../../../node_modules/.pnpm/zustand%405.1.0_%40types%2Breact%4019.3.0_react%4019.3.1_use-sync-external-store%401.7.0_react%4019.3.1_/node_modules/zustand/esm/vanilla/shallow.mjs","../../../../src/components/app/automations/automations-section.tsx","../../../../src/components/app/automations/node-types.ts","../../../../src/components/app/automations/flow-nodes.tsx","../../../../src/components/app/automations/node-library.tsx","../../../../node_modules/.pnpm/%40radix-ui%2Breact-toggle%401.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%40_de7c9f81d6808adaa4fa45c6bd828d6f/node_modules/%40radix-ui/react-toggle/dist/index.mjs","../../../../node_modules/.pnpm/%40radix-ui%2Breact-toggle-group%401.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2B_708bc0e1d21164fdee5bfe89ab2f4b8c/node_modules/%40radix-ui/react-toggle-group/dist/index.mjs","../../../../src/components/ui/toggle.tsx","../../../../src/components/ui/toggle-group.tsx","../../../../src/components/app/automations/property-panel.tsx","../../../../src/components/app/automations/workflow-builder.tsx","../../../../node_modules/.pnpm/classcat%405.0.5/node_modules/classcat/index.js","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/contexts/StoreContext.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useShallow.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useReactFlowStore.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/A11yDescriptions/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Panel/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Attribution/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/SelectionListener/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/ReactFlow/init-values.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/StoreUpdater/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useKeyPress.ts","../../../../node_modules/.pnpm/d3-interpolate%403.0.2/node_modules/d3-interpolate/dist/d3-interpolate.mjs","../../../../node_modules/.pnpm/d3-drag%403.0.1/node_modules/d3-drag/dist/d3-drag.mjs","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/constants.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useViewportHelper.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/utils/changes.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/utils/edges.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/utils/general.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useIsomorphicLayoutEffect.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/BatchProvider/useQueue.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/BatchProvider/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useReactFlow.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useGlobalKeyHandler.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useResizeHandler.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/styles/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/ZoomPane/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/UserSelection/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/Pane/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Nodes/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useDrag.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useMoveSelectedNodes.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/contexts/NodeIdContext.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/contexts/HandleConfigContext.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useConnection.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Handle/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Nodes/InputNode.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Nodes/DefaultNode.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Nodes/GroupNode.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Nodes/OutputNode.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/NodeWrapper/utils.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/NodesSelection/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/FlowRenderer/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useVisibleNodeIds.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/NodeRenderer/useResizeObserver.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useNodes.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/NodeWrapper/useNodeObserver.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/NodeWrapper/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/NodeRenderer/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useVisibleEdgeIds.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/EdgeRenderer/MarkerSymbols.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/EdgeRenderer/MarkerDefinitions.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useEdges.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/EdgeText.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/BaseEdge.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/SimpleBezierEdge.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/SmoothStepEdge.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/StepEdge.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/StraightEdge.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/BezierEdge.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/EdgeWrapper/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/Edges/EdgeAnchor.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/EdgeWrapper/EdgeUpdateAnchors.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/EdgeWrapper/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/EdgeRenderer/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/Viewport/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useOnInitHandler.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useViewportSync.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/ConnectionLine/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/GraphView/useNodeOrEdgeTypesWarning.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/GraphView/useStylesLoadedWarning.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/GraphView/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/store/pubsub.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/store/initialState.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/store/index.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/ReactFlowProvider/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/ReactFlow/Wrapper.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/container/ReactFlow/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/EdgeLabelRenderer/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/components/ViewportPortal/index.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useUpdateNodeInternals.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useViewport.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useNodesEdgesState.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useOnViewportChange.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useOnSelectionChange.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useNodesInitialized.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useNodeConnections.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useNodesData.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useOnNodesChangeMiddleware.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/hooks/useOnEdgesChangeMiddleware.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Background/Patterns.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Background/types.ts","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Background/Background.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/Icons/Plus.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/Icons/Minus.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/Icons/FitView.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/Icons/Lock.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/Icons/Unlock.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/ControlButton.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/Controls/Controls.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/MiniMap/MiniMapNode.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/MiniMap/MiniMapNodes.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/MiniMap/MiniMap.tsx","../../../../node_modules/.pnpm/d3-zoom%403.0.1/node_modules/d3-zoom/dist/d3-zoom.mjs","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/NodeResizer/NodeResizeControl.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/NodeResizer/NodeResizer.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/NodeToolbar/NodeToolbarPortal.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/NodeToolbar/NodeToolbar.tsx","../../../../node_modules/.pnpm/%40xyflow%2Breact%4013.0.2_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2Breact%4019.3.0_r_250b483df42c9f4896eb73966365e291/node_modules/%40xyflow/react/src/additional-components/EdgeToolbar/EdgeToolbar.tsx","../../../../node_modules/.pnpm/d3-transition%403.0.2_d3-selection%403.0.1/node_modules/d3-transition/dist/d3-transition.mjs","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/play.ts","../../../../node_modules/.pnpm/%40radix-ui%2Breact-toggle-group%401.2.1_%40types%2Breact-dom%4019.3.0_%40types%2Breact%4019.3.0__%40types%2B_708bc0e1d21164fdee5bfe89ab2f4b8c/node_modules/%40radix-ui/react-toggle-group/src/toggle-group.tsx","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/link-2.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/git-branch.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/message-square.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/refresh-cw.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/circle-minus.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/user-minus.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/calendar-clock.ts","../../../../src/lib/cron.ts","../../../../src/components/app/automations/enroll-dialog.tsx","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/unlink.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/tag.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/zap.ts","../../../../node_modules/.pnpm/lucide-react%400.525.0_react%4019.3.1/node_modules/lucide-react/src/icons/folder-input.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/types/general.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/types/edges.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/types/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/graph.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/general.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/attribution.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/connections.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/events.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/dom.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/edges/bezier-edge.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/edges/general.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/edges/straight-edge.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/edges/smoothstep-edge.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/edges/positions.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/marker.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/node-toolbar.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/edge-toolbar.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/store.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/shallow-node-data.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/utils/subflows.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xydrag/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xydrag/XYDrag.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xyhandle/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xyhandle/XYHandle.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xyminimap/index.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xypanzoom/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xypanzoom/eventhandler.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xypanzoom/filter.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xypanzoom/XYPanZoom.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xyresizer/types.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xyresizer/utils.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/xyresizer/XYResizer.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/changes/apply.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/changes/create.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/changes/index.ts","../../../../node_modules/.pnpm/%40xyflow%2Bsystem%401.0.0/node_modules/%40xyflow/system/src/changes/utils.ts"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport * as React from 'react';\n\nconst {useRef, useEffect, isValidElement} = React;\nconst ReactSecretInternals =\n //@ts-ignore\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ??\n //@ts-ignore\n React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\ntype MemoCache = Array<number | typeof $empty>;\n\nconst $empty = Symbol.for('react.memo_cache_sentinel');\n\n// Re-export React.c if present, otherwise fallback to the userspace polyfill for versions of React\n// < 19.\nexport const c =\n // @ts-expect-error\n typeof React.__COMPILER_RUNTIME?.c === 'function'\n ? // @ts-expect-error\n React.__COMPILER_RUNTIME.c\n : function c(size: number) {\n return React.useMemo<Array<unknown>>(() => {\n const $ = new Array(size);\n for (let ii = 0; ii < size; ii++) {\n $[ii] = $empty;\n }\n // This symbol is added to tell the react devtools that this array is from\n // useMemoCache.\n // @ts-ignore\n $[$empty] = true;\n return $;\n }, []);\n };\n\nconst LazyGuardDispatcher: {[key: string]: (...args: Array<any>) => any} = {};\n[\n 'readContext',\n 'useCallback',\n 'useContext',\n 'useEffect',\n 'useImperativeHandle',\n 'useInsertionEffect',\n 'useLayoutEffect',\n 'useMemo',\n 'useReducer',\n 'useRef',\n 'useState',\n 'useDebugValue',\n 'useDeferredValue',\n 'useTransition',\n 'useMutableSource',\n 'useSyncExternalStore',\n 'useId',\n 'unstable_isNewReconciler',\n 'getCacheSignal',\n 'getCacheForType',\n 'useCacheRefresh',\n].forEach(name => {\n LazyGuardDispatcher[name] = () => {\n throw new Error(\n `[React] Unexpected React hook call (${name}) from a React compiled function. ` +\n \"Check that all hooks are called directly and named according to convention ('use[A-Z]') \",\n );\n };\n});\n\nlet originalDispatcher: unknown = null;\n\n// Allow guards are not emitted for useMemoCache\nLazyGuardDispatcher['useMemoCache'] = (count: number) => {\n if (originalDispatcher == null) {\n throw new Error(\n 'React Compiler internal invariant violation: unexpected null dispatcher',\n );\n } else {\n return (originalDispatcher as any).useMemoCache(count);\n }\n};\n\nenum GuardKind {\n PushGuardContext = 0,\n PopGuardContext = 1,\n PushExpectHook = 2,\n PopExpectHook = 3,\n}\n\nfunction setCurrent(newDispatcher: any) {\n ReactSecretInternals.ReactCurrentDispatcher.current = newDispatcher;\n return ReactSecretInternals.ReactCurrentDispatcher.current;\n}\n\nconst guardFrames: Array<unknown> = [];\n\n/**\n * When `enableEmitHookGuards` is set, this does runtime validation\n * of the no-conditional-hook-calls rule.\n * As React Compiler needs to statically understand which calls to move out of\n * conditional branches (i.e. React Compiler cannot memoize the results of hook\n * calls), its understanding of \"the rules of React\" are more restrictive.\n * This validation throws on unsound inputs at runtime.\n *\n * Components should only be invoked through React as React Compiler could memoize\n * the call to AnotherComponent, introducing conditional hook calls in its\n * compiled output.\n * ```js\n * function Invalid(props) {\n * const myJsx = AnotherComponent(props);\n * return <div> { myJsx } </div>;\n * }\n *\n * Hooks must be named as hooks.\n * ```js\n * const renamedHook = useState;\n * function Invalid() {\n * const [state, setState] = renamedHook(0);\n * }\n * ```\n *\n * Hooks must be directly called.\n * ```\n * function call(fn) {\n * return fn();\n * }\n * function Invalid() {\n * const result = call(useMyHook);\n * }\n * ```\n */\nexport function $dispatcherGuard(kind: GuardKind) {\n const curr = ReactSecretInternals.ReactCurrentDispatcher.current;\n if (kind === GuardKind.PushGuardContext) {\n // Push before checking invariant or errors\n guardFrames.push(curr);\n\n if (guardFrames.length === 1) {\n // save if we're the first guard on the stack\n originalDispatcher = curr;\n }\n\n if (curr === LazyGuardDispatcher) {\n throw new Error(\n `[React] Unexpected call to custom hook or component from a React compiled function. ` +\n \"Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') \" +\n 'and (2) components are returned as JSX instead of being directly invoked.',\n );\n }\n setCurrent(LazyGuardDispatcher);\n } else if (kind === GuardKind.PopGuardContext) {\n // Pop before checking invariant or errors\n const lastFrame = guardFrames.pop();\n\n if (lastFrame == null) {\n throw new Error(\n 'React Compiler internal error: unexpected null in guard stack',\n );\n }\n if (guardFrames.length === 0) {\n originalDispatcher = null;\n }\n setCurrent(lastFrame);\n } else if (kind === GuardKind.PushExpectHook) {\n // ExpectHooks could be nested, so we save the current dispatcher\n // for the matching PopExpectHook to restore.\n guardFrames.push(curr);\n setCurrent(originalDispatcher);\n } else if (kind === GuardKind.PopExpectHook) {\n const lastFrame = guardFrames.pop();\n if (lastFrame == null) {\n throw new Error(\n 'React Compiler internal error: unexpected null in guard stack',\n );\n }\n setCurrent(lastFrame);\n } else {\n throw new Error('React Compiler internal error: unreachable block' + kind);\n }\n}\n\nexport function $reset($: MemoCache) {\n for (let ii = 0; ii < $.length; ii++) {\n $[ii] = $empty;\n }\n}\n\nexport function $makeReadOnly() {\n throw new Error('TODO: implement $makeReadOnly in react-compiler-runtime');\n}\n\n/**\n * Instrumentation to count rerenders in React components\n */\nexport const renderCounterRegistry: Map<\n string,\n Set<{count: number}>\n> = new Map();\nexport function clearRenderCounterRegistry() {\n for (const counters of renderCounterRegistry.values()) {\n counters.forEach(counter => {\n counter.count = 0;\n });\n }\n}\n\nfunction registerRenderCounter(name: string, val: {count: number}) {\n let counters = renderCounterRegistry.get(name);\n if (counters == null) {\n counters = new Set();\n renderCounterRegistry.set(name, counters);\n }\n counters.add(val);\n}\n\nfunction removeRenderCounter(name: string, val: {count: number}): void {\n const counters = renderCounterRegistry.get(name);\n if (counters == null) {\n return;\n }\n counters.delete(val);\n}\n\nexport function useRenderCounter(name: string): void {\n const val = useRef<{count: number}>(null);\n\n if (val.current != null) {\n val.current.count += 1;\n }\n useEffect(() => {\n // Not counting initial render shouldn't be a problem\n if (val.current == null) {\n const counter = {count: 0};\n registerRenderCounter(name, counter);\n // @ts-ignore\n val.current = counter;\n }\n return () => {\n if (val.current !== null) {\n removeRenderCounter(name, val.current);\n }\n };\n });\n}\n\nconst seenErrors = new Set();\n\nexport function $structuralCheck(\n oldValue: any,\n newValue: any,\n variableName: string,\n fnName: string,\n kind: string,\n loc: string,\n): void {\n function error(l: string, r: string, path: string, depth: number) {\n const str = `${fnName}:${loc} [${kind}] ${variableName}${path} changed from ${l} to ${r} at depth ${depth}`;\n if (seenErrors.has(str)) {\n return;\n }\n seenErrors.add(str);\n console.error(str);\n }\n const depthLimit = 2;\n function recur(oldValue: any, newValue: any, path: string, depth: number) {\n if (depth > depthLimit) {\n return;\n } else if (oldValue === newValue) {\n return;\n } else if (typeof oldValue !== typeof newValue) {\n error(`type ${typeof oldValue}`, `type ${typeof newValue}`, path, depth);\n } else if (typeof oldValue === 'object') {\n const oldArray = Array.isArray(oldValue);\n const newArray = Array.isArray(newValue);\n if (oldValue === null && newValue !== null) {\n error('null', `type ${typeof newValue}`, path, depth);\n } else if (newValue === null) {\n error(`type ${typeof oldValue}`, 'null', path, depth);\n } else if (oldValue instanceof Map) {\n if (!(newValue instanceof Map)) {\n error(`Map instance`, `other value`, path, depth);\n } else if (oldValue.size !== newValue.size) {\n error(\n `Map instance with size ${oldValue.size}`,\n `Map instance with size ${newValue.size}`,\n path,\n depth,\n );\n } else {\n for (const [k, v] of oldValue) {\n if (!newValue.has(k)) {\n error(\n `Map instance with key ${k}`,\n `Map instance without key ${k}`,\n path,\n depth,\n );\n } else {\n recur(v, newValue.get(k), `${path}.get(${k})`, depth + 1);\n }\n }\n }\n } else if (newValue instanceof Map) {\n error('other value', `Map instance`, path, depth);\n } else if (oldValue instanceof Set) {\n if (!(newValue instanceof Set)) {\n error(`Set instance`, `other value`, path, depth);\n } else if (oldValue.size !== newValue.size) {\n error(\n `Set instance with size ${oldValue.size}`,\n `Set instance with size ${newValue.size}`,\n path,\n depth,\n );\n } else {\n for (const v of newValue) {\n if (!oldValue.has(v)) {\n error(\n `Set instance without element ${v}`,\n `Set instance with element ${v}`,\n path,\n depth,\n );\n }\n }\n }\n } else if (newValue instanceof Set) {\n error('other value', `Set instance`, path, depth);\n } else if (oldArray || newArray) {\n if (oldArray !== newArray) {\n error(\n `type ${oldArray ? 'array' : 'object'}`,\n `type ${newArray ? 'array' : 'object'}`,\n path,\n depth,\n );\n } else if (oldValue.length !== newValue.length) {\n error(\n `array with length ${oldValue.length}`,\n `array with length ${newValue.length}`,\n path,\n depth,\n );\n } else {\n for (let ii = 0; ii < oldValue.length; ii++) {\n recur(oldValue[ii], newValue[ii], `${path}[${ii}]`, depth + 1);\n }\n }\n } else if (isValidElement(oldValue) || isValidElement(newValue)) {\n if (isValidElement(oldValue) !== isValidElement(newValue)) {\n error(\n `type ${isValidElement(oldValue) ? 'React element' : 'object'}`,\n `type ${isValidElement(newValue) ? 'React element' : 'object'}`,\n path,\n depth,\n );\n } else if (oldValue.type !== newValue.type) {\n error(\n `React element of type ${oldValue.type}`,\n `React element of type ${newValue.type}`,\n path,\n depth,\n );\n } else {\n recur(\n oldValue.props,\n newValue.props,\n `[props of ${path}]`,\n depth + 1,\n );\n }\n } else {\n for (const key in newValue) {\n if (!(key in oldValue)) {\n error(\n `object without key ${key}`,\n `object with key ${key}`,\n path,\n depth,\n );\n }\n }\n for (const key in oldValue) {\n if (!(key in newValue)) {\n error(\n `object with key ${key}`,\n `object without key ${key}`,\n path,\n depth,\n );\n } else {\n recur(oldValue[key], newValue[key], `${path}.${key}`, depth + 1);\n }\n }\n }\n } else if (typeof oldValue === 'function') {\n // Bail on functions for now\n return;\n } else if (isNaN(oldValue) || isNaN(newValue)) {\n if (isNaN(oldValue) !== isNaN(newValue)) {\n error(\n `${isNaN(oldValue) ? 'NaN' : 'non-NaN value'}`,\n `${isNaN(newValue) ? 'NaN' : 'non-NaN value'}`,\n path,\n depth,\n );\n }\n } else if (oldValue !== newValue) {\n error(oldValue, newValue, path, depth);\n }\n }\n recur(oldValue, newValue, '', 0);\n}\n","// https://d3js.org/d3-dispatch/ v3.0.2 Copyright 2010-2026 Mike Bostock\nvar noop = {value: () => {}};\n\nfunction dispatch() {\n for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {\n if (!(t = arguments[i] + \"\") || (t in _) || /[\\s.]/.test(t)) throw new Error(\"illegal type: \" + t);\n _[t] = [];\n }\n return new Dispatch(_);\n}\n\nfunction Dispatch(_) {\n this._ = _;\n}\n\nfunction parseTypenames(typenames, types) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n if (t && !types.hasOwnProperty(t)) throw new Error(\"unknown type: \" + t);\n return {type: t, name: name};\n });\n}\n\nDispatch.prototype = dispatch.prototype = {\n constructor: Dispatch,\n on: function(typename, callback) {\n var _ = this._,\n T = parseTypenames(typename + \"\", _),\n t,\n i = -1,\n n = T.length;\n\n // If no callback was specified, return the callback of the given type and name.\n if (arguments.length < 2) {\n while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t;\n return;\n }\n\n // If a type was specified, set the callback for the given type and name.\n // Otherwise, if a null callback was specified, remove callbacks of the given name.\n if (callback != null && typeof callback !== \"function\") throw new Error(\"invalid callback: \" + callback);\n while (++i < n) {\n if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback);\n else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null);\n }\n\n return this;\n },\n copy: function() {\n var copy = {}, _ = this._;\n for (var t in _) copy[t] = _[t].slice();\n return new Dispatch(copy);\n },\n call: function(type, that) {\n if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n },\n apply: function(type, that, args) {\n if (!this._.hasOwnProperty(type)) throw new Error(\"unknown type: \" + type);\n for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);\n }\n};\n\nfunction get(type, name) {\n for (var i = 0, n = type.length, c; i < n; ++i) {\n if ((c = type[i]).name === name) {\n return c.value;\n }\n }\n}\n\nfunction set(type, name, callback) {\n for (var i = 0, n = type.length; i < n; ++i) {\n if (type[i].name === name) {\n type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));\n break;\n }\n }\n if (callback != null) type.push({name: name, value: callback});\n return type;\n}\n\nexport { dispatch };\n","// https://d3js.org/d3-selection/ v3.0.1 Copyright 2010-2026 Mike Bostock\nvar xhtml = \"http://www.w3.org/1999/xhtml\";\n\nvar namespaces = {\n svg: \"http://www.w3.org/2000/svg\",\n xhtml: xhtml,\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n xmlns: \"http://www.w3.org/2000/xmlns/\"\n};\n\nfunction namespace(name) {\n var prefix = name += \"\", i = prefix.indexOf(\":\");\n if (i >= 0 && (prefix = name.slice(0, i)) !== \"xmlns\") name = name.slice(i + 1);\n return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name; // eslint-disable-line no-prototype-builtins\n}\n\nfunction creatorInherit(name) {\n return function() {\n var document = this.ownerDocument,\n uri = this.namespaceURI;\n return uri === xhtml && document.documentElement.namespaceURI === xhtml\n ? document.createElement(name)\n : document.createElementNS(uri, name);\n };\n}\n\nfunction creatorFixed(fullname) {\n return function() {\n return this.ownerDocument.createElementNS(fullname.space, fullname.local);\n };\n}\n\nfunction creator(name) {\n var fullname = namespace(name);\n return (fullname.local\n ? creatorFixed\n : creatorInherit)(fullname);\n}\n\nfunction none() {}\n\nfunction selector(selector) {\n return selector == null ? none : function() {\n return this.querySelector(selector);\n };\n}\n\nfunction selection_select(select) {\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n\n// Given something array like (or null), returns something that is strictly an\n// array. This is used to ensure that array-like objects passed to d3.selectAll\n// or selection.selectAll are converted into proper arrays when creating a\n// selection; we don’t ever want to create a selection backed by a live\n// HTMLCollection or NodeList. However, note that selection.selectAll will use a\n// static NodeList as a group, since it safely derived from querySelectorAll.\nfunction array(x) {\n return x == null ? [] : Array.isArray(x) ? x : Array.from(x);\n}\n\nfunction empty() {\n return [];\n}\n\nfunction selectorAll(selector) {\n return selector == null ? empty : function() {\n return this.querySelectorAll(selector);\n };\n}\n\nfunction arrayAll(select) {\n return function() {\n return array(select.apply(this, arguments));\n };\n}\n\nfunction selection_selectAll(select) {\n if (typeof select === \"function\") select = arrayAll(select);\n else select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n subgroups.push(select.call(node, node.__data__, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n}\n\nfunction matcher(selector) {\n return function() {\n return this.matches(selector);\n };\n}\n\nfunction childMatcher(selector) {\n return function(node) {\n return node.matches(selector);\n };\n}\n\nvar find = Array.prototype.find;\n\nfunction childFind(match) {\n return function() {\n return find.call(this.children, match);\n };\n}\n\nfunction childFirst() {\n return this.firstElementChild;\n}\n\nfunction selection_selectChild(match) {\n return this.select(match == null ? childFirst\n : childFind(typeof match === \"function\" ? match : childMatcher(match)));\n}\n\nvar filter = Array.prototype.filter;\n\nfunction children() {\n return Array.from(this.children);\n}\n\nfunction childrenFilter(match) {\n return function() {\n return filter.call(this.children, match);\n };\n}\n\nfunction selection_selectChildren(match) {\n return this.selectAll(match == null ? children\n : childrenFilter(typeof match === \"function\" ? match : childMatcher(match)));\n}\n\nfunction selection_filter(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Selection(subgroups, this._parents);\n}\n\nfunction sparse(update) {\n return new Array(update.length);\n}\n\nfunction selection_enter() {\n return new Selection(this._enter || this._groups.map(sparse), this._parents);\n}\n\nfunction EnterNode(parent, datum) {\n this.ownerDocument = parent.ownerDocument;\n this.namespaceURI = parent.namespaceURI;\n this._next = null;\n this._parent = parent;\n this.__data__ = datum;\n}\n\nEnterNode.prototype = {\n constructor: EnterNode,\n appendChild: function(child) { return this._parent.insertBefore(child, this._next); },\n insertBefore: function(child, next) { return this._parent.insertBefore(child, next); },\n querySelector: function(selector) { return this._parent.querySelector(selector); },\n querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); }\n};\n\nfunction constant(x) {\n return function() {\n return x;\n };\n}\n\nfunction bindIndex(parent, group, enter, update, exit, data) {\n var i = 0,\n node,\n groupLength = group.length,\n dataLength = data.length;\n\n // Put any non-null nodes that fit into update.\n // Put any null nodes into enter.\n // Put any remaining data into enter.\n for (; i < dataLength; ++i) {\n if (node = group[i]) {\n node.__data__ = data[i];\n update[i] = node;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Put any non-null nodes that don’t fit into exit.\n for (; i < groupLength; ++i) {\n if (node = group[i]) {\n exit[i] = node;\n }\n }\n}\n\nfunction bindKey(parent, group, enter, update, exit, data, key) {\n var i,\n node,\n nodeByKeyValue = new Map,\n groupLength = group.length,\n dataLength = data.length,\n keyValues = new Array(groupLength),\n keyValue;\n\n // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n for (i = 0; i < groupLength; ++i) {\n if (node = group[i]) {\n keyValues[i] = keyValue = key.call(node, node.__data__, i, group) + \"\";\n if (nodeByKeyValue.has(keyValue)) {\n exit[i] = node;\n } else {\n nodeByKeyValue.set(keyValue, node);\n }\n }\n }\n\n // Compute the key for each datum.\n // If there a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n for (i = 0; i < dataLength; ++i) {\n keyValue = key.call(parent, data[i], i, data) + \"\";\n if (node = nodeByKeyValue.get(keyValue)) {\n update[i] = node;\n node.__data__ = data[i];\n nodeByKeyValue.delete(keyValue);\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n }\n\n // Add any remaining nodes that were not bound to data to exit.\n for (i = 0; i < groupLength; ++i) {\n if ((node = group[i]) && (nodeByKeyValue.get(keyValues[i]) === node)) {\n exit[i] = node;\n }\n }\n}\n\nfunction datum(node) {\n return node.__data__;\n}\n\nfunction selection_data(value, key) {\n if (!arguments.length) return Array.from(this, datum);\n\n var bind = key ? bindKey : bindIndex,\n parents = this._parents,\n groups = this._groups;\n\n if (typeof value !== \"function\") value = constant(value);\n\n for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {\n var parent = parents[j],\n group = groups[j],\n groupLength = group.length,\n data = arraylike(value.call(parent, parent && parent.__data__, j, parents)),\n dataLength = data.length,\n enterGroup = enter[j] = new Array(dataLength),\n updateGroup = update[j] = new Array(dataLength),\n exitGroup = exit[j] = new Array(groupLength);\n\n bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);\n\n // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) {\n if (previous = enterGroup[i0]) {\n if (i0 >= i1) i1 = i0 + 1;\n while (!(next = updateGroup[i1]) && ++i1 < dataLength);\n previous._next = next || null;\n }\n }\n }\n\n update = new Selection(update, parents);\n update._enter = enter;\n update._exit = exit;\n return update;\n}\n\n// Given some data, this returns an array-like view of it: an object that\n// exposes a length property and allows numeric indexing. Note that unlike\n// selectAll, this isn’t worried about “live” collections because the resulting\n// array will only be used briefly while data is being bound. (It is possible to\n// cause the data to change while iterating by using a key function, but please\n// don’t; we’d rather avoid a gratuitous copy.)\nfunction arraylike(data) {\n return typeof data === \"object\" && \"length\" in data\n ? data // Array, TypedArray, NodeList, array-like\n : Array.from(data); // Map, Set, iterable, string, or anything else\n}\n\nfunction selection_exit() {\n return new Selection(this._exit || this._groups.map(sparse), this._parents);\n}\n\nfunction selection_join(onenter, onupdate, onexit) {\n var enter = this.enter(), update = this, exit = this.exit();\n if (typeof onenter === \"function\") {\n enter = onenter(enter);\n if (enter) enter = enter.selection();\n } else {\n enter = enter.append(onenter + \"\");\n }\n if (onupdate != null) {\n update = onupdate(update);\n if (update) update = update.selection();\n }\n if (onexit == null) exit.remove(); else onexit(exit);\n return enter && update ? enter.merge(update).order() : update;\n}\n\nfunction selection_merge(context) {\n var selection = context.selection ? context.selection() : context;\n\n for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this._parents);\n}\n\nfunction selection_order() {\n\n for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) {\n for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) {\n if (node = group[i]) {\n if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);\n next = node;\n }\n }\n }\n\n return this;\n}\n\nfunction selection_sort(compare) {\n if (!compare) compare = ascending;\n\n function compareNode(a, b) {\n return a && b ? compare(a.__data__, b.__data__) : !a - !b;\n }\n\n for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n sortgroup[i] = node;\n }\n }\n sortgroup.sort(compareNode);\n }\n\n return new Selection(sortgroups, this._parents).order();\n}\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n\nfunction selection_call() {\n var callback = arguments[0];\n arguments[0] = this;\n callback.apply(null, arguments);\n return this;\n}\n\nfunction selection_nodes() {\n return Array.from(this);\n}\n\nfunction selection_node() {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {\n var node = group[i];\n if (node) return node;\n }\n }\n\n return null;\n}\n\nfunction selection_size() {\n let size = 0;\n for (const node of this) ++size; // eslint-disable-line no-unused-vars\n return size;\n}\n\nfunction selection_empty() {\n return !this.node();\n}\n\nfunction selection_each(callback) {\n\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) callback.call(node, node.__data__, i, group);\n }\n }\n\n return this;\n}\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, value) {\n return function() {\n this.setAttribute(name, value);\n };\n}\n\nfunction attrConstantNS(fullname, value) {\n return function() {\n this.setAttributeNS(fullname.space, fullname.local, value);\n };\n}\n\nfunction attrFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttribute(name);\n else this.setAttribute(name, v);\n };\n}\n\nfunction attrFunctionNS(fullname, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.removeAttributeNS(fullname.space, fullname.local);\n else this.setAttributeNS(fullname.space, fullname.local, v);\n };\n}\n\nfunction selection_attr(name, value) {\n var fullname = namespace(name);\n\n if (arguments.length < 2) {\n var node = this.node();\n return fullname.local\n ? node.getAttributeNS(fullname.space, fullname.local)\n : node.getAttribute(fullname);\n }\n\n return this.each((value == null\n ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)\n : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value));\n}\n\nfunction defaultView(node) {\n return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node\n || (node.document && node) // node is a Window\n || node.defaultView; // node is a Document\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, value, priority) {\n return function() {\n this.style.setProperty(name, value, priority);\n };\n}\n\nfunction styleFunction(name, value, priority) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) this.style.removeProperty(name);\n else this.style.setProperty(name, v, priority);\n };\n}\n\nfunction selection_style(name, value, priority) {\n return arguments.length > 1\n ? this.each((value == null\n ? styleRemove : typeof value === \"function\"\n ? styleFunction\n : styleConstant)(name, value, priority == null ? \"\" : priority))\n : styleValue(this.node(), name);\n}\n\nfunction styleValue(node, name) {\n return node.style.getPropertyValue(name)\n || defaultView(node).getComputedStyle(node, null).getPropertyValue(name);\n}\n\nfunction propertyRemove(name) {\n return function() {\n delete this[name];\n };\n}\n\nfunction propertyConstant(name, value) {\n return function() {\n this[name] = value;\n };\n}\n\nfunction propertyFunction(name, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (v == null) delete this[name];\n else this[name] = v;\n };\n}\n\nfunction selection_property(name, value) {\n return arguments.length > 1\n ? this.each((value == null\n ? propertyRemove : typeof value === \"function\"\n ? propertyFunction\n : propertyConstant)(name, value))\n : this.node()[name];\n}\n\nfunction classArray(string) {\n return string.trim().split(/^|\\s+/);\n}\n\nfunction classList(node) {\n return node.classList || new ClassList(node);\n}\n\nfunction ClassList(node) {\n this._node = node;\n this._names = classArray(node.getAttribute(\"class\") || \"\");\n}\n\nClassList.prototype = {\n add: function(name) {\n var i = this._names.indexOf(name);\n if (i < 0) {\n this._names.push(name);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n remove: function(name) {\n var i = this._names.indexOf(name);\n if (i >= 0) {\n this._names.splice(i, 1);\n this._node.setAttribute(\"class\", this._names.join(\" \"));\n }\n },\n contains: function(name) {\n return this._names.indexOf(name) >= 0;\n }\n};\n\nfunction classedAdd(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.add(names[i]);\n}\n\nfunction classedRemove(node, names) {\n var list = classList(node), i = -1, n = names.length;\n while (++i < n) list.remove(names[i]);\n}\n\nfunction classedTrue(names) {\n return function() {\n classedAdd(this, names);\n };\n}\n\nfunction classedFalse(names) {\n return function() {\n classedRemove(this, names);\n };\n}\n\nfunction classedFunction(names, value) {\n return function() {\n (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);\n };\n}\n\nfunction selection_classed(name, value) {\n var names = classArray(name + \"\");\n\n if (arguments.length < 2) {\n var list = classList(this.node()), i = -1, n = names.length;\n while (++i < n) if (!list.contains(names[i])) return false;\n return true;\n }\n\n return this.each((typeof value === \"function\"\n ? classedFunction : value\n ? classedTrue\n : classedFalse)(names, value));\n}\n\nfunction textRemove() {\n this.textContent = \"\";\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.textContent = v == null ? \"\" : v;\n };\n}\n\nfunction selection_text(value) {\n return arguments.length\n ? this.each(value == null\n ? textRemove : (typeof value === \"function\"\n ? textFunction\n : textConstant)(value))\n : this.node().textContent;\n}\n\nfunction htmlRemove() {\n this.innerHTML = \"\";\n}\n\nfunction htmlConstant(value) {\n return function() {\n this.innerHTML = value;\n };\n}\n\nfunction htmlFunction(value) {\n return function() {\n var v = value.apply(this, arguments);\n this.innerHTML = v == null ? \"\" : v;\n };\n}\n\nfunction selection_html(value) {\n return arguments.length\n ? this.each(value == null\n ? htmlRemove : (typeof value === \"function\"\n ? htmlFunction\n : htmlConstant)(value))\n : this.node().innerHTML;\n}\n\nfunction raise() {\n if (this.nextSibling) this.parentNode.appendChild(this);\n}\n\nfunction selection_raise() {\n return this.each(raise);\n}\n\nfunction lower() {\n if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);\n}\n\nfunction selection_lower() {\n return this.each(lower);\n}\n\nfunction selection_append(name) {\n var create = typeof name === \"function\" ? name : creator(name);\n return this.select(function() {\n return this.appendChild(create.apply(this, arguments));\n });\n}\n\nfunction constantNull() {\n return null;\n}\n\nfunction selection_insert(name, before) {\n var create = typeof name === \"function\" ? name : creator(name),\n select = before == null ? constantNull : typeof before === \"function\" ? before : selector(before);\n return this.select(function() {\n return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);\n });\n}\n\nfunction remove() {\n var parent = this.parentNode;\n if (parent) parent.removeChild(this);\n}\n\nfunction selection_remove() {\n return this.each(remove);\n}\n\nfunction selection_cloneShallow() {\n var clone = this.cloneNode(false), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_cloneDeep() {\n var clone = this.cloneNode(true), parent = this.parentNode;\n return parent ? parent.insertBefore(clone, this.nextSibling) : clone;\n}\n\nfunction selection_clone(deep) {\n return this.select(deep ? selection_cloneDeep : selection_cloneShallow);\n}\n\nfunction selection_datum(value) {\n return arguments.length\n ? this.property(\"__data__\", value)\n : this.node().__data__;\n}\n\nfunction contextListener(listener) {\n return function(event) {\n listener.call(this, event, this.__data__);\n };\n}\n\nfunction parseTypenames(typenames) {\n return typenames.trim().split(/^|\\s+/).map(function(t) {\n var name = \"\", i = t.indexOf(\".\");\n if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);\n return {type: t, name: name};\n });\n}\n\nfunction onRemove(typename) {\n return function() {\n var on = this.__on;\n if (!on) return;\n for (var j = 0, i = -1, m = on.length, o; j < m; ++j) {\n if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.options);\n } else {\n on[++i] = o;\n }\n }\n if (++i) on.length = i;\n else delete this.__on;\n };\n}\n\nfunction onAdd(typename, value, options) {\n return function() {\n var on = this.__on, o, listener = contextListener(value);\n if (on) for (var j = 0, m = on.length; j < m; ++j) {\n if ((o = on[j]).type === typename.type && o.name === typename.name) {\n this.removeEventListener(o.type, o.listener, o.options);\n this.addEventListener(o.type, o.listener = listener, o.options = options);\n o.value = value;\n return;\n }\n }\n this.addEventListener(typename.type, listener, options);\n o = {type: typename.type, name: typename.name, value: value, listener: listener, options: options};\n if (!on) this.__on = [o];\n else on.push(o);\n };\n}\n\nfunction selection_on(typename, value, options) {\n var typenames = parseTypenames(typename + \"\"), i, n = typenames.length, t;\n\n if (arguments.length < 2) {\n var on = this.node().__on;\n if (on) for (var j = 0, m = on.length, o; j < m; ++j) {\n for (i = 0, o = on[j]; i < n; ++i) {\n if ((t = typenames[i]).type === o.type && t.name === o.name) {\n return o.value;\n }\n }\n }\n return;\n }\n\n on = value ? onAdd : onRemove;\n for (i = 0; i < n; ++i) this.each(on(typenames[i], value, options));\n return this;\n}\n\nfunction dispatchEvent(node, type, params) {\n var window = defaultView(node),\n event = window.CustomEvent;\n\n if (typeof event === \"function\") {\n event = new event(type, params);\n } else {\n event = window.document.createEvent(\"Event\");\n if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;\n else event.initEvent(type, false, false);\n }\n\n node.dispatchEvent(event);\n}\n\nfunction dispatchConstant(type, params) {\n return function() {\n return dispatchEvent(this, type, params);\n };\n}\n\nfunction dispatchFunction(type, params) {\n return function() {\n return dispatchEvent(this, type, params.apply(this, arguments));\n };\n}\n\nfunction selection_dispatch(type, params) {\n return this.each((typeof params === \"function\"\n ? dispatchFunction\n : dispatchConstant)(type, params));\n}\n\nfunction* selection_iterator() {\n for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) {\n for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) {\n if (node = group[i]) yield node;\n }\n }\n}\n\nvar root = [null];\n\nfunction Selection(groups, parents) {\n this._groups = groups;\n this._parents = parents;\n}\n\nfunction selection() {\n return new Selection([[document.documentElement]], root);\n}\n\nfunction selection_selection() {\n return this;\n}\n\nSelection.prototype = selection.prototype = {\n constructor: Selection,\n select: selection_select,\n selectAll: selection_selectAll,\n selectChild: selection_selectChild,\n selectChildren: selection_selectChildren,\n filter: selection_filter,\n data: selection_data,\n enter: selection_enter,\n exit: selection_exit,\n join: selection_join,\n merge: selection_merge,\n selection: selection_selection,\n order: selection_order,\n sort: selection_sort,\n call: selection_call,\n nodes: selection_nodes,\n node: selection_node,\n size: selection_size,\n empty: selection_empty,\n each: selection_each,\n attr: selection_attr,\n style: selection_style,\n property: selection_property,\n classed: selection_classed,\n text: selection_text,\n html: selection_html,\n raise: selection_raise,\n lower: selection_lower,\n append: selection_append,\n insert: selection_insert,\n remove: selection_remove,\n clone: selection_clone,\n datum: selection_datum,\n on: selection_on,\n dispatch: selection_dispatch,\n [Symbol.iterator]: selection_iterator\n};\n\nfunction select(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n\nfunction create(name) {\n return select(creator(name).call(document.documentElement));\n}\n\nvar nextId = 0;\n\nfunction local() {\n return new Local;\n}\n\nfunction Local() {\n this._ = \"@\" + (++nextId).toString(36);\n}\n\nLocal.prototype = local.prototype = {\n constructor: Local,\n get: function(node) {\n var id = this._;\n while (!(id in node)) if (!(node = node.parentNode)) return;\n return node[id];\n },\n set: function(node, value) {\n return node[this._] = value;\n },\n remove: function(node) {\n return this._ in node && delete node[this._];\n },\n toString: function() {\n return this._;\n }\n};\n\nfunction sourceEvent(event) {\n let sourceEvent;\n while (sourceEvent = event.sourceEvent) event = sourceEvent;\n return event;\n}\n\nfunction pointer(event, node) {\n event = sourceEvent(event);\n if (node === undefined) node = event.currentTarget;\n if (node) {\n var svg = node.ownerSVGElement || node;\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n if (node.getBoundingClientRect) {\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n }\n }\n return [event.pageX, event.pageY];\n}\n\nfunction pointers(events, node) {\n if (events.target) { // i.e., instanceof Event, not TouchList or iterable\n events = sourceEvent(events);\n if (node === undefined) node = events.currentTarget;\n events = events.touches || [events];\n }\n return Array.from(events, event => pointer(event, node));\n}\n\nfunction selectAll(selector) {\n return typeof selector === \"string\"\n ? new Selection([document.querySelectorAll(selector)], [document.documentElement])\n : new Selection([array(selector)], root);\n}\n\nexport { create, creator, local, matcher, namespace, namespaces, pointer, pointers, select, selectAll, selection, selector, selectorAll, styleValue as style, defaultView as window };\n","// https://d3js.org/d3-color/ v3.1.1 Copyright 2010-2026 Mike Bostock\nfunction define(constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\n\nfunction extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n for (var key in definition) prototype[key] = definition[key];\n return prototype;\n}\n\nfunction Color() {}\n\nvar darker = 0.7;\nvar brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(`^rgb\\\\(${reI},${reI},${reI}\\\\)$`),\n reRgbPercent = new RegExp(`^rgb\\\\(${reP},${reP},${reP}\\\\)$`),\n reRgbaInteger = new RegExp(`^rgba\\\\(${reI},${reI},${reI},${reN}\\\\)$`),\n reRgbaPercent = new RegExp(`^rgba\\\\(${reP},${reP},${reP},${reN}\\\\)$`),\n reHslPercent = new RegExp(`^hsl\\\\(${reN},${reP},${reP}\\\\)$`),\n reHslaPercent = new RegExp(`^hsla\\\\(${reN},${reP},${reP},${reN}\\\\)$`);\n\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n copy(channels) {\n return Object.assign(new this.constructor, this, channels);\n },\n displayable() {\n return this.rgb().displayable();\n },\n hex: color_formatHex, // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHex8: color_formatHex8,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHex8() {\n return this.rgb().formatHex8();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nfunction color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n : null) // invalid hex\n : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nfunction rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb;\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nfunction rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nfunction Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n brighter(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb() {\n return this;\n },\n clamp() {\n return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));\n },\n displayable() {\n return (-0.5 <= this.r && this.r < 255.5)\n && (-0.5 <= this.g && this.g < 255.5)\n && (-0.5 <= this.b && this.b < 255.5)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatHex8: rgb_formatHex8,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;\n}\n\nfunction rgb_formatHex8() {\n return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;\n}\n\nfunction rgb_formatRgb() {\n const a = clampa(this.opacity);\n return `${a === 1 ? \"rgb(\" : \"rgba(\"}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? \")\" : `, ${a})`}`;\n}\n\nfunction clampa(opacity) {\n return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));\n}\n\nfunction clampi(value) {\n return Math.max(0, Math.min(255, Math.round(value) || 0));\n}\n\nfunction hex(value) {\n value = clampi(value);\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;\n else if (l <= 0 || l >= 1) h = s = NaN;\n else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nfunction hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl;\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;\n else if (g === max) h = (b - r) / s + 2;\n else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n return new Hsl(h, s, l, o.opacity);\n}\n\nfunction hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb() {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(\n hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n hsl2rgb(h, m1, m2),\n hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n this.opacity\n );\n },\n clamp() {\n return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));\n },\n displayable() {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n && (0 <= this.l && this.l <= 1)\n && (0 <= this.opacity && this.opacity <= 1);\n },\n formatHsl() {\n const a = clampa(this.opacity);\n return `${a === 1 ? \"hsl(\" : \"hsla(\"}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? \")\" : `, ${a})`}`;\n }\n}));\n\nfunction clamph(value) {\n value = (value || 0) % 360;\n return value < 0 ? value + 360 : value;\n}\n\nfunction clampt(value) {\n return Math.max(0, Math.min(1, value || 0));\n}\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60\n : h < 180 ? m2\n : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n : m1) * 255;\n}\n\nconst radians = Math.PI / 180;\nconst degrees = 180 / Math.PI;\n\n// https://observablehq.com/@mbostock/lab-and-rgb\nconst K = 18,\n Xn = 0.96422,\n Yn = 1,\n Zn = 0.82521,\n t0 = 4 / 29,\n t1 = 6 / 29,\n t2 = 3 * t1 * t1,\n t3 = t1 * t1 * t1;\n\nfunction labConvert(o) {\n if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);\n if (o instanceof Hcl) return hcl2lab(o);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = rgb2lrgb(o.r),\n g = rgb2lrgb(o.g),\n b = rgb2lrgb(o.b),\n y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;\n if (r === g && g === b) x = z = y; else {\n x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);\n z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);\n }\n return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);\n}\n\nfunction gray(l, opacity) {\n return new Lab(l, 0, 0, opacity == null ? 1 : opacity);\n}\n\nfunction lab(l, a, b, opacity) {\n return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);\n}\n\nfunction Lab(l, a, b, opacity) {\n this.l = +l;\n this.a = +a;\n this.b = +b;\n this.opacity = +opacity;\n}\n\ndefine(Lab, lab, extend(Color, {\n brighter(k) {\n return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n darker(k) {\n return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);\n },\n rgb() {\n var y = (this.l + 16) / 116,\n x = isNaN(this.a) ? y : y + this.a / 500,\n z = isNaN(this.b) ? y : y - this.b / 200;\n x = Xn * lab2xyz(x);\n y = Yn * lab2xyz(y);\n z = Zn * lab2xyz(z);\n return new Rgb(\n lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),\n lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),\n lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),\n this.opacity\n );\n }\n}));\n\nfunction xyz2lab(t) {\n return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;\n}\n\nfunction lab2xyz(t) {\n return t > t1 ? t * t * t : t2 * (t - t0);\n}\n\nfunction lrgb2rgb(x) {\n return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);\n}\n\nfunction rgb2lrgb(x) {\n return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);\n}\n\nfunction hclConvert(o) {\n if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);\n if (!(o instanceof Lab)) o = labConvert(o);\n if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);\n var h = Math.atan2(o.b, o.a) * degrees;\n return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);\n}\n\nfunction lch(l, c, h, opacity) {\n return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nfunction hcl(h, c, l, opacity) {\n return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hcl(h, c, l, opacity) {\n this.h = +h;\n this.c = +c;\n this.l = +l;\n this.opacity = +opacity;\n}\n\nfunction hcl2lab(o) {\n if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);\n var h = o.h * radians;\n return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);\n}\n\ndefine(Hcl, hcl, extend(Color, {\n brighter(k) {\n return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);\n },\n darker(k) {\n return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);\n },\n rgb() {\n return hcl2lab(this).rgb();\n }\n}));\n\nvar A = -0.14861,\n B = 1.78277,\n C = -0.29227,\n D = -0.90649,\n E = 1.97294,\n ED = E * D,\n EB = E * B,\n BC_DA = B * C - D * A;\n\nfunction cubehelixConvert(o) {\n if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Rgb)) o = rgbConvert(o);\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),\n bl = b - l,\n k = (E * (g - l) - C * bl) / D,\n s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1\n h = s ? Math.atan2(k, bl) * degrees - 120 : NaN;\n return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);\n}\n\nfunction cubehelix(h, s, l, opacity) {\n return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Cubehelix(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Cubehelix, cubehelix, extend(Color, {\n brighter(k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n darker(k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Cubehelix(this.h, this.s, this.l * k, this.opacity);\n },\n rgb() {\n var h = isNaN(this.h) ? 0 : (this.h + 120) * radians,\n l = +this.l,\n a = isNaN(this.s) ? 0 : this.s * l * (1 - l),\n cosh = Math.cos(h),\n sinh = Math.sin(h);\n return new Rgb(\n 255 * (l + a * (A * cosh + B * sinh)),\n 255 * (l + a * (C * cosh + D * sinh)),\n 255 * (l + a * (E * cosh)),\n this.opacity\n );\n }\n}));\n\nexport { color, cubehelix, gray, hcl, hsl, lab, lch, rgb };\n","// https://d3js.org/d3-timer/ v3.0.2 Copyright 2010-2026 Mike Bostock\nvar frame = 0, // is an animation frame pending?\n timeout$1 = 0, // is a timeout pending?\n interval$1 = 0, // are any timers active?\n pokeDelay = 1000, // how frequently we check for clock skew\n taskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); };\n\nfunction now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nfunction Timer() {\n this._call =\n this._time =\n this._next = null;\n}\n\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function(callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;\n else taskHead = this;\n taskTail = this;\n }\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function() {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\n\nfunction timer(callback, delay, time) {\n var t = new Timer;\n t.restart(callback, delay, time);\n return t;\n}\n\nfunction timerFlush() {\n now(); // Get the current time, if not already set.\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n var t = taskHead, e;\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e);\n t = t._next;\n }\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout$1 = 0;\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(), delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0, t1 = taskHead, t2, time = Infinity;\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n if (timeout$1) timeout$1 = clearTimeout(timeout$1);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n if (delay > 24) {\n if (time < Infinity) timeout$1 = setTimeout(wake, Math.ceil(time - clock.now() - clockSkew) + 1);\n if (interval$1) interval$1 = clearInterval(interval$1);\n } else {\n if (!interval$1) clockLast = clock.now(), interval$1 = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n\nfunction timeout(callback, delay, time) {\n var t = new Timer;\n delay = delay == null ? 0 : +delay;\n t.restart(elapsed => {\n t.stop();\n callback(elapsed + delay);\n }, delay, time);\n return t;\n}\n\nfunction interval(callback, delay, time) {\n var t = new Timer, total = delay;\n if (delay == null) return t.restart(callback, delay, time), t;\n t._restart = t.restart;\n t.restart = function(callback, delay, time) {\n delay = +delay, time = time == null ? now() : +time;\n t._restart(function tick(elapsed) {\n elapsed += total;\n t._restart(tick, total += delay, time);\n callback(elapsed);\n }, delay, time);\n };\n t.restart(callback, delay, time);\n return t;\n}\n\nexport { interval, now, timeout, timer, timerFlush };\n","// https://d3js.org/d3-ease/ v3.0.2 Copyright 2010-2026 Mike Bostock, 2001 Robert Penner\nconst linear = t => +t;\n\nfunction quadIn(t) {\n return t * t;\n}\n\nfunction quadOut(t) {\n return t * (2 - t);\n}\n\nfunction quadInOut(t) {\n return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;\n}\n\nfunction cubicIn(t) {\n return t * t * t;\n}\n\nfunction cubicOut(t) {\n return --t * t * t + 1;\n}\n\nfunction cubicInOut(t) {\n return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n}\n\nvar exponent = 3;\n\nvar polyIn = (function custom(e) {\n e = +e;\n\n function polyIn(t) {\n return Math.pow(t, e);\n }\n\n polyIn.exponent = custom;\n\n return polyIn;\n})(exponent);\n\nvar polyOut = (function custom(e) {\n e = +e;\n\n function polyOut(t) {\n return 1 - Math.pow(1 - t, e);\n }\n\n polyOut.exponent = custom;\n\n return polyOut;\n})(exponent);\n\nvar polyInOut = (function custom(e) {\n e = +e;\n\n function polyInOut(t) {\n return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;\n }\n\n polyInOut.exponent = custom;\n\n return polyInOut;\n})(exponent);\n\nvar pi = Math.PI,\n halfPi = pi / 2;\n\nfunction sinIn(t) {\n return (+t === 1) ? 1 : 1 - Math.cos(t * halfPi);\n}\n\nfunction sinOut(t) {\n return Math.sin(t * halfPi);\n}\n\nfunction sinInOut(t) {\n return (1 - Math.cos(pi * t)) / 2;\n}\n\n// tpmt is two power minus ten times t scaled to [0,1]\nfunction tpmt(x) {\n return (Math.pow(2, -10 * x) - 0.0009765625) * 1.0009775171065494;\n}\n\nfunction expIn(t) {\n return tpmt(1 - +t);\n}\n\nfunction expOut(t) {\n return 1 - tpmt(t);\n}\n\nfunction expInOut(t) {\n return ((t *= 2) <= 1 ? tpmt(1 - t) : 2 - tpmt(t - 1)) / 2;\n}\n\nfunction circleIn(t) {\n return 1 - Math.sqrt(1 - t * t);\n}\n\nfunction circleOut(t) {\n return Math.sqrt(1 - --t * t);\n}\n\nfunction circleInOut(t) {\n return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;\n}\n\nvar b1 = 4 / 11,\n b2 = 6 / 11,\n b3 = 8 / 11,\n b4 = 3 / 4,\n b5 = 9 / 11,\n b6 = 10 / 11,\n b7 = 15 / 16,\n b8 = 21 / 22,\n b9 = 63 / 64,\n b0 = 1 / b1 / b1;\n\nfunction bounceIn(t) {\n return 1 - bounceOut(1 - t);\n}\n\nfunction bounceOut(t) {\n return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9;\n}\n\nfunction bounceInOut(t) {\n return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2;\n}\n\nvar overshoot = 1.70158;\n\nvar backIn = (function custom(s) {\n s = +s;\n\n function backIn(t) {\n return (t = +t) * t * (s * (t - 1) + t);\n }\n\n backIn.overshoot = custom;\n\n return backIn;\n})(overshoot);\n\nvar backOut = (function custom(s) {\n s = +s;\n\n function backOut(t) {\n return --t * t * ((t + 1) * s + t) + 1;\n }\n\n backOut.overshoot = custom;\n\n return backOut;\n})(overshoot);\n\nvar backInOut = (function custom(s) {\n s = +s;\n\n function backInOut(t) {\n return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2;\n }\n\n backInOut.overshoot = custom;\n\n return backInOut;\n})(overshoot);\n\nvar tau = 2 * Math.PI,\n amplitude = 1,\n period = 0.3;\n\nvar elasticIn = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticIn(t) {\n return a * tpmt(-(--t)) * Math.sin((s - t) / p);\n }\n\n elasticIn.amplitude = function(a) { return custom(a, p * tau); };\n elasticIn.period = function(p) { return custom(a, p); };\n\n return elasticIn;\n})(amplitude, period);\n\nvar elasticOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticOut(t) {\n return 1 - a * tpmt(t = +t) * Math.sin((t + s) / p);\n }\n\n elasticOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticOut.period = function(p) { return custom(a, p); };\n\n return elasticOut;\n})(amplitude, period);\n\nvar elasticInOut = (function custom(a, p) {\n var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau);\n\n function elasticInOut(t) {\n return ((t = t * 2 - 1) < 0\n ? a * tpmt(-t) * Math.sin((s - t) / p)\n : 2 - a * tpmt(t) * Math.sin((s + t) / p)) / 2;\n }\n\n elasticInOut.amplitude = function(a) { return custom(a, p * tau); };\n elasticInOut.period = function(p) { return custom(a, p); };\n\n return elasticInOut;\n})(amplitude, period);\n\nexport { backInOut as easeBack, backIn as easeBackIn, backInOut as easeBackInOut, backOut as easeBackOut, bounceOut as easeBounce, bounceIn as easeBounceIn, bounceInOut as easeBounceInOut, bounceOut as easeBounceOut, circleInOut as easeCircle, circleIn as easeCircleIn, circleInOut as easeCircleInOut, circleOut as easeCircleOut, cubicInOut as easeCubic, cubicIn as easeCubicIn, cubicInOut as easeCubicInOut, cubicOut as easeCubicOut, elasticOut as easeElastic, elasticIn as easeElasticIn, elasticInOut as easeElasticInOut, elasticOut as easeElasticOut, expInOut as easeExp, expIn as easeExpIn, expInOut as easeExpInOut, expOut as easeExpOut, linear as easeLinear, polyInOut as easePoly, polyIn as easePolyIn, polyInOut as easePolyInOut, polyOut as easePolyOut, quadInOut as easeQuad, quadIn as easeQuadIn, quadInOut as easeQuadInOut, quadOut as easeQuadOut, sinInOut as easeSin, sinIn as easeSinIn, sinInOut as easeSinInOut, sinOut as easeSinOut };\n","const isIterable = (obj) => Symbol.iterator in obj;\nconst hasIterableEntries = (value) => (\n // HACK: avoid checking entries type\n \"entries\" in value\n);\nconst compareEntries = (valueA, valueB) => {\n const mapA = valueA instanceof Map ? valueA : new Map(valueA.entries());\n const mapB = valueB instanceof Map ? valueB : new Map(valueB.entries());\n if (mapA.size !== mapB.size) {\n return false;\n }\n for (const [key, value] of mapA) {\n if (!mapB.has(key) || !Object.is(value, mapB.get(key))) {\n return false;\n }\n }\n return true;\n};\nconst compareIterables = (valueA, valueB) => {\n const iteratorA = valueA[Symbol.iterator]();\n const iteratorB = valueB[Symbol.iterator]();\n let nextA = iteratorA.next();\n let nextB = iteratorB.next();\n while (!nextA.done && !nextB.done) {\n if (!Object.is(nextA.value, nextB.value)) {\n return false;\n }\n nextA = iteratorA.next();\n nextB = iteratorB.next();\n }\n return !!nextA.done && !!nextB.done;\n};\nfunction shallow(valueA, valueB) {\n if (Object.is(valueA, valueB)) {\n return true;\n }\n if (typeof valueA !== \"object\" || valueA === null || typeof valueB !== \"object\" || valueB === null) {\n return false;\n }\n if (Object.getPrototypeOf(valueA) !== Object.getPrototypeOf(valueB)) {\n return false;\n }\n if (isIterable(valueA) && isIterable(valueB)) {\n if (hasIterableEntries(valueA) && hasIterableEntries(valueB)) {\n return compareEntries(valueA, valueB);\n }\n return compareIterables(valueA, valueB);\n }\n return compareEntries(\n { entries: () => Object.entries(valueA) },\n { entries: () => Object.entries(valueB) }\n );\n}\n\nexport { shallow };\n","\"use client\";\n\nimport { useState } from \"react\";\nimport { toast } from \"sonner\";\nimport {\n Workflow,\n Plus,\n Loader2,\n Trash2,\n Pencil,\n Users,\n Clock,\n CheckCircle2,\n Mail,\n MousePointerClick,\n UserPlus,\n Tag,\n FolderInput,\n Send,\n CalendarClock,\n Play,\n RefreshCw,\n} from \"lucide-react\";\nimport { useFetch, apiFetch, fmtDate } from \"../use-api\";\nimport { SectionHeading } from \"../section-heading\";\nimport { EmptyState } from \"../empty-state\";\nimport { Button } from \"@/components/ui/button\";\nimport { Skeleton } from \"@/components/ui/skeleton\";\nimport { Switch } from \"@/components/ui/switch\";\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n} from \"@/components/ui/alert-dialog\";\nimport { WorkflowBuilder } from \"./workflow-builder\";\nimport { EnrollDialog } from \"./enroll-dialog\";\nimport type { WorkflowTrigger } from \"./node-types\";\n\ninterface WorkflowListItem {\n id: string;\n name: string;\n trigger: WorkflowTrigger;\n triggerConfig: Record<string, unknown>;\n enabled: boolean;\n enrolledCount: number;\n completedCount: number;\n stepCount: number;\n createdAt: string;\n sender: { email: string; fromName: string } | null;\n}\n\nconst TRIGGER_META: Record<\n WorkflowTrigger,\n { label: string; icon: typeof MousePointerClick }\n> = {\n form_submit: { label: \"Form submitted\", icon: MousePointerClick },\n contact_added: { label: \"New contact\", icon: UserPlus },\n contact_tagged: { label: \"Contact tagged\", icon: Tag },\n contact_added_to_group: { label: \"Added to group\", icon: FolderInput },\n telegram_start: { label: \"Telegram /start\", icon: Send },\n cron: { label: \"Cron schedule\", icon: CalendarClock },\n manual: { label: \"Manual\", icon: Users },\n};\n\nexport function AutomationsSection({\n initialFormId,\n}: {\n initialFormId?: string | null;\n}) {\n const { data, loading, refetch } =\n useFetch<WorkflowListItem[]>(\"/api/workflows\");\n const [editingId, setEditingId] = useState<string | null>(() =>\n initialFormId ? \"new\" : null\n );\n const [pendingFormId, setPendingFormId] = useState<string | null>(\n initialFormId ?? null\n );\n const [enrollingId, setEnrollingId] = useState<string | null>(null);\n const [deletingId, setDeletingId] = useState<string | null>(null);\n const [runningId, setRunningId] = useState<string | null>(null);\n const [runningCron, setRunningCron] = useState(false);\n const [busy, setBusy] = useState(false);\n\n const workflows = data || [];\n\n if (editingId !== null) {\n return (\n <WorkflowBuilder\n workflowId={editingId}\n initialFormId={editingId === \"new\" ? pendingFormId : null}\n onSaved={() => {\n setPendingFormId(null);\n refetch();\n }}\n onClose={() => {\n setPendingFormId(null);\n setEditingId(null);\n }}\n />\n );\n }\n\n const runNow = async (wf: WorkflowListItem) => {\n setRunningId(wf.id);\n try {\n const res = await apiFetch<{ enrolled: number; processed: number }>(\n `/api/workflows/${wf.id}/run`,\n { method: \"POST\" }\n );\n toast.success(\n `Triggered \"${wf.name}\" · ${res.enrolled} enrolled, ${res.processed} processed`\n );\n refetch();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Run failed\");\n } finally {\n setRunningId(null);\n }\n };\n\n const confirmDelete = async () => {\n if (!deletingId) return;\n setBusy(true);\n try {\n await apiFetch(`/api/workflows/${deletingId}`, { method: \"DELETE\" });\n toast.success(\"Workflow deleted\");\n setDeletingId(null);\n refetch();\n } catch (err) {\n toast.error(\n err instanceof Error ? err.message : \"Failed to delete workflow\"\n );\n } finally {\n setBusy(false);\n }\n };\n\n const runDueSteps = async () => {\n setRunningCron(true);\n try {\n const res = await apiFetch<{\n cronWorkflowsTriggered: number;\n enrollmentsProcessed: number;\n }>(\"/api/cron\", { method: \"POST\" });\n toast.success(\n `Scheduler tick complete · ${res.cronWorkflowsTriggered} cron triggered, ${res.enrollmentsProcessed} due steps processed`\n );\n refetch();\n } catch (err) {\n toast.error(err instanceof Error ? err.message : \"Scheduler run failed\");\n } finally {\n setRunningCron(false);\n }\n };\n\n return (\n <div className=\"flex flex-col gap-6 max-w-5xl mx-auto w-full\">\n <SectionHeading\n title=\"Automations\"\n description=\"Visual flows across Gmail campaigns, Telegram bot messages, cron schedules, forms, and webhooks.\"\n action={\n <div className=\"flex items-center gap-2\">\n <Button\n variant=\"outline\"\n className=\"rounded-lg whitespace-nowrap\"\n onClick={() => void runDueSteps()}\n disabled={runningCron}\n title=\"Run due cron triggers and waiting enrollments now\"\n >\n {runningCron ? (\n <Loader2 className=\"size-4 animate-spin\" />\n ) : (\n <RefreshCw className=\"size-4\" />\n )}\n Run due steps\n </Button>\n <Button\n className=\"rounded-lg whitespace-nowrap\"\n onClick={() => {\n setPendingFormId(null);\n setEditingId(\"new\");\n }}\n >\n <Plus className=\"size-4\" /> New workflow\n </Button>\n </div>\n }\n />\n\n {loading && workflows.length === 0 ? (\n <div className=\"flex flex-col gap-4\">\n <Skeleton className=\"h-36 rounded-2xl\" />\n <Skeleton className=\"h-36 rounded-2xl\" />\n </div>\n ) : workflows.length === 0 ? (\n <EmptyState\n icon={Workflow}\n title=\"No automations yet\"\n description=\"Connect signup forms, cron schedules, campaigns, and Telegram bots on a visual node canvas.\"\n actionLabel=\"Create your first workflow\"\n onAction={() => setEditingId(\"new\")}\n />\n ) : (\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {workflows.map((wf) => (\n <WorkflowCard\n key={wf.id}\n workflow={wf}\n running={runningId === wf.id}\n onToggle={(enabled) => toggleEnabled(wf, enabled, refetch)}\n onEdit={() => setEditingId(wf.id)}\n onEnroll={() => setEnrollingId(wf.id)}\n onRun={() => void runNow(wf)}\n onDelete={() => setDeletingId(wf.id)}\n />\n ))}\n </div>\n )}\n\n <EnrollDialog\n workflowId={enrollingId}\n onClose={() => setEnrollingId(null)}\n onDone={() => refetch()}\n />\n\n <AlertDialog\n open={!!deletingId}\n onOpenChange={(o) => !o && setDeletingId(null)}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>Delete this workflow?</AlertDialogTitle>\n <AlertDialogDescription>\n The workflow and all its enrollments will be permanently removed.\n This action cannot be undone.\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={busy}>Cancel</AlertDialogCancel>\n <AlertDialogAction\n onClick={(e) => {\n e.preventDefault();\n confirmDelete();\n }}\n disabled={busy}\n className=\"bg-destructive text-white hover:bg-destructive/90\"\n >\n {busy ? <Loader2 className=\"size-4 animate-spin\" /> : \"Delete\"}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </div>\n );\n}\n\nasync function toggleEnabled(\n wf: WorkflowListItem,\n enabled: boolean,\n refetch: () => void\n) {\n try {\n await apiFetch(`/api/workflows/${wf.id}`, {\n method: \"PATCH\",\n body: JSON.stringify({ enabled }),\n });\n toast.success(enabled ? \"Workflow enabled\" : \"Workflow paused\");\n refetch();\n } catch (err) {\n toast.error(\n err instanceof Error ? err.message : \"Failed to toggle workflow\"\n );\n }\n}\n\nfunction WorkflowCard({\n workflow,\n running,\n onToggle,\n onEdit,\n onEnroll,\n onRun,\n onDelete,\n}: {\n workflow: WorkflowListItem;\n running: boolean;\n onToggle: (enabled: boolean) => void;\n onEdit: () => void;\n onEnroll: () => void;\n onRun: () => void;\n onDelete: () => void;\n}) {\n const meta = TRIGGER_META[workflow.trigger] ?? TRIGGER_META.manual;\n const TriggerIcon = meta.icon;\n const activeCount = Math.max(\n 0,\n workflow.enrolledCount - workflow.completedCount\n );\n\n return (\n <div\n className=\"bg-card border rounded-2xl p-5 flex flex-col gap-4 shadow-sm cursor-pointer hover:shadow-md hover:border-foreground/20 transition-shadow\"\n onClick={onEdit}\n role=\"button\"\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onEdit();\n }\n }}\n >\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"flex items-start gap-3 min-w-0\">\n <div className=\"size-10 rounded-xl bg-muted flex items-center justify-center text-muted-foreground shrink-0\">\n <Workflow className=\"size-5\" />\n </div>\n <div className=\"min-w-0\">\n <div className=\"flex items-center gap-2 flex-wrap\">\n <span className=\"font-medium text-foreground truncate\">\n {workflow.name}\n </span>\n {!workflow.enabled && (\n <span className=\"text-xs text-muted-foreground\">· Paused</span>\n )}\n </div>\n <div className=\"flex items-center gap-2 mt-1 text-xs text-muted-foreground flex-wrap\">\n <TriggerIcon className=\"size-3.5 shrink-0\" />\n <span>{meta.label}</span>\n {workflow.sender && (\n <>\n <span aria-hidden>·</span>\n <Mail className=\"size-3.5 shrink-0\" />\n <span className=\"truncate\">{workflow.sender.email}</span>\n </>\n )}\n </div>\n </div>\n </div>\n <div onClick={(e) => e.stopPropagation()}>\n <Switch\n checked={workflow.enabled}\n onCheckedChange={onToggle}\n aria-label={workflow.enabled ? \"Pause workflow\" : \"Enable workflow\"}\n />\n </div>\n </div>\n\n <div className=\"grid grid-cols-3 gap-2 text-xs\">\n <Stat\n icon={<Workflow className=\"size-3.5\" />}\n label=\"Steps\"\n value={workflow.stepCount}\n />\n <Stat\n icon={<Clock className=\"size-3.5\" />}\n label=\"Active\"\n value={activeCount}\n tone=\"amber\"\n />\n <Stat\n icon={<CheckCircle2 className=\"size-3.5\" />}\n label=\"Done\"\n value={workflow.completedCount}\n tone=\"green\"\n />\n </div>\n\n <div className=\"flex items-center justify-between gap-2 pt-1 border-t\">\n <div className=\"text-xs text-muted-foreground\">\n Created {fmtDate(workflow.createdAt)}\n </div>\n <div\n className=\"flex items-center gap-1\"\n onClick={(e) => e.stopPropagation()}\n >\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"rounded-lg h-8\"\n onClick={onEdit}\n >\n <Pencil className=\"size-3.5\" /> Edit\n </Button>\n {workflow.trigger === \"manual\" && (\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"rounded-lg h-8\"\n onClick={onEnroll}\n disabled={!workflow.enabled}\n >\n <Users className=\"size-3.5\" /> Enroll\n </Button>\n )}\n {workflow.trigger === \"cron\" && (\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"rounded-lg h-8\"\n onClick={onRun}\n disabled={!workflow.enabled || running}\n >\n {running ? (\n <Loader2 className=\"size-3.5 animate-spin\" />\n ) : (\n <Play className=\"size-3.5\" />\n )}\n Run now\n </Button>\n )}\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-8 text-destructive hover:text-destructive\"\n aria-label=\"Delete workflow\"\n onClick={onDelete}\n >\n <Trash2 className=\"size-4\" />\n </Button>\n </div>\n </div>\n </div>\n );\n}\n\nfunction Stat({\n icon,\n label,\n value,\n tone = \"neutral\",\n}: {\n icon: React.ReactNode;\n label: string;\n value: number;\n tone?: \"neutral\" | \"amber\" | \"green\";\n}) {\n const toneClass =\n tone === \"amber\"\n ? \"bg-chart-4/15 text-chart-5\"\n : tone === \"green\"\n ? \"bg-chart-1/10 text-chart-1\"\n : \"bg-muted text-muted-foreground\";\n return (\n <div className=\"rounded-lg border bg-background/50 p-2 flex flex-col gap-0.5\">\n <div\n className={`inline-flex w-fit items-center gap-1 rounded px-1.5 py-0.5 text-[10px] uppercase tracking-wide ${toneClass}`}\n >\n {icon}\n {label}\n </div>\n <span className=\"font-serif text-lg text-foreground leading-none tabular-nums\">\n {value}\n </span>\n </div>\n );\n}\n","\"use client\";\n\n/**\n * Shared node-type definitions, categorized palette metadata, and helpers\n * for the visual workflow builder.\n */\n\nimport type { Node } from \"@xyflow/react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport {\n Zap,\n Mail,\n Send,\n Clock,\n CalendarClock,\n Globe,\n Tag,\n MinusCircle,\n Users,\n UserMinus,\n GitBranch,\n} from \"lucide-react\";\nimport { describeCron } from \"@/lib/cron\";\n\nexport type WorkflowTrigger =\n | \"form_submit\"\n | \"contact_added\"\n | \"contact_tagged\"\n | \"contact_added_to_group\"\n | \"telegram_start\"\n | \"cron\"\n | \"manual\";\n\nexport type NodeType =\n | \"trigger\"\n | \"cron\"\n | \"sendEmail\"\n | \"sendTelegram\"\n | \"sendWebhook\"\n | \"wait\"\n | \"addTag\"\n | \"removeTag\"\n | \"addToGroup\"\n | \"removeFromGroup\"\n | \"condition\";\n\nexport type EmailContentType = \"markdown\" | \"html\";\nexport type WaitUnit = \"minutes\" | \"hours\" | \"days\";\nexport type ConditionLogic = \"and\" | \"or\";\nexport type ConditionField = \"tag\" | \"group\" | \"form\" | \"telegram\";\n\nexport interface TriggerData {\n triggerType: WorkflowTrigger;\n config: {\n formId?: string;\n tag?: string;\n groupId?: string;\n cron?: string;\n audience?: \"all\" | \"group\" | \"tag\";\n };\n}\n\nexport interface SendEmailData {\n subject: string;\n content: string;\n contentType: EmailContentType;\n preheader?: string;\n fontFamily?: string;\n campaignId?: string;\n campaignTitle?: string;\n campaignStatus?: string;\n}\n\nexport interface SendTelegramData {\n message: string;\n}\n\nexport interface SendWebhookData {\n url: string;\n channel: \"whatsapp\" | \"webhook\";\n message: string;\n}\n\nexport interface WaitData {\n amount: number;\n unit: WaitUnit;\n}\n\nexport interface CronData {\n expression: string;\n}\n\nexport interface TagData {\n tag: string;\n}\n\nexport interface GroupData {\n groupId: string;\n}\n\nexport interface ConditionItem {\n field: ConditionField;\n op?: string;\n value: string;\n}\n\nexport interface ConditionData {\n conditions: ConditionItem[];\n logic: ConditionLogic;\n}\n\nexport type AnyNodeData = (\n | TriggerData\n | SendEmailData\n | SendTelegramData\n | SendWebhookData\n | WaitData\n | CronData\n | TagData\n | GroupData\n | ConditionData\n | Record<string, unknown>\n) &\n Record<string, unknown>;\n\nexport interface FlowNode extends Node<AnyNodeData, NodeType> {\n type: NodeType;\n}\n\nexport interface FlowEdge {\n id: string;\n source: string;\n target: string;\n sourceHandle?: string;\n targetHandle?: string;\n}\n\nexport interface FlowGraph {\n nodes: Array<{\n id: string;\n type: NodeType;\n position: { x: number; y: number };\n data: AnyNodeData;\n }>;\n edges: FlowEdge[];\n}\n\nexport type NodeCategoryId =\n | \"triggers\"\n | \"messaging\"\n | \"timing\"\n | \"audience\"\n | \"logic\";\n\nexport interface NodeCategory {\n id: NodeCategoryId;\n label: string;\n description: string;\n accentDot: string;\n accentText: string;\n types: NodeType[];\n}\n\nexport const NODE_CATEGORIES: NodeCategory[] = [\n {\n id: \"triggers\",\n label: \"Triggers & Schedules\",\n description: \"Entry events and recurring cron schedules\",\n accentDot: \"bg-amber-500\",\n accentText: \"text-amber-700 dark:text-amber-400\",\n types: [\"trigger\"],\n },\n {\n id: \"messaging\",\n label: \"Messaging Channels\",\n description: \"Gmail campaigns, Telegram bot & WhatsApp webhooks\",\n accentDot: \"bg-emerald-500\",\n accentText: \"text-emerald-700 dark:text-emerald-400\",\n types: [\"sendEmail\", \"sendTelegram\", \"sendWebhook\"],\n },\n {\n id: \"timing\",\n label: \"Timing & Delays\",\n description: \"Pause flows by duration or wait until next cron slot\",\n accentDot: \"bg-stone-500\",\n accentText: \"text-stone-700 dark:text-stone-300\",\n types: [\"wait\", \"cron\"],\n },\n {\n id: \"audience\",\n label: \"Audience & CRM\",\n description: \"Organize contact tags and group memberships\",\n accentDot: \"bg-teal-500\",\n accentText: \"text-teal-700 dark:text-teal-400\",\n types: [\"addTag\", \"removeTag\", \"addToGroup\", \"removeFromGroup\"],\n },\n {\n id: \"logic\",\n label: \"Flow Logic\",\n description: \"Split journeys on tags, groups, forms, or Telegram\",\n accentDot: \"bg-rose-500\",\n accentText: \"text-rose-700 dark:text-rose-400\",\n types: [\"condition\"],\n },\n];\n\nexport interface NodeMeta {\n type: NodeType;\n label: string;\n shortDesc: string;\n category: string;\n icon: LucideIcon;\n chip: string;\n borderAccent: string;\n ring: string;\n hasInput: boolean;\n hasBranch: boolean;\n}\n\nexport const NODE_META: Record<NodeType, NodeMeta> = {\n trigger: {\n type: \"trigger\",\n label: \"Trigger\",\n shortDesc: \"Start flow on event, form, TG /start, or cron\",\n category: \"Triggers\",\n icon: Zap,\n chip: \"bg-amber-100 text-amber-800 dark:bg-amber-950/60 dark:text-amber-300\",\n borderAccent: \"border-t-amber-500/80\",\n ring: \"ring-amber-400/70\",\n hasInput: false,\n hasBranch: false,\n },\n cron: {\n type: \"cron\",\n label: \"Cron schedule\",\n shortDesc: \"Wait until next recurring cron expression\",\n category: \"Timing & Cron\",\n icon: CalendarClock,\n chip: \"bg-amber-100 text-amber-800 dark:bg-amber-950/60 dark:text-amber-300\",\n borderAccent: \"border-t-amber-500/80\",\n ring: \"ring-amber-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n sendEmail: {\n type: \"sendEmail\",\n label: \"Send email\",\n shortDesc: \"Attach a draft/sent campaign or write custom email\",\n category: \"Messaging\",\n icon: Mail,\n chip: \"bg-emerald-100 text-emerald-800 dark:bg-emerald-950/60 dark:text-emerald-300\",\n borderAccent: \"border-t-emerald-500/80\",\n ring: \"ring-emerald-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n sendTelegram: {\n type: \"sendTelegram\",\n label: \"Send Telegram\",\n shortDesc: \"Deliver a bot message to opted-in subscribers\",\n category: \"Messaging\",\n icon: Send,\n chip: \"bg-sky-100 text-sky-800 dark:bg-sky-950/60 dark:text-sky-300\",\n borderAccent: \"border-t-sky-500/80\",\n ring: \"ring-sky-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n sendWebhook: {\n type: \"sendWebhook\",\n label: \"WhatsApp / Webhook\",\n shortDesc: \"POST contact & message to WhatsApp or API webhook\",\n category: \"Messaging\",\n icon: Globe,\n chip: \"bg-teal-100 text-teal-800 dark:bg-teal-950/60 dark:text-teal-300\",\n borderAccent: \"border-t-teal-500/80\",\n ring: \"ring-teal-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n wait: {\n type: \"wait\",\n label: \"Wait delay\",\n shortDesc: \"Pause for minutes, hours, or days\",\n category: \"Timing\",\n icon: Clock,\n chip: \"bg-stone-200 text-stone-800 dark:bg-stone-800 dark:text-stone-200\",\n borderAccent: \"border-t-stone-400/80\",\n ring: \"ring-stone-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n addTag: {\n type: \"addTag\",\n label: \"Add tag\",\n shortDesc: \"Apply a tag label to the contact\",\n category: \"Audience\",\n icon: Tag,\n chip: \"bg-teal-100 text-teal-800 dark:bg-teal-950/60 dark:text-teal-300\",\n borderAccent: \"border-t-teal-500/80\",\n ring: \"ring-teal-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n removeTag: {\n type: \"removeTag\",\n label: \"Remove tag\",\n shortDesc: \"Strip a tag label from the contact\",\n category: \"Audience\",\n icon: MinusCircle,\n chip: \"bg-orange-100 text-orange-800 dark:bg-orange-950/60 dark:text-orange-300\",\n borderAccent: \"border-t-orange-500/80\",\n ring: \"ring-orange-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n addToGroup: {\n type: \"addToGroup\",\n label: \"Add to group\",\n shortDesc: \"Enroll contact into a mailing group\",\n category: \"Audience\",\n icon: Users,\n chip: \"bg-purple-100 text-purple-800 dark:bg-purple-950/60 dark:text-purple-300\",\n borderAccent: \"border-t-purple-500/80\",\n ring: \"ring-purple-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n removeFromGroup: {\n type: \"removeFromGroup\",\n label: \"Remove from group\",\n shortDesc: \"Remove contact from a mailing group\",\n category: \"Audience\",\n icon: UserMinus,\n chip: \"bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-950/60 dark:text-fuchsia-300\",\n borderAccent: \"border-t-fuchsia-500/80\",\n ring: \"ring-fuchsia-400/70\",\n hasInput: true,\n hasBranch: false,\n },\n condition: {\n type: \"condition\",\n label: \"Condition\",\n shortDesc: \"Branch Yes / No based on contact attributes\",\n category: \"Logic\",\n icon: GitBranch,\n chip: \"bg-rose-100 text-rose-800 dark:bg-rose-950/60 dark:text-rose-300\",\n borderAccent: \"border-t-rose-500/80\",\n ring: \"ring-rose-400/70\",\n hasInput: true,\n hasBranch: true,\n },\n};\n\nexport interface TriggerMeta {\n value: WorkflowTrigger;\n label: string;\n needs: \"none\" | \"form\" | \"tag\" | \"group\" | \"cron\";\n}\n\nexport const TRIGGER_META: Record<WorkflowTrigger, TriggerMeta> = {\n form_submit: { value: \"form_submit\", label: \"Form submitted\", needs: \"form\" },\n contact_added: { value: \"contact_added\", label: \"New contact\", needs: \"none\" },\n contact_tagged: { value: \"contact_tagged\", label: \"Contact tagged\", needs: \"tag\" },\n contact_added_to_group: {\n value: \"contact_added_to_group\",\n label: \"Added to group\",\n needs: \"group\",\n },\n telegram_start: {\n value: \"telegram_start\",\n label: \"Telegram /start\",\n needs: \"none\",\n },\n cron: {\n value: \"cron\",\n label: \"Cron schedule\",\n needs: \"cron\",\n },\n manual: { value: \"manual\", label: \"Manual\", needs: \"none\" },\n};\n\nexport const TRIGGER_OPTIONS: TriggerMeta[] = [\n TRIGGER_META.form_submit,\n TRIGGER_META.cron,\n TRIGGER_META.telegram_start,\n TRIGGER_META.contact_added,\n TRIGGER_META.contact_tagged,\n TRIGGER_META.contact_added_to_group,\n TRIGGER_META.manual,\n];\n\nexport function genId(prefix = \"n\"): string {\n const rand =\n typeof crypto !== \"undefined\" && \"randomUUID\" in crypto\n ? crypto.randomUUID()\n : Math.random().toString(36).slice(2) + Date.now().toString(36);\n return `${prefix}_${rand}`;\n}\n\nexport function defaultDataFor(type: NodeType): AnyNodeData {\n switch (type) {\n case \"trigger\":\n return {\n triggerType: \"manual\",\n config: {},\n };\n case \"cron\":\n return {\n expression: \"0 9 * * *\",\n };\n case \"sendEmail\":\n return {\n subject: \"\",\n content: \"\",\n contentType: \"markdown\",\n preheader: \"\",\n };\n case \"sendTelegram\":\n return { message: \"\" };\n case \"sendWebhook\":\n return {\n url: \"\",\n channel: \"whatsapp\",\n message: \"Hi {{first_name}}, thanks for connecting!\",\n };\n case \"wait\":\n return { amount: 1, unit: \"days\" };\n case \"addTag\":\n case \"removeTag\":\n return { tag: \"\" };\n case \"addToGroup\":\n case \"removeFromGroup\":\n return { groupId: \"\" };\n case \"condition\":\n return {\n conditions: [{ field: \"tag\", value: \"\" }],\n logic: \"and\",\n };\n default:\n return {};\n }\n}\n\nexport function summarize(node: Pick<FlowNode, \"type\" | \"data\">): string {\n const d = (node.data || {}) as Record<string, unknown>;\n switch (node.type) {\n case \"trigger\": {\n const tt = (d.triggerType as WorkflowTrigger) || \"manual\";\n const cfg = (d.config as Record<string, unknown> | undefined) || {};\n const meta = TRIGGER_META[tt];\n if (tt === \"form_submit\" && cfg.formId) return \"When form submitted\";\n if (tt === \"contact_tagged\" && cfg.tag) return `When tagged \"${cfg.tag}\"`;\n if (tt === \"contact_added_to_group\") return \"When added to a group\";\n if (tt === \"telegram_start\") return \"When contact sends /start in TG\";\n if (tt === \"cron\") return describeCron(String(cfg.cron || \"0 9 * * *\"));\n return `When ${meta?.label.toLowerCase() || \"triggered\"}`;\n }\n case \"cron\":\n return describeCron(String(d.expression || \"0 9 * * *\"));\n case \"sendEmail\": {\n if (d.campaignId) {\n const title = d.campaignTitle ? String(d.campaignTitle) : \"Linked campaign\";\n const status = d.campaignStatus ? ` (${String(d.campaignStatus)})` : \"\";\n return `Campaign: ${title}${status}`;\n }\n return d.subject ? `Send: ${String(d.subject)}` : \"Send email or link campaign\";\n }\n case \"sendTelegram\":\n return d.message\n ? `Telegram: ${firstLine(String(d.message))}`\n : \"Send Telegram message\";\n case \"sendWebhook\": {\n const ch = d.channel === \"whatsapp\" ? \"WhatsApp\" : \"Webhook\";\n return d.url ? `${ch}: ${firstLine(String(d.url))}` : `${ch} action`;\n }\n case \"wait\": {\n const amount = Number(d.amount) || 0;\n const unit = (d.unit as WaitUnit) || \"days\";\n if (!amount) return \"Wait\";\n return `Wait ${amount} ${unit === \"days\" ? \"day\" : unit === \"hours\" ? \"hour\" : \"minute\"}${amount === 1 ? \"\" : \"s\"}`;\n }\n case \"addTag\":\n return d.tag ? `Add tag \"${d.tag}\"` : \"Add tag\";\n case \"removeTag\":\n return d.tag ? `Remove tag \"${d.tag}\"` : \"Remove tag\";\n case \"addToGroup\":\n return \"Add to group\";\n case \"removeFromGroup\":\n return \"Remove from group\";\n case \"condition\": {\n const items = Array.isArray(d.conditions) ? d.conditions : [];\n const n = items.length;\n if (n === 0) return \"If (no conditions)\";\n const logic = d.logic === \"or\" ? \" OR \" : \" AND \";\n const parts = items\n .map((it) => {\n const c = it as ConditionItem;\n const f =\n c.field === \"tag\"\n ? \"Has tag\"\n : c.field === \"group\"\n ? \"In group\"\n : c.field === \"form\"\n ? \"Submitted form\"\n : \"Has Telegram\";\n return c.value ? `${f} ${c.value}` : f;\n })\n .join(logic);\n return `If ${parts}`;\n }\n default:\n return \"\";\n }\n}\n\nfunction firstLine(s: string): string {\n const line = s.split(/\\r?\\n/, 1)[0] || \"\";\n return line.length > 30 ? line.slice(0, 29) + \"…\" : line;\n}\n","\"use client\";\n\n/**\n * Custom React Flow node components for the workflow builder.\n *\n * CRITICAL: <Handle /> components MUST sit directly inside the outer wrapper\n * <div> outside NodeShell, never inside truncated/overflow-clipped elements,\n * so React Flow computes accurate handle bounding boxes and allows reliable\n * drag-to-connect across all node types.\n */\n\nimport { memo } from \"react\";\nimport { Handle, Position, type NodeProps, type NodeTypes } from \"@xyflow/react\";\n\nimport { cn } from \"@/lib/utils\";\nimport {\n NODE_META,\n summarize,\n type FlowNode,\n type NodeType,\n} from \"./node-types\";\n\ninterface NodeShellProps {\n type: NodeType;\n selected?: boolean;\n summary: string;\n}\n\nfunction NodeShell({ type, selected, summary }: NodeShellProps) {\n const meta = NODE_META[type] || NODE_META.sendEmail;\n const Icon = meta.icon;\n return (\n <div\n className={cn(\n \"w-[232px] rounded-xl border border-stone-200/95 border-t-[3px] bg-white text-stone-900\",\n \"shadow-[0_2px_10px_rgba(24,24,27,0.06)] transition-all hover:shadow-[0_6px_18px_rgba(24,24,27,0.1)]\",\n meta.borderAccent,\n selected &&\n `ring-2 ${meta.ring} ring-offset-2 ring-offset-[#f6f3ec] border-stone-300`\n )}\n >\n <div className=\"flex items-center justify-between gap-2 px-3 py-2 border-b border-stone-100\">\n <div className=\"flex items-center gap-2 min-w-0\">\n <div\n className={cn(\n \"flex size-6 items-center justify-center rounded-md shrink-0\",\n meta.chip\n )}\n >\n <Icon className=\"size-3.5\" />\n </div>\n <div className=\"text-[11px] font-semibold uppercase tracking-wide text-stone-600 truncate\">\n {meta.label}\n </div>\n </div>\n <span className=\"text-[10px] font-medium text-stone-400 shrink-0\">\n {meta.category}\n </span>\n </div>\n <div className={cn(\"px-3 py-2.5\", meta.hasBranch && \"pb-5\")}>\n <p className=\"text-[12.5px] font-medium text-stone-800 leading-snug line-clamp-2 break-words\">\n {summary}\n </p>\n </div>\n </div>\n );\n}\n\nconst TARGET_HANDLE_STYLE: React.CSSProperties = {\n width: 12,\n height: 12,\n background: \"#78716c\",\n border: \"2.5px solid #ffffff\",\n boxShadow: \"0 1px 3px rgba(0,0,0,0.2)\",\n zIndex: 20,\n};\n\nconst SOURCE_HANDLE_STYLE: React.CSSProperties = {\n width: 12,\n height: 12,\n background: \"#1c1917\",\n border: \"2.5px solid #ffffff\",\n boxShadow: \"0 1px 3px rgba(0,0,0,0.25)\",\n zIndex: 20,\n};\n\nconst TRUE_HANDLE_STYLE: React.CSSProperties = {\n width: 12,\n height: 12,\n background: \"#059669\",\n border: \"2.5px solid #ffffff\",\n boxShadow: \"0 1px 3px rgba(0,0,0,0.2)\",\n zIndex: 20,\n};\n\nconst FALSE_HANDLE_STYLE: React.CSSProperties = {\n width: 12,\n height: 12,\n background: \"#78716c\",\n border: \"2.5px solid #ffffff\",\n boxShadow: \"0 1px 3px rgba(0,0,0,0.2)\",\n zIndex: 20,\n};\n\ntype FlowNodeProps = NodeProps<FlowNode>;\n\nfunction makeStandardNode(nodeType: NodeType) {\n const Component = memo(function StandardNode({ data, selected }: FlowNodeProps) {\n const meta = NODE_META[nodeType];\n const summary = summarize({ type: nodeType, data });\n return (\n <div className=\"relative\">\n {meta.hasInput && (\n <Handle\n type=\"target\"\n position={Position.Top}\n isConnectable\n style={TARGET_HANDLE_STYLE}\n className=\"transition-transform hover:scale-125\"\n />\n )}\n <NodeShell type={nodeType} selected={selected} summary={summary} />\n <Handle\n type=\"source\"\n position={Position.Bottom}\n isConnectable\n style={SOURCE_HANDLE_STYLE}\n className=\"transition-transform hover:scale-125\"\n />\n </div>\n );\n });\n Component.displayName = `FlowNode_${nodeType}`;\n return Component;\n}\n\nconst TriggerNode = makeStandardNode(\"trigger\");\nconst CronNode = makeStandardNode(\"cron\");\nconst SendEmailNode = makeStandardNode(\"sendEmail\");\nconst SendTelegramNode = makeStandardNode(\"sendTelegram\");\nconst SendWebhookNode = makeStandardNode(\"sendWebhook\");\nconst WaitNode = makeStandardNode(\"wait\");\nconst AddTagNode = makeStandardNode(\"addTag\");\nconst RemoveTagNode = makeStandardNode(\"removeTag\");\nconst AddToGroupNode = makeStandardNode(\"addToGroup\");\nconst RemoveFromGroupNode = makeStandardNode(\"removeFromGroup\");\n\nconst ConditionNode = memo(function ConditionNode({\n data,\n selected,\n}: FlowNodeProps) {\n const summary = summarize({ type: \"condition\", data });\n return (\n <div className=\"relative\">\n <Handle\n type=\"target\"\n position={Position.Top}\n isConnectable\n style={TARGET_HANDLE_STYLE}\n className=\"transition-transform hover:scale-125\"\n />\n <NodeShell type=\"condition\" selected={selected} summary={summary} />\n <div className=\"pointer-events-none absolute inset-x-0 bottom-1.5 flex justify-between px-10\">\n <span className=\"text-[10px] font-semibold uppercase tracking-wide text-emerald-700 dark:text-emerald-400\">\n Yes\n </span>\n <span className=\"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground\">\n No\n </span>\n </div>\n <Handle\n type=\"source\"\n position={Position.Bottom}\n id=\"true\"\n isConnectable\n style={{ ...TRUE_HANDLE_STYLE, left: \"26%\" }}\n className=\"transition-transform hover:scale-125\"\n />\n <Handle\n type=\"source\"\n position={Position.Bottom}\n id=\"false\"\n isConnectable\n style={{ ...FALSE_HANDLE_STYLE, left: \"74%\" }}\n className=\"transition-transform hover:scale-125\"\n />\n </div>\n );\n});\n\nexport const nodeTypes: NodeTypes = {\n trigger: TriggerNode,\n cron: CronNode,\n sendEmail: SendEmailNode,\n sendTelegram: SendTelegramNode,\n sendWebhook: SendWebhookNode,\n wait: WaitNode,\n addTag: AddTagNode,\n removeTag: RemoveTagNode,\n addToGroup: AddToGroupNode,\n removeFromGroup: RemoveFromGroupNode,\n condition: ConditionNode,\n};\n","\"use client\";\n\nimport { useMemo, useState } from \"react\";\nimport { ChevronDown, ChevronRight, Plus, Search, X } from \"lucide-react\";\nimport { Input } from \"@/components/ui/input\";\nimport { cn } from \"@/lib/utils\";\nimport {\n NODE_CATEGORIES,\n NODE_META,\n type NodeCategoryId,\n type NodeType,\n} from \"./node-types\";\n\ninterface NodeLibraryProps {\n onAddNode: (type: NodeType) => void;\n hasTrigger: boolean;\n selectedNodeLabel?: string | null;\n}\n\nexport function NodeLibrary({\n onAddNode,\n hasTrigger,\n selectedNodeLabel,\n}: NodeLibraryProps) {\n const [query, setQuery] = useState(\"\");\n const [collapsed, setCollapsed] = useState<Record<NodeCategoryId, boolean>>({\n triggers: false,\n messaging: false,\n timing: false,\n audience: false,\n logic: false,\n });\n\n const normalizedQuery = query.trim().toLowerCase();\n\n const filteredCategories = useMemo(() => {\n return NODE_CATEGORIES.map((cat) => {\n const catMatch =\n !normalizedQuery ||\n cat.label.toLowerCase().includes(normalizedQuery) ||\n cat.description.toLowerCase().includes(normalizedQuery);\n const types = cat.types.filter((t) => {\n if (!normalizedQuery) return true;\n if (catMatch) return true;\n const meta = NODE_META[t];\n return (\n meta.label.toLowerCase().includes(normalizedQuery) ||\n meta.shortDesc.toLowerCase().includes(normalizedQuery) ||\n meta.category.toLowerCase().includes(normalizedQuery) ||\n t.toLowerCase().includes(normalizedQuery)\n );\n });\n return { ...cat, types };\n }).filter((c) => c.types.length > 0);\n }, [normalizedQuery]);\n\n const toggleCategory = (id: NodeCategoryId) => {\n setCollapsed((prev) => ({ ...prev, [id]: !prev[id] }));\n };\n\n return (\n <div className=\"flex h-full min-h-0 flex-col bg-card\">\n <div className=\"shrink-0 border-b p-3 flex flex-col gap-2\">\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"text-xs font-semibold uppercase tracking-wide text-muted-foreground\">\n Node Library\n </span>\n {selectedNodeLabel && (\n <span\n className=\"text-[10px] text-muted-foreground truncate max-w-[140px]\"\n title={`New nodes auto-connect after ${selectedNodeLabel} when available`}\n >\n After: {selectedNodeLabel}\n </span>\n )}\n </div>\n <div className=\"relative\">\n <Search className=\"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground\" />\n <Input\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n placeholder=\"Search nodes (cron, telegram…)\"\n className=\"h-8 pl-8 pr-7 text-xs bg-background\"\n aria-label=\"Search automation nodes\"\n />\n {query && (\n <button\n type=\"button\"\n onClick={() => setQuery(\"\")}\n aria-label=\"Clear search\"\n className=\"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground\"\n >\n <X className=\"size-3.5\" />\n </button>\n )}\n </div>\n </div>\n\n <div className=\"flex-1 min-h-0 overflow-y-auto scroll-thin p-2.5 space-y-2.5\">\n {filteredCategories.length === 0 ? (\n <div className=\"rounded-lg border border-dashed p-4 text-center text-xs text-muted-foreground\">\n No nodes match “{query}”\n </div>\n ) : (\n filteredCategories.map((cat) => {\n const isOpen = normalizedQuery.length > 0 || !collapsed[cat.id];\n return (\n <div\n key={cat.id}\n className=\"shrink-0 rounded-xl border border-border/80 bg-background/70 overflow-hidden\"\n >\n <button\n type=\"button\"\n onClick={() => toggleCategory(cat.id)}\n aria-expanded={isOpen}\n className=\"flex w-full items-center justify-between gap-2 px-3 py-2 text-left bg-muted/30 hover:bg-muted/60 transition-colors\"\n >\n <div className=\"flex items-center gap-2 min-w-0\">\n <span\n className={cn(\"size-2 rounded-full shrink-0\", cat.accentDot)}\n />\n <span className=\"text-xs font-semibold text-foreground truncate\">\n {cat.label}\n </span>\n </div>\n <div className=\"flex items-center gap-1.5 shrink-0 text-muted-foreground\">\n <span className=\"text-[10px] font-medium tabular-nums\">\n {cat.types.length}\n </span>\n {isOpen ? (\n <ChevronDown className=\"size-3.5\" />\n ) : (\n <ChevronRight className=\"size-3.5\" />\n )}\n </div>\n </button>\n\n {isOpen && (\n <div className=\"border-t border-border/60 p-1.5 space-y-1 bg-card/60\">\n {cat.types.map((type) => {\n const meta = NODE_META[type];\n const Icon = meta.icon;\n const disabled = type === \"trigger\" && hasTrigger;\n return (\n <button\n key={`${cat.id}-${type}`}\n type=\"button\"\n disabled={disabled}\n onClick={() => onAddNode(type)}\n title={\n disabled\n ? \"Only one entry trigger per workflow\"\n : meta.shortDesc\n }\n className={cn(\n \"group flex w-full items-start gap-2.5 rounded-lg border border-transparent px-2 py-2 text-left transition-colors\",\n \"hover:border-border hover:bg-card hover:shadow-2xs\",\n \"disabled:cursor-not-allowed disabled:opacity-45 disabled:hover:border-transparent disabled:hover:bg-transparent\"\n )}\n >\n <span\n className={cn(\n \"mt-0.5 flex size-6.5 shrink-0 items-center justify-center rounded-md\",\n meta.chip\n )}\n >\n <Icon className=\"size-3.5\" />\n </span>\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-center justify-between gap-1\">\n <span className=\"text-xs font-medium text-foreground truncate\">\n {meta.label}\n </span>\n <Plus className=\"size-3 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0\" />\n </div>\n <p className=\"mt-0.5 text-[11px] text-muted-foreground leading-snug line-clamp-2\">\n {meta.shortDesc}\n </p>\n </div>\n </button>\n );\n })}\n </div>\n )}\n </div>\n );\n })\n )}\n </div>\n </div>\n );\n}\n","\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/toggle.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Toggle\";\nvar Toggle = /* @__PURE__ */ React.forwardRef(\n /* @__PURE__ */ __name(function Toggle2(props, forwardedRef) {\n const { pressed: pressedProp, defaultPressed, onPressedChange, ...buttonProps } = props;\n const [pressed, setPressed] = useControllableState({\n prop: pressedProp,\n onChange: onPressedChange,\n defaultProp: defaultPressed ?? false,\n caller: NAME\n });\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-pressed\": pressed,\n \"data-state\": pressed ? \"on\" : \"off\",\n \"data-disabled\": props.disabled ? \"\" : void 0,\n ...buttonProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => {\n if (!props.disabled) {\n setPressed(!pressed);\n }\n })\n }\n );\n }, \"Toggle\")\n);\nexport {\n Toggle as Root,\n Toggle\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/toggle-group.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { Toggle } from \"@radix-ui/react-toggle\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar TOGGLE_GROUP_NAME = \"ToggleGroup\";\nvar ToggleGroupType = {\n Single: \"single\",\n Multiple: \"multiple\"\n};\nvar [createToggleGroupContext, createToggleGroupScope] = createContextScope(TOGGLE_GROUP_NAME, [\n createRovingFocusGroupScope\n]);\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar ToggleGroup = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function ToggleGroup2(props, forwardedRef) {\n const { type, ...toggleGroupProps } = props;\n if (type === ToggleGroupType.Single) {\n const singleProps = toggleGroupProps;\n return /* @__PURE__ */ jsx(ToggleGroupImplSingle, { role: \"radiogroup\", ...singleProps, ref: forwardedRef });\n }\n if (type === ToggleGroupType.Multiple) {\n const multipleProps = toggleGroupProps;\n return /* @__PURE__ */ jsx(ToggleGroupImplMultiple, { role: \"toolbar\", ...multipleProps, ref: forwardedRef });\n }\n throw new Error(`Missing prop \\`type\\` expected on \\`${TOGGLE_GROUP_NAME}\\``);\n}, \"ToggleGroup\"));\nvar [ToggleGroupValueProvider, useToggleGroupValueContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);\nvar ToggleGroupImplSingle = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function ToggleGroupImplSingle2(props, forwardedRef) {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = /* @__PURE__ */ __name(() => {\n }, \"onValueChange\"),\n ...toggleGroupSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? \"\",\n onChange: onValueChange,\n caller: TOGGLE_GROUP_NAME\n });\n return /* @__PURE__ */ jsx(\n ToggleGroupValueProvider,\n {\n scope: props.__scopeToggleGroup,\n type: ToggleGroupType.Single,\n value: React.useMemo(() => value ? [value] : [], [value]),\n onItemActivate: setValue,\n onItemDeactivate: React.useCallback(() => setValue(\"\"), [setValue]),\n children: /* @__PURE__ */ jsx(ToggleGroupImpl, { ...toggleGroupSingleProps, ref: forwardedRef })\n }\n );\n}, \"ToggleGroupImplSingle\"));\nvar ToggleGroupImplMultiple = /* @__PURE__ */ React.forwardRef(/* @__PURE__ */ __name(function ToggleGroupImplMultiple2(props, forwardedRef) {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = /* @__PURE__ */ __name(() => {\n }, \"onValueChange\"),\n ...toggleGroupMultipleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? [],\n onChange: onValueChange,\n caller: TOGGLE_GROUP_NAME\n });\n const handleButtonActivate = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleButtonDeactivate = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n ToggleGroupValueProvider,\n {\n scope: props.__scopeToggleGroup,\n type: ToggleGroupType.Multiple,\n value,\n onItemActivate: handleButtonActivate,\n onItemDeactivate: handleButtonDeactivate,\n children: /* @__PURE__ */ jsx(ToggleGroupImpl, { ...toggleGroupMultipleProps, ref: forwardedRef })\n }\n );\n}, \"ToggleGroupImplMultiple\"));\nvar [ToggleGroupContext, useToggleGroupContext] = createToggleGroupContext(TOGGLE_GROUP_NAME);\nvar ToggleGroupImpl = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function ToggleGroupImpl2(props, forwardedRef) {\n const {\n __scopeToggleGroup,\n disabled = false,\n rovingFocus = true,\n orientation,\n dir,\n loop = true,\n ...toggleGroupProps\n } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeToggleGroup);\n const direction = useDirection(dir);\n const commonProps = { dir: direction, ...toggleGroupProps };\n return /* @__PURE__ */ jsx(ToggleGroupContext, { scope: __scopeToggleGroup, rovingFocus, disabled, children: rovingFocus ? /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n orientation,\n dir: direction,\n loop,\n children: /* @__PURE__ */ jsx(Primitive.div, { ...commonProps, ref: forwardedRef })\n }\n ) : /* @__PURE__ */ jsx(Primitive.div, { ...commonProps, ref: forwardedRef }) });\n }, \"ToggleGroupImpl\")\n);\nvar ITEM_NAME = \"ToggleGroupItem\";\nvar ToggleGroupItem = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function ToggleGroupItem2(props, forwardedRef) {\n const valueContext = useToggleGroupValueContext(ITEM_NAME, props.__scopeToggleGroup);\n const context = useToggleGroupContext(ITEM_NAME, props.__scopeToggleGroup);\n const rovingFocusGroupScope = useRovingFocusGroupScope(props.__scopeToggleGroup);\n const pressed = valueContext.value.includes(props.value);\n const disabled = context.disabled || props.disabled;\n const commonProps = { ...props, pressed, disabled };\n const ref = React.useRef(null);\n return context.rovingFocus ? /* @__PURE__ */ jsx(\n RovingFocusGroup.Item,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n focusable: !disabled,\n active: pressed,\n ref,\n children: /* @__PURE__ */ jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef })\n }\n ) : /* @__PURE__ */ jsx(ToggleGroupItemImpl, { ...commonProps, ref: forwardedRef });\n }, \"ToggleGroupItem\")\n);\nvar ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef(\n // blank line to reduce diff noise\n /* @__PURE__ */ __name(function ToggleGroupItemImpl2(props, forwardedRef) {\n const { __scopeToggleGroup, value, ...itemProps } = props;\n const valueContext = useToggleGroupValueContext(ITEM_NAME, __scopeToggleGroup);\n const singleProps = { role: \"radio\", \"aria-checked\": props.pressed, \"aria-pressed\": void 0 };\n const typeProps = valueContext.type === ToggleGroupType.Single ? singleProps : void 0;\n return /* @__PURE__ */ jsx(\n Toggle,\n {\n ...typeProps,\n ...itemProps,\n ref: forwardedRef,\n onPressedChange: (pressed) => {\n if (pressed) {\n valueContext.onItemActivate(value);\n } else {\n valueContext.onItemDeactivate(value);\n }\n }\n }\n );\n }, \"ToggleGroupItemImpl\")\n);\nexport {\n ToggleGroupItem as Item,\n ToggleGroup as Root,\n ToggleGroup,\n ToggleGroupItem,\n createToggleGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst toggleVariants = cva(\n \"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-9 px-2 min-w-9\",\n sm: \"h-8 px-1.5 min-w-8\",\n lg: \"h-10 px-2.5 min-w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <TogglePrimitive.Root\n data-slot=\"toggle\"\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Toggle, toggleVariants }\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants } from \"@/components/ui/toggle\"\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n size: \"default\",\n variant: \"default\",\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n className={cn(\n \"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs\",\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n \"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l\",\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n","\"use client\";\n\nimport { useRef, useState } from \"react\";\nimport Link from \"next/link\";\nimport {\n Plus,\n Trash2,\n X,\n Info,\n MessageSquare,\n Link2,\n Unlink,\n ExternalLink,\n Loader2,\n CalendarClock,\n CheckCircle2,\n AlertTriangle,\n} from \"lucide-react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport { Separator } from \"@/components/ui/separator\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\";\nimport { Tabs, TabsList, TabsTrigger } from \"@/components/ui/tabs\";\nimport { ToggleGroup, ToggleGroupItem } from \"@/components/ui/toggle-group\";\n\nimport { CRON_PRESETS, describeCron, isValidCron, nextCronRun } from \"@/lib/cron\";\nimport { cn } from \"@/lib/utils\";\nimport { apiFetch } from \"../use-api\";\nimport {\n QuickCreateCampaignDialog,\n QuickCreateFormDialog,\n QuickCreateGroupDialog,\n type QuickSender,\n} from \"../quick-create\";\nimport {\n NODE_META,\n TRIGGER_OPTIONS,\n TRIGGER_META,\n summarize,\n type ConditionField,\n type ConditionItem,\n type ConditionLogic,\n type EmailContentType,\n type FlowEdge,\n type FlowNode,\n type NodeType,\n type TriggerData,\n type WaitUnit,\n type WorkflowTrigger,\n} from \"./node-types\";\n\nexport interface Option {\n id: string;\n name: string;\n}\n\nexport interface CampaignOption {\n id: string;\n title: string;\n subject: string;\n status: string;\n fontFamily?: string;\n}\n\nexport interface TelegramStatusInfo {\n configured: boolean;\n botUsername?: string;\n error?: string;\n}\n\ninterface PropertyPanelProps {\n selectedNode: FlowNode | null;\n nodes: FlowNode[];\n edges: FlowEdge[];\n forms: Option[];\n groups: Option[];\n campaigns: CampaignOption[];\n senders?: QuickSender[];\n defaultSenderId?: string;\n telegramStatus?: TelegramStatusInfo | null;\n updateNodeData: (id: string, partial: Record<string, unknown>) => void;\n onDeleteNode: (id: string) => void;\n onAddNode: (type: NodeType) => void;\n onConnectNodes: (\n sourceId: string,\n targetId: string,\n sourceHandle?: string\n ) => void;\n onDisconnectEdge: (edgeId: string) => void;\n onRefreshForms?: () => void;\n onRefreshGroups?: () => void;\n onRefreshCampaigns?: () => void;\n hasTrigger: boolean;\n}\n\nexport function PropertyPanel({\n selectedNode,\n nodes,\n edges,\n forms,\n groups,\n campaigns,\n senders,\n defaultSenderId,\n telegramStatus,\n updateNodeData,\n onDeleteNode,\n onAddNode,\n onConnectNodes,\n onDisconnectEdge,\n onRefreshForms,\n onRefreshGroups,\n onRefreshCampaigns,\n hasTrigger,\n}: PropertyPanelProps) {\n if (!selectedNode) {\n return (\n <EmptySelectionPanel\n nodes={nodes}\n edges={edges}\n onAddNode={onAddNode}\n hasTrigger={hasTrigger}\n />\n );\n }\n return (\n <NodeEditor\n node={selectedNode}\n nodes={nodes}\n edges={edges}\n forms={forms}\n groups={groups}\n campaigns={campaigns}\n senders={senders}\n defaultSenderId={defaultSenderId}\n telegramStatus={telegramStatus}\n updateNodeData={updateNodeData}\n onDeleteNode={onDeleteNode}\n onConnectNodes={onConnectNodes}\n onDisconnectEdge={onDisconnectEdge}\n onRefreshForms={onRefreshForms}\n onRefreshGroups={onRefreshGroups}\n onRefreshCampaigns={onRefreshCampaigns}\n />\n );\n}\n\nfunction EmptySelectionPanel({\n nodes,\n edges,\n onAddNode,\n hasTrigger,\n}: {\n nodes: FlowNode[];\n edges: FlowEdge[];\n onAddNode: (type: NodeType) => void;\n hasTrigger: boolean;\n}) {\n return (\n <div className=\"flex h-full flex-col gap-4 p-4 overflow-y-auto scroll-thin\">\n <div>\n <div className=\"flex items-center gap-2 text-sm font-medium text-foreground\">\n <Info className=\"size-4 text-muted-foreground\" />\n Inspector & Quick Wiring\n </div>\n <p className=\"mt-1.5 text-xs text-muted-foreground leading-relaxed\">\n Click any node on the canvas to configure it, link a campaign or form,\n or wire its next step. Drag from any bottom handle onto another\n node's top handle to connect.\n </p>\n </div>\n\n <Separator />\n\n <div className=\"grid grid-cols-2 gap-2 text-xs\">\n <div className=\"rounded-lg border bg-background p-2.5\">\n <div className=\"text-[10px] uppercase tracking-wide text-muted-foreground\">\n Nodes\n </div>\n <div className=\"mt-0.5 font-serif text-lg tabular-nums text-foreground\">\n {nodes.length}\n </div>\n </div>\n <div className=\"rounded-lg border bg-background p-2.5\">\n <div className=\"text-[10px] uppercase tracking-wide text-muted-foreground\">\n Connections\n </div>\n <div className=\"mt-0.5 font-serif text-lg tabular-nums text-foreground\">\n {edges.length}\n </div>\n </div>\n </div>\n\n <div className=\"flex flex-col gap-2\">\n <div className=\"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground\">\n Quick add\n </div>\n <div className=\"grid grid-cols-2 gap-1.5\">\n {([\"sendEmail\", \"sendTelegram\", \"wait\", \"cron\", \"condition\", \"sendWebhook\"] as NodeType[]).map(\n (type) => {\n const meta = NODE_META[type];\n const Icon = meta.icon;\n return (\n <button\n key={type}\n type=\"button\"\n onClick={() => onAddNode(type)}\n className=\"flex items-center gap-2 rounded-lg border bg-background px-2.5 py-2 text-left text-xs font-medium hover:bg-muted/40 transition-colors\"\n >\n <span\n className={cn(\n \"flex size-5 items-center justify-center rounded shrink-0\",\n meta.chip\n )}\n >\n <Icon className=\"size-3\" />\n </span>\n <span className=\"truncate\">{meta.label}</span>\n </button>\n );\n }\n )}\n {!hasTrigger && (\n <button\n type=\"button\"\n onClick={() => onAddNode(\"trigger\")}\n className=\"col-span-2 flex items-center justify-center gap-2 rounded-lg border border-dashed bg-background px-2.5 py-2 text-xs font-medium hover:bg-muted/40\"\n >\n <Plus className=\"size-3.5\" /> Add entry trigger\n </button>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nfunction NodeEditor({\n node,\n nodes,\n edges,\n forms,\n groups,\n campaigns,\n senders,\n defaultSenderId,\n telegramStatus,\n updateNodeData,\n onDeleteNode,\n onConnectNodes,\n onDisconnectEdge,\n onRefreshForms,\n onRefreshGroups,\n onRefreshCampaigns,\n}: {\n node: FlowNode;\n nodes: FlowNode[];\n edges: FlowEdge[];\n forms: Option[];\n groups: Option[];\n campaigns: CampaignOption[];\n senders?: QuickSender[];\n defaultSenderId?: string;\n telegramStatus?: TelegramStatusInfo | null;\n updateNodeData: (id: string, partial: Record<string, unknown>) => void;\n onDeleteNode: (id: string) => void;\n onConnectNodes: (\n sourceId: string,\n targetId: string,\n sourceHandle?: string\n ) => void;\n onDisconnectEdge: (edgeId: string) => void;\n onRefreshForms?: () => void;\n onRefreshGroups?: () => void;\n onRefreshCampaigns?: () => void;\n}) {\n const meta = NODE_META[node.type] || NODE_META.sendEmail;\n const Icon = meta.icon;\n const data = node.data as Record<string, unknown>;\n\n const set = (partial: Record<string, unknown>) =>\n updateNodeData(node.id, partial);\n\n return (\n <div className=\"flex h-full min-h-0 flex-col\">\n <div className=\"shrink-0 flex items-center gap-2.5 border-b px-4 py-3\">\n <span\n className={cn(\n \"flex size-7 items-center justify-center rounded-md shrink-0\",\n meta.chip\n )}\n >\n <Icon className=\"size-4\" />\n </span>\n <div className=\"min-w-0\">\n <div className=\"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground\">\n {meta.label}\n </div>\n <div className=\"text-xs text-muted-foreground truncate\">\n {meta.category} · <span className=\"font-mono\">{node.id.slice(0, 10)}</span>\n </div>\n </div>\n </div>\n\n <div className=\"flex-1 min-h-0 overflow-y-auto scroll-thin\">\n <div className=\"flex flex-col gap-4 p-4\">\n {node.type === \"trigger\" && (\n <TriggerEditor\n data={data as unknown as TriggerData}\n set={set}\n forms={forms}\n groups={groups}\n telegramStatus={telegramStatus}\n onRefreshForms={onRefreshForms}\n onRefreshGroups={onRefreshGroups}\n />\n )}\n {node.type === \"cron\" && <CronEditor data={data} set={set} />}\n {node.type === \"sendEmail\" && (\n <SendEmailEditor\n data={data}\n set={set}\n campaigns={campaigns}\n senders={senders}\n defaultSenderId={defaultSenderId}\n onRefreshCampaigns={onRefreshCampaigns}\n />\n )}\n {node.type === \"sendTelegram\" && (\n <SendTelegramEditor\n data={data}\n set={set}\n telegramStatus={telegramStatus}\n />\n )}\n {node.type === \"sendWebhook\" && (\n <SendWebhookEditor data={data} set={set} />\n )}\n {node.type === \"wait\" && <WaitEditor data={data} set={set} />}\n {(node.type === \"addTag\" || node.type === \"removeTag\") && (\n <TagEditor data={data} set={set} />\n )}\n {(node.type === \"addToGroup\" || node.type === \"removeFromGroup\") && (\n <GroupEditor\n data={data}\n set={set}\n groups={groups}\n onRefreshGroups={onRefreshGroups}\n />\n )}\n {node.type === \"condition\" && (\n <ConditionEditor\n data={data}\n set={set}\n forms={forms}\n groups={groups}\n onRefreshForms={onRefreshForms}\n onRefreshGroups={onRefreshGroups}\n />\n )}\n\n <Separator />\n\n <ConnectionEditor\n node={node}\n nodes={nodes}\n edges={edges}\n onConnectNodes={onConnectNodes}\n onDisconnectEdge={onDisconnectEdge}\n />\n </div>\n </div>\n\n <div className=\"border-t p-3\">\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"w-full rounded-lg text-destructive hover:text-destructive hover:bg-destructive/5\"\n onClick={() => onDeleteNode(node.id)}\n disabled={node.type === \"trigger\"}\n title={\n node.type === \"trigger\"\n ? \"The trigger node cannot be deleted\"\n : \"Delete this node and its connections\"\n }\n >\n <Trash2 className=\"size-3.5\" />\n Delete node\n </Button>\n </div>\n </div>\n );\n}\n\nfunction ConnectionEditor({\n node,\n nodes,\n edges,\n onConnectNodes,\n onDisconnectEdge,\n}: {\n node: FlowNode;\n nodes: FlowNode[];\n edges: FlowEdge[];\n onConnectNodes: (\n sourceId: string,\n targetId: string,\n sourceHandle?: string\n ) => void;\n onDisconnectEdge: (edgeId: string) => void;\n}) {\n const candidates = nodes.filter(\n (n) => n.id !== node.id && n.type !== \"trigger\"\n );\n const outgoing = edges.filter((e) => e.source === node.id);\n\n const renderSlot = (label: string, handleId?: string) => {\n const existing = outgoing.find((e) =>\n handleId ? e.sourceHandle === handleId : !e.sourceHandle || e.sourceHandle === \"out\"\n );\n const targetNode = existing\n ? nodes.find((n) => n.id === existing.target)\n : null;\n\n return (\n <div className=\"flex flex-col gap-1.5 rounded-lg border bg-background p-2.5\">\n <div className=\"flex items-center justify-between text-[11px] font-medium text-muted-foreground\">\n <span className=\"flex items-center gap-1.5\">\n <Link2 className=\"size-3\" />\n {label}\n </span>\n {existing && (\n <button\n type=\"button\"\n onClick={() => onDisconnectEdge(existing.id)}\n className=\"inline-flex items-center gap-1 text-[11px] text-destructive hover:underline\"\n >\n <Unlink className=\"size-3\" /> Unlink\n </button>\n )}\n </div>\n <Select\n value={existing?.target || \"__none__\"}\n onValueChange={(targetId) => {\n if (targetId === \"__none__\") {\n if (existing) onDisconnectEdge(existing.id);\n return;\n }\n onConnectNodes(node.id, targetId, handleId);\n }}\n >\n <SelectTrigger className=\"h-8 w-full text-xs\">\n <SelectValue placeholder=\"Not connected\" />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"__none__\">Not connected</SelectItem>\n {candidates.map((c) => (\n <SelectItem key={c.id} value={c.id}>\n {NODE_META[c.type]?.label}: {summarize(c)}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n {targetNode && (\n <div className=\"text-[11px] text-muted-foreground truncate\">\n Flows to <span className=\"text-foreground\">{NODE_META[targetNode.type]?.label}</span>\n </div>\n )}\n </div>\n );\n };\n\n return (\n <div className=\"flex flex-col gap-2\">\n <Label className=\"text-xs font-medium text-foreground\">\n Next step wiring\n </Label>\n {node.type === \"condition\" ? (\n <div className=\"flex flex-col gap-2\">\n {renderSlot(\"When Yes (true)\", \"true\")}\n {renderSlot(\"When No (false)\", \"false\")}\n </div>\n ) : (\n renderSlot(\"Next connected step\")\n )}\n </div>\n );\n}\n\nfunction Field({\n label,\n hint,\n children,\n}: {\n label: string;\n hint?: string;\n children: React.ReactNode;\n}) {\n return (\n <div className=\"flex flex-col gap-1.5\">\n <Label className=\"text-xs font-medium text-foreground\">{label}</Label>\n {children}\n {hint && <p className=\"text-xs text-muted-foreground leading-snug\">{hint}</p>}\n </div>\n );\n}\n\nfunction Note({ children }: { children: React.ReactNode }) {\n return (\n <div className=\"flex items-start gap-2 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-900\">\n <Info className=\"size-3.5 mt-0.5 shrink-0\" />\n <p className=\"leading-snug\">{children}</p>\n </div>\n );\n}\n\nfunction MergeTags({ onPick }: { onPick: (tag: string) => void }) {\n const tags = [\"{{name}}\", \"{{first_name}}\", \"{{email}}\"];\n return (\n <div className=\"flex flex-wrap items-center gap-1.5\">\n <span className=\"text-[10px] uppercase tracking-wide text-muted-foreground\">\n Merge tags\n </span>\n {tags.map((t) => (\n <button\n key={t}\n type=\"button\"\n onClick={() => onPick(t)}\n className=\"rounded-md border bg-card px-2 py-0.5 text-[11px] font-mono text-muted-foreground hover:border-foreground/30 hover:text-foreground transition-colors\"\n >\n {t}\n </button>\n ))}\n </div>\n );\n}\n\nfunction TriggerEditor({\n data,\n set,\n forms,\n groups,\n telegramStatus,\n onRefreshForms,\n onRefreshGroups,\n}: {\n data: TriggerData;\n set: (p: Record<string, unknown>) => void;\n forms: Option[];\n groups: Option[];\n telegramStatus?: TelegramStatusInfo | null;\n onRefreshForms?: () => void;\n onRefreshGroups?: () => void;\n}) {\n const triggerType = data.triggerType || \"manual\";\n const config = data.config || {};\n const meta = TRIGGER_META[triggerType];\n const [createFormOpen, setCreateFormOpen] = useState(false);\n const [createGroupOpen, setCreateGroupOpen] = useState(false);\n\n const setTriggerType = (tt: WorkflowTrigger) => {\n set({\n triggerType: tt,\n config: tt === \"cron\" ? { cron: \"0 9 * * *\", audience: \"all\" } : {},\n });\n };\n\n const setConfig = (partial: Record<string, unknown>) => {\n set({ config: { ...config, ...partial } });\n };\n\n const cronExpr = config.cron || \"0 9 * * *\";\n const cronValid = isValidCron(cronExpr);\n const nextRun = cronValid ? nextCronRun(cronExpr, new Date()) : null;\n\n return (\n <>\n <Field label=\"Trigger type\">\n <Select\n value={triggerType}\n onValueChange={(v) => setTriggerType(v as WorkflowTrigger)}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder=\"Choose a trigger\" />\n </SelectTrigger>\n <SelectContent>\n {TRIGGER_OPTIONS.map((opt) => (\n <SelectItem key={opt.value} value={opt.value}>\n {opt.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </Field>\n\n {meta?.needs === \"form\" && (\n <Field\n label=\"Linked form\"\n hint=\"Contacts enter this workflow automatically whenever this form is submitted.\"\n >\n <Select\n value={config.formId || \"\"}\n onValueChange={(v) => {\n if (v === \"__create_form__\") {\n setCreateFormOpen(true);\n return;\n }\n setConfig({ formId: v });\n }}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue\n placeholder={\n forms.length === 0 ? \"No forms — create one\" : \"Pick a form\"\n }\n />\n </SelectTrigger>\n <SelectContent>\n {forms.map((f) => (\n <SelectItem key={f.id} value={f.id}>\n {f.name}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_form__\" className=\"font-medium text-primary\">\n + Create new form…\n </SelectItem>\n </SelectContent>\n </Select>\n </Field>\n )}\n\n {meta?.needs === \"tag\" && (\n <Field\n label=\"Tag\"\n hint=\"Contacts enter the flow when this tag is applied.\"\n >\n <Input\n value={config.tag || \"\"}\n placeholder=\"e.g. vip\"\n onChange={(e) => setConfig({ tag: e.target.value })}\n />\n </Field>\n )}\n\n {meta?.needs === \"group\" && (\n <Field\n label=\"Group\"\n hint=\"Contacts enter the flow when added to this group.\"\n >\n <Select\n value={config.groupId || \"\"}\n onValueChange={(v) => {\n if (v === \"__create_group__\") {\n setCreateGroupOpen(true);\n return;\n }\n setConfig({ groupId: v });\n }}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue\n placeholder={\n groups.length === 0 ? \"No groups — create one\" : \"Pick a group\"\n }\n />\n </SelectTrigger>\n <SelectContent>\n {groups.map((g) => (\n <SelectItem key={g.id} value={g.id}>\n {g.name}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_group__\" className=\"font-medium text-primary\">\n + Create new group…\n </SelectItem>\n </SelectContent>\n </Select>\n </Field>\n )}\n\n {meta?.needs === \"cron\" && (\n <div className=\"flex flex-col gap-3 rounded-lg border bg-background p-3\">\n <Field label=\"Schedule preset\">\n <Select\n value={\n CRON_PRESETS.find((p) => p.expression === cronExpr)?.expression ||\n \"custom\"\n }\n onValueChange={(v) => {\n if (v !== \"custom\") setConfig({ cron: v });\n }}\n >\n <SelectTrigger className=\"w-full h-8 text-xs\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {CRON_PRESETS.map((p) => (\n <SelectItem key={p.expression} value={p.expression}>\n {p.label}\n </SelectItem>\n ))}\n <SelectItem value=\"custom\">Custom cron expression</SelectItem>\n </SelectContent>\n </Select>\n </Field>\n\n <Field\n label=\"Cron expression (UTC)\"\n hint={\n cronValid\n ? `${describeCron(cronExpr)}${nextRun ? ` · Next: ${nextRun.toUTCString().replace(\":00 GMT\", \" UTC\")}` : \"\"}`\n : \"Enter a valid 5-field cron (min hour dom mon dow)\"\n }\n >\n <Input\n value={cronExpr}\n onChange={(e) => setConfig({ cron: e.target.value })}\n className=\"font-mono text-xs\"\n placeholder=\"0 9 * * *\"\n />\n </Field>\n\n <Field label=\"Target audience\">\n <Select\n value={config.audience || \"all\"}\n onValueChange={(v) =>\n setConfig({ audience: v as \"all\" | \"group\" | \"tag\" })\n }\n >\n <SelectTrigger className=\"w-full h-8 text-xs\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"all\">All active contacts</SelectItem>\n <SelectItem value=\"group\">Specific group</SelectItem>\n <SelectItem value=\"tag\">Specific tag</SelectItem>\n </SelectContent>\n </Select>\n </Field>\n\n {config.audience === \"group\" && (\n <Select\n value={config.groupId || \"\"}\n onValueChange={(v) => {\n if (v === \"__create_group__\") {\n setCreateGroupOpen(true);\n return;\n }\n setConfig({ groupId: v });\n }}\n >\n <SelectTrigger className=\"w-full h-8 text-xs\">\n <SelectValue placeholder=\"Pick target group\" />\n </SelectTrigger>\n <SelectContent>\n {groups.map((g) => (\n <SelectItem key={g.id} value={g.id}>\n {g.name}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_group__\" className=\"font-medium text-primary\">\n + Create new group…\n </SelectItem>\n </SelectContent>\n </Select>\n )}\n\n {config.audience === \"tag\" && (\n <Input\n value={config.tag || \"\"}\n onChange={(e) => setConfig({ tag: e.target.value })}\n placeholder=\"Target tag (e.g. newsletter)\"\n className=\"h-8 text-xs\"\n />\n )}\n </div>\n )}\n\n {triggerType === \"telegram_start\" && (\n <TelegramConnectionBadge status={telegramStatus} />\n )}\n\n <Note>\n Entry trigger — contacts enter the workflow whenever this event or\n schedule fires.\n </Note>\n\n <QuickCreateFormDialog\n open={createFormOpen}\n onOpenChange={setCreateFormOpen}\n onCreated={(f) => {\n onRefreshForms?.();\n setConfig({ formId: f.id });\n }}\n />\n\n <QuickCreateGroupDialog\n open={createGroupOpen}\n onOpenChange={setCreateGroupOpen}\n onCreated={(g) => {\n onRefreshGroups?.();\n setConfig({ groupId: g.id });\n }}\n />\n </>\n );\n}\n\nfunction CronEditor({\n data,\n set,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n}) {\n const expr = (data.expression as string) || \"0 9 * * *\";\n const valid = isValidCron(expr);\n const next = valid ? nextCronRun(expr, new Date()) : null;\n\n return (\n <>\n <Field label=\"Schedule preset\">\n <Select\n value={\n CRON_PRESETS.find((p) => p.expression === expr)?.expression ||\n \"custom\"\n }\n onValueChange={(v) => {\n if (v !== \"custom\") set({ expression: v });\n }}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {CRON_PRESETS.map((p) => (\n <SelectItem key={p.expression} value={p.expression}>\n {p.label}\n </SelectItem>\n ))}\n <SelectItem value=\"custom\">Custom cron expression</SelectItem>\n </SelectContent>\n </Select>\n </Field>\n\n <Field\n label=\"Cron expression (5-field UTC)\"\n hint={\n valid\n ? `Schedule: ${describeCron(expr)}`\n : \"Expected 5 fields: minute hour day-of-month month day-of-week\"\n }\n >\n <Input\n value={expr}\n onChange={(e) => set({ expression: e.target.value })}\n className=\"font-mono text-xs\"\n placeholder=\"0 9 * * 1\"\n />\n </Field>\n\n {next && (\n <div className=\"flex items-start gap-2 rounded-md border bg-muted/40 px-3 py-2 text-xs text-muted-foreground\">\n <CalendarClock className=\"size-3.5 mt-0.5 shrink-0\" />\n <span className=\"tabular-nums\">\n Next slot: {next.toUTCString().replace(\":00 GMT\", \" UTC\")}\n </span>\n </div>\n )}\n </>\n );\n}\n\nfunction SendEmailEditor({\n data,\n set,\n campaigns,\n senders,\n defaultSenderId,\n onRefreshCampaigns,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n campaigns: CampaignOption[];\n senders?: QuickSender[];\n defaultSenderId?: string;\n onRefreshCampaigns?: () => void;\n}) {\n const campaignId = (data.campaignId as string) || \"\";\n const [mode, setMode] = useState<\"custom\" | \"campaign\">(\n campaignId ? \"campaign\" : \"custom\"\n );\n const [loadingCampaign, setLoadingCampaign] = useState(false);\n const [createCampaignOpen, setCreateCampaignOpen] = useState(false);\n\n const subject = (data.subject as string) || \"\";\n const content = (data.content as string) || \"\";\n const contentType = (data.contentType as EmailContentType) || \"markdown\";\n const preheader = (data.preheader as string) || \"\";\n const taRef = useRef<HTMLTextAreaElement | null>(null);\n\n const attachCampaign = async (id: string) => {\n if (!id || id === \"__none__\") {\n set({\n campaignId: undefined,\n campaignTitle: undefined,\n campaignStatus: undefined,\n });\n return;\n }\n setLoadingCampaign(true);\n try {\n const full = await apiFetch<{\n id: string;\n title: string;\n subject: string;\n content: string;\n contentType: EmailContentType;\n preheader?: string | null;\n fontFamily?: string;\n status: string;\n }>(`/api/campaigns/${id}`);\n set({\n campaignId: full.id,\n campaignTitle: full.title,\n campaignStatus: full.status,\n subject: full.subject,\n content: full.content,\n contentType: full.contentType === \"html\" ? \"html\" : \"markdown\",\n preheader: full.preheader || \"\",\n fontFamily: full.fontFamily || \"helvetica\",\n });\n } catch {\n const fallback = campaigns.find((c) => c.id === id);\n if (fallback) {\n set({\n campaignId: fallback.id,\n campaignTitle: fallback.title,\n campaignStatus: fallback.status,\n subject: fallback.subject,\n });\n }\n } finally {\n setLoadingCampaign(false);\n }\n };\n\n const insertAtCursor = (tag: string) => {\n const el = taRef.current;\n if (!el) {\n set({ content: content + tag });\n return;\n }\n const start = el.selectionStart ?? content.length;\n const end = el.selectionEnd ?? content.length;\n const next = content.slice(0, start) + tag + content.slice(end);\n set({ content: next });\n requestAnimationFrame(() => {\n el.focus();\n const pos = start + tag.length;\n el.setSelectionRange(pos, pos);\n });\n };\n\n return (\n <>\n <Field label=\"Email source\">\n <Tabs\n value={mode}\n onValueChange={(v) => {\n const nextMode = v as \"custom\" | \"campaign\";\n setMode(nextMode);\n if (nextMode === \"custom\" && campaignId) {\n set({\n campaignId: undefined,\n campaignTitle: undefined,\n campaignStatus: undefined,\n });\n }\n }}\n >\n <TabsList className=\"w-full\">\n <TabsTrigger value=\"campaign\" className=\"flex-1 text-xs\">\n Link Campaign\n </TabsTrigger>\n <TabsTrigger value=\"custom\" className=\"flex-1 text-xs\">\n Custom Email\n </TabsTrigger>\n </TabsList>\n </Tabs>\n </Field>\n\n {mode === \"campaign\" ? (\n <div className=\"flex flex-col gap-3\">\n <Field\n label=\"Select draft or sent campaign\"\n hint=\"Any draft or previously sent newsletter can be reused inside this automation step.\"\n >\n <Select\n value={campaignId}\n onValueChange={(v) => {\n if (v === \"__create_campaign__\") {\n setCreateCampaignOpen(true);\n return;\n }\n void attachCampaign(v);\n }}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue\n placeholder={\n campaigns.length === 0\n ? \"No campaigns — create one\"\n : \"Pick a campaign\"\n }\n />\n </SelectTrigger>\n <SelectContent>\n {campaigns.map((c) => (\n <SelectItem key={c.id} value={c.id}>\n [{c.status}] {c.title}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_campaign__\" className=\"font-medium text-primary\">\n + Create new campaign…\n </SelectItem>\n </SelectContent>\n </Select>\n </Field>\n\n {loadingCampaign && (\n <div className=\"flex items-center gap-2 text-xs text-muted-foreground\">\n <Loader2 className=\"size-3.5 animate-spin\" />\n Loading campaign content…\n </div>\n )}\n\n {campaignId && !loadingCampaign && (\n <div className=\"rounded-lg border bg-background p-3 flex flex-col gap-1.5\">\n <div className=\"flex items-center justify-between gap-2\">\n <span className=\"text-xs font-semibold text-foreground truncate\">\n {String(data.campaignTitle || \"Linked campaign\")}\n </span>\n <span className=\"text-[11px] uppercase tracking-wide text-muted-foreground shrink-0\">\n {String(data.campaignStatus || \"draft\")}\n </span>\n </div>\n <div className=\"text-xs text-muted-foreground truncate\">\n Subject: {subject || \"(none)\"}\n </div>\n <Link\n href={`/dashboard/campaigns/${campaignId}`}\n className=\"mt-1 inline-flex items-center gap-1 text-xs font-medium text-foreground hover:underline\"\n >\n Edit in Campaign Studio <ExternalLink className=\"size-3\" />\n </Link>\n </div>\n )}\n </div>\n ) : (\n <>\n <Field label=\"Subject\">\n <Input\n value={subject}\n placeholder=\"Welcome to MailCast\"\n onChange={(e) => set({ subject: e.target.value })}\n />\n </Field>\n\n <Field label=\"Content type\">\n <Tabs\n value={contentType}\n onValueChange={(v) => set({ contentType: v as EmailContentType })}\n >\n <TabsList className=\"w-full\">\n <TabsTrigger value=\"markdown\" className=\"flex-1\">\n Markdown\n </TabsTrigger>\n <TabsTrigger value=\"html\" className=\"flex-1\">\n HTML\n </TabsTrigger>\n </TabsList>\n </Tabs>\n </Field>\n\n <Field label=\"Body\">\n <Textarea\n ref={taRef}\n value={content}\n rows={7}\n className={cn(contentType === \"html\" && \"font-mono text-xs\")}\n placeholder={\n contentType === \"html\"\n ? \"<h1>Hello {{first_name}}</h1>\\n<p>Thanks for joining.</p>\"\n : \"# Hello {{first_name}},\\n\\nThanks for joining.\"\n }\n onChange={(e) => set({ content: e.target.value })}\n />\n </Field>\n\n <MergeTags onPick={insertAtCursor} />\n\n <Field\n label=\"Preheader\"\n hint=\"Short inbox preview shown after the subject line.\"\n >\n <Input\n value={preheader}\n placeholder=\"A quick note to say hello\"\n onChange={(e) => set({ preheader: e.target.value })}\n />\n </Field>\n </>\n )}\n\n <QuickCreateCampaignDialog\n open={createCampaignOpen}\n onOpenChange={setCreateCampaignOpen}\n defaultSenderId={defaultSenderId}\n senders={senders}\n onCreated={(created) => {\n onRefreshCampaigns?.();\n void attachCampaign(created.id);\n }}\n />\n </>\n );\n}\n\nfunction TelegramConnectionBadge({\n status,\n}: {\n status?: TelegramStatusInfo | null;\n}) {\n if (!status) return null;\n if (status.configured && !status.error) {\n return (\n <div className=\"flex items-center justify-between gap-2 rounded-md border border-emerald-200 bg-emerald-50 px-3 py-2 text-xs text-emerald-900\">\n <span className=\"flex items-center gap-1.5 font-medium\">\n <CheckCircle2 className=\"size-3.5 shrink-0\" />\n Bot connected{status.botUsername ? ` (@${status.botUsername})` : \"\"}\n </span>\n <Link href=\"/dashboard/settings\" className=\"underline\">\n Settings\n </Link>\n </div>\n );\n }\n return (\n <div className=\"flex items-center justify-between gap-2 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-900\">\n <span className=\"flex items-center gap-1.5\">\n <AlertTriangle className=\"size-3.5 shrink-0\" />\n Telegram bot not configured\n </span>\n <Link href=\"/dashboard/settings\" className=\"underline font-medium\">\n Configure\n </Link>\n </div>\n );\n}\n\nfunction SendTelegramEditor({\n data,\n set,\n telegramStatus,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n telegramStatus?: TelegramStatusInfo | null;\n}) {\n const message = (data.message as string) || \"\";\n const taRef = useRef<HTMLTextAreaElement | null>(null);\n\n const insertAtCursor = (tag: string) => {\n const el = taRef.current;\n if (!el) {\n set({ message: message + tag });\n return;\n }\n const start = el.selectionStart ?? message.length;\n const end = el.selectionEnd ?? message.length;\n const next = message.slice(0, start) + tag + message.slice(end);\n set({ message: next });\n requestAnimationFrame(() => {\n el.focus();\n const pos = start + tag.length;\n el.setSelectionRange(pos, pos);\n });\n };\n\n return (\n <>\n <TelegramConnectionBadge status={telegramStatus} />\n <Field label=\"Message\" hint=\"Markdown-formatted Telegram message.\">\n <Textarea\n ref={taRef}\n value={message}\n rows={7}\n placeholder=\"Hi {{first_name}} — thanks for connecting on Telegram!\"\n onChange={(e) => set({ message: e.target.value })}\n />\n </Field>\n <MergeTags onPick={insertAtCursor} />\n <Note>\n Delivers directly to contacts who have started your Telegram bot.\n Contacts without a stored chat id are skipped gracefully.\n </Note>\n </>\n );\n}\n\nfunction SendWebhookEditor({\n data,\n set,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n}) {\n const channel = (data.channel as \"whatsapp\" | \"webhook\") || \"whatsapp\";\n const url = (data.url as string) || \"\";\n const message = (data.message as string) || \"\";\n const taRef = useRef<HTMLTextAreaElement | null>(null);\n\n const insertAtCursor = (tag: string) => {\n const el = taRef.current;\n if (!el) {\n set({ message: message + tag });\n return;\n }\n const start = el.selectionStart ?? message.length;\n const end = el.selectionEnd ?? message.length;\n const next = message.slice(0, start) + tag + message.slice(end);\n set({ message: next });\n requestAnimationFrame(() => {\n el.focus();\n const pos = start + tag.length;\n el.setSelectionRange(pos, pos);\n });\n };\n\n return (\n <>\n <Field label=\"Channel preset\">\n <Select\n value={channel}\n onValueChange={(v) => set({ channel: v as \"whatsapp\" | \"webhook\" })}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"whatsapp\">WhatsApp Bridge / Relay</SelectItem>\n <SelectItem value=\"webhook\">Custom HTTPS Webhook</SelectItem>\n </SelectContent>\n </Select>\n </Field>\n\n <Field\n label=\"Endpoint URL (HTTPS)\"\n hint=\"Receives a JSON POST payload with channel, contact details, and rendered message.\"\n >\n <Input\n value={url}\n onChange={(e) => set({ url: e.target.value })}\n placeholder=\"https://api.yourdomain.com/whatsapp/send\"\n className=\"font-mono text-xs\"\n />\n </Field>\n\n <Field label=\"Message payload\">\n <Textarea\n ref={taRef}\n value={message}\n rows={5}\n placeholder=\"Hi {{first_name}}, your update is ready.\"\n onChange={(e) => set({ message: e.target.value })}\n />\n </Field>\n\n <MergeTags onPick={insertAtCursor} />\n </>\n );\n}\n\nfunction WaitEditor({\n data,\n set,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n}) {\n const amount = Number(data.amount) || 0;\n const unit = (data.unit as WaitUnit) || \"days\";\n return (\n <>\n <div className=\"grid grid-cols-2 gap-3\">\n <Field label=\"Amount\">\n <Input\n type=\"number\"\n min={1}\n value={amount || \"\"}\n onChange={(e) =>\n set({ amount: Math.max(1, Number(e.target.value) || 1) })\n }\n />\n </Field>\n <Field label=\"Unit\">\n <Select\n value={unit}\n onValueChange={(v) => set({ unit: v as WaitUnit })}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectItem value=\"minutes\">Minutes</SelectItem>\n <SelectItem value=\"hours\">Hours</SelectItem>\n <SelectItem value=\"days\">Days</SelectItem>\n </SelectContent>\n </Select>\n </Field>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n The contact's progress pauses here until the delay elapses, then\n the next connected step runs.\n </p>\n </>\n );\n}\n\nfunction TagEditor({\n data,\n set,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n}) {\n const tag = (data.tag as string) || \"\";\n return (\n <Field\n label=\"Tag\"\n hint=\"Comma-free label added to / removed from the contact.\"\n >\n <Input\n value={tag}\n placeholder=\"e.g. vip\"\n onChange={(e) => set({ tag: e.target.value })}\n />\n </Field>\n );\n}\n\nfunction GroupEditor({\n data,\n set,\n groups,\n onRefreshGroups,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n groups: Option[];\n onRefreshGroups?: () => void;\n}) {\n const groupId = (data.groupId as string) || \"\";\n const [createGroupOpen, setCreateGroupOpen] = useState(false);\n\n return (\n <>\n <Field\n label=\"Group\"\n hint=\"The contact is added to / removed from this group.\"\n >\n <Select\n value={groupId}\n onValueChange={(v) => {\n if (v === \"__create_group__\") {\n setCreateGroupOpen(true);\n return;\n }\n set({ groupId: v });\n }}\n >\n <SelectTrigger className=\"w-full\">\n <SelectValue\n placeholder={\n groups.length === 0 ? \"No groups — create one\" : \"Pick a group\"\n }\n />\n </SelectTrigger>\n <SelectContent>\n {groups.map((g) => (\n <SelectItem key={g.id} value={g.id}>\n {g.name}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_group__\" className=\"font-medium text-primary\">\n + Create new group…\n </SelectItem>\n </SelectContent>\n </Select>\n </Field>\n\n <QuickCreateGroupDialog\n open={createGroupOpen}\n onOpenChange={setCreateGroupOpen}\n onCreated={(g) => {\n onRefreshGroups?.();\n set({ groupId: g.id });\n }}\n />\n </>\n );\n}\n\nconst CONDITION_FIELD_OPTIONS: {\n value: ConditionField;\n label: string;\n needsValue: boolean;\n}[] = [\n { value: \"tag\", label: \"Has tag\", needsValue: true },\n { value: \"group\", label: \"In group\", needsValue: true },\n { value: \"form\", label: \"Submitted form\", needsValue: true },\n { value: \"telegram\", label: \"Has Telegram\", needsValue: false },\n];\n\nfunction ConditionEditor({\n data,\n set,\n forms,\n groups,\n onRefreshForms,\n onRefreshGroups,\n}: {\n data: Record<string, unknown>;\n set: (p: Record<string, unknown>) => void;\n forms: Option[];\n groups: Option[];\n onRefreshForms?: () => void;\n onRefreshGroups?: () => void;\n}) {\n const conditions = Array.isArray(data.conditions)\n ? (data.conditions as ConditionItem[])\n : [];\n const logic = (data.logic as ConditionLogic) || \"and\";\n const [createGroupIdx, setCreateGroupIdx] = useState<number | null>(null);\n const [createFormIdx, setCreateFormIdx] = useState<number | null>(null);\n\n const setConditions = (next: ConditionItem[]) => set({ conditions: next });\n const addCondition = () =>\n setConditions([...conditions, { field: \"tag\", value: \"\" }]);\n const removeCondition = (i: number) =>\n setConditions(conditions.filter((_, idx) => idx !== i));\n const updateCondition = (i: number, partial: Partial<ConditionItem>) =>\n setConditions(\n conditions.map((c, idx) => (idx === i ? { ...c, ...partial } : c))\n );\n\n return (\n <>\n <Field label=\"Match logic\">\n <ToggleGroup\n type=\"single\"\n value={logic}\n onValueChange={(v) => v && set({ logic: v as ConditionLogic })}\n variant=\"outline\"\n className=\"w-full\"\n >\n <ToggleGroupItem value=\"and\" className=\"flex-1\">\n ALL (AND)\n </ToggleGroupItem>\n <ToggleGroupItem value=\"or\" className=\"flex-1\">\n ANY (OR)\n </ToggleGroupItem>\n </ToggleGroup>\n </Field>\n\n <div className=\"flex flex-col gap-2\">\n <div className=\"flex items-center justify-between\">\n <Label className=\"text-xs font-medium text-foreground\">\n Conditions\n </Label>\n <Button\n variant=\"outline\"\n size=\"sm\"\n className=\"h-7 rounded-md px-2 text-xs\"\n onClick={addCondition}\n >\n <Plus className=\"size-3\" /> Add\n </Button>\n </div>\n\n {conditions.length === 0 && (\n <p className=\"rounded-md border border-dashed px-3 py-2 text-xs text-muted-foreground\">\n No conditions yet — the Yes branch will never be taken.\n </p>\n )}\n\n <div className=\"flex flex-col gap-2\">\n {conditions.map((c, i) => {\n const opt =\n CONDITION_FIELD_OPTIONS.find((o) => o.value === c.field) ||\n CONDITION_FIELD_OPTIONS[0];\n return (\n <div\n key={i}\n className=\"flex flex-col gap-2 rounded-lg border bg-card p-2.5\"\n >\n <div className=\"flex items-center gap-2\">\n <Select\n value={c.field}\n onValueChange={(v) =>\n updateCondition(i, {\n field: v as ConditionField,\n value: \"\",\n })\n }\n >\n <SelectTrigger className=\"h-8 flex-1\" size=\"sm\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {CONDITION_FIELD_OPTIONS.map((o) => (\n <SelectItem key={o.value} value={o.value}>\n {o.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"size-8 text-muted-foreground hover:text-destructive\"\n onClick={() => removeCondition(i)}\n aria-label=\"Remove condition\"\n >\n <X className=\"size-3.5\" />\n </Button>\n </div>\n {opt.needsValue && c.field === \"tag\" && (\n <Input\n className=\"h-8\"\n placeholder=\"Tag name, e.g. vip\"\n value={c.value}\n onChange={(e) =>\n updateCondition(i, { value: e.target.value })\n }\n />\n )}\n {opt.needsValue && c.field === \"group\" && (\n <Select\n value={c.value}\n onValueChange={(v) => {\n if (v === \"__create_group__\") {\n setCreateGroupIdx(i);\n return;\n }\n updateCondition(i, { value: v });\n }}\n >\n <SelectTrigger className=\"h-8 w-full\" size=\"sm\">\n <SelectValue placeholder=\"Pick a group\" />\n </SelectTrigger>\n <SelectContent>\n {groups.map((g) => (\n <SelectItem key={g.id} value={g.id}>\n {g.name}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_group__\" className=\"font-medium text-primary\">\n + Create new group…\n </SelectItem>\n </SelectContent>\n </Select>\n )}\n {opt.needsValue && c.field === \"form\" && (\n <Select\n value={c.value}\n onValueChange={(v) => {\n if (v === \"__create_form__\") {\n setCreateFormIdx(i);\n return;\n }\n updateCondition(i, { value: v });\n }}\n >\n <SelectTrigger className=\"h-8 w-full\" size=\"sm\">\n <SelectValue placeholder=\"Pick a form\" />\n </SelectTrigger>\n <SelectContent>\n {forms.map((f) => (\n <SelectItem key={f.id} value={f.id}>\n {f.name}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_form__\" className=\"font-medium text-primary\">\n + Create new form…\n </SelectItem>\n </SelectContent>\n </Select>\n )}\n </div>\n );\n })}\n </div>\n </div>\n\n <div className=\"flex items-start gap-2 rounded-md border bg-muted/40 px-3 py-2 text-xs text-muted-foreground\">\n <MessageSquare className=\"size-3.5 mt-0.5 shrink-0\" />\n <p className=\"leading-snug\">\n Drag from the Yes / No bottom handles or use Next Step Wiring below to\n connect each branch.\n </p>\n </div>\n\n <QuickCreateGroupDialog\n open={createGroupIdx !== null}\n onOpenChange={(o) => !o && setCreateGroupIdx(null)}\n onCreated={(g) => {\n onRefreshGroups?.();\n if (createGroupIdx !== null) {\n updateCondition(createGroupIdx, { value: g.id });\n }\n setCreateGroupIdx(null);\n }}\n />\n\n <QuickCreateFormDialog\n open={createFormIdx !== null}\n onOpenChange={(o) => !o && setCreateFormIdx(null)}\n onCreated={(f) => {\n onRefreshForms?.();\n if (createFormIdx !== null) {\n updateCondition(createFormIdx, { value: f.id });\n }\n setCreateFormIdx(null);\n }}\n />\n </>\n );\n}\n","\"use client\";\n\nimport \"@xyflow/react/dist/style.css\";\n\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport {\n ReactFlow,\n ReactFlowProvider,\n Background,\n BackgroundVariant,\n MiniMap,\n Controls,\n MarkerType,\n addEdge,\n useNodesState,\n useEdgesState,\n useReactFlow,\n type Connection,\n type Edge,\n type IsValidConnection,\n type NodeTypes,\n type OnConnect,\n} from \"@xyflow/react\";\nimport { toast } from \"sonner\";\nimport { ArrowLeft, Loader2, Save, Send } from \"lucide-react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Switch } from \"@/components/ui/switch\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\";\n\nimport { useFetch, apiFetch } from \"../use-api\";\nimport { QuickCreateSenderDialog } from \"../quick-create\";\nimport { nodeTypes as flowNodeTypes } from \"./flow-nodes\";\nimport { NodeLibrary } from \"./node-library\";\nimport {\n PropertyPanel,\n type CampaignOption,\n type Option,\n type TelegramStatusInfo,\n} from \"./property-panel\";\nimport {\n NODE_META,\n defaultDataFor,\n genId,\n type AnyNodeData,\n type FlowEdge,\n type FlowGraph,\n type FlowNode,\n type NodeType,\n type TriggerData,\n type WorkflowTrigger,\n} from \"./node-types\";\n\ninterface Sender {\n id: string;\n email: string;\n fromName: string;\n verified: boolean;\n}\ninterface Form {\n id: string;\n name: string;\n}\ninterface Group {\n id: string;\n name: string;\n}\n\ninterface WorkflowDetail {\n id: string;\n name: string;\n trigger: WorkflowTrigger;\n triggerConfig: Record<string, unknown>;\n senderId: string;\n enabled: boolean;\n steps: FlowGraph;\n}\n\nfunction buildEdgeObject(\n source: string,\n target: string,\n sourceHandle?: string,\n targetHandle?: string\n): Edge {\n const stroke =\n sourceHandle === \"true\"\n ? \"#059669\"\n : sourceHandle === \"false\"\n ? \"#78716c\"\n : \"#292524\";\n\n return {\n id: genId(\"edge\"),\n source,\n target,\n sourceHandle: sourceHandle || undefined,\n targetHandle: targetHandle || undefined,\n type: \"smoothstep\",\n markerEnd: {\n type: MarkerType.ArrowClosed,\n width: 15,\n height: 15,\n color: stroke,\n },\n ...(sourceHandle === \"true\"\n ? {\n style: { stroke, strokeWidth: 2 },\n }\n : sourceHandle === \"false\"\n ? {\n style: {\n stroke,\n strokeWidth: 1.75,\n strokeDasharray: \"4 4\",\n },\n }\n : { style: { stroke, strokeWidth: 1.75 } }),\n };\n}\n\nexport function WorkflowBuilder({\n workflowId,\n initialFormId,\n onSaved,\n onClose,\n}: {\n workflowId: string | null;\n initialFormId?: string | null;\n onSaved?: () => void;\n onClose?: () => void;\n}) {\n const isNew = workflowId === \"new\";\n const { data: wfData } = useFetch<WorkflowDetail | null>(\n isNew ? null : workflowId ? `/api/workflows/${workflowId}` : null\n );\n\n if (!isNew && (!wfData || wfData.id !== workflowId)) {\n return (\n <div className=\"flex items-center justify-center h-[calc(100vh-8rem)]\">\n <Loader2 className=\"size-5 animate-spin text-muted-foreground\" />\n </div>\n );\n }\n\n return (\n <ReactFlowProvider>\n <BuilderInner\n key={`${workflowId || \"none\"}:${wfData?.id || \"new\"}:${initialFormId || \"\"}`}\n workflowId={isNew ? null : workflowId}\n isNew={isNew}\n initialWorkflow={isNew ? null : wfData ?? null}\n initialFormId={initialFormId}\n onSaved={onSaved}\n onClose={onClose}\n />\n </ReactFlowProvider>\n );\n}\n\nfunction makeSeedTrigger(initialFormId?: string | null): FlowNode {\n const trigId = genId(\"node\");\n const data: TriggerData = initialFormId\n ? { triggerType: \"form_submit\", config: { formId: initialFormId } }\n : { triggerType: \"manual\", config: {} };\n return {\n id: trigId,\n type: \"trigger\",\n position: { x: 0, y: 0 },\n data: data as unknown as AnyNodeData,\n selected: true,\n };\n}\n\nfunction buildInitialNodes(\n isNew: boolean,\n initialWorkflow: WorkflowDetail | null,\n initialFormId?: string | null\n): FlowNode[] {\n if (isNew || !initialWorkflow) {\n return [makeSeedTrigger(initialFormId)];\n }\n const graph = initialWorkflow.steps || { nodes: [], edges: [] };\n let nextNodes = (graph.nodes || []).filter(Boolean) as FlowNode[];\n if (!nextNodes.some((n) => n.type === \"trigger\")) {\n nextNodes = [makeSeedTrigger(null), ...nextNodes];\n }\n return nextNodes.map((n) => ({\n ...n,\n data: (n.data || defaultDataFor(n.type)) as AnyNodeData,\n }));\n}\n\nfunction buildInitialEdges(\n isNew: boolean,\n initialWorkflow: WorkflowDetail | null\n): Edge[] {\n if (isNew || !initialWorkflow) return [];\n const graph = initialWorkflow.steps || { nodes: [], edges: [] };\n return (graph.edges || []).filter(Boolean).map((e) => ({\n ...buildEdgeObject(e.source, e.target, e.sourceHandle, e.targetHandle),\n id: e.id || genId(\"edge\"),\n }));\n}\n\nfunction BuilderInner({\n workflowId,\n isNew,\n initialWorkflow,\n initialFormId,\n onSaved,\n onClose,\n}: {\n workflowId: string | null;\n isNew: boolean;\n initialWorkflow: WorkflowDetail | null;\n initialFormId?: string | null;\n onSaved?: () => void;\n onClose?: () => void;\n}) {\n const [name, setName] = useState<string>(() =>\n isNew\n ? initialFormId\n ? \"Form signup automation\"\n : \"Untitled workflow\"\n : initialWorkflow?.name || \"\"\n );\n const [senderId, setSenderId] = useState<string>(\n () => initialWorkflow?.senderId || \"\"\n );\n const [enabled, setEnabled] = useState<boolean>(\n () => initialWorkflow?.enabled ?? true\n );\n const [saving, setSaving] = useState<boolean>(false);\n\n const [initialNodes] = useState<FlowNode[]>(() =>\n buildInitialNodes(isNew, initialWorkflow, initialFormId)\n );\n const [initialEdges] = useState<Edge[]>(() =>\n buildInitialEdges(isNew, initialWorkflow)\n );\n const [nodes, setNodes, onNodesChange] = useNodesState<FlowNode>(initialNodes);\n const [edges, setEdges, onEdgesChange] = useEdgesState<Edge>(initialEdges);\n const [selectedId, setSelectedId] = useState<string | null>(() =>\n isNew ? initialNodes[0]?.id ?? null : null\n );\n\n const reactFlow = useReactFlow();\n\n useEffect(() => {\n if (!isNew && initialWorkflow) {\n const raf = requestAnimationFrame(() => {\n reactFlow.fitView({ padding: 0.4, maxZoom: 0.92, duration: 200 });\n });\n return () => cancelAnimationFrame(raf);\n }\n }, [isNew, initialWorkflow, reactFlow]);\n\n const { data: senders, refetch: refetchSenders } = useFetch<Sender[]>(\"/api/senders\");\n const { data: forms, refetch: refetchForms } = useFetch<Form[]>(\"/api/forms\");\n const { data: groups, refetch: refetchGroups } = useFetch<Group[] | { error: string }>(\"/api/groups\");\n const { data: campaigns, refetch: refetchCampaigns } = useFetch<CampaignOption[]>(\"/api/campaigns\");\n const { data: telegramStatus } =\n useFetch<TelegramStatusInfo>(\"/api/settings/telegram\");\n const [createSenderOpen, setCreateSenderOpen] = useState(false);\n\n // Preselect first sender for a new workflow when loaded\n const effectiveSenderId =\n senderId || (isNew && senders && senders.length > 0 ? senders[0].id : \"\");\n\n const formOptions: Option[] = useMemo(\n () => (forms || []).map((f) => ({ id: f.id, name: f.name })),\n [forms]\n );\n const groupOptions: Option[] = useMemo(() => {\n if (!groups || !Array.isArray(groups)) return [];\n return (groups as Group[]).map((g) => ({ id: g.id, name: g.name }));\n }, [groups]);\n const senderOptions = senders || [];\n const campaignOptions = Array.isArray(campaigns) ? campaigns : [];\n\n const hasTrigger = useMemo(\n () => nodes.some((n) => n.type === \"trigger\"),\n [nodes]\n );\n const selectedNode = useMemo(\n () => (selectedId ? nodes.find((n) => n.id === selectedId) || null : null),\n [nodes, selectedId]\n );\n\n const updateNodeData = useCallback(\n (id: string, partial: Record<string, unknown>) => {\n setNodes((prev) =>\n prev.map((n) =>\n n.id === id\n ? { ...n, data: { ...n.data, ...partial } as AnyNodeData }\n : n\n )\n );\n },\n [setNodes]\n );\n\n const connectNodes = useCallback(\n (sourceId: string, targetId: string, sourceHandle?: string) => {\n if (sourceId === targetId) return;\n const newEdge = buildEdgeObject(sourceId, targetId, sourceHandle);\n setEdges((prev) => {\n const filtered = prev.filter((e) => {\n if (e.source !== sourceId) return true;\n return sourceHandle\n ? e.sourceHandle !== sourceHandle\n : Boolean(e.sourceHandle && e.sourceHandle !== \"out\");\n });\n return addEdge(newEdge, filtered);\n });\n },\n [setEdges]\n );\n\n const disconnectEdge = useCallback(\n (edgeId: string) => {\n setEdges((prev) => prev.filter((e) => e.id !== edgeId));\n },\n [setEdges]\n );\n\n const addNode = useCallback(\n (type: NodeType) => {\n const id = genId(\"node\");\n const anchor = selectedNode || nodes[nodes.length - 1] || null;\n const baseX = anchor?.position?.x ?? 0;\n const baseY =\n (anchor?.position?.y ??\n (nodes.length\n ? Math.max(...nodes.map((n) => n.position?.y ?? 0))\n : 0)) + 165;\n\n const newNode: FlowNode = {\n id,\n type,\n position: { x: Math.round(baseX), y: Math.round(baseY) },\n data: defaultDataFor(type),\n selected: true,\n };\n\n setNodes((prev) => [\n ...prev.map((n) => ({ ...n, selected: false })),\n newNode,\n ]);\n setSelectedId(id);\n\n // Auto-connect from selected single-output node if it doesn't already have an outgoing edge\n if (\n anchor &&\n type !== \"trigger\" &&\n anchor.type !== \"condition\" &&\n !edges.some((e) => e.source === anchor.id && !e.sourceHandle)\n ) {\n setEdges((prev) => addEdge(buildEdgeObject(anchor.id, id), prev));\n }\n\n setTimeout(() => {\n reactFlow.fitView({ padding: 0.4, maxZoom: 0.92, duration: 220 });\n }, 60);\n },\n [nodes, edges, selectedNode, setNodes, setEdges, reactFlow]\n );\n\n const deleteNode = useCallback(\n (id: string) => {\n setNodes((prev) => prev.filter((n) => n.id !== id));\n setEdges((prev) =>\n prev.filter((e) => e.source !== id && e.target !== id)\n );\n setSelectedId((cur) => (cur === id ? null : cur));\n },\n [setNodes, setEdges]\n );\n\n const isValidConnection: IsValidConnection = useCallback(\n (connection) => {\n if (!connection.source || !connection.target) return false;\n if (connection.source === connection.target) return false;\n const targetNode = nodes.find((n) => n.id === connection.target);\n if (!targetNode || targetNode.type === \"trigger\") return false;\n return true;\n },\n [nodes]\n );\n\n const onConnect: OnConnect = useCallback(\n (connection: Connection) => {\n if (!connection.source || !connection.target) return;\n connectNodes(\n connection.source,\n connection.target,\n connection.sourceHandle ?? undefined\n );\n },\n [connectNodes]\n );\n\n const onNodeClick = useCallback(\n (_e: React.MouseEvent, node: FlowNode) => {\n setSelectedId(node.id);\n setNodes((prev) =>\n prev.map((n) => ({ ...n, selected: n.id === node.id }))\n );\n },\n [setNodes]\n );\n\n const onPaneClick = useCallback(() => {\n setSelectedId(null);\n setNodes((prev) => prev.map((n) => ({ ...n, selected: false })));\n }, [setNodes]);\n\n const handleSave = async () => {\n if (!name.trim()) {\n toast.error(\"Name is required\");\n return;\n }\n if (!effectiveSenderId) {\n toast.error(\"Choose a sender\");\n return;\n }\n setSaving(true);\n try {\n const trigNode = nodes.find((n) => n.type === \"trigger\");\n let trigger: WorkflowTrigger = \"manual\";\n let triggerConfig: Record<string, unknown> = {};\n if (trigNode) {\n const td = trigNode.data as unknown as TriggerData;\n trigger = td.triggerType || \"manual\";\n triggerConfig = td.config || {};\n }\n\n const graph: FlowGraph = {\n nodes: nodes.map((n) => ({\n id: n.id,\n type: n.type,\n position: n.position,\n data: n.data,\n })),\n edges: edges.map((e) => ({\n id: e.id,\n source: e.source,\n target: e.target,\n sourceHandle: e.sourceHandle ?? undefined,\n targetHandle: e.targetHandle ?? undefined,\n })),\n };\n\n const payload = {\n name: name.trim(),\n trigger,\n triggerConfig,\n senderId: effectiveSenderId,\n steps: graph,\n enabled,\n };\n\n if (isNew) {\n await apiFetch<{ id: string }>(\"/api/workflows\", {\n method: \"POST\",\n body: JSON.stringify(payload),\n });\n toast.success(\"Workflow created\");\n onSaved?.();\n onClose?.();\n } else if (workflowId) {\n await apiFetch(`/api/workflows/${workflowId}`, {\n method: \"PATCH\",\n body: JSON.stringify(payload),\n });\n toast.success(\"Workflow saved\");\n onSaved?.();\n onClose?.();\n }\n } catch (err) {\n toast.error(\n err instanceof Error ? err.message : \"Failed to save workflow\"\n );\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <div className=\"flex flex-col h-[calc(100vh-7rem)] gap-3\">\n <TopBar\n name={name}\n onName={setName}\n senderId={effectiveSenderId}\n onSenderId={setSenderId}\n onQuickCreateSender={() => setCreateSenderOpen(true)}\n senders={senderOptions}\n enabled={enabled}\n onEnabled={setEnabled}\n saving={saving}\n onSave={handleSave}\n onClose={onClose}\n isNew={isNew}\n />\n\n <div className=\"flex flex-1 flex-col lg:flex-row gap-3 min-h-0\">\n {/* Left Node Library */}\n <div className=\"w-full lg:w-72 shrink-0 rounded-xl border bg-card overflow-hidden flex flex-col max-h-[300px] lg:max-h-none lg:h-full\">\n <NodeLibrary\n onAddNode={addNode}\n hasTrigger={hasTrigger}\n selectedNodeLabel={\n selectedNode ? NODE_META[selectedNode.type]?.label : null\n }\n />\n </div>\n\n {/* Center React Flow Canvas */}\n <div\n data-theme=\"light\"\n className=\"light flex-1 min-h-[440px] rounded-xl border border-border bg-[#f6f3ec] overflow-hidden relative\"\n >\n <ReactFlow\n nodes={nodes}\n edges={edges}\n onNodesChange={onNodesChange}\n onEdgesChange={onEdgesChange}\n onConnect={onConnect}\n isValidConnection={isValidConnection}\n connectionRadius={40}\n onNodeClick={onNodeClick}\n onPaneClick={onPaneClick}\n nodeTypes={flowNodeTypes as unknown as NodeTypes}\n fitView\n fitViewOptions={{ padding: 0.45, maxZoom: 0.92, minZoom: 0.45 }}\n defaultViewport={{ x: 0, y: 0, zoom: 0.92 }}\n minZoom={0.35}\n maxZoom={1.5}\n proOptions={{ hideAttribution: true }}\n defaultEdgeOptions={{\n type: \"smoothstep\",\n style: { stroke: \"#292524\", strokeWidth: 1.75 },\n markerEnd: {\n type: MarkerType.ArrowClosed,\n width: 15,\n height: 15,\n color: \"#292524\",\n },\n }}\n deleteKeyCode={[\"Backspace\", \"Delete\"]}\n className=\"light !bg-[#f6f3ec]\"\n >\n <Background\n variant={BackgroundVariant.Dots}\n bgColor=\"#f6f3ec\"\n gap={20}\n size={1.25}\n color=\"#d6d0c4\"\n />\n <MiniMap\n pannable\n zoomable\n style={{ width: 148, height: 94 }}\n className=\"!bg-white/95 !border !border-stone-200 !rounded-lg !shadow-sm\"\n maskColor=\"rgba(28, 25, 23, 0.08)\"\n nodeColor={(n) => miniColorFor(n.type as NodeType)}\n nodeBorderRadius={6}\n nodeStrokeWidth={0}\n />\n <Controls\n showInteractive={false}\n className=\"!bg-white/95 !border !border-stone-200 !rounded-lg !shadow-sm overflow-hidden [&>button]:!bg-white [&>button]:!border-stone-200 [&>button]:!text-stone-700 [&>button:hover]:!bg-stone-100\"\n />\n </ReactFlow>\n </div>\n\n {/* Right Property Inspector */}\n <div className=\"w-full lg:w-88 shrink-0 rounded-xl border bg-card overflow-hidden flex flex-col min-h-[280px] lg:min-h-0 lg:h-full\">\n <PropertyPanel\n selectedNode={selectedNode}\n nodes={nodes}\n edges={edges as unknown as FlowEdge[]}\n forms={formOptions}\n groups={groupOptions}\n campaigns={campaignOptions}\n senders={senderOptions}\n defaultSenderId={effectiveSenderId}\n telegramStatus={telegramStatus}\n updateNodeData={updateNodeData}\n onDeleteNode={deleteNode}\n onAddNode={addNode}\n onConnectNodes={connectNodes}\n onDisconnectEdge={disconnectEdge}\n onRefreshForms={refetchForms}\n onRefreshGroups={refetchGroups}\n onRefreshCampaigns={refetchCampaigns}\n hasTrigger={hasTrigger}\n />\n </div>\n </div>\n\n <QuickCreateSenderDialog\n open={createSenderOpen}\n onOpenChange={setCreateSenderOpen}\n onCreated={(created) => {\n refetchSenders();\n setSenderId(created.id);\n }}\n />\n </div>\n );\n}\n\nfunction TopBar({\n name,\n onName,\n senderId,\n onSenderId,\n onQuickCreateSender,\n senders,\n enabled,\n onEnabled,\n saving,\n onSave,\n onClose,\n isNew,\n}: {\n name: string;\n onName: (v: string) => void;\n senderId: string;\n onSenderId: (v: string) => void;\n onQuickCreateSender: () => void;\n senders: Sender[];\n enabled: boolean;\n onEnabled: (v: boolean) => void;\n saving: boolean;\n onSave: () => void;\n onClose?: () => void;\n isNew: boolean;\n}) {\n return (\n <div className=\"flex flex-col gap-3 md:flex-row md:items-center md:justify-between rounded-xl border bg-card p-3\">\n <div className=\"flex items-center gap-2 min-w-0\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n className=\"rounded-lg shrink-0 text-muted-foreground\"\n onClick={onClose}\n >\n <ArrowLeft className=\"size-4\" /> All workflows\n </Button>\n <Input\n value={name}\n onChange={(e) => onName(e.target.value)}\n placeholder=\"Workflow name\"\n className=\"h-8 max-w-xs border-transparent bg-transparent focus-visible:border-input px-2 font-medium\"\n />\n </div>\n\n <div className=\"flex items-center gap-3 flex-wrap\">\n <div className=\"flex items-center gap-2\">\n <Send className=\"size-3.5 text-muted-foreground\" />\n <Select\n value={senderId}\n onValueChange={(v) => {\n if (v === \"__create_sender__\") {\n onQuickCreateSender();\n return;\n }\n onSenderId(v);\n }}\n >\n <SelectTrigger size=\"sm\" className=\"h-8 w-52\">\n <SelectValue\n placeholder={\n senders.length === 0 ? \"No senders — add one\" : \"Pick sender\"\n }\n />\n </SelectTrigger>\n <SelectContent>\n {senders.map((s) => (\n <SelectItem key={s.id} value={s.id}>\n {s.fromName} — {s.email}\n </SelectItem>\n ))}\n <SelectSeparator />\n <SelectItem value=\"__create_sender__\" className=\"font-medium text-primary\">\n + Add new Gmail sender…\n </SelectItem>\n </SelectContent>\n </Select>\n </div>\n\n <div className=\"flex items-center gap-2\">\n <span className=\"text-xs text-muted-foreground\">\n {enabled ? \"Enabled\" : \"Paused\"}\n </span>\n <Switch\n checked={enabled}\n onCheckedChange={onEnabled}\n aria-label=\"Toggle workflow enabled\"\n />\n </div>\n\n <Button onClick={onSave} disabled={saving} className=\"rounded-lg\">\n {saving ? (\n <Loader2 className=\"size-4 animate-spin\" />\n ) : (\n <Save className=\"size-4\" />\n )}\n {isNew ? \"Create workflow\" : \"Save changes\"}\n </Button>\n </div>\n </div>\n );\n}\n\nfunction miniColorFor(type: NodeType): string {\n switch (type) {\n case \"trigger\":\n case \"cron\":\n return \"oklch(0.78 0.18 80)\";\n case \"sendEmail\":\n return \"oklch(0.65 0.2 145)\";\n case \"sendTelegram\":\n return \"oklch(0.68 0.14 230)\";\n case \"sendWebhook\":\n case \"addTag\":\n return \"oklch(0.6 0.15 180)\";\n case \"wait\":\n return \"oklch(0.7 0.01 85)\";\n case \"removeTag\":\n return \"oklch(0.7 0.18 50)\";\n case \"addToGroup\":\n return \"oklch(0.6 0.18 320)\";\n case \"removeFromGroup\":\n return \"oklch(0.65 0.2 0)\";\n case \"condition\":\n return \"oklch(0.7 0.2 25)\";\n default:\n return \"oklch(0.7 0.01 85)\";\n }\n}\n","export default function cc(names) {\n if (typeof names === \"string\" || typeof names === \"number\") return \"\" + names\n\n let out = \"\"\n\n if (Array.isArray(names)) {\n for (let i = 0, tmp; i < names.length; i++) {\n if ((tmp = cc(names[i])) !== \"\") {\n out += (out && \" \") + tmp\n }\n }\n } else {\n for (let k in names) {\n if (names[k]) out += (out && \" \") + k\n }\n }\n\n return out\n}\n","import { createContext } from 'react';\n\nimport type { ReactFlowStoreApi } from '../types';\n\nconst StoreContext = createContext<ReactFlowStoreApi | null>(null);\n\nexport const Provider = StoreContext.Provider;\nexport default StoreContext;\n","import { useRef } from 'react';\n\n// Based on Zustand v4.5.2's MIT-licensed shallow comparator:\n// https://github.com/pmndrs/zustand/blob/v4.5.2/src/vanilla/shallow.ts\n// Compare object keys directly to avoid allocating Maps for selector results.\nfunction shallow<T>(objA: T, objB: T): boolean {\n if (Object.is(objA, objB)) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n if (objA instanceof Map && objB instanceof Map) {\n if (objA.size !== objB.size) return false;\n\n for (const [key, value] of objA) {\n if (!objB.has(key) || !Object.is(value, objB.get(key))) {\n return false;\n }\n }\n return true;\n }\n\n if (objA instanceof Set && objB instanceof Set) {\n if (objA.size !== objB.size) return false;\n\n for (const value of objA) {\n if (!objB.has(value)) {\n return false;\n }\n }\n return true;\n }\n\n const keysA = Object.keys(objA);\n if (keysA.length !== Object.keys(objB).length) {\n return false;\n }\n\n for (const keyA of keysA) {\n if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA as keyof T], objB[keyA as keyof T])) {\n return false;\n }\n }\n return true;\n}\n\n/** Wraps a selector to reuse its previous result when it is shallowly equal. */\nexport function useShallow<S, U>(selector: (state: S) => U): (state: S) => U {\n const prev = useRef<U | undefined>(undefined);\n\n return (state) => {\n const next = selector(state);\n return shallow(prev.current, next) ? (prev.current as U) : (prev.current = next);\n };\n}\n","import { useContext, useRef } from 'react';\nimport { useStore as useZustandStore } from 'zustand';\nimport { errorMessages } from '@xyflow/system';\n\nimport StoreContext from '../contexts/StoreContext';\nimport type {\n Edge,\n Node,\n ReactFlowState,\n ReactFlowStoreApi,\n ViewportStore,\n ConnectionStore,\n NodesStore,\n EdgesStore,\n SelectionStore,\n} from '../types';\n\nconst identity = <T>(state: T) => state;\n\nconst zustandErrorMessage = errorMessages['error001']('react');\n\n/**\n * This hook subscribes to the shared settings and actions of the React Flow\n * component. Use `useViewportStore`, `useConnectionStore`, `useNodesStore`,\n * `useEdgesStore`, or `useSelectionStore` for their respective state. These hooks\n * use [Zustand](https://github.com/pmndrs/zustand) for subscriptions.\n *\n * @public\n * @param selector - An optional selector function that returns a slice of the flow's internal state.\n * Extracting or transforming just the state you need is a good practice to avoid unnecessary\n * re-renders.\n * For shallow comparisons, use `useShallow` from `@xyflow/react` by wrapping your selector:\n * `useOptionsStore(useShallow(selector))`.\n * Omit the selector to subscribe to the entire store.\n * @returns The selected state slice, or the entire store when no selector is provided.\n *\n * @example\n * ```ts\n * const nodesDraggable = useOptionsStore((state) => state.nodesDraggable);\n * ```\n *\n * @remarks This hook should only be used if there is no other way to access the internal\n * state. For many of the common use cases, there are dedicated hooks available\n * such as {@link useReactFlow}, {@link useViewport}, etc.\n */\nfunction useOptionsStore(): ReactFlowState;\nfunction useOptionsStore<StateSlice>(selector: (state: ReactFlowState) => StateSlice): StateSlice;\nfunction useOptionsStore(selector: (state: ReactFlowState) => unknown = identity) {\n const { optionsStore } = useReactFlowStoreApi();\n return useZustandStore(optionsStore, selector);\n}\n\n/**\n * In some cases, you might need to access the stores directly. This hook returns the store APIs which can be used on demand to access state or dispatch actions.\n *\n * @returns The options, viewport, connection, nodes, edges, and selection store APIs.\n * @example\n * ```ts\n * const { nodesStore } = useReactFlowStoreApi();\n * const nodes = nodesStore.getState().nodes;\n * ```\n *\n * @remarks This hook should only be used if there is no other way to access the internal\n * state. For many of the common use cases, there are dedicated hooks available\n * such as {@link useReactFlow}, {@link useViewport}, etc.\n */\nfunction useReactFlowStoreApi<NodeType extends Node = Node, EdgeType extends Edge = Edge>(): ReactFlowStoreApi<\n NodeType,\n EdgeType\n> {\n const stores = useContext(StoreContext);\n\n if (stores === null) {\n throw new Error(zustandErrorMessage);\n }\n\n return stores as unknown as ReactFlowStoreApi<NodeType, EdgeType>;\n}\n\nexport function useViewportStore(): ViewportStore;\nexport function useViewportStore<StateSlice>(selector: (state: ViewportStore) => StateSlice): StateSlice;\nexport function useViewportStore(selector: (state: ViewportStore) => unknown = identity) {\n return useZustandStore(useReactFlowStoreApi().viewportStore, selector);\n}\n\nexport function useConnectionStore(): ConnectionStore;\nexport function useConnectionStore<StateSlice>(selector: (state: ConnectionStore) => StateSlice): StateSlice;\nexport function useConnectionStore(selector: (state: ConnectionStore) => unknown = identity) {\n return useZustandStore(useReactFlowStoreApi().connectionStore, selector);\n}\n\nexport function useNodesStore(): NodesStore;\nexport function useNodesStore<StateSlice>(selector: (state: NodesStore) => StateSlice): StateSlice;\nexport function useNodesStore(selector: (state: NodesStore) => unknown = identity) {\n return useZustandStore(useReactFlowStoreApi().nodesStore, selector);\n}\n\nexport function useEdgesStore(): EdgesStore;\nexport function useEdgesStore<StateSlice>(selector: (state: EdgesStore) => StateSlice): StateSlice;\nexport function useEdgesStore(selector: (state: EdgesStore) => unknown = identity) {\n return useZustandStore(useReactFlowStoreApi().edgesStore, selector);\n}\n\nexport function useSelectionStore(): SelectionStore;\nexport function useSelectionStore<StateSlice>(selector: (state: SelectionStore) => StateSlice): StateSlice;\nexport function useSelectionStore(selector: (state: SelectionStore) => unknown = identity) {\n return useZustandStore(useReactFlowStoreApi().selectionStore, selector);\n}\n\nexport { useOptionsStore, useReactFlowStoreApi };\nexport { useShallow } from './useShallow';\n\nexport function useEqualSelector<S, U>(selector: (state: S) => U, isEqual: (a: U, b: U) => boolean): (state: S) => U {\n const prev = useRef<U>();\n return (state) => {\n const next = selector(state);\n\n if (prev.current !== undefined && isEqual(prev.current, next)) {\n return prev.current;\n }\n\n prev.current = next;\n\n return next;\n };\n}\n","import { CSSProperties } from 'react';\n\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\n\nconst style: CSSProperties = { display: 'none' };\nconst ariaLiveStyle: CSSProperties = {\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n border: 0,\n padding: 0,\n overflow: 'hidden',\n clip: 'rect(0px, 0px, 0px, 0px)',\n clipPath: 'inset(100%)',\n};\n\nexport const ARIA_NODE_DESC_KEY = 'react-flow__node-desc';\nexport const ARIA_EDGE_DESC_KEY = 'react-flow__edge-desc';\nexport const ARIA_LIVE_MESSAGE = 'react-flow__aria-live';\n\nfunction AriaLiveMessage({ rfId }: { rfId: string }) {\n const ariaLiveMessage = useOptionsStore((s) => s.ariaLiveMessage);\n\n return (\n <div id={`${ARIA_LIVE_MESSAGE}-${rfId}`} aria-live=\"assertive\" aria-atomic=\"true\" style={ariaLiveStyle}>\n {ariaLiveMessage}\n </div>\n );\n}\n\nexport function A11yDescriptions({ rfId, disableKeyboardA11y }: { rfId: string; disableKeyboardA11y: boolean }) {\n const ariaLabelConfig = useOptionsStore((s) => s.ariaLabelConfig);\n\n return (\n <>\n <div id={`${ARIA_NODE_DESC_KEY}-${rfId}`} style={style}>\n {disableKeyboardA11y\n ? ariaLabelConfig['node.a11yDescription.default']\n : ariaLabelConfig['node.a11yDescription.keyboardDisabled']}\n </div>\n <div id={`${ARIA_EDGE_DESC_KEY}-${rfId}`} style={style}>\n {ariaLabelConfig['edge.a11yDescription.default']}\n </div>\n {!disableKeyboardA11y && <AriaLiveMessage rfId={rfId} />}\n </>\n );\n}\n","import { HTMLAttributes, forwardRef } from 'react';\nimport cc from 'classcat';\nimport type { PanelPosition } from '@xyflow/system';\n\n/**\n * @expand\n */\nexport type PanelProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * The position of the panel.\n * @default \"top-left\"\n */\n position?: PanelPosition;\n};\n\n/**\n * The `<Panel />` component helps you position content above the viewport.\n * It is used internally by the [`<MiniMap />`](/api-reference/components/minimap)\n * and [`<Controls />`](/api-reference/components/controls) components.\n *\n * @public\n *\n * @example\n * ```jsx\n *import { ReactFlow, Background, Panel } from '@xyflow/react';\n *\n *export default function Flow() {\n * return (\n * <ReactFlow nodes={[]} fitView>\n * <Panel position=\"top-left\">top-left</Panel>\n * <Panel position=\"top-center\">top-center</Panel>\n * <Panel position=\"top-right\">top-right</Panel>\n * <Panel position=\"bottom-left\">bottom-left</Panel>\n * <Panel position=\"bottom-center\">bottom-center</Panel>\n * <Panel position=\"bottom-right\">bottom-right</Panel>\n * </ReactFlow>\n * );\n *}\n *```\n */\nexport const Panel = forwardRef<HTMLDivElement, PanelProps>(\n ({ position = 'top-left', children, className, style, ...rest }, ref) => {\n const positionClasses = `${position}`.split('-');\n\n return (\n <div className={cc(['react-flow__panel', className, ...positionClasses])} style={style} ref={ref} {...rest}>\n {children}\n </div>\n );\n }\n);\n\nPanel.displayName = 'Panel';\n","import { useEffect } from 'react';\nimport { type PanelPosition, handleAttributionWarning } from '@xyflow/system';\n\nimport { Panel } from '../Panel';\nimport { type ProOptions } from '../../types/general';\n\ntype AttributionProps = {\n proOptions?: ProOptions;\n position?: PanelPosition;\n};\n\nconst link = `https://reactflow.dev${\n process.env.NODE_ENV === 'production' ? '?utm_source=attribution' : '/attribution'\n}`;\n\n/**\n * React Flow is independent and entirely funded by its users.\n * If you hide the attribution, please support our work by subscribing to React Flow Pro: https://reactflow.dev/remove-attribution\n */\nexport function Attribution({ proOptions, position = 'bottom-right' }: AttributionProps) {\n useEffect(() => {\n if (process.env.NODE_ENV !== 'development') {\n return;\n }\n\n handleAttributionWarning('react');\n }, []);\n\n if (proOptions?.hideAttribution) {\n return null;\n }\n\n return (\n <Panel\n position={position}\n className=\"react-flow__attribution\"\n data-message={`Please only hide this attribution when you are subscribed to React Flow Pro: ${link}`}\n >\n <a href={link} target=\"_blank\" rel=\"noopener noreferrer\" aria-label=\"React Flow attribution\">\n React Flow\n </a>\n </Panel>\n );\n}\n","/*\n * This is a helper component for calling the onSelectionChange listener.\n * It will only be mounted if the user has passed an onSelectionChange listener\n * or is using the useOnSelectionChange hook.\n * @TODO: Now that we have the onNodesChange and on EdgesChange listeners, do we still need this component?\n */\nimport { useEffect } from 'react';\nimport { shallow } from 'zustand/shallow';\n\nimport {\n useEqualSelector,\n useOptionsStore,\n useNodesStore,\n useEdgesStore,\n useReactFlowStoreApi,\n} from '../../hooks/useReactFlowStore';\nimport type { ReactFlowState, NodesStore, EdgesStore, OnSelectionChangeFunc, Node, Edge } from '../../types';\n\ntype SelectionListenerProps<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {\n onSelectionChange?: OnSelectionChangeFunc<NodeType, EdgeType>;\n};\n\nconst nodesSelector = (s: NodesStore) => {\n const selectedNodes = [];\n\n for (const [, node] of s.nodeLookup) {\n if (node.selected) {\n selectedNodes.push(node.internals.userNode);\n }\n }\n\n return selectedNodes;\n};\n\nconst edgesSelector = (s: EdgesStore) => {\n const selectedEdges = [];\n for (const [, edge] of s.edgeLookup) {\n if (edge.selected) {\n selectedEdges.push(edge);\n }\n }\n\n return selectedEdges;\n};\n\nconst selectId = (obj: Node | Edge) => obj.id;\n\nfunction areEqual(a: (Node | Edge)[], b: (Node | Edge)[]) {\n return shallow(a.map(selectId), b.map(selectId));\n}\n\nfunction SelectionListenerInner<NodeType extends Node = Node, EdgeType extends Edge = Edge>({\n onSelectionChange,\n}: SelectionListenerProps<NodeType, EdgeType>) {\n const { optionsStore, nodesStore, edgesStore } = useReactFlowStoreApi<NodeType, EdgeType>();\n const selectedNodes = useNodesStore(useEqualSelector(nodesSelector, areEqual));\n const selectedEdges = useEdgesStore(useEqualSelector(edgesSelector, areEqual));\n\n useEffect(() => {\n // Either membership change should report the current objects from both stores.\n const params = {\n nodes: nodesSelector(nodesStore.getState()) as NodeType[],\n edges: edgesSelector(edgesStore.getState()) as EdgeType[],\n };\n\n onSelectionChange?.(params);\n optionsStore.getState().onSelectionChangeHandlers.forEach((fn) => fn(params));\n }, [selectedNodes, selectedEdges, onSelectionChange, optionsStore, nodesStore, edgesStore]);\n\n return null;\n}\n\nconst changeSelector = (s: ReactFlowState) => s.onSelectionChangeHandlers.length > 0;\n\nexport function SelectionListener<NodeType extends Node = Node, EdgeType extends Edge = Edge>({\n onSelectionChange,\n}: SelectionListenerProps<NodeType, EdgeType>) {\n const storeHasSelectionChangeHandlers = useOptionsStore(changeSelector);\n\n if (onSelectionChange || storeHasSelectionChangeHandlers) {\n return <SelectionListenerInner<NodeType, EdgeType> onSelectionChange={onSelectionChange} />;\n }\n\n return null;\n}\n","import { type NodeOrigin, Viewport } from '@xyflow/system';\n\nexport const defaultNodeOrigin: NodeOrigin = [0, 0];\nexport const defaultViewport: Viewport = { x: 0, y: 0, zoom: 1 };\n","/*\n * This component helps us to update the store with the values coming from the user.\n * We distinguish between values we can update directly with `useDirectStoreUpdater` (like `snapGrid`)\n * and values that have a dedicated setter function in the store (like `setNodes`).\n */\nimport { useEffect, useRef } from 'react';\nimport { infiniteExtent, type CoordinateExtent, mergeAriaLabelConfig, AriaLabelConfig } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport type { Node, Edge, ReactFlowProps, FitViewOptions } from '../../types';\nimport { defaultNodeOrigin } from '../../container/ReactFlow/init-values';\n\n// These fields exist in the global store, and we need to keep them up to date\nconst reactFlowFieldsToTrack = [\n 'nodes',\n 'edges',\n 'defaultNodes',\n 'defaultEdges',\n 'onConnect',\n 'onConnectStart',\n 'onConnectEnd',\n 'onClickConnectStart',\n 'onClickConnectEnd',\n 'nodesDraggable',\n 'autoPanOnNodeFocus',\n 'nodesConnectable',\n 'nodesFocusable',\n 'edgesFocusable',\n 'edgesReconnectable',\n 'elevateNodesOnSelect',\n 'elevateEdgesOnSelect',\n 'minZoom',\n 'maxZoom',\n 'nodeExtent',\n 'onNodesChange',\n 'onEdgesChange',\n 'elementsSelectable',\n 'connectionMode',\n 'snapGrid',\n 'snapToGrid',\n 'translateExtent',\n 'connectOnClick',\n 'defaultEdgeOptions',\n 'fitView',\n 'fitViewOptions',\n 'onNodesDelete',\n 'onEdgesDelete',\n 'onDelete',\n 'onNodeDrag',\n 'onNodeDragStart',\n 'onNodeDragStop',\n 'onSelectionDrag',\n 'onSelectionDragStart',\n 'onSelectionDragStop',\n 'onMoveStart',\n 'onMove',\n 'onMoveEnd',\n 'noPanClassName',\n 'nodeOrigin',\n 'autoPanOnConnect',\n 'autoPanOnNodeDrag',\n 'onError',\n 'connectionRadius',\n 'isValidConnection',\n 'selectNodesOnDrag',\n 'nodeDragThreshold',\n 'connectionDragThreshold',\n 'onBeforeDelete',\n 'debug',\n 'autoPanSpeed',\n 'ariaLabelConfig',\n 'zIndexMode',\n] as const;\n\ntype ReactFlowFieldsToTrack = (typeof reactFlowFieldsToTrack)[number];\ntype StoreUpdaterProps<NodeType extends Node = Node, EdgeType extends Edge = Edge> = Pick<\n ReactFlowProps<NodeType, EdgeType>,\n ReactFlowFieldsToTrack\n> & {\n rfId: string;\n};\n\n// rfId doesn't exist in ReactFlowProps, but it's one of the fields we want to update\nconst fieldsToTrack = [...reactFlowFieldsToTrack, 'rfId'] as const;\n\nconst initPrevValues = {\n /*\n * these are values that are also passed directly to other components\n * than the StoreUpdater. We can reduce the number of setStore calls\n * by setting the same values here as prev fields.\n */\n translateExtent: infiniteExtent,\n nodeOrigin: defaultNodeOrigin,\n minZoom: 0.5,\n maxZoom: 2,\n elementsSelectable: true,\n noPanClassName: 'nopan',\n rfId: '1',\n};\n\nexport function StoreUpdater<NodeType extends Node = Node, EdgeType extends Edge = Edge>(\n props: StoreUpdaterProps<NodeType, EdgeType>\n) {\n const { optionsStore } = useReactFlowStoreApi<NodeType, EdgeType>();\n const previousFields = useRef<Partial<StoreUpdaterProps<NodeType, EdgeType>>>(initPrevValues);\n\n useEffect(() => {\n const { setDefaultNodesAndEdges, reset } = optionsStore.getState();\n setDefaultNodesAndEdges(props.defaultNodes, props.defaultEdges);\n\n return () => {\n // when we reset the store we also need to reset the previous fields\n previousFields.current = initPrevValues;\n reset();\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(\n () => {\n const { setNodes, setEdges, setMinZoom, setMaxZoom, setTranslateExtent, setNodeExtent } = optionsStore.getState();\n for (const fieldName of fieldsToTrack) {\n const fieldValue = props[fieldName];\n const previousFieldValue = previousFields.current[fieldName];\n\n if (fieldValue === previousFieldValue) continue;\n if (typeof props[fieldName] === 'undefined') continue;\n // Custom handling with dedicated setters for some fields\n if (fieldName === 'nodes') setNodes(fieldValue as NodeType[]);\n else if (fieldName === 'edges') setEdges(fieldValue as EdgeType[]);\n else if (fieldName === 'minZoom') setMinZoom(fieldValue as number);\n else if (fieldName === 'maxZoom') setMaxZoom(fieldValue as number);\n else if (fieldName === 'translateExtent') setTranslateExtent(fieldValue as CoordinateExtent);\n else if (fieldName === 'nodeExtent') setNodeExtent(fieldValue as CoordinateExtent);\n else if (fieldName === 'ariaLabelConfig')\n optionsStore.setState({ ariaLabelConfig: mergeAriaLabelConfig(fieldValue as AriaLabelConfig) });\n // Renamed fields\n else if (fieldName === 'fitView') optionsStore.setState({ fitViewQueued: fieldValue as boolean });\n else if (fieldName === 'fitViewOptions')\n optionsStore.setState({ fitViewOptions: fieldValue as FitViewOptions });\n // General case\n else {\n optionsStore.setState({ [fieldName]: fieldValue });\n }\n }\n\n previousFields.current = props;\n },\n // Only re-run the effect if one of the fields we track changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n fieldsToTrack.map((fieldName) => props[fieldName])\n );\n\n return null;\n}\n","import { useState, useEffect, useRef } from 'react';\nimport { isInputDOMNode, type KeyCode } from '@xyflow/system';\n\ntype Keys = Array<string>;\ntype PressedKeys = Set<string>;\ntype KeyOrCode = 'key' | 'code';\n\nexport type UseKeyPressOptions = {\n /**\n * Listen to key presses on a specific element.\n * @default document\n */\n target?: Window | Document | HTMLElement | ShadowRoot | null;\n /**\n * You can use this flag to prevent triggering the key press hook when an input field is focused.\n * @default true\n */\n actInsideInputWithModifier?: boolean;\n preventDefault?: boolean;\n};\n\nconst defaultDoc = typeof document !== 'undefined' ? document : null;\n\n/**\n * This hook lets you listen for specific key codes and tells you whether they are\n * currently pressed or not.\n *\n * @public\n * @param options - Options\n *\n * @example\n * ```tsx\n *import { useKeyPress } from '@xyflow/react';\n *\n *export default function () {\n * const spacePressed = useKeyPress('Space');\n * const cmdAndSPressed = useKeyPress(['Meta+s', 'Strg+s']);\n *\n * return (\n * <div>\n * {spacePressed && <p>Space pressed!</p>}\n * {cmdAndSPressed && <p>Cmd + S pressed!</p>}\n * </div>\n * );\n *}\n *```\n */\nexport function useKeyPress(\n /**\n * The key code (string or array of strings) specifies which key(s) should trigger\n * an action.\n *\n * A **string** can represent:\n * - A **single key**, e.g. `'a'`\n * - A **key combination**, using `'+'` to separate keys, e.g. `'a+d'`\n *\n * An **array of strings** represents **multiple possible key inputs**. For example, `['a', 'd+s']`\n * means the user can press either the single key `'a'` or the combination of `'d'` and `'s'`.\n * @default null\n */\n keyCode: KeyCode | null = null,\n options: UseKeyPressOptions = { target: defaultDoc, actInsideInputWithModifier: true }\n): boolean {\n const [keyPressed, setKeyPressed] = useState(false);\n\n // we need to remember if a modifier key is pressed in order to track it\n const modifierPressed = useRef(false);\n\n // we need to remember the pressed keys in order to support combinations\n const pressedKeys = useRef<PressedKeys>(new Set([]));\n\n /*\n * keyCodes = array with single keys [['a']] or key combinations [['a', 's']]\n * keysToWatch = array with all keys flattened ['a', 'd', 'ShiftLeft']\n * used to check if we store event.code or event.key. When the code is in the list of keysToWatch\n * we use the code otherwise the key. Explainer: When you press the left \"command\" key, the code is \"MetaLeft\"\n * and the key is \"Meta\". We want users to be able to pass keys and codes so we assume that the key is meant when\n * we can't find it in the list of keysToWatch.\n */\n const [keyCodes, keysToWatch] = getKeyCodes(keyCode);\n\n useEffect(() => {\n const target = options?.target ?? defaultDoc;\n const actInsideInputWithModifier = options?.actInsideInputWithModifier ?? true;\n\n if (keyCode !== null) {\n const downHandler = (event: KeyboardEvent) => {\n modifierPressed.current = event.ctrlKey || event.metaKey || event.shiftKey || event.altKey;\n const preventAction =\n (!modifierPressed.current || (modifierPressed.current && !actInsideInputWithModifier)) &&\n isInputDOMNode(event);\n\n if (preventAction) {\n return false;\n }\n const keyOrCode = getKeyOrCode(event.code, keysToWatch);\n pressedKeys.current.add(event[keyOrCode]);\n\n if (isMatchingKey(keyCodes, pressedKeys.current, false)) {\n const target = (event.composedPath?.()?.[0] || event.target) as Element | null;\n const isInteractiveElement = target?.nodeName === 'BUTTON' || target?.nodeName === 'A';\n\n if (options.preventDefault !== false && (modifierPressed.current || !isInteractiveElement)) {\n event.preventDefault();\n }\n\n setKeyPressed(true);\n }\n };\n\n const upHandler = (event: KeyboardEvent) => {\n const keyOrCode = getKeyOrCode(event.code, keysToWatch);\n\n if (isMatchingKey(keyCodes, pressedKeys.current, true)) {\n setKeyPressed(false);\n pressedKeys.current.clear();\n } else {\n pressedKeys.current.delete(event[keyOrCode]);\n }\n\n // fix for Mac: when cmd key is pressed, keyup is not triggered for any other key, see: https://stackoverflow.com/questions/27380018/when-cmd-key-is-kept-pressed-keyup-is-not-triggered-for-any-other-key\n if (event.key === 'Meta') {\n pressedKeys.current.clear();\n }\n\n modifierPressed.current = false;\n };\n\n const resetHandler = () => {\n pressedKeys.current.clear();\n setKeyPressed(false);\n };\n\n target?.addEventListener('keydown', downHandler as EventListenerOrEventListenerObject);\n target?.addEventListener('keyup', upHandler as EventListenerOrEventListenerObject);\n window.addEventListener('blur', resetHandler);\n window.addEventListener('contextmenu', resetHandler);\n\n return () => {\n target?.removeEventListener('keydown', downHandler as EventListenerOrEventListenerObject);\n target?.removeEventListener('keyup', upHandler as EventListenerOrEventListenerObject);\n window.removeEventListener('blur', resetHandler);\n window.removeEventListener('contextmenu', resetHandler);\n };\n }\n }, [keyCode, setKeyPressed]);\n\n return keyPressed;\n}\n\n// utils\n\nfunction getKeyCodes(keyCode: KeyCode | null): [Array<Keys>, Keys] {\n if (keyCode !== null) {\n const keyCodeArr = Array.isArray(keyCode) ? keyCode : [keyCode];\n const keys = keyCodeArr\n .filter((kc) => typeof kc === 'string')\n /*\n * we first replace all '+' with '\\n' which we will use to split the keys on\n * then we replace '\\n\\n' with '\\n+', this way we can also support the combination 'key++'\n * in the end we simply split on '\\n' to get the key array\n */\n .map((kc) => kc.replace(/\\+/g, '\\n').replace('\\n\\n', '\\n+').split('\\n'));\n const keysFlat = keys.reduce((res: Keys, item) => res.concat(...item), []);\n\n return [keys, keysFlat];\n }\n\n return [[], []];\n}\n\nfunction isMatchingKey(keyCodes: Array<Keys>, pressedKeys: PressedKeys, isUp: boolean): boolean {\n return (\n keyCodes\n /*\n * we only want to compare same sizes of keyCode definitions\n * and pressed keys. When the user specified 'Meta' as a key somewhere\n * this would also be truthy without this filter when user presses 'Meta' + 'r'\n */\n .filter((keys) => isUp || keys.length === pressedKeys.size)\n /*\n * since we want to support multiple possibilities only one of the\n * combinations need to be part of the pressed keys\n */\n .some((keys) => keys.every((k) => pressedKeys.has(k)))\n );\n}\n\nfunction getKeyOrCode(eventCode: string, keysToWatch: KeyCode): KeyOrCode {\n return keysToWatch.includes(eventCode) ? 'code' : 'key';\n}\n","// https://d3js.org/d3-interpolate/ v3.0.2 Copyright 2010-2026 Mike Bostock\nimport { rgb as rgb$1, color, hsl as hsl$1, lab as lab$1, hcl as hcl$1, cubehelix as cubehelix$1 } from 'd3-color';\n\nfunction basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1, t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0\n + (4 - 6 * t2 + 3 * t3) * v1\n + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2\n + t3 * v3) / 6;\n}\n\nfunction basis$1(values) {\n var n = values.length - 1;\n return function(t) {\n var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n\nfunction basisClosed(values) {\n var n = values.length;\n return function(t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n\nvar constant = x => () => x;\n\nfunction linear(a, d) {\n return function(t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nfunction hue$1(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\n\nfunction gamma(y) {\n return (y = +y) === 1 ? nogamma : function(a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\n\nfunction nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n\nvar rgb = (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = rgb$1(start)).r, (end = rgb$1(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function(colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i, color;\n for (i = 0; i < n; ++i) {\n color = rgb$1(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function(t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nvar rgbBasis = rgbSpline(basis$1);\nvar rgbBasisClosed = rgbSpline(basisClosed);\n\nfunction numberArray(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nfunction isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nfunction array(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nfunction genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n\nfunction date(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n\nfunction number(a, b) {\n return a = +a, b = +b, function(t) {\n return a * (1 - t) + b * t;\n };\n}\n\nfunction object(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function() {\n return b;\n };\n}\n\nfunction one(b) {\n return function(t) {\n return b(t) + \"\";\n };\n}\n\nfunction string(a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b\n am, // current match in a\n bm, // current match in b\n bs, // string preceding current number in b, if any\n i = -1, // index in s\n s = [], // string constants and placeholders\n q = []; // number interpolators\n\n // Coerce inputs to strings.\n a = a + \"\", b = b + \"\";\n\n // Interpolate pairs of numbers in a & b.\n while ((am = reA.exec(a))\n && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) { // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else { // interpolate non-matching numbers\n s[++i] = null;\n q.push({i: i, x: number(am, bm)});\n }\n bi = reB.lastIndex;\n }\n\n // Add remains of b.\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n return s.length < 2 ? (q[0]\n ? one(q[0].x)\n : zero(b))\n : (b = q.length, function(t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n });\n}\n\nfunction value(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n\nfunction discrete(range) {\n var n = range.length;\n return function(t) {\n return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];\n };\n}\n\nfunction hue(a, b) {\n var i = hue$1(+a, +b);\n return function(t) {\n var x = i(t);\n return x - 360 * Math.floor(x / 360);\n };\n}\n\nfunction round(a, b) {\n return a = +a, b = +b, function(t) {\n return Math.round(a * (1 - t) + b * t);\n };\n}\n\nvar degrees = 180 / Math.PI;\n\nvar identity = {\n translateX: 0,\n translateY: 0,\n rotate: 0,\n skewX: 0,\n scaleX: 1,\n scaleY: 1\n};\n\nfunction decompose(a, b, c, d, e, f) {\n var scaleX, scaleY, skewX;\n if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;\n if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;\n if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;\n if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;\n return {\n translateX: e,\n translateY: f,\n rotate: Math.atan2(b, a) * degrees,\n skewX: Math.atan(skewX) * degrees,\n scaleX: scaleX,\n scaleY: scaleY\n };\n}\n\nvar svgNode;\n\n/* eslint-disable no-undef */\nfunction parseCss(value) {\n const m = new (typeof DOMMatrix === \"function\" ? DOMMatrix : WebKitCSSMatrix)(value + \"\");\n return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);\n}\n\nfunction parseSvg(value) {\n if (value == null) return identity;\n if (!svgNode) svgNode = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svgNode.setAttribute(\"transform\", value);\n if (!(value = svgNode.transform.baseVal.consolidate())) return identity;\n value = value.matrix;\n return decompose(value.a, value.b, value.c, value.d, value.e, value.f);\n}\n\nfunction interpolateTransform(parse, pxComma, pxParen, degParen) {\n\n function pop(s) {\n return s.length ? s.pop() + \" \" : \"\";\n }\n\n function translate(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(\"translate(\", null, pxComma, null, pxParen);\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb || yb) {\n s.push(\"translate(\" + xb + pxComma + yb + pxParen);\n }\n }\n\n function rotate(a, b, s, q) {\n if (a !== b) {\n if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path\n q.push({i: s.push(pop(s) + \"rotate(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"rotate(\" + b + degParen);\n }\n }\n\n function skewX(a, b, s, q) {\n if (a !== b) {\n q.push({i: s.push(pop(s) + \"skewX(\", null, degParen) - 2, x: number(a, b)});\n } else if (b) {\n s.push(pop(s) + \"skewX(\" + b + degParen);\n }\n }\n\n function scale(xa, ya, xb, yb, s, q) {\n if (xa !== xb || ya !== yb) {\n var i = s.push(pop(s) + \"scale(\", null, \",\", null, \")\");\n q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});\n } else if (xb !== 1 || yb !== 1) {\n s.push(pop(s) + \"scale(\" + xb + \",\" + yb + \")\");\n }\n }\n\n return function(a, b) {\n var s = [], // string constants and placeholders\n q = []; // number interpolators\n a = parse(a), b = parse(b);\n translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);\n rotate(a.rotate, b.rotate, s, q);\n skewX(a.skewX, b.skewX, s, q);\n scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);\n a = b = null; // gc\n return function(t) {\n var i = -1, n = q.length, o;\n while (++i < n) s[(o = q[i]).i] = o.x(t);\n return s.join(\"\");\n };\n };\n}\n\nvar interpolateTransformCss = interpolateTransform(parseCss, \"px, \", \"px)\", \"deg)\");\nvar interpolateTransformSvg = interpolateTransform(parseSvg, \", \", \")\", \")\");\n\nvar epsilon2 = 1e-12;\n\nfunction cosh(x) {\n return ((x = Math.exp(x)) + 1 / x) / 2;\n}\n\nfunction sinh(x) {\n return ((x = Math.exp(x)) - 1 / x) / 2;\n}\n\nfunction tanh(x) {\n return ((x = Math.exp(2 * x)) - 1) / (x + 1);\n}\n\nvar zoom = (function zoomRho(rho, rho2, rho4) {\n\n // p0 = [ux0, uy0, w0]\n // p1 = [ux1, uy1, w1]\n function zoom(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n };\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n };\n }\n\n i.duration = Math.abs(S) * 1000 * rho / Math.SQRT2;\n\n return i;\n }\n\n zoom.rho = function(_) {\n var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2;\n return zoomRho(_1, _2, _4);\n };\n\n return zoom;\n})(Math.SQRT2, 2, 4);\n\nfunction hsl(hue) {\n return function(start, end) {\n var h = hue((start = hsl$1(start)).h, (end = hsl$1(end)).h),\n s = nogamma(start.s, end.s),\n l = nogamma(start.l, end.l),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nvar hsl_default = hsl(hue$1);\nvar hslLong = hsl(nogamma);\n\nfunction lab(start, end) {\n var l = nogamma((start = lab$1(start)).l, (end = lab$1(end)).l),\n a = nogamma(start.a, end.a),\n b = nogamma(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.l = l(t);\n start.a = a(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n}\n\nfunction hcl(hue) {\n return function(start, end) {\n var h = hue((start = hcl$1(start)).h, (end = hcl$1(end)).h),\n c = nogamma(start.c, end.c),\n l = nogamma(start.l, end.l),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.c = c(t);\n start.l = l(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n}\n\nvar hcl_default = hcl(hue$1);\nvar hclLong = hcl(nogamma);\n\nfunction cubehelix(hue) {\n return (function cubehelixGamma(y) {\n y = +y;\n\n function cubehelix(start, end) {\n var h = hue((start = cubehelix$1(start)).h, (end = cubehelix$1(end)).h),\n s = nogamma(start.s, end.s),\n l = nogamma(start.l, end.l),\n opacity = nogamma(start.opacity, end.opacity);\n return function(t) {\n start.h = h(t);\n start.s = s(t);\n start.l = l(Math.pow(t, y));\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n cubehelix.gamma = cubehelixGamma;\n\n return cubehelix;\n })(1);\n}\n\nvar cubehelix_default = cubehelix(hue$1);\nvar cubehelixLong = cubehelix(nogamma);\n\nfunction piecewise(interpolate, values) {\n if (values === undefined) values = interpolate, interpolate = value;\n var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);\n while (i < n) I[i] = interpolate(v, v = values[++i]);\n return function(t) {\n var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));\n return I[i](t - i);\n };\n}\n\nfunction quantize(interpolator, n) {\n var samples = new Array(n);\n for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));\n return samples;\n}\n\nexport { value as interpolate, array as interpolateArray, basis$1 as interpolateBasis, basisClosed as interpolateBasisClosed, cubehelix_default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong, date as interpolateDate, discrete as interpolateDiscrete, hcl_default as interpolateHcl, hclLong as interpolateHclLong, hsl_default as interpolateHsl, hslLong as interpolateHslLong, hue as interpolateHue, lab as interpolateLab, number as interpolateNumber, numberArray as interpolateNumberArray, object as interpolateObject, rgb as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed, round as interpolateRound, string as interpolateString, interpolateTransformCss, interpolateTransformSvg, zoom as interpolateZoom, piecewise, quantize };\n","// https://d3js.org/d3-drag/ v3.0.1 Copyright 2010-2026 Mike Bostock\nimport { dispatch } from 'd3-dispatch';\nimport { select, pointer } from 'd3-selection';\n\n// These are typically used in conjunction with noevent to ensure that we can\n// preventDefault on the event.\nconst nonpassive = {passive: false};\nconst nonpassivecapture = {capture: true, passive: false};\n\nfunction nopropagation(event) {\n event.stopImmediatePropagation();\n}\n\nfunction noevent(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n\nfunction nodrag(view) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", noevent, nonpassivecapture);\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", noevent, nonpassivecapture);\n } else {\n root.__noselect = root.style.MozUserSelect;\n root.style.MozUserSelect = \"none\";\n }\n}\n\nfunction yesdrag(view, noclick) {\n var root = view.document.documentElement,\n selection = select(view).on(\"dragstart.drag\", null);\n if (noclick) {\n selection.on(\"click.drag\", noevent, nonpassivecapture);\n setTimeout(function() { selection.on(\"click.drag\", null); }, 0);\n }\n if (\"onselectstart\" in root) {\n selection.on(\"selectstart.drag\", null);\n } else {\n root.style.MozUserSelect = root.__noselect;\n delete root.__noselect;\n }\n}\n\nvar constant = x => () => x;\n\nfunction DragEvent(type, {\n sourceEvent,\n subject,\n target,\n identifier,\n active,\n x, y, dx, dy,\n dispatch\n}) {\n Object.defineProperties(this, {\n type: {value: type, enumerable: true, configurable: true},\n sourceEvent: {value: sourceEvent, enumerable: true, configurable: true},\n subject: {value: subject, enumerable: true, configurable: true},\n target: {value: target, enumerable: true, configurable: true},\n identifier: {value: identifier, enumerable: true, configurable: true},\n active: {value: active, enumerable: true, configurable: true},\n x: {value: x, enumerable: true, configurable: true},\n y: {value: y, enumerable: true, configurable: true},\n dx: {value: dx, enumerable: true, configurable: true},\n dy: {value: dy, enumerable: true, configurable: true},\n _: {value: dispatch}\n });\n}\n\nDragEvent.prototype.on = function() {\n var value = this._.on.apply(this._, arguments);\n return value === this._ ? this : value;\n};\n\n// Ignore right-click, since that should open the context menu.\nfunction defaultFilter(event) {\n return !event.ctrlKey && !event.button;\n}\n\nfunction defaultContainer() {\n return this.parentNode;\n}\n\nfunction defaultSubject(event, d) {\n return d == null ? {x: event.x, y: event.y} : d;\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction drag() {\n var filter = defaultFilter,\n container = defaultContainer,\n subject = defaultSubject,\n touchable = defaultTouchable,\n gestures = {},\n listeners = dispatch(\"start\", \"drag\", \"end\"),\n active = 0,\n mousedownx,\n mousedowny,\n mousemoving,\n touchending,\n clickDistance2 = 0;\n\n function drag(selection) {\n selection\n .on(\"mousedown.drag\", mousedowned)\n .filter(touchable)\n .on(\"touchstart.drag\", touchstarted)\n .on(\"touchmove.drag\", touchmoved, nonpassive)\n .on(\"touchend.drag touchcancel.drag\", touchended)\n .style(\"touch-action\", \"none\")\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n function mousedowned(event, d) {\n if (touchending || !filter.call(this, event, d)) return;\n var gesture = beforestart(this, container.call(this, event, d), event, d, \"mouse\");\n if (!gesture) return;\n select(event.view)\n .on(\"mousemove.drag\", mousemoved, nonpassivecapture)\n .on(\"mouseup.drag\", mouseupped, nonpassivecapture);\n nodrag(event.view);\n nopropagation(event);\n mousemoving = false;\n mousedownx = event.clientX;\n mousedowny = event.clientY;\n gesture(\"start\", event);\n }\n\n function mousemoved(event) {\n noevent(event);\n if (!mousemoving) {\n var dx = event.clientX - mousedownx, dy = event.clientY - mousedowny;\n mousemoving = dx * dx + dy * dy > clickDistance2;\n }\n gestures.mouse(\"drag\", event);\n }\n\n function mouseupped(event) {\n select(event.view).on(\"mousemove.drag mouseup.drag\", null);\n yesdrag(event.view, mousemoving);\n noevent(event);\n gestures.mouse(\"end\", event);\n }\n\n function touchstarted(event, d) {\n if (!filter.call(this, event, d)) return;\n var touches = event.changedTouches,\n c = container.call(this, event, d),\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = beforestart(this, c, event, d, touches[i].identifier, touches[i])) {\n nopropagation(event);\n gesture(\"start\", event, touches[i]);\n }\n }\n }\n\n function touchmoved(event) {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n noevent(event);\n gesture(\"drag\", event, touches[i]);\n }\n }\n }\n\n function touchended(event) {\n var touches = event.changedTouches,\n n = touches.length, i, gesture;\n\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, 500); // Ghost clicks are delayed!\n for (i = 0; i < n; ++i) {\n if (gesture = gestures[touches[i].identifier]) {\n nopropagation(event);\n gesture(\"end\", event, touches[i]);\n }\n }\n }\n\n function beforestart(that, container, event, d, identifier, touch) {\n var dispatch = listeners.copy(),\n p = pointer(touch || event, container), dx, dy,\n s;\n\n if ((s = subject.call(that, new DragEvent(\"beforestart\", {\n sourceEvent: event,\n target: drag,\n identifier,\n active,\n x: p[0],\n y: p[1],\n dx: 0,\n dy: 0,\n dispatch\n }), d)) == null) return;\n\n dx = s.x - p[0] || 0;\n dy = s.y - p[1] || 0;\n\n return function gesture(type, event, touch) {\n var p0 = p, n;\n switch (type) {\n case \"start\": gestures[identifier] = gesture, n = active++; break;\n case \"end\": delete gestures[identifier], --active; // falls through\n case \"drag\": p = pointer(touch || event, container), n = active; break;\n }\n dispatch.call(\n type,\n that,\n new DragEvent(type, {\n sourceEvent: event,\n subject: s,\n target: drag,\n identifier,\n active: n,\n x: p[0] + dx,\n y: p[1] + dy,\n dx: p[0] - p0[0],\n dy: p[1] - p0[1],\n dispatch\n }),\n d\n );\n };\n }\n\n drag.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), drag) : filter;\n };\n\n drag.container = function(_) {\n return arguments.length ? (container = typeof _ === \"function\" ? _ : constant(_), drag) : container;\n };\n\n drag.subject = function(_) {\n return arguments.length ? (subject = typeof _ === \"function\" ? _ : constant(_), drag) : subject;\n };\n\n drag.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), drag) : touchable;\n };\n\n drag.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? drag : value;\n };\n\n drag.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);\n };\n\n return drag;\n}\n\nexport { drag, nodrag as dragDisable, yesdrag as dragEnable };\n","import { type CoordinateExtent, type HandleType } from '../types';\n\nexport const errorMessages = {\n error001: (lib: string = 'react') =>\n `Seems like you have not used ${lib === 'svelte' ? 'SvelteFlowProvider' : 'ReactFlowProvider'} as an ancestor. Help: https://${lib}flow.dev/error#001`,\n error002: () =>\n \"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.\",\n error003: (nodeType: string) => `Node type \"${nodeType}\" not found. Using fallback type \"default\".`,\n error004: () => 'The parent container needs a width and a height to render the graph.',\n error005: () => 'Only child nodes can use a parent extent.',\n error006: () => \"Can't create edge. An edge needs a source and a target.\",\n error007: (id: string) => `The old edge with id=${id} does not exist.`,\n error009: (type: string) => `Marker type \"${type}\" doesn't exist.`,\n error008: (\n handleType: HandleType,\n { id, sourceHandle, targetHandle }: { id: string; sourceHandle: string | null; targetHandle: string | null }\n ) =>\n `Couldn't create edge for ${handleType} handle id: \"${\n handleType === 'source' ? sourceHandle : targetHandle\n }\", edge id: ${id}.`,\n error010: () => 'Handle: No node id found. Make sure to only use a Handle inside a custom Node.',\n error011: (edgeType: string) => `Edge type \"${edgeType}\" not found. Using fallback type \"default\".`,\n error012: (id: string) =>\n `Node with id \"${id}\" does not exist, it may have been removed. This can happen when a node is deleted before the \"onNodeClick\" handler is called.`,\n error013: (lib: string = 'react') =>\n `It seems that you haven't loaded the styles. Please import '@xyflow/${lib}/dist/style.css' or base.css to make sure everything is working properly.`,\n error014: () =>\n 'useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.',\n error015: () =>\n 'It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.',\n error016: (id: string) =>\n `Edge with id \"${id}\" does not exist, it may have been removed. This can happen when an edge is deleted before the \"onEdgeClick\" handler is called.`,\n};\n\nexport const infiniteExtent: CoordinateExtent = [\n [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY],\n [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY],\n];\n\n/** Default padding used by `fitView` / `fitBounds` when none is provided. */\nexport const defaultFitViewPadding = '5%';\n\nexport const elementSelectionKeys = ['Enter', ' ', 'Escape'];\n\nexport const defaultAriaLabelConfig = {\n 'node.a11yDescription.default':\n 'Press enter or space to select a node. Press delete to remove it and escape to cancel.',\n 'node.a11yDescription.keyboardDisabled':\n 'Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.',\n 'node.a11yDescription.ariaLiveMessage': ({ direction, x, y }: { direction: string; x: number; y: number }) =>\n `Moved selected node ${direction}. New position, x: ${x}, y: ${y}`,\n 'edge.a11yDescription.default':\n 'Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.',\n\n // Control elements\n 'controls.ariaLabel': 'Control Panel',\n 'controls.zoomIn.ariaLabel': 'Zoom In',\n 'controls.zoomOut.ariaLabel': 'Zoom Out',\n 'controls.fitView.ariaLabel': 'Fit View',\n 'controls.interactive.ariaLabel': 'Toggle Interactivity',\n\n // Mini map\n 'minimap.ariaLabel': 'Mini Map',\n\n // Handle\n 'handle.ariaLabel': 'Handle',\n};\n\nexport type AriaLabelConfig = typeof defaultAriaLabelConfig;\n","import {\n pointToRendererPoint,\n getViewportForBounds,\n defaultFitViewPadding,\n type XYPosition,\n rendererPointToPoint,\n SnapGrid,\n} from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\nimport type { ViewportHelperFunctions } from '../types';\n\n/**\n * Hook for getting viewport helper functions.\n *\n * @internal\n * @returns viewport helper functions\n */\nconst useViewportHelper = (): ViewportHelperFunctions => {\n const { optionsStore, viewportStore } = useReactFlowStoreApi();\n\n return {\n zoomIn: async (options) => {\n const { panZoom } = optionsStore.getState();\n\n return panZoom ? panZoom.scaleBy(1.2, options) : false;\n },\n zoomOut: async (options) => {\n const { panZoom } = optionsStore.getState();\n\n return panZoom ? panZoom.scaleBy(1 / 1.2, options) : false;\n },\n zoomTo: async (zoomLevel, options) => {\n const { panZoom } = optionsStore.getState();\n\n return panZoom ? panZoom.scaleTo(zoomLevel, options) : false;\n },\n getZoom: () => viewportStore.getState().transform[2],\n setViewport: async (viewport, options) => {\n const {\n transform: [tX, tY, tZoom],\n } = viewportStore.getState();\n const { panZoom } = optionsStore.getState();\n\n if (!panZoom) {\n return false;\n }\n\n return panZoom.setViewport(\n {\n x: viewport.x ?? tX,\n y: viewport.y ?? tY,\n zoom: viewport.zoom ?? tZoom,\n },\n options\n );\n },\n getViewport: () => {\n const [x, y, zoom] = viewportStore.getState().transform;\n return { x, y, zoom };\n },\n setCenter: async (x, y, options) => {\n return optionsStore.getState().setCenter(x, y, options);\n },\n fitBounds: async (bounds, options) => {\n const { width, height } = viewportStore.getState();\n const { minZoom, maxZoom, panZoom } = optionsStore.getState();\n const viewport = getViewportForBounds(\n bounds,\n width,\n height,\n minZoom,\n maxZoom,\n options?.padding ?? defaultFitViewPadding\n );\n\n if (!panZoom) {\n return false;\n }\n\n return panZoom.setViewport(viewport, options);\n },\n screenToFlowPosition: (clientPosition: XYPosition, options: { snapToGrid?: boolean; snapGrid?: SnapGrid } = {}) => {\n const { transform } = viewportStore.getState();\n const { snapGrid, snapToGrid, domNode } = optionsStore.getState();\n\n if (!domNode) {\n return clientPosition;\n }\n\n const { x: domX, y: domY } = domNode.getBoundingClientRect();\n const correctedPosition = {\n x: clientPosition.x - domX,\n y: clientPosition.y - domY,\n };\n const _snapGrid = options.snapGrid ?? snapGrid;\n const _snapToGrid = options.snapToGrid ?? snapToGrid;\n\n return pointToRendererPoint(correctedPosition, transform, _snapToGrid, _snapGrid);\n },\n flowToScreenPosition: (flowPosition: XYPosition) => {\n const { transform } = viewportStore.getState();\n const { domNode } = optionsStore.getState();\n\n if (!domNode) {\n return flowPosition;\n }\n\n const { x: domX, y: domY } = domNode.getBoundingClientRect();\n const rendererPosition = rendererPointToPoint(flowPosition, transform);\n\n return {\n x: rendererPosition.x + domX,\n y: rendererPosition.y + domY,\n };\n },\n };\n};\n\nexport default useViewportHelper;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable @typescript-eslint/no-unsafe-return */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport { EdgeLookup, NodeLookup, EdgeChange, NodeChange, addChange, replaceChange, removeChange } from '@xyflow/system';\nimport type { Node, Edge, InternalNode } from '../types';\n\n/**\n * This function is used to find the changes between two sets of elements.\n * It is used to determine which nodes or edges have been added, removed or replaced.\n *\n * @internal\n * @param params.items = the next set of elements (nodes or edges)\n * @param params.lookup = a lookup map of the current store elements\n * @returns an array of changes\n */\nexport function getElementsDiffChanges({\n items,\n lookup,\n}: {\n items: Node[] | undefined;\n lookup: NodeLookup<InternalNode<Node>>;\n}): NodeChange[];\nexport function getElementsDiffChanges({\n items,\n lookup,\n}: {\n items: Edge[] | undefined;\n lookup: EdgeLookup;\n}): EdgeChange[];\nexport function getElementsDiffChanges({\n items = [],\n lookup,\n}: {\n items: any[] | undefined;\n lookup: Map<string, any>;\n}): any[] {\n const changes: any[] = [];\n const itemsLookup = new Map<string, any>(items.map((item) => [item.id, item]));\n\n for (const [, item] of items.entries()) {\n const lookupItem = lookup.get(item.id);\n const storeItem = lookupItem?.internals?.userNode ?? lookupItem;\n\n if (storeItem !== undefined && storeItem !== item) {\n changes.push(replaceChange({ ...item }));\n }\n\n if (storeItem === undefined) {\n changes.push(addChange({ ...item }));\n }\n }\n\n for (const [id] of lookup) {\n const nextNode = itemsLookup.get(id);\n\n if (nextNode === undefined) {\n changes.push(removeChange(id));\n }\n }\n\n return changes;\n}\n","import {\n addEdge as addEdgeSystem,\n reconnectEdge as reconnectEdgeSystem,\n createDevWarn,\n type AddEdgeOptions,\n type Connection,\n type EdgeBase,\n type ReconnectEdgeOptions,\n type OnError,\n} from '@xyflow/system';\n\nconst defaultOnError = createDevWarn('React Flow', 'https://reactflow.dev/');\n\nexport function addEdge<EdgeType extends EdgeBase>(\n edgeParams: EdgeType | Connection,\n edges: EdgeType[],\n options: AddEdgeOptions = {}\n): EdgeType[] {\n return addEdgeSystem(edgeParams, edges, {\n ...options,\n onError: (options.onError as OnError) ?? defaultOnError,\n });\n}\n\nexport function reconnectEdge<EdgeType extends EdgeBase>(\n oldEdge: EdgeType,\n newConnection: Connection,\n edges: EdgeType[],\n options: ReconnectEdgeOptions = { shouldReplaceId: true }\n): EdgeType[] {\n return reconnectEdgeSystem(oldEdge, newConnection, edges, {\n ...options,\n onError: (options.onError as OnError) ?? defaultOnError,\n });\n}\n","import { type Ref, type RefAttributes, forwardRef, JSX, PropsWithoutRef } from 'react';\nimport { isNodeBase, isEdgeBase } from '@xyflow/system';\n\nimport type { Edge, Node } from '../types';\n\n/**\n * Test whether an object is usable as an [`Node`](/api-reference/types/node).\n * In TypeScript this is a type guard that will narrow the type of whatever you pass in to\n * [`Node`](/api-reference/types/node) if it returns `true`.\n *\n * @public\n * @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Node if it returns true\n * @param element - The element to test.\n * @returns Tests whether the provided value can be used as a `Node`. If you're using TypeScript,\n * this function acts as a type guard and will narrow the type of the value to `Node` if it returns\n * `true`.\n *\n * @example\n * ```js\n *import { isNode } from '@xyflow/react';\n *\n *if (isNode(node)) {\n * // ...\n *}\n *```\n */\nexport const isNode = <NodeType extends Node = Node>(element: unknown): element is NodeType =>\n isNodeBase<NodeType>(element);\n\n/**\n * Test whether an object is usable as an [`Edge`](/api-reference/types/edge).\n * In TypeScript this is a type guard that will narrow the type of whatever you pass in to\n * [`Edge`](/api-reference/types/edge) if it returns `true`.\n *\n * @public\n * @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Edge if it returns true\n * @param element - The element to test\n * @returns Tests whether the provided value can be used as an `Edge`. If you're using TypeScript,\n * this function acts as a type guard and will narrow the type of the value to `Edge` if it returns\n * `true`.\n *\n * @example\n * ```js\n *import { isEdge } from '@xyflow/react';\n *\n *if (isEdge(edge)) {\n * // ...\n *}\n *```\n */\nexport const isEdge = <EdgeType extends Edge = Edge>(element: unknown): element is EdgeType =>\n isEdgeBase<EdgeType>(element);\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport function fixedForwardRef<T, P = {}>(\n render: (props: PropsWithoutRef<P>, ref: Ref<T>) => JSX.Element\n): (props: P & RefAttributes<T>) => JSX.Element {\n return forwardRef(render) as (props: P & RefAttributes<T>) => JSX.Element;\n}\n","import { useEffect, useLayoutEffect } from 'react';\n\n// we need this hook to prevent a warning when using react-flow in SSR\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n","import { useState } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect';\nimport { Queue, QueueItem } from './types';\n\n/**\n * This hook returns a queue that can be used to batch updates.\n *\n * @param runQueue - a function that gets called when the queue is flushed\n * @internal\n *\n * @returns a Queue object\n */\nexport function useQueue<T>(runQueue: (items: QueueItem<T>[]) => void) {\n /*\n * Because we're using a ref above, we need some way to let React know when to\n * actually process the queue. We increment this number any time we mutate the\n * queue, creating a new state to trigger the layout effect below.\n * Using a boolean dirty flag here instead would lead to issues related to\n * automatic batching. (https://github.com/xyflow/xyflow/issues/4779)\n */\n const [serial, setSerial] = useState(BigInt(0));\n\n /*\n * A reference of all the batched updates to process before the next render. We\n * want a reference here so multiple synchronous calls to `setNodes` etc can be\n * batched together.\n */\n const [queue] = useState(() => createQueue<T>(() => setSerial((n) => n + BigInt(1))));\n\n /*\n * Layout effects are guaranteed to run before the next render which means we\n * shouldn't run into any issues with stale state or weird issues that come from\n * rendering things one frame later than expected (we used to use `setTimeout`).\n */\n useIsomorphicLayoutEffect(() => {\n const queueItems = queue.get();\n\n if (queueItems.length) {\n runQueue(queueItems);\n\n queue.reset();\n }\n }, [serial]);\n\n return queue;\n}\n\nfunction createQueue<T>(cb: () => void): Queue<T> {\n let queue: QueueItem<T>[] = [];\n\n return {\n get: () => queue,\n reset: () => {\n queue = [];\n },\n push: (item) => {\n queue.push(item);\n cb();\n },\n };\n}\n","import { createContext, ReactNode, useContext, useMemo } from 'react';\nimport { EdgeChange, NodeChange, NodeChangeset, EdgeChangeset } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { getElementsDiffChanges } from '../../utils';\nimport { Queue, QueueItem } from './types';\nimport type { Edge, Node } from '../../types';\nimport { useQueue } from './useQueue';\n\nconst BatchContext = createContext<{\n nodeQueue: Queue<Node>;\n edgeQueue: Queue<Edge>;\n} | null>(null);\n\n/**\n * This is a context provider that holds and processes the node and edge update queues\n * that are needed to handle setNodes, addNodes, setEdges and addEdges.\n *\n * @internal\n */\nexport function BatchProvider<NodeType extends Node = Node, EdgeType extends Edge = Edge>({\n children,\n}: {\n children: ReactNode;\n}) {\n const { optionsStore, nodesStore, edgesStore } = useReactFlowStoreApi<NodeType, EdgeType>();\n\n const nodeQueueHandler = (queueItems: QueueItem<NodeType>[]) => {\n const { nodes = [], nodeLookup } = nodesStore.getState();\n const { onNodesChange, fitViewQueued, onNodesChangeMiddlewareMap, setNodes, hasDefaultNodes } =\n optionsStore.getState();\n\n /*\n * This is essentially an `Array.reduce` in imperative clothing. Processing\n * this queue is a relatively hot path so we'd like to avoid the overhead of\n * array methods where we can.\n */\n let next = nodes;\n for (const payload of queueItems) {\n next = typeof payload === 'function' ? payload(next) : payload;\n }\n\n let changes = getElementsDiffChanges({\n items: next,\n lookup: nodeLookup,\n }) as NodeChange<NodeType>[];\n\n for (const middleware of onNodesChangeMiddlewareMap.values()) {\n changes = middleware(changes);\n }\n\n if (hasDefaultNodes) {\n setNodes(next);\n }\n\n // We only want to fire onNodesChange if there are changes to the nodes\n if (changes.length > 0) {\n onNodesChange?.(new NodeChangeset(changes));\n } else if (fitViewQueued) {\n // If there are no changes to the nodes, we still need to call setNodes\n // to trigger a re-render and fitView.\n window.requestAnimationFrame(() => {\n const { fitViewQueued, setNodes } = optionsStore.getState();\n const { nodes } = nodesStore.getState();\n if (fitViewQueued) {\n setNodes(nodes);\n }\n });\n }\n };\n\n const nodeQueue = useQueue<NodeType>(nodeQueueHandler);\n\n const edgeQueueHandler = (queueItems: QueueItem<EdgeType>[]) => {\n const { edges = [], edgeLookup } = edgesStore.getState();\n const { setEdges, hasDefaultEdges, onEdgesChange } = optionsStore.getState();\n\n let next = edges;\n for (const payload of queueItems) {\n next = typeof payload === 'function' ? payload(next) : payload;\n }\n\n if (hasDefaultEdges) {\n setEdges(next);\n } else if (onEdgesChange) {\n const changes = getElementsDiffChanges({\n items: next,\n lookup: edgeLookup,\n }) as EdgeChange<EdgeType>[];\n onEdgesChange?.(new EdgeChangeset(changes));\n }\n };\n const edgeQueue = useQueue<EdgeType>(edgeQueueHandler);\n\n const value = useMemo(\n () => ({ nodeQueue, edgeQueue }) as unknown as { nodeQueue: Queue<Node>; edgeQueue: Queue<Edge> },\n [nodeQueue, edgeQueue]\n );\n\n return <BatchContext.Provider value={value}>{children}</BatchContext.Provider>;\n}\n\nexport function useBatchContext() {\n const batchContext = useContext(BatchContext);\n\n if (!batchContext) {\n throw new Error('useBatchContext must be used within a BatchProvider');\n }\n\n return batchContext;\n}\n","import {\n evaluateAbsolutePosition,\n getElementsToRemove,\n getNodesBounds,\n getOverlappingArea,\n isRectObject,\n nodeToRect,\n RemoveChange,\n withResolvers,\n changeParentNode,\n type Rect,\n removeChange,\n getConnectionsFromLookup,\n} from '@xyflow/system';\n\nimport useViewportHelper from './useViewportHelper';\nimport { useOptionsStore, useReactFlowStoreApi } from './useReactFlowStore';\nimport { useBatchContext } from '../components/BatchProvider';\nimport { isEdge, isNode } from '../utils';\nimport type {\n ReactFlowInstance,\n Node,\n Edge,\n InternalNode,\n ReactFlowState,\n GeneralHelpers,\n FitViewOptions,\n} from '../types';\n\nconst selector = (s: ReactFlowState) => !!s.panZoom;\n\n/**\n * This hook returns a ReactFlowInstance that can be used to update nodes and edges, manipulate the viewport, or query the current state of the flow.\n *\n * @public\n * @example\n * ```jsx\n *import { useCallback, useState } from 'react';\n *import { useReactFlow } from '@xyflow/react';\n *\n *export function NodeCounter() {\n * const reactFlow = useReactFlow();\n * const [count, setCount] = useState(0);\n * const countNodes = useCallback(() => {\n * setCount(reactFlow.getNodes().length);\n * // you need to pass it as a dependency if you are using it with useEffect or useCallback\n * // because at the first render, it's not initialized yet and some functions might not work.\n * }, [reactFlow]);\n *\n * return (\n * <div>\n * <button onClick={countNodes}>Update count</button>\n * <p>There are {count} nodes in the flow.</p>\n * </div>\n * );\n *}\n *```\n */\nexport function useReactFlow<NodeType extends Node = Node, EdgeType extends Edge = Edge>(): ReactFlowInstance<\n NodeType,\n EdgeType\n> {\n const viewportHelper = useViewportHelper();\n const { optionsStore, viewportStore, nodesStore, edgesStore } = useReactFlowStoreApi();\n const batchContext = useBatchContext();\n const viewportInitialized = useOptionsStore(selector);\n\n const getInternalNode: GeneralHelpers<NodeType, EdgeType>['getInternalNode'] = (id) =>\n nodesStore.getState().nodeLookup.get(id) as InternalNode<NodeType>;\n\n const setNodes: GeneralHelpers<NodeType, EdgeType>['setNodes'] = (payload) => {\n batchContext.nodeQueue.push(payload as NodeType[]);\n };\n\n const setEdges: GeneralHelpers<NodeType, EdgeType>['setEdges'] = (payload) => {\n batchContext.edgeQueue.push(payload as EdgeType[]);\n };\n\n const getNodeRect = (node: NodeType | { id: string }): Rect | null => {\n const { nodeLookup } = nodesStore.getState();\n const { nodeOrigin } = optionsStore.getState();\n\n const nodeToUse = isNode<NodeType>(node) ? node : nodeLookup.get(node.id)!;\n const position = nodeToUse.parentId\n ? evaluateAbsolutePosition(nodeToUse.position, nodeToUse.measured, nodeToUse.parentId, nodeLookup, nodeOrigin)\n : nodeToUse.position;\n\n const nodeWithPosition = {\n ...nodeToUse,\n position,\n width: nodeToUse.measured?.width ?? nodeToUse.width,\n height: nodeToUse.measured?.height ?? nodeToUse.height,\n };\n\n return nodeToRect(nodeWithPosition, nodeToUse.parentId ? undefined : nodeOrigin);\n };\n\n const updateNode: GeneralHelpers<NodeType, EdgeType>['updateNode'] = (\n id,\n nodeUpdate,\n options = { replace: false }\n ) => {\n setNodes((prevNodes) =>\n prevNodes.map((node) => {\n if (node.id === id) {\n const nextNode = typeof nodeUpdate === 'function' ? nodeUpdate(node) : nodeUpdate;\n return options.replace && isNode(nextNode) ? (nextNode as NodeType) : { ...node, ...nextNode };\n }\n\n return node;\n })\n );\n };\n\n const updateEdge: GeneralHelpers<NodeType, EdgeType>['updateEdge'] = (\n id,\n edgeUpdate,\n options = { replace: false }\n ) => {\n setEdges((prevEdges) =>\n prevEdges.map((edge) => {\n if (edge.id === id) {\n const nextEdge = typeof edgeUpdate === 'function' ? edgeUpdate(edge) : edgeUpdate;\n return options.replace && isEdge(nextEdge) ? (nextEdge as EdgeType) : { ...edge, ...nextEdge };\n }\n\n return edge;\n })\n );\n };\n\n const generalHelper: GeneralHelpers<NodeType, EdgeType> = {\n getNodes: () => nodesStore.getState().nodes.map((n) => ({ ...n })) as NodeType[],\n getNode: (id) => getInternalNode(id)?.internals.userNode,\n getInternalNode,\n getEdges: () => {\n const { edges = [] } = edgesStore.getState();\n return edges.map((e) => ({ ...e })) as EdgeType[];\n },\n getEdge: (id) => edgesStore.getState().edgeLookup.get(id) as EdgeType,\n setNodes,\n setEdges,\n addNodes: (payload) => {\n const newNodes = Array.isArray(payload) ? payload : [payload];\n batchContext.nodeQueue.push((nodes) => [...nodes, ...newNodes]);\n },\n addEdges: (payload) => {\n const newEdges = Array.isArray(payload) ? payload : [payload];\n batchContext.edgeQueue.push((edges) => [...edges, ...newEdges]);\n },\n toObject: () => {\n const { nodes = [] } = nodesStore.getState();\n const { edges = [] } = edgesStore.getState();\n const { transform } = viewportStore.getState();\n const [x, y, zoom] = transform;\n return {\n nodes: nodes.map((n) => ({ ...n })) as NodeType[],\n edges: edges.map((e) => ({ ...e })) as EdgeType[],\n viewport: {\n x,\n y,\n zoom,\n },\n };\n },\n deleteElements: async ({ nodes: nodesToRemove = [], edges: edgesToRemove = [] }) => {\n const { nodes } = nodesStore.getState();\n const { edges } = edgesStore.getState();\n const { onNodesDelete, onEdgesDelete, emitNodeChanges, emitEdgeChanges, onDelete, onBeforeDelete } =\n optionsStore.getState();\n const { nodes: matchingNodes, edges: matchingEdges } = await getElementsToRemove({\n nodesToRemove,\n edgesToRemove,\n nodes,\n edges,\n onBeforeDelete,\n });\n\n const hasMatchingEdges = matchingEdges.length > 0;\n const hasMatchingNodes = matchingNodes.length > 0;\n\n if (hasMatchingEdges) {\n const edgeChanges: RemoveChange[] = matchingEdges.map((e) => removeChange(e.id));\n\n onEdgesDelete?.(matchingEdges);\n emitEdgeChanges(edgeChanges);\n }\n\n if (hasMatchingNodes) {\n const nodeChanges: RemoveChange[] = matchingNodes.map((n) => removeChange(n.id));\n\n onNodesDelete?.(matchingNodes);\n emitNodeChanges(nodeChanges);\n }\n\n if (hasMatchingNodes || hasMatchingEdges) {\n onDelete?.({ nodes: matchingNodes, edges: matchingEdges });\n }\n\n return { deletedNodes: matchingNodes, deletedEdges: matchingEdges };\n },\n /**\n * Partial is defined as \"the 2 nodes/areas are intersecting partially\".\n * If a is contained in b or b is contained in a, they are both\n * considered fully intersecting.\n */\n getIntersectingNodes: (nodeOrRect, partially = true, nodes) => {\n const isRect = isRectObject(nodeOrRect);\n const nodeRect = isRect ? nodeOrRect : getNodeRect(nodeOrRect);\n const hasNodesOption = nodes !== undefined;\n\n if (!nodeRect) {\n return [];\n }\n\n const { nodeOrigin } = optionsStore.getState();\n return (nodes || nodesStore.getState().nodes).filter((n) => {\n const internalNode = nodesStore.getState().nodeLookup.get(n.id);\n\n if (internalNode && !isRect && (n.id === nodeOrRect.id || !internalNode.internals.positionAbsolute)) {\n return false;\n }\n\n const currNodeRect = nodeToRect(hasNodesOption ? n : internalNode!, nodeOrigin);\n const overlappingArea = getOverlappingArea(currNodeRect, nodeRect);\n const partiallyVisible = partially && overlappingArea > 0;\n\n return (\n partiallyVisible ||\n overlappingArea >= currNodeRect.width * currNodeRect.height ||\n overlappingArea >= nodeRect.width * nodeRect.height\n );\n }) as NodeType[];\n },\n isNodeIntersecting: (nodeOrRect, area, partially = true) => {\n const isRect = isRectObject(nodeOrRect);\n const nodeRect = isRect ? nodeOrRect : getNodeRect(nodeOrRect);\n\n if (!nodeRect) {\n return false;\n }\n\n const overlappingArea = getOverlappingArea(nodeRect, area);\n const partiallyVisible = partially && overlappingArea > 0;\n\n return (\n partiallyVisible ||\n overlappingArea >= area.width * area.height ||\n overlappingArea >= nodeRect.width * nodeRect.height\n );\n },\n updateNode,\n updateNodeData: (id, dataUpdate, options = { replace: false }) => {\n updateNode(\n id,\n (node) => {\n const nextData = typeof dataUpdate === 'function' ? dataUpdate(node) : dataUpdate;\n return options.replace ? { ...node, data: nextData } : { ...node, data: { ...node.data, ...nextData } };\n },\n options\n );\n },\n changeParent: (nodeId: string, parentId: string | null) => {\n changeParentNode(\n nodeId,\n nodesStore.getState().nodeLookup,\n parentId,\n optionsStore.getState().nodeOrigin,\n ({ nodeId, parentId, x, y }) => {\n updateNode(nodeId, {\n parentId: parentId ?? undefined,\n position: { x, y },\n } as Partial<NodeType>);\n }\n );\n },\n updateEdge,\n updateEdgeData: (id, dataUpdate, options = { replace: false }) => {\n updateEdge(\n id,\n (edge) => {\n const nextData = typeof dataUpdate === 'function' ? dataUpdate(edge) : dataUpdate;\n return options.replace ? { ...edge, data: nextData } : { ...edge, data: { ...edge.data, ...nextData } };\n },\n options\n );\n },\n getNodesBounds: (nodes: (NodeType | InternalNode | string)[]): Rect => {\n const { nodeLookup } = nodesStore.getState();\n const { nodeOrigin } = optionsStore.getState();\n return getNodesBounds(nodes, { nodeLookup, nodeOrigin });\n },\n getNodeConnections: ({ type, handleId, nodeId }) =>\n getConnectionsFromLookup(edgesStore.getState().connectionLookup, { nodeId, type, handleId }),\n fitView: async (options: FitViewOptions<NodeType> | undefined) => {\n // We either create a new Promise or reuse the existing one\n // Even if fitView is called multiple times in a row, we only end up with a single Promise\n const fitViewResolver = optionsStore.getState().fitViewResolver ?? withResolvers<boolean>();\n\n // We schedule a fitView by setting fitViewQueued and triggering a setNodes\n optionsStore.setState({ fitViewQueued: true, fitViewOptions: options, fitViewResolver });\n batchContext.nodeQueue.push((nodes) => [...nodes]);\n\n return fitViewResolver.promise;\n },\n };\n\n return {\n ...generalHelper,\n ...viewportHelper,\n viewportInitialized,\n };\n}\n","import { useEffect } from 'react';\nimport type { KeyCode } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\nimport { useKeyPress } from './useKeyPress';\nimport { useReactFlow } from './useReactFlow';\nimport { Edge, Node } from '../types';\n\nconst selected = (item: Node | Edge) => item.selected;\n\nconst win = typeof window !== 'undefined' ? window : undefined;\n\n/**\n * Hook for handling global key events.\n *\n * @internal\n */\nexport function useGlobalKeyHandler({\n deleteKeyCode,\n multiSelectionKeyCode,\n}: {\n deleteKeyCode: KeyCode | null;\n multiSelectionKeyCode: KeyCode | null;\n}): void {\n const { optionsStore, nodesStore, edgesStore } = useReactFlowStoreApi();\n const { deleteElements } = useReactFlow();\n\n const deleteKeyPressed = useKeyPress(deleteKeyCode, { actInsideInputWithModifier: false });\n const multiSelectionKeyPressed = useKeyPress(multiSelectionKeyCode, { target: win });\n\n useEffect(() => {\n if (deleteKeyPressed) {\n const { edges } = edgesStore.getState();\n const { nodes } = nodesStore.getState();\n void deleteElements({ nodes: nodes.filter(selected), edges: edges.filter(selected) });\n if (optionsStore.getState().nodesSelectionActive) {\n optionsStore.setState({ nodesSelectionActive: false });\n }\n }\n }, [deleteKeyPressed]);\n\n useEffect(() => {\n optionsStore.setState({ multiSelectionActive: multiSelectionKeyPressed });\n }, [multiSelectionKeyPressed]);\n}\n","import { useEffect, type MutableRefObject } from 'react';\nimport { errorMessages, getDimensions } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\n\n/**\n * Hook for handling resize events.\n *\n * @internal\n */\nexport function useResizeHandler(domNode: MutableRefObject<HTMLDivElement | null>): void {\n const { optionsStore, viewportStore } = useReactFlowStoreApi();\n\n useEffect(() => {\n const updateDimensions = () => {\n if (!domNode.current || !(domNode.current.checkVisibility?.() ?? true)) {\n return false;\n }\n const size = getDimensions(domNode.current);\n\n if (size.height === 0 || size.width === 0) {\n optionsStore.getState().onError?.('004', errorMessages['error004']());\n }\n\n viewportStore.setState({ width: size.width || 500, height: size.height || 500 });\n };\n\n if (domNode.current) {\n updateDimensions();\n window.addEventListener('resize', updateDimensions);\n\n const resizeObserver = new ResizeObserver(() => updateDimensions());\n resizeObserver.observe(domNode.current);\n\n return () => {\n window.removeEventListener('resize', updateDimensions);\n resizeObserver.disconnect();\n };\n }\n }, []);\n}\n","import type { CSSProperties } from 'react';\n\nexport const containerStyle: CSSProperties = {\n position: 'absolute',\n width: '100%',\n height: '100%',\n top: 0,\n left: 0,\n};\n","import { useCallback, useEffect, useRef, useState } from 'react';\nimport { XYPanZoom, PanOnScrollMode, type Transform, type PanZoomInstance } from '@xyflow/system';\n\nimport { useKeyPress } from '../../hooks/useKeyPress';\nimport { useResizeHandler } from '../../hooks/useResizeHandler';\nimport { useOptionsStore, useConnectionStore, useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { containerStyle } from '../../styles/utils';\nimport type { FlowRendererProps } from '../FlowRenderer';\n\ntype ZoomPaneProps = Omit<\n FlowRendererProps,\n 'deleteKeyCode' | 'selectionKeyCode' | 'multiSelectionKeyCode' | 'noDragClassName' | 'disableKeyboardA11y'\n> & {\n isControlledViewport: boolean;\n panActivationKeyPressed: boolean;\n};\n\nexport function ZoomPane({\n onPaneContextMenu,\n zoomOnScroll = true,\n zoomOnPinch = true,\n panOnScroll = false,\n panActivationKeyPressed,\n panOnScrollSpeed = 0.5,\n panOnScrollMode = PanOnScrollMode.Free,\n zoomOnDoubleClick = true,\n panOnDrag = true,\n defaultViewport,\n translateExtent,\n minZoom,\n maxZoom,\n zoomActivationKeyCode,\n preventScrolling = true,\n children,\n noWheelClassName,\n noPanClassName,\n onViewportChange,\n isControlledViewport,\n paneDragThreshold,\n}: ZoomPaneProps) {\n const { optionsStore, viewportStore } = useReactFlowStoreApi();\n const userSelectionActive = useOptionsStore((s) => s.userSelectionActive);\n const connectionInProgress = useConnectionStore((state) => state.connection.inProgress);\n const zoomActivationKeyPressed = useKeyPress(zoomActivationKeyCode);\n\n const zoomPane = useRef<HTMLDivElement>(null);\n const panZoom = useRef<PanZoomInstance>();\n // We want to prevent re-initialization of the pan/zoom instance\n const [panZoomOptions] = useState(() => ({\n minZoom,\n maxZoom,\n translateExtent,\n defaultViewport,\n }));\n\n useResizeHandler(zoomPane);\n\n const onTransformChange = useCallback(\n (transform: Transform) => {\n onViewportChange?.({ x: transform[0], y: transform[1], zoom: transform[2] });\n\n if (!isControlledViewport) {\n viewportStore.setState({ transform });\n }\n },\n [onViewportChange, isControlledViewport, viewportStore]\n );\n\n useEffect(() => {\n if (zoomPane.current) {\n panZoom.current = XYPanZoom({\n domNode: zoomPane.current,\n minZoom: panZoomOptions.minZoom,\n maxZoom: panZoomOptions.maxZoom,\n translateExtent: panZoomOptions.translateExtent,\n viewport: panZoomOptions.defaultViewport,\n onDraggingChange: (paneDragging) =>\n viewportStore.setState((prevState) =>\n prevState.paneDragging === paneDragging ? prevState : { paneDragging }\n ),\n onPanZoomStart: (event, vp) => {\n const { onViewportChangeStart, onMoveStart } = optionsStore.getState();\n onMoveStart?.(event, vp);\n onViewportChangeStart?.(vp);\n },\n onPanZoom: (event, vp) => {\n const { onViewportChange, onMove } = optionsStore.getState();\n onMove?.(event, vp);\n onViewportChange?.(vp);\n },\n onPanZoomEnd: (event, vp) => {\n const { onViewportChangeEnd, onMoveEnd } = optionsStore.getState();\n onMoveEnd?.(event, vp);\n onViewportChangeEnd?.(vp);\n },\n });\n\n const { x, y, zoom } = panZoom.current.getViewport();\n\n optionsStore.setState({\n panZoom: panZoom.current,\n domNode: zoomPane.current.closest('.react-flow') as HTMLDivElement,\n });\n viewportStore.setState({ transform: [x, y, zoom] });\n\n return () => {\n panZoom.current?.destroy();\n };\n }\n }, [panZoomOptions, optionsStore, viewportStore]);\n\n useEffect(() => {\n panZoom.current?.update({\n onPaneContextMenu,\n zoomOnScroll,\n zoomOnPinch,\n panOnScroll,\n panActivationKeyPressed,\n panOnScrollSpeed,\n panOnScrollMode,\n zoomOnDoubleClick,\n panOnDrag,\n zoomActivationKeyPressed,\n preventScrolling,\n noPanClassName,\n userSelectionActive,\n noWheelClassName,\n lib: 'react',\n onTransformChange,\n connectionInProgress,\n paneDragThreshold,\n });\n }, [\n onPaneContextMenu,\n zoomOnScroll,\n zoomOnPinch,\n panOnScroll,\n panActivationKeyPressed,\n panOnScrollSpeed,\n panOnScrollMode,\n zoomOnDoubleClick,\n panOnDrag,\n zoomActivationKeyPressed,\n preventScrolling,\n noPanClassName,\n userSelectionActive,\n noWheelClassName,\n onTransformChange,\n connectionInProgress,\n paneDragThreshold,\n ]);\n\n return (\n <div className=\"react-flow__renderer\" ref={zoomPane} style={containerStyle}>\n {children}\n </div>\n );\n}\n","import { useOptionsStore, useSelectionStore, useShallow } from '../../hooks/useReactFlowStore';\n\nexport function UserSelection() {\n const userSelectionActive = useOptionsStore((s) => s.userSelectionActive);\n const userSelectionRect = useSelectionStore(useShallow((s) => s.userSelectionRect));\n const isActive = userSelectionActive && userSelectionRect;\n\n if (!isActive) {\n return null;\n }\n\n return (\n <div\n className=\"react-flow__selection react-flow__container\"\n style={{\n width: userSelectionRect.width,\n height: userSelectionRect.height,\n transform: `translate(${userSelectionRect.x}px, ${userSelectionRect.y}px)`,\n }}\n />\n );\n}\n","import {\n useEffect,\n useRef,\n type MouseEventHandler,\n type MutableRefObject,\n type MouseEvent as ReactMouseEvent,\n type PointerEvent as ReactPointerEvent,\n type WheelEvent as ReactWheelEvent,\n type ReactNode,\n} from 'react';\nimport cc from 'classcat';\nimport {\n getNodesInside,\n getEventPosition,\n SelectionMode,\n areSetsEqual,\n calcAutoPan,\n pointToRendererPoint,\n rendererPointToPoint,\n XYPosition,\n getSelectionChanges,\n type Optional,\n type FinalConnectionState,\n type ConnectionState,\n} from '@xyflow/system';\n\nimport { UserSelection } from '../../components/UserSelection';\nimport { containerStyle } from '../../styles/utils';\nimport { useOptionsStore, useReactFlowStoreApi, useViewportStore } from '../../hooks/useReactFlowStore';\nimport type { ReactFlowProps } from '../../types';\n\ntype PaneProps = {\n isSelecting: boolean;\n selectionKeyPressed: boolean;\n children: ReactNode;\n paneDragThreshold: number;\n} & Partial<\n Pick<\n ReactFlowProps,\n | 'selectionMode'\n | 'panOnDrag'\n | 'autoPanOnSelection'\n | 'onSelectionStart'\n | 'onSelectionEnd'\n | 'onPaneClick'\n | 'onPaneContextMenu'\n | 'onPaneScroll'\n | 'onPaneMouseEnter'\n | 'onPaneMouseMove'\n | 'onPaneMouseLeave'\n | 'selectionOnDrag'\n >\n>;\n\n// Invoke at event time so React Compiler can keep ref access outside render.\nconst invokeHandler = (\n event: ReactMouseEvent,\n handler: MouseEventHandler | undefined,\n containerRef: MutableRefObject<HTMLDivElement | null>\n): void => {\n if (event.target !== containerRef.current) {\n return;\n }\n handler?.(event);\n};\n\nexport function Pane({\n isSelecting,\n selectionKeyPressed,\n selectionMode = SelectionMode.Full,\n panOnDrag,\n autoPanOnSelection,\n paneDragThreshold,\n selectionOnDrag,\n onSelectionStart,\n onSelectionEnd,\n onPaneClick,\n onPaneContextMenu,\n onPaneScroll,\n onPaneMouseEnter,\n onPaneMouseMove,\n onPaneMouseLeave,\n children,\n}: PaneProps) {\n const autoPanId = useRef<number>(0);\n const { optionsStore, viewportStore, connectionStore, nodesStore, edgesStore, selectionStore } =\n useReactFlowStoreApi();\n const userSelectionActive = useOptionsStore((s) => s.userSelectionActive);\n const elementsSelectable = useOptionsStore((s) => s.elementsSelectable);\n const panBy = useOptionsStore((s) => s.panBy);\n const autoPanSpeed = useOptionsStore((s) => s.autoPanSpeed);\n const dragging = useViewportStore((s) => s.paneDragging);\n\n const isSelectionEnabled = elementsSelectable && (isSelecting || userSelectionActive);\n\n const container = useRef<HTMLDivElement | null>(null);\n const containerBounds = useRef<DOMRect>();\n const selectedNodeIds = useRef<Set<string>>(new Set());\n const selectedEdgeIds = useRef<Set<string>>(new Set());\n const connectionEndedOnPane = useRef<boolean>(false);\n\n // Used to prevent click events when the user lets go of the selectionKey during a selection\n const selectionInProgress = useRef<boolean>(false);\n\n // Used for auto pan when approaching the edges of the container during selection\n const position = useRef<XYPosition>({ x: 0, y: 0 });\n const autoPanStarted = useRef<boolean>(false);\n\n const onClick = (event: ReactMouseEvent) => {\n // We prevent click events when the user let go of the selectionKey during a selection\n // We also prevent click events when a connection is in progress\n if (\n selectionInProgress.current ||\n connectionEndedOnPane.current ||\n connectionStore.getState().connection.inProgress\n ) {\n selectionInProgress.current = false;\n connectionEndedOnPane.current = false;\n return;\n }\n\n const { nodesSelectionActive, onClickConnectEnd, resetSelectedElements } = optionsStore.getState();\n const { connectionClickStartHandle, connection } = connectionStore.getState();\n\n if (connectionClickStartHandle) {\n const connectionClone = structuredClone(connection) as Optional<ConnectionState, 'inProgress'>;\n delete connectionClone.inProgress;\n connectionClone.toPosition = connectionClone.toHandle ? connectionClone.toHandle.position : null;\n onClickConnectEnd?.(event.nativeEvent, connectionClone as FinalConnectionState);\n\n optionsStore.getState().updateConnectionClickStart(null);\n }\n\n onPaneClick?.(event);\n resetSelectedElements();\n if (nodesSelectionActive) {\n optionsStore.setState({ nodesSelectionActive: false });\n }\n };\n\n const onContextMenu = (event: ReactMouseEvent) => {\n if (Array.isArray(panOnDrag) && panOnDrag?.includes(2)) {\n event.preventDefault();\n return;\n }\n\n onPaneContextMenu?.(event);\n };\n\n const onWheel = onPaneScroll ? (event: ReactWheelEvent) => onPaneScroll(event) : undefined;\n\n const onClickCapture = (event: ReactMouseEvent) => {\n if (selectionInProgress.current) {\n event.stopPropagation();\n selectionInProgress.current = false;\n }\n };\n\n // We are using capture here in order to prevent other pointer events\n // to be able to create a selection above a node or an edge\n const onPointerDownCapture = (event: ReactPointerEvent): void => {\n // Mouse button arrays only restrict mouse input. Let touch panning handle this gesture\n // unless the user explicitly activated selection with the selection key.\n if (event.pointerType === 'touch' && panOnDrag !== false && !selectionKeyPressed) {\n return;\n }\n\n const { domNode } = optionsStore.getState();\n const { transform } = viewportStore.getState();\n containerBounds.current = domNode?.getBoundingClientRect();\n if (!containerBounds.current) return;\n\n const eventTargetIsContainer = event.target === container.current;\n // if a child element has the 'nokey' class, we don't want to swallow the event and don't start a selection\n const isNoKeyEvent = !eventTargetIsContainer && !!(event.target as HTMLElement).closest('.nokey');\n const isSelectionActive = (selectionOnDrag && eventTargetIsContainer) || selectionKeyPressed;\n\n if (isNoKeyEvent || !isSelecting || !isSelectionActive || event.button !== 0 || !event.isPrimary) {\n return;\n }\n\n (event.target as Partial<Element>)?.setPointerCapture?.(event.pointerId);\n\n selectionInProgress.current = false;\n\n const { x, y } = getEventPosition(event.nativeEvent, containerBounds.current);\n const userSelectionStartPosition = pointToRendererPoint({ x, y }, transform);\n\n selectionStore.setState({\n userSelectionRect: {\n width: 0,\n height: 0,\n startX: userSelectionStartPosition.x,\n startY: userSelectionStartPosition.y,\n x,\n y,\n },\n });\n\n if (!eventTargetIsContainer) {\n event.stopPropagation();\n event.preventDefault();\n }\n };\n\n // We commit the user selection rectangle to the store on auto-panning or pointer move during selection.\n function commitUserSelectionRect(mouseX: number, mouseY: number): void {\n const { userSelectionRect } = selectionStore.getState();\n if (!userSelectionRect) {\n return;\n }\n\n const { transform } = viewportStore.getState();\n const { nodeLookup } = nodesStore.getState();\n const { edgeLookup, connectionLookup } = edgesStore.getState();\n const { emitNodeChanges, emitEdgeChanges, defaultEdgeOptions } = optionsStore.getState();\n\n const userStartPosition = { x: userSelectionRect.startX, y: userSelectionRect.startY };\n const { x: screenStartX, y: screenStartY } = rendererPointToPoint(userStartPosition, transform);\n // This has to be in screen coordinates, not in flow coordinates.\n // We store the selection rectangle in userSelectionStartPosition coordinates to be able to\n // fix the start position of the selection rectangle when we are auto-panning.\n const nextUserSelectRect = {\n startX: userStartPosition.x,\n startY: userStartPosition.y,\n x: mouseX < screenStartX ? mouseX : screenStartX,\n y: mouseY < screenStartY ? mouseY : screenStartY,\n width: Math.abs(mouseX - screenStartX),\n height: Math.abs(mouseY - screenStartY),\n };\n\n const prevSelectedNodeIds = selectedNodeIds.current;\n const prevSelectedEdgeIds = selectedEdgeIds.current;\n\n selectedNodeIds.current = new Set(\n getNodesInside(nodeLookup, nextUserSelectRect, transform, selectionMode === SelectionMode.Partial, true).map(\n (node) => node.id\n )\n );\n\n selectedEdgeIds.current = new Set();\n const edgesSelectable = defaultEdgeOptions?.selectable ?? true;\n\n // We look for all edges connected to the selected nodes\n for (const nodeId of selectedNodeIds.current) {\n const connections = connectionLookup.get(nodeId);\n if (!connections) continue;\n for (const { edgeId } of connections.values()) {\n const edge = edgeLookup.get(edgeId);\n if (edge && (edge.selectable ?? edgesSelectable)) {\n selectedEdgeIds.current.add(edgeId);\n }\n }\n }\n\n if (!areSetsEqual(prevSelectedNodeIds, selectedNodeIds.current)) {\n const changes = getSelectionChanges(nodeLookup, selectedNodeIds.current);\n emitNodeChanges(changes);\n }\n\n if (!areSetsEqual(prevSelectedEdgeIds, selectedEdgeIds.current)) {\n const changes = getSelectionChanges(edgeLookup, selectedEdgeIds.current);\n emitEdgeChanges(changes);\n }\n\n selectionStore.setState({ userSelectionRect: nextUserSelectRect });\n optionsStore.setState((state) =>\n state.userSelectionActive && !state.nodesSelectionActive\n ? state\n : { userSelectionActive: true, nodesSelectionActive: false }\n );\n }\n\n const autoPan = (): void => {\n if (!autoPanOnSelection || !containerBounds.current) {\n return;\n }\n const [x, y] = calcAutoPan(position.current, containerBounds.current, autoPanSpeed);\n\n void panBy({ x, y }).then((panned) => {\n if (!selectionInProgress.current || !panned) {\n autoPanId.current = requestAnimationFrame(autoPan);\n return;\n }\n const { x: mx, y: my } = position.current;\n commitUserSelectionRect(mx, my);\n autoPanId.current = requestAnimationFrame(autoPan);\n });\n };\n\n const cleanupAutoPan = (): void => {\n cancelAnimationFrame(autoPanId.current);\n autoPanId.current = 0;\n autoPanStarted.current = false;\n };\n\n useEffect(() => {\n return () => cleanupAutoPan();\n }, []);\n\n const onPointerMove = (event: ReactPointerEvent): void => {\n const { userSelectionRect } = selectionStore.getState();\n const { transform } = viewportStore.getState();\n const { resetSelectedElements } = optionsStore.getState();\n\n if (!containerBounds.current || !userSelectionRect) {\n return;\n }\n\n const { x: mouseX, y: mouseY } = getEventPosition(event.nativeEvent, containerBounds.current);\n position.current = { x: mouseX, y: mouseY };\n\n const screenStart = rendererPointToPoint({ x: userSelectionRect.startX, y: userSelectionRect.startY }, transform);\n\n if (!selectionInProgress.current) {\n const requiredDistance = selectionKeyPressed ? 0 : paneDragThreshold;\n const distance = Math.hypot(mouseX - screenStart.x, mouseY - screenStart.y);\n if (distance <= requiredDistance) {\n return;\n }\n resetSelectedElements();\n onSelectionStart?.(event);\n }\n\n selectionInProgress.current = true;\n\n if (!autoPanStarted.current) {\n autoPan();\n autoPanStarted.current = true;\n }\n\n commitUserSelectionRect(mouseX, mouseY);\n };\n\n const onPointerUp = (event: ReactPointerEvent) => {\n if (!isSelectionEnabled) {\n if (event.target === container.current && connectionStore.getState().connection.inProgress) {\n connectionEndedOnPane.current = true;\n }\n return;\n }\n\n if (event.button !== 0) {\n return;\n }\n\n (event.target as Partial<Element>)?.releasePointerCapture?.(event.pointerId);\n\n /*\n * We only want to trigger click functions when in selection mode if\n * the user did not move the mouse.\n */\n if (!userSelectionActive && event.target === container.current && selectionStore.getState().userSelectionRect) {\n onClick?.(event);\n }\n\n optionsStore.setState({ userSelectionActive: false });\n selectionStore.setState({ userSelectionRect: null });\n\n if (selectionInProgress.current) {\n onSelectionEnd?.(event);\n\n const nodesSelectionActive = selectedNodeIds.current.size > 0;\n if (optionsStore.getState().nodesSelectionActive !== nodesSelectionActive) {\n optionsStore.setState({ nodesSelectionActive });\n }\n }\n\n cleanupAutoPan();\n };\n\n const onPointerCancel = (event: ReactPointerEvent) => {\n (event.target as Partial<Element>)?.releasePointerCapture?.(event.pointerId);\n cleanupAutoPan();\n };\n\n const draggable = panOnDrag === true || (Array.isArray(panOnDrag) && panOnDrag.includes(0));\n\n return (\n <div\n className={cc(['react-flow__pane', { draggable, dragging, selection: isSelecting }])}\n onClick={isSelectionEnabled ? undefined : (event) => invokeHandler(event, onClick, container)}\n onContextMenu={(event) => invokeHandler(event, onContextMenu, container)}\n onWheel={(event) => invokeHandler(event, onWheel, container)}\n onPointerEnter={isSelectionEnabled ? undefined : onPaneMouseEnter}\n onPointerMove={isSelectionEnabled ? onPointerMove : onPaneMouseMove}\n onPointerUp={onPointerUp}\n onPointerCancel={isSelectionEnabled ? onPointerCancel : undefined}\n onPointerDownCapture={isSelectionEnabled ? onPointerDownCapture : undefined}\n onClickCapture={isSelectionEnabled ? onClickCapture : undefined}\n onPointerLeave={onPaneMouseLeave}\n ref={container}\n style={containerStyle}\n >\n {children}\n <UserSelection />\n </div>\n );\n}\n","import type { RefObject } from 'react';\nimport { errorMessages } from '@xyflow/system';\n\nimport type { ReactFlowStoreApi } from '../../types';\n\n/*\n * this handler is called by\n * 1. the click handler when node is not draggable or selectNodesOnDrag = false\n * or\n * 2. the on drag start handler when node is draggable and selectNodesOnDrag = true\n */\nexport function handleNodeClick({\n id,\n optionsStore,\n nodesStore,\n unselect = false,\n nodeRef,\n}: {\n id: string;\n optionsStore: ReactFlowStoreApi['optionsStore'];\n nodesStore: ReactFlowStoreApi['nodesStore'];\n unselect?: boolean;\n nodeRef?: RefObject<HTMLDivElement>;\n}) {\n const { addSelectedNodes, unselectNodesAndEdges, multiSelectionActive, onError, nodesSelectionActive } =\n optionsStore.getState();\n const { nodeLookup } = nodesStore.getState();\n const node = nodeLookup.get(id);\n\n if (!node) {\n onError?.('012', errorMessages['error012'](id));\n return;\n }\n\n if (nodesSelectionActive) {\n optionsStore.setState({ nodesSelectionActive: false });\n }\n\n if (!node.selected) {\n addSelectedNodes([id]);\n } else if (unselect || (node.selected && multiSelectionActive)) {\n unselectNodesAndEdges({ nodes: [node], edges: [] });\n\n requestAnimationFrame(() => nodeRef?.current?.blur());\n }\n}\n","import { useEffect, useRef, useState, type RefObject } from 'react';\nimport { XYDrag, type XYDragInstance } from '@xyflow/system';\n\nimport { handleNodeClick } from '../components/Nodes/utils';\nimport { useReactFlowStoreApi } from './useReactFlowStore';\n\ntype UseDragParams = {\n nodeRef: RefObject<HTMLDivElement>;\n disabled?: boolean;\n noDragClassName?: string;\n handleSelector?: string;\n nodeId?: string;\n isSelectable?: boolean;\n};\n\n/**\n * Hook for calling XYDrag helper from @xyflow/system.\n *\n * @internal\n */\nexport function useDrag({\n nodeRef,\n disabled = false,\n noDragClassName,\n handleSelector,\n nodeId,\n isSelectable,\n}: UseDragParams) {\n const { optionsStore, viewportStore, nodesStore, edgesStore } = useReactFlowStoreApi();\n const [dragging, setDragging] = useState<boolean>(false);\n const xyDrag = useRef<XYDragInstance>();\n\n useEffect(() => {\n if (disabled) {\n return;\n }\n\n xyDrag.current = XYDrag({\n getStoreItems: () => {\n const { nodes, nodeLookup } = nodesStore.getState();\n const { edges } = edgesStore.getState();\n const { transform } = viewportStore.getState();\n return { ...optionsStore.getState(), nodes, nodeLookup, edges, transform };\n },\n onNodeMouseDown: (id: string) => {\n handleNodeClick({\n id,\n optionsStore,\n nodesStore,\n nodeRef,\n });\n },\n onDragStart: () => {\n setDragging(true);\n },\n onDragStop: () => {\n setDragging(false);\n },\n });\n\n return () => {\n xyDrag.current?.destroy();\n xyDrag.current = undefined;\n };\n }, [disabled, optionsStore, viewportStore, nodesStore, edgesStore, nodeRef]);\n\n useEffect(() => {\n if (disabled || !nodeRef.current || !xyDrag.current) {\n return;\n }\n\n xyDrag.current.update({\n noDragClassName,\n handleSelector,\n domNode: nodeRef.current,\n isSelectable,\n nodeId,\n });\n }, [noDragClassName, handleSelector, disabled, isSelectable, nodeRef, nodeId]);\n\n return dragging;\n}\n","import { calculateNodePosition, snapPosition, type XYPosition } from '@xyflow/system';\n\nimport type { InternalNode, Node } from '../types';\nimport { useReactFlowStoreApi } from './useReactFlowStore';\n\nconst selectedAndDraggable = (nodesDraggable: boolean) => (n: Node) =>\n n.selected && (n.draggable || (nodesDraggable && typeof n.draggable === 'undefined'));\n\n/**\n * Hook for updating node positions by passing a direction and factor\n *\n * @internal\n * @returns function for updating node positions\n */\nexport function useMoveSelectedNodes() {\n const { optionsStore, nodesStore } = useReactFlowStoreApi();\n\n const moveSelectedNodes = (params: { direction: XYPosition; factor: number }) => {\n const { nodeExtent, snapToGrid, snapGrid, nodesDraggable, onError, updateNodePositions, nodeOrigin } =\n optionsStore.getState();\n const { nodeLookup } = nodesStore.getState();\n const nodeUpdates = new Map<string, InternalNode>();\n const isSelected = selectedAndDraggable(nodesDraggable);\n\n /*\n * by default a node moves 5px on each key press\n * if snap grid is enabled, we use that for the velocity\n */\n const xVelo = snapToGrid ? snapGrid[0] : 5;\n const yVelo = snapToGrid ? snapGrid[1] : 5;\n\n const xDiff = params.direction.x * xVelo * params.factor;\n const yDiff = params.direction.y * yVelo * params.factor;\n\n for (const [, node] of nodeLookup) {\n if (!isSelected(node)) {\n continue;\n }\n\n let nextPosition = {\n x: node.internals.positionAbsolute.x + xDiff,\n y: node.internals.positionAbsolute.y + yDiff,\n };\n\n if (snapToGrid) {\n nextPosition = snapPosition(nextPosition, snapGrid);\n }\n\n const { position, positionAbsolute } = calculateNodePosition({\n nodeId: node.id,\n nextPosition,\n nodeLookup,\n nodeExtent,\n nodeOrigin,\n onError,\n });\n\n node.position = position;\n node.internals.positionAbsolute = positionAbsolute;\n\n nodeUpdates.set(node.id, node);\n }\n\n updateNodePositions(nodeUpdates);\n };\n\n return moveSelectedNodes;\n}\n","import { createContext, useContext } from 'react';\n\nexport const NodeIdContext = createContext<string | null>(null);\nexport const Provider = NodeIdContext.Provider;\nexport const Consumer = NodeIdContext.Consumer;\n\n/**\n * You can use this hook to get the id of the node it is used inside. It is useful\n * if you need the node's id deeper in the render tree but don't want to manually\n * drill down the id as a prop.\n *\n * @public\n * @returns The id for a node in the flow.\n *\n * @example\n *```jsx\n *import { useNodeId } from '@xyflow/react';\n *\n *export default function CustomNode() {\n * return (\n * <div>\n * <span>This node has an id of </span>\n * <NodeIdDisplay />\n * </div>\n * );\n *}\n *\n *function NodeIdDisplay() {\n * const nodeId = useNodeId();\n *\n * return <span>{nodeId}</span>;\n *}\n *```\n */\nexport const useNodeId = (): string | null => {\n const nodeId = useContext(NodeIdContext);\n return nodeId;\n};\n\nexport default NodeIdContext;\n","import { createContext, useContext, type ReactNode } from 'react';\n\nimport { useOptionsStore, useShallow } from '../hooks/useReactFlowStore';\nimport { ConnectionMode } from '@xyflow/system';\n\ntype HandleConfig = {\n connectOnClick: boolean;\n noPanClassName: string;\n rfId: string;\n connectionMode: ConnectionMode;\n};\n\nconst HandleConfigContext = createContext<HandleConfig | null>(null);\n\n/*\n * `connectOnClick`, `noPanClassName` and `rfId` are the same for every handle, so they are\n * shared through context from one provider.\n */\nexport function HandleConfigProvider({ children }: { children: ReactNode }) {\n const config = useOptionsStore(\n useShallow((s) => ({\n connectOnClick: s.connectOnClick,\n noPanClassName: s.noPanClassName,\n rfId: s.rfId,\n connectionMode: s.connectionMode,\n }))\n );\n\n return <HandleConfigContext.Provider value={config}>{children}</HandleConfigContext.Provider>;\n}\n\nexport function useHandleConfig() {\n const config = useContext(HandleConfigContext);\n\n if (!config) {\n throw new Error('useHandleConfig must be used within a HandleConfigProvider');\n }\n\n return config;\n}\n","import { useSyncExternalStore } from 'react';\nimport { type ConnectionState, HandleType } from '@xyflow/system';\n\nimport { useConnectionStore, useShallow, useReactFlowStoreApi } from './useReactFlowStore';\nimport type { InternalNode, Node } from '../types';\n\n/**\n * The `useConnection` hook returns the current connection when there is an active\n * connection interaction. If no connection interaction is active, it returns null\n * for every property. A typical use case for this hook is to colorize handles\n * based on a certain condition (e.g. if the connection is valid or not).\n *\n * @public\n * @param connectionSelector - An optional selector function used to extract a slice of the\n * `ConnectionState` data. Using a selector can prevent component re-renders where data you don't\n * otherwise care about might change. If a selector is not provided, the entire `ConnectionState`\n * object is returned unchanged.\n * @example\n *\n * ```tsx\n *import { useConnection } from '@xyflow/react';\n *\n *function App() {\n * const connection = useConnection();\n *\n * return (\n * <div> {connection ? `Someone is trying to make a connection from ${connection.fromNode} to this one.` : 'There are currently no incoming connections!'}\n *\n * </div>\n * );\n * }\n * ```\n *\n * @returns ConnectionState\n */\nexport function useConnection<NodeType extends Node = Node, SelectorReturn = ConnectionState<InternalNode<NodeType>>>(\n connectionSelector?: (connection: ConnectionState<InternalNode<NodeType>>) => SelectorReturn\n): SelectorReturn {\n // The store keeps `connection.to` in flow coordinates, also when the viewport changes.\n return useConnectionStore(\n useShallow(({ connection }) => {\n return connectionSelector\n ? connectionSelector(connection as ConnectionState<InternalNode<NodeType>>)\n : (connection as SelectorReturn);\n })\n );\n}\n\nexport function useConnectionStateForHandle(handle: { nodeId: string; type: HandleType; id: string | null }) {\n const { optionsStore, connectionStore } = useReactFlowStoreApi();\n\n const subscribe = (onStoreChange: () => void) =>\n optionsStore.getState().pubSub.subscribeToConnectionForHandle(handle, onStoreChange);\n\n const getSnapshot = () => connectionStore.getState();\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n","import {\n memo,\n type HTMLAttributes,\n type MouseEvent as ReactMouseEvent,\n type TouchEvent as ReactTouchEvent,\n type ForwardedRef,\n} from 'react';\nimport cc from 'classcat';\nimport {\n errorMessages,\n Position,\n XYHandle,\n getHostForElement,\n isMouseEvent,\n type HandleProps as HandlePropsSystem,\n type Connection,\n type HandleType,\n ConnectionMode,\n OnConnect,\n ConnectionState,\n FinalConnectionState,\n Optional,\n} from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { useNodeId } from '../../contexts/NodeIdContext';\nimport { useHandleConfig } from '../../contexts/HandleConfigContext';\nimport { type ConnectionStore } from '../../types';\nimport { fixedForwardRef } from '../../utils';\nimport { addEdge } from '../../utils/edges';\nimport { useConnectionStateForHandle } from '../../hooks/useConnection';\n\n/**\n * @expand\n */\nexport type HandleProps = HandlePropsSystem &\n Omit<HTMLAttributes<HTMLDivElement>, 'id'> & {\n /** Callback called when connection is made */\n onConnect?: OnConnect;\n };\n\n/*\n * While no connection is in progress every handle has this same state, so we return a\n * shared reference rather than allocating + shallow-comparing one per handle on every\n * store update. `isPossibleEndHandle` matches what the selector computes when idle.\n */\nconst idleConnectingState = {\n connectingFrom: false,\n connectingTo: false,\n clickConnecting: false,\n isPossibleEndHandle: true,\n connectionInProgress: false,\n clickConnectionInProgress: false,\n valid: false,\n};\n\nconst deriveHandleState = (\n state: ConnectionStore,\n nodeId: string | null,\n handleId: string | null,\n type: HandleType,\n connectionMode: ConnectionMode\n) => {\n const { connectionClickStartHandle: clickHandle, connection } = state;\n const { fromHandle, toHandle, isValid } = connection;\n\n if (!fromHandle && !clickHandle) {\n return idleConnectingState;\n }\n\n const connectingTo = toHandle?.nodeId === nodeId && toHandle?.id === handleId && toHandle?.type === type;\n\n return {\n connectingFrom: fromHandle?.nodeId === nodeId && fromHandle?.id === handleId && fromHandle?.type === type,\n connectingTo,\n clickConnecting: clickHandle?.nodeId === nodeId && clickHandle?.id === handleId && clickHandle?.type === type,\n isPossibleEndHandle:\n connectionMode === ConnectionMode.Strict\n ? fromHandle?.type !== type\n : nodeId !== fromHandle?.nodeId || handleId !== fromHandle?.id,\n connectionInProgress: connection.inProgress,\n clickConnectionInProgress: !!clickHandle,\n valid: connectingTo && isValid,\n };\n};\n\nfunction HandleComponent(\n {\n type = 'source',\n position = Position.Top,\n isValidConnection,\n isConnectable = true,\n isConnectableStart = true,\n isConnectableEnd = true,\n id,\n onConnect,\n children,\n className,\n onMouseDown,\n onTouchStart,\n ...rest\n }: HandleProps,\n ref: ForwardedRef<HTMLDivElement>\n) {\n const handleId = id || null;\n const isTarget = type === 'target';\n\n const { optionsStore, viewportStore, connectionStore, nodesStore, edgesStore } = useReactFlowStoreApi();\n const { connectOnClick, noPanClassName, rfId, connectionMode } = useHandleConfig();\n\n const nodeId = useNodeId();\n if (!nodeId) {\n optionsStore.getState().onError?.('010', errorMessages['error010']());\n }\n\n const connection = useConnectionStateForHandle({ nodeId: nodeId || '', type, id: handleId });\n\n const handleState = deriveHandleState(connection, nodeId, handleId, type, connectionMode);\n\n const onConnectExtended = (params: Connection) => {\n const { defaultEdgeOptions, onConnect: onConnectAction, hasDefaultEdges } = optionsStore.getState();\n\n const edgeParams = {\n ...defaultEdgeOptions,\n ...params,\n };\n if (hasDefaultEdges) {\n const { edges } = edgesStore.getState();\n const { setEdges, onError } = optionsStore.getState();\n setEdges(addEdge(edgeParams, edges, { onError }));\n }\n\n onConnectAction?.(edgeParams);\n onConnect?.(edgeParams);\n };\n\n const onPointerDown = (event: ReactMouseEvent<HTMLDivElement> | ReactTouchEvent<HTMLDivElement>) => {\n if (!nodeId) {\n return;\n }\n\n const isMouseTriggered = isMouseEvent(event.nativeEvent);\n\n if (\n isConnectableStart &&\n ((isMouseTriggered && (event as ReactMouseEvent<HTMLDivElement>).button === 0) || !isMouseTriggered)\n ) {\n const currentStore = optionsStore.getState();\n\n XYHandle.onPointerDown(event.nativeEvent, {\n handleDomNode: event.currentTarget,\n autoPanOnConnect: currentStore.autoPanOnConnect,\n connectionMode: currentStore.connectionMode,\n connectionRadius: currentStore.connectionRadius,\n domNode: currentStore.domNode,\n nodeLookup: nodesStore.getState().nodeLookup,\n lib: 'react',\n isTarget,\n handleId,\n nodeId,\n flowId: currentStore.rfId,\n panBy: currentStore.panBy,\n cancelConnection: currentStore.cancelConnection,\n onConnectStart: currentStore.onConnectStart,\n onConnectEnd: (...args) => optionsStore.getState().onConnectEnd?.(...args),\n updateConnection: currentStore.updateConnection,\n onConnect: onConnectExtended,\n isValidConnection:\n isValidConnection || ((...args) => optionsStore.getState().isValidConnection?.(...args) ?? true),\n getTransform: () => viewportStore.getState().transform,\n getFromHandle: () => connectionStore.getState().connection.fromHandle,\n autoPanSpeed: currentStore.autoPanSpeed,\n dragThreshold: currentStore.connectionDragThreshold,\n });\n }\n\n if (isMouseTriggered) {\n onMouseDown?.(event as ReactMouseEvent<HTMLDivElement>);\n } else {\n onTouchStart?.(event as ReactTouchEvent<HTMLDivElement>);\n }\n };\n\n const onClick = (event: ReactMouseEvent) => {\n const {\n onClickConnectStart,\n onClickConnectEnd,\n updateConnectionClickStart,\n connectionMode,\n isValidConnection: isValidConnectionStore,\n rfId: flowId,\n } = optionsStore.getState();\n const { connectionClickStartHandle, connection: connectionState } = connectionStore.getState();\n const { nodeLookup } = nodesStore.getState();\n\n if (!nodeId || (!connectionClickStartHandle && !isConnectableStart)) {\n return;\n }\n\n if (!connectionClickStartHandle) {\n onClickConnectStart?.(event.nativeEvent, { nodeId, handleId, handleType: type });\n updateConnectionClickStart({ nodeId, type, id: handleId });\n return;\n }\n\n const doc = getHostForElement(event.target);\n const isValidConnectionHandler = isValidConnection || isValidConnectionStore;\n const { connection, isValid } = XYHandle.isValid(event.nativeEvent, {\n handle: {\n nodeId,\n id: handleId,\n type,\n },\n connectionMode,\n fromNodeId: connectionClickStartHandle.nodeId,\n fromHandleId: connectionClickStartHandle.id || null,\n fromType: connectionClickStartHandle.type,\n isValidConnection: isValidConnectionHandler,\n flowId,\n doc,\n lib: 'react',\n nodeLookup,\n });\n\n if (isValid && connection) {\n onConnectExtended(connection);\n }\n\n const connectionClone = structuredClone(connectionState) as Optional<ConnectionState, 'inProgress'>;\n delete connectionClone.inProgress;\n connectionClone.toPosition = connectionClone.toHandle ? connectionClone.toHandle.position : null;\n onClickConnectEnd?.(event as unknown as MouseEvent, connectionClone as FinalConnectionState);\n\n updateConnectionClickStart(null);\n };\n\n return (\n <div\n data-handleid={handleId}\n data-nodeid={nodeId}\n data-handlepos={position}\n data-id={`${rfId}-${nodeId}-${handleId}-${type}`}\n className={cc([\n 'react-flow__handle',\n `react-flow__handle-${position}`,\n 'nodrag',\n noPanClassName,\n className,\n {\n source: !isTarget,\n target: isTarget,\n connectable: isConnectable,\n connectablestart: isConnectableStart,\n connectableend: isConnectableEnd,\n clickconnecting: handleState.clickConnecting,\n connectingfrom: handleState.connectingFrom,\n connectingto: handleState.connectingTo,\n valid: handleState.valid,\n /*\n * shows where you can start a connection from\n * and where you can end it while connecting\n */\n connectionindicator:\n isConnectable &&\n (!handleState.connectionInProgress || handleState.isPossibleEndHandle) &&\n (handleState.connectionInProgress || handleState.clickConnecting ? isConnectableEnd : isConnectableStart),\n },\n ])}\n onMouseDown={onPointerDown}\n onTouchStart={onPointerDown}\n onClick={connectOnClick ? onClick : undefined}\n ref={ref}\n {...rest}\n >\n {children}\n </div>\n );\n}\n\n/**\n * The `<Handle />` component is used in your [custom nodes](/learn/customization/custom-nodes)\n * to define connection points.\n *\n *@public\n *\n *@example\n *\n *```jsx\n *import { Handle, Position } from '@xyflow/react';\n *\n *export function CustomNode({ data }) {\n * return (\n * <>\n * <div style={{ padding: '10px 20px' }}>\n * {data.label}\n * </div>\n *\n * <Handle type=\"target\" position={Position.Left} />\n * <Handle type=\"source\" position={Position.Right} />\n * </>\n * );\n *};\n *```\n */\n// Custom nodes may recreate their handles on every drag update. Skip unchanged handles\n// before running their hooks, even when the custom node is not compiled.\nexport const Handle = memo(fixedForwardRef(HandleComponent));\n","import { Position } from '@xyflow/system';\n\nimport { Handle } from '../../components/Handle';\nimport type { BuiltInNode, NodeProps } from '../../types/nodes';\n\nexport function InputNode({ data, isConnectable, sourcePosition = Position.Bottom }: NodeProps<BuiltInNode>) {\n return (\n <>\n {data?.label}\n <Handle type=\"source\" position={sourcePosition} isConnectable={isConnectable} />\n </>\n );\n}\n","import { Position } from '@xyflow/system';\n\nimport { Handle } from '../../components/Handle';\nimport type { BuiltInNode, NodeProps } from '../../types/nodes';\n\nexport function DefaultNode({\n data,\n isConnectable,\n targetPosition = Position.Top,\n sourcePosition = Position.Bottom,\n}: NodeProps<BuiltInNode>) {\n return (\n <>\n <Handle type=\"target\" position={targetPosition} isConnectable={isConnectable} />\n {data?.label}\n <Handle type=\"source\" position={sourcePosition} isConnectable={isConnectable} />\n </>\n );\n}\n","export function GroupNode() {\n return null;\n}\n","import { Position } from '@xyflow/system';\n\nimport { Handle } from '../../components/Handle';\nimport type { BuiltInNode, NodeProps } from '../../types/nodes';\n\nexport function OutputNode({ data, isConnectable, targetPosition = Position.Top }: NodeProps<BuiltInNode>) {\n return (\n <>\n <Handle type=\"target\" position={targetPosition} isConnectable={isConnectable} />\n {data?.label}\n </>\n );\n}\n","import type { XYPosition } from '@xyflow/system';\n\nimport { InputNode } from '../Nodes/InputNode';\nimport { DefaultNode } from '../Nodes/DefaultNode';\nimport { GroupNode } from '../Nodes/GroupNode';\nimport { OutputNode } from '../Nodes/OutputNode';\nimport type { InternalNode, Node, NodeTypes } from '../../types';\n\nexport const arrowKeyDiffs: Record<string, XYPosition> = {\n ArrowUp: { x: 0, y: -1 },\n ArrowDown: { x: 0, y: 1 },\n ArrowLeft: { x: -1, y: 0 },\n ArrowRight: { x: 1, y: 0 },\n};\n\nexport const builtinNodeTypes: NodeTypes = {\n input: InputNode,\n default: DefaultNode,\n output: OutputNode,\n group: GroupNode,\n};\n\nexport function getNodeInlineStyleDimensions<NodeType extends Node = Node>(\n node: InternalNode<NodeType>\n): {\n width: number | string | undefined;\n height: number | string | undefined;\n} {\n if (node.internals.handleBounds === undefined) {\n return {\n width: node.width ?? node.initialWidth ?? node.style?.width,\n height: node.height ?? node.initialHeight ?? node.style?.height,\n };\n }\n\n return {\n width: node.width ?? node.style?.width,\n height: node.height ?? node.style?.height,\n };\n}\n","/**\n * The nodes selection rectangle gets displayed when a user\n * made a selection with on or several nodes\n */\nimport { useRef, useEffect, type MouseEvent, type KeyboardEvent } from 'react';\nimport cc from 'classcat';\nimport { getInternalNodesBounds, isNumeric } from '@xyflow/system';\n\nimport {\n useOptionsStore,\n useNodesStore,\n useViewportStore,\n useShallow,\n useReactFlowStoreApi,\n} from '../../hooks/useReactFlowStore';\nimport { useDrag } from '../../hooks/useDrag';\nimport { useMoveSelectedNodes } from '../../hooks/useMoveSelectedNodes';\nimport { arrowKeyDiffs } from '../NodeWrapper/utils';\nimport type { Node, NodesStore } from '../../types';\n\nexport type NodesSelectionProps<NodeType> = {\n onSelectionContextMenu?: (event: MouseEvent, nodes: NodeType[]) => void;\n noPanClassName?: string;\n disableKeyboardA11y: boolean;\n};\n\nconst selector = (s: NodesStore) => {\n const { width, height, x, y } = getInternalNodesBounds(s.nodeLookup, {\n filter: (node) => !!node.selected,\n });\n\n return {\n width: isNumeric(width) ? width : null,\n height: isNumeric(height) ? height : null,\n x,\n y,\n };\n};\n\nexport function NodesSelection<NodeType extends Node>({\n onSelectionContextMenu,\n noPanClassName,\n disableKeyboardA11y,\n}: NodesSelectionProps<NodeType>) {\n const { nodesStore } = useReactFlowStoreApi<NodeType>();\n const { width, height, x, y } = useNodesStore(useShallow(selector));\n const userSelectionActive = useOptionsStore((s) => s.userSelectionActive);\n const { transform } = useViewportStore();\n const transformString = `translate(${transform[0]}px,${transform[1]}px) scale(${transform[2]}) translate(${x}px,${y}px)`;\n const moveSelectedNodes = useMoveSelectedNodes();\n\n const nodeRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n if (!disableKeyboardA11y) {\n nodeRef.current?.focus({\n preventScroll: true,\n });\n }\n }, [disableKeyboardA11y]);\n\n const shouldRender = !userSelectionActive && width !== null && height !== null;\n\n useDrag({\n nodeRef,\n disabled: !shouldRender,\n });\n\n if (!shouldRender) {\n return null;\n }\n\n const onContextMenu = onSelectionContextMenu\n ? (event: MouseEvent) => {\n const selectedNodes = nodesStore.getState().nodes.filter((n) => n.selected);\n onSelectionContextMenu(event, selectedNodes);\n }\n : undefined;\n\n const onKeyDown = (event: KeyboardEvent) => {\n if (Object.prototype.hasOwnProperty.call(arrowKeyDiffs, event.key)) {\n event.preventDefault();\n\n moveSelectedNodes({\n direction: arrowKeyDiffs[event.key],\n factor: event.shiftKey ? 4 : 1,\n });\n }\n };\n\n return (\n <div\n className={cc(['react-flow__nodesselection', 'react-flow__container', noPanClassName])}\n style={{\n transform: transformString,\n }}\n >\n <div\n ref={nodeRef}\n className=\"react-flow__nodesselection-rect\"\n onContextMenu={onContextMenu}\n tabIndex={disableKeyboardA11y ? undefined : -1}\n onKeyDown={disableKeyboardA11y ? undefined : onKeyDown}\n style={{\n width,\n height,\n }}\n />\n </div>\n );\n}\n","import { type ReactNode } from 'react';\nimport { isLeftClickPan } from '@xyflow/system';\n\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\nimport { useGlobalKeyHandler } from '../../hooks/useGlobalKeyHandler';\nimport { useKeyPress } from '../../hooks/useKeyPress';\nimport { GraphViewProps } from '../GraphView';\nimport { ZoomPane } from '../ZoomPane';\nimport { Pane } from '../Pane';\nimport { NodesSelection } from '../../components/NodesSelection';\nimport type { Node } from '../../types';\n\nexport type FlowRendererProps<NodeType extends Node = Node> = Omit<\n GraphViewProps<NodeType>,\n | 'snapToGrid'\n | 'nodeTypes'\n | 'edgeTypes'\n | 'snapGrid'\n | 'connectionLineType'\n | 'connectionLineContainerStyle'\n | 'arrowHeadColor'\n | 'onlyRenderVisibleElements'\n | 'selectNodesOnDrag'\n | 'defaultMarkerColor'\n | 'rfId'\n> & {\n isControlledViewport: boolean;\n children: ReactNode;\n};\n\nconst win = typeof window !== 'undefined' ? window : undefined;\n\nfunction FlowRendererComponent<NodeType extends Node = Node>({\n children,\n onPaneClick,\n onPaneMouseEnter,\n onPaneMouseMove,\n onPaneMouseLeave,\n onPaneContextMenu,\n onPaneScroll,\n paneDragThreshold,\n deleteKeyCode,\n selectionKeyCode,\n selectionOnDrag,\n selectionMode,\n onSelectionStart,\n onSelectionEnd,\n multiSelectionKeyCode,\n panActivationKeyCode,\n zoomActivationKeyCode,\n elementsSelectable,\n zoomOnScroll,\n zoomOnPinch,\n panOnScroll: _panOnScroll,\n panOnScrollSpeed,\n panOnScrollMode,\n zoomOnDoubleClick,\n panOnDrag: _panOnDrag,\n autoPanOnSelection,\n defaultViewport,\n translateExtent,\n minZoom,\n maxZoom,\n preventScrolling,\n onSelectionContextMenu,\n noWheelClassName,\n noPanClassName,\n disableKeyboardA11y,\n onViewportChange,\n isControlledViewport,\n}: FlowRendererProps<NodeType>) {\n const nodesSelectionActive = useOptionsStore((s) => s.nodesSelectionActive);\n const userSelectionActive = useOptionsStore((s) => s.userSelectionActive);\n\n const selectionKeyPressed = useKeyPress(selectionKeyCode, { target: win });\n const panActivationKeyPressed = useKeyPress(panActivationKeyCode, { target: win });\n\n const panOnDrag = panActivationKeyPressed || _panOnDrag;\n const panOnScroll = panActivationKeyPressed || _panOnScroll;\n const _selectionOnDrag = selectionOnDrag && !isLeftClickPan(panOnDrag ?? true);\n const isSelecting = selectionKeyPressed || userSelectionActive || _selectionOnDrag;\n\n useGlobalKeyHandler({ deleteKeyCode, multiSelectionKeyCode });\n\n return (\n <ZoomPane\n onPaneContextMenu={onPaneContextMenu}\n elementsSelectable={elementsSelectable}\n zoomOnScroll={zoomOnScroll}\n zoomOnPinch={zoomOnPinch}\n panOnScroll={panOnScroll}\n panActivationKeyPressed={panActivationKeyPressed}\n panOnScrollSpeed={panOnScrollSpeed}\n panOnScrollMode={panOnScrollMode}\n zoomOnDoubleClick={zoomOnDoubleClick}\n panOnDrag={!selectionKeyPressed && panOnDrag}\n defaultViewport={defaultViewport}\n translateExtent={translateExtent}\n minZoom={minZoom}\n maxZoom={maxZoom}\n zoomActivationKeyCode={zoomActivationKeyCode}\n preventScrolling={preventScrolling}\n noWheelClassName={noWheelClassName}\n noPanClassName={noPanClassName}\n onViewportChange={onViewportChange}\n isControlledViewport={isControlledViewport}\n paneDragThreshold={paneDragThreshold}\n >\n <Pane\n onSelectionStart={onSelectionStart}\n onSelectionEnd={onSelectionEnd}\n onPaneClick={onPaneClick}\n onPaneMouseEnter={onPaneMouseEnter}\n onPaneMouseMove={onPaneMouseMove}\n onPaneMouseLeave={onPaneMouseLeave}\n onPaneContextMenu={onPaneContextMenu}\n onPaneScroll={onPaneScroll}\n panOnDrag={panOnDrag}\n autoPanOnSelection={autoPanOnSelection}\n isSelecting={!!isSelecting}\n selectionMode={selectionMode}\n selectionKeyPressed={selectionKeyPressed}\n paneDragThreshold={paneDragThreshold}\n selectionOnDrag={_selectionOnDrag}\n >\n {children}\n {nodesSelectionActive && (\n <NodesSelection\n onSelectionContextMenu={onSelectionContextMenu}\n noPanClassName={noPanClassName}\n disableKeyboardA11y={disableKeyboardA11y}\n />\n )}\n </Pane>\n </ZoomPane>\n );\n}\n\nFlowRendererComponent.displayName = 'FlowRenderer';\n\nexport const FlowRenderer = FlowRendererComponent;\n","import { getNodesInside } from '@xyflow/system';\n\nimport { useShallow, useNodesStore, useViewportStore } from './useReactFlowStore';\nimport type { Node, NodesStore, ViewportStore } from '../types';\n\nconst selector = (onlyRenderVisible: boolean, viewport: ViewportStore | undefined) => (s: NodesStore) => {\n return onlyRenderVisible\n ? getNodesInside<Node>(\n s.nodeLookup,\n { x: 0, y: 0, width: viewport!.width, height: viewport!.height },\n viewport!.transform,\n true\n ).map((node) => node.id)\n : Array.from(s.nodeLookup.keys());\n};\n\n/**\n * Hook for getting the visible node ids from the store.\n *\n * @internal\n * @param onlyRenderVisible\n * @returns array with visible node ids\n */\nexport function useVisibleNodeIds(onlyRenderVisible: boolean) {\n const viewport = useViewportStore((s) => (onlyRenderVisible ? s : undefined));\n const nodeIds = useNodesStore(useShallow(selector(onlyRenderVisible, viewport)));\n\n return nodeIds;\n}\n","import { useEffect, useState } from 'react';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { InternalNodeUpdate } from '@xyflow/system';\n\nexport function useResizeObserver() {\n const { optionsStore } = useReactFlowStoreApi();\n const [resizeObserver] = useState(() => {\n if (typeof ResizeObserver === 'undefined') {\n return null;\n }\n\n return new ResizeObserver((entries: ResizeObserverEntry[]) => {\n const updates = new Map<string, InternalNodeUpdate>();\n entries.forEach((entry: ResizeObserverEntry) => {\n const id = entry.target.getAttribute('data-id') as string;\n updates.set(id, {\n id,\n nodeElement: entry.target as HTMLDivElement,\n force: true,\n });\n });\n\n optionsStore.getState().updateNodeInternals(updates);\n });\n });\n\n useEffect(() => {\n return () => {\n resizeObserver?.disconnect();\n };\n }, [resizeObserver]);\n\n return resizeObserver;\n}\n","import { useSyncExternalStore } from 'react';\n\nimport { useNodesStore, useReactFlowStoreApi, useShallow } from './useReactFlowStore';\nimport type { InternalNode, Node } from '../types';\n\n/**\n * This hook returns an array of the current nodes. Components that use this hook\n * will re-render **whenever any node changes**, including when a node is selected\n * or moved.\n *\n * @public\n * @returns An array of all nodes currently in the flow.\n *\n * @example\n * ```jsx\n *import { useNodes } from '@xyflow/react';\n *\n *export default function() {\n * const nodes = useNodes();\n *\n * return <div>There are currently {nodes.length} nodes!</div>;\n *}\n *```\n */\nexport function useNodes<NodeType extends Node = Node>(): NodeType[] {\n const { nodes } = useNodesStore();\n\n return nodes as NodeType[];\n}\n\n/**\n * This hook returns the node with the given id. Components that use this hook\n * will re-render **whenever the node changes**.\n *\n * @public\n * @param id - The id of the node to return.\n * @returns The node with the given id.\n *\n * @example\n * ```tsx\n *import { useNode } from '@xyflow/react';\n *\n *export default function () {\n * const node = useNode('1');\n *\n * return <div>Node: {node?.data.label}</div>;\n *}\n *```\n */\nexport function useNode<NodeType extends Node = Node>(id: string): NodeType | undefined {\n const { optionsStore, nodesStore } = useReactFlowStoreApi();\n\n const subscribe = (onStoreChange: () => void) => optionsStore.getState().pubSub.subscribeToNode(id, onStoreChange);\n\n const getSnapshot = () => nodesStore.getState().nodeLookup.get(id)?.internals.userNode as NodeType | undefined;\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n\n/**\n * This hook returns the internal representation of a specific node.\n * Components that use this hook will re-render **whenever the node changes**,\n * including when a node is selected or moved.\n *\n * @public\n * @param id - The ID of a node you want to observe.\n * @returns The `InternalNode` object for the node with the given ID.\n *\n * @example\n * ```tsx\n *import { useInternalNode } from '@xyflow/react';\n *\n *export default function () {\n * const internalNode = useInternalNode('node-1');\n * const absolutePosition = internalNode.internals.positionAbsolute;\n *\n * return (\n * <div>\n * The absolute position of the node is at:\n * <p>x: {absolutePosition.x}</p>\n * <p>y: {absolutePosition.y}</p>\n * </div>\n * );\n *}\n *```\n */\nexport function useInternalNode<NodeType extends Node = Node>(id: string): InternalNode<NodeType> | undefined {\n const { optionsStore, nodesStore } = useReactFlowStoreApi();\n\n const subscribe = (onStoreChange: () => void) => optionsStore.getState().pubSub.subscribeToNode(id, onStoreChange);\n\n const getSnapshot = () => nodesStore.getState().nodeLookup.get(id) as InternalNode<NodeType> | undefined;\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n\n/**\n * This hook returns set of specific internal nodes and subscribes\n * only to those nodes. Missing IDs are omitted and duplicate IDs are ignored.\n * Reordering the IDs preserves the previous set and result order.\n *\n * @public\n * @param ids - An array of node IDs to observe. An empty array returns no nodes.\n * @returns The matching internal nodes.\n */\nexport function useInternalNodes<NodeType extends Node = Node>(ids: readonly string[]): InternalNode<NodeType>[] {\n const { optionsStore, nodesStore } = useReactFlowStoreApi<NodeType>();\n const nodeIds = useShallow((value: readonly string[]) => new Set(value))(ids);\n\n const subscribe = (onStoreChange: () => void) =>\n optionsStore.getState().pubSub.subscribeToNodes(nodeIds, onStoreChange);\n\n const selectSnapshot = useShallow(() => {\n const { nodeLookup } = nodesStore.getState();\n const nodes: InternalNode<NodeType>[] = [];\n\n for (const id of nodeIds) {\n const node = nodeLookup.get(id);\n if (node) {\n nodes.push(node);\n }\n }\n\n return nodes;\n });\n\n const getSnapshot = () => selectSnapshot(undefined);\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n","import { useEffect, useRef } from 'react';\n\nimport type { InternalNode } from '../../types';\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\n\n/**\n * Hook to handle the resize observation + internal updates for the passed node.\n *\n * @internal\n * @returns nodeRef - reference to the node element\n */\nexport function useNodeObserver({\n node,\n nodeType,\n hasDimensions,\n resizeObserver,\n}: {\n node: InternalNode;\n nodeType: string;\n hasDimensions: boolean;\n resizeObserver: ResizeObserver | null;\n}) {\n const { optionsStore } = useReactFlowStoreApi();\n const nodeRef = useRef<HTMLDivElement | null>(null);\n const observedNode = useRef<HTMLDivElement | null>(null);\n const prevSourcePosition = useRef(node.sourcePosition);\n const prevTargetPosition = useRef(node.targetPosition);\n const prevType = useRef(nodeType);\n const isInitialized = hasDimensions && !!node.internals.handleBounds;\n\n // A controlled update can clear handle bounds while the dimensions change\n // is still being applied. isInitialized stays false in that case, so retry\n // observation when the measured dimensions arrive, even with explicit sizes.\n useEffect(() => {\n if (nodeRef.current && !node.hidden && (!isInitialized || observedNode.current !== nodeRef.current)) {\n if (observedNode.current) {\n resizeObserver?.unobserve(observedNode.current);\n }\n resizeObserver?.observe(nodeRef.current);\n observedNode.current = nodeRef.current;\n }\n }, [isInitialized, node.hidden, node.measured.width, node.measured.height]);\n\n useEffect(() => {\n return () => {\n if (observedNode.current) {\n resizeObserver?.unobserve(observedNode.current);\n observedNode.current = null;\n }\n };\n }, []);\n\n useEffect(() => {\n if (nodeRef.current) {\n /*\n * when the user programmatically changes the source or handle position, we need to update the internals\n * to make sure the edges are updated correctly\n */\n const typeChanged = prevType.current !== nodeType;\n const sourcePosChanged = prevSourcePosition.current !== node.sourcePosition;\n const targetPosChanged = prevTargetPosition.current !== node.targetPosition;\n\n if (typeChanged || sourcePosChanged || targetPosChanged) {\n prevType.current = nodeType;\n prevSourcePosition.current = node.sourcePosition;\n prevTargetPosition.current = node.targetPosition;\n\n optionsStore\n .getState()\n .updateNodeInternals(new Map([[node.id, { id: node.id, nodeElement: nodeRef.current, force: true }]]));\n }\n }\n }, [node.id, nodeType, node.sourcePosition, node.targetPosition]);\n\n return nodeRef;\n}\n","import { type MouseEvent, type KeyboardEvent, memo } from 'react';\nimport cc from 'classcat';\nimport {\n elementSelectionKeys,\n errorMessages,\n getNodeDimensions,\n isInputDOMNode,\n nodeHasDimensions,\n getNodesInside,\n} from '@xyflow/system';\n\nimport { useInternalNode } from '../../hooks/useNodes';\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { Provider } from '../../contexts/NodeIdContext';\nimport { ARIA_NODE_DESC_KEY } from '../A11yDescriptions';\nimport { useDrag } from '../../hooks/useDrag';\nimport { useMoveSelectedNodes } from '../../hooks/useMoveSelectedNodes';\nimport { handleNodeClick } from '../Nodes/utils';\nimport { arrowKeyDiffs, builtinNodeTypes, getNodeInlineStyleDimensions } from './utils';\nimport { useNodeObserver } from './useNodeObserver';\nimport type { Node, NodeWrapperProps } from '../../types';\n\nfunction NodeWrapper<NodeType extends Node>({\n id,\n onClick,\n onMouseEnter,\n onMouseMove,\n onMouseLeave,\n onContextMenu,\n onDoubleClick,\n nodesDraggable,\n elementsSelectable,\n nodesConnectable,\n nodesFocusable,\n resizeObserver,\n noDragClassName,\n noPanClassName,\n disableKeyboardA11y,\n rfId,\n nodeTypes,\n onError,\n}: NodeWrapperProps<NodeType>) {\n const node = useInternalNode<NodeType>(id)!;\n const { internals } = node;\n\n let nodeType = node.type || 'default';\n let NodeComponent = nodeTypes?.[nodeType] || builtinNodeTypes[nodeType];\n\n if (NodeComponent === undefined) {\n onError?.('003', errorMessages['error003'](nodeType));\n nodeType = 'default';\n NodeComponent = nodeTypes?.['default'] || builtinNodeTypes.default;\n }\n\n const isDraggable = !!(node.draggable || (nodesDraggable && typeof node.draggable === 'undefined'));\n const isSelectable = !!(node.selectable || (elementsSelectable && typeof node.selectable === 'undefined'));\n const isConnectable = !!(node.connectable || (nodesConnectable && typeof node.connectable === 'undefined'));\n const isFocusable = !!(node.focusable || (nodesFocusable && typeof node.focusable === 'undefined'));\n\n const { optionsStore, viewportStore, nodesStore } = useReactFlowStoreApi();\n const hasDimensions = nodeHasDimensions(node);\n const nodeRef = useNodeObserver({ node, nodeType, hasDimensions, resizeObserver });\n const dragging = useDrag({\n nodeRef,\n disabled: node.hidden || !isDraggable,\n noDragClassName,\n handleSelector: node.dragHandle,\n nodeId: id,\n isSelectable,\n });\n const moveSelectedNodes = useMoveSelectedNodes();\n\n if (node.hidden) {\n return null;\n }\n\n const nodeDimensions = getNodeDimensions(node);\n const inlineDimensions = getNodeInlineStyleDimensions(node);\n\n const hasPointerEvents = isSelectable || isDraggable || onClick || onMouseEnter || onMouseMove || onMouseLeave;\n\n const onMouseEnterHandler = onMouseEnter\n ? (event: MouseEvent) => onMouseEnter(event, { ...internals.userNode })\n : undefined;\n const onMouseMoveHandler = onMouseMove\n ? (event: MouseEvent) => onMouseMove(event, { ...internals.userNode })\n : undefined;\n const onMouseLeaveHandler = onMouseLeave\n ? (event: MouseEvent) => onMouseLeave(event, { ...internals.userNode })\n : undefined;\n const onContextMenuHandler = onContextMenu\n ? (event: MouseEvent) => onContextMenu(event, { ...internals.userNode })\n : undefined;\n const onDoubleClickHandler = onDoubleClick\n ? (event: MouseEvent) => onDoubleClick(event, { ...internals.userNode })\n : undefined;\n\n const onSelectNodeHandler = (event: MouseEvent) => {\n const { selectNodesOnDrag, nodeDragThreshold } = optionsStore.getState();\n\n if (isSelectable && (!selectNodesOnDrag || !isDraggable || nodeDragThreshold > 0)) {\n /*\n * this handler gets called by XYDrag on drag start when selectNodesOnDrag=true\n * here we only need to call it when selectNodesOnDrag=false\n */\n handleNodeClick({\n id,\n optionsStore,\n nodesStore,\n nodeRef,\n });\n }\n\n if (onClick) {\n onClick(event, { ...internals.userNode });\n }\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n if (isInputDOMNode(event.nativeEvent) || disableKeyboardA11y) {\n return;\n }\n\n if (elementSelectionKeys.includes(event.key) && isSelectable) {\n const unselect = event.key === 'Escape';\n\n handleNodeClick({\n id,\n optionsStore,\n nodesStore,\n unselect,\n nodeRef,\n });\n } else if (isDraggable && node.selected && Object.prototype.hasOwnProperty.call(arrowKeyDiffs, event.key)) {\n // prevent default scrolling behavior on arrow key press when node is moved\n event.preventDefault();\n\n moveSelectedNodes({\n direction: arrowKeyDiffs[event.key],\n factor: event.shiftKey ? 4 : 1,\n });\n\n // announce the position after the move, including snapping and extent clamping\n const { ariaLabelConfig } = optionsStore.getState();\n const { nodeLookup } = nodesStore.getState();\n const positionAbsolute = nodeLookup.get(id)?.internals.positionAbsolute ?? internals.positionAbsolute;\n\n optionsStore.setState({\n ariaLiveMessage: ariaLabelConfig['node.a11yDescription.ariaLiveMessage']({\n direction: event.key.replace('Arrow', '').toLowerCase(),\n x: ~~positionAbsolute.x,\n y: ~~positionAbsolute.y,\n }),\n });\n }\n };\n\n const onFocus = () => {\n if (disableKeyboardA11y || !nodeRef.current?.matches(':focus-visible')) {\n return;\n }\n\n const { transform, width, height } = viewportStore.getState();\n const { autoPanOnNodeFocus, setCenter } = optionsStore.getState();\n\n if (!autoPanOnNodeFocus) {\n return;\n }\n\n const withinViewport =\n getNodesInside(new Map([[id, node]]), { x: 0, y: 0, width, height }, transform, true).length > 0;\n\n if (!withinViewport) {\n void setCenter(node.position.x + nodeDimensions.width / 2, node.position.y + nodeDimensions.height / 2, {\n zoom: transform[2],\n });\n }\n };\n\n return (\n <div\n className={cc([\n 'react-flow__node',\n `react-flow__node-${nodeType}`,\n {\n // this is overwritable by passing `nopan` as a class name\n [noPanClassName]: isDraggable,\n },\n node.className,\n {\n selected: node.selected,\n selectable: isSelectable,\n parent: internals.isParent,\n draggable: isDraggable,\n dragging,\n },\n ])}\n ref={nodeRef}\n style={{\n zIndex: internals.z,\n transform: `translate(${internals.positionAbsolute.x}px,${internals.positionAbsolute.y}px)`,\n pointerEvents: hasPointerEvents ? 'all' : 'none',\n visibility: hasDimensions ? 'visible' : 'hidden',\n ...node.style,\n ...inlineDimensions,\n }}\n data-id={id}\n data-testid={`rf__node-${id}`}\n onMouseEnter={onMouseEnterHandler}\n onMouseMove={onMouseMoveHandler}\n onMouseLeave={onMouseLeaveHandler}\n onContextMenu={onContextMenuHandler}\n onClick={onSelectNodeHandler}\n onDoubleClick={onDoubleClickHandler}\n onKeyDown={isFocusable ? onKeyDown : undefined}\n tabIndex={isFocusable ? 0 : undefined}\n onFocus={isFocusable ? onFocus : undefined}\n role={node.ariaRole ?? (isFocusable ? 'group' : undefined)}\n aria-roledescription=\"node\"\n aria-describedby={disableKeyboardA11y ? undefined : `${ARIA_NODE_DESC_KEY}-${rfId}`}\n aria-label={node.ariaLabel}\n {...node.domAttributes}\n >\n <Provider value={id}>\n <NodeComponent\n id={id}\n data={node.data}\n type={nodeType}\n positionAbsoluteX={internals.positionAbsolute.x}\n positionAbsoluteY={internals.positionAbsolute.y}\n selected={node.selected ?? false}\n selectable={isSelectable}\n draggable={isDraggable}\n deletable={node.deletable ?? true}\n isConnectable={isConnectable}\n sourcePosition={node.sourcePosition}\n targetPosition={node.targetPosition}\n dragging={dragging}\n dragHandle={node.dragHandle}\n zIndex={internals.z}\n parentId={node.parentId}\n {...nodeDimensions}\n />\n </Provider>\n </div>\n );\n}\n\n// The compiler caches the nodes list as a whole. Keep per-node bailouts when that list changes.\nexport default memo(NodeWrapper) as typeof NodeWrapper;\n","import { memo } from 'react';\n\nimport { useVisibleNodeIds } from '../../hooks/useVisibleNodeIds';\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\nimport { containerStyle } from '../../styles/utils';\nimport { GraphViewProps } from '../GraphView';\nimport { useResizeObserver } from './useResizeObserver';\nimport NodeWrapper from '../../components/NodeWrapper';\nimport type { Node } from '../../types';\n\nexport type NodeRendererProps<NodeType extends Node> = Pick<\n GraphViewProps<NodeType>,\n | 'onNodeClick'\n | 'onNodeDoubleClick'\n | 'onNodeMouseEnter'\n | 'onNodeMouseMove'\n | 'onNodeMouseLeave'\n | 'onNodeContextMenu'\n | 'onlyRenderVisibleElements'\n | 'noPanClassName'\n | 'noDragClassName'\n | 'rfId'\n | 'disableKeyboardA11y'\n | 'nodeExtent'\n | 'nodeTypes'\n | 'nodesDraggable'\n>;\n\nfunction NodeRendererComponent<NodeType extends Node>(props: NodeRendererProps<NodeType>) {\n const nodesConnectable = useOptionsStore((s) => s.nodesConnectable);\n const nodesFocusable = useOptionsStore((s) => s.nodesFocusable);\n const elementsSelectable = useOptionsStore((s) => s.elementsSelectable);\n const onError = useOptionsStore((s) => s.onError);\n\n const nodeIds = useVisibleNodeIds(props.onlyRenderVisibleElements);\n const resizeObserver = useResizeObserver();\n\n return (\n <div className=\"react-flow__nodes\" style={containerStyle}>\n {nodeIds.map((nodeId) => {\n return (\n /*\n * The split of responsibilities between NodeRenderer and\n * NodeComponentWrapper may appear weird. However, it’s designed to\n * minimize the cost of updates when individual nodes change.\n *\n * For example, when you’re dragging a single node, that node gets\n * updated multiple times per second. If `NodeRenderer` were to update\n * every time, it would have to re-run the `nodes.map()` loop every\n * time. This gets pricey with hundreds of nodes, especially if every\n * loop cycle does more than just rendering a JSX element!\n *\n * As a result of this choice, we took the following implementation\n * decisions:\n * - NodeRenderer subscribes *only* to node IDs – and therefore\n * rerender *only* when visible nodes are added or removed.\n * - NodeRenderer performs all operations the result of which can be\n * shared between nodes (such as creating the `ResizeObserver`\n * instance, or subscribing to store settings). This means extra prop\n * drilling into `NodeComponentWrapper`, but it means we need to run\n * these operations only once – instead of once per node.\n * - Any operations that you’d normally write inside `nodes.map` are\n * moved into `NodeComponentWrapper`. This ensures they are\n * memorized – so if `NodeRenderer` *has* to rerender, it only\n * needs to regenerate the list of nodes, nothing else.\n */\n <NodeWrapper<NodeType>\n key={nodeId}\n id={nodeId}\n nodeTypes={props.nodeTypes}\n nodeExtent={props.nodeExtent}\n onClick={props.onNodeClick}\n onMouseEnter={props.onNodeMouseEnter}\n onMouseMove={props.onNodeMouseMove}\n onMouseLeave={props.onNodeMouseLeave}\n onContextMenu={props.onNodeContextMenu}\n onDoubleClick={props.onNodeDoubleClick}\n noDragClassName={props.noDragClassName}\n noPanClassName={props.noPanClassName}\n rfId={props.rfId}\n disableKeyboardA11y={props.disableKeyboardA11y}\n resizeObserver={resizeObserver}\n nodesDraggable={props.nodesDraggable ?? true}\n nodesConnectable={nodesConnectable}\n nodesFocusable={nodesFocusable}\n elementsSelectable={elementsSelectable}\n onError={onError}\n />\n );\n })}\n </div>\n );\n}\n\nNodeRendererComponent.displayName = 'NodeRenderer';\n\nexport const NodeRenderer = memo(NodeRendererComponent) as typeof NodeRendererComponent;\n","import { isEdgeVisible } from '@xyflow/system';\n\nimport { useShallow, useEdgesStore, useNodesStore, useViewportStore } from './useReactFlowStore';\nimport { type EdgesStore } from '../types';\n\n/**\n * Hook for getting the visible edge ids from the store.\n *\n * @internal\n * @param onlyRenderVisible\n * @returns array with visible edge ids\n */\nexport function useVisibleEdgeIds(onlyRenderVisible: boolean): string[] {\n const viewport = useViewportStore((s) => (onlyRenderVisible ? s : undefined));\n const nodes = useNodesStore((s) => (onlyRenderVisible ? s : undefined));\n const edgeIds = useEdgesStore(\n useShallow((s: EdgesStore) => {\n if (!onlyRenderVisible) {\n return s.edges.map((edge) => edge.id);\n }\n\n const visibleEdgeIds = [];\n\n if (viewport!.width && viewport!.height) {\n for (const edge of s.edges) {\n const sourceNode = nodes!.nodeLookup.get(edge.source);\n const targetNode = nodes!.nodeLookup.get(edge.target);\n\n if (\n sourceNode &&\n targetNode &&\n isEdgeVisible({\n sourceNode,\n targetNode,\n width: viewport!.width,\n height: viewport!.height,\n transform: viewport!.transform,\n })\n ) {\n visibleEdgeIds.push(edge.id);\n }\n }\n }\n\n return visibleEdgeIds;\n })\n );\n\n return edgeIds;\n}\n","import { MarkerType, type EdgeMarker } from '@xyflow/system';\n\ntype SymbolProps = Omit<EdgeMarker, 'type'>;\n\nconst ArrowSymbol = ({ color = 'none', strokeWidth = 1 }: SymbolProps) => {\n const style = {\n strokeWidth,\n ...(color && { stroke: color }),\n };\n\n return (\n <polyline\n className=\"arrow\"\n style={style}\n strokeLinecap=\"round\"\n fill=\"none\"\n strokeLinejoin=\"round\"\n points=\"-5,-4 0,0 -5,4\"\n />\n );\n};\n\nconst ArrowClosedSymbol = ({ color = 'none', strokeWidth = 1 }: SymbolProps) => {\n const style = {\n strokeWidth,\n ...(color && { stroke: color, fill: color }),\n };\n\n return (\n <polyline\n className=\"arrowclosed\"\n style={style}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n points=\"-5,-4 0,0 -5,4 -5,-4\"\n />\n );\n};\n\nexport const arrowSymbols = {\n [MarkerType.Arrow]: ArrowSymbol,\n [MarkerType.ArrowClosed]: ArrowClosedSymbol,\n} as const;\n","import { memo } from 'react';\nimport { type MarkerProps, type OnError, createMarkerIds, errorMessages } from '@xyflow/system';\n\nimport { useEdgesStore, useOptionsStore } from '../../hooks/useReactFlowStore';\nimport { arrowSymbols } from './MarkerSymbols';\n\ntype MarkerDefinitionsProps = {\n defaultColor: string | null;\n rfId?: string;\n onError?: OnError;\n};\n\nconst Marker = ({\n id,\n type,\n color,\n width = 12.5,\n height = 12.5,\n markerUnits = 'strokeWidth',\n strokeWidth,\n orient = 'auto-start-reverse',\n onError,\n}: MarkerProps & { onError?: OnError }) => {\n if (!Object.hasOwn(arrowSymbols, type)) {\n onError?.('009', errorMessages['error009'](type));\n\n return null;\n }\n\n const Symbol = arrowSymbols[type];\n\n return (\n <marker\n className=\"react-flow__arrowhead\"\n id={id}\n markerWidth={`${width}`}\n markerHeight={`${height}`}\n viewBox=\"-10 -10 20 20\"\n markerUnits={markerUnits}\n orient={orient}\n refX=\"0\"\n refY=\"0\"\n >\n <Symbol color={color} strokeWidth={strokeWidth} />\n </marker>\n );\n};\n\n/*\n * when you have multiple flows on a page and you hide the first one, the other ones have no markers anymore\n * when they do have markers with the same ids. To prevent this the user can pass a unique id to the react flow wrapper\n * that we can then use for creating our unique marker ids\n */\nconst MarkerDefinitions = ({ defaultColor, rfId, onError }: MarkerDefinitionsProps) => {\n const defaultEdgeOptions = useOptionsStore((s) => s.defaultEdgeOptions);\n const { edges } = useEdgesStore();\n\n const markers = createMarkerIds(edges, {\n id: rfId,\n defaultColor,\n defaultMarkerStart: defaultEdgeOptions?.markerStart,\n defaultMarkerEnd: defaultEdgeOptions?.markerEnd,\n });\n\n if (!markers.length) {\n return null;\n }\n\n return (\n <svg className=\"react-flow__marker\" aria-hidden=\"true\">\n <defs>\n {markers.map((marker: MarkerProps) => (\n <Marker\n id={marker.id}\n key={marker.id}\n type={marker.type}\n color={marker.color}\n width={marker.width}\n height={marker.height}\n markerUnits={marker.markerUnits}\n strokeWidth={marker.strokeWidth}\n orient={marker.orient}\n onError={onError}\n />\n ))}\n </defs>\n </svg>\n );\n};\n\nMarkerDefinitions.displayName = 'MarkerDefinitions';\n\nexport default memo(MarkerDefinitions);\n","import { useSyncExternalStore } from 'react';\n\nimport { useEdgesStore, useReactFlowStoreApi } from './useReactFlowStore';\nimport type { Edge } from '../types';\n\n/**\n * This hook returns an array of the current edges. Components that use this hook\n * will re-render **whenever any edge changes**.\n *\n * @public\n * @returns An array of all edges currently in the flow.\n *\n * @example\n * ```tsx\n *import { useEdges } from '@xyflow/react';\n *\n *export default function () {\n * const edges = useEdges();\n *\n * return <div>There are currently {edges.length} edges!</div>;\n *}\n *```\n */\nexport function useEdges<EdgeType extends Edge = Edge>(): EdgeType[] {\n const { edges } = useEdgesStore();\n\n return edges as EdgeType[];\n}\n\n/**\n * This hook returns the edge with the given id. Components that use this hook\n * will re-render **whenever the edge changes**.\n *\n * @public\n * @param id - The id of the edge to return.\n * @returns The edge with the given id.\n *\n * @example\n * ```tsx\n *import { useEdge } from '@xyflow/react';\n *\n *export default function () {\n * const edge = useEdge('1');\n *\n * return <div>Edge: {edge?.data.label}</div>;\n *}\n *```\n */\nexport function useEdge<EdgeType extends Edge = Edge>(id: string): EdgeType | undefined {\n const { optionsStore, edgesStore } = useReactFlowStoreApi();\n\n const subscribe = (onStoreChange: () => void) => optionsStore.getState().pubSub.subscribeToEdge(id, onStoreChange);\n\n const getSnapshot = () => edgesStore.getState().edgeLookup.get(id) as EdgeType | undefined;\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n","import { memo, useState, useEffect, useRef } from 'react';\nimport cc from 'classcat';\nimport type { Rect } from '@xyflow/system';\n\nimport type { EdgeTextProps } from '../../types';\n\nconst defaultLabelBgPadding: [number, number] = [2, 4];\n\nfunction EdgeTextComponent({\n x,\n y,\n label,\n labelStyle,\n labelShowBg = true,\n labelBgStyle,\n labelBgPadding = defaultLabelBgPadding,\n labelBgBorderRadius = 2,\n children,\n className,\n ...rest\n}: EdgeTextProps) {\n const [edgeTextBbox, setEdgeTextBbox] = useState<Rect>({ x: 1, y: 0, width: 0, height: 0 });\n const edgeTextClasses = cc(['react-flow__edge-textwrapper', className]);\n const edgeTextRef = useRef<SVGTextElement | null>(null);\n\n useEffect(() => {\n if (edgeTextRef.current) {\n const textBbox = edgeTextRef.current.getBBox();\n\n setEdgeTextBbox({\n x: textBbox.x,\n y: textBbox.y,\n width: textBbox.width,\n height: textBbox.height,\n });\n }\n }, [label]);\n\n if (!label) {\n return null;\n }\n\n return (\n <g\n transform={`translate(${x - edgeTextBbox.width / 2} ${y - edgeTextBbox.height / 2})`}\n className={edgeTextClasses}\n visibility={edgeTextBbox.width ? 'visible' : 'hidden'}\n {...rest}\n >\n {labelShowBg && (\n <rect\n width={edgeTextBbox.width + 2 * labelBgPadding[0]}\n x={-labelBgPadding[0]}\n y={-labelBgPadding[1]}\n height={edgeTextBbox.height + 2 * labelBgPadding[1]}\n className=\"react-flow__edge-textbg\"\n style={labelBgStyle}\n rx={labelBgBorderRadius}\n ry={labelBgBorderRadius}\n />\n )}\n <text\n className=\"react-flow__edge-text\"\n y={edgeTextBbox.height / 2}\n dy=\"0.3em\"\n ref={edgeTextRef}\n style={labelStyle}\n >\n {label}\n </text>\n {children}\n </g>\n );\n}\n\nEdgeTextComponent.displayName = 'EdgeText';\n\n/**\n * You can use the `<EdgeText />` component as a helper component to display text\n * within your custom edges.\n *\n * @public\n *\n * @example\n * ```jsx\n * import { EdgeText } from '@xyflow/react';\n *\n * export function CustomEdgeLabel({ label }) {\n * return (\n * <EdgeText\n * x={100}\n * y={100}\n * label={label}\n * labelStyle={{ fill: 'white' }}\n * labelShowBg\n * labelBgStyle={{ fill: 'red' }}\n * labelBgPadding={[2, 4]}\n * labelBgBorderRadius={2}\n * />\n * );\n * }\n *```\n */\nexport const EdgeText = memo(EdgeTextComponent);\n","import { isNumeric } from '@xyflow/system';\nimport cc from 'classcat';\n\nimport { EdgeText } from './EdgeText';\nimport type { BaseEdgeProps } from '../../types';\n\n/**\n * The `<BaseEdge />` component gets used internally for all the edges. It can be\n * used inside a custom edge and handles the invisible helper edge and the edge label\n * for you.\n *\n * @public\n * @example\n * ```jsx\n *import { BaseEdge } from '@xyflow/react';\n *\n *export function CustomEdge({ sourceX, sourceY, targetX, targetY, ...props }) {\n * const [edgePath] = getStraightPath({\n * sourceX,\n * sourceY,\n * targetX,\n * targetY,\n * });\n *\n * return <BaseEdge path={edgePath} {...props} />;\n *}\n *```\n *\n * @remarks If you want to use an edge marker with the [`<BaseEdge />`](/api-reference/components/base-edge) component,\n * you can pass the `markerStart` or `markerEnd` props passed to your custom edge\n * through to the [`<BaseEdge />`](/api-reference/components/base-edge) component.\n * You can see all the props passed to a custom edge by looking at the [`EdgeProps`](/api-reference/types/edge-props) type.\n */\nexport function BaseEdge({\n path,\n labelX,\n labelY,\n label,\n labelStyle,\n labelShowBg,\n labelBgStyle,\n labelBgPadding,\n labelBgBorderRadius,\n interactionWidth = 20,\n ...props\n}: BaseEdgeProps) {\n return (\n <>\n <path {...props} d={path} fill=\"none\" className={cc(['react-flow__edge-path', props.className])} />\n {interactionWidth ? (\n <path\n d={path}\n fill=\"none\"\n strokeOpacity={0}\n strokeWidth={interactionWidth}\n className=\"react-flow__edge-interaction\"\n />\n ) : null}\n {label && isNumeric(labelX) && isNumeric(labelY) ? (\n <EdgeText\n x={labelX}\n y={labelY}\n label={label}\n labelStyle={labelStyle}\n labelShowBg={labelShowBg}\n labelBgStyle={labelBgStyle}\n labelBgPadding={labelBgPadding}\n labelBgBorderRadius={labelBgBorderRadius}\n />\n ) : null}\n </>\n );\n}\n","import { memo } from 'react';\nimport { Position, getBezierEdgeCenter } from '@xyflow/system';\n\nimport { BaseEdge } from './BaseEdge';\nimport type { SimpleBezierEdgeProps } from '../../types';\n\nexport interface GetSimpleBezierPathParams {\n sourceX: number;\n sourceY: number;\n /** @default Position.Bottom */\n sourcePosition?: Position;\n targetX: number;\n targetY: number;\n /** @default Position.Top */\n targetPosition?: Position;\n}\n\ninterface GetControlParams {\n pos: Position;\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n}\n\nfunction getControl({ pos, x1, y1, x2, y2 }: GetControlParams): [number, number] {\n if (pos === Position.Left || pos === Position.Right) {\n return [0.5 * (x1 + x2), y1];\n }\n\n return [x1, 0.5 * (y1 + y2)];\n}\n\n/**\n * The `getSimpleBezierPath` util returns everything you need to render a simple\n * bezier edge between two nodes.\n * @public\n * @returns\n * - `path`: the path to use in an SVG `<path>` element.\n * - `labelX`: the `x` position you can use to render a label for this edge.\n * - `labelY`: the `y` position you can use to render a label for this edge.\n * - `offsetX`: the absolute difference between the source `x` position and the `x` position of the\n * middle of this path.\n * - `offsetY`: the absolute difference between the source `y` position and the `y` position of the\n * middle of this path.\n */\nexport function getSimpleBezierPath({\n sourceX,\n sourceY,\n sourcePosition = Position.Bottom,\n targetX,\n targetY,\n targetPosition = Position.Top,\n}: GetSimpleBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number] {\n const [sourceControlX, sourceControlY] = getControl({\n pos: sourcePosition,\n x1: sourceX,\n y1: sourceY,\n x2: targetX,\n y2: targetY,\n });\n const [targetControlX, targetControlY] = getControl({\n pos: targetPosition,\n x1: targetX,\n y1: targetY,\n x2: sourceX,\n y2: sourceY,\n });\n const [labelX, labelY, offsetX, offsetY] = getBezierEdgeCenter({\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourceControlX,\n sourceControlY,\n targetControlX,\n targetControlY,\n });\n\n return [\n `M${sourceX},${sourceY} C${sourceControlX},${sourceControlY} ${targetControlX},${targetControlY} ${targetX},${targetY}`,\n labelX,\n labelY,\n offsetX,\n offsetY,\n ];\n}\n\nfunction createSimpleBezierEdge(params: { isInternal: boolean }) {\n function SimpleBezierEdgeComponent({\n id,\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition,\n label,\n labelStyle,\n labelShowBg,\n labelBgStyle,\n labelBgPadding,\n labelBgBorderRadius,\n style,\n markerEnd,\n markerStart,\n interactionWidth,\n }: SimpleBezierEdgeProps) {\n const [path, labelX, labelY] = getSimpleBezierPath({\n sourceX,\n sourceY,\n sourcePosition,\n targetX,\n targetY,\n targetPosition,\n });\n\n const _id = params.isInternal ? undefined : id;\n\n return (\n <BaseEdge\n id={_id}\n path={path}\n labelX={labelX}\n labelY={labelY}\n label={label}\n labelStyle={labelStyle}\n labelShowBg={labelShowBg}\n labelBgStyle={labelBgStyle}\n labelBgPadding={labelBgPadding}\n labelBgBorderRadius={labelBgBorderRadius}\n style={style}\n markerEnd={markerEnd}\n markerStart={markerStart}\n interactionWidth={interactionWidth}\n />\n );\n }\n\n SimpleBezierEdgeComponent.displayName = params.isInternal ? 'SimpleBezierEdgeInternal' : 'SimpleBezierEdge';\n return memo(SimpleBezierEdgeComponent);\n}\n\nconst SimpleBezierEdge = createSimpleBezierEdge({ isInternal: false });\nconst SimpleBezierEdgeInternal = createSimpleBezierEdge({ isInternal: true });\n\nexport { SimpleBezierEdge, SimpleBezierEdgeInternal };\n","import { memo } from 'react';\nimport { Position, getSmoothStepPath } from '@xyflow/system';\n\nimport { BaseEdge } from './BaseEdge';\nimport type { SmoothStepEdgeProps } from '../../types';\n\nfunction createSmoothStepEdge(params: { isInternal: boolean }) {\n function SmoothStepEdgeComponent({\n id,\n sourceX,\n sourceY,\n targetX,\n targetY,\n label,\n labelStyle,\n labelShowBg,\n labelBgStyle,\n labelBgPadding,\n labelBgBorderRadius,\n style,\n sourcePosition = Position.Bottom,\n targetPosition = Position.Top,\n markerEnd,\n markerStart,\n pathOptions,\n interactionWidth,\n }: SmoothStepEdgeProps) {\n const [path, labelX, labelY] = getSmoothStepPath({\n sourceX,\n sourceY,\n sourcePosition,\n targetX,\n targetY,\n targetPosition,\n borderRadius: pathOptions?.borderRadius,\n offset: pathOptions?.offset,\n stepPosition: pathOptions?.stepPosition,\n });\n\n const _id = params.isInternal ? undefined : id;\n\n return (\n <BaseEdge\n id={_id}\n path={path}\n labelX={labelX}\n labelY={labelY}\n label={label}\n labelStyle={labelStyle}\n labelShowBg={labelShowBg}\n labelBgStyle={labelBgStyle}\n labelBgPadding={labelBgPadding}\n labelBgBorderRadius={labelBgBorderRadius}\n style={style}\n markerEnd={markerEnd}\n markerStart={markerStart}\n interactionWidth={interactionWidth}\n />\n );\n }\n\n SmoothStepEdgeComponent.displayName = params.isInternal ? 'SmoothStepEdgeInternal' : 'SmoothStepEdge';\n return memo(SmoothStepEdgeComponent);\n}\n\n/**\n * Component that can be used inside a custom edge to render a smooth step edge.\n *\n * @public\n * @example\n *\n * ```tsx\n * import { SmoothStepEdge } from '@xyflow/react';\n *\n * function CustomEdge({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition }) {\n * return (\n * <SmoothStepEdge\n * sourceX={sourceX}\n * sourceY={sourceY}\n * targetX={targetX}\n * targetY={targetY}\n * sourcePosition={sourcePosition}\n * targetPosition={targetPosition}\n * />\n * );\n * }\n * ```\n */\nconst SmoothStepEdge = createSmoothStepEdge({ isInternal: false });\n\n/**\n * @internal\n */\nconst SmoothStepEdgeInternal = createSmoothStepEdge({ isInternal: true });\n\nexport { SmoothStepEdge, SmoothStepEdgeInternal };\n","import { memo } from 'react';\n\nimport { SmoothStepEdge } from './SmoothStepEdge';\nimport type { StepEdgeProps } from '../../types';\n\nfunction createStepEdge(params: { isInternal: boolean }) {\n function StepEdgeComponent({ id, ...props }: StepEdgeProps) {\n const _id = params.isInternal ? undefined : id;\n\n return <SmoothStepEdge {...props} id={_id} pathOptions={{ borderRadius: 0, offset: props.pathOptions?.offset }} />;\n }\n\n StepEdgeComponent.displayName = params.isInternal ? 'StepEdgeInternal' : 'StepEdge';\n return memo(StepEdgeComponent);\n}\n\n/**\n * Component that can be used inside a custom edge to render a step edge.\n *\n * @public\n * @example\n *\n * ```tsx\n * import { StepEdge } from '@xyflow/react';\n *\n * function CustomEdge({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition }) {\n * return (\n * <StepEdge\n * sourceX={sourceX}\n * sourceY={sourceY}\n * targetX={targetX}\n * targetY={targetY}\n * sourcePosition={sourcePosition}\n * targetPosition={targetPosition}\n * />\n * );\n * }\n * ```\n */\nconst StepEdge = createStepEdge({ isInternal: false });\n\n/**\n * @internal\n */\nconst StepEdgeInternal = createStepEdge({ isInternal: true });\n\nexport { StepEdge, StepEdgeInternal };\n","import { memo } from 'react';\nimport { getStraightPath } from '@xyflow/system';\n\nimport { BaseEdge } from './BaseEdge';\nimport type { StraightEdgeProps } from '../../types';\n\nfunction createStraightEdge(params: { isInternal: boolean }) {\n function StraightEdgeComponent({\n id,\n sourceX,\n sourceY,\n targetX,\n targetY,\n label,\n labelStyle,\n labelShowBg,\n labelBgStyle,\n labelBgPadding,\n labelBgBorderRadius,\n style,\n markerEnd,\n markerStart,\n interactionWidth,\n }: StraightEdgeProps) {\n const [path, labelX, labelY] = getStraightPath({ sourceX, sourceY, targetX, targetY });\n\n const _id = params.isInternal ? undefined : id;\n\n return (\n <BaseEdge\n id={_id}\n path={path}\n labelX={labelX}\n labelY={labelY}\n label={label}\n labelStyle={labelStyle}\n labelShowBg={labelShowBg}\n labelBgStyle={labelBgStyle}\n labelBgPadding={labelBgPadding}\n labelBgBorderRadius={labelBgBorderRadius}\n style={style}\n markerEnd={markerEnd}\n markerStart={markerStart}\n interactionWidth={interactionWidth}\n />\n );\n }\n\n StraightEdgeComponent.displayName = params.isInternal ? 'StraightEdgeInternal' : 'StraightEdge';\n return memo(StraightEdgeComponent);\n}\n\n/**\n * Component that can be used inside a custom edge to render a straight line.\n *\n * @public\n * @example\n *\n * ```tsx\n * import { StraightEdge } from '@xyflow/react';\n *\n * function CustomEdge({ sourceX, sourceY, targetX, targetY }) {\n * return (\n * <StraightEdge\n * sourceX={sourceX}\n * sourceY={sourceY}\n * targetX={targetX}\n * targetY={targetY}\n * />\n * );\n * }\n * ```\n */\nconst StraightEdge = createStraightEdge({ isInternal: false });\n\n/**\n * @internal\n */\nconst StraightEdgeInternal = createStraightEdge({ isInternal: true });\n\nexport { StraightEdge, StraightEdgeInternal };\n","import { memo } from 'react';\nimport { Position, getBezierPath } from '@xyflow/system';\n\nimport { BaseEdge } from './BaseEdge';\nimport type { BezierEdgeProps } from '../../types';\n\nfunction createBezierEdge(params: { isInternal: boolean }) {\n function BezierEdgeComponent({\n id,\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition = Position.Bottom,\n targetPosition = Position.Top,\n label,\n labelStyle,\n labelShowBg,\n labelBgStyle,\n labelBgPadding,\n labelBgBorderRadius,\n style,\n markerEnd,\n markerStart,\n pathOptions,\n interactionWidth,\n }: BezierEdgeProps) {\n const [path, labelX, labelY] = getBezierPath({\n sourceX,\n sourceY,\n sourcePosition,\n targetX,\n targetY,\n targetPosition,\n curvature: pathOptions?.curvature,\n });\n\n const _id = params.isInternal ? undefined : id;\n\n return (\n <BaseEdge\n id={_id}\n path={path}\n labelX={labelX}\n labelY={labelY}\n label={label}\n labelStyle={labelStyle}\n labelShowBg={labelShowBg}\n labelBgStyle={labelBgStyle}\n labelBgPadding={labelBgPadding}\n labelBgBorderRadius={labelBgBorderRadius}\n style={style}\n markerEnd={markerEnd}\n markerStart={markerStart}\n interactionWidth={interactionWidth}\n />\n );\n }\n\n BezierEdgeComponent.displayName = params.isInternal ? 'BezierEdgeInternal' : 'BezierEdge';\n return memo(BezierEdgeComponent);\n}\n\n/**\n * Component that can be used inside a custom edge to render a bezier curve.\n *\n * @public\n * @example\n *\n * ```tsx\n * import { BezierEdge } from '@xyflow/react';\n *\n * function CustomEdge({ sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition }) {\n * return (\n * <BezierEdge\n * sourceX={sourceX}\n * sourceY={sourceY}\n * targetX={targetX}\n * targetY={targetY}\n * sourcePosition={sourcePosition}\n * targetPosition={targetPosition}\n * />\n * );\n * }\n * ```\n */\nconst BezierEdge = createBezierEdge({ isInternal: false });\n\n/**\n * @internal\n */\nconst BezierEdgeInternal = createBezierEdge({ isInternal: true });\n\nexport { BezierEdge, BezierEdgeInternal };\n","import type { EdgeTypes } from '../../types';\nimport {\n BezierEdgeInternal,\n StraightEdgeInternal,\n StepEdgeInternal,\n SmoothStepEdgeInternal,\n SimpleBezierEdgeInternal,\n} from '../Edges';\n\nexport const builtinEdgeTypes: EdgeTypes = {\n default: BezierEdgeInternal,\n straight: StraightEdgeInternal,\n step: StepEdgeInternal,\n smoothstep: SmoothStepEdgeInternal,\n simplebezier: SimpleBezierEdgeInternal,\n};\n\nexport const nullPosition = {\n sourceX: null,\n sourceY: null,\n targetX: null,\n targetY: null,\n sourcePosition: null,\n targetPosition: null,\n zIndex: undefined,\n};\n","import type { MouseEvent as ReactMouseEvent, SVGAttributes } from 'react';\nimport cc from 'classcat';\nimport { Position } from '@xyflow/system';\n\nconst shiftX = (x: number, shift: number, position: Position): number => {\n if (position === Position.Left) return x - shift;\n if (position === Position.Right) return x + shift;\n return x;\n};\n\nconst shiftY = (y: number, shift: number, position: Position): number => {\n if (position === Position.Top) return y - shift;\n if (position === Position.Bottom) return y + shift;\n return y;\n};\n\nexport interface EdgeAnchorProps extends SVGAttributes<SVGGElement> {\n position: Position;\n centerX: number;\n centerY: number;\n radius?: number;\n onMouseDown: (event: ReactMouseEvent<SVGGElement, MouseEvent>) => void;\n onMouseEnter: (event: ReactMouseEvent<SVGGElement, MouseEvent>) => void;\n onMouseOut: (event: ReactMouseEvent<SVGGElement, MouseEvent>) => void;\n type: string;\n}\n\nconst EdgeUpdaterClassName = 'react-flow__edgeupdater';\n\n/**\n * @internal\n */\nexport function EdgeAnchor({\n position,\n centerX,\n centerY,\n radius = 10,\n onMouseDown,\n onMouseEnter,\n onMouseOut,\n type,\n}: EdgeAnchorProps) {\n return (\n <circle\n onMouseDown={onMouseDown}\n onMouseEnter={onMouseEnter}\n onMouseOut={onMouseOut}\n className={cc([EdgeUpdaterClassName, `${EdgeUpdaterClassName}-${type}`])}\n cx={shiftX(centerX, radius, position)}\n cy={shiftY(centerY, radius, position)}\n r={radius}\n stroke=\"transparent\"\n fill=\"transparent\"\n />\n );\n}\n","// Reconnectable edges have a anchors around their handles to reconnect the edge.\nimport {\n XYHandle,\n type EdgePosition,\n type FinalConnectionState,\n type HandleType,\n type OnConnectStart,\n type Connection,\n} from '@xyflow/system';\n\nimport { EdgeAnchor } from '../Edges/EdgeAnchor';\nimport type { EdgeWrapperProps, Edge } from '../../types/edges';\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\n\ntype EdgeUpdateAnchorsProps<EdgeType extends Edge = Edge> = {\n edge: EdgeType;\n isReconnectable: boolean | 'source' | 'target';\n reconnectRadius: EdgeWrapperProps['reconnectRadius'];\n onReconnect: EdgeWrapperProps<EdgeType>['onReconnect'];\n onReconnectStart: EdgeWrapperProps<EdgeType>['onReconnectStart'];\n onReconnectEnd: EdgeWrapperProps<EdgeType>['onReconnectEnd'];\n setUpdateHover: (hover: boolean) => void;\n setReconnecting: (updating: boolean) => void;\n} & EdgePosition;\n\nexport function EdgeUpdateAnchors<EdgeType extends Edge = Edge>({\n isReconnectable,\n reconnectRadius,\n edge,\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition,\n onReconnect,\n onReconnectStart,\n onReconnectEnd,\n setReconnecting,\n setUpdateHover,\n}: EdgeUpdateAnchorsProps<EdgeType>) {\n const { optionsStore, viewportStore, connectionStore, nodesStore } = useReactFlowStoreApi();\n\n const handleEdgeUpdater = (\n event: React.MouseEvent<SVGGElement, MouseEvent>,\n oppositeHandle: { nodeId: string; id: string | null; type: HandleType }\n ) => {\n // avoid triggering edge updater if mouse btn is not left\n if (event.button !== 0) {\n return;\n }\n\n const {\n autoPanOnConnect,\n domNode,\n connectionMode,\n connectionRadius,\n onConnectStart,\n cancelConnection,\n rfId: flowId,\n panBy,\n updateConnection,\n } = optionsStore.getState();\n const { nodeLookup } = nodesStore.getState();\n const isTarget = oppositeHandle.type === 'target';\n\n const _onReconnectEnd = (evt: MouseEvent | TouchEvent, connectionState: FinalConnectionState) => {\n setReconnecting(false);\n onReconnectEnd?.(evt, edge, oppositeHandle.type, connectionState);\n };\n\n const onConnectEdge = (connection: Connection) => onReconnect?.(edge, connection);\n const _onConnectStart: OnConnectStart = (_event, params) => {\n setReconnecting(true);\n onReconnectStart?.(event, edge, oppositeHandle.type);\n onConnectStart?.(_event, params);\n };\n\n XYHandle.onPointerDown(event.nativeEvent, {\n autoPanOnConnect,\n connectionMode,\n connectionRadius,\n domNode,\n handleId: oppositeHandle.id,\n nodeId: oppositeHandle.nodeId,\n nodeLookup,\n isTarget,\n edgeUpdaterType: oppositeHandle.type,\n lib: 'react',\n flowId,\n cancelConnection,\n panBy,\n isValidConnection: (...args) => optionsStore.getState().isValidConnection?.(...args) ?? true,\n onConnect: onConnectEdge,\n onConnectStart: _onConnectStart,\n onConnectEnd: (...args) => optionsStore.getState().onConnectEnd?.(...args),\n onReconnectEnd: _onReconnectEnd,\n updateConnection,\n getTransform: () => viewportStore.getState().transform,\n getFromHandle: () => connectionStore.getState().connection.fromHandle,\n dragThreshold: optionsStore.getState().connectionDragThreshold,\n handleDomNode: event.currentTarget,\n });\n };\n\n const onReconnectSourceMouseDown = (event: React.MouseEvent<SVGGElement, MouseEvent>): void =>\n handleEdgeUpdater(event, { nodeId: edge.target, id: edge.targetHandle ?? null, type: 'target' });\n const onReconnectTargetMouseDown = (event: React.MouseEvent<SVGGElement, MouseEvent>): void =>\n handleEdgeUpdater(event, { nodeId: edge.source, id: edge.sourceHandle ?? null, type: 'source' });\n const onReconnectMouseEnter = () => setUpdateHover(true);\n const onReconnectMouseOut = () => setUpdateHover(false);\n\n return (\n <>\n {(isReconnectable === true || isReconnectable === 'source') && (\n <EdgeAnchor\n position={sourcePosition}\n centerX={sourceX}\n centerY={sourceY}\n radius={reconnectRadius}\n onMouseDown={onReconnectSourceMouseDown}\n onMouseEnter={onReconnectMouseEnter}\n onMouseOut={onReconnectMouseOut}\n type=\"source\"\n />\n )}\n {(isReconnectable === true || isReconnectable === 'target') && (\n <EdgeAnchor\n position={targetPosition}\n centerX={targetX}\n centerY={targetY}\n radius={reconnectRadius}\n onMouseDown={onReconnectTargetMouseDown}\n onMouseEnter={onReconnectMouseEnter}\n onMouseOut={onReconnectMouseOut}\n type=\"target\"\n />\n )}\n </>\n );\n}\n","import { useState, useRef, useMemo, type KeyboardEvent, JSX, memo } from 'react';\nimport cc from 'classcat';\nimport {\n getMarkerId,\n elementSelectionKeys,\n getEdgePosition,\n errorMessages,\n getElevatedEdgeZIndex,\n} from '@xyflow/system';\n\nimport { useInternalNode } from '../../hooks/useNodes';\nimport { useEdge } from '../../hooks/useEdges';\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { ARIA_EDGE_DESC_KEY } from '../A11yDescriptions';\nimport { builtinEdgeTypes, nullPosition } from './utils';\nimport { EdgeUpdateAnchors } from './EdgeUpdateAnchors';\nimport type { Edge, EdgeWrapperProps } from '../../types';\n\nfunction EdgeWrapper<EdgeType extends Edge = Edge>({\n id,\n edgesFocusable,\n edgesReconnectable,\n elementsSelectable,\n onClick,\n onDoubleClick,\n onContextMenu,\n onMouseEnter,\n onMouseMove,\n onMouseLeave,\n reconnectRadius,\n onReconnect,\n onReconnectStart,\n onReconnectEnd,\n rfId,\n edgeTypes,\n noPanClassName,\n onError,\n disableKeyboardA11y,\n connectionMode,\n elevateEdgesOnSelect,\n zIndexMode,\n defaultEdgeOptions,\n}: EdgeWrapperProps<EdgeType>): JSX.Element | null {\n let edge = useEdge<EdgeType>(id)!;\n\n edge = defaultEdgeOptions ? { ...defaultEdgeOptions, ...edge } : edge;\n\n let edgeType = edge.type || 'default';\n let EdgeComponent = edgeTypes?.[edgeType] || builtinEdgeTypes[edgeType];\n\n if (EdgeComponent === undefined) {\n onError?.('011', errorMessages['error011'](edgeType));\n edgeType = 'default';\n EdgeComponent = edgeTypes?.['default'] || builtinEdgeTypes.default;\n }\n\n const isFocusable = !!(edge.focusable || (edgesFocusable && typeof edge.focusable === 'undefined'));\n const isReconnectable =\n typeof onReconnect !== 'undefined' &&\n (edge.reconnectable || (edgesReconnectable && typeof edge.reconnectable === 'undefined'));\n const isSelectable = !!(edge.selectable || (elementsSelectable && typeof edge.selectable === 'undefined'));\n\n const edgeRef = useRef<SVGGElement>(null);\n const [updateHover, setUpdateHover] = useState<boolean>(false);\n const [reconnecting, setReconnecting] = useState<boolean>(false);\n const { optionsStore } = useReactFlowStoreApi();\n\n const sourceNode = useInternalNode(edge.source);\n const targetNode = useInternalNode(edge.target);\n\n const defaultZIndex = edge.zIndex;\n const {\n zIndex = defaultZIndex,\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourcePosition,\n targetPosition,\n } = useMemo(() => {\n if (!sourceNode || !targetNode) {\n return nullPosition;\n }\n\n const edgePosition = getEdgePosition({\n id,\n sourceNode,\n targetNode,\n sourceHandle: edge.sourceHandle || null,\n targetHandle: edge.targetHandle || null,\n connectionMode,\n onError,\n });\n\n const zIndex = getElevatedEdgeZIndex({\n selected: edge.selected,\n zIndex: edge.zIndex,\n sourceNode,\n targetNode,\n elevateOnSelect: elevateEdgesOnSelect,\n zIndexMode,\n });\n\n return {\n ...(edgePosition || nullPosition),\n zIndex,\n };\n }, [sourceNode, targetNode, edge, id, onError, connectionMode, elevateEdgesOnSelect, zIndexMode]);\n\n const markerStartUrl = edge.markerStart ? `url('#${getMarkerId(edge.markerStart, rfId)}')` : undefined;\n\n const markerEndUrl = edge.markerEnd ? `url('#${getMarkerId(edge.markerEnd, rfId)}')` : undefined;\n\n if (edge.hidden || sourceX === null || sourceY === null || targetX === null || targetY === null) {\n return null;\n }\n\n const onEdgeClick = (event: React.MouseEvent<SVGGElement, MouseEvent>): void => {\n const { addSelectedEdges, unselectNodesAndEdges, multiSelectionActive, nodesSelectionActive } =\n optionsStore.getState();\n\n if (isSelectable) {\n if (nodesSelectionActive) {\n optionsStore.setState({ nodesSelectionActive: false });\n }\n\n if (edge.selected && multiSelectionActive) {\n unselectNodesAndEdges({ nodes: [], edges: [edge] });\n edgeRef.current?.blur();\n } else {\n addSelectedEdges([id]);\n }\n }\n\n if (onClick) {\n onClick(event, edge);\n }\n };\n\n const onEdgeDoubleClick = onDoubleClick\n ? (event: React.MouseEvent) => {\n onDoubleClick(event, { ...edge });\n }\n : undefined;\n const onEdgeContextMenu = onContextMenu\n ? (event: React.MouseEvent) => {\n onContextMenu(event, { ...edge });\n }\n : undefined;\n const onEdgeMouseEnter = onMouseEnter\n ? (event: React.MouseEvent) => {\n onMouseEnter(event, { ...edge });\n }\n : undefined;\n const onEdgeMouseMove = onMouseMove\n ? (event: React.MouseEvent) => {\n onMouseMove(event, { ...edge });\n }\n : undefined;\n const onEdgeMouseLeave = onMouseLeave\n ? (event: React.MouseEvent) => {\n onMouseLeave(event, { ...edge });\n }\n : undefined;\n\n const onKeyDown = (event: KeyboardEvent) => {\n if (!disableKeyboardA11y && elementSelectionKeys.includes(event.key) && isSelectable) {\n const { unselectNodesAndEdges, addSelectedEdges } = optionsStore.getState();\n const unselect = event.key === 'Escape';\n\n if (unselect) {\n edgeRef.current?.blur();\n unselectNodesAndEdges({ edges: [edge] });\n } else {\n addSelectedEdges([id]);\n }\n }\n };\n\n return (\n <svg style={{ zIndex }}>\n <g\n className={cc([\n 'react-flow__edge',\n `react-flow__edge-${edgeType}`,\n edge.className,\n noPanClassName,\n {\n selected: edge.selected,\n animated: edge.animated,\n inactive: !isSelectable && !onClick,\n updating: updateHover,\n selectable: isSelectable,\n },\n ])}\n onClick={onEdgeClick}\n onDoubleClick={onEdgeDoubleClick}\n onContextMenu={onEdgeContextMenu}\n onMouseEnter={onEdgeMouseEnter}\n onMouseMove={onEdgeMouseMove}\n onMouseLeave={onEdgeMouseLeave}\n onKeyDown={isFocusable ? onKeyDown : undefined}\n tabIndex={isFocusable ? 0 : undefined}\n role={edge.ariaRole ?? (isFocusable ? 'group' : 'img')}\n aria-roledescription=\"edge\"\n data-id={id}\n data-testid={`rf__edge-${id}`}\n aria-label={\n edge.ariaLabel === null ? undefined : edge.ariaLabel || `Edge from ${edge.source} to ${edge.target}`\n }\n aria-describedby={isFocusable ? `${ARIA_EDGE_DESC_KEY}-${rfId}` : undefined}\n ref={edgeRef}\n {...edge.domAttributes}\n >\n {!reconnecting && (\n <EdgeComponent\n id={id}\n source={edge.source}\n target={edge.target}\n type={edge.type}\n selected={edge.selected}\n animated={edge.animated}\n selectable={isSelectable}\n deletable={edge.deletable ?? true}\n label={edge.label}\n labelStyle={edge.labelStyle}\n labelShowBg={edge.labelShowBg}\n labelBgStyle={edge.labelBgStyle}\n labelBgPadding={edge.labelBgPadding}\n labelBgBorderRadius={edge.labelBgBorderRadius}\n sourceX={sourceX}\n sourceY={sourceY}\n targetX={targetX}\n targetY={targetY}\n sourcePosition={sourcePosition}\n targetPosition={targetPosition}\n data={edge.data}\n style={edge.style}\n sourceHandleId={edge.sourceHandle}\n targetHandleId={edge.targetHandle}\n markerStart={markerStartUrl}\n markerEnd={markerEndUrl}\n pathOptions={'pathOptions' in edge ? edge.pathOptions : undefined}\n interactionWidth={edge.interactionWidth}\n />\n )}\n {isReconnectable && (\n <EdgeUpdateAnchors<EdgeType>\n edge={edge}\n isReconnectable={isReconnectable}\n reconnectRadius={reconnectRadius}\n onReconnect={onReconnect}\n onReconnectStart={onReconnectStart}\n onReconnectEnd={onReconnectEnd}\n sourceX={sourceX}\n sourceY={sourceY}\n targetX={targetX}\n targetY={targetY}\n sourcePosition={sourcePosition}\n targetPosition={targetPosition}\n setUpdateHover={setUpdateHover}\n setReconnecting={setReconnecting}\n />\n )}\n </g>\n </svg>\n );\n}\n\n// The compiler caches the edges list as a whole. Keep per-edge bailouts when that list changes.\nexport default memo(EdgeWrapper) as typeof EdgeWrapper;\n","import { memo, ReactNode } from 'react';\n\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\nimport { useVisibleEdgeIds } from '../../hooks/useVisibleEdgeIds';\nimport MarkerDefinitions from './MarkerDefinitions';\nimport { GraphViewProps } from '../GraphView';\nimport EdgeWrapper from '../../components/EdgeWrapper';\nimport type { Edge, Node } from '../../types';\n\ntype EdgeRendererProps<EdgeType extends Edge = Edge> = Pick<\n GraphViewProps<Node, EdgeType>,\n | 'onEdgeClick'\n | 'onEdgeDoubleClick'\n | 'defaultMarkerColor'\n | 'onlyRenderVisibleElements'\n | 'onReconnect'\n | 'onEdgeContextMenu'\n | 'onEdgeMouseEnter'\n | 'onEdgeMouseMove'\n | 'onEdgeMouseLeave'\n | 'onReconnectStart'\n | 'onReconnectEnd'\n | 'reconnectRadius'\n | 'noPanClassName'\n | 'rfId'\n | 'disableKeyboardA11y'\n | 'edgeTypes'\n> & {\n children?: ReactNode;\n};\n\nfunction EdgeRendererComponent<EdgeType extends Edge = Edge>({\n defaultMarkerColor,\n onlyRenderVisibleElements,\n rfId,\n edgeTypes,\n noPanClassName,\n onReconnect,\n onEdgeContextMenu,\n onEdgeMouseEnter,\n onEdgeMouseMove,\n onEdgeMouseLeave,\n onEdgeClick,\n reconnectRadius,\n onEdgeDoubleClick,\n onReconnectStart,\n onReconnectEnd,\n disableKeyboardA11y,\n}: EdgeRendererProps<EdgeType>) {\n const edgesFocusable = useOptionsStore((s) => s.edgesFocusable);\n const edgesReconnectable = useOptionsStore((s) => s.edgesReconnectable);\n const elementsSelectable = useOptionsStore((s) => s.elementsSelectable);\n const onError = useOptionsStore((s) => s.onError);\n const connectionMode = useOptionsStore((s) => s.connectionMode);\n const elevateEdgesOnSelect = useOptionsStore((s) => s.elevateEdgesOnSelect);\n const zIndexMode = useOptionsStore((s) => s.zIndexMode);\n const defaultEdgeOptions = useOptionsStore((s) => s.defaultEdgeOptions);\n\n const edgeIds = useVisibleEdgeIds(onlyRenderVisibleElements);\n\n return (\n <div className=\"react-flow__edges\">\n <MarkerDefinitions defaultColor={defaultMarkerColor} rfId={rfId} onError={onError} />\n\n {edgeIds.map((id) => {\n return (\n <EdgeWrapper<EdgeType>\n key={id}\n id={id}\n edgesFocusable={edgesFocusable}\n edgesReconnectable={edgesReconnectable}\n elementsSelectable={elementsSelectable}\n noPanClassName={noPanClassName}\n onReconnect={onReconnect}\n onContextMenu={onEdgeContextMenu}\n onMouseEnter={onEdgeMouseEnter}\n onMouseMove={onEdgeMouseMove}\n onMouseLeave={onEdgeMouseLeave}\n onClick={onEdgeClick}\n reconnectRadius={reconnectRadius}\n onDoubleClick={onEdgeDoubleClick}\n onReconnectStart={onReconnectStart}\n onReconnectEnd={onReconnectEnd}\n rfId={rfId}\n onError={onError}\n edgeTypes={edgeTypes}\n disableKeyboardA11y={disableKeyboardA11y}\n connectionMode={connectionMode}\n elevateEdgesOnSelect={elevateEdgesOnSelect}\n zIndexMode={zIndexMode}\n defaultEdgeOptions={defaultEdgeOptions}\n />\n );\n })}\n </div>\n );\n}\n\nEdgeRendererComponent.displayName = 'EdgeRenderer';\n\nexport const EdgeRenderer = memo(EdgeRendererComponent) as typeof EdgeRendererComponent;\n","import { useRef, useState, type ReactNode } from 'react';\nimport type { Transform } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect';\n\nconst toTransformString = (transform: Transform) =>\n `translate(${transform[0]}px,${transform[1]}px) scale(${transform[2]})`;\n\ntype ViewportProps = {\n children: ReactNode;\n};\n\nexport function Viewport({ children }: ViewportProps) {\n const { viewportStore } = useReactFlowStoreApi();\n const viewportRef = useRef<HTMLDivElement>(null);\n // seed the transform for first paint and SSR without subscribing, so we don't re-render on pan/zoom\n const [initialTransform] = useState(() => viewportStore.getState().transform);\n\n // transform changes every pan/zoom frame, so write it to the DOM directly to keep React out of the hot path\n useIsomorphicLayoutEffect(() => {\n let prevTransform: Transform | null = null;\n\n const applyTransform = () => {\n const transform = viewportStore.getState().transform;\n\n // viewportStore.subscribe fires on every update, so only touch the DOM when x, y or zoom actually changed\n if (\n prevTransform &&\n transform[0] === prevTransform[0] &&\n transform[1] === prevTransform[1] &&\n transform[2] === prevTransform[2]\n ) {\n return;\n }\n\n prevTransform = transform;\n\n if (viewportRef.current) {\n viewportRef.current.style.transform = toTransformString(transform);\n }\n };\n\n applyTransform();\n\n return viewportStore.subscribe(applyTransform);\n }, [viewportStore]);\n\n return (\n <div\n ref={viewportRef}\n className=\"react-flow__viewport xyflow__viewport react-flow__container\"\n style={{ transform: toTransformString(initialTransform) }}\n >\n {children}\n </div>\n );\n}\n","import { useEffect, useRef } from 'react';\n\nimport { useReactFlow } from './useReactFlow';\nimport type { OnInit, Node, Edge } from '../types';\n\n/**\n * Hook for calling onInit handler.\n *\n * @internal\n */\nexport function useOnInitHandler<NodeType extends Node = Node, EdgeType extends Edge = Edge>(\n onInit: OnInit<NodeType, EdgeType> | undefined\n) {\n const rfInstance = useReactFlow<NodeType, EdgeType>();\n const isInitialized = useRef<boolean>(false);\n\n useEffect(() => {\n if (!isInitialized.current && rfInstance.viewportInitialized && onInit) {\n setTimeout(() => onInit(rfInstance), 1);\n isInitialized.current = true;\n }\n }, [onInit, rfInstance.viewportInitialized]);\n}\n","import { useEffect } from 'react';\nimport type { Viewport } from '@xyflow/system';\n\nimport { useOptionsStore, useReactFlowStoreApi } from './useReactFlowStore';\n\n/**\n * Hook for syncing the viewport with the panzoom instance.\n *\n * @internal\n * @param viewport\n */\nexport function useViewportSync(viewport?: Viewport) {\n const panZoom = useOptionsStore((s) => s.panZoom);\n const syncViewport = panZoom?.syncViewport;\n const { viewportStore } = useReactFlowStoreApi();\n\n useEffect(() => {\n if (viewport) {\n syncViewport?.(viewport);\n viewportStore.setState({ transform: [viewport.x, viewport.y, viewport.zoom] });\n }\n }, [viewport, syncViewport, viewportStore]);\n\n return null;\n}\n","import { CSSProperties } from 'react';\nimport cc from 'classcat';\nimport {\n ConnectionLineType,\n getBezierPath,\n getSmoothStepPath,\n getConnectionStatus,\n getStraightPath,\n} from '@xyflow/system';\n\nimport { useOptionsStore, useConnectionStore, useViewportStore } from '../../hooks/useReactFlowStore';\nimport { getSimpleBezierPath } from '../Edges/SimpleBezierEdge';\nimport type { ConnectionLineComponent, Node } from '../../types';\nimport { useConnection } from '../../hooks/useConnection';\n\ntype ConnectionLineWrapperProps<NodeType extends Node = Node> = {\n type: ConnectionLineType;\n component?: ConnectionLineComponent<NodeType>;\n containerStyle?: CSSProperties;\n style?: CSSProperties;\n};\n\nexport function ConnectionLineWrapper<NodeType extends Node = Node>({\n containerStyle,\n style,\n type,\n component,\n}: ConnectionLineWrapperProps<NodeType>) {\n const nodesConnectable = useOptionsStore((s) => s.nodesConnectable);\n // Viewport movement must not wake the wrapper when its dimensions are unchanged.\n const width = useViewportStore((s) => s.width);\n const height = useViewportStore((s) => s.height);\n const {\n connection: { isValid, inProgress },\n } = useConnectionStore();\n const renderConnection = !!(width && nodesConnectable && inProgress);\n\n if (!renderConnection) {\n return null;\n }\n\n return (\n <svg\n style={containerStyle}\n width={width}\n height={height}\n className=\"react-flow__connectionline react-flow__container\"\n >\n <g className={cc(['react-flow__connection', getConnectionStatus(isValid)])}>\n <ConnectionLine<NodeType> style={style} type={type} CustomComponent={component} isValid={isValid} />\n </g>\n </svg>\n );\n}\n\ntype ConnectionLineProps<NodeType extends Node = Node> = {\n type: ConnectionLineType;\n style?: CSSProperties;\n CustomComponent?: ConnectionLineComponent<NodeType>;\n isValid: boolean | null;\n};\n\nconst ConnectionLine = <NodeType extends Node = Node>({\n style,\n type = ConnectionLineType.Bezier,\n CustomComponent,\n isValid,\n}: ConnectionLineProps<NodeType>) => {\n const { inProgress, from, fromNode, fromHandle, fromPosition, to, toNode, toHandle, toPosition, pointer } =\n useConnection<NodeType>();\n\n if (!inProgress) {\n return;\n }\n\n if (CustomComponent) {\n return (\n <CustomComponent\n connectionLineType={type}\n connectionLineStyle={style}\n fromNode={fromNode}\n fromHandle={fromHandle}\n fromX={from.x}\n fromY={from.y}\n toX={to.x}\n toY={to.y}\n fromPosition={fromPosition}\n toPosition={toPosition}\n connectionStatus={getConnectionStatus(isValid)}\n toNode={toNode}\n toHandle={toHandle}\n pointer={pointer}\n />\n );\n }\n\n let path: string;\n\n const pathParams = {\n sourceX: from.x,\n sourceY: from.y,\n sourcePosition: fromPosition,\n targetX: to.x,\n targetY: to.y,\n targetPosition: toPosition,\n };\n\n switch (type) {\n case ConnectionLineType.Bezier:\n [path] = getBezierPath(pathParams);\n break;\n case ConnectionLineType.SimpleBezier:\n [path] = getSimpleBezierPath(pathParams);\n break;\n case ConnectionLineType.Step:\n [path] = getSmoothStepPath({\n ...pathParams,\n borderRadius: 0,\n });\n break;\n case ConnectionLineType.SmoothStep:\n [path] = getSmoothStepPath(pathParams);\n break;\n default:\n [path] = getStraightPath(pathParams);\n }\n\n return <path d={path} fill=\"none\" className=\"react-flow__connection-path\" style={style} />;\n};\n\nConnectionLine.displayName = 'ConnectionLine';\n","import { useEffect, useRef } from 'react';\nimport { errorMessages } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport type { EdgeTypes, NodeTypes } from '../../types';\n\nconst emptyTypes = {};\n\n/**\n * This hook warns the user if nodeTypes or edgeTypes changed.\n * It is only used in development mode.\n *\n * @internal\n */\nexport function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes?: NodeTypes): void;\nexport function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes?: EdgeTypes): void;\nexport function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes: NodeTypes | EdgeTypes = emptyTypes): void {\n const typesRef = useRef(nodeOrEdgeTypes);\n const { optionsStore } = useReactFlowStoreApi();\n\n useEffect(() => {\n if (process.env.NODE_ENV === 'development') {\n const usedKeys = new Set([...Object.keys(typesRef.current), ...Object.keys(nodeOrEdgeTypes)]);\n\n for (const key of usedKeys) {\n if (typesRef.current[key] !== nodeOrEdgeTypes[key]) {\n optionsStore.getState().onError?.('002', errorMessages['error002']());\n break;\n }\n }\n\n typesRef.current = nodeOrEdgeTypes;\n }\n }, [nodeOrEdgeTypes]);\n}\n","import { useEffect, useRef } from 'react';\nimport { errorMessages } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\n\nexport function useStylesLoadedWarning() {\n const { optionsStore } = useReactFlowStoreApi();\n const checked = useRef(false);\n\n useEffect(() => {\n if (process.env.NODE_ENV === 'development') {\n if (!checked.current) {\n const pane = document.querySelector('.react-flow__pane');\n\n if (pane && !(window.getComputedStyle(pane).zIndex === '1')) {\n optionsStore.getState().onError?.('013', errorMessages['error013']('react'));\n }\n\n checked.current = true;\n }\n }\n }, []);\n}\n","import { memo } from 'react';\n\nimport { FlowRenderer } from '../FlowRenderer';\nimport { NodeRenderer } from '../NodeRenderer';\nimport { EdgeRenderer } from '../EdgeRenderer';\nimport { Viewport } from '../Viewport';\nimport { useOnInitHandler } from '../../hooks/useOnInitHandler';\nimport { useViewportSync } from '../../hooks/useViewportSync';\nimport { ConnectionLineWrapper } from '../../components/ConnectionLine';\nimport { useNodeOrEdgeTypesWarning } from './useNodeOrEdgeTypesWarning';\nimport type { Edge, Node, ReactFlowProps } from '../../types';\nimport { useStylesLoadedWarning } from './useStylesLoadedWarning';\n\nexport type GraphViewProps<NodeType extends Node = Node, EdgeType extends Edge = Edge> = Omit<\n ReactFlowProps<NodeType, EdgeType>,\n 'onSelectionChange' | 'nodes' | 'edges' | 'onMove' | 'onMoveStart' | 'onMoveEnd' | 'elevateEdgesOnSelect'\n> &\n Required<\n Pick<\n ReactFlowProps<NodeType, EdgeType>,\n | 'selectionKeyCode'\n | 'deleteKeyCode'\n | 'multiSelectionKeyCode'\n | 'connectionLineType'\n | 'onlyRenderVisibleElements'\n | 'translateExtent'\n | 'minZoom'\n | 'maxZoom'\n | 'defaultMarkerColor'\n | 'noDragClassName'\n | 'noWheelClassName'\n | 'noPanClassName'\n | 'defaultViewport'\n | 'disableKeyboardA11y'\n | 'paneDragThreshold'\n >\n > & {\n rfId: string;\n };\n\nfunction GraphViewComponent<NodeType extends Node = Node, EdgeType extends Edge = Edge>({\n nodeTypes,\n edgeTypes,\n onInit,\n onNodeClick,\n onEdgeClick,\n onNodeDoubleClick,\n onEdgeDoubleClick,\n onNodeMouseEnter,\n onNodeMouseMove,\n onNodeMouseLeave,\n onNodeContextMenu,\n onSelectionContextMenu,\n onSelectionStart,\n onSelectionEnd,\n connectionLineType,\n connectionLineStyle,\n connectionLineComponent,\n connectionLineContainerStyle,\n selectionKeyCode,\n selectionOnDrag,\n selectionMode,\n multiSelectionKeyCode,\n panActivationKeyCode,\n zoomActivationKeyCode,\n deleteKeyCode,\n onlyRenderVisibleElements,\n elementsSelectable,\n defaultViewport,\n translateExtent,\n minZoom,\n maxZoom,\n preventScrolling,\n defaultMarkerColor,\n zoomOnScroll,\n zoomOnPinch,\n panOnScroll,\n panOnScrollSpeed,\n panOnScrollMode,\n zoomOnDoubleClick,\n panOnDrag,\n autoPanOnSelection,\n onPaneClick,\n onPaneMouseEnter,\n onPaneMouseMove,\n onPaneMouseLeave,\n onPaneScroll,\n onPaneContextMenu,\n paneDragThreshold,\n onEdgeContextMenu,\n onEdgeMouseEnter,\n onEdgeMouseMove,\n onEdgeMouseLeave,\n reconnectRadius,\n onReconnect,\n onReconnectStart,\n onReconnectEnd,\n noDragClassName,\n noWheelClassName,\n noPanClassName,\n disableKeyboardA11y,\n nodeExtent,\n rfId,\n viewport,\n onViewportChange,\n nodesDraggable,\n}: GraphViewProps<NodeType, EdgeType>) {\n useNodeOrEdgeTypesWarning(nodeTypes);\n useNodeOrEdgeTypesWarning(edgeTypes);\n useStylesLoadedWarning();\n\n useOnInitHandler(onInit);\n useViewportSync(viewport);\n\n return (\n <FlowRenderer<NodeType>\n onPaneClick={onPaneClick}\n onPaneMouseEnter={onPaneMouseEnter}\n onPaneMouseMove={onPaneMouseMove}\n onPaneMouseLeave={onPaneMouseLeave}\n onPaneContextMenu={onPaneContextMenu}\n onPaneScroll={onPaneScroll}\n paneDragThreshold={paneDragThreshold}\n deleteKeyCode={deleteKeyCode}\n selectionKeyCode={selectionKeyCode}\n selectionOnDrag={selectionOnDrag}\n selectionMode={selectionMode}\n onSelectionStart={onSelectionStart}\n onSelectionEnd={onSelectionEnd}\n multiSelectionKeyCode={multiSelectionKeyCode}\n panActivationKeyCode={panActivationKeyCode}\n zoomActivationKeyCode={zoomActivationKeyCode}\n elementsSelectable={elementsSelectable}\n zoomOnScroll={zoomOnScroll}\n zoomOnPinch={zoomOnPinch}\n zoomOnDoubleClick={zoomOnDoubleClick}\n panOnScroll={panOnScroll}\n panOnScrollSpeed={panOnScrollSpeed}\n panOnScrollMode={panOnScrollMode}\n panOnDrag={panOnDrag}\n autoPanOnSelection={autoPanOnSelection}\n defaultViewport={defaultViewport}\n translateExtent={translateExtent}\n minZoom={minZoom}\n maxZoom={maxZoom}\n onSelectionContextMenu={onSelectionContextMenu}\n preventScrolling={preventScrolling}\n noDragClassName={noDragClassName}\n noWheelClassName={noWheelClassName}\n noPanClassName={noPanClassName}\n disableKeyboardA11y={disableKeyboardA11y}\n onViewportChange={onViewportChange}\n isControlledViewport={!!viewport}\n >\n <Viewport>\n <EdgeRenderer<EdgeType>\n edgeTypes={edgeTypes}\n onEdgeClick={onEdgeClick}\n onEdgeDoubleClick={onEdgeDoubleClick}\n onReconnect={onReconnect}\n onReconnectStart={onReconnectStart}\n onReconnectEnd={onReconnectEnd}\n onlyRenderVisibleElements={onlyRenderVisibleElements}\n onEdgeContextMenu={onEdgeContextMenu}\n onEdgeMouseEnter={onEdgeMouseEnter}\n onEdgeMouseMove={onEdgeMouseMove}\n onEdgeMouseLeave={onEdgeMouseLeave}\n reconnectRadius={reconnectRadius}\n defaultMarkerColor={defaultMarkerColor}\n noPanClassName={noPanClassName}\n disableKeyboardA11y={disableKeyboardA11y}\n rfId={rfId}\n />\n <ConnectionLineWrapper<NodeType>\n style={connectionLineStyle}\n type={connectionLineType}\n component={connectionLineComponent}\n containerStyle={connectionLineContainerStyle}\n />\n <div className=\"react-flow__edgelabel-renderer\" />\n <NodeRenderer<NodeType>\n nodeTypes={nodeTypes}\n onNodeClick={onNodeClick}\n onNodeDoubleClick={onNodeDoubleClick}\n onNodeMouseEnter={onNodeMouseEnter}\n onNodeMouseMove={onNodeMouseMove}\n onNodeMouseLeave={onNodeMouseLeave}\n onNodeContextMenu={onNodeContextMenu}\n onlyRenderVisibleElements={onlyRenderVisibleElements}\n noPanClassName={noPanClassName}\n noDragClassName={noDragClassName}\n disableKeyboardA11y={disableKeyboardA11y}\n nodeExtent={nodeExtent}\n rfId={rfId}\n nodesDraggable={nodesDraggable}\n />\n <div className=\"react-flow__viewport-portal\" />\n </Viewport>\n </FlowRenderer>\n );\n}\n\nGraphViewComponent.displayName = 'GraphView';\n\nexport const GraphView = memo(GraphViewComponent) as typeof GraphViewComponent;\n","import { ConnectionState, HandleType } from '@xyflow/system';\n\ntype Listener = () => void;\ntype ListenerMap = Map<string, Set<Listener>>;\n\ntype HandleArgs = {\n nodeId: string;\n id?: string | null;\n type: HandleType;\n};\n\nfunction getHandleKey(handle: HandleArgs | null) {\n if (!handle) {\n return '';\n }\n return `${handle.nodeId}-${handle.id}-${handle.type}`;\n}\n\nfunction sameHandle(a: HandleArgs | null, b: HandleArgs | null) {\n return a === b || (a && b && a.nodeId === b.nodeId && a.id === b.id && a.type === b.type);\n}\n\nexport class PubSub {\n private nodeListeners: ListenerMap = new Map();\n private edgeListeners: ListenerMap = new Map();\n private handleListeners: ListenerMap = new Map();\n\n subscribeToNode(id: string, onStoreChange: Listener) {\n return this.subscribe(this.nodeListeners, id, onStoreChange);\n }\n\n subscribeToNodes(ids: readonly string[] | ReadonlySet<string>, onStoreChange: Listener) {\n const unsubscribes = Array.from(new Set(ids), (id) => this.subscribeToNode(id, onStoreChange));\n return () => unsubscribes.forEach((unsubscribe) => unsubscribe());\n }\n\n publishNodes(ids: Set<string>) {\n this.notify(this.nodeListeners, ids);\n }\n\n subscribeToEdge(id: string, onStoreChange: Listener) {\n return this.subscribe(this.edgeListeners, id, onStoreChange);\n }\n\n subscribeToEdges(ids: readonly string[] | ReadonlySet<string>, onStoreChange: Listener) {\n const unsubscribes = Array.from(new Set(ids), (id) => this.subscribeToEdge(id, onStoreChange));\n return () => unsubscribes.forEach((unsubscribe) => unsubscribe());\n }\n\n publishEdges(ids: Set<string>) {\n this.notify(this.edgeListeners, ids);\n }\n\n subscribeToConnectionForHandle(handle: HandleArgs, onStoreChange: Listener) {\n return this.subscribe(this.handleListeners, getHandleKey(handle), onStoreChange);\n }\n\n publishConnectionClickStart() {\n this.notifyAll(this.handleListeners);\n }\n\n publishConnection(previous: ConnectionState, connection: ConnectionState) {\n const notifyHandles = new Set<string>();\n\n if (!sameHandle(previous.fromHandle, connection.fromHandle)) {\n this.notifyAll(this.handleListeners);\n return;\n }\n\n // We notify all handles that have matched or will match directly\n notifyHandles.add(getHandleKey(previous.fromHandle));\n notifyHandles.add(getHandleKey(previous.toHandle));\n notifyHandles.add(getHandleKey(connection.fromHandle));\n notifyHandles.add(getHandleKey(connection.toHandle));\n\n // We remove the null handle that might have been added\n notifyHandles.delete(getHandleKey(null));\n this.notify(this.handleListeners, notifyHandles);\n }\n\n reset() {\n this.notifyAll(this.nodeListeners);\n this.notifyAll(this.edgeListeners);\n this.notifyAll(this.handleListeners);\n }\n\n private subscribe(listeners: ListenerMap, id: string, onStoreChange: Listener): () => void {\n let idListeners = listeners.get(id);\n\n if (!idListeners) {\n idListeners = new Set();\n listeners.set(id, idListeners);\n }\n\n idListeners.add(onStoreChange);\n\n return () => {\n idListeners.delete(onStoreChange);\n\n if (idListeners.size === 0) {\n listeners.delete(id);\n }\n };\n }\n\n private notify(listeners: ListenerMap, ids: Set<string>) {\n for (const id of ids) {\n const idListeners = listeners.get(id);\n\n if (!idListeners) {\n continue;\n }\n\n for (const listener of idListeners) {\n listener();\n }\n }\n }\n\n private notifyAll(listeners: ListenerMap) {\n for (const idListeners of listeners.values()) {\n for (const listener of idListeners) {\n listener();\n }\n }\n }\n}\n","import {\n infiniteExtent,\n ConnectionMode,\n adoptUserNodes,\n getViewportForBounds,\n Transform,\n updateConnectionLookup,\n createDevWarn,\n getInternalNodesBounds,\n NodeOrigin,\n initialConnection,\n CoordinateExtent,\n defaultAriaLabelConfig,\n defaultFitViewPadding,\n ZIndexMode,\n type ConnectionLookup,\n type EdgeLookup,\n type ParentLookup,\n} from '@xyflow/system';\n\nconst devWarn = createDevWarn('React Flow', 'https://reactflow.dev/');\n\nimport type {\n Edge,\n FitViewOptions,\n InternalNode,\n Node,\n ReactFlowStore,\n ViewportStore,\n ConnectionStore,\n NodesStore,\n EdgesStore,\n SelectionStore,\n} from '../types';\n\nimport { PubSub } from './pubsub';\n\nconst getInitialState = ({\n nodes,\n edges,\n defaultNodes,\n defaultEdges,\n width,\n height,\n fitView,\n fitViewOptions,\n minZoom = 0.5,\n maxZoom = 2,\n nodeOrigin,\n nodeExtent,\n zIndexMode = 'basic',\n}: {\n nodes?: Node[];\n edges?: Edge[];\n defaultNodes?: Node[];\n defaultEdges?: Edge[];\n width?: number;\n height?: number;\n fitView?: boolean;\n fitViewOptions?: FitViewOptions;\n minZoom?: number;\n maxZoom?: number;\n nodeOrigin?: NodeOrigin;\n nodeExtent?: CoordinateExtent;\n zIndexMode?: ZIndexMode;\n} = {}): {\n optionsStore: ReactFlowStore;\n viewportStore: ViewportStore;\n connectionStore: ConnectionStore;\n nodesStore: NodesStore;\n edgesStore: EdgesStore;\n selectionStore: SelectionStore;\n} => {\n const nodeLookup = new Map<string, InternalNode>();\n const parentLookup: ParentLookup<InternalNode> = new Map();\n const connectionLookup: ConnectionLookup = new Map();\n const edgeLookup: EdgeLookup<Edge> = new Map();\n\n const storeEdges = defaultEdges ?? edges ?? [];\n const storeNodes = defaultNodes ?? nodes ?? [];\n const storeNodeOrigin = nodeOrigin ?? [0, 0];\n const storeNodeExtent = nodeExtent ?? infiniteExtent;\n\n updateConnectionLookup(connectionLookup, edgeLookup, storeEdges);\n const { nodesInitialized } = adoptUserNodes(storeNodes, nodeLookup, parentLookup, {\n nodeOrigin: storeNodeOrigin,\n nodeExtent: storeNodeExtent,\n zIndexMode,\n });\n\n let transform: Transform = [0, 0, 1];\n\n if (fitView && width && height) {\n const bounds = getInternalNodesBounds(nodeLookup, {\n filter: (node) => !!((node.width || node.initialWidth) && (node.height || node.initialHeight)),\n });\n\n const { x, y, zoom } = getViewportForBounds(\n bounds,\n width,\n height,\n minZoom,\n maxZoom,\n fitViewOptions?.padding ?? defaultFitViewPadding\n );\n transform = [x, y, zoom];\n }\n\n return {\n optionsStore: {\n rfId: '1',\n onNodesChange: null,\n onEdgesChange: null,\n hasDefaultNodes: defaultNodes !== undefined,\n hasDefaultEdges: defaultEdges !== undefined,\n panZoom: null,\n minZoom,\n maxZoom,\n translateExtent: infiniteExtent,\n nodeExtent: storeNodeExtent,\n nodesSelectionActive: false,\n userSelectionActive: false,\n connectionMode: ConnectionMode.Strict,\n domNode: null,\n noPanClassName: 'nopan',\n nodeOrigin: storeNodeOrigin,\n nodeDragThreshold: 1,\n connectionDragThreshold: 1,\n snapGrid: [15, 15],\n snapToGrid: false,\n nodesDraggable: true,\n nodesConnectable: true,\n nodesFocusable: true,\n edgesFocusable: true,\n edgesReconnectable: true,\n elementsSelectable: true,\n elevateNodesOnSelect: true,\n elevateEdgesOnSelect: true,\n selectNodesOnDrag: true,\n multiSelectionActive: false,\n fitViewQueued: fitView ?? false,\n fitViewOptions,\n fitViewResolver: null,\n connectOnClick: true,\n ariaLiveMessage: '',\n autoPanOnConnect: true,\n autoPanOnNodeDrag: true,\n autoPanOnNodeFocus: true,\n autoPanSpeed: 15,\n connectionRadius: 20,\n onError: devWarn,\n isValidConnection: undefined,\n onSelectionChangeHandlers: [],\n debug: false,\n ariaLabelConfig: defaultAriaLabelConfig,\n zIndexMode,\n onNodesChangeMiddlewareMap: new Map(),\n onEdgesChangeMiddlewareMap: new Map(),\n pubSub: new PubSub(),\n\n defaultEdgeOptions: undefined,\n\n onNodesDelete: undefined,\n onEdgesDelete: undefined,\n onDelete: undefined,\n onBeforeDelete: undefined,\n\n onViewportChangeStart: undefined,\n onViewportChange: undefined,\n onViewportChangeEnd: undefined,\n\n onNodeDragStart: undefined,\n onNodeDrag: undefined,\n onNodeDragStop: undefined,\n\n onSelectionDragStart: undefined,\n onSelectionDrag: undefined,\n onSelectionDragStop: undefined,\n\n onMoveStart: undefined,\n onMove: undefined,\n onMoveEnd: undefined,\n\n onConnect: undefined,\n onConnectStart: undefined,\n onConnectEnd: undefined,\n\n onClickConnectStart: undefined,\n onClickConnectEnd: undefined,\n },\n viewportStore: {\n paneDragging: false,\n width: width ?? 0,\n height: height ?? 0,\n transform,\n },\n connectionStore: {\n connection: { ...initialConnection },\n connectionClickStartHandle: null,\n },\n nodesStore: {\n nodes: storeNodes,\n nodesInitialized,\n nodeLookup,\n parentLookup,\n },\n edgesStore: {\n edges: storeEdges,\n edgeLookup,\n connectionLookup,\n },\n selectionStore: {\n userSelectionRect: null,\n },\n };\n};\n\nexport default getInitialState;\n","import { createStore as createZustandStore } from 'zustand/vanilla';\nimport {\n adoptUserNodes,\n panBy as panBySystem,\n updateNodeInternals as updateNodeInternalsSystem,\n updateConnectionLookup,\n handleExpandParent,\n NodeChange,\n ParentExpandChild,\n initialConnection,\n fitViewport,\n getHandlePosition,\n Position,\n selectionChange,\n getSelectionChanges,\n SelectionChange,\n NodeChangeset,\n EdgeChangeset,\n pointToRendererPoint,\n type ConnectionState,\n type Transform,\n} from '@xyflow/system';\n\nimport getInitialState from './initialState';\nimport type {\n ReactFlowState,\n ViewportStore,\n ConnectionStore,\n NodesStore,\n EdgesStore,\n SelectionStore,\n Node,\n Edge,\n InternalNode,\n UnselectNodesAndEdgesParams,\n} from '../types';\n\nconst createStore = (options: Parameters<typeof getInitialState>[0]) => {\n const initialState = getInitialState(options);\n const viewportStore = createZustandStore<ViewportStore>(() => initialState.viewportStore);\n const connectionStore = createZustandStore<ConnectionStore>(() => initialState.connectionStore);\n const nodesStore = createZustandStore<NodesStore>(() => initialState.nodesStore);\n const edgesStore = createZustandStore<EdgesStore>(() => initialState.edgesStore);\n const selectionStore = createZustandStore<SelectionStore>(() => initialState.selectionStore);\n\n /*\n * XYHandle reports `to` in screen coordinates. We keep that raw connection internally and\n * derive the stored connection from it, with `to` in flow coordinates. The derived connection\n * is recalculated whenever the raw connection or the viewport changes.\n */\n let rawConnection: ConnectionState<InternalNode> = initialConnection;\n\n function deriveConnection(transform: Transform): ConnectionState<InternalNode> {\n return rawConnection.inProgress\n ? { ...rawConnection, to: pointToRendererPoint(rawConnection.to, transform) }\n : rawConnection;\n }\n\n function setRawConnection(connection: ConnectionState<InternalNode>) {\n const { connection: previousConnection } = connectionStore.getState();\n rawConnection = connection;\n const nextConnection = deriveConnection(viewportStore.getState().transform);\n connectionStore.setState({ connection: nextConnection });\n optionsStore.getState().pubSub.publishConnection(previousConnection, nextConnection);\n }\n\n viewportStore.subscribe(({ transform }, prevState) => {\n if (transform !== prevState.transform && rawConnection.inProgress) {\n connectionStore.setState({ connection: deriveConnection(transform) });\n }\n });\n\n const optionsStore = createZustandStore<ReactFlowState>((set, get) => {\n let latestFitViewId = 0;\n\n async function resolveFitView() {\n const { nodeLookup } = nodesStore.getState();\n const { panZoom, fitViewOptions, fitViewResolver, minZoom, maxZoom } = get();\n const { width, height } = viewportStore.getState();\n\n if (!panZoom) {\n return;\n }\n\n const fitViewId = ++latestFitViewId;\n\n const ended = await fitViewport(\n {\n nodes: nodeLookup,\n width,\n height,\n panZoom,\n minZoom,\n maxZoom,\n },\n fitViewOptions\n );\n\n /*\n * A newer fitView started while this one was running and settles the shared promise instead\n */\n if (fitViewId !== latestFitViewId) {\n return;\n }\n\n fitViewResolver?.resolve(ended);\n /**\n * wait for the fitViewport to resolve before deleting the resolver,\n * we want to reuse the old resolver if the user calls fitView again in the mean time\n */\n if (get().fitViewResolver === fitViewResolver) {\n set({ fitViewResolver: null });\n }\n }\n\n return {\n ...initialState.optionsStore,\n setNodes: (nodes: Node[]) => {\n const { nodeLookup, parentLookup } = nodesStore.getState();\n const {\n nodeOrigin,\n nodeExtent,\n elevateNodesOnSelect,\n fitViewQueued,\n zIndexMode,\n nodesSelectionActive,\n pubSub,\n } = get();\n\n /*\n * setNodes() is called exclusively in response to user actions:\n * - either when the `<ReactFlow nodes>` prop is updated in the controlled ReactFlow setup,\n * - or when the user calls something like `reactFlowInstance.setNodes()` in an uncontrolled ReactFlow setup.\n *\n * When this happens, we take the note objects passed by the user and extend them with fields\n * relevant for internal React Flow operations.\n */\n\n const { nodesInitialized, hasSelectedNodes, updatedNodes } = adoptUserNodes(nodes, nodeLookup, parentLookup, {\n nodeOrigin,\n nodeExtent,\n elevateNodesOnSelect,\n checkEquality: true,\n zIndexMode,\n });\n\n const nextNodesSelectionActive = nodesSelectionActive && hasSelectedNodes;\n\n if (fitViewQueued && nodesInitialized) {\n void resolveFitView();\n set({ fitViewQueued: false, fitViewOptions: undefined, nodesSelectionActive: nextNodesSelectionActive });\n } else if (nodesSelectionActive !== nextNodesSelectionActive) {\n set({ nodesSelectionActive: nextNodesSelectionActive });\n }\n\n nodesStore.setState({ nodes, nodesInitialized });\n pubSub.publishNodes(updatedNodes);\n },\n setEdges: (edges: Edge[]) => {\n const { connectionLookup, edgeLookup } = edgesStore.getState();\n\n const { updatedEdges } = updateConnectionLookup(connectionLookup, edgeLookup, edges);\n\n edgesStore.setState({ edges });\n get().pubSub.publishEdges(updatedEdges);\n },\n setDefaultNodesAndEdges: (nodes?: Node[], edges?: Edge[]) => {\n if (nodes) {\n const { setNodes } = get();\n setNodes(nodes);\n set({ hasDefaultNodes: true });\n }\n if (edges) {\n const { setEdges } = get();\n setEdges(edges);\n set({ hasDefaultEdges: true });\n }\n },\n /*\n * Every node gets registered at a ResizeObserver. Whenever a node\n * changes its dimensions, this function is called to measure the\n * new dimensions and update the nodes.\n */\n updateNodeInternals: (updates) => {\n const { emitNodeChanges, domNode, nodeOrigin, nodeExtent, fitViewQueued, zIndexMode, pubSub } = get();\n const { nodeLookup, parentLookup } = nodesStore.getState();\n\n const { changes, updatedInternals, updatedNodes } = updateNodeInternalsSystem(\n updates,\n nodeLookup,\n parentLookup,\n domNode,\n nodeOrigin,\n nodeExtent,\n zIndexMode\n );\n\n if (!updatedInternals) {\n return;\n }\n\n if (fitViewQueued) {\n void resolveFitView();\n set({ fitViewQueued: false, fitViewOptions: undefined });\n }\n\n // Internal measurements can change without changing the public nodes array.\n nodesStore.setState({});\n pubSub.publishNodes(updatedNodes);\n emitNodeChanges(changes);\n },\n updateNodePositions: (nodeDragItems, dragging = false) => {\n const parentExpandChildren: ParentExpandChild[] = [];\n let changes = [];\n const { nodeLookup } = nodesStore.getState();\n const { emitNodeChanges, onNodesChangeMiddlewareMap } = get();\n\n for (const [id, dragItem] of nodeDragItems) {\n // we are using the nodelookup to be sure to use the current expandParent and parentId value\n const node = nodeLookup.get(id);\n const expandParent = !!(node?.expandParent && node?.parentId && dragItem?.position);\n\n const change: NodeChange = {\n id,\n type: 'position',\n position: expandParent\n ? {\n x: Math.max(0, dragItem.position.x),\n y: Math.max(0, dragItem.position.y),\n }\n : dragItem.position,\n dragging,\n };\n\n if (node && rawConnection.inProgress && rawConnection.fromNode.id === node.id) {\n const updatedFrom = getHandlePosition(node, rawConnection.fromHandle, Position.Left, true);\n setRawConnection({ ...rawConnection, from: updatedFrom });\n }\n\n if (expandParent && node.parentId) {\n parentExpandChildren.push({\n id,\n parentId: node.parentId,\n rect: {\n ...dragItem.internals.positionAbsolute,\n width: dragItem.measured.width ?? 0,\n height: dragItem.measured.height ?? 0,\n },\n });\n }\n\n changes.push(change);\n }\n\n if (parentExpandChildren.length > 0) {\n const { parentLookup } = nodesStore.getState();\n const { nodeOrigin } = get();\n const parentExpandChanges = handleExpandParent(parentExpandChildren, nodeLookup, parentLookup, nodeOrigin);\n changes.push(...parentExpandChanges);\n }\n\n for (const middleware of onNodesChangeMiddlewareMap.values()) {\n changes = middleware(changes);\n }\n\n emitNodeChanges(changes);\n },\n emitNodeChanges: (changes) => {\n if (changes.length === 0) {\n return;\n }\n\n const { debug, onNodesChange, hasDefaultNodes } = get();\n const nodeChanges = new NodeChangeset(changes);\n\n if (debug) {\n console.log('React Flow: queue node changes', changes);\n }\n\n if (hasDefaultNodes) {\n const { nodes } = nodesStore.getState();\n const { setNodes } = get();\n const newNodes = nodeChanges.applyTo(nodes);\n setNodes(newNodes);\n }\n\n onNodesChange?.(nodeChanges);\n },\n emitEdgeChanges: (changes) => {\n if (changes.length === 0) {\n return;\n }\n\n const { debug, hasDefaultEdges, onEdgesChange } = get();\n const edgeChanges = new EdgeChangeset(changes);\n\n if (debug) {\n console.log('React Flow: queue edge changes', changes);\n }\n\n if (hasDefaultEdges) {\n const { setEdges } = get();\n const { edges } = edgesStore.getState();\n const newEdges = edgeChanges.applyTo(edges);\n setEdges(newEdges);\n }\n\n onEdgesChange?.(edgeChanges);\n },\n\n addSelectedNodes: (selectedNodeIds) => {\n const { multiSelectionActive, emitNodeChanges, emitEdgeChanges } = get();\n const { edgeLookup } = edgesStore.getState();\n const { nodeLookup } = nodesStore.getState();\n\n if (multiSelectionActive) {\n const nodeChanges = selectedNodeIds.map((nodeId) => selectionChange(nodeId, true));\n emitNodeChanges(nodeChanges);\n return;\n }\n\n emitNodeChanges(getSelectionChanges(nodeLookup, new Set([...selectedNodeIds])));\n emitEdgeChanges(getSelectionChanges(edgeLookup));\n },\n addSelectedEdges: (selectedEdgeIds) => {\n const { multiSelectionActive, emitNodeChanges, emitEdgeChanges } = get();\n const { edgeLookup } = edgesStore.getState();\n const { nodeLookup } = nodesStore.getState();\n\n if (multiSelectionActive) {\n const changedEdges = selectedEdgeIds.map((edgeId) => selectionChange(edgeId, true));\n emitEdgeChanges(changedEdges);\n return;\n }\n\n emitEdgeChanges(getSelectionChanges(edgeLookup, new Set([...selectedEdgeIds])));\n emitNodeChanges(getSelectionChanges(nodeLookup, new Set()));\n },\n unselectNodesAndEdges: ({ nodes, edges }: UnselectNodesAndEdgesParams = {}) => {\n const { edges: storeEdges } = edgesStore.getState();\n const { nodes: storeNodes } = nodesStore.getState();\n const { emitNodeChanges, emitEdgeChanges } = get();\n const nodesToUnselect = nodes ? nodes : storeNodes;\n const edgesToUnselect = edges ? edges : storeEdges;\n\n const nodeChanges: SelectionChange[] = [];\n\n for (const node of nodesToUnselect) {\n if (!node.selected) {\n continue; // skip changing nodes that are not selected\n }\n\n nodeChanges.push(selectionChange(node.id, false));\n }\n\n const edgeChanges: SelectionChange[] = [];\n\n for (const edge of edgesToUnselect) {\n if (!edge.selected) {\n continue; // skip changing edges that are not selected\n }\n\n edgeChanges.push(selectionChange(edge.id, false));\n }\n\n emitNodeChanges(nodeChanges);\n emitEdgeChanges(edgeChanges);\n },\n setMinZoom: (minZoom) => {\n const { panZoom, maxZoom } = get();\n panZoom?.setScaleExtent([minZoom, maxZoom]);\n\n set({ minZoom });\n },\n setMaxZoom: (maxZoom) => {\n const { panZoom, minZoom } = get();\n panZoom?.setScaleExtent([minZoom, maxZoom]);\n\n set({ maxZoom });\n },\n setTranslateExtent: (translateExtent) => {\n get().panZoom?.setTranslateExtent(translateExtent);\n\n set({ translateExtent });\n },\n resetSelectedElements: () => {\n const { edges } = edgesStore.getState();\n const { nodes } = nodesStore.getState();\n const { emitNodeChanges, emitEdgeChanges, elementsSelectable } = get();\n\n if (!elementsSelectable) {\n return;\n }\n\n const nodeChanges = nodes.reduce<SelectionChange[]>(\n (res, node) => (node.selected ? [...res, selectionChange(node.id, false)] : res),\n []\n );\n const edgeChanges = edges.reduce<SelectionChange[]>(\n (res, edge) => (edge.selected ? [...res, selectionChange(edge.id, false)] : res),\n []\n );\n\n emitNodeChanges(nodeChanges);\n emitEdgeChanges(edgeChanges);\n },\n setNodeExtent: (nextNodeExtent) => {\n const { nodes, nodeLookup, parentLookup } = nodesStore.getState();\n const { nodeOrigin, elevateNodesOnSelect, nodeExtent, zIndexMode, pubSub } = get();\n\n if (\n nextNodeExtent[0][0] === nodeExtent[0][0] &&\n nextNodeExtent[0][1] === nodeExtent[0][1] &&\n nextNodeExtent[1][0] === nodeExtent[1][0] &&\n nextNodeExtent[1][1] === nodeExtent[1][1]\n ) {\n return;\n }\n\n const { updatedNodes } = adoptUserNodes(nodes, nodeLookup, parentLookup, {\n nodeOrigin,\n nodeExtent: nextNodeExtent,\n elevateNodesOnSelect,\n checkEquality: false,\n zIndexMode,\n });\n\n set({ nodeExtent: nextNodeExtent });\n nodesStore.setState({});\n pubSub.publishNodes(updatedNodes);\n },\n panBy: (delta): Promise<boolean> => {\n const { transform, width, height } = viewportStore.getState();\n const { panZoom, translateExtent } = get();\n\n return panBySystem({ delta, panZoom, transform, translateExtent, width, height });\n },\n setCenter: async (x, y, options) => {\n const { width, height } = viewportStore.getState();\n const { maxZoom, panZoom } = get();\n\n if (!panZoom) {\n return false;\n }\n\n const nextZoom = typeof options?.zoom !== 'undefined' ? options.zoom : maxZoom;\n\n return panZoom.setViewport(\n {\n x: width / 2 - x * nextZoom,\n y: height / 2 - y * nextZoom,\n zoom: nextZoom,\n },\n { duration: options?.duration, ease: options?.ease, interpolate: options?.interpolate }\n );\n },\n cancelConnection: () => setRawConnection(initialConnection),\n updateConnection: (connection) => setRawConnection(connection),\n updateConnectionClickStart: (connectionClickStartHandle) => {\n connectionStore.setState({ connectionClickStartHandle });\n get().pubSub.publishConnectionClickStart();\n },\n\n reset: () => {\n const initialState = getInitialState();\n viewportStore.setState(initialState.viewportStore);\n rawConnection = initialConnection;\n connectionStore.setState(initialState.connectionStore);\n nodesStore.setState(initialState.nodesStore);\n edgesStore.setState(initialState.edgesStore);\n selectionStore.setState(initialState.selectionStore);\n\n const { pubSub } = get();\n // Keep mounted hooks subscribed to the same PubSub instance.\n set({ ...initialState.optionsStore, pubSub });\n pubSub.reset();\n },\n };\n });\n\n return { optionsStore, viewportStore, connectionStore, nodesStore, edgesStore, selectionStore };\n};\n\nexport { createStore };\n","import { useState, type ReactNode } from 'react';\nimport { CoordinateExtent, NodeOrigin, ZIndexMode } from '@xyflow/system';\n\nimport { Provider } from '../../contexts/StoreContext';\nimport { createStore } from '../../store';\nimport { BatchProvider } from '../BatchProvider';\nimport { HandleConfigProvider } from '../../contexts/HandleConfigContext';\nimport type { Node, Edge, FitViewOptions } from '../../types';\n\nexport type ReactFlowProviderProps = {\n /** These nodes are used to initialize the flow. They are not dynamic. */\n initialNodes?: Node[];\n /** These edges are used to initialize the flow. They are not dynamic. */\n initialEdges?: Edge[];\n /** These nodes are used to initialize the flow. They are not dynamic. */\n defaultNodes?: Node[];\n /** These edges are used to initialize the flow. They are not dynamic. */\n defaultEdges?: Edge[];\n /** The initial width is necessary to be able to use fitView on the server */\n initialWidth?: number;\n /** The initial height is necessary to be able to use fitView on the server */\n initialHeight?: number;\n /** When `true`, the flow will be zoomed and panned to fit all the nodes initially provided. */\n fitView?: boolean;\n /**\n * You can provide an object of options to customize the initial fitView behavior.\n */\n initialFitViewOptions?: FitViewOptions;\n /** Initial minimum zoom level */\n initialMinZoom?: number;\n /** Initial maximum zoom level */\n initialMaxZoom?: number;\n /**\n * The origin of the node to use when placing it in the flow or looking up its `x` and `y`\n * position. An origin of `[0, 0]` means that a node's top left corner will be placed at the `x`\n * and `y` position.\n * @default [0, 0]\n * @example\n * [0, 0] // default, top left\n * [0.5, 0.5] // center\n * [1, 1] // bottom right\n */\n nodeOrigin?: NodeOrigin;\n /**\n * By default, nodes can be placed on an infinite flow. You can use this prop to set a boundary.\n *\n * The first pair of coordinates is the top left boundary and the second pair is the bottom right.\n * @example [[-1000, -10000], [1000, 1000]]\n */\n nodeExtent?: CoordinateExtent;\n children: ReactNode;\n zIndexMode?: ZIndexMode;\n};\n\n/**\n * The `<ReactFlowProvider />` component is a [context provider](https://react.dev/learn/passing-data-deeply-with-context#)\n * that makes it possible to access a flow's internal state outside of the\n * [`<ReactFlow />`](/api-reference/react-flow) component. Many of the hooks we\n * provide rely on this component to work.\n * @public\n *\n * @example\n * ```tsx\n *import { ReactFlow, ReactFlowProvider, useNodes } from '@xyflow/react'\n *\n *export default function Flow() {\n * return (\n * <ReactFlowProvider>\n * <ReactFlow nodes={...} edges={...} />\n * <Sidebar />\n * </ReactFlowProvider>\n * );\n *}\n *\n *function Sidebar() {\n * // This hook will only work if the component it's used in is a child of a\n * // <ReactFlowProvider />.\n * const nodes = useNodes()\n *\n * return <aside>do something with nodes</aside>;\n *}\n *```\n *\n * @remarks If you're using a router and want your flow's state to persist across routes,\n * it's vital that you place the `<ReactFlowProvider />` component _outside_ of\n * your router. If you have multiple flows on the same page you will need to use a separate\n * `<ReactFlowProvider />` for each flow.\n */\nexport function ReactFlowProvider({\n initialNodes: nodes,\n initialEdges: edges,\n defaultNodes,\n defaultEdges,\n initialWidth: width,\n initialHeight: height,\n initialMinZoom: minZoom,\n initialMaxZoom: maxZoom,\n initialFitViewOptions: fitViewOptions,\n fitView,\n nodeOrigin,\n nodeExtent,\n zIndexMode,\n children,\n}: ReactFlowProviderProps) {\n const [stores] = useState(() =>\n createStore({\n nodes,\n edges,\n defaultNodes,\n defaultEdges,\n width,\n height,\n fitView,\n minZoom,\n maxZoom,\n fitViewOptions,\n nodeOrigin,\n nodeExtent,\n zIndexMode,\n })\n );\n\n return (\n <Provider value={stores}>\n <BatchProvider>\n <HandleConfigProvider>{children}</HandleConfigProvider>\n </BatchProvider>\n </Provider>\n );\n}\n","import { useContext, type ReactNode } from 'react';\n\nimport StoreContext from '../../contexts/StoreContext';\nimport { ReactFlowProvider } from '../../components/ReactFlowProvider';\nimport type { Node, Edge, FitViewOptions } from '../../types';\nimport { CoordinateExtent, NodeOrigin, ZIndexMode } from '@xyflow/system';\n\nexport function Wrapper({\n children,\n nodes,\n edges,\n defaultNodes,\n defaultEdges,\n width,\n height,\n fitView,\n fitViewOptions,\n minZoom,\n maxZoom,\n nodeOrigin,\n nodeExtent,\n zIndexMode,\n}: {\n children: ReactNode;\n nodes?: Node[];\n edges?: Edge[];\n defaultNodes?: Node[];\n defaultEdges?: Edge[];\n width?: number;\n height?: number;\n fitView?: boolean;\n fitViewOptions?: FitViewOptions;\n minZoom?: number;\n maxZoom?: number;\n nodeOrigin?: NodeOrigin;\n nodeExtent?: CoordinateExtent;\n zIndexMode?: ZIndexMode;\n}) {\n const isWrapped = useContext(StoreContext);\n\n if (isWrapped) {\n /*\n * we need to wrap it with a fragment because it's not allowed for children to be a ReactNode\n * https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051\n */\n return <>{children}</>;\n }\n\n return (\n <ReactFlowProvider\n initialNodes={nodes}\n initialEdges={edges}\n defaultNodes={defaultNodes}\n defaultEdges={defaultEdges}\n initialWidth={width}\n initialHeight={height}\n fitView={fitView}\n initialFitViewOptions={fitViewOptions}\n initialMinZoom={minZoom}\n initialMaxZoom={maxZoom}\n nodeOrigin={nodeOrigin}\n nodeExtent={nodeExtent}\n zIndexMode={zIndexMode}\n >\n {children}\n </ReactFlowProvider>\n );\n}\n","import { ForwardedRef, type CSSProperties } from 'react';\nimport cc from 'classcat';\nimport { ConnectionLineType, PanOnScrollMode, SelectionMode, infiniteExtent, isMacOs } from '@xyflow/system';\n\nimport { A11yDescriptions } from '../../components/A11yDescriptions';\nimport { Attribution } from '../../components/Attribution';\nimport { SelectionListener } from '../../components/SelectionListener';\nimport { StoreUpdater } from '../../components/StoreUpdater';\nimport { GraphView } from '../GraphView';\nimport { Wrapper } from './Wrapper';\nimport type { Edge, Node, ReactFlowProps } from '../../types';\nimport { defaultViewport as initViewport, defaultNodeOrigin } from './init-values';\nimport { fixedForwardRef } from '../../utils/general';\n\nconst wrapperStyle: CSSProperties = {\n width: '100%',\n height: '100%',\n overflow: 'hidden',\n position: 'relative',\n zIndex: 0,\n};\n\nfunction ReactFlow<NodeType extends Node = Node, EdgeType extends Edge = Edge>(\n {\n nodes,\n edges,\n defaultNodes,\n defaultEdges,\n className,\n nodeTypes,\n edgeTypes,\n onNodeClick,\n onEdgeClick,\n onInit,\n onMove,\n onMoveStart,\n onMoveEnd,\n onConnect,\n onConnectStart,\n onConnectEnd,\n onClickConnectStart,\n onClickConnectEnd,\n onNodeMouseEnter,\n onNodeMouseMove,\n onNodeMouseLeave,\n onNodeContextMenu,\n onNodeDoubleClick,\n onNodeDragStart,\n onNodeDrag,\n onNodeDragStop,\n onNodesDelete,\n onEdgesDelete,\n onDelete,\n onSelectionChange,\n onSelectionDragStart,\n onSelectionDrag,\n onSelectionDragStop,\n onSelectionContextMenu,\n onSelectionStart,\n onSelectionEnd,\n onBeforeDelete,\n connectionMode,\n connectionLineType = ConnectionLineType.Bezier,\n connectionLineStyle,\n connectionLineComponent,\n connectionLineContainerStyle,\n deleteKeyCode = 'Backspace',\n selectionKeyCode = 'Shift',\n selectionOnDrag = false,\n selectionMode = SelectionMode.Full,\n panActivationKeyCode = 'Space',\n multiSelectionKeyCode = isMacOs() ? 'Meta' : 'Control',\n zoomActivationKeyCode = isMacOs() ? 'Meta' : 'Control',\n snapToGrid,\n snapGrid,\n onlyRenderVisibleElements = false,\n selectNodesOnDrag,\n nodesDraggable,\n autoPanOnNodeFocus,\n nodesConnectable,\n nodesFocusable,\n nodeOrigin = defaultNodeOrigin,\n edgesFocusable,\n edgesReconnectable,\n elementsSelectable = true,\n defaultViewport = initViewport,\n minZoom = 0.5,\n maxZoom = 2,\n translateExtent = infiniteExtent,\n preventScrolling = true,\n nodeExtent,\n defaultMarkerColor = '#b1b1b7',\n zoomOnScroll = true,\n zoomOnPinch = true,\n panOnScroll = false,\n panOnScrollSpeed = 0.5,\n panOnScrollMode = PanOnScrollMode.Free,\n zoomOnDoubleClick = true,\n panOnDrag = true,\n onPaneClick,\n onPaneMouseEnter,\n onPaneMouseMove,\n onPaneMouseLeave,\n onPaneScroll,\n onPaneContextMenu,\n paneDragThreshold = 1,\n children,\n onReconnect,\n onReconnectStart,\n onReconnectEnd,\n onEdgeContextMenu,\n onEdgeDoubleClick,\n onEdgeMouseEnter,\n onEdgeMouseMove,\n onEdgeMouseLeave,\n reconnectRadius = 10,\n onNodesChange,\n onEdgesChange,\n noDragClassName = 'nodrag',\n noWheelClassName = 'nowheel',\n noPanClassName = 'nopan',\n fitView,\n fitViewOptions,\n connectOnClick,\n attributionPosition,\n proOptions,\n defaultEdgeOptions,\n elevateNodesOnSelect = true,\n elevateEdgesOnSelect = true,\n disableKeyboardA11y = false,\n autoPanOnConnect,\n autoPanOnNodeDrag,\n autoPanOnSelection = true,\n autoPanSpeed,\n connectionRadius,\n isValidConnection,\n onError,\n style,\n id,\n nodeDragThreshold,\n connectionDragThreshold,\n viewport,\n onViewportChange,\n width,\n height,\n forceColorMode,\n debug,\n onScroll,\n ariaLabelConfig,\n zIndexMode = 'basic',\n ...rest\n }: ReactFlowProps<NodeType, EdgeType>,\n ref: ForwardedRef<HTMLDivElement>\n) {\n const rfId = id || '1';\n\n // Undo scroll events, preventing viewport from shifting when nodes outside of it are focused\n const wrapperOnScroll = (e: React.UIEvent<HTMLDivElement>) => {\n e.currentTarget.scrollTo({ top: 0, left: 0, behavior: 'instant' });\n onScroll?.(e);\n };\n\n return (\n <div\n data-testid=\"rf__wrapper\"\n {...rest}\n onScroll={wrapperOnScroll}\n style={{ ...style, ...wrapperStyle }}\n ref={ref}\n className={cc(['react-flow', forceColorMode, className])}\n id={id}\n role=\"application\"\n >\n <Wrapper\n nodes={nodes}\n edges={edges}\n width={width}\n height={height}\n fitView={fitView}\n fitViewOptions={fitViewOptions}\n minZoom={minZoom}\n maxZoom={maxZoom}\n nodeOrigin={nodeOrigin}\n nodeExtent={nodeExtent}\n zIndexMode={zIndexMode}\n >\n <StoreUpdater<NodeType, EdgeType>\n nodes={nodes}\n edges={edges}\n defaultNodes={defaultNodes}\n defaultEdges={defaultEdges}\n onConnect={onConnect}\n onConnectStart={onConnectStart}\n onConnectEnd={onConnectEnd}\n onClickConnectStart={onClickConnectStart}\n onClickConnectEnd={onClickConnectEnd}\n nodesDraggable={nodesDraggable}\n autoPanOnNodeFocus={autoPanOnNodeFocus}\n nodesConnectable={nodesConnectable}\n nodesFocusable={nodesFocusable}\n edgesFocusable={edgesFocusable}\n edgesReconnectable={edgesReconnectable}\n elementsSelectable={elementsSelectable}\n elevateNodesOnSelect={elevateNodesOnSelect}\n elevateEdgesOnSelect={elevateEdgesOnSelect}\n minZoom={minZoom}\n maxZoom={maxZoom}\n nodeExtent={nodeExtent}\n onNodesChange={onNodesChange}\n onEdgesChange={onEdgesChange}\n snapToGrid={snapToGrid}\n snapGrid={snapGrid}\n connectionMode={connectionMode}\n translateExtent={translateExtent}\n connectOnClick={connectOnClick}\n defaultEdgeOptions={defaultEdgeOptions}\n fitView={fitView}\n fitViewOptions={fitViewOptions}\n onNodesDelete={onNodesDelete}\n onEdgesDelete={onEdgesDelete}\n onDelete={onDelete}\n onNodeDragStart={onNodeDragStart}\n onNodeDrag={onNodeDrag}\n onNodeDragStop={onNodeDragStop}\n onSelectionDrag={onSelectionDrag}\n onSelectionDragStart={onSelectionDragStart}\n onSelectionDragStop={onSelectionDragStop}\n onMove={onMove}\n onMoveStart={onMoveStart}\n onMoveEnd={onMoveEnd}\n noPanClassName={noPanClassName}\n nodeOrigin={nodeOrigin}\n rfId={rfId}\n autoPanOnConnect={autoPanOnConnect}\n autoPanOnNodeDrag={autoPanOnNodeDrag}\n autoPanSpeed={autoPanSpeed}\n onError={onError}\n connectionRadius={connectionRadius}\n isValidConnection={isValidConnection}\n selectNodesOnDrag={selectNodesOnDrag}\n nodeDragThreshold={nodeDragThreshold}\n connectionDragThreshold={connectionDragThreshold}\n onBeforeDelete={onBeforeDelete}\n debug={debug}\n ariaLabelConfig={ariaLabelConfig}\n zIndexMode={zIndexMode}\n />\n <GraphView<NodeType, EdgeType>\n onInit={onInit}\n onNodeClick={onNodeClick}\n onEdgeClick={onEdgeClick}\n onNodeMouseEnter={onNodeMouseEnter}\n onNodeMouseMove={onNodeMouseMove}\n onNodeMouseLeave={onNodeMouseLeave}\n onNodeContextMenu={onNodeContextMenu}\n onNodeDoubleClick={onNodeDoubleClick}\n nodeTypes={nodeTypes}\n edgeTypes={edgeTypes}\n connectionLineType={connectionLineType}\n connectionLineStyle={connectionLineStyle}\n connectionLineComponent={connectionLineComponent}\n connectionLineContainerStyle={connectionLineContainerStyle}\n selectionKeyCode={selectionKeyCode}\n selectionOnDrag={selectionOnDrag}\n selectionMode={selectionMode}\n deleteKeyCode={deleteKeyCode}\n multiSelectionKeyCode={multiSelectionKeyCode}\n panActivationKeyCode={panActivationKeyCode}\n zoomActivationKeyCode={zoomActivationKeyCode}\n onlyRenderVisibleElements={onlyRenderVisibleElements}\n defaultViewport={defaultViewport}\n translateExtent={translateExtent}\n minZoom={minZoom}\n maxZoom={maxZoom}\n preventScrolling={preventScrolling}\n zoomOnScroll={zoomOnScroll}\n zoomOnPinch={zoomOnPinch}\n zoomOnDoubleClick={zoomOnDoubleClick}\n panOnScroll={panOnScroll}\n panOnScrollSpeed={panOnScrollSpeed}\n panOnScrollMode={panOnScrollMode}\n panOnDrag={panOnDrag}\n autoPanOnSelection={autoPanOnSelection}\n onPaneClick={onPaneClick}\n onPaneMouseEnter={onPaneMouseEnter}\n onPaneMouseMove={onPaneMouseMove}\n onPaneMouseLeave={onPaneMouseLeave}\n onPaneScroll={onPaneScroll}\n onPaneContextMenu={onPaneContextMenu}\n paneDragThreshold={paneDragThreshold}\n onSelectionContextMenu={onSelectionContextMenu}\n onSelectionStart={onSelectionStart}\n onSelectionEnd={onSelectionEnd}\n onReconnect={onReconnect}\n onReconnectStart={onReconnectStart}\n onReconnectEnd={onReconnectEnd}\n onEdgeContextMenu={onEdgeContextMenu}\n onEdgeDoubleClick={onEdgeDoubleClick}\n onEdgeMouseEnter={onEdgeMouseEnter}\n onEdgeMouseMove={onEdgeMouseMove}\n onEdgeMouseLeave={onEdgeMouseLeave}\n reconnectRadius={reconnectRadius}\n defaultMarkerColor={defaultMarkerColor}\n noDragClassName={noDragClassName}\n noWheelClassName={noWheelClassName}\n noPanClassName={noPanClassName}\n rfId={rfId}\n disableKeyboardA11y={disableKeyboardA11y}\n nodeExtent={nodeExtent}\n viewport={viewport}\n onViewportChange={onViewportChange}\n nodesDraggable={nodesDraggable}\n />\n <SelectionListener<NodeType, EdgeType> onSelectionChange={onSelectionChange} />\n {children}\n <Attribution proOptions={proOptions} position={attributionPosition} />\n <A11yDescriptions rfId={rfId} disableKeyboardA11y={disableKeyboardA11y} />\n </Wrapper>\n </div>\n );\n}\n\n/**\n * The `<ReactFlow />` component is the heart of your React Flow application.\n * It renders your nodes and edges and handles user interaction\n *\n * @public\n *\n * @example\n * ```tsx\n *import { ReactFlow } from '@xyflow/react'\n *\n *export default function Flow() {\n * return (<ReactFlow\n * nodes={...}\n * edges={...}\n * onNodesChange={...}\n * ...\n * />);\n *}\n *```\n */\nexport default fixedForwardRef(ReactFlow);\n","import { type ReactNode, type ReactPortal } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\n\nexport type EdgeLabelRendererProps = {\n children: ReactNode;\n};\n\n/**\n * Edges are SVG-based. If you want to render more complex labels you can use the\n * `<EdgeLabelRenderer />` component to access a div based renderer. This component\n * is a portal that renders the label in a `<div />` that is positioned on top of\n * the edges. You can see an example usage of the component in the\n * [edge label renderer example](/examples/edges/edge-label-renderer).\n * @public\n *\n * @example\n * ```jsx\n * import React from 'react';\n * import { getBezierPath, EdgeLabelRenderer, BaseEdge } from '@xyflow/react';\n *\n * export function CustomEdge({ id, data, ...props }) {\n * const [edgePath, labelX, labelY] = getBezierPath(props);\n *\n * return (\n * <>\n * <BaseEdge id={id} path={edgePath} />\n * <EdgeLabelRenderer>\n * <div\n * style={{\n * position: 'absolute',\n * transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,\n * background: '#ffcc00',\n * padding: 10,\n * }}\n * className=\"nodrag nopan\"\n * >\n * {data.label}\n * </div>\n * </EdgeLabelRenderer>\n * </>\n * );\n * };\n * ```\n *\n * @remarks The `<EdgeLabelRenderer />` has no pointer events by default. If you want to\n * add mouse interactions you need to set the style `pointerEvents: all` and add\n * the `nopan` class on the label or the element you want to interact with.\n */\nexport function EdgeLabelRenderer({ children }: EdgeLabelRendererProps): ReactPortal | null {\n const domNode = useOptionsStore((s) => s.domNode);\n const edgeLabelRenderer = domNode?.querySelector('.react-flow__edgelabel-renderer');\n\n if (!edgeLabelRenderer) {\n return null;\n }\n\n return createPortal(children, edgeLabelRenderer);\n}\n","import { type ReactNode, type ReactPortal } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\n\n/**\n * The `<ViewportPortal />` component can be used to add components to the same viewport\n * of the flow where nodes and edges are rendered. This is useful when you want to render\n * your own components that are adhere to the same coordinate system as the nodes & edges\n * and are also affected by zooming and panning\n * @public\n * @example\n *\n * ```jsx\n *import React from 'react';\n *import { ViewportPortal } from '@xyflow/react';\n *\n *export default function () {\n * return (\n * <ViewportPortal>\n * <div\n * style={{ transform: 'translate(100px, 100px)', position: 'absolute' }}\n * >\n * This div is positioned at [100, 100] on the flow.\n * </div>\n * </ViewportPortal>\n * );\n *}\n *```\n */\nexport function ViewportPortal({ children }: { children: ReactNode }): ReactPortal | null {\n const domNode = useOptionsStore((s) => s.domNode);\n const viewPortalDiv = domNode?.querySelector('.react-flow__viewport-portal');\n\n if (!viewPortalDiv) {\n return null;\n }\n\n return createPortal(children, viewPortalDiv);\n}\n","import type { UpdateNodeInternals, InternalNodeUpdate } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\n\n/**\n * When you programmatically add or remove handles to a node or update a node's\n * handle position, you need to let React Flow know about it using this hook. This\n * will update the internal dimensions of the node and properly reposition handles\n * on the canvas if necessary.\n *\n * @public\n * @returns Use this function to tell React Flow to update the internal state of one or more nodes\n * that you have changed programmatically.\n *\n * @example\n * ```jsx\n *import { useCallback, useState } from 'react';\n *import { Handle, useUpdateNodeInternals } from '@xyflow/react';\n *\n *export default function RandomHandleNode({ id }) {\n * const updateNodeInternals = useUpdateNodeInternals();\n * const [handleCount, setHandleCount] = useState(0);\n * const randomizeHandleCount = useCallback(() => {\n * setHandleCount(Math.floor(Math.random() * 10));\n * updateNodeInternals(id);\n * }, [id, updateNodeInternals]);\n *\n * return (\n * <>\n * {Array.from({ length: handleCount }).map((_, index) => (\n * <Handle\n * key={index}\n * type=\"target\"\n * position=\"left\"\n * id={`handle-${index}`}\n * />\n * ))}\n *\n * <div>\n * <button onClick={randomizeHandleCount}>Randomize handle count</button>\n * <p>There are {handleCount} handles on this node.</p>\n * </div>\n * </>\n * );\n *}\n *```\n * @remarks This hook can only be used in a component that is a child of a\n *{@link ReactFlowProvider} or a {@link ReactFlow} component.\n */\nexport function useUpdateNodeInternals(): UpdateNodeInternals {\n const { optionsStore } = useReactFlowStoreApi();\n\n return (id: string | string[]) => {\n const { domNode, updateNodeInternals } = optionsStore.getState();\n const updateIds = Array.isArray(id) ? id : [id];\n const updates = new Map<string, InternalNodeUpdate>();\n\n updateIds.forEach((updateId) => {\n const nodeElement = domNode?.querySelector(`.react-flow__node[data-id=\"${updateId}\"]`) as HTMLDivElement;\n\n if (nodeElement) {\n updates.set(updateId, { id: updateId, nodeElement, force: true });\n }\n });\n\n requestAnimationFrame(() => updateNodeInternals(updates, { triggerFitView: false }));\n };\n}\n","import type { Viewport } from '@xyflow/system';\n\nimport { useViewportStore } from './useReactFlowStore';\n\n/**\n * The `useViewport` hook is a convenient way to read the current state of the\n * {@link Viewport} in a component. Components that use this hook\n * will re-render **whenever the viewport changes**.\n *\n * @public\n * @returns The current viewport.\n *\n * @example\n *\n *```jsx\n *import { useViewport } from '@xyflow/react';\n *\n *export default function ViewportDisplay() {\n * const { x, y, zoom } = useViewport();\n *\n * return (\n * <div>\n * <p>\n * The viewport is currently at ({x}, {y}) and zoomed to {zoom}.\n * </p>\n * </div>\n * );\n *}\n *```\n *\n * @remarks This hook can only be used in a component that is a child of a\n *{@link ReactFlowProvider} or a {@link ReactFlow} component.\n */\nexport function useViewport(): Viewport {\n const {\n transform: [x, y, zoom],\n } = useViewportStore();\n\n return { x, y, zoom };\n}\n","import { useState, type Dispatch, type SetStateAction } from 'react';\n\nimport type { Node, Edge, OnNodesChange, OnEdgesChange } from '../types';\n\n/**\n * This hook makes it easy to prototype a controlled flow where you manage the\n * state of nodes and edges outside the `ReactFlowInstance`. You can think of it\n * like React's `useState` hook with an additional helper callback.\n *\n * @public\n * @returns\n * - `nodes`: The current array of nodes. You might pass this directly to the `nodes` prop of your\n * `<ReactFlow />` component, or you may want to manipulate it first to perform some layouting,\n * for example.\n * - `setNodes`: A function that you can use to update the nodes. You can pass it a new array of\n * nodes or a callback that receives the current array of nodes and returns a new array of nodes.\n * This is the same as the second element of the tuple returned by React's `useState` hook.\n * - `onNodesChange`: A handy callback that can take an array of `NodeChanges` and update the nodes\n * state accordingly. You'll typically pass this directly to the `onNodesChange` prop of your\n * `<ReactFlow />` component.\n * @example\n *\n *```tsx\n *import { ReactFlow, useNodesState, useEdgesState } from '@xyflow/react';\n *\n *const initialNodes = [];\n *const initialEdges = [];\n *\n *export default function () {\n * const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);\n * const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);\n *\n * return (\n * <ReactFlow\n * nodes={nodes}\n * edges={edges}\n * onNodesChange={onNodesChange}\n * onEdgesChange={onEdgesChange}\n * />\n * );\n *}\n *```\n *\n * @remarks This hook was created to make prototyping easier and our documentation\n * examples clearer. Although it is OK to use this hook in production, in\n * practice you may want to use a more sophisticated state management solution\n * like Zustand {@link https://reactflow.dev/docs/guides/state-management/} instead.\n *\n */\nexport function useNodesState<NodeType extends Node>(\n initialNodes: NodeType[]\n): [\n //\n nodes: NodeType[],\n setNodes: Dispatch<SetStateAction<NodeType[]>>,\n onNodesChange: OnNodesChange<NodeType>,\n] {\n const [nodes, setNodes] = useState(initialNodes);\n const onNodesChange: OnNodesChange<NodeType> = (changes) => setNodes((nds) => changes.applyTo(nds));\n\n return [nodes, setNodes, onNodesChange];\n}\n\n/**\n * This hook makes it easy to prototype a controlled flow where you manage the\n * state of nodes and edges outside the `ReactFlowInstance`. You can think of it\n * like React's `useState` hook with an additional helper callback.\n *\n * @public\n * @returns\n * - `edges`: The current array of edges. You might pass this directly to the `edges` prop of your\n * `<ReactFlow />` component, or you may want to manipulate it first to perform some layouting,\n * for example.\n *\n * - `setEdges`: A function that you can use to update the edges. You can pass it a new array of\n * edges or a callback that receives the current array of edges and returns a new array of edges.\n * This is the same as the second element of the tuple returned by React's `useState` hook.\n *\n * - `onEdgesChange`: A handy callback that can take an array of `EdgeChanges` and update the edges\n * state accordingly. You'll typically pass this directly to the `onEdgesChange` prop of your\n * `<ReactFlow />` component.\n * @example\n *\n *```tsx\n *import { ReactFlow, useNodesState, useEdgesState } from '@xyflow/react';\n *\n *const initialNodes = [];\n *const initialEdges = [];\n *\n *export default function () {\n * const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);\n * const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);\n *\n * return (\n * <ReactFlow\n * nodes={nodes}\n * edges={edges}\n * onNodesChange={onNodesChange}\n * onEdgesChange={onEdgesChange}\n * />\n * );\n *}\n *```\n *\n * @remarks This hook was created to make prototyping easier and our documentation\n * examples clearer. Although it is OK to use this hook in production, in\n * practice you may want to use a more sophisticated state management solution\n * like Zustand {@link https://reactflow.dev/docs/guides/state-management/} instead.\n *\n */\nexport function useEdgesState<EdgeType extends Edge = Edge>(\n initialEdges: EdgeType[]\n): [\n //\n edges: EdgeType[],\n setEdges: Dispatch<SetStateAction<EdgeType[]>>,\n onEdgesChange: OnEdgesChange<EdgeType>,\n] {\n const [edges, setEdges] = useState(initialEdges);\n const onEdgesChange: OnEdgesChange<EdgeType> = (changes) => setEdges((eds) => changes.applyTo(eds));\n\n return [edges, setEdges, onEdgesChange];\n}\n","import { useEffect } from 'react';\nimport type { OnViewportChange } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\n\nexport type UseOnViewportChangeOptions = {\n /** Gets called when the viewport starts changing. */\n onStart?: OnViewportChange;\n /** Gets called when the viewport changes. */\n onChange?: OnViewportChange;\n /** Gets called when the viewport stops changing. */\n onEnd?: OnViewportChange;\n};\n\n/**\n * The `useOnViewportChange` hook lets you listen for changes to the viewport such\n * as panning and zooming. You can provide a callback for each phase of a viewport\n * change: `onStart`, `onChange`, and `onEnd`.\n *\n * @public\n * @example\n * ```jsx\n *import { useCallback } from 'react';\n *import { useOnViewportChange } from '@xyflow/react';\n *\n *function ViewportChangeLogger() {\n * useOnViewportChange({\n * onStart: (viewport: Viewport) => console.log('start', viewport),\n * onChange: (viewport: Viewport) => console.log('change', viewport),\n * onEnd: (viewport: Viewport) => console.log('end', viewport),\n * });\n *\n * return null;\n *}\n *```\n */\nexport function useOnViewportChange({ onStart, onChange, onEnd }: UseOnViewportChangeOptions) {\n const { optionsStore } = useReactFlowStoreApi();\n\n useEffect(() => {\n optionsStore.setState({ onViewportChangeStart: onStart });\n }, [onStart]);\n\n useEffect(() => {\n optionsStore.setState({ onViewportChange: onChange });\n }, [onChange]);\n\n useEffect(() => {\n optionsStore.setState({ onViewportChangeEnd: onEnd });\n }, [onEnd]);\n}\n","import { useEffect } from 'react';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\nimport type { OnSelectionChangeFunc, Node, Edge } from '../types';\n\nexport type UseOnSelectionChangeOptions<NodeType extends Node = Node, EdgeType extends Edge = Edge> = {\n /** The handler to register. */\n onChange: OnSelectionChangeFunc<NodeType, EdgeType>;\n};\n\n/**\n * This hook lets you listen for changes to both node and edge selection. As the\n *name implies, the callback you provide will be called whenever the selection of\n *_either_ nodes or edges changes.\n *\n * @public\n * @example\n * ```jsx\n *import { useState } from 'react';\n *import { ReactFlow, useOnSelectionChange } from '@xyflow/react';\n *\n *function SelectionDisplay() {\n * const [selectedNodes, setSelectedNodes] = useState([]);\n * const [selectedEdges, setSelectedEdges] = useState([]);\n *\n * // the passed handler has to be memoized, otherwise the hook will not work correctly\n * const onChange = useCallback(({ nodes, edges }) => {\n * setSelectedNodes(nodes.map((node) => node.id));\n * setSelectedEdges(edges.map((edge) => edge.id));\n * }, []);\n *\n * useOnSelectionChange({\n * onChange,\n * });\n *\n * return (\n * <div>\n * <p>Selected nodes: {selectedNodes.join(', ')}</p>\n * <p>Selected edges: {selectedEdges.join(', ')}</p>\n * </div>\n * );\n *}\n *```\n *\n * @remarks You need to memoize the passed `onChange` handler, otherwise the hook will not work correctly.\n */\nexport function useOnSelectionChange<NodeType extends Node = Node, EdgeType extends Edge = Edge>({\n onChange,\n}: UseOnSelectionChangeOptions<NodeType, EdgeType>) {\n const { optionsStore } = useReactFlowStoreApi<NodeType, EdgeType>();\n\n useEffect(() => {\n const nextOnSelectionChangeHandlers = [...optionsStore.getState().onSelectionChangeHandlers, onChange];\n optionsStore.setState({ onSelectionChangeHandlers: nextOnSelectionChangeHandlers });\n\n return () => {\n const nextHandlers = optionsStore.getState().onSelectionChangeHandlers.filter((fn) => fn !== onChange);\n optionsStore.setState({ onSelectionChangeHandlers: nextHandlers });\n };\n }, [onChange]);\n}\n","import { nodeHasDimensions } from '@xyflow/system';\n\nimport { useNodesStore } from './useReactFlowStore';\nimport type { NodesStore } from '../types';\n\nexport type UseNodesInitializedOptions = {\n /** @default false */\n includeHiddenNodes?: boolean;\n};\n\nconst selector = (options: UseNodesInitializedOptions) => (s: NodesStore) => {\n if (!options.includeHiddenNodes) {\n return s.nodesInitialized;\n }\n\n if (s.nodeLookup.size === 0) {\n return false;\n }\n\n for (const [, { internals }] of s.nodeLookup) {\n if (internals.handleBounds === undefined || !nodeHasDimensions(internals.userNode)) {\n return false;\n }\n }\n\n return true;\n};\n\n/**\n * This hook tells you whether all the nodes in a flow have been measured and given\n *a width and height. When you add a node to the flow, this hook will return\n *`false` and then `true` again once the node has been measured.\n *\n * @public\n * @returns Whether or not the nodes have been initialized by the `<ReactFlow />` component and\n * given a width and height.\n *\n * @example\n * ```jsx\n *import { useReactFlow, useNodesInitialized } from '@xyflow/react';\n *import { useEffect, useState } from 'react';\n *\n *const options = {\n * includeHiddenNodes: false,\n *};\n *\n *export default function useLayout() {\n * const { getNodes } = useReactFlow();\n * const nodesInitialized = useNodesInitialized(options);\n * const [layoutedNodes, setLayoutedNodes] = useState(getNodes());\n *\n * useEffect(() => {\n * if (nodesInitialized) {\n * setLayoutedNodes(yourLayoutingFunction(getNodes()));\n * }\n * }, [nodesInitialized]);\n *\n * return layoutedNodes;\n *}\n *```\n */\nexport function useNodesInitialized(\n options: UseNodesInitializedOptions = {\n includeHiddenNodes: false,\n }\n): boolean {\n // TODO: does this lead to re-renders\n const initialized = useNodesStore(selector(options));\n\n return initialized;\n}\n","import { useEffect, useRef } from 'react';\nimport {\n areConnectionMapsEqual,\n errorMessages,\n getConnectionLookupKey,\n handleConnectionChange,\n type NodeConnection,\n type UseNodeConnectionsParams,\n} from '@xyflow/system';\n\nimport { useEqualSelector, useEdgesStore } from './useReactFlowStore';\nimport { useNodeId } from '../contexts/NodeIdContext';\nimport { type EdgesStore } from '../types';\n\nconst error014 = errorMessages['error014']();\n\n/**\n * This hook returns an array of connections on a specific node, handle type ('source', 'target') or handle ID.\n *\n * @public\n * @returns An array with connections.\n *\n * @example\n * ```jsx\n *import { useNodeConnections } from '@xyflow/react';\n *\n *export default function () {\n * const connections = useNodeConnections({\n * handleType: 'target',\n * handleId: 'my-handle',\n * });\n *\n * return (\n * <div>There are currently {connections.length} incoming connections!</div>\n * );\n *}\n *```\n */\nexport function useNodeConnections({\n id,\n handleType,\n handleId,\n onConnect,\n onDisconnect,\n}: UseNodeConnectionsParams = {}): NodeConnection[] {\n const nodeId = useNodeId();\n const currentNodeId = id ?? nodeId;\n\n if (!currentNodeId) {\n throw new Error(error014);\n }\n\n const prevConnections = useRef<Map<string, NodeConnection> | null>(null);\n\n const selector = (state: EdgesStore) => {\n return state.connectionLookup.get(getConnectionLookupKey(currentNodeId, handleType, handleId));\n };\n\n const connections = useEdgesStore(useEqualSelector(selector, areConnectionMapsEqual));\n\n useEffect(() => {\n // @todo discuss if onConnect/onDisconnect should be called when the component mounts/unmounts\n if (prevConnections.current && prevConnections.current !== connections) {\n const _connections = connections ?? new Map<string, NodeConnection>();\n handleConnectionChange(prevConnections.current, _connections, onDisconnect);\n handleConnectionChange(_connections, prevConnections.current, onConnect);\n }\n\n prevConnections.current = connections ?? new Map<string, NodeConnection>();\n }, [connections, onConnect, onDisconnect]);\n\n return Array.from(connections?.values() ?? []);\n}\n","import { type DistributivePick, shallowNodeData } from '@xyflow/system';\nimport { useSyncExternalStore } from 'react';\n\nimport { useEqualSelector, useReactFlowStoreApi, useShallow } from './useReactFlowStore';\nimport type { Node } from '../types';\n\n/**\n * This hook lets you subscribe to changes of a specific nodes `data` object.\n *\n * @public\n * @returns An object (or array of object) with `id`, `type`, `data` representing each node.\n *\n * @example\n *```jsx\n *import { useNodesData } from '@xyflow/react';\n *\n *export default function() {\n * const nodeData = useNodesData('nodeId-1');\n * const nodesData = useNodesData(['nodeId-1', 'nodeId-2']);\n *\n * return null;\n *}\n *```\n */\nexport function useNodesData<NodeType extends Node = Node>(\n /** The id of the node to get the data from. */\n nodeId: string\n): DistributivePick<NodeType, 'id' | 'type' | 'data'> | null;\nexport function useNodesData<NodeType extends Node = Node>(\n /** The ids of the nodes to get the data from. */\n nodeIds: string[]\n): DistributivePick<NodeType, 'id' | 'type' | 'data'>[];\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function useNodesData(nodeIds: string | string[]): any {\n const isSingleId = typeof nodeIds === 'string';\n const { optionsStore, nodesStore } = useReactFlowStoreApi();\n const ids = useShallow((value: string | string[]) => new Set(typeof value === 'string' ? [value] : value))(nodeIds);\n const subscribe = (onStoreChange: () => void) => optionsStore.getState().pubSub.subscribeToNodes(ids, onStoreChange);\n const selectSnapshot = useEqualSelector(() => {\n const { nodeLookup } = nodesStore.getState();\n const data: Pick<Node, 'id' | 'type' | 'data'>[] = [];\n\n for (const id of ids) {\n const node = nodeLookup.get(id);\n if (node) {\n data.push({ id: node.id, type: node.type, data: node.data });\n }\n }\n\n return isSingleId ? (data[0] ?? null) : data;\n }, shallowNodeData);\n const getSnapshot = () => selectSnapshot(undefined);\n\n return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n}\n","import { useEffect, useState } from 'react';\nimport type { NodeChange } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\nimport type { Edge, Node } from '../types';\n\n/**\n * Registers a middleware function to transform node changes.\n *\n * @public\n * @param fn - Middleware function. Should be memoized with useCallback to avoid re-registration.\n */\nexport function experimental_useOnNodesChangeMiddleware<NodeType extends Node = Node>(\n fn: (changes: NodeChange<NodeType>[]) => NodeChange<NodeType>[]\n) {\n const { optionsStore } = useReactFlowStoreApi<NodeType, Edge>();\n const [symbol] = useState(() => Symbol());\n\n useEffect(() => {\n const { onNodesChangeMiddlewareMap } = optionsStore.getState();\n onNodesChangeMiddlewareMap.set(symbol, fn);\n }, [fn]);\n\n useEffect(() => {\n const { onNodesChangeMiddlewareMap } = optionsStore.getState();\n return () => {\n onNodesChangeMiddlewareMap.delete(symbol);\n };\n }, []);\n}\n","import { useEffect, useState } from 'react';\nimport type { EdgeChange } from '@xyflow/system';\n\nimport { useReactFlowStoreApi } from './useReactFlowStore';\nimport type { Edge, Node } from '../types';\n\n/**\n * Registers a middleware function to transform edge changes.\n *\n * @public\n * @param fn - Middleware function. Should be memoized with useCallback to avoid re-registration.\n */\nexport function experimental_useOnEdgesChangeMiddleware<EdgeType extends Edge = Edge>(\n fn: (changes: EdgeChange<EdgeType>[]) => EdgeChange<EdgeType>[]\n) {\n const { optionsStore } = useReactFlowStoreApi<Node, EdgeType>();\n const [symbol] = useState(() => Symbol());\n\n useEffect(() => {\n const { onEdgesChangeMiddlewareMap } = optionsStore.getState();\n onEdgesChangeMiddlewareMap.set(symbol, fn);\n }, [fn]);\n\n useEffect(() => {\n const { onEdgesChangeMiddlewareMap } = optionsStore.getState();\n return () => {\n onEdgesChangeMiddlewareMap.delete(symbol);\n };\n }, []);\n}\n","import cc from 'classcat';\n\nimport { BackgroundVariant } from './types';\n\ntype LinePatternProps = {\n dimensions: [number, number];\n variant: BackgroundVariant;\n lineWidth?: number;\n className?: string;\n};\n\nexport function LinePattern({ dimensions, lineWidth, variant, className }: LinePatternProps) {\n return (\n <path\n strokeWidth={lineWidth}\n d={`M${dimensions[0] / 2} 0 V${dimensions[1]} M0 ${dimensions[1] / 2} H${dimensions[0]}`}\n className={cc(['react-flow__background-pattern', variant, className])}\n />\n );\n}\n\ntype DotPatternProps = {\n radius: number;\n className?: string;\n};\n\nexport function DotPattern({ radius, className }: DotPatternProps) {\n return (\n <circle cx={radius} cy={radius} r={radius} className={cc(['react-flow__background-pattern', 'dots', className])} />\n );\n}\n","import { CSSProperties } from 'react';\n\n/**\n * The three variants are exported as an enum for convenience. You can either import\n * the enum and use it like `BackgroundVariant.Lines` or you can use the raw string\n * value directly.\n * @public\n */\nexport enum BackgroundVariant {\n Lines = 'lines',\n Dots = 'dots',\n Cross = 'cross',\n}\n\n/**\n * @expand\n */\nexport type BackgroundProps = {\n /** When multiple backgrounds are present on the page, each one should have a unique id. */\n id?: string;\n /** Color of the pattern. */\n color?: string;\n /** Color of the background. */\n bgColor?: string;\n /** Class applied to the container. */\n className?: string;\n /** Class applied to the pattern. */\n patternClassName?: string;\n /**\n * The gap between patterns. Passing in a tuple allows you to control the x and y gap\n * independently.\n * @default 20\n */\n gap?: number | [number, number];\n /**\n * The radius of each dot or the size of each rectangle if `BackgroundVariant.Dots` or\n * `BackgroundVariant.Cross` is used. This defaults to 1 or 6 respectively, or ignored if\n * `BackgroundVariant.Lines` is used.\n */\n size?: number;\n /**\n * Offset of the pattern.\n * @default 0\n */\n offset?: number | [number, number];\n /**\n * The stroke thickness used when drawing the pattern.\n * @default 1\n */\n lineWidth?: number;\n /**\n * Variant of the pattern.\n * @default BackgroundVariant.Dots\n * @example BackgroundVariant.Lines, BackgroundVariant.Dots, BackgroundVariant.Cross\n * 'lines', 'dots', 'cross'\n */\n variant?: BackgroundVariant;\n /** Style applied to the container. */\n style?: CSSProperties;\n};\n","import { memo, CSSProperties, useRef } from 'react';\nimport cc from 'classcat';\n\nimport { useOptionsStore, useViewportStore } from '../../hooks/useReactFlowStore';\nimport { DotPattern, LinePattern } from './Patterns';\nimport { containerStyle } from '../../styles/utils';\nimport { type BackgroundProps, BackgroundVariant } from './types';\n\nconst defaultSize = {\n [BackgroundVariant.Dots]: 1,\n [BackgroundVariant.Lines]: 1,\n [BackgroundVariant.Cross]: 6,\n};\n\nfunction BackgroundComponent({\n id,\n variant = BackgroundVariant.Dots,\n // only used for dots and cross\n gap = 20,\n // only used for lines and cross\n size,\n lineWidth = 1,\n offset = 0,\n color,\n bgColor,\n style,\n className,\n patternClassName,\n}: BackgroundProps) {\n const ref = useRef<SVGSVGElement>(null);\n\n const rfId = useOptionsStore((s) => s.rfId);\n const patternId = `pattern-${rfId}`;\n const transform = useViewportStore((s) => s.transform);\n\n const patternSize = size || defaultSize[variant];\n const isDots = variant === BackgroundVariant.Dots;\n const isCross = variant === BackgroundVariant.Cross;\n const gapXY: [number, number] = Array.isArray(gap) ? gap : [gap, gap];\n const scaledGap: [number, number] = [gapXY[0] * transform[2] || 1, gapXY[1] * transform[2] || 1];\n const scaledSize = patternSize * transform[2];\n const offsetXY: [number, number] = Array.isArray(offset) ? offset : [offset, offset];\n\n const patternDimensions: [number, number] = isCross ? [scaledSize, scaledSize] : scaledGap;\n const scaledOffset: [number, number] = [\n offsetXY[0] * transform[2] + patternDimensions[0] / 2,\n offsetXY[1] * transform[2] + patternDimensions[1] / 2,\n ];\n\n const _patternId = `${patternId}${id ? id : ''}`;\n\n return (\n <svg\n className={cc(['react-flow__background', className])}\n style={\n {\n ...style,\n ...containerStyle,\n '--xy-background-color-props': bgColor,\n '--xy-background-pattern-color-props': color,\n } as CSSProperties\n }\n ref={ref}\n data-testid=\"rf__background\"\n >\n <pattern\n id={_patternId}\n x={transform[0] % scaledGap[0]}\n y={transform[1] % scaledGap[1]}\n width={scaledGap[0]}\n height={scaledGap[1]}\n patternUnits=\"userSpaceOnUse\"\n patternTransform={`translate(-${scaledOffset[0]},-${scaledOffset[1]})`}\n >\n {isDots ? (\n <DotPattern radius={scaledSize / 2} className={patternClassName} />\n ) : (\n <LinePattern\n dimensions={patternDimensions}\n lineWidth={lineWidth}\n variant={variant}\n className={patternClassName}\n />\n )}\n </pattern>\n <rect x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" fill={`url(#${_patternId})`} />\n </svg>\n );\n}\n\nBackgroundComponent.displayName = 'Background';\n\n/**\n * The `<Background />` component makes it convenient to render different types of backgrounds common in node-based UIs. It comes with three variants: lines, dots and cross.\n *\n * @example\n *\n * A simple example of how to use the Background component.\n *\n * ```tsx\n * import { useState } from 'react';\n * import { ReactFlow, Background, BackgroundVariant } from '@xyflow/react';\n *\n * export default function Flow() {\n * return (\n * <ReactFlow defaultNodes={[...]} defaultEdges={[...]}>\n * <Background color=\"#ccc\" variant={BackgroundVariant.Dots} />\n * </ReactFlow>\n * );\n * }\n * ```\n *\n * @example\n *\n * In this example you can see how to combine multiple backgrounds\n *\n * ```tsx\n * import { ReactFlow, Background, BackgroundVariant } from '@xyflow/react';\n * import '@xyflow/react/style.css';\n *\n * export default function Flow() {\n * return (\n * <ReactFlow defaultNodes={[...]} defaultEdges={[...]}>\n * <Background\n * id=\"1\"\n * gap={10}\n * color=\"#f1f1f1\"\n * variant={BackgroundVariant.Lines}\n * />\n * <Background\n * id=\"2\"\n * gap={100}\n * color=\"#ccc\"\n * variant={BackgroundVariant.Lines}\n * />\n * </ReactFlow>\n * );\n * }\n * ```\n *\n * @remarks\n *\n * When combining multiple <Background /> components it’s important to give each of them a unique id prop!\n *\n */\nexport const Background = memo(BackgroundComponent);\n","export function PlusIcon() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\">\n <path d=\"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z\" />\n </svg>\n );\n}\n","export function MinusIcon() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 5\">\n <path d=\"M0 0h32v4.2H0z\" />\n </svg>\n );\n}\n","export function FitViewIcon() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 30\">\n <path d=\"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z\" />\n </svg>\n );\n}\n","export function LockIcon() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 32\">\n <path d=\"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z\" />\n </svg>\n );\n}\n","export function UnlockIcon() {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 32\">\n <path d=\"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z\" />\n </svg>\n );\n}\n","import cc from 'classcat';\n\nimport type { ControlButtonProps } from './types';\n\n/**\n * You can add buttons to the control panel by using the `<ControlButton />` component\n * and pass it as a child to the [`<Controls />`](/api-reference/components/controls) component.\n *\n * @public\n * @example\n *```jsx\n *import { MagicWand } from '@radix-ui/react-icons'\n *import { ReactFlow, Controls, ControlButton } from '@xyflow/react'\n *\n *export default function Flow() {\n * return (\n * <ReactFlow nodes={[...]} edges={[...]}>\n * <Controls>\n * <ControlButton onClick={() => alert('Something magical just happened. ✨')}>\n * <MagicWand />\n * </ControlButton>\n * </Controls>\n * </ReactFlow>\n * )\n *}\n *```\n */\nexport function ControlButton({ children, className, ...rest }: ControlButtonProps) {\n return (\n <button type=\"button\" className={cc(['react-flow__controls-button', className])} {...rest}>\n {children}\n </button>\n );\n}\n","import { memo } from 'react';\nimport cc from 'classcat';\n\nimport { useOptionsStore, useViewportStore, useReactFlowStoreApi } from '../../hooks/useReactFlowStore';\nimport { useReactFlow } from '../../hooks/useReactFlow';\nimport { Panel } from '../../components/Panel';\n\nimport { PlusIcon } from './Icons/Plus';\nimport { MinusIcon } from './Icons/Minus';\nimport { FitViewIcon } from './Icons/FitView';\nimport { LockIcon } from './Icons/Lock';\nimport { UnlockIcon } from './Icons/Unlock';\nimport { ControlButton } from './ControlButton';\nimport type { ControlProps } from './types';\n\nfunction ControlsComponent({\n style,\n showZoom = true,\n showFitView = true,\n showInteractive = true,\n fitViewOptions,\n onZoomIn,\n onZoomOut,\n onFitView,\n onInteractiveChange,\n className,\n children,\n position = 'bottom-left',\n orientation = 'vertical',\n 'aria-label': ariaLabel,\n}: ControlProps) {\n const { optionsStore } = useReactFlowStoreApi();\n const nodesDraggable = useOptionsStore((s) => s.nodesDraggable);\n const nodesConnectable = useOptionsStore((s) => s.nodesConnectable);\n const elementsSelectable = useOptionsStore((s) => s.elementsSelectable);\n const minZoom = useOptionsStore((s) => s.minZoom);\n const maxZoom = useOptionsStore((s) => s.maxZoom);\n const ariaLabelConfig = useOptionsStore((s) => s.ariaLabelConfig);\n\n const isInteractive = nodesDraggable || nodesConnectable || elementsSelectable;\n // Panning changes the viewport every frame without changing either zoom limit.\n const minZoomReached = useViewportStore((s) => s.transform[2] <= minZoom);\n const maxZoomReached = useViewportStore((s) => s.transform[2] >= maxZoom);\n const { zoomIn, zoomOut, fitView } = useReactFlow();\n\n const onZoomInHandler = () => {\n void zoomIn();\n onZoomIn?.();\n };\n\n const onZoomOutHandler = () => {\n void zoomOut();\n onZoomOut?.();\n };\n\n const onFitViewHandler = () => {\n void fitView(fitViewOptions);\n onFitView?.();\n };\n\n const onToggleInteractivity = () => {\n optionsStore.setState({\n nodesDraggable: !isInteractive,\n nodesConnectable: !isInteractive,\n elementsSelectable: !isInteractive,\n });\n\n onInteractiveChange?.(!isInteractive);\n };\n\n const orientationClass = orientation === 'horizontal' ? 'horizontal' : 'vertical';\n return (\n <Panel\n className={cc(['react-flow__controls', orientationClass, className])}\n position={position}\n style={style}\n data-testid=\"rf__controls\"\n aria-label={ariaLabel ?? ariaLabelConfig['controls.ariaLabel']}\n >\n {showZoom && (\n <>\n <ControlButton\n onClick={onZoomInHandler}\n className=\"react-flow__controls-zoomin\"\n title={ariaLabelConfig['controls.zoomIn.ariaLabel']}\n aria-label={ariaLabelConfig['controls.zoomIn.ariaLabel']}\n disabled={maxZoomReached}\n >\n <PlusIcon />\n </ControlButton>\n <ControlButton\n onClick={onZoomOutHandler}\n className=\"react-flow__controls-zoomout\"\n title={ariaLabelConfig['controls.zoomOut.ariaLabel']}\n aria-label={ariaLabelConfig['controls.zoomOut.ariaLabel']}\n disabled={minZoomReached}\n >\n <MinusIcon />\n </ControlButton>\n </>\n )}\n {showFitView && (\n <ControlButton\n className=\"react-flow__controls-fitview\"\n onClick={onFitViewHandler}\n title={ariaLabelConfig['controls.fitView.ariaLabel']}\n aria-label={ariaLabelConfig['controls.fitView.ariaLabel']}\n >\n <FitViewIcon />\n </ControlButton>\n )}\n {showInteractive && (\n <ControlButton\n className=\"react-flow__controls-interactive\"\n onClick={onToggleInteractivity}\n title={ariaLabelConfig['controls.interactive.ariaLabel']}\n aria-label={ariaLabelConfig['controls.interactive.ariaLabel']}\n >\n {isInteractive ? <UnlockIcon /> : <LockIcon />}\n </ControlButton>\n )}\n {children}\n </Panel>\n );\n}\n\nControlsComponent.displayName = 'Controls';\n\n/**\n * The `<Controls />` component renders a small panel that contains convenient\n * buttons to zoom in, zoom out, fit the view, and lock the viewport.\n *\n * @public\n * @example\n *```tsx\n *import { ReactFlow, Controls } from '@xyflow/react'\n *\n *export default function Flow() {\n * return (\n * <ReactFlow nodes={[...]} edges={[...]}>\n * <Controls />\n * </ReactFlow>\n * )\n *}\n *```\n *\n * @remarks To extend or customise the controls, you can use the [`<ControlButton />`](/api-reference/components/control-button) component\n *\n */\nexport const Controls = memo(ControlsComponent);\n","import { memo } from 'react';\nimport cc from 'classcat';\n\nimport type { MiniMapNodeProps } from './types';\n\nfunction MiniMapNodeComponent({\n id,\n x,\n y,\n width,\n height,\n style,\n color,\n strokeColor,\n strokeWidth,\n className,\n borderRadius,\n shapeRendering,\n selected,\n onClick,\n}: MiniMapNodeProps) {\n const { background, backgroundColor } = style || {};\n const fill = (color || background || backgroundColor) as string;\n\n return (\n <rect\n className={cc(['react-flow__minimap-node', { selected }, className])}\n x={x}\n y={y}\n rx={borderRadius}\n ry={borderRadius}\n width={width}\n height={height}\n style={{\n fill,\n stroke: strokeColor,\n strokeWidth,\n }}\n shapeRendering={shapeRendering}\n onClick={onClick ? (event) => onClick(event, id) : undefined}\n />\n );\n}\n\nexport const MiniMapNode = memo(MiniMapNodeComponent);\n","import { ComponentType, memo } from 'react';\nimport { getNodeDimensions } from '@xyflow/system';\n\nimport { useShallow, useNodesStore } from '../../hooks/useReactFlowStore';\nimport { MiniMapNode } from './MiniMapNode';\nimport type { NodesStore, Node } from '../../types';\nimport type { MiniMapNodes as MiniMapNodesProps, GetMiniMapNodeAttribute, MiniMapNodeProps } from './types';\nimport { useInternalNode } from '../../hooks/useNodes';\n\nconst selectorNodeIds = (s: NodesStore) => s.nodes.map((node) => node.id);\nconst getAttrFunction = <NodeType extends Node>(\n func: string | GetMiniMapNodeAttribute<NodeType> | undefined\n): GetMiniMapNodeAttribute<NodeType> => (func instanceof Function ? func : () => func);\n\nfunction MiniMapNodes<NodeType extends Node>({\n nodeStrokeColor,\n nodeColor,\n nodeClassName = '',\n nodeBorderRadius = 5,\n nodeStrokeWidth,\n /*\n * We need to rename the prop to be `CapitalCase` so that JSX will render it as\n * a component properly.\n */\n nodeComponent: NodeComponent = MiniMapNode,\n onClick,\n}: MiniMapNodesProps<NodeType>) {\n const nodeIds = useNodesStore(useShallow(selectorNodeIds));\n const nodeColorFunc = getAttrFunction<NodeType>(nodeColor);\n const nodeStrokeColorFunc = getAttrFunction<NodeType>(nodeStrokeColor);\n const nodeClassNameFunc = getAttrFunction<NodeType>(nodeClassName);\n\n const shapeRendering =\n typeof window === 'undefined' || ('chrome' in window && !!window.chrome) ? 'crispEdges' : 'geometricPrecision';\n\n return (\n <>\n {nodeIds.map((nodeId) => (\n /*\n * The split of responsibilities between MiniMapNodes and\n * NodeComponentWrapper may appear weird. However, it’s designed to\n * minimize the cost of updates when individual nodes change.\n *\n * For more details, see a similar commit in `NodeRenderer/index.tsx`.\n */\n <NodeComponentWrapper<NodeType>\n key={nodeId}\n id={nodeId}\n nodeColorFunc={nodeColorFunc}\n nodeStrokeColorFunc={nodeStrokeColorFunc}\n nodeClassNameFunc={nodeClassNameFunc}\n nodeBorderRadius={nodeBorderRadius}\n nodeStrokeWidth={nodeStrokeWidth}\n NodeComponent={NodeComponent}\n onClick={onClick}\n shapeRendering={shapeRendering}\n />\n ))}\n </>\n );\n}\n\nfunction NodeComponentWrapperInner<NodeType extends Node>({\n id,\n nodeColorFunc,\n nodeStrokeColorFunc,\n nodeClassNameFunc,\n nodeBorderRadius,\n nodeStrokeWidth,\n shapeRendering,\n NodeComponent,\n onClick,\n}: {\n id: string;\n nodeColorFunc: GetMiniMapNodeAttribute<NodeType>;\n nodeStrokeColorFunc: GetMiniMapNodeAttribute<NodeType>;\n nodeClassNameFunc: GetMiniMapNodeAttribute<NodeType>;\n nodeBorderRadius: number;\n nodeStrokeWidth?: number;\n NodeComponent: ComponentType<MiniMapNodeProps>;\n onClick: MiniMapNodesProps['onClick'];\n shapeRendering: string;\n}) {\n const internalNode = useInternalNode(id);\n\n if (!internalNode || internalNode.hidden) {\n return null;\n }\n\n const { width, height } = getNodeDimensions(internalNode);\n if (width === 0 || height === 0) {\n return null;\n }\n\n const node = internalNode.internals.userNode as NodeType;\n const { x, y } = internalNode.internals.positionAbsolute;\n\n return (\n <NodeComponent\n x={x}\n y={y}\n width={width}\n height={height}\n style={node.style}\n selected={!!node.selected}\n className={nodeClassNameFunc(node)}\n color={nodeColorFunc(node)}\n borderRadius={nodeBorderRadius}\n strokeColor={nodeStrokeColorFunc(node)}\n strokeWidth={nodeStrokeWidth}\n shapeRendering={shapeRendering}\n onClick={onClick}\n id={node.id}\n />\n );\n}\n\n// Keep per-node bailouts when the compiler rebuilds the list after nodes are added or removed.\nconst NodeComponentWrapper = memo(NodeComponentWrapperInner) as typeof NodeComponentWrapperInner;\n\n// MiniMap's render-time ref update prevents compilation, so it cannot cache this child during pan/zoom.\nexport default memo(MiniMapNodes) as typeof MiniMapNodes;\n","import { memo, useEffect, useRef, type MouseEvent, useCallback, CSSProperties } from 'react';\nimport cc from 'classcat';\nimport { getInternalNodesBounds, getBoundsOfRects, XYMinimap, type Rect, type XYMinimapInstance } from '@xyflow/system';\n\nimport {\n useEqualSelector,\n useOptionsStore,\n useNodesStore,\n useViewportStore,\n useReactFlowStoreApi,\n useShallow,\n} from '../../hooks/useReactFlowStore';\nimport { Panel } from '../../components/Panel';\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect';\nimport type { NodesStore, ViewportStore, Node } from '../../types';\n\nimport MiniMapNodes from './MiniMapNodes';\nimport type { MiniMapProps } from './types';\n\nconst defaultWidth = 200;\nconst defaultHeight = 150;\n\nconst filterHidden = (node: Node) => !node.hidden;\n\nconst viewportSelector = ({ transform, width, height }: ViewportStore) => ({ transform, width, height });\n\nconst selector = (s: NodesStore, viewport: ReturnType<typeof viewportSelector>) => {\n const viewBB: Rect = {\n x: -viewport.transform[0] / viewport.transform[2],\n y: -viewport.transform[1] / viewport.transform[2],\n width: viewport.width / viewport.transform[2],\n height: viewport.height / viewport.transform[2],\n };\n\n /*\n * the bounds only cover the visible nodes, so we have to check for a visible node\n * here as well. getInternalNodesBounds returns a rect at the origin when nothing\n * passes the filter, which would stretch the bounds to include (0, 0).\n */\n let hasVisibleNode = false;\n\n for (const node of s.nodeLookup.values()) {\n if (!node.hidden) {\n hasVisibleNode = true;\n break;\n }\n }\n\n return {\n viewBB,\n boundingRect: hasVisibleNode\n ? getBoundsOfRects(getInternalNodesBounds(s.nodeLookup, { filter: filterHidden }), viewBB)\n : viewBB,\n flowWidth: viewport.width,\n flowHeight: viewport.height,\n };\n};\ntype MiniMapSlice = ReturnType<typeof selector>;\n\nconst rectEqual = (a: Rect, b: Rect) => a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n\n// the selector builds new viewBB/boundingRect objects every call, so the default shallow equality always\n// treats them as changed; comparing the rects by value lets the minimap skip re-renders when nothing moved\nconst areEqual = (a: MiniMapSlice, b: MiniMapSlice) =>\n rectEqual(a.viewBB, b.viewBB) &&\n rectEqual(a.boundingRect, b.boundingRect) &&\n a.flowWidth === b.flowWidth &&\n a.flowHeight === b.flowHeight;\n\nconst ARIA_LABEL_KEY = 'react-flow__minimap-desc';\nfunction MiniMapComponent<NodeType extends Node = Node>({\n style,\n className,\n nodeStrokeColor,\n nodeColor,\n nodeClassName = '',\n nodeBorderRadius = 5,\n nodeStrokeWidth,\n /*\n * We need to rename the prop to be `CapitalCase` so that JSX will render it as\n * a component properly.\n */\n nodeComponent,\n bgColor,\n maskColor,\n maskStrokeColor,\n maskStrokeWidth,\n position = 'bottom-right',\n onClick,\n onNodeClick,\n pannable = false,\n zoomable = false,\n ariaLabel,\n inversePan,\n zoomStep = 1,\n offsetScale = 5,\n}: MiniMapProps<NodeType>) {\n const { optionsStore, viewportStore, nodesStore } = useReactFlowStoreApi<NodeType>();\n const svg = useRef<SVGSVGElement>(null);\n\n const rfId = useOptionsStore((s) => s.rfId);\n const panZoom = useOptionsStore((s) => s.panZoom);\n const translateExtent = useOptionsStore((s) => s.translateExtent);\n const ariaLabelConfig = useOptionsStore((s) => s.ariaLabelConfig);\n\n const viewport = useViewportStore(useShallow(viewportSelector));\n const { viewBB, boundingRect, flowWidth, flowHeight } = useNodesStore(\n useEqualSelector(\n useCallback((s: NodesStore) => selector(s, viewport), [viewport]),\n areEqual\n )\n );\n\n const elementWidth = (style?.width as number) ?? defaultWidth;\n const elementHeight = (style?.height as number) ?? defaultHeight;\n const scaledWidth = boundingRect.width / elementWidth;\n const scaledHeight = boundingRect.height / elementHeight;\n const viewScale = Math.max(scaledWidth, scaledHeight);\n const viewWidth = viewScale * elementWidth;\n const viewHeight = viewScale * elementHeight;\n const offset = offsetScale * viewScale;\n const x = boundingRect.x - (viewWidth - boundingRect.width) / 2 - offset;\n const y = boundingRect.y - (viewHeight - boundingRect.height) / 2 - offset;\n const width = viewWidth + offset * 2;\n const height = viewHeight + offset * 2;\n const labelledBy = `${ARIA_LABEL_KEY}-${rfId}`;\n const minimapInstance = useRef<XYMinimapInstance>();\n\n const viewScaleRef = useRef(viewScale);\n useIsomorphicLayoutEffect(() => {\n viewScaleRef.current = viewScale;\n }, [viewScale]);\n\n useEffect(() => {\n const currentPanZoom = optionsStore.getState().panZoom;\n if (svg.current && currentPanZoom) {\n minimapInstance.current = XYMinimap({\n domNode: svg.current,\n panZoom: currentPanZoom,\n getTransform: () => viewportStore.getState().transform,\n getViewScale: () => viewScaleRef.current,\n });\n\n return () => {\n minimapInstance.current?.destroy();\n };\n }\n }, [panZoom, optionsStore, viewportStore]);\n\n useEffect(() => {\n minimapInstance.current?.update({\n translateExtent,\n width: flowWidth,\n height: flowHeight,\n inversePan,\n pannable,\n zoomStep,\n zoomable,\n });\n }, [pannable, zoomable, inversePan, zoomStep, translateExtent, flowWidth, flowHeight]);\n\n const onSvgClick = onClick\n ? (event: MouseEvent) => {\n const [x, y] = minimapInstance.current?.pointer(event) || [0, 0];\n onClick(event, { x, y });\n }\n : undefined;\n\n const nodeClickHandler = useCallback(\n (event: MouseEvent, nodeId: string) => {\n const internalNode = nodesStore.getState().nodeLookup.get(nodeId)!;\n\n if (internalNode && onNodeClick) {\n onNodeClick(event, internalNode.internals.userNode);\n }\n },\n [onNodeClick, nodesStore]\n );\n\n const onSvgNodeClick = onNodeClick ? nodeClickHandler : undefined;\n\n const _ariaLabel = ariaLabel ?? ariaLabelConfig['minimap.ariaLabel'];\n\n return (\n <Panel\n position={position}\n style={\n {\n ...style,\n '--xy-minimap-background-color-props': typeof bgColor === 'string' ? bgColor : undefined,\n '--xy-minimap-mask-background-color-props': typeof maskColor === 'string' ? maskColor : undefined,\n '--xy-minimap-mask-stroke-color-props': typeof maskStrokeColor === 'string' ? maskStrokeColor : undefined,\n '--xy-minimap-mask-stroke-width-props':\n typeof maskStrokeWidth === 'number' ? maskStrokeWidth * viewScale : undefined,\n '--xy-minimap-node-background-color-props': typeof nodeColor === 'string' ? nodeColor : undefined,\n '--xy-minimap-node-stroke-color-props': typeof nodeStrokeColor === 'string' ? nodeStrokeColor : undefined,\n '--xy-minimap-node-stroke-width-props': typeof nodeStrokeWidth === 'number' ? nodeStrokeWidth : undefined,\n } as CSSProperties\n }\n className={cc(['react-flow__minimap', className])}\n data-testid=\"rf__minimap\"\n >\n <svg\n width={elementWidth}\n height={elementHeight}\n viewBox={`${x} ${y} ${width} ${height}`}\n className=\"react-flow__minimap-svg\"\n role=\"img\"\n aria-labelledby={labelledBy}\n ref={svg}\n onClick={onSvgClick}\n >\n {_ariaLabel && <title id={labelledBy}>{_ariaLabel}</title>}\n\n <MiniMapNodes<NodeType>\n onClick={onNodeClick ? onSvgNodeClick : undefined}\n nodeColor={nodeColor}\n nodeStrokeColor={nodeStrokeColor}\n nodeBorderRadius={nodeBorderRadius}\n nodeClassName={nodeClassName}\n nodeStrokeWidth={nodeStrokeWidth}\n nodeComponent={nodeComponent}\n />\n <path\n className=\"react-flow__minimap-mask\"\n d={`M${x - offset},${y - offset}h${width + offset * 2}v${height + offset * 2}h${-width - offset * 2}z\n M${viewBB.x},${viewBB.y}h${viewBB.width}v${viewBB.height}h${-viewBB.width}z`}\n fillRule=\"evenodd\"\n pointerEvents=\"none\"\n />\n </svg>\n </Panel>\n );\n}\n\nMiniMapComponent.displayName = 'MiniMap';\n\n/**\n * The `<MiniMap />` component can be used to render an overview of your flow. It\n * renders each node as an SVG element and visualizes where the current viewport is\n * in relation to the rest of the flow.\n *\n * @public\n * @example\n *\n * ```jsx\n *import { ReactFlow, MiniMap } from '@xyflow/react';\n *\n *export default function Flow() {\n * return (\n * <ReactFlow nodes={[...]} edges={[...]}>\n * <MiniMap nodeStrokeWidth={3} />\n * </ReactFlow>\n * );\n *}\n *```\n */\nexport const MiniMap = memo(MiniMapComponent) as typeof MiniMapComponent;\n","// https://d3js.org/d3-zoom/ v3.0.1 Copyright 2010-2026 Mike Bostock\nimport { dispatch } from 'd3-dispatch';\nimport { dragDisable, dragEnable } from 'd3-drag';\nimport { interpolateZoom } from 'd3-interpolate';\nimport { select, pointer } from 'd3-selection';\nimport { interrupt } from 'd3-transition';\n\nvar constant = x => () => x;\n\nfunction ZoomEvent(type, {\n sourceEvent,\n target,\n transform,\n dispatch\n}) {\n Object.defineProperties(this, {\n type: {value: type, enumerable: true, configurable: true},\n sourceEvent: {value: sourceEvent, enumerable: true, configurable: true},\n target: {value: target, enumerable: true, configurable: true},\n transform: {value: transform, enumerable: true, configurable: true},\n _: {value: dispatch}\n });\n}\n\nfunction Transform(k, x, y) {\n this.k = k;\n this.x = x;\n this.y = y;\n}\n\nTransform.prototype = {\n constructor: Transform,\n scale: function(k) {\n return k === 1 ? this : new Transform(this.k * k, this.x, this.y);\n },\n translate: function(x, y) {\n return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);\n },\n apply: function(point) {\n return [point[0] * this.k + this.x, point[1] * this.k + this.y];\n },\n applyX: function(x) {\n return x * this.k + this.x;\n },\n applyY: function(y) {\n return y * this.k + this.y;\n },\n invert: function(location) {\n return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];\n },\n invertX: function(x) {\n return (x - this.x) / this.k;\n },\n invertY: function(y) {\n return (y - this.y) / this.k;\n },\n rescaleX: function(x) {\n return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));\n },\n rescaleY: function(y) {\n return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));\n },\n toString: function() {\n return \"translate(\" + this.x + \",\" + this.y + \") scale(\" + this.k + \")\";\n }\n};\n\nvar identity = new Transform(1, 0, 0);\n\ntransform.prototype = Transform.prototype;\n\nfunction transform(node) {\n while (!node.__zoom) if (!(node = node.parentNode)) return identity;\n return node.__zoom;\n}\n\nfunction nopropagation(event) {\n event.stopImmediatePropagation();\n}\n\nfunction noevent(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n\n// Ignore right-click, since that should open the context menu.\n// except for pinch-to-zoom, which is sent as a wheel+ctrlKey event\nfunction defaultFilter(event) {\n return (!event.ctrlKey || event.type === 'wheel') && !event.button;\n}\n\nfunction defaultExtent() {\n var e = this;\n if (e instanceof SVGElement) {\n e = e.ownerSVGElement || e;\n if (e.hasAttribute(\"viewBox\")) {\n e = e.viewBox.baseVal;\n return [[e.x, e.y], [e.x + e.width, e.y + e.height]];\n }\n return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];\n }\n return [[0, 0], [e.clientWidth, e.clientHeight]];\n}\n\nfunction defaultTransform() {\n return this.__zoom || identity;\n}\n\nfunction defaultWheelDelta(event) {\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002) * (event.ctrlKey ? 10 : 1);\n}\n\nfunction defaultTouchable() {\n return navigator.maxTouchPoints || (\"ontouchstart\" in this);\n}\n\nfunction defaultConstrain(transform, extent, translateExtent) {\n var dx0 = transform.invertX(extent[0][0]) - translateExtent[0][0],\n dx1 = transform.invertX(extent[1][0]) - translateExtent[1][0],\n dy0 = transform.invertY(extent[0][1]) - translateExtent[0][1],\n dy1 = transform.invertY(extent[1][1]) - translateExtent[1][1];\n return transform.translate(\n dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),\n dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)\n );\n}\n\nfunction zoom() {\n var filter = defaultFilter,\n extent = defaultExtent,\n constrain = defaultConstrain,\n wheelDelta = defaultWheelDelta,\n touchable = defaultTouchable,\n scaleExtent = [0, Infinity],\n translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]],\n duration = 250,\n interpolate = interpolateZoom,\n listeners = dispatch(\"start\", \"zoom\", \"end\"),\n touchstarting,\n touchfirst,\n touchending,\n touchDelay = 500,\n wheelDelay = 150,\n clickDistance2 = 0,\n tapDistance = 10;\n\n function zoom(selection) {\n selection\n .property(\"__zoom\", defaultTransform)\n .on(\"wheel.zoom\", wheeled, {passive: false})\n .on(\"mousedown.zoom\", mousedowned)\n .on(\"dblclick.zoom\", dblclicked)\n .filter(touchable)\n .on(\"touchstart.zoom\", touchstarted)\n .on(\"touchmove.zoom\", touchmoved)\n .on(\"touchend.zoom touchcancel.zoom\", touchended)\n .style(\"-webkit-tap-highlight-color\", \"rgba(0,0,0,0)\");\n }\n\n zoom.transform = function(collection, transform, point, event) {\n var selection = collection.selection ? collection.selection() : collection;\n selection.property(\"__zoom\", defaultTransform);\n if (collection !== selection) {\n schedule(collection, transform, point, event);\n } else {\n selection.interrupt().each(function() {\n gesture(this, arguments)\n .event(event)\n .start()\n .zoom(null, typeof transform === \"function\" ? transform.apply(this, arguments) : transform)\n .end();\n });\n }\n };\n\n zoom.scaleBy = function(selection, k, p, event) {\n zoom.scaleTo(selection, function() {\n var k0 = this.__zoom.k,\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return k0 * k1;\n }, p, event);\n };\n\n zoom.scaleTo = function(selection, k, p, event) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t0 = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p,\n p1 = t0.invert(p0),\n k1 = typeof k === \"function\" ? k.apply(this, arguments) : k;\n return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);\n }, p, event);\n };\n\n zoom.translateBy = function(selection, x, y, event) {\n zoom.transform(selection, function() {\n return constrain(this.__zoom.translate(\n typeof x === \"function\" ? x.apply(this, arguments) : x,\n typeof y === \"function\" ? y.apply(this, arguments) : y\n ), extent.apply(this, arguments), translateExtent);\n }, null, event);\n };\n\n zoom.translateTo = function(selection, x, y, p, event) {\n zoom.transform(selection, function() {\n var e = extent.apply(this, arguments),\n t = this.__zoom,\n p0 = p == null ? centroid(e) : typeof p === \"function\" ? p.apply(this, arguments) : p;\n return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(\n typeof x === \"function\" ? -x.apply(this, arguments) : -x,\n typeof y === \"function\" ? -y.apply(this, arguments) : -y\n ), e, translateExtent);\n }, p, event);\n };\n\n function scale(transform, k) {\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k));\n return k === transform.k ? transform : new Transform(k, transform.x, transform.y);\n }\n\n function translate(transform, p0, p1) {\n var x = p0[0] - p1[0] * transform.k, y = p0[1] - p1[1] * transform.k;\n return x === transform.x && y === transform.y ? transform : new Transform(transform.k, x, y);\n }\n\n function centroid(extent) {\n return [(+extent[0][0] + +extent[1][0]) / 2, (+extent[0][1] + +extent[1][1]) / 2];\n }\n\n function schedule(transition, transform, point, event) {\n transition\n .on(\"start.zoom\", function() { gesture(this, arguments).event(event).start(); })\n .on(\"interrupt.zoom end.zoom\", function() { gesture(this, arguments).event(event).end(); })\n .tween(\"zoom\", function() {\n var that = this,\n args = arguments,\n g = gesture(that, args).event(event),\n e = extent.apply(that, args),\n p = point == null ? centroid(e) : typeof point === \"function\" ? point.apply(that, args) : point,\n w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]),\n a = that.__zoom,\n b = typeof transform === \"function\" ? transform.apply(that, args) : transform,\n i = interpolate(a.invert(p).concat(w / a.k), b.invert(p).concat(w / b.k));\n return function(t) {\n if (t === 1) t = b; // Avoid rounding error on end.\n else { var l = i(t), k = w / l[2]; t = new Transform(k, p[0] - l[0] * k, p[1] - l[1] * k); }\n g.zoom(null, t);\n };\n });\n }\n\n function gesture(that, args, clean) {\n return (!clean && that.__zooming) || new Gesture(that, args);\n }\n\n function Gesture(that, args) {\n this.that = that;\n this.args = args;\n this.active = 0;\n this.sourceEvent = null;\n this.extent = extent.apply(that, args);\n this.taps = 0;\n }\n\n Gesture.prototype = {\n event: function(event) {\n if (event) this.sourceEvent = event;\n return this;\n },\n start: function() {\n if (++this.active === 1) {\n this.that.__zooming = this;\n this.emit(\"start\");\n }\n return this;\n },\n zoom: function(key, transform) {\n if (this.mouse && key !== \"mouse\") this.mouse[1] = transform.invert(this.mouse[0]);\n if (this.touch0 && key !== \"touch\") this.touch0[1] = transform.invert(this.touch0[0]);\n if (this.touch1 && key !== \"touch\") this.touch1[1] = transform.invert(this.touch1[0]);\n this.that.__zoom = transform;\n this.emit(\"zoom\");\n return this;\n },\n end: function() {\n if (--this.active === 0) {\n delete this.that.__zooming;\n this.emit(\"end\");\n }\n return this;\n },\n emit: function(type) {\n var d = select(this.that).datum();\n listeners.call(\n type,\n this.that,\n new ZoomEvent(type, {\n sourceEvent: this.sourceEvent,\n target: zoom,\n transform: this.that.__zoom,\n dispatch: listeners\n }),\n d\n );\n }\n };\n\n function wheeled(event, ...args) {\n if (!filter.apply(this, arguments)) return;\n var g = gesture(this, args).event(event),\n t = this.__zoom,\n k = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))),\n p = pointer(event);\n\n // If the mouse is in the same location as before, reuse it.\n // If there were recent wheel events, reset the wheel idle timeout.\n if (g.wheel) {\n if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {\n g.mouse[1] = t.invert(g.mouse[0] = p);\n }\n clearTimeout(g.wheel);\n }\n\n // If this wheel event won’t trigger a transform change, ignore it.\n else if (t.k === k) return;\n\n // Otherwise, capture the mouse point and location at the start.\n else {\n g.mouse = [p, t.invert(p)];\n interrupt(this);\n g.start();\n }\n\n noevent(event);\n g.wheel = setTimeout(wheelidled, wheelDelay);\n g.zoom(\"mouse\", constrain(translate(scale(t, k), g.mouse[0], g.mouse[1]), g.extent, translateExtent));\n\n function wheelidled() {\n g.wheel = null;\n g.end();\n }\n }\n\n function mousedowned(event, ...args) {\n if (touchending || !filter.apply(this, arguments)) return;\n var currentTarget = event.currentTarget,\n g = gesture(this, args, true).event(event),\n v = select(event.view).on(\"mousemove.zoom\", mousemoved, true).on(\"mouseup.zoom\", mouseupped, true),\n p = pointer(event, currentTarget),\n x0 = event.clientX,\n y0 = event.clientY;\n\n dragDisable(event.view);\n nopropagation(event);\n g.mouse = [p, this.__zoom.invert(p)];\n interrupt(this);\n g.start();\n\n function mousemoved(event) {\n noevent(event);\n if (!g.moved) {\n var dx = event.clientX - x0, dy = event.clientY - y0;\n g.moved = dx * dx + dy * dy > clickDistance2;\n }\n g.event(event)\n .zoom(\"mouse\", constrain(translate(g.that.__zoom, g.mouse[0] = pointer(event, currentTarget), g.mouse[1]), g.extent, translateExtent));\n }\n\n function mouseupped(event) {\n v.on(\"mousemove.zoom mouseup.zoom\", null);\n dragEnable(event.view, g.moved);\n noevent(event);\n g.event(event).end();\n }\n }\n\n function dblclicked(event, ...args) {\n if (!filter.apply(this, arguments)) return;\n var t0 = this.__zoom,\n p0 = pointer(event.changedTouches ? event.changedTouches[0] : event, this),\n p1 = t0.invert(p0),\n k1 = t0.k * (event.shiftKey ? 0.5 : 2),\n t1 = constrain(translate(scale(t0, k1), p0, p1), extent.apply(this, args), translateExtent);\n\n noevent(event);\n if (duration > 0) select(this).transition().duration(duration).call(schedule, t1, p0, event);\n else select(this).call(zoom.transform, t1, p0, event);\n }\n\n function touchstarted(event, ...args) {\n if (!filter.apply(this, arguments)) return;\n var touches = event.touches,\n n = touches.length,\n g = gesture(this, args, event.changedTouches.length === n).event(event),\n started, i, t, p;\n\n nopropagation(event);\n for (i = 0; i < n; ++i) {\n t = touches[i], p = pointer(t, this);\n p = [p, this.__zoom.invert(p), t.identifier];\n if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;\n else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;\n }\n\n if (touchstarting) touchstarting = clearTimeout(touchstarting);\n\n if (started) {\n if (g.taps < 2) touchfirst = p[0], touchstarting = setTimeout(function() { touchstarting = null; }, touchDelay);\n interrupt(this);\n g.start();\n }\n }\n\n function touchmoved(event, ...args) {\n if (!this.__zooming) return;\n var g = gesture(this, args).event(event),\n touches = event.changedTouches,\n n = touches.length, i, t, p, l;\n\n noevent(event);\n for (i = 0; i < n; ++i) {\n t = touches[i], p = pointer(t, this);\n if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;\n else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;\n }\n t = g.that.__zoom;\n if (g.touch1) {\n var p0 = g.touch0[0], l0 = g.touch0[1],\n p1 = g.touch1[0], l1 = g.touch1[1],\n dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp,\n dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;\n t = scale(t, Math.sqrt(dp / dl));\n p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];\n l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];\n }\n else if (g.touch0) p = g.touch0[0], l = g.touch0[1];\n else return;\n\n g.zoom(\"touch\", constrain(translate(t, p, l), g.extent, translateExtent));\n }\n\n function touchended(event, ...args) {\n if (!this.__zooming) return;\n var g = gesture(this, args).event(event),\n touches = event.changedTouches,\n n = touches.length, i, t;\n\n nopropagation(event);\n if (touchending) clearTimeout(touchending);\n touchending = setTimeout(function() { touchending = null; }, touchDelay);\n for (i = 0; i < n; ++i) {\n t = touches[i];\n if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;\n else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;\n }\n if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;\n if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);\n else {\n g.end();\n // If this was a dbltap, reroute to the (optional) dblclick.zoom handler.\n if (g.taps === 2) {\n t = pointer(t, this);\n if (Math.hypot(touchfirst[0] - t[0], touchfirst[1] - t[1]) < tapDistance) {\n var p = select(this).on(\"dblclick.zoom\");\n if (p) p.apply(this, arguments);\n }\n }\n }\n }\n\n zoom.wheelDelta = function(_) {\n return arguments.length ? (wheelDelta = typeof _ === \"function\" ? _ : constant(+_), zoom) : wheelDelta;\n };\n\n zoom.filter = function(_) {\n return arguments.length ? (filter = typeof _ === \"function\" ? _ : constant(!!_), zoom) : filter;\n };\n\n zoom.touchable = function(_) {\n return arguments.length ? (touchable = typeof _ === \"function\" ? _ : constant(!!_), zoom) : touchable;\n };\n\n zoom.extent = function(_) {\n return arguments.length ? (extent = typeof _ === \"function\" ? _ : constant([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent;\n };\n\n zoom.scaleExtent = function(_) {\n return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];\n };\n\n zoom.translateExtent = function(_) {\n return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];\n };\n\n zoom.constrain = function(_) {\n return arguments.length ? (constrain = _, zoom) : constrain;\n };\n\n zoom.duration = function(_) {\n return arguments.length ? (duration = +_, zoom) : duration;\n };\n\n zoom.interpolate = function(_) {\n return arguments.length ? (interpolate = _, zoom) : interpolate;\n };\n\n zoom.on = function() {\n var value = listeners.on.apply(listeners, arguments);\n return value === listeners ? zoom : value;\n };\n\n zoom.clickDistance = function(_) {\n return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);\n };\n\n zoom.tapDistance = function(_) {\n return arguments.length ? (tapDistance = +_, zoom) : tapDistance;\n };\n\n return zoom;\n}\n\nexport { Transform as ZoomTransform, zoom, identity as zoomIdentity, transform as zoomTransform };\n","import { memo, useRef, useEffect } from 'react';\nimport cc from 'classcat';\nimport {\n XYResizer,\n ResizeControlVariant,\n type XYResizerInstance,\n type XYResizerChange,\n type XYResizerChildChange,\n type NodeChange,\n type DimensionChange,\n handleExpandParent,\n evaluateAbsolutePosition,\n ParentExpandChild,\n ControlPosition,\n positionChange,\n type PositionChange,\n XYPosition,\n} from '@xyflow/system';\n\nimport { useReactFlowStoreApi, useViewportStore } from '../../hooks/useReactFlowStore';\nimport { useNodeId } from '../../contexts/NodeIdContext';\nimport type { ResizeControlProps, ResizeControlLineProps } from './types';\n\nconst defaultPositions: Record<ResizeControlVariant, ControlPosition> = {\n [ResizeControlVariant.Line]: 'right',\n [ResizeControlVariant.Handle]: 'bottom-right',\n};\n\nfunction ResizeControl({\n nodeId,\n position,\n variant = ResizeControlVariant.Handle,\n className,\n style = undefined,\n children,\n color,\n minWidth = 10,\n minHeight = 10,\n maxWidth = Number.MAX_VALUE,\n maxHeight = Number.MAX_VALUE,\n keepAspectRatio = false,\n resizeDirection,\n autoScale = true,\n shouldResize,\n onResizeStart,\n onResize,\n onResizeEnd,\n}: ResizeControlProps) {\n const contextNodeId = useNodeId();\n const id = typeof nodeId === 'string' ? nodeId : contextNodeId;\n const { optionsStore, viewportStore, nodesStore } = useReactFlowStoreApi();\n const resizeControlRef = useRef<HTMLDivElement>(null);\n const isHandleControl = variant === ResizeControlVariant.Handle;\n\n const scale = useViewportStore((s) =>\n isHandleControl && autoScale ? `${Math.max(1 / s.transform[2], 1)}` : undefined\n );\n\n const resizer = useRef<XYResizerInstance | null>(null);\n const controlPosition = position ?? defaultPositions[variant];\n\n useEffect(() => {\n if (!resizeControlRef.current || !id) {\n return;\n }\n\n if (!resizer.current) {\n resizer.current = XYResizer({\n domNode: resizeControlRef.current,\n nodeId: id,\n getStoreItems: () => {\n const { nodeLookup } = nodesStore.getState();\n const { transform } = viewportStore.getState();\n const { snapGrid, snapToGrid, nodeOrigin, domNode } = optionsStore.getState();\n return {\n nodeLookup,\n transform,\n snapGrid,\n snapToGrid,\n nodeOrigin,\n paneDomNode: domNode,\n };\n },\n onChange: (change: XYResizerChange, childChanges: XYResizerChildChange[]) => {\n const { emitNodeChanges, nodeOrigin } = optionsStore.getState();\n const { nodeLookup, parentLookup } = nodesStore.getState();\n const changes: NodeChange[] = [];\n const nextPosition = { x: change.x, y: change.y };\n const node = nodeLookup.get(id);\n\n if (node && node.expandParent && node.parentId) {\n const origin = node.origin ?? nodeOrigin;\n const width = change.width ?? node.measured.width ?? 0;\n const height = change.height ?? node.measured.height ?? 0;\n\n const child: ParentExpandChild = {\n id: node.id,\n parentId: node.parentId,\n rect: {\n width,\n height,\n ...evaluateAbsolutePosition(\n {\n x: change.x ?? node.position.x,\n y: change.y ?? node.position.y,\n },\n { width, height },\n node.parentId,\n nodeLookup,\n origin\n ),\n },\n };\n\n const parentExpandChanges = handleExpandParent([child], nodeLookup, parentLookup, nodeOrigin);\n changes.push(...parentExpandChanges);\n\n /*\n * when the parent was expanded by the child node, its position will be clamped at\n * 0,0 when node origin is 0,0 and to width, height if it's 1,1\n */\n nextPosition.x = change.x ? Math.max(origin[0] * width, change.x) : undefined;\n nextPosition.y = change.y ? Math.max(origin[1] * height, change.y) : undefined;\n }\n\n if (nextPosition.x !== undefined && nextPosition.y !== undefined) {\n changes.push(positionChange(id, nextPosition as XYPosition));\n }\n\n if (change.width !== undefined && change.height !== undefined) {\n const setAttributes = !resizeDirection ? true : resizeDirection === 'horizontal' ? 'width' : 'height';\n const dimensionChange: DimensionChange = {\n id,\n type: 'dimensions',\n resizing: true,\n setAttributes,\n dimensions: {\n width: change.width,\n height: change.height,\n },\n };\n\n changes.push(dimensionChange);\n }\n\n for (const childChange of childChanges) {\n const _positionChange: PositionChange = {\n ...childChange,\n type: 'position',\n };\n\n changes.push(_positionChange);\n }\n\n emitNodeChanges(changes);\n },\n onEnd: ({ width, height }) => {\n const _dimensionChange: DimensionChange = {\n id: id,\n type: 'dimensions',\n resizing: false,\n dimensions: {\n width,\n height,\n },\n };\n optionsStore.getState().emitNodeChanges([_dimensionChange]);\n },\n });\n }\n\n resizer.current.update({\n controlPosition,\n boundaries: {\n minWidth,\n minHeight,\n maxWidth,\n maxHeight,\n },\n keepAspectRatio,\n resizeDirection,\n onResizeStart,\n onResize,\n onResizeEnd,\n shouldResize,\n });\n\n return () => {\n resizer.current?.destroy();\n };\n }, [\n controlPosition,\n minWidth,\n minHeight,\n maxWidth,\n maxHeight,\n keepAspectRatio,\n onResizeStart,\n onResize,\n onResizeEnd,\n shouldResize,\n id,\n resizeDirection,\n optionsStore,\n nodesStore,\n viewportStore,\n ]);\n\n const positionClassNames = controlPosition.split('-');\n const colorProperty = isHandleControl ? 'backgroundColor' : 'borderColor';\n\n return (\n <div\n className={cc(['react-flow__resize-control', 'nodrag', ...positionClassNames, variant, className])}\n ref={resizeControlRef}\n style={{\n ...style,\n scale,\n ...(color && { [colorProperty]: color }),\n }}\n >\n {children}\n </div>\n );\n}\n\nexport function ResizeControlLine(props: ResizeControlLineProps) {\n return <ResizeControl {...props} variant={ResizeControlVariant.Line} />;\n}\n\n/**\n * To create your own resizing UI, you can use the `NodeResizeControl` component where you can pass children (such as icons).\n * @public\n *\n */\nexport const NodeResizeControl = memo(ResizeControl);\n","import { ResizeControlVariant, XY_RESIZER_HANDLE_POSITIONS, XY_RESIZER_LINE_POSITIONS } from '@xyflow/system';\n\nimport { NodeResizeControl } from './NodeResizeControl';\nimport type { NodeResizerProps } from './types';\n\n/**\n * The `<NodeResizer />` component can be used to add a resize functionality to your\n * nodes. It renders draggable controls around the node to resize in all directions.\n * @public\n *\n * @example\n *```jsx\n *import { memo } from 'react';\n *import { Handle, Position, NodeResizer } from '@xyflow/react';\n *\n *function ResizableNode({ data }) {\n * return (\n * <>\n * <NodeResizer minWidth={100} minHeight={30} />\n * <Handle type=\"target\" position={Position.Left} />\n * <div style={{ padding: 10 }}>{data.label}</div>\n * <Handle type=\"source\" position={Position.Right} />\n * </>\n * );\n *};\n *\n *export default memo(ResizableNode);\n *```\n */\nexport function NodeResizer({\n nodeId,\n isVisible = true,\n handleClassName,\n handleStyle,\n lineClassName,\n lineStyle,\n color,\n minWidth = 10,\n minHeight = 10,\n maxWidth = Number.MAX_VALUE,\n maxHeight = Number.MAX_VALUE,\n keepAspectRatio = false,\n autoScale = true,\n shouldResize,\n onResizeStart,\n onResize,\n onResizeEnd,\n}: NodeResizerProps) {\n if (!isVisible) {\n return null;\n }\n\n return (\n <>\n {XY_RESIZER_LINE_POSITIONS.map((position) => (\n <NodeResizeControl\n key={position}\n className={lineClassName}\n style={lineStyle}\n nodeId={nodeId}\n position={position}\n variant={ResizeControlVariant.Line}\n color={color}\n minWidth={minWidth}\n minHeight={minHeight}\n maxWidth={maxWidth}\n maxHeight={maxHeight}\n onResizeStart={onResizeStart}\n keepAspectRatio={keepAspectRatio}\n autoScale={autoScale}\n shouldResize={shouldResize}\n onResize={onResize}\n onResizeEnd={onResizeEnd}\n />\n ))}\n {XY_RESIZER_HANDLE_POSITIONS.map((position) => (\n <NodeResizeControl\n key={position}\n className={handleClassName}\n style={handleStyle}\n nodeId={nodeId}\n position={position}\n color={color}\n minWidth={minWidth}\n minHeight={minHeight}\n maxWidth={maxWidth}\n maxHeight={maxHeight}\n onResizeStart={onResizeStart}\n keepAspectRatio={keepAspectRatio}\n autoScale={autoScale}\n shouldResize={shouldResize}\n onResize={onResize}\n onResizeEnd={onResizeEnd}\n />\n ))}\n </>\n );\n}\n","import { type ReactNode, type ReactPortal } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { useOptionsStore } from '../../hooks/useReactFlowStore';\n\nexport function NodeToolbarPortal({ children }: { children: ReactNode }): ReactPortal | null {\n const domNode = useOptionsStore((s) => s.domNode);\n\n const wrapperRef = domNode?.querySelector('.react-flow__renderer');\n\n if (!wrapperRef) {\n return null;\n }\n\n return createPortal(children, wrapperRef);\n}\n","import { CSSProperties } from 'react';\nimport cc from 'classcat';\nimport { Position, getNodeToolbarTransform } from '@xyflow/system';\n\nimport { NodesStore } from '../../types';\nimport { useNodesStore } from '../../hooks/useReactFlowStore';\nimport { useInternalNodes } from '../../hooks/useNodes';\nimport { useNodeId } from '../../contexts/NodeIdContext';\nimport { NodeToolbarPortal } from './NodeToolbarPortal';\nimport type { NodeToolbarProps } from './types';\nimport { useReactFlow } from '../../hooks/useReactFlow';\nimport { useViewport } from '../../hooks/useViewport';\n\nconst storeSelector = (state: NodesStore) => state.nodes.filter((node) => node.selected).length;\n\n/**\n * This component can render a toolbar or tooltip to one side of a custom node. This\n * toolbar doesn't scale with the viewport so that the content is always visible.\n *\n * @public\n * @example\n * ```jsx\n *import { memo } from 'react';\n *import { Handle, Position, NodeToolbar } from '@xyflow/react';\n *\n *function CustomNode({ data }) {\n * return (\n * <>\n * <NodeToolbar isVisible={data.toolbarVisible} position={data.toolbarPosition}>\n * <button>delete</button>\n * <button>copy</button>\n * <button>expand</button>\n * </NodeToolbar>\n *\n * <div style={{ padding: '10px 20px' }}>\n * {data.label}\n * </div>\n *\n * <Handle type=\"target\" position={Position.Left} />\n * <Handle type=\"source\" position={Position.Right} />\n * </>\n * );\n *};\n *\n *export default memo(CustomNode);\n *```\n * @remarks By default, the toolbar is only visible when a node is selected. If multiple\n * nodes are selected it will not be visible to prevent overlapping toolbars or\n * clutter. You can override this behavior by setting the `isVisible` prop to `true`.\n */\nexport function NodeToolbar({\n nodeId,\n children,\n className,\n style,\n isVisible,\n position = Position.Top,\n offset = 10,\n align = 'center',\n ...rest\n}: NodeToolbarProps) {\n const contextNodeId = useNodeId();\n const { getNodesBounds } = useReactFlow();\n\n const nodeIds = Array.isArray(nodeId) ? nodeId : [nodeId || contextNodeId || ''];\n const nodes = useInternalNodes(nodeIds);\n const selectedNodesCount = useNodesStore(storeSelector);\n const { x, y, zoom } = useViewport();\n\n // if isVisible is not set, we show the toolbar only if its node is selected and no other node is selected\n const isActive =\n typeof isVisible === 'boolean' ? isVisible : nodes.length === 1 && nodes[0].selected && selectedNodesCount === 1;\n\n if (!isActive || !nodes.length) {\n return null;\n }\n\n const nodeRect = getNodesBounds(nodes);\n const zIndex = Math.max(...nodes.map((node) => node.internals.z + 1));\n\n const wrapperStyle: CSSProperties = {\n position: 'absolute',\n transform: getNodeToolbarTransform(nodeRect, { x, y, zoom }, position, offset, align),\n zIndex,\n ...style,\n };\n\n return (\n <NodeToolbarPortal>\n <div\n style={wrapperStyle}\n className={cc(['react-flow__node-toolbar', className])}\n {...rest}\n // @todo: check if we could only do this for non-prod envs\n data-id={nodes.reduce((acc, node) => `${acc}${node.id} `, '').trim()}\n >\n {children}\n </div>\n </NodeToolbarPortal>\n );\n}\n","import cc from 'classcat';\nimport { getEdgeToolbarTransform, getElevatedEdgeZIndex } from '@xyflow/system';\n\nimport { EdgeLabelRenderer } from '../../components/EdgeLabelRenderer';\nimport { useOptionsStore, useViewportStore } from '../../hooks/useReactFlowStore';\nimport { useEdge } from '../../hooks/useEdges';\nimport { useInternalNode } from '../../hooks/useNodes';\nimport type { Edge } from '../../types';\nimport type { EdgeToolbarProps } from './types';\n\n/**\n * This component can render a toolbar or tooltip to one side of a custom edge. This\n * toolbar doesn't scale with the viewport so that the content stays the same size.\n *\n * @public\n * @example\n * ```jsx\n * import { EdgeToolbar, BaseEdge, getBezierPath, type EdgeProps } from \"@xyflow/react\";\n *\n * export function CustomEdge({ id, data, ...props }: EdgeProps) {\n * const [edgePath, centerX, centerY] = getBezierPath(props);\n *\n * return (\n * <>\n * <BaseEdge id={id} path={edgePath} />\n * <EdgeToolbar edgeId={id} x={centerX} y={centerY} isVisible>\n * <button onClick={() => console.log('edge', id, 'click')}>Click me</button>\n * </EdgeToolbar>\n * </>\n * );\n * }\n * ```\n */\nexport function EdgeToolbar({ edgeId, isVisible, ...rest }: EdgeToolbarProps) {\n const edge = useEdge(edgeId);\n const isActive = typeof isVisible === 'boolean' ? isVisible : edge?.selected;\n\n if (!isActive || !edge) {\n return null;\n }\n\n return <EdgeToolbarInner edge={edge} {...rest} />;\n}\n\ntype EdgeToolbarInnerProps = Omit<EdgeToolbarProps, 'edgeId' | 'isVisible'> & {\n edge: Edge;\n};\n\n/*\n * Only mounted while the toolbar is visible, so hidden toolbars don't subscribe\n * to the viewport or to the source/target nodes.\n */\nfunction EdgeToolbarInner({\n edge,\n x,\n y,\n children,\n className,\n style,\n alignX = 'center',\n alignY = 'center',\n ...rest\n}: EdgeToolbarInnerProps) {\n const zoom = useViewportStore((s) => s.transform[2]);\n const elevateEdgesOnSelect = useOptionsStore((s) => s.elevateEdgesOnSelect);\n const zIndexMode = useOptionsStore((s) => s.zIndexMode);\n const sourceNode = useInternalNode(edge.source);\n const targetNode = useInternalNode(edge.target);\n\n // same z-index as the edge (incl. elevation on select and parent nodes).\n // The label renderer comes after the edges in the DOM, so the toolbar is drawn above\n // its edge, and nodes on the same level stay above the toolbar.\n const zIndex =\n sourceNode && targetNode\n ? getElevatedEdgeZIndex({\n selected: edge.selected,\n zIndex: edge.zIndex,\n sourceNode,\n targetNode,\n elevateOnSelect: elevateEdgesOnSelect,\n zIndexMode,\n })\n : (edge.zIndex ?? 0);\n\n const transform = getEdgeToolbarTransform(x, y, zoom, alignX, alignY);\n\n return (\n <EdgeLabelRenderer>\n <div\n style={{\n position: 'absolute',\n transform,\n zIndex,\n pointerEvents: 'all',\n transformOrigin: '0 0',\n ...style,\n }}\n className={cc(['react-flow__edge-toolbar', className])}\n data-id={edge.id}\n {...rest}\n >\n {children}\n </div>\n </EdgeLabelRenderer>\n );\n}\n","// https://d3js.org/d3-transition/ v3.0.2 Copyright 2010-2026 Mike Bostock\nimport { namespace, matcher, selector, selectorAll, selection, style } from 'd3-selection';\nimport { dispatch } from 'd3-dispatch';\nimport { timer, timeout, now } from 'd3-timer';\nimport { interpolateNumber, interpolateRgb, interpolateString, interpolateTransformSvg, interpolateTransformCss } from 'd3-interpolate';\nimport { color } from 'd3-color';\nimport { easeCubicInOut } from 'd3-ease';\n\nvar emptyOn = dispatch(\"start\", \"end\", \"cancel\", \"interrupt\");\nvar emptyTween = [];\n\nvar CREATED = 0;\nvar SCHEDULED = 1;\nvar STARTING = 2;\nvar STARTED = 3;\nvar RUNNING = 4;\nvar ENDING = 5;\nvar ENDED = 6;\n\nfunction schedule(node, name, id, index, group, timing) {\n var schedules = node.__transition;\n if (!schedules) node.__transition = {};\n else if (id in schedules) return;\n create(node, id, {\n name: name,\n index: index, // For context during callback.\n group: group, // For context during callback.\n on: emptyOn,\n tween: emptyTween,\n time: timing.time,\n delay: timing.delay,\n duration: timing.duration,\n ease: timing.ease,\n timer: null,\n state: CREATED\n });\n}\n\nfunction init(node, id) {\n var schedule = get(node, id);\n if (schedule.state > CREATED) throw new Error(\"too late; already scheduled\");\n return schedule;\n}\n\nfunction set(node, id) {\n var schedule = get(node, id);\n if (schedule.state > STARTED) throw new Error(\"too late; already running\");\n return schedule;\n}\n\nfunction get(node, id) {\n var schedule = node.__transition;\n if (!schedule || !(schedule = schedule[id])) throw new Error(\"transition not found\");\n return schedule;\n}\n\nfunction create(node, id, self) {\n var schedules = node.__transition,\n tween;\n\n // Initialize the self timer when the transition is created.\n // Note the actual delay is not known until the first callback!\n schedules[id] = self;\n self.timer = timer(schedule, 0, self.time);\n\n function schedule(elapsed) {\n self.state = SCHEDULED;\n self.timer.restart(start, self.delay, self.time);\n\n // If the elapsed delay is less than our first sleep, start immediately.\n if (self.delay <= elapsed) start(elapsed - self.delay);\n }\n\n function start(elapsed) {\n var i, j, n, o;\n\n // If the state is not SCHEDULED, then we previously errored on start.\n if (self.state !== SCHEDULED) return stop();\n\n for (i in schedules) {\n o = schedules[i];\n if (o.name !== self.name) continue;\n\n // While this element already has a starting transition during this frame,\n // defer starting an interrupting transition until that transition has a\n // chance to tick (and possibly end); see d3/d3-transition#54!\n if (o.state === STARTED) return timeout(start);\n\n // Interrupt the active transition, if any.\n if (o.state === RUNNING) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"interrupt\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n\n // Cancel any pre-empted transitions.\n else if (+i < id) {\n o.state = ENDED;\n o.timer.stop();\n o.on.call(\"cancel\", node, node.__data__, o.index, o.group);\n delete schedules[i];\n }\n }\n\n // Defer the first tick to end of the current frame; see d3/d3#1576.\n // Note the transition may be canceled after start and before the first tick!\n // Note this must be scheduled before the start event; see d3/d3-transition#16!\n // Assuming this is successful, subsequent callbacks go straight to tick.\n timeout(function() {\n if (self.state === STARTED) {\n self.state = RUNNING;\n self.timer.restart(tick, self.delay, self.time);\n tick(elapsed);\n }\n });\n\n // Dispatch the start event.\n // Note this must be done before the tween are initialized.\n self.state = STARTING;\n self.on.call(\"start\", node, node.__data__, self.index, self.group);\n if (self.state !== STARTING) return; // interrupted\n self.state = STARTED;\n\n // Initialize the tween, deleting null tween.\n tween = new Array(n = self.tween.length);\n for (i = 0, j = -1; i < n; ++i) {\n if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) {\n tween[++j] = o;\n }\n }\n tween.length = j + 1;\n }\n\n function tick(elapsed) {\n var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1),\n i = -1,\n n = tween.length;\n\n while (++i < n) {\n tween[i].call(node, t);\n }\n\n // Dispatch the end event.\n if (self.state === ENDING) {\n self.on.call(\"end\", node, node.__data__, self.index, self.group);\n stop();\n }\n }\n\n function stop() {\n self.state = ENDED;\n self.timer.stop();\n delete schedules[id];\n for (var i in schedules) return;\n delete node.__transition;\n }\n}\n\nfunction interrupt(node, name) {\n var schedules = node.__transition,\n schedule,\n active,\n empty = true,\n i;\n\n if (!schedules) return;\n\n name = name == null ? null : name + \"\";\n\n for (i in schedules) {\n if ((schedule = schedules[i]).name !== name) { empty = false; continue; }\n active = schedule.state > STARTING && schedule.state < ENDING;\n schedule.state = ENDED;\n schedule.timer.stop();\n schedule.on.call(active ? \"interrupt\" : \"cancel\", node, node.__data__, schedule.index, schedule.group);\n delete schedules[i];\n }\n\n if (empty) delete node.__transition;\n}\n\nfunction selection_interrupt(name) {\n return this.each(function() {\n interrupt(this, name);\n });\n}\n\nfunction tweenRemove(id, name) {\n var tween0, tween1;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = tween0 = tween;\n for (var i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1 = tween1.slice();\n tween1.splice(i, 1);\n break;\n }\n }\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction tweenFunction(id, name, value) {\n var tween0, tween1;\n if (typeof value !== \"function\") throw new Error;\n return function() {\n var schedule = set(this, id),\n tween = schedule.tween;\n\n // If this node shared tween with the previous node,\n // just assign the updated shared tween and we’re done!\n // Otherwise, copy-on-write.\n if (tween !== tween0) {\n tween1 = (tween0 = tween).slice();\n for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) {\n if (tween1[i].name === name) {\n tween1[i] = t;\n break;\n }\n }\n if (i === n) tween1.push(t);\n }\n\n schedule.tween = tween1;\n };\n}\n\nfunction transition_tween(name, value) {\n var id = this._id;\n\n name += \"\";\n\n if (arguments.length < 2) {\n var tween = get(this.node(), id).tween;\n for (var i = 0, n = tween.length, t; i < n; ++i) {\n if ((t = tween[i]).name === name) {\n return t.value;\n }\n }\n return null;\n }\n\n return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));\n}\n\nfunction tweenValue(transition, name, value) {\n var id = transition._id;\n\n transition.each(function() {\n var schedule = set(this, id);\n (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);\n });\n\n return function(node) {\n return get(node, id).value[name];\n };\n}\n\nfunction interpolate(a, b) {\n var c;\n return (typeof b === \"number\" ? interpolateNumber\n : b instanceof color ? interpolateRgb\n : (c = color(b)) ? (b = c, interpolateRgb)\n : interpolateString)(a, b);\n}\n\nfunction attrRemove(name) {\n return function() {\n this.removeAttribute(name);\n };\n}\n\nfunction attrRemoveNS(fullname) {\n return function() {\n this.removeAttributeNS(fullname.space, fullname.local);\n };\n}\n\nfunction attrConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttribute(name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrConstantNS(fullname, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = this.getAttributeNS(fullname.space, fullname.local);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction attrFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttribute(name);\n string0 = this.getAttribute(name);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction attrFunctionNS(fullname, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0, value1 = value(this), string1;\n if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);\n string0 = this.getAttributeNS(fullname.space, fullname.local);\n string1 = value1 + \"\";\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction transition_attr(name, value) {\n var fullname = namespace(name), i = fullname === \"transform\" ? interpolateTransformSvg : interpolate;\n return this.attrTween(name, typeof value === \"function\"\n ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, \"attr.\" + name, value))\n : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname)\n : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));\n}\n\nfunction attrInterpolate(name, i) {\n return function(t) {\n this.setAttribute(name, i.call(this, t));\n };\n}\n\nfunction attrInterpolateNS(fullname, i) {\n return function(t) {\n this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));\n };\n}\n\nfunction attrTweenNS(fullname, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction attrTween(name, value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction transition_attrTween(name, value) {\n var key = \"attr.\" + name;\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n var fullname = namespace(name);\n return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));\n}\n\nfunction delayFunction(id, value) {\n return function() {\n init(this, id).delay = +value.apply(this, arguments);\n };\n}\n\nfunction delayConstant(id, value) {\n return value = +value, function() {\n init(this, id).delay = value;\n };\n}\n\nfunction transition_delay(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? delayFunction\n : delayConstant)(id, value))\n : get(this.node(), id).delay;\n}\n\nfunction durationFunction(id, value) {\n return function() {\n set(this, id).duration = +value.apply(this, arguments);\n };\n}\n\nfunction durationConstant(id, value) {\n return value = +value, function() {\n set(this, id).duration = value;\n };\n}\n\nfunction transition_duration(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each((typeof value === \"function\"\n ? durationFunction\n : durationConstant)(id, value))\n : get(this.node(), id).duration;\n}\n\nfunction easeConstant(id, value) {\n if (typeof value !== \"function\") throw new Error;\n return function() {\n set(this, id).ease = value;\n };\n}\n\nfunction transition_ease(value) {\n var id = this._id;\n\n return arguments.length\n ? this.each(easeConstant(id, value))\n : get(this.node(), id).ease;\n}\n\nfunction easeVarying(id, value) {\n return function() {\n var v = value.apply(this, arguments);\n if (typeof v !== \"function\") throw new Error;\n set(this, id).ease = v;\n };\n}\n\nfunction transition_easeVarying(value) {\n if (typeof value !== \"function\") throw new Error;\n return this.each(easeVarying(this._id, value));\n}\n\nfunction transition_filter(match) {\n if (typeof match !== \"function\") match = matcher(match);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) {\n if ((node = group[i]) && match.call(node, node.__data__, i, group)) {\n subgroup.push(node);\n }\n }\n }\n\n return new Transition(subgroups, this._parents, this._name, this._id);\n}\n\nfunction transition_merge(transition) {\n if (transition._id !== this._id) throw new Error;\n\n for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) {\n for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) {\n if (node = group0[i] || group1[i]) {\n merge[i] = node;\n }\n }\n }\n\n for (; j < m0; ++j) {\n merges[j] = groups0[j];\n }\n\n return new Transition(merges, this._parents, this._name, this._id);\n}\n\nfunction start(name) {\n return (name + \"\").trim().split(/^|\\s+/).every(function(t) {\n var i = t.indexOf(\".\");\n if (i >= 0) t = t.slice(0, i);\n return !t || t === \"start\";\n });\n}\n\nfunction onFunction(id, name, listener) {\n var on0, on1, sit = start(name) ? init : set;\n return function() {\n var schedule = sit(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);\n\n schedule.on = on1;\n };\n}\n\nfunction transition_on(name, listener) {\n var id = this._id;\n\n return arguments.length < 2\n ? get(this.node(), id).on.on(name)\n : this.each(onFunction(id, name, listener));\n}\n\nfunction removeFunction(id) {\n return function() {\n var parent = this.parentNode;\n for (var i in this.__transition) if (+i !== id) return;\n if (parent) parent.removeChild(this);\n };\n}\n\nfunction transition_remove() {\n return this.on(\"end.remove\", removeFunction(this._id));\n}\n\nfunction transition_select(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selector(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) {\n if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {\n if (\"__data__\" in node) subnode.__data__ = node.__data__;\n subgroup[i] = subnode;\n schedule(subgroup[i], name, id, i, subgroup, get(node, id));\n }\n }\n }\n\n return new Transition(subgroups, this._parents, name, id);\n}\n\nfunction transition_selectAll(select) {\n var name = this._name,\n id = this._id;\n\n if (typeof select !== \"function\") select = selectorAll(select);\n\n for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) {\n if (child = children[k]) {\n schedule(child, name, id, k, children, inherit);\n }\n }\n subgroups.push(children);\n parents.push(node);\n }\n }\n }\n\n return new Transition(subgroups, parents, name, id);\n}\n\nvar Selection = selection.prototype.constructor;\n\nfunction transition_selection() {\n return new Selection(this._groups, this._parents);\n}\n\nfunction styleNull(name, interpolate) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n string1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, string10 = string1);\n };\n}\n\nfunction styleRemove(name) {\n return function() {\n this.style.removeProperty(name);\n };\n}\n\nfunction styleConstant(name, interpolate, value1) {\n var string00,\n string1 = value1 + \"\",\n interpolate0;\n return function() {\n var string0 = style(this, name);\n return string0 === string1 ? null\n : string0 === string00 ? interpolate0\n : interpolate0 = interpolate(string00 = string0, value1);\n };\n}\n\nfunction styleFunction(name, interpolate, value) {\n var string00,\n string10,\n interpolate0;\n return function() {\n var string0 = style(this, name),\n value1 = value(this),\n string1 = value1 + \"\";\n if (value1 == null) string1 = value1 = (this.style.removeProperty(name), style(this, name));\n return string0 === string1 ? null\n : string0 === string00 && string1 === string10 ? interpolate0\n : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));\n };\n}\n\nfunction styleMaybeRemove(id, name) {\n var on0, on1, listener0, key = \"style.\" + name, event = \"end.\" + key, remove;\n return function() {\n var schedule = set(this, id),\n on = schedule.on,\n listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);\n\n schedule.on = on1;\n };\n}\n\nfunction transition_style(name, value, priority) {\n var i = (name += \"\") === \"transform\" ? interpolateTransformCss : interpolate;\n return value == null ? this\n .styleTween(name, styleNull(name, i))\n .on(\"end.style.\" + name, styleRemove(name))\n : typeof value === \"function\" ? this\n .styleTween(name, styleFunction(name, i, tweenValue(this, \"style.\" + name, value)))\n .each(styleMaybeRemove(this._id, name))\n : this\n .styleTween(name, styleConstant(name, i, value), priority)\n .on(\"end.style.\" + name, null);\n}\n\nfunction styleInterpolate(name, i, priority) {\n return function(t) {\n this.style.setProperty(name, i.call(this, t), priority);\n };\n}\n\nfunction styleTween(name, value, priority) {\n var t, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);\n return t;\n }\n tween._value = value;\n return tween;\n}\n\nfunction transition_styleTween(name, value, priority) {\n var key = \"style.\" + (name += \"\");\n if (arguments.length < 2) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, styleTween(name, value, priority == null ? \"\" : priority));\n}\n\nfunction textConstant(value) {\n return function() {\n this.textContent = value;\n };\n}\n\nfunction textFunction(value) {\n return function() {\n var value1 = value(this);\n this.textContent = value1 == null ? \"\" : value1;\n };\n}\n\nfunction transition_text(value) {\n return this.tween(\"text\", typeof value === \"function\"\n ? textFunction(tweenValue(this, \"text\", value))\n : textConstant(value == null ? \"\" : value + \"\"));\n}\n\nfunction textInterpolate(i) {\n return function(t) {\n this.textContent = i.call(this, t);\n };\n}\n\nfunction textTween(value) {\n var t0, i0;\n function tween() {\n var i = value.apply(this, arguments);\n if (i !== i0) t0 = (i0 = i) && textInterpolate(i);\n return t0;\n }\n tween._value = value;\n return tween;\n}\n\nfunction transition_textTween(value) {\n var key = \"text\";\n if (arguments.length < 1) return (key = this.tween(key)) && key._value;\n if (value == null) return this.tween(key, null);\n if (typeof value !== \"function\") throw new Error;\n return this.tween(key, textTween(value));\n}\n\nfunction transition_transition() {\n var name = this._name,\n id0 = this._id,\n id1 = newId();\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n var inherit = get(node, id0);\n schedule(node, name, id1, i, group, {\n time: inherit.time + inherit.delay + inherit.duration,\n delay: 0,\n duration: inherit.duration,\n ease: inherit.ease\n });\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id1);\n}\n\nfunction transition_end() {\n var on0, on1, that = this, id = that._id, size = that.size();\n return new Promise(function(resolve, reject) {\n var cancel = {value: reject},\n end = {value: function() { if (--size === 0) resolve(); }};\n\n that.each(function() {\n var schedule = set(this, id),\n on = schedule.on;\n\n // If this node shared a dispatch with the previous node,\n // just assign the updated shared dispatch and we’re done!\n // Otherwise, copy-on-write.\n if (on !== on0) {\n on1 = (on0 = on).copy();\n on1._.cancel.push(cancel);\n on1._.interrupt.push(cancel);\n on1._.end.push(end);\n }\n\n schedule.on = on1;\n });\n\n // The selection was empty, resolve end immediately\n if (size === 0) resolve();\n });\n}\n\nvar id = 0;\n\nfunction Transition(groups, parents, name, id) {\n this._groups = groups;\n this._parents = parents;\n this._name = name;\n this._id = id;\n}\n\nfunction transition(name) {\n return selection().transition(name);\n}\n\nfunction newId() {\n return ++id;\n}\n\nvar selection_prototype = selection.prototype;\n\nTransition.prototype = transition.prototype = {\n constructor: Transition,\n select: transition_select,\n selectAll: transition_selectAll,\n selectChild: selection_prototype.selectChild,\n selectChildren: selection_prototype.selectChildren,\n filter: transition_filter,\n merge: transition_merge,\n selection: transition_selection,\n transition: transition_transition,\n call: selection_prototype.call,\n nodes: selection_prototype.nodes,\n node: selection_prototype.node,\n size: selection_prototype.size,\n empty: selection_prototype.empty,\n each: selection_prototype.each,\n on: transition_on,\n attr: transition_attr,\n attrTween: transition_attrTween,\n style: transition_style,\n styleTween: transition_styleTween,\n text: transition_text,\n textTween: transition_textTween,\n remove: transition_remove,\n tween: transition_tween,\n delay: transition_delay,\n duration: transition_duration,\n ease: transition_ease,\n easeVarying: transition_easeVarying,\n end: transition_end,\n [Symbol.iterator]: selection_prototype[Symbol.iterator]\n};\n\nvar defaultTiming = {\n time: null, // Set on use.\n delay: 0,\n duration: 250,\n ease: easeCubicInOut\n};\n\nfunction inherit(node, id) {\n var timing;\n while (!(timing = node.__transition) || !(timing = timing[id])) {\n if (!(node = node.parentNode)) {\n throw new Error(`transition ${id} not found`);\n }\n }\n return timing;\n}\n\nfunction selection_transition(name) {\n var id,\n timing;\n\n if (name instanceof Transition) {\n id = name._id, name = name._name;\n } else {\n id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + \"\";\n }\n\n for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {\n for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {\n if (node = group[i]) {\n schedule(node, name, id, i, group, timing || inherit(node, id));\n }\n }\n }\n\n return new Transition(groups, this._parents, name, id);\n}\n\nselection.prototype.interrupt = selection_interrupt;\nselection.prototype.transition = selection_transition;\n\nvar root = [null];\n\nfunction active(node, name) {\n var schedules = node.__transition,\n schedule,\n i;\n\n if (schedules) {\n name = name == null ? null : name + \"\";\n for (i in schedules) {\n if ((schedule = schedules[i]).state > SCHEDULED && schedule.name === name) {\n return new Transition([[node]], root, name, +i);\n }\n }\n }\n\n return null;\n}\n\nexport { active, interrupt, transition };\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [['polygon', { points: '6 3 20 12 6 21 6 3', key: '1oa8hb' }]];\n\n/**\n * @component @name Play\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/play\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Play = createLucideIcon('play', __iconNode);\n\nexport default Play;\n","import * as React from 'react';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { Primitive } from '@radix-ui/react-primitive';\nimport * as RovingFocusGroup from '@radix-ui/react-roving-focus';\nimport { createRovingFocusGroupScope } from '@radix-ui/react-roving-focus';\nimport { Toggle } from '@radix-ui/react-toggle';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { useDirection } from '@radix-ui/react-direction';\n\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -------------------------------------------------------------------------------------------------\n * ToggleGroup\n * -----------------------------------------------------------------------------------------------*/\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\nconst ToggleGroupType = {\n Single: 'single',\n Multiple: 'multiple',\n} as const;\n\ntype ToggleGroupType = (typeof ToggleGroupType)[keyof typeof ToggleGroupType];\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope | undefined };\nconst [createToggleGroupContext, createToggleGroupScope] = createContextScope(TOGGLE_GROUP_NAME, [\n createRovingFocusGroupScope,\n]);\nconst useRovingFocusGroupScope = createRovingFocusGroupScope();\n\ntype ToggleGroupElement = ToggleGroupImplSingleElement | ToggleGroupImplMultipleElement;\ninterface ToggleGroupSingleProps extends ToggleGroupImplSingleProps {\n type: typeof ToggleGroupType.Single;\n}\ninterface ToggleGroupMultipleProps extends ToggleGroupImplMultipleProps {\n type: typeof ToggleGroupType.Multiple;\n}\n\nconst ToggleGroup = /* @__PURE__ */ React.forwardRef<\n ToggleGroupElement,\n ToggleGroupSingleProps | ToggleGroupMultipleProps\n>(function ToggleGroup(props, forwardedRef) {\n const { type, ...toggleGroupProps } = props;\n\n if (type === ToggleGroupType.Single) {\n const singleProps = toggleGroupProps as ToggleGroupImplSingleProps;\n return <ToggleGroupImplSingle role=\"radiogroup\" {...singleProps} ref={forwardedRef} />;\n }\n\n if (type === ToggleGroupType.Multiple) {\n const multipleProps = toggleGroupProps as ToggleGroupImplMultipleProps;\n return <ToggleGroupImplMultiple role=\"toolbar\" {...multipleProps} ref={forwardedRef} />;\n }\n\n throw new Error(`Missing prop \\`type\\` expected on \\`${TOGGLE_GROUP_NAME}\\``);\n});\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype ToggleGroupValueContextValue = {\n type: ToggleGroupType;\n value: string[];\n onItemActivate(value: string): void;\n onItemDeactivate(value: string): void;\n};\n\nconst [ToggleGroupValueProvider, useToggleGroupValueContext] =\n createToggleGroupContext<ToggleGroupValueContextValue>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupImplSingleElement = ToggleGroupImplElement;\ninterface ToggleGroupImplSingleProps extends ToggleGroupImplProps {\n /**\n * The controlled stateful value of the item that is pressed.\n */\n value?: string | undefined;\n /**\n * The value of the item that is pressed when initially rendered. Use\n * `defaultValue` if you do not need to control the state of a toggle group.\n */\n defaultValue?: string | undefined;\n /**\n * The callback that fires when the value of the toggle group changes.\n */\n onValueChange?: { bivarianceHack(value: string): void }['bivarianceHack'] | undefined;\n}\n\nconst ToggleGroupImplSingle = /* @__PURE__ */ React.forwardRef<\n ToggleGroupImplSingleElement,\n ToggleGroupImplSingleProps\n>(function ToggleGroupImplSingle(props: ScopedProps<ToggleGroupImplSingleProps>, forwardedRef) {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {},\n ...toggleGroupSingleProps\n } = props;\n\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? '',\n onChange: onValueChange,\n caller: TOGGLE_GROUP_NAME,\n });\n\n return (\n <ToggleGroupValueProvider\n scope={props.__scopeToggleGroup}\n type={ToggleGroupType.Single}\n value={React.useMemo(() => (value ? [value] : []), [value])}\n onItemActivate={setValue}\n onItemDeactivate={React.useCallback(() => setValue(''), [setValue])}\n >\n <ToggleGroupImpl {...toggleGroupSingleProps} ref={forwardedRef} />\n </ToggleGroupValueProvider>\n );\n});\n\ntype ToggleGroupImplMultipleElement = ToggleGroupImplElement;\ninterface ToggleGroupImplMultipleProps extends ToggleGroupImplProps {\n /**\n * The controlled stateful value of the items that are pressed.\n */\n value?: string[] | undefined;\n /**\n * The value of the items that are pressed when initially rendered. Use\n * `defaultValue` if you do not need to control the state of a toggle group.\n */\n defaultValue?: string[] | undefined;\n /**\n * The callback that fires when the state of the toggle group changes.\n */\n onValueChange?: { bivarianceHack(value: string[]): void }['bivarianceHack'] | undefined;\n}\n\nconst ToggleGroupImplMultiple = /* @__PURE__ */ React.forwardRef<\n ToggleGroupImplMultipleElement,\n ToggleGroupImplMultipleProps\n>(function ToggleGroupImplMultiple(props: ScopedProps<ToggleGroupImplMultipleProps>, forwardedRef) {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {},\n ...toggleGroupMultipleProps\n } = props;\n\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue ?? [],\n onChange: onValueChange,\n caller: TOGGLE_GROUP_NAME,\n });\n\n const handleButtonActivate = React.useCallback(\n (itemValue: string) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue],\n );\n\n const handleButtonDeactivate = React.useCallback(\n (itemValue: string) =>\n setValue((prevValue = []) => prevValue.filter((value) => value !== itemValue)),\n [setValue],\n );\n\n return (\n <ToggleGroupValueProvider\n scope={props.__scopeToggleGroup}\n type={ToggleGroupType.Multiple}\n value={value}\n onItemActivate={handleButtonActivate}\n onItemDeactivate={handleButtonDeactivate}\n >\n <ToggleGroupImpl {...toggleGroupMultipleProps} ref={forwardedRef} />\n </ToggleGroupValueProvider>\n );\n});\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype ToggleGroupContextValue = { rovingFocus: boolean; disabled: boolean };\n\nconst [ToggleGroupContext, useToggleGroupContext] =\n createToggleGroupContext<ToggleGroupContextValue>(TOGGLE_GROUP_NAME);\n\ntype RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;\ntype ToggleGroupImplElement = React.ComponentRef<typeof Primitive.div>;\ntype PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;\ninterface ToggleGroupImplProps extends PrimitiveDivProps {\n /**\n * Whether the group is disabled from user interaction.\n * @defaultValue false\n */\n disabled?: boolean | undefined;\n /**\n * Whether the group should maintain roving focus of its buttons.\n * @defaultValue true\n */\n rovingFocus?: boolean | undefined;\n loop?: RovingFocusGroupProps['loop'] | undefined;\n orientation?: RovingFocusGroupProps['orientation'] | undefined;\n dir?: RovingFocusGroupProps['dir'] | undefined;\n}\n\nconst ToggleGroupImpl = /* @__PURE__ */ React.forwardRef<\n ToggleGroupImplElement,\n ToggleGroupImplProps\n>(\n // blank line to reduce diff noise\n function ToggleGroupImpl(props: ScopedProps<ToggleGroupImplProps>, forwardedRef) {\n const {\n __scopeToggleGroup,\n disabled = false,\n rovingFocus = true,\n orientation,\n dir,\n loop = true,\n ...toggleGroupProps\n } = props;\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeToggleGroup);\n const direction = useDirection(dir);\n const commonProps = { dir: direction, ...toggleGroupProps };\n return (\n <ToggleGroupContext scope={__scopeToggleGroup} rovingFocus={rovingFocus} disabled={disabled}>\n {rovingFocus ? (\n <RovingFocusGroup.Root\n asChild\n {...rovingFocusGroupScope}\n orientation={orientation}\n dir={direction}\n loop={loop}\n >\n <Primitive.div {...commonProps} ref={forwardedRef} />\n </RovingFocusGroup.Root>\n ) : (\n <Primitive.div {...commonProps} ref={forwardedRef} />\n )}\n </ToggleGroupContext>\n );\n },\n);\n\n/* -------------------------------------------------------------------------------------------------\n * ToggleGroupItem\n * -----------------------------------------------------------------------------------------------*/\n\nconst ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = ToggleGroupItemImplElement;\ninterface ToggleGroupItemProps extends Omit<ToggleGroupItemImplProps, 'pressed'> {}\n\nconst ToggleGroupItem = /* @__PURE__ */ React.forwardRef<\n ToggleGroupItemElement,\n ToggleGroupItemProps\n>(\n // blank line to reduce diff noise\n function ToggleGroupItem(props: ScopedProps<ToggleGroupItemProps>, forwardedRef) {\n const valueContext = useToggleGroupValueContext(ITEM_NAME, props.__scopeToggleGroup);\n const context = useToggleGroupContext(ITEM_NAME, props.__scopeToggleGroup);\n const rovingFocusGroupScope = useRovingFocusGroupScope(props.__scopeToggleGroup);\n const pressed = valueContext.value.includes(props.value);\n const disabled = context.disabled || props.disabled;\n const commonProps = { ...props, pressed, disabled };\n const ref = React.useRef<HTMLDivElement>(null);\n return context.rovingFocus ? (\n <RovingFocusGroup.Item\n asChild\n {...rovingFocusGroupScope}\n focusable={!disabled}\n active={pressed}\n ref={ref}\n >\n <ToggleGroupItemImpl {...commonProps} ref={forwardedRef} />\n </RovingFocusGroup.Item>\n ) : (\n <ToggleGroupItemImpl {...commonProps} ref={forwardedRef} />\n );\n },\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\ntype ToggleGroupItemImplElement = React.ComponentRef<typeof Toggle>;\ntype ToggleProps = React.ComponentPropsWithoutRef<typeof Toggle>;\ninterface ToggleGroupItemImplProps extends Omit<ToggleProps, 'defaultPressed' | 'onPressedChange'> {\n /**\n * A string value for the toggle group item. All items within a toggle group should use a unique value.\n */\n value: string;\n}\n\nconst ToggleGroupItemImpl = /* @__PURE__ */ React.forwardRef<\n ToggleGroupItemImplElement,\n ToggleGroupItemImplProps\n>(\n // blank line to reduce diff noise\n function ToggleGroupItemImpl(props: ScopedProps<ToggleGroupItemImplProps>, forwardedRef) {\n const { __scopeToggleGroup, value, ...itemProps } = props;\n const valueContext = useToggleGroupValueContext(ITEM_NAME, __scopeToggleGroup);\n const singleProps = { role: 'radio', 'aria-checked': props.pressed, 'aria-pressed': undefined };\n const typeProps = valueContext.type === ToggleGroupType.Single ? singleProps : undefined;\n return (\n <Toggle\n {...typeProps}\n {...itemProps}\n ref={forwardedRef}\n onPressedChange={(pressed) => {\n if (pressed) {\n valueContext.onItemActivate(value);\n } else {\n valueContext.onItemDeactivate(value);\n }\n }}\n />\n );\n },\n);\n\n/* -----------------------------------------------------------------------------------------------*/\n\nexport {\n createToggleGroupScope,\n //\n ToggleGroup,\n ToggleGroupItem,\n //\n ToggleGroup as Root,\n ToggleGroupItem as Item,\n};\nexport type { ToggleGroupSingleProps, ToggleGroupMultipleProps, ToggleGroupItemProps };\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M9 17H7A5 5 0 0 1 7 7h2', key: '8i5ue5' }],\n ['path', { d: 'M15 7h2a5 5 0 1 1 0 10h-2', key: '1b9ql8' }],\n ['line', { x1: '8', x2: '16', y1: '12', y2: '12', key: '1jonct' }],\n];\n\n/**\n * @component @name Link2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/link-2\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Link2 = createLucideIcon('link-2', __iconNode);\n\nexport default Link2;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['line', { x1: '6', x2: '6', y1: '3', y2: '15', key: '17qcm7' }],\n ['circle', { cx: '18', cy: '6', r: '3', key: '1h7g24' }],\n ['circle', { cx: '6', cy: '18', r: '3', key: 'fqmcym' }],\n ['path', { d: 'M18 9a9 9 0 0 1-9 9', key: 'n2h4wq' }],\n];\n\n/**\n * @component @name GitBranch\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/git-branch\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst GitBranch = createLucideIcon('git-branch', __iconNode);\n\nexport default GitBranch;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z', key: '1lielz' }],\n];\n\n/**\n * @component @name MessageSquare\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/message-square\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst MessageSquare = createLucideIcon('message-square', __iconNode);\n\nexport default MessageSquare;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8', key: 'v9h5vc' }],\n ['path', { d: 'M21 3v5h-5', key: '1q7to0' }],\n ['path', { d: 'M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16', key: '3uifl3' }],\n ['path', { d: 'M8 16H3v5', key: '1cv678' }],\n];\n\n/**\n * @component @name RefreshCw\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/refresh-cw\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst RefreshCw = createLucideIcon('refresh-cw', __iconNode);\n\nexport default RefreshCw;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['circle', { cx: '12', cy: '12', r: '10', key: '1mglay' }],\n ['path', { d: 'M8 12h8', key: '1wcyev' }],\n];\n\n/**\n * @component @name CircleMinus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/circle-minus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst CircleMinus = createLucideIcon('circle-minus', __iconNode);\n\nexport default CircleMinus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2', key: '1yyitq' }],\n ['circle', { cx: '9', cy: '7', r: '4', key: 'nufk8' }],\n ['line', { x1: '22', x2: '16', y1: '11', y2: '11', key: '1shjgl' }],\n];\n\n/**\n * @component @name UserMinus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/user-minus\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst UserMinus = createLucideIcon('user-minus', __iconNode);\n\nexport default UserMinus;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n ['path', { d: 'M16 14v2.2l1.6 1', key: 'fo4ql5' }],\n ['path', { d: 'M16 2v4', key: '4m81vk' }],\n ['path', { d: 'M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5', key: '1osxxc' }],\n ['path', { d: 'M3 10h5', key: 'r794hk' }],\n ['path', { d: 'M8 2v4', key: '1cmpym' }],\n ['circle', { cx: '16', cy: '16', r: '6', key: 'qoo3c4' }],\n];\n\n/**\n * @component @name CalendarClock\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/calendar-clock\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst CalendarClock = createLucideIcon('calendar-clock', __iconNode);\n\nexport default CalendarClock;\n","/**\n * Lightweight 5-field cron expression parser, validator, and next-run evaluator.\n * Supports standard syntax: minute hour day-of-month month day-of-week\n * with wildcards, step intervals, single values, ranges (1-5), and lists (1,15).\n */\n\nexport interface CronPreset {\n label: string;\n expression: string;\n description: string;\n}\n\nexport const CRON_PRESETS: CronPreset[] = [\n {\n label: \"Daily at 9:00 AM\",\n expression: \"0 9 * * *\",\n description: \"Every day at 09:00 UTC\",\n },\n {\n label: \"Weekdays at 9:00 AM\",\n expression: \"0 9 * * 1-5\",\n description: \"Monday to Friday at 09:00 UTC\",\n },\n {\n label: \"Weekly (Monday 9:00 AM)\",\n expression: \"0 9 * * 1\",\n description: \"Every Monday at 09:00 UTC\",\n },\n {\n label: \"Monthly (1st at 9:00 AM)\",\n expression: \"0 9 1 * *\",\n description: \"1st of every month at 09:00 UTC\",\n },\n {\n label: \"Hourly\",\n expression: \"0 * * * *\",\n description: \"At minute 0 of every hour\",\n },\n];\n\nfunction parseField(field: string, min: number, max: number): Set<number> | null {\n const trimmed = field.trim();\n if (!trimmed) return null;\n const out = new Set<number>();\n\n for (const part of trimmed.split(\",\")) {\n const seg = part.trim();\n if (!seg) return null;\n\n const [rangePart, stepPart] = seg.split(\"/\");\n if (seg.split(\"/\").length > 2) return null;\n\n let step = 1;\n if (stepPart !== undefined) {\n if (!/^\\d+$/.test(stepPart)) return null;\n step = parseInt(stepPart, 10);\n if (step < 1) return null;\n }\n\n let start = min;\n let end = max;\n\n if (rangePart === \"*\") {\n start = min;\n end = max;\n } else if (rangePart.includes(\"-\")) {\n const [aStr, bStr] = rangePart.split(\"-\");\n if (!/^\\d+$/.test(aStr) || !/^\\d+$/.test(bStr)) return null;\n start = parseInt(aStr, 10);\n end = parseInt(bStr, 10);\n if (start < min || end > max || start > end) return null;\n } else {\n if (!/^\\d+$/.test(rangePart)) return null;\n const val = parseInt(rangePart, 10);\n if (val < min || val > max) return null;\n start = val;\n end = stepPart !== undefined ? max : val;\n }\n\n for (let v = start; v <= end; v += step) {\n out.add(v);\n }\n }\n\n return out.size > 0 ? out : null;\n}\n\nexport interface ParsedCron {\n minutes: Set<number>;\n hours: Set<number>;\n daysOfMonth: Set<number>;\n months: Set<number>;\n daysOfWeek: Set<number>;\n domWildcard: boolean;\n dowWildcard: boolean;\n}\n\nexport function parseCron(expr: string): ParsedCron | null {\n const parts = String(expr || \"\")\n .trim()\n .split(/\\s+/);\n if (parts.length !== 5) return null;\n\n const [mStr, hStr, domStr, monStr, dowStr] = parts;\n const minutes = parseField(mStr, 0, 59);\n const hours = parseField(hStr, 0, 23);\n const daysOfMonth = parseField(domStr, 1, 31);\n const months = parseField(monStr, 1, 12);\n // Allow 7 as Sunday alias, normalize to 0\n const rawDow = parseField(dowStr.replace(/\\b7\\b/g, \"0\"), 0, 6);\n\n if (!minutes || !hours || !daysOfMonth || !months || !rawDow) return null;\n\n return {\n minutes,\n hours,\n daysOfMonth,\n months,\n daysOfWeek: rawDow,\n domWildcard: domStr.trim() === \"*\",\n dowWildcard: dowStr.trim() === \"*\",\n };\n}\n\nexport function isValidCron(expr: string): boolean {\n return parseCron(expr) !== null;\n}\n\nfunction matchesDay(parsed: ParsedCron, dom: number, dow: number): boolean {\n if (parsed.domWildcard && parsed.dowWildcard) return true;\n if (parsed.domWildcard) return parsed.daysOfWeek.has(dow);\n if (parsed.dowWildcard) return parsed.daysOfMonth.has(dom);\n return parsed.daysOfMonth.has(dom) || parsed.daysOfWeek.has(dow);\n}\n\n/**\n * Returns true if the given UTC Date (at minute resolution) matches `expr`.\n */\nexport function cronMatchesDate(expr: string, date: Date): boolean {\n const parsed = parseCron(expr);\n if (!parsed) return false;\n return (\n parsed.months.has(date.getUTCMonth() + 1) &&\n matchesDay(parsed, date.getUTCDate(), date.getUTCDay()) &&\n parsed.hours.has(date.getUTCHours()) &&\n parsed.minutes.has(date.getUTCMinutes())\n );\n}\n\n/**\n * Compute the next UTC Date strictly after `from` matching `expr`.\n * Searches up to 366 days ahead; returns null if invalid or unmatchable (e.g. Feb 31).\n */\nexport function nextCronRun(expr: string, from: Date = new Date()): Date | null {\n const parsed = parseCron(expr);\n if (!parsed) return null;\n\n const candidate = new Date(from.getTime());\n candidate.setUTCSeconds(0, 0);\n candidate.setUTCMinutes(candidate.getUTCMinutes() + 1);\n\n const maxIterations = 366 * 24 * 60;\n for (let i = 0; i < maxIterations; i++) {\n const month = candidate.getUTCMonth() + 1;\n if (!parsed.months.has(month)) {\n candidate.setUTCMonth(candidate.getUTCMonth() + 1, 1);\n candidate.setUTCHours(0, 0, 0, 0);\n continue;\n }\n\n const dom = candidate.getUTCDate();\n const dow = candidate.getUTCDay();\n if (!matchesDay(parsed, dom, dow)) {\n candidate.setUTCDate(candidate.getUTCDate() + 1);\n candidate.setUTCHours(0, 0, 0, 0);\n continue;\n }\n\n const hour = candidate.getUTCHours();\n if (!parsed.hours.has(hour)) {\n candidate.setUTCHours(candidate.getUTCHours() + 1, 0, 0, 0);\n continue;\n }\n\n const minute = candidate.getUTCMinutes();\n if (!parsed.minutes.has(minute)) {\n candidate.setUTCMinutes(candidate.getUTCMinutes() + 1, 0, 0);\n continue;\n }\n\n return candidate;\n }\n\n return null;\n}\n\nexport function describeCron(expr: string): string {\n const clean = String(expr || \"\").trim();\n const preset = CRON_PRESETS.find((p) => p.expression === clean);\n if (preset) return preset.label;\n if (!isValidCron(clean)) return \"Invalid cron schedule\";\n return `Cron (${clean})`;\n}\n","\"use client\";\n\n/**\n * Minimal placeholder for the EnrollDialog component.\n *\n * NOTE (Task 2-c): The automations feature (`automations-section.tsx`) was\n * left incomplete by a previous agent — it imports `./enroll-dialog` which\n * was never created, breaking the whole app's compilation. This stub exists\n * solely to unblock the dev server so the campaign editor (the actual scope\n * of Task 2-c) can be tested. A future agent should implement the real\n * EnrollDialog.\n */\nexport function EnrollDialog({\n workflowId,\n}: {\n workflowId: string | null;\n onClose: () => void;\n onDone?: () => void;\n}) {\n // No-op placeholder. When workflowId is null the parent hides it anyway.\n void workflowId;\n return null;\n}\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'm18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71',\n key: 'yqzxt4',\n },\n ],\n [\n 'path',\n {\n d: 'm5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71',\n key: '4qinb0',\n },\n ],\n ['line', { x1: '8', x2: '8', y1: '2', y2: '5', key: '1041cp' }],\n ['line', { x1: '2', x2: '5', y1: '8', y2: '8', key: '14m1p5' }],\n ['line', { x1: '16', x2: '16', y1: '19', y2: '22', key: 'rzdirn' }],\n ['line', { x1: '19', x2: '22', y1: '16', y2: '16', key: 'ox905f' }],\n];\n\n/**\n * @component @name Unlink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/unlink\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Unlink = createLucideIcon('unlink', __iconNode);\n\nexport default Unlink;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z',\n key: 'vktsd0',\n },\n ],\n ['circle', { cx: '7.5', cy: '7.5', r: '.5', fill: 'currentColor', key: 'kqv944' }],\n];\n\n/**\n * @component @name Tag\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/tag\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Tag = createLucideIcon('tag', __iconNode);\n\nexport default Tag;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z',\n key: '1xq2db',\n },\n ],\n];\n\n/**\n * @component @name Zap\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/zap\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Zap = createLucideIcon('zap', __iconNode);\n\nexport default Zap;\n","import createLucideIcon from '../createLucideIcon';\nimport { IconNode } from '../types';\n\nexport const __iconNode: IconNode = [\n [\n 'path',\n {\n d: 'M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1',\n key: 'fm4g5t',\n },\n ],\n ['path', { d: 'M2 13h10', key: 'pgb2dq' }],\n ['path', { d: 'm9 16 3-3-3-3', key: '6m91ic' }],\n];\n\n/**\n * @component @name FolderInput\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview  - https://lucide.dev/icons/folder-input\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FolderInput = createLucideIcon('folder-input', __iconNode);\n\nexport default FolderInput;\n","import type { Selection as D3Selection } from 'd3-selection';\nimport type { D3DragEvent, SubjectPosition } from 'd3-drag';\nimport type { ZoomBehavior } from 'd3-zoom';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars -- this is needed for the Selection type to include the transition function :/\nimport type { Transition } from 'd3-transition';\n\nimport type { XYPosition, Rect, Position } from './utils';\nimport type { InternalNodeBase, NodeBase, NodeDragItem } from './nodes';\nimport type { HandleBounds, HandleType } from './handles';\nimport { type PanZoomInstance } from './panzoom';\nimport { type EdgeBase } from '..';\nimport type { D3ZoomInputEvent } from '../utils/events';\n\nexport type Project = (position: XYPosition) => XYPosition;\n\n/**\n * This type is used to define the `onMove` handler.\n */\nexport type OnMove = (event: MouseEvent | TouchEvent | null, viewport: Viewport) => void;\nexport type OnMoveStart = OnMove;\nexport type OnMoveEnd = OnMove;\n\n/**\n * @inline\n */\nexport type ZoomInOut = (options?: ViewportHelperFunctionOptions) => Promise<boolean>;\n/**\n * @inline\n */\nexport type ZoomTo = (zoomLevel: number, options?: ViewportHelperFunctionOptions) => Promise<boolean>;\n/**\n * @inline\n */\nexport type GetZoom = () => number;\n/**\n * @inline\n */\nexport type GetViewport = () => Viewport;\n\n/**\n * The `SetViewport` function is used to set the viewport of the flow.\n *\n * @inline\n * @param viewport - The viewport to set.\n * @param options - Optional parameters to control the animation and easing of the viewport change.\n */\nexport type SetViewport = (viewport: Viewport, options?: ViewportHelperFunctionOptions) => Promise<boolean>;\n\n/**\n * The `SetCenter` function is used to set the center of the flow viewport to a specific position\n *\n * @inline\n * @param x - x coordinate\n * @param y - y coordinate\n * @param options - Optional parameters to control the animation and easing of the viewport change.\n */\nexport type SetCenter = (x: number, y: number, options?: SetCenterOptions) => Promise<boolean>;\n\n/**\n * The `FitBounds` function is used to fit the flow viewport to the bounds of the nodes.\n *\n * @inline\n * @param bounds - The bounds to fit the viewport to.\n * @param options - Optional parameters to control the animation and easing of the viewport change.\n */\nexport type FitBounds = (bounds: Rect, options?: FitBoundsOptions) => Promise<boolean>;\n\n/**\n * The `Connection` type is the basic minimal description of an [`Edge`](/api-reference/types/edge)\n * between two nodes. The [`addEdge`](/api-reference/utils/add-edge) util can be used to upgrade\n * a `Connection` to an [`Edge`](/api-reference/types/edge).\n *\n * @public\n */\nexport type Connection = {\n /** The id of the node this connection originates from. */\n source: string;\n /** The id of the node this connection terminates at. */\n target: string;\n /** When not `null`, the id of the handle on the source node that this connection originates from. */\n sourceHandle: string | null;\n /** When not `null`, the id of the handle on the target node that this connection terminates at. */\n targetHandle: string | null;\n};\n\n/**\n * The `NodeConnection` type is an extension of a basic [Connection](/api-reference/types/connection) that includes the `edgeId`.\n */\nexport type NodeConnection = Connection & {\n edgeId: string;\n};\n\nexport type UseNodeConnectionsParams = {\n /** ID of the node, filled in automatically if used inside custom node. */\n id?: string;\n /** Gets called when a connection is established. */\n onConnect?: (connections: NodeConnection[]) => void;\n /** Gets called when a connection is removed. */\n onDisconnect?: (connections: NodeConnection[]) => void;\n} & (\n | {\n /** What type of handle connections do you want to observe? */\n handleType: HandleType;\n /** Filter by handle id (this is only needed if the node has multiple handles of the same type). Requires `handleType` to be set. */\n handleId?: string;\n }\n | { handleType?: HandleType; handleId?: never }\n);\n\n/**\n * The `ConnectionMode` is used to set the mode of connection between nodes.\n * The `Strict` mode is the default one and only allows source to target edges.\n * `Loose` mode allows source to source and target to target edges as well.\n *\n * @public\n */\nexport enum ConnectionMode {\n Strict = 'strict',\n Loose = 'loose',\n}\n\nexport type OnConnectStartParams = {\n nodeId: string | null;\n handleId: string | null;\n handleType: HandleType | null;\n};\n\nexport type OnConnectStart = (event: MouseEvent | TouchEvent, params: OnConnectStartParams) => void;\nexport type OnConnect = (connection: Connection) => void;\nexport type OnConnectEnd<NodeType extends NodeBase = NodeBase> = (\n event: MouseEvent | TouchEvent,\n connectionState: FinalConnectionState<InternalNodeBase<NodeType>>\n) => void;\n\nexport type OnReconnect<EdgeType extends EdgeBase = EdgeBase> = (oldEdge: EdgeType, newConnection: Connection) => void;\nexport type OnReconnectStart<EdgeType extends EdgeBase = EdgeBase> = (\n event: MouseEvent | TouchEvent,\n edge: EdgeType,\n handleType: HandleType\n) => void;\nexport type OnReconnectEnd<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase> = (\n event: MouseEvent | TouchEvent,\n edge: EdgeType,\n handleType: HandleType,\n connectionState: FinalConnectionState<InternalNodeBase<NodeType>>\n) => void;\n\nexport type IsValidConnection<EdgeType extends EdgeBase = EdgeBase> = (edge: EdgeType | Connection) => boolean;\n\n/**\n * @inline\n */\nexport type FitViewParamsBase<NodeType extends NodeBase> = {\n nodes: Map<string, InternalNodeBase<NodeType>>;\n width: number;\n height: number;\n panZoom: PanZoomInstance;\n minZoom: number;\n maxZoom: number;\n};\n\nexport type PaddingUnit = 'px' | '%';\nexport type PaddingWithUnit = `${number}${PaddingUnit}` | number;\n\nexport type Padding =\n | PaddingWithUnit\n | {\n top?: PaddingWithUnit;\n right?: PaddingWithUnit;\n bottom?: PaddingWithUnit;\n left?: PaddingWithUnit;\n x?: PaddingWithUnit;\n y?: PaddingWithUnit;\n };\n\n/**\n * @inline\n */\nexport type FitViewOptionsBase<NodeType extends NodeBase = NodeBase> = {\n padding?: Padding;\n includeHiddenNodes?: boolean;\n minZoom?: number;\n maxZoom?: number;\n duration?: number;\n ease?: (t: number) => number;\n interpolate?: 'smooth' | 'linear';\n nodes?: (NodeType | { id: string })[];\n};\n\n/**\n * Internally, React Flow maintains a coordinate system that is independent of the\n * rest of the page. The `Viewport` type tells you where in that system your flow\n * is currently being display at and how zoomed in or out it is.\n *\n * @public\n * @remarks A `Transform` has the same properties as the viewport, but they represent\n * different things. Make sure you don't get them muddled up or things will start\n * to look weird!\n *\n */\nexport type Viewport = {\n x: number;\n y: number;\n zoom: number;\n};\n\nexport type KeyCode = string | Array<string>;\n\nexport type SnapGrid = [number, number];\n\n/**\n * This enum is used to set the different modes of panning the viewport when the\n * user scrolls. The `Free` mode allows the user to pan in any direction by scrolling\n * with a device like a trackpad. The `Vertical` and `Horizontal` modes restrict\n * scroll panning to only the vertical or horizontal axis, respectively.\n *\n * @public\n */\nexport enum PanOnScrollMode {\n Free = 'free',\n Vertical = 'vertical',\n Horizontal = 'horizontal',\n}\n\n/**\n * @inline\n */\nexport type ViewportHelperFunctionOptions = {\n duration?: number;\n ease?: (t: number) => number;\n interpolate?: 'smooth' | 'linear';\n};\n\n/**\n * @inline\n */\nexport type SetCenterOptions = ViewportHelperFunctionOptions & {\n zoom?: number;\n};\n\n/**\n * @inline\n */\nexport type FitBoundsOptions = ViewportHelperFunctionOptions & {\n padding?: Padding;\n};\n\nexport type OnViewportChange = (viewport: Viewport) => void;\n\nexport type D3ZoomInstance = ZoomBehavior<Element, unknown>;\nexport type D3SelectionInstance = D3Selection<Element, unknown, null, undefined>;\n\nexport type D3ZoomHandler = (this: Element, event: D3ZoomInputEvent, d: unknown) => void;\n\nexport type UpdateNodeInternals = (nodeId: string | string[]) => void;\n\n/**\n * This type is mostly used to help position things on top of the flow viewport. For\n * example both the [`<MiniMap />`](/api-reference/components/minimap) and\n * [`<Controls />`](/api-reference/components/controls) components take a `position`\n * prop of this type.\n *\n * @public\n */\nexport type PanelPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center-left'\n | 'center-right';\n\nexport type UseDragEvent = Omit<D3DragEvent<HTMLDivElement, null, SubjectPosition>, 'sourceEvent'> & {\n sourceEvent: MouseEvent | TouchEvent;\n};\n\nexport enum SelectionMode {\n Partial = 'partial',\n Full = 'full',\n}\n\nexport type SelectionRect = Rect & {\n startX: number;\n startY: number;\n};\n\nexport type OnError = (id: string, message: string) => void;\n\nexport type UpdateNodePositions<NodeType extends InternalNodeBase = InternalNodeBase> = (\n dragItems: Map<string, NodeDragItem | NodeType>,\n dragging?: boolean\n) => void;\nexport type PanBy = (delta: XYPosition) => Promise<boolean>;\n\nexport const initialConnection: NoConnection = {\n inProgress: false,\n isValid: null,\n from: null,\n fromHandle: null,\n fromPosition: null,\n fromNode: null,\n to: null,\n toHandle: null,\n toPosition: null,\n toNode: null,\n pointer: null,\n};\n\nexport type NoConnection = {\n inProgress: false;\n isValid: null;\n from: null;\n fromHandle: null;\n fromPosition: null;\n fromNode: null;\n to: null;\n toHandle: null;\n toPosition: null;\n toNode: null;\n pointer: null;\n};\nexport type ConnectionInProgress<NodeType extends InternalNodeBase = InternalNodeBase> = {\n /** Indicates whether a connection is currently in progress. */\n inProgress: true;\n /**\n * If an ongoing connection is above a handle or inside the connection radius, this will be `true`\n * or `false`, otherwise `null`.\n */\n isValid: boolean | null;\n /** Returns the xy start position in flow coordinates or `null` if no connection is in progress. */\n from: XYPosition;\n /** Returns the start handle or `null` if no connection is in progress. */\n fromHandle: HandleBounds;\n /** Returns the side (called position) of the start handle or `null` if no connection is in progress. */\n fromPosition: Position;\n /** Returns the start node or `null` if no connection is in progress. */\n fromNode: NodeType;\n /** Returns the xy end position in flow coordinates or `null` if no connection is in progress. */\n to: XYPosition;\n /** Returns the end handle or `null` if no connection is in progress. */\n toHandle: HandleBounds | null;\n /** Returns the side (called position) of the end handle or `null` if no connection is in progress. */\n toPosition: Position;\n /** Returns the end node or `null` if no connection is in progress. */\n toNode: NodeType | null;\n /**\n * Returns the pointer position relative to the pane, in screen coordinates, or `null` if no\n * connection is in progress.\n */\n pointer: XYPosition;\n};\n\n/**\n * The `ConnectionState` type bundles all information about an ongoing connection.\n * It is returned by the [`useConnection`](/api-reference/hooks/use-connection) hook.\n *\n * @public\n */\nexport type ConnectionState<NodeType extends InternalNodeBase = InternalNodeBase> =\n | ConnectionInProgress<NodeType>\n | NoConnection;\n\nexport type FinalConnectionState<NodeType extends InternalNodeBase = InternalNodeBase> =\n | (Omit<ConnectionInProgress<NodeType>, 'inProgress' | 'toPosition'> & { toPosition: Position | null })\n | Omit<NoConnection, 'inProgress'>;\n\nexport type UpdateConnection<NodeType extends InternalNodeBase = InternalNodeBase> = (\n params: ConnectionState<NodeType>\n) => void;\n\nexport type ColorMode = 'light' | 'dark';\n\nexport type ConnectionLookup = Map<string, Map<string, NodeConnection>>;\n\nexport type OnBeforeDeleteBase<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase> = ({\n nodes,\n edges,\n}: {\n nodes: NodeType[];\n edges: EdgeType[];\n}) => Promise<boolean | { nodes: NodeType[]; edges: EdgeType[] }>;\n\n/**\n * The `ZIndexMode` type is used to define how z-indexing is calculated for nodes and edges.\n * `auto` mode will automatically manage z-indexing for selections and sub flows.\n * `basic` mode will only manage z-indexing for selections.\n * `manual` mode does not apply any automatic z-indexing.\n *\n * @public\n */\nexport type ZIndexMode = 'auto' | 'basic' | 'manual';\n","import { type Position } from './utils';\n\nexport type EdgeBase<\n EdgeData extends Record<string, unknown> = Record<string, unknown>,\n EdgeType extends string | undefined = string | undefined,\n> = {\n /** Unique id of an edge. */\n id: string;\n /** Type of edge defined in `edgeTypes`. */\n type?: EdgeType;\n /** Id of source node. */\n source: string;\n /** Id of target node. */\n target: string;\n /** Id of source handle, only needed if there are multiple handles per node. */\n sourceHandle?: string | null;\n /** Id of target handle, only needed if there are multiple handles per node. */\n targetHandle?: string | null;\n animated?: boolean;\n hidden?: boolean;\n deletable?: boolean;\n selectable?: boolean;\n /** Arbitrary data passed to an edge. */\n data?: EdgeData;\n selected?: boolean;\n /**\n * Set the marker on the beginning of an edge.\n * @example 'arrow', 'arrowclosed' or custom marker\n */\n markerStart?: EdgeMarkerType;\n /**\n * Set the marker on the end of an edge.\n * @example 'arrow', 'arrowclosed' or custom marker\n */\n markerEnd?: EdgeMarkerType;\n zIndex?: number;\n ariaLabel?: string;\n /**\n * ReactFlow renders an invisible path around each edge to make them easier to click or tap on.\n * This property sets the width of that invisible path.\n */\n interactionWidth?: number;\n};\n\nexport type SmoothStepPathOptions = {\n offset?: number;\n borderRadius?: number;\n stepPosition?: number;\n};\n\nexport type StepPathOptions = {\n offset?: number;\n};\n\nexport type BezierPathOptions = {\n curvature?: number;\n};\n\n/**\n * @inline\n */\nexport type DefaultEdgeOptionsBase<EdgeType extends EdgeBase> = Omit<\n EdgeType,\n 'id' | 'source' | 'target' | 'sourceHandle' | 'targetHandle' | 'selected'\n>;\n\n/**\n * If you set the `connectionLineType` prop on your [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineType)\n *component, it will dictate the style of connection line rendered when creating\n *new edges.\n *\n * @public\n *\n * @remarks If you choose to render a custom connection line component, this value will be\n *passed to your component as part of its [`ConnectionLineComponentProps`](/api-reference/types/connection-line-component-props).\n */\nexport enum ConnectionLineType {\n Bezier = 'default',\n Straight = 'straight',\n Step = 'step',\n SmoothStep = 'smoothstep',\n SimpleBezier = 'simplebezier',\n}\n\n/**\n * Edges can optionally have markers at the start and end of an edge. The `EdgeMarker`\n *type is used to configure those markers! Check the docs for [`MarkerType`](/api-reference/types/marker-type)\n *for details on what types of edge marker are available.\n *\n * @public\n */\nexport type EdgeMarker = {\n type: MarkerType | `${MarkerType}`;\n color?: string | null;\n width?: number;\n height?: number;\n markerUnits?: string;\n orient?: string;\n strokeWidth?: number;\n};\n\nexport type EdgeMarkerType = string | EdgeMarker;\n\n/**\n * Edges may optionally have a marker on either end. The MarkerType type enumerates\n * the options available to you when configuring a given marker.\n *\n * @public\n */\nexport enum MarkerType {\n Arrow = 'arrow',\n ArrowClosed = 'arrowclosed',\n}\n\nexport type MarkerProps = EdgeMarker & {\n id: string;\n};\n\n/**\n * @inline\n */\nexport type EdgePosition = {\n sourceX: number;\n sourceY: number;\n targetX: number;\n targetY: number;\n sourcePosition: Position;\n targetPosition: Position;\n};\n\nexport type EdgeLookup<EdgeType extends EdgeBase = EdgeBase> = Map<string, EdgeType>;\n\nexport type EdgeToolbarBaseProps = {\n /**\n * The `x` position of the edge toolbar.\n */\n x: number;\n /**\n * The `y` position of the edge toolbar.\n */\n y: number;\n /** If `true`, edge toolbar is visible even if edge is not selected.\n * @default false\n */\n isVisible?: boolean;\n /**\n * Align the vertical toolbar position relative to the passed x position.\n * @default \"center\"\n * @example 'left', 'center', 'right'\n */\n alignX?: 'left' | 'center' | 'right';\n /**\n * Align the horizontal toolbar position relative to the passed y position.\n * @default \"center\"\n * @example 'top', 'center', 'bottom'\n */\n alignY?: 'top' | 'center' | 'bottom';\n};\n","/**\n * While [`PanelPosition`](/api-reference/types/panel-position) can be used to place a\n * component in the corners of a container, the `Position` enum is less precise and used\n * primarily in relation to edges and handles.\n *\n * @public\n */\nexport enum Position {\n Left = 'left',\n Top = 'top',\n Right = 'right',\n Bottom = 'bottom',\n}\n\nexport const oppositePosition = {\n [Position.Left]: Position.Right,\n [Position.Right]: Position.Left,\n [Position.Top]: Position.Bottom,\n [Position.Bottom]: Position.Top,\n};\n\n/**\n * All positions are stored in an object with x and y coordinates.\n *\n * @public\n */\nexport type XYPosition = {\n x: number;\n y: number;\n};\n\nexport type XYZPosition = XYPosition & { z: number };\n\nexport type Dimensions = {\n width: number;\n height: number;\n};\n\nexport type Rect = Dimensions & XYPosition;\n\nexport type Box = XYPosition & {\n x2: number;\n y2: number;\n};\n\nexport type Transform = [number, number, number];\n\n/**\n * A coordinate extent represents two points in a coordinate system: one in the top\n * left corner and one in the bottom right corner. It is used to represent the\n * bounds of nodes in the flow or the bounds of the viewport.\n *\n * @public\n *\n * @remarks Props that expect a `CoordinateExtent` usually default to `[[-∞, -∞], [+∞, +∞]]`\n * to represent an unbounded extent.\n */\nexport type CoordinateExtent = [[number, number], [number, number]];\n\n/**\n * Using Pick with a union type (e.g. `NodeType`) will merge every property type along all union members.\n * See https://github.com/microsoft/TypeScript/issues/28339#issuecomment-463577347\n * Note: Currently you are able to Pick properties that are not in the type without error.\n */\nexport type DistributivePick<T, K extends string> = T extends unknown ? { [P in Extract<keyof T, K>]: T[P] } : never;\n","import {\n boxToRect,\n clampPosition,\n getBoundsOfBoxes,\n getRectsOverlappingArea,\n getViewportForBounds,\n isCoordinateExtent,\n getNodeDimensions,\n nodeToBox,\n} from './general';\nimport { defaultFitViewPadding } from './constants';\nimport {\n type Transform,\n type XYPosition,\n type Rect,\n type NodeOrigin,\n type NodeBase,\n type EdgeBase,\n type FitViewParamsBase,\n type FitViewOptionsBase,\n type CoordinateExtent,\n type OnError,\n type OnBeforeDeleteBase,\n type NodeLookup,\n type InternalNodeBase,\n type NodeDragItem,\n} from '../types';\nimport { errorMessages } from './constants';\n\n/**\n * Test whether an object is usable as an Edge\n * @public\n * @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Edge if it returns true\n * @param element - The element to test\n * @returns A boolean indicating whether the element is an Edge\n */\nexport const isEdgeBase = <EdgeType extends EdgeBase = EdgeBase>(element: unknown): element is EdgeType =>\n !!element && typeof element === 'object' && 'id' in element && 'source' in element && 'target' in element;\n\n/**\n * Test whether an object is usable as a Node\n * @public\n * @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Node if it returns true\n * @param element - The element to test\n * @returns A boolean indicating whether the element is an Node\n */\nexport const isNodeBase = <NodeType extends NodeBase = NodeBase>(element: unknown): element is NodeType =>\n !!element && typeof element === 'object' && 'id' in element && 'position' in element && !('source' in element) && !('target' in element);\n\nexport const isInternalNodeBase = <NodeType extends InternalNodeBase = InternalNodeBase>(\n element: unknown\n): element is NodeType => !!element && typeof element === 'object' && 'id' in element && 'internals' in element && !('source' in element) && !('target' in element);\n\n/**\n * This util is used to tell you what nodes, if any, are connected to the given node\n * as the _target_ of an edge.\n * @public\n * @param node - The node to get the connected nodes from.\n * @param nodes - The array of all nodes.\n * @param edges - The array of all edges.\n * @returns An array of nodes that are connected over edges where the source is the given node.\n *\n * @example\n * ```ts\n *import { getOutgoers } from '@xyflow/react';\n *\n *const nodes = [];\n *const edges = [];\n *\n *const outgoers = getOutgoers(\n * { id: '1', position: { x: 0, y: 0 }, data: { label: 'node' } },\n * nodes,\n * edges,\n *);\n *```\n */\nexport const getOutgoers = <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(\n node: NodeType | { id: string },\n nodes: NodeType[],\n edges: EdgeType[]\n): NodeType[] => {\n if (!node.id) {\n return [];\n }\n\n const outgoerIds = new Set();\n edges.forEach((edge) => {\n if (edge.source === node.id) {\n outgoerIds.add(edge.target);\n }\n });\n\n return nodes.filter((n) => outgoerIds.has(n.id));\n};\n\n/**\n * This util is used to tell you what nodes, if any, are connected to the given node\n * as the _source_ of an edge.\n * @public\n * @param node - The node to get the connected nodes from.\n * @param nodes - The array of all nodes.\n * @param edges - The array of all edges.\n * @returns An array of nodes that are connected over edges where the target is the given node.\n *\n * @example\n * ```ts\n *import { getIncomers } from '@xyflow/react';\n *\n *const nodes = [];\n *const edges = [];\n *\n *const incomers = getIncomers(\n * { id: '1', position: { x: 0, y: 0 }, data: { label: 'node' } },\n * nodes,\n * edges,\n *);\n *```\n */\nexport const getIncomers = <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(\n node: NodeType | { id: string },\n nodes: NodeType[],\n edges: EdgeType[]\n): NodeType[] => {\n if (!node.id) {\n return [];\n }\n const incomersIds = new Set();\n edges.forEach((edge) => {\n if (edge.target === node.id) {\n incomersIds.add(edge.source);\n }\n });\n\n return nodes.filter((n) => incomersIds.has(n.id));\n};\n\nexport const getNodePositionWithOrigin = (node: NodeBase, nodeOrigin: NodeOrigin = [0, 0]): XYPosition => {\n const { width, height } = getNodeDimensions(node);\n const origin = node.origin ?? nodeOrigin;\n const offsetX = width * origin[0];\n const offsetY = height * origin[1];\n\n return {\n x: node.position.x - offsetX,\n y: node.position.y - offsetY,\n };\n};\n\nexport type GetNodesBoundsParams<NodeType extends NodeBase = NodeBase> = {\n /**\n * Origin of the nodes: `[0, 0]` for top-left, `[0.5, 0.5]` for center.\n * @default [0, 0]\n */\n nodeOrigin?: NodeOrigin;\n nodeLookup?: NodeLookup<InternalNodeBase<NodeType>>;\n};\n\n/**\n * Returns the bounding box that contains all the given nodes in an array. This can\n * be useful when combined with [`getViewportForBounds`](/api-reference/utils/get-viewport-for-bounds)\n * to calculate the correct transform to fit the given nodes in a viewport.\n * @public\n * @remarks Useful when combined with {@link getViewportForBounds} to calculate the correct transform to fit the given nodes in a viewport.\n * @param nodes - Nodes to calculate the bounds for.\n * @returns Bounding box enclosing all nodes.\n *\n * @remarks This function was previously called `getRectOfNodes`\n *\n * @example\n * ```js\n *import { getNodesBounds } from '@xyflow/react';\n *\n *const nodes = [\n * {\n * id: 'a',\n * position: { x: 0, y: 0 },\n * data: { label: 'a' },\n * width: 50,\n * height: 25,\n * },\n * {\n * id: 'b',\n * position: { x: 100, y: 100 },\n * data: { label: 'b' },\n * width: 50,\n * height: 25,\n * },\n *];\n *\n *const bounds = getNodesBounds(nodes);\n *```\n */\nexport const getNodesBounds = <NodeType extends NodeBase = NodeBase>(\n nodes: (NodeType | InternalNodeBase<NodeType> | string)[],\n params: GetNodesBoundsParams<NodeType> = { nodeOrigin: [0, 0] }\n): Rect => {\n if (process.env.NODE_ENV === 'development' && !params.nodeLookup) {\n console.warn(\n 'Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows.'\n );\n }\n\n if (nodes.length === 0) {\n return { x: 0, y: 0, width: 0, height: 0 };\n }\n\n let hasNode = false;\n const box = nodes.reduce(\n (currBox, nodeOrId) => {\n const isId = typeof nodeOrId === 'string';\n let currentNode = !params.nodeLookup && !isId ? nodeOrId : undefined;\n\n if (params.nodeLookup) {\n currentNode = isId\n ? params.nodeLookup.get(nodeOrId)\n : !isInternalNodeBase(nodeOrId)\n ? params.nodeLookup.get(nodeOrId.id)\n : nodeOrId;\n }\n\n /*\n * Skip ids/nodes that can't be resolved (e.g. a stale or already-removed id).\n * Merging a phantom box at the origin would stretch the bounds to include\n * (0, 0). This mirrors getInternalNodesBounds, which skips unmatched nodes.\n */\n if (!currentNode) {\n return currBox;\n }\n\n hasNode = true;\n return getBoundsOfBoxes(currBox, nodeToBox(currentNode, params.nodeOrigin));\n },\n { x: Infinity, y: Infinity, x2: -Infinity, y2: -Infinity }\n );\n\n return hasNode ? boxToRect(box) : { x: 0, y: 0, width: 0, height: 0 };\n};\n\nexport type GetInternalNodesBoundsParams<NodeType> = {\n useRelativePosition?: boolean;\n filter?: (node: NodeType) => boolean;\n};\n\n/**\n * Determines a bounding box that contains all given nodes in an array\n * @internal\n */\nexport const getInternalNodesBounds = <NodeType extends InternalNodeBase | NodeDragItem>(\n nodeLookup: Map<string, NodeType>,\n params: GetInternalNodesBoundsParams<NodeType> = {}\n): Rect => {\n let box = { x: Infinity, y: Infinity, x2: -Infinity, y2: -Infinity };\n let hasVisibleNodes = false;\n\n nodeLookup.forEach((node) => {\n if (params.filter === undefined || params.filter(node)) {\n box = getBoundsOfBoxes(box, nodeToBox(node as InternalNodeBase));\n hasVisibleNodes = true;\n }\n });\n\n return hasVisibleNodes ? boxToRect(box) : { x: 0, y: 0, width: 0, height: 0 };\n};\n\nexport const getNodesInside = <NodeType extends NodeBase = NodeBase>(\n nodes: Map<string, InternalNodeBase<NodeType>>,\n rect: Rect,\n [tx, ty, tScale]: Transform = [0, 0, 1],\n partially = false,\n // set excludeNonSelectableNodes if you want to pay attention to the nodes \"selectable\" attribute\n excludeNonSelectableNodes = false\n): InternalNodeBase<NodeType>[] => {\n // viewport in flow coordinates, as scalars to avoid a Rect allocation per node\n const paneX = (rect.x - tx) / tScale;\n const paneY = (rect.y - ty) / tScale;\n const paneWidth = rect.width / tScale;\n const paneHeight = rect.height / tScale;\n\n const visibleNodes: InternalNodeBase<NodeType>[] = [];\n\n for (const node of nodes.values()) {\n const { measured, selectable = true, hidden = false } = node;\n\n if ((excludeNonSelectableNodes && !selectable) || hidden) {\n continue;\n }\n\n const width = measured.width ?? node.width ?? node.initialWidth ?? 0;\n const height = measured.height ?? node.height ?? node.initialHeight ?? 0;\n const { x, y } = node.internals.positionAbsolute;\n\n const overlappingArea = getRectsOverlappingArea(paneX, paneY, paneWidth, paneHeight, x, y, width, height);\n const area = width * height;\n\n const partiallyVisible = partially && overlappingArea > 0;\n const forceInitialRender = !node.internals.handleBounds;\n const isVisible = forceInitialRender || partiallyVisible || overlappingArea >= area;\n\n if (isVisible || node.dragging) {\n visibleNodes.push(node);\n }\n }\n\n return visibleNodes;\n};\n\n/**\n * This utility filters an array of edges, keeping only those where either the source or target\n * node is present in the given array of nodes.\n * @public\n * @param nodes - Nodes you want to get the connected edges for.\n * @param edges - All edges.\n * @returns Array of edges that connect any of the given nodes with each other.\n *\n * @example\n * ```js\n *import { getConnectedEdges } from '@xyflow/react';\n *\n *const nodes = [\n * { id: 'a', position: { x: 0, y: 0 } },\n * { id: 'b', position: { x: 100, y: 0 } },\n *];\n *\n *const edges = [\n * { id: 'a->c', source: 'a', target: 'c' },\n * { id: 'c->d', source: 'c', target: 'd' },\n *];\n *\n *const connectedEdges = getConnectedEdges(nodes, edges);\n * // => [{ id: 'a->c', source: 'a', target: 'c' }]\n *```\n */\nexport const getConnectedEdges = <NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(\n nodes: NodeType[],\n edges: EdgeType[]\n): EdgeType[] => {\n const nodeIds = new Set();\n nodes.forEach((node) => {\n nodeIds.add(node.id);\n });\n\n return edges.filter((edge) => nodeIds.has(edge.source) || nodeIds.has(edge.target));\n};\n\nfunction getFitViewNodes<\n Params extends NodeLookup<InternalNodeBase<NodeBase>>,\n Options extends FitViewOptionsBase<NodeBase>,\n>(nodeLookup: Params, options?: Options) {\n const fitViewNodes: NodeLookup = new Map();\n const optionNodeIds = options?.nodes ? new Set(options.nodes.map((node) => node.id)) : null;\n\n nodeLookup.forEach((n) => {\n let isVisible: boolean;\n\n if (options?.includeHiddenNodes) {\n /*\n * when hidden nodes are included they were never rendered, so they have no\n * measured size. Fall back to the declared dimensions (same fallback as\n * nodeToBox) so a hidden node with an intrinsic size still contributes to\n * the fit bounds instead of being dropped by a measured-only check. (#5841)\n */\n const { width, height } = getNodeDimensions(n);\n isVisible = width > 0 && height > 0;\n } else {\n isVisible = Boolean(n.measured.width && n.measured.height && !n.hidden);\n }\n\n if (isVisible && (!optionNodeIds || optionNodeIds.has(n.id))) {\n fitViewNodes.set(n.id, n);\n }\n });\n\n return fitViewNodes;\n}\n\nexport async function fitViewport<\n Params extends FitViewParamsBase<NodeBase>,\n Options extends FitViewOptionsBase<NodeBase>,\n>(\n { nodes, width, height, panZoom, minZoom, maxZoom }: Params,\n options?: Omit<Options, 'nodes' | 'includeHiddenNodes'>\n): Promise<boolean> {\n if (nodes.size === 0) {\n return true;\n }\n\n const nodesToFit = getFitViewNodes(nodes, options);\n\n const bounds = getInternalNodesBounds(nodesToFit);\n\n const viewport = getViewportForBounds(\n bounds,\n width,\n height,\n options?.minZoom ?? minZoom,\n options?.maxZoom ?? maxZoom,\n options?.padding ?? defaultFitViewPadding\n );\n\n return panZoom.setViewport(viewport, {\n duration: options?.duration,\n ease: options?.ease,\n interpolate: options?.interpolate,\n });\n}\n\n/**\n * This function calculates the next position of a node, taking into account the node's extent, parent node, and origin.\n *\n * @internal\n * @returns position, positionAbsolute\n */\nexport function calculateNodePosition<NodeType extends NodeBase>({\n nodeId,\n nextPosition,\n nodeLookup,\n nodeOrigin = [0, 0],\n nodeExtent,\n onError,\n}: {\n nodeId: string;\n nextPosition: XYPosition;\n nodeLookup: NodeLookup<InternalNodeBase<NodeType>>;\n nodeOrigin?: NodeOrigin;\n nodeExtent?: CoordinateExtent;\n onError?: OnError;\n}): { position: XYPosition; positionAbsolute: XYPosition } {\n const node = nodeLookup.get(nodeId)!;\n const parentNode = node.parentId ? nodeLookup.get(node.parentId) : undefined;\n const { x: parentX, y: parentY } = parentNode ? parentNode.internals.positionAbsolute : { x: 0, y: 0 };\n\n const origin = node.origin ?? nodeOrigin;\n let extent = node.extent || nodeExtent;\n\n if (node.extent === 'parent' && !node.expandParent) {\n if (!parentNode) {\n onError?.('005', errorMessages['error005']());\n } else {\n const { width: parentWidth, height: parentHeight } = getNodeDimensions(parentNode);\n\n if (parentWidth && parentHeight) {\n extent = [\n [parentX, parentY],\n [parentX + parentWidth, parentY + parentHeight],\n ];\n }\n }\n } else if (parentNode && isCoordinateExtent(node.extent)) {\n extent = [\n [node.extent[0][0] + parentX, node.extent[0][1] + parentY],\n [node.extent[1][0] + parentX, node.extent[1][1] + parentY],\n ];\n }\n\n const positionAbsolute = isCoordinateExtent(extent)\n ? clampPosition(nextPosition, extent, node.measured)\n : nextPosition;\n\n if (node.measured.width === undefined || node.measured.height === undefined) {\n onError?.('015', errorMessages['error015']());\n }\n\n return {\n position: {\n x: positionAbsolute.x - parentX + (node.measured.width ?? 0) * origin[0],\n y: positionAbsolute.y - parentY + (node.measured.height ?? 0) * origin[1],\n },\n positionAbsolute,\n };\n}\n\n/**\n * Pass in nodes & edges to delete, get arrays of nodes and edges that actually can be deleted\n * @internal\n * @param param.nodesToRemove - The nodes to remove\n * @param param.edgesToRemove - The edges to remove\n * @param param.nodes - All nodes\n * @param param.edges - All edges\n * @param param.onBeforeDelete - Callback to check which nodes and edges can be deleted\n * @returns nodes: nodes that can be deleted, edges: edges that can be deleted\n */\nexport async function getElementsToRemove<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>({\n nodesToRemove = [],\n edgesToRemove = [],\n nodes,\n edges,\n onBeforeDelete,\n}: {\n nodesToRemove: Partial<NodeType>[];\n edgesToRemove: Partial<EdgeType>[];\n nodes: NodeType[];\n edges: EdgeType[];\n onBeforeDelete?: OnBeforeDeleteBase<NodeType, EdgeType>;\n}): Promise<{\n nodes: NodeType[];\n edges: EdgeType[];\n}> {\n const nodeIds = new Set(nodesToRemove.map((node) => node.id));\n const matchingNodeMap = new Map<string, NodeType>();\n const children = new Map<string, NodeType[]>();\n\n for (const node of nodes) {\n if (node.deletable === false) {\n continue;\n }\n\n if (nodeIds.has(node.id)) {\n matchingNodeMap.set(node.id, node);\n }\n\n if (node.parentId) {\n const siblings = children.get(node.parentId) ?? [];\n siblings.push(node);\n children.set(node.parentId, siblings);\n }\n }\n\n const queue = [...matchingNodeMap.keys()];\n for (let index = 0; index < queue.length; index++) {\n for (const child of children.get(queue[index]) ?? []) {\n if (!matchingNodeMap.has(child.id)) {\n matchingNodeMap.set(child.id, child);\n queue.push(child.id);\n }\n }\n }\n\n const edgeIds = new Set(edgesToRemove.map((edge) => edge.id));\n const matchingEdgeMap = new Map<string, EdgeType>();\n\n for (const edge of edges) {\n if (\n edge.deletable !== false &&\n (matchingNodeMap.has(edge.source) || matchingNodeMap.has(edge.target))\n ) {\n matchingEdgeMap.set(edge.id, edge);\n }\n }\n\n for (const edge of edges) {\n if (edge.deletable !== false && edgeIds.has(edge.id) && !matchingEdgeMap.has(edge.id)) {\n matchingEdgeMap.set(edge.id, edge);\n }\n }\n\n const matchingNodes = nodes.filter((node) => matchingNodeMap.has(node.id));\n const matchingEdges = Array.from(matchingEdgeMap.values());\n\n if (!onBeforeDelete) {\n return {\n edges: matchingEdges,\n nodes: matchingNodes,\n };\n }\n\n const onBeforeDeleteResult = await onBeforeDelete({\n nodes: matchingNodes,\n edges: matchingEdges,\n });\n\n if (typeof onBeforeDeleteResult === 'boolean') {\n return onBeforeDeleteResult ? { edges: matchingEdges, nodes: matchingNodes } : { edges: [], nodes: [] };\n }\n\n return onBeforeDeleteResult;\n}\n","import type {\n Dimensions,\n XYPosition,\n CoordinateExtent,\n Box,\n Rect,\n NodeBase,\n NodeOrigin,\n SnapGrid,\n Transform,\n InternalNodeBase,\n NodeLookup,\n Padding,\n PaddingWithUnit,\n OnError,\n} from '../types';\nimport { type Viewport } from '../types';\nimport { getNodePositionWithOrigin, isInternalNodeBase } from './graph';\nimport { defaultAriaLabelConfig, type AriaLabelConfig } from './constants';\n\nexport const clamp = (val: number, min = 0, max = 1): number => Math.min(Math.max(val, min), max);\n\nexport const clampPosition = (\n position: XYPosition = { x: 0, y: 0 },\n extent: CoordinateExtent,\n dimensions: Partial<Dimensions>\n) => ({\n x: clamp(position.x, extent[0][0], extent[1][0] - (dimensions?.width ?? 0)),\n y: clamp(position.y, extent[0][1], extent[1][1] - (dimensions?.height ?? 0)),\n});\n\nexport function clampPositionToParent<NodeType extends NodeBase>(\n childPosition: XYPosition,\n childDimensions: Dimensions,\n parent: InternalNodeBase<NodeType>\n) {\n const { width: parentWidth, height: parentHeight } = getNodeDimensions(parent);\n const { x: parentX, y: parentY } = parent.internals.positionAbsolute;\n\n return clampPosition(\n childPosition,\n [\n [parentX, parentY],\n [parentX + parentWidth, parentY + parentHeight],\n ],\n childDimensions\n );\n}\n\n/**\n * Calculates the velocity of panning when the mouse is close to the edge of the canvas\n * @internal\n * @param value - One dimensional poition of the mouse (x or y)\n * @param min - Minimal position on canvas before panning starts\n * @param max - Maximal position on canvas before panning starts\n * @returns - A number between 0 and 1 that represents the velocity of panning\n */\nconst calcAutoPanVelocity = (value: number, min: number, max: number): number => {\n if (value < min) {\n return clamp(Math.abs(value - min), 1, min) / min;\n } else if (value > max) {\n return -clamp(Math.abs(value - max), 1, min) / min;\n }\n\n return 0;\n};\n\nexport const calcAutoPan = (\n pos: XYPosition,\n bounds: Dimensions,\n speed: number = 15,\n distance: number = 40\n): number[] => {\n const xMovement = calcAutoPanVelocity(pos.x, distance, bounds.width - distance) * speed;\n const yMovement = calcAutoPanVelocity(pos.y, distance, bounds.height - distance) * speed;\n\n return [xMovement, yMovement];\n};\n\nexport const getBoundsOfBoxes = (box1: Box, box2: Box): Box => ({\n x: Math.min(box1.x, box2.x),\n y: Math.min(box1.y, box2.y),\n x2: Math.max(box1.x2, box2.x2),\n y2: Math.max(box1.y2, box2.y2),\n});\n\nexport const rectToBox = ({ x, y, width, height }: Rect): Box => ({\n x,\n y,\n x2: x + width,\n y2: y + height,\n});\n\nexport const boxToRect = ({ x, y, x2, y2 }: Box): Rect => ({\n x,\n y,\n width: x2 - x,\n height: y2 - y,\n});\n\nexport const nodeToRect = (node: InternalNodeBase | NodeBase, nodeOrigin: NodeOrigin = [0, 0]): Rect => {\n const { x, y } = isInternalNodeBase(node)\n ? node.internals.positionAbsolute\n : getNodePositionWithOrigin(node, nodeOrigin);\n\n return {\n x,\n y,\n width: node.measured?.width ?? node.width ?? node.initialWidth ?? 0,\n height: node.measured?.height ?? node.height ?? node.initialHeight ?? 0,\n };\n};\n\nexport const nodeToBox = (node: InternalNodeBase | NodeBase, nodeOrigin: NodeOrigin = [0, 0]): Box => {\n const { x, y } = isInternalNodeBase(node)\n ? node.internals.positionAbsolute\n : getNodePositionWithOrigin(node, nodeOrigin);\n\n return {\n x,\n y,\n x2: x + (node.measured?.width ?? node.width ?? node.initialWidth ?? 0),\n y2: y + (node.measured?.height ?? node.height ?? node.initialHeight ?? 0),\n };\n};\n\nexport const getBoundsOfRects = (rect1: Rect, rect2: Rect): Rect =>\n boxToRect(getBoundsOfBoxes(rectToBox(rect1), rectToBox(rect2)));\n\nexport const getRectsOverlappingArea = (\n aX: number,\n aY: number,\n aWidth: number,\n aHeight: number,\n bX: number,\n bY: number,\n bWidth: number,\n bHeight: number\n): number => {\n const xOverlap = Math.max(0, Math.min(aX + aWidth, bX + bWidth) - Math.max(aX, bX));\n const yOverlap = Math.max(0, Math.min(aY + aHeight, bY + bHeight) - Math.max(aY, bY));\n\n return Math.ceil(xOverlap * yOverlap);\n};\n\nexport const getOverlappingArea = (rectA: Rect, rectB: Rect): number =>\n getRectsOverlappingArea(rectA.x, rectA.y, rectA.width, rectA.height, rectB.x, rectB.y, rectB.width, rectB.height);\n\nexport const isRectObject = (obj: unknown): obj is Rect => {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n\n const rect = obj as Record<string, unknown>;\n\n return isNumeric(rect.width) && isNumeric(rect.height) && isNumeric(rect.x) && isNumeric(rect.y);\n};\n\nexport const isNumeric = (n: unknown): n is number => typeof n === 'number' && !isNaN(n) && isFinite(n);\n\nexport const createDevWarn =\n (lib: string, helpUrl: string): OnError =>\n (id: string, message: string) => {\n if (process.env.NODE_ENV === 'development') {\n console.warn(`[${lib}]: ${message} Help: ${helpUrl}error#${id}`);\n }\n };\n\nexport const snapPosition = (position: XYPosition, snapGrid: SnapGrid = [1, 1]): XYPosition => {\n return {\n x: snapGrid[0] * Math.round(position.x / snapGrid[0]),\n y: snapGrid[1] * Math.round(position.y / snapGrid[1]),\n };\n};\n\nexport const pointToRendererPoint = (\n { x, y }: XYPosition,\n [tx, ty, tScale]: Transform,\n snapToGrid = false,\n snapGrid: SnapGrid = [1, 1]\n): XYPosition => {\n const position: XYPosition = {\n x: (x - tx) / tScale,\n y: (y - ty) / tScale,\n };\n\n return snapToGrid ? snapPosition(position, snapGrid) : position;\n};\n\nexport const rendererPointToPoint = ({ x, y }: XYPosition, [tx, ty, tScale]: Transform): XYPosition => {\n return {\n x: x * tScale + tx,\n y: y * tScale + ty,\n };\n};\n\n/**\n * Parses a single padding value to a number\n * @internal\n * @param padding - Padding to parse\n * @param viewport - Width or height of the viewport\n * @returns The padding in pixels\n */\nfunction parsePadding(padding: PaddingWithUnit, viewport: number): number {\n if (typeof padding === 'number') {\n return Math.floor(padding);\n }\n\n if (typeof padding === 'string' && padding.endsWith('px')) {\n const paddingValue = parseFloat(padding);\n if (!Number.isNaN(paddingValue)) {\n return Math.floor(paddingValue);\n }\n }\n\n if (typeof padding === 'string' && padding.endsWith('%')) {\n const paddingValue = parseFloat(padding);\n if (!Number.isNaN(paddingValue)) {\n return Math.floor(viewport * paddingValue * 0.01);\n }\n }\n\n console.error(\n `The padding value \"${padding}\" is invalid. Please provide a number or a string with a valid unit (px or %).`\n );\n return 0;\n}\n\n/**\n * Parses the paddings to an object with top, right, bottom, left, x and y paddings\n * @internal\n * @param padding - Padding to parse\n * @param width - Width of the viewport\n * @param height - Height of the viewport\n * @returns An object with the paddings in pixels\n */\nfunction parsePaddings(\n padding: Padding,\n width: number,\n height: number\n): { top: number; bottom: number; left: number; right: number; x: number; y: number } {\n if (typeof padding === 'string' || typeof padding === 'number') {\n const paddingY = parsePadding(padding, height);\n const paddingX = parsePadding(padding, width);\n return {\n top: paddingY,\n right: paddingX,\n bottom: paddingY,\n left: paddingX,\n x: paddingX * 2,\n y: paddingY * 2,\n };\n }\n\n if (typeof padding === 'object') {\n const top = parsePadding(padding.top ?? padding.y ?? 0, height);\n const bottom = parsePadding(padding.bottom ?? padding.y ?? 0, height);\n const left = parsePadding(padding.left ?? padding.x ?? 0, width);\n const right = parsePadding(padding.right ?? padding.x ?? 0, width);\n return { top, right, bottom, left, x: left + right, y: top + bottom };\n }\n\n return { top: 0, right: 0, bottom: 0, left: 0, x: 0, y: 0 };\n}\n\n/**\n * Calculates the resulting paddings if the new viewport is applied\n * @internal\n * @param bounds - Bounds to fit inside viewport\n * @param x - X position of the viewport\n * @param y - Y position of the viewport\n * @param zoom - Zoom level of the viewport\n * @param width - Width of the viewport\n * @param height - Height of the viewport\n * @returns An object with the minimum padding required to fit the bounds inside the viewport\n */\nfunction calculateAppliedPaddings(bounds: Rect, x: number, y: number, zoom: number, width: number, height: number) {\n const { x: left, y: top } = rendererPointToPoint(bounds, [x, y, zoom]);\n\n const { x: boundRight, y: boundBottom } = rendererPointToPoint(\n { x: bounds.x + bounds.width, y: bounds.y + bounds.height },\n [x, y, zoom]\n );\n\n const right = width - boundRight;\n const bottom = height - boundBottom;\n\n return {\n left: Math.floor(left),\n top: Math.floor(top),\n right: Math.floor(right),\n bottom: Math.floor(bottom),\n };\n}\n\n/**\n * Returns a viewport that encloses the given bounds with padding.\n * @public\n * @remarks You can determine bounds of nodes with {@link getNodesBounds} and {@link getBoundsOfRects}\n * @param bounds - Bounds to fit inside viewport.\n * @param width - Width of the viewport.\n * @param height - Height of the viewport.\n * @param minZoom - Minimum zoom level of the resulting viewport.\n * @param maxZoom - Maximum zoom level of the resulting viewport.\n * @param padding - Padding around the bounds.\n * @returns A transformed {@link Viewport} that encloses the given bounds which you can pass to e.g. {@link setViewport}.\n * @example\n * const { x, y, zoom } = getViewportForBounds(\n * { x: 0, y: 0, width: 100, height: 100},\n * 1200, 800, 0.5, 2);\n */\nexport const getViewportForBounds = (\n bounds: Rect,\n width: number,\n height: number,\n minZoom: number = 0,\n maxZoom: number = Infinity,\n padding: Padding = 0\n): Viewport => {\n // First we resolve all the paddings to actual pixel values\n const p = parsePaddings(padding, width, height);\n\n const xZoom = (width - p.x) / bounds.width;\n const yZoom = (height - p.y) / bounds.height;\n\n // We calculate the new x, y, zoom for a centered view\n const zoom = Math.min(xZoom, yZoom);\n const clampedZoom = clamp(zoom, minZoom, maxZoom);\n\n const boundsCenterX = bounds.x + bounds.width / 2;\n const boundsCenterY = bounds.y + bounds.height / 2;\n const x = width / 2 - boundsCenterX * clampedZoom;\n const y = height / 2 - boundsCenterY * clampedZoom;\n\n // Then we calculate the minimum padding, to respect asymmetric paddings\n const newPadding = calculateAppliedPaddings(bounds, x, y, clampedZoom, width, height);\n\n // We only want to have an offset if the newPadding is smaller than the required padding\n const offset = {\n left: Math.min(newPadding.left - p.left, 0),\n top: Math.min(newPadding.top - p.top, 0),\n right: Math.min(newPadding.right - p.right, 0),\n bottom: Math.min(newPadding.bottom - p.bottom, 0),\n };\n\n return {\n x: x - offset.left + offset.right,\n y: y - offset.top + offset.bottom,\n zoom: clampedZoom,\n };\n};\n\nexport const isMacOs = () => typeof navigator !== 'undefined' && navigator?.userAgent?.indexOf('Mac') >= 0;\n\nexport function isCoordinateExtent(extent?: CoordinateExtent | 'parent' | null): extent is CoordinateExtent {\n return extent !== undefined && extent !== null && extent !== 'parent';\n}\n\nexport function getNodeDimensions(node: {\n measured?: { width?: number; height?: number };\n width?: number;\n height?: number;\n initialWidth?: number;\n initialHeight?: number;\n}): { width: number; height: number } {\n return {\n width: node.measured?.width ?? node.width ?? node.initialWidth ?? 0,\n height: node.measured?.height ?? node.height ?? node.initialHeight ?? 0,\n };\n}\n\nexport function nodeHasDimensions<NodeType extends NodeBase = NodeBase>(node: NodeType): boolean {\n return (\n (node.measured?.width ?? node.width ?? node.initialWidth) !== undefined &&\n (node.measured?.height ?? node.height ?? node.initialHeight) !== undefined\n );\n}\n\n/**\n * Convert child position to absolute position\n *\n * @internal\n * @param position\n * @param parentId\n * @param nodeLookup\n * @param nodeOrigin\n * @returns an internal node with an absolute position\n */\nexport function evaluateAbsolutePosition(\n position: XYPosition,\n dimensions: { width?: number; height?: number } = { width: 0, height: 0 },\n parentId: string,\n nodeLookup: NodeLookup,\n nodeOrigin: NodeOrigin\n): XYPosition {\n const positionAbsolute = { ...position };\n\n const parent = nodeLookup.get(parentId);\n if (parent) {\n const origin = parent.origin || nodeOrigin;\n positionAbsolute.x += parent.internals.positionAbsolute.x - (dimensions.width ?? 0) * origin[0];\n positionAbsolute.y += parent.internals.positionAbsolute.y - (dimensions.height ?? 0) * origin[1];\n }\n\n return positionAbsolute;\n}\n\nexport function areSetsEqual(a: Set<string>, b: Set<string>) {\n if (a.size !== b.size) {\n return false;\n }\n\n for (const item of a) {\n if (!b.has(item)) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Polyfill for Promise.withResolvers until we can use it in all browsers\n * @internal\n */\nexport function withResolvers<T>(): {\n promise: Promise<T>;\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: unknown) => void;\n} {\n let resolve!: (value: T | PromiseLike<T>) => void;\n let reject!: (reason?: unknown) => void;\n\n const promise = new Promise<T>((res, rej) => {\n resolve = res;\n reject = rej;\n });\n return { promise, resolve, reject };\n}\n\nexport function mergeAriaLabelConfig(partial?: Partial<AriaLabelConfig>): AriaLabelConfig {\n return { ...defaultAriaLabelConfig, ...(partial || {}) };\n}\n\nexport function isAttributionVisible(library: string) {\n if (typeof document === 'undefined') return true;\n\n const pane = document.querySelector(`.${library}-flow__pane`);\n if (!pane || !pane.isConnected) return true;\n\n const paneStyle = getComputedStyle(pane);\n if (paneStyle.display === 'none') return true;\n if (paneStyle.visibility === 'hidden' || paneStyle.visibility === 'collapse') return true;\n if (paneStyle.opacity === '0') return true;\n if (paneStyle.width === '0' && paneStyle.height === '0') return true;\n const paneRect = pane.getBoundingClientRect();\n if (paneRect.width === 0 && paneRect.height === 0) return true;\n\n const attr = document.querySelector(`.${library}-flow__attribution`);\n if (!attr || !attr.isConnected) return false;\n\n const style = getComputedStyle(attr);\n\n if (style.display === 'none') return false;\n if (style.visibility === 'hidden' || style.visibility === 'collapse') return false;\n if (style.opacity === '0') return false;\n\n const rect = attr.getBoundingClientRect();\n if (rect.width === 0 && rect.height === 0) return false;\n\n return true;\n}\n","import { isAttributionVisible } from './general';\n\nlet warningDisplayed = false;\n\nexport function handleAttributionWarning(library: 'react' | 'svelte' | 'vue') {\n if (warningDisplayed || process.env.NODE_ENV !== 'development') {\n return;\n }\n\n warningDisplayed = true;\n\n const framework = `${library.charAt(0).toUpperCase() + library.slice(1)} Flow`;\n\n setTimeout(() => {\n if (!isAttributionVisible(library)) {\n console.warn(\n `${framework}: It seems like you are hiding the attribution. Please only do this when you are subscribed to ${framework} Pro: https://${library}flow.dev/remove-attr\\n%cYou can ignore this warning if you are subscribed.`,\n 'font-style: italic;'\n );\n }\n }, 1000);\n}\n","import type { ConnectionLookup, HandleType, NodeConnection } from '../types';\n\n/**\n * Returns the key under which the connections of a node are stored in the connection lookup.\n * Without a handle type, the key covers all connections of the node. A handle id is only used\n * together with a handle type, because handle ids are only unique per handle type.\n *\n * @internal\n */\nexport function getConnectionLookupKey(nodeId: string, handleType?: HandleType | null, handleId?: string | null) {\n if (!handleType) {\n return nodeId;\n }\n\n return handleId ? `${nodeId}-${handleType}-${handleId}` : `${nodeId}-${handleType}`;\n}\n\n/**\n * Returns the connections of a node, optionally filtered by handle type and handle id.\n *\n * @internal\n */\nexport function getConnectionsFromLookup(\n connectionLookup: ConnectionLookup,\n {\n nodeId,\n type,\n handleId,\n }: {\n nodeId: string;\n type?: HandleType | null;\n handleId?: string | null;\n }\n): NodeConnection[] {\n return Array.from(connectionLookup.get(getConnectionLookupKey(nodeId, type, handleId))?.values() ?? []);\n}\n\n/**\n * @internal\n */\nexport function areConnectionMapsEqual(a?: Map<string, NodeConnection>, b?: Map<string, NodeConnection>) {\n if (a === b) {\n return true;\n }\n\n if (!a || !b || a.size !== b.size) {\n return false;\n }\n\n if (!a.size && !b.size) {\n return true;\n }\n\n for (const [key, connection] of a) {\n if (b.get(key) !== connection) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Connections get recreated whenever the connection lookup is rebuilt (e.g. after the store\n * was reset in React StrictMode), so we compare them by value instead of by reference.\n */\nfunction isSameConnection(a: NodeConnection, b?: NodeConnection) {\n return (\n a === b ||\n (!!b &&\n a.edgeId === b.edgeId &&\n a.source === b.source &&\n a.target === b.target &&\n a.sourceHandle == b.sourceHandle &&\n a.targetHandle == b.targetHandle)\n );\n}\n\n/**\n * We call the callback for all connections in a that are not in b\n *\n * @internal\n */\nexport function handleConnectionChange(\n a: Map<string, NodeConnection>,\n b: Map<string, NodeConnection>,\n cb?: (diff: NodeConnection[]) => void\n) {\n if (!cb) {\n return;\n }\n\n const diff: NodeConnection[] = [];\n\n a.forEach((connection, key) => {\n if (!isSameConnection(connection, b?.get(key))) {\n diff.push(connection);\n }\n });\n\n if (diff.length) {\n cb(diff);\n }\n}\n\nexport function getConnectionStatus(isValid: boolean | null) {\n return isValid === null ? null : isValid ? 'valid' : 'invalid';\n}\n","import type { D3ZoomEvent } from 'd3-zoom';\n\n/**\n * DOM events passed to d3-zoom filter and custom wheel handlers.\n */\nexport type D3ZoomInputEvent = WheelEvent | MouseEvent | TouchEvent;\n\nexport type XYFlowZoomEvent<ElementType extends Element> = Omit<D3ZoomEvent<ElementType, unknown>, 'sourceEvent'> & {\n sourceEvent: D3ZoomInputEvent;\n};\n\n/**\n * Flags attached to programmatic pan/zoom updates (not part of the DOM spec).\n */\nexport type XYFlowSourceEvent = D3ZoomInputEvent & {\n internal?: boolean;\n sync?: boolean;\n};\n\nexport function isPointerEvent(event: Event): event is MouseEvent | TouchEvent {\n return event instanceof MouseEvent || isTouchEvent(event);\n}\n\nexport function isWheelEvent(event: Event): event is WheelEvent {\n return event instanceof WheelEvent;\n}\n\nexport function isTouchEvent(event: Event): event is TouchEvent {\n return typeof TouchEvent !== 'undefined' && event instanceof TouchEvent;\n}\n\nexport function isMouseEvent(event: Event): event is MouseEvent {\n return event instanceof MouseEvent;\n}\n\nexport function getTouchPoint(event: MouseEvent | TouchEvent): [number, number] {\n if (isTouchEvent(event)) {\n const touch = event.touches[0] ?? event.changedTouches[0];\n\n return [touch?.clientX ?? 0, touch?.clientY ?? 0];\n }\n\n return [event.clientX, event.clientY];\n}\n","import type { Transform, XYPosition, SnapGrid, Dimensions, Position, HandleBounds } from '../types';\nimport { isMouseEvent } from './events';\nimport { snapPosition, pointToRendererPoint } from './general';\n\nexport type GetPointerPositionParams = {\n transform: Transform;\n snapGrid?: SnapGrid;\n snapToGrid?: boolean;\n containerBounds: DOMRect | null;\n};\n\nexport function getPointerPosition(\n event: MouseEvent | TouchEvent,\n { snapGrid = [0, 0], snapToGrid = false, transform, containerBounds }: GetPointerPositionParams\n): XYPosition & { xSnapped: number; ySnapped: number } {\n const { x, y } = getEventPosition(event);\n const pointerPos = pointToRendererPoint(\n { x: x - (containerBounds?.left ?? 0), y: y - (containerBounds?.top ?? 0) },\n transform\n );\n const { x: xSnapped, y: ySnapped } = snapToGrid ? snapPosition(pointerPos, snapGrid) : pointerPos;\n\n // we need the snapped position in order to be able to skip unnecessary drag events\n return {\n xSnapped,\n ySnapped,\n ...pointerPos,\n };\n}\n\nexport const getDimensions = (node: HTMLDivElement): Dimensions => ({\n width: node.offsetWidth,\n height: node.offsetHeight,\n});\n\nexport const getHostForElement = (element: HTMLElement | EventTarget | null): Document | ShadowRoot =>\n ((element as Partial<HTMLElement> | null)?.getRootNode?.() as Document | ShadowRoot) || window?.document;\n\nconst inputTags = ['INPUT', 'SELECT', 'TEXTAREA'];\n\nexport function isInputDOMNode(event: KeyboardEvent): boolean {\n // using composed path for handling shadow dom\n const target = (event.composedPath?.()?.[0] || event.target) as Element | null;\n if (target?.nodeType !== 1 /* Node.ELEMENT_NODE */) return false;\n\n const isInput = inputTags.includes(target.nodeName) || target.hasAttribute('contenteditable');\n // when an input field is focused we don't want to trigger deletion or movement of nodes\n return isInput || !!target.closest('.nokey');\n}\n\nexport const getEventPosition = (event: MouseEvent | TouchEvent, bounds?: DOMRect) => {\n const isMouse = isMouseEvent(event);\n const evtX = isMouse ? event.clientX : event.touches?.[0].clientX;\n const evtY = isMouse ? event.clientY : event.touches?.[0].clientY;\n\n return {\n x: evtX - (bounds?.left ?? 0),\n y: evtY - (bounds?.top ?? 0),\n };\n};\n\n/*\n * The handle bounds are calculated relative to the node element.\n * We store them in the internals object of the node in order to avoid\n * unnecessary recalculations.\n */\nexport const getHandleBounds = (\n type: 'source' | 'target',\n nodeElement: HTMLDivElement,\n nodeBounds: DOMRect,\n zoom: number,\n nodeId: string\n): HandleBounds[] | null => {\n const handles = nodeElement.querySelectorAll(`.${type}`);\n\n if (!handles || !handles.length) {\n return null;\n }\n\n return Array.from(handles).map((handle): HandleBounds => {\n const handleBounds = handle.getBoundingClientRect();\n\n return {\n id: handle.getAttribute('data-handleid'),\n type,\n nodeId,\n position: handle.getAttribute('data-handlepos') as unknown as Position,\n x: (handleBounds.left - nodeBounds.left) / zoom,\n y: (handleBounds.top - nodeBounds.top) / zoom,\n ...getDimensions(handle as HTMLDivElement),\n };\n });\n};\n","import { Position } from '../../types';\n\nexport type GetBezierPathParams = {\n /** The `x` position of the source handle. */\n sourceX: number;\n /** The `y` position of the source handle. */\n sourceY: number;\n /**\n * The position of the source handle.\n * @default Position.Bottom\n */\n sourcePosition?: Position;\n /** The `x` position of the target handle. */\n targetX: number;\n /** The `y` position of the target handle. */\n targetY: number;\n /**\n * The position of the target handle.\n * @default Position.Top\n */\n targetPosition?: Position;\n /**\n * The curvature of the bezier edge.\n * @default 0.25\n */\n curvature?: number;\n};\n\nexport type GetControlWithCurvatureParams = {\n pos: Position;\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n c: number;\n};\n\nexport function getBezierEdgeCenter({\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourceControlX,\n sourceControlY,\n targetControlX,\n targetControlY,\n}: {\n sourceX: number;\n sourceY: number;\n targetX: number;\n targetY: number;\n sourceControlX: number;\n sourceControlY: number;\n targetControlX: number;\n targetControlY: number;\n}): [number, number, number, number] {\n /*\n * cubic bezier t=0.5 mid point, not the actual mid point, but easy to calculate\n * https://stackoverflow.com/questions/67516101/how-to-find-distance-mid-point-of-bezier-curve\n */\n const centerX = sourceX * 0.125 + sourceControlX * 0.375 + targetControlX * 0.375 + targetX * 0.125;\n const centerY = sourceY * 0.125 + sourceControlY * 0.375 + targetControlY * 0.375 + targetY * 0.125;\n const offsetX = Math.abs(centerX - sourceX);\n const offsetY = Math.abs(centerY - sourceY);\n\n return [centerX, centerY, offsetX, offsetY];\n}\n\nfunction calculateControlOffset(distance: number, curvature: number): number {\n if (distance >= 0) {\n return 0.5 * distance;\n }\n\n return curvature * 25 * Math.sqrt(-distance);\n}\n\nfunction getControlWithCurvature({ pos, x1, y1, x2, y2, c }: GetControlWithCurvatureParams): [number, number] {\n switch (pos) {\n case Position.Left:\n return [x1 - calculateControlOffset(x1 - x2, c), y1];\n case Position.Right:\n return [x1 + calculateControlOffset(x2 - x1, c), y1];\n case Position.Top:\n return [x1, y1 - calculateControlOffset(y1 - y2, c)];\n case Position.Bottom:\n return [x1, y1 + calculateControlOffset(y2 - y1, c)];\n }\n}\n\n/**\n * The `getBezierPath` util returns everything you need to render a bezier edge\n *between two nodes.\n * @public\n * @returns A path string you can use in an SVG, the `labelX` and `labelY` position (center of path)\n * and `offsetX`, `offsetY` between source handle and label.\n * - `path`: the path to use in an SVG `<path>` element.\n * - `labelX`: the `x` position you can use to render a label for this edge.\n * - `labelY`: the `y` position you can use to render a label for this edge.\n * - `offsetX`: the absolute difference between the source `x` position and the `x` position of the\n * middle of this path.\n * - `offsetY`: the absolute difference between the source `y` position and the `y` position of the\n * middle of this path.\n * @example\n * ```js\n * const source = { x: 0, y: 20 };\n * const target = { x: 150, y: 100 };\n *\n * const [path, labelX, labelY, offsetX, offsetY] = getBezierPath({\n * sourceX: source.x,\n * sourceY: source.y,\n * sourcePosition: Position.Right,\n * targetX: target.x,\n * targetY: target.y,\n * targetPosition: Position.Left,\n *});\n *```\n *\n * @remarks This function returns a tuple (aka a fixed-size array) to make it easier to\n *work with multiple edge paths at once.\n */\nexport function getBezierPath({\n sourceX,\n sourceY,\n sourcePosition = Position.Bottom,\n targetX,\n targetY,\n targetPosition = Position.Top,\n curvature = 0.25,\n}: GetBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number] {\n const [sourceControlX, sourceControlY] = getControlWithCurvature({\n pos: sourcePosition,\n x1: sourceX,\n y1: sourceY,\n x2: targetX,\n y2: targetY,\n c: curvature,\n });\n const [targetControlX, targetControlY] = getControlWithCurvature({\n pos: targetPosition,\n x1: targetX,\n y1: targetY,\n x2: sourceX,\n y2: sourceY,\n c: curvature,\n });\n const [labelX, labelY, offsetX, offsetY] = getBezierEdgeCenter({\n sourceX,\n sourceY,\n targetX,\n targetY,\n sourceControlX,\n sourceControlY,\n targetControlX,\n targetControlY,\n });\n\n return [\n `M${sourceX},${sourceY} C${sourceControlX},${sourceControlY} ${targetControlX},${targetControlY} ${targetX},${targetY}`,\n labelX,\n labelY,\n offsetX,\n offsetY,\n ];\n}\n","import {\n type Connection,\n type InternalNodeBase,\n type Transform,\n errorMessages,\n isEdgeBase,\n type EdgeBase,\n type ZIndexMode,\n OnError,\n} from '../..';\nimport { getOverlappingArea, boxToRect, nodeToBox, getBoundsOfBoxes } from '../general';\n\n// this is used for straight edges and simple smoothstep edges (LTR, RTL, BTT, TTB)\nexport function getEdgeCenter({\n sourceX,\n sourceY,\n targetX,\n targetY,\n}: {\n sourceX: number;\n sourceY: number;\n targetX: number;\n targetY: number;\n}): [number, number, number, number] {\n const xOffset = Math.abs(targetX - sourceX) / 2;\n const centerX = targetX < sourceX ? targetX + xOffset : targetX - xOffset;\n\n const yOffset = Math.abs(targetY - sourceY) / 2;\n const centerY = targetY < sourceY ? targetY + yOffset : targetY - yOffset;\n\n return [centerX, centerY, xOffset, yOffset];\n}\n\nexport type GetEdgeZIndexParams = {\n sourceNode: InternalNodeBase;\n targetNode: InternalNodeBase;\n selected?: boolean;\n zIndex?: number;\n elevateOnSelect?: boolean;\n zIndexMode?: ZIndexMode;\n};\n\n/**\n * Returns the z-index for an edge based on the node it connects and whether it is selected.\n * By default, edges are rendered below nodes. This behaviour is different for edges that are\n * connected to nodes with a parent, as they are rendered above the parent node.\n */\nexport function getElevatedEdgeZIndex({\n sourceNode,\n targetNode,\n selected = false,\n zIndex = 0,\n elevateOnSelect = false,\n zIndexMode = 'basic',\n}: GetEdgeZIndexParams): number {\n if (zIndexMode === 'manual') {\n return zIndex;\n }\n\n const edgeZ = elevateOnSelect && selected ? zIndex + 1000 : zIndex;\n const nodeZ = Math.max(\n sourceNode.parentId || (elevateOnSelect && sourceNode.selected) ? sourceNode.internals.z : 0,\n targetNode.parentId || (elevateOnSelect && targetNode.selected) ? targetNode.internals.z : 0\n );\n\n return edgeZ + nodeZ;\n}\n\ntype IsEdgeVisibleParams = {\n sourceNode: InternalNodeBase;\n targetNode: InternalNodeBase;\n width: number;\n height: number;\n transform: Transform;\n};\n\nexport function isEdgeVisible({ sourceNode, targetNode, width, height, transform }: IsEdgeVisibleParams): boolean {\n const edgeBox = getBoundsOfBoxes(nodeToBox(sourceNode), nodeToBox(targetNode));\n\n if (edgeBox.x === edgeBox.x2) {\n edgeBox.x2 += 1;\n }\n\n if (edgeBox.y === edgeBox.y2) {\n edgeBox.y2 += 1;\n }\n\n const viewRect = {\n x: -transform[0] / transform[2],\n y: -transform[1] / transform[2],\n width: width / transform[2],\n height: height / transform[2],\n };\n\n return getOverlappingArea(viewRect, boxToRect(edgeBox)) > 0;\n}\n\n/**\n * Type for a custom edge ID generator function.\n * @public\n */\nexport type GetEdgeId = (params: Connection | EdgeBase) => string;\n\n/**\n * The default edge ID generator function. Generates an ID based on the source, target, and handles.\n * @public\n * @param params - The connection or edge to generate an ID for.\n * @returns The generated edge ID.\n */\nexport const getEdgeId = ({ source, sourceHandle, target, targetHandle }: Connection | EdgeBase): string =>\n `xy-edge__${source}${sourceHandle || ''}-${target}${targetHandle || ''}`;\n\nconst connectionExists = (edge: EdgeBase, edges: EdgeBase[]) => {\n return edges.some(\n (el) =>\n el.source === edge.source &&\n el.target === edge.target &&\n (el.sourceHandle === edge.sourceHandle || (!el.sourceHandle && !edge.sourceHandle)) &&\n (el.targetHandle === edge.targetHandle || (!el.targetHandle && !edge.targetHandle))\n );\n};\n\nexport type AddEdgeOptions = {\n /**\n * Custom function to generate edge IDs. If not provided, the default `getEdgeId` function is used.\n */\n getEdgeId?: GetEdgeId;\n /**\n * Called when edge validation fails. If not provided, a default dev warning is used.\n */\n onError?: OnError;\n};\n\n/**\n * This util is a convenience function to add a new Edge to an array of edges. It also performs some validation to make sure you don't add an invalid edge or duplicate an existing one.\n * @public\n * @param edgeParams - Either an `Edge` or a `Connection` you want to add.\n * @param edges - The array of all current edges.\n * @param options - Optional configuration object.\n * @returns A new array of edges with the new edge added.\n *\n * @remarks If an edge with the same `target` and `source` already exists (and the same\n *`targetHandle` and `sourceHandle` if those are set), then this util won't add\n *a new edge even if the `id` property is different.\n *\n */\nexport const addEdge = <EdgeType extends EdgeBase>(\n edgeParams: EdgeType | Connection,\n edges: EdgeType[],\n options: AddEdgeOptions = {}\n): EdgeType[] => {\n if (!edgeParams.source || !edgeParams.target) {\n options.onError?.('006', errorMessages['error006']());\n\n return edges;\n }\n\n const edgeIdGenerator = options.getEdgeId || getEdgeId;\n\n let edge: EdgeType;\n if (isEdgeBase(edgeParams)) {\n edge = { ...edgeParams };\n } else {\n edge = {\n ...edgeParams,\n id: edgeIdGenerator(edgeParams),\n } as EdgeType;\n }\n\n if (connectionExists(edge, edges)) {\n return edges;\n }\n\n if (edge.sourceHandle === null) {\n delete edge.sourceHandle;\n }\n\n if (edge.targetHandle === null) {\n delete edge.targetHandle;\n }\n\n return edges.concat(edge);\n};\n\nexport type ReconnectEdgeOptions = {\n /**\n * Should the id of the old edge be replaced with the new connection id.\n * @default true\n */\n shouldReplaceId?: boolean;\n /**\n * Custom function to generate edge IDs. If not provided, the default `getEdgeId` function is used.\n */\n getEdgeId?: GetEdgeId;\n /**\n * Called when edge validation fails. If not provided, a default dev warning is used.\n */\n onError?: OnError;\n};\n\n/**\n * A handy utility to update an existing [`Edge`](/api-reference/types/edge) with new properties.\n *This searches your edge array for an edge with a matching `id` and updates its\n *properties with the connection you provide.\n * @public\n * @param oldEdge - The edge you want to update.\n * @param newConnection - The new connection you want to update the edge with.\n * @param edges - The array of all current edges.\n * @returns The updated edges array.\n *\n * @example\n * ```js\n *const onReconnect = useCallback(\n * (oldEdge: Edge, newConnection: Connection) => setEdges((els) => reconnectEdge(oldEdge, newConnection, els)),[]);\n *```\n */\nexport const reconnectEdge = <EdgeType extends EdgeBase>(\n oldEdge: EdgeType,\n newConnection: Connection,\n edges: EdgeType[],\n options: ReconnectEdgeOptions = { shouldReplaceId: true }\n): EdgeType[] => {\n const { id: oldEdgeId, ...rest } = oldEdge;\n\n if (!newConnection.source || !newConnection.target) {\n options.onError?.('006', errorMessages['error006']());\n\n return edges;\n }\n\n const foundEdge = edges.find((e) => e.id === oldEdge.id) as EdgeType;\n\n if (!foundEdge) {\n options.onError?.('007', errorMessages['error007'](oldEdgeId));\n\n return edges;\n }\n\n const edgeIdGenerator = options.getEdgeId || getEdgeId;\n const shouldReplaceId = options.shouldReplaceId ?? true;\n\n // Remove old edge and create the new edge with parameters of old edge.\n const edge = {\n ...rest,\n id: shouldReplaceId ? edgeIdGenerator(newConnection) : oldEdgeId,\n source: newConnection.source,\n target: newConnection.target,\n sourceHandle: newConnection.sourceHandle,\n targetHandle: newConnection.targetHandle,\n } as EdgeType;\n\n return edges.filter((e) => e.id !== oldEdgeId).concat(edge);\n};\n","import { getEdgeCenter } from './general';\n\nexport type GetStraightPathParams = {\n /** The `x` position of the source handle. */\n sourceX: number;\n /** The `y` position of the source handle. */\n sourceY: number;\n /** The `x` position of the target handle. */\n targetX: number;\n /** The `y` position of the target handle. */\n targetY: number;\n};\n\n/**\n * Calculates the straight line path between two points.\n * @public\n * @returns A path string you can use in an SVG, the `labelX` and `labelY` position (center of path)\n * and `offsetX`, `offsetY` between source handle and label.\n *\n * - `path`: the path to use in an SVG `<path>` element.\n * - `labelX`: the `x` position you can use to render a label for this edge.\n * - `labelY`: the `y` position you can use to render a label for this edge.\n * - `offsetX`: the absolute difference between the source `x` position and the `x` position of the\n * middle of this path.\n * - `offsetY`: the absolute difference between the source `y` position and the `y` position of the\n * middle of this path.\n * @example\n * ```js\n * const source = { x: 0, y: 20 };\n * const target = { x: 150, y: 100 };\n *\n * const [path, labelX, labelY, offsetX, offsetY] = getStraightPath({\n * sourceX: source.x,\n * sourceY: source.y,\n * sourcePosition: Position.Right,\n * targetX: target.x,\n * targetY: target.y,\n * targetPosition: Position.Left,\n * });\n * ```\n * @remarks This function returns a tuple (aka a fixed-size array) to make it easier to work with multiple edge paths at once.\n */\nexport function getStraightPath({\n sourceX,\n sourceY,\n targetX,\n targetY,\n}: GetStraightPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number] {\n const [labelX, labelY, offsetX, offsetY] = getEdgeCenter({\n sourceX,\n sourceY,\n targetX,\n targetY,\n });\n\n return [`M ${sourceX},${sourceY}L ${targetX},${targetY}`, labelX, labelY, offsetX, offsetY];\n}\n","import { getEdgeCenter } from './general';\nimport { Position, type XYPosition } from '../../types';\n\nexport interface GetSmoothStepPathParams {\n /** The `x` position of the source handle. */\n sourceX: number;\n /** The `y` position of the source handle. */\n sourceY: number;\n /**\n * The position of the source handle.\n * @default Position.Bottom\n */\n sourcePosition?: Position;\n /** The `x` position of the target handle. */\n targetX: number;\n /** The `y` position of the target handle. */\n targetY: number;\n /**\n * The position of the target handle.\n * @default Position.Top\n */\n targetPosition?: Position;\n /** @default 5 */\n borderRadius?: number;\n centerX?: number;\n centerY?: number;\n /** @default 20 */\n offset?: number;\n /**\n * Controls where the bend occurs along the path.\n * 0 = at source, 1 = at target, 0.5 = midpoint\n * @default 0.5\n */\n stepPosition?: number;\n}\n\nconst handleDirections = {\n [Position.Left]: { x: -1, y: 0 },\n [Position.Right]: { x: 1, y: 0 },\n [Position.Top]: { x: 0, y: -1 },\n [Position.Bottom]: { x: 0, y: 1 },\n};\n\nconst getDirection = ({\n source,\n sourcePosition = Position.Bottom,\n target,\n}: {\n source: XYPosition;\n sourcePosition: Position;\n target: XYPosition;\n}): XYPosition => {\n if (sourcePosition === Position.Left || sourcePosition === Position.Right) {\n return source.x < target.x ? { x: 1, y: 0 } : { x: -1, y: 0 };\n }\n return source.y < target.y ? { x: 0, y: 1 } : { x: 0, y: -1 };\n};\n\nconst distance = (a: XYPosition, b: XYPosition) => Math.sqrt(Math.pow(b.x - a.x, 2) + Math.pow(b.y - a.y, 2));\n\n// checks if b lies on the straight segment from a to c, including b === c\nconst isBetween = (a: XYPosition, b: XYPosition, c: XYPosition) =>\n (a.x === b.x && b.x === c.x && (b.y - a.y) * (c.y - b.y) >= 0) ||\n (a.y === b.y && b.y === c.y && (b.x - a.x) * (c.x - b.x) >= 0);\n\n/*\n * With this function we try to mimic an orthogonal edge routing behaviour\n * It's not as good as a real orthogonal edge routing, but it's faster and good enough as a default for step and smooth step edges\n */\nfunction getPoints({\n source,\n sourcePosition = Position.Bottom,\n target,\n targetPosition = Position.Top,\n center,\n offset,\n stepPosition,\n}: {\n source: XYPosition;\n sourcePosition: Position;\n target: XYPosition;\n targetPosition: Position;\n center: Partial<XYPosition>;\n offset: number;\n stepPosition: number;\n}): [XYPosition[], number, number, number, number] {\n const sourceDir = handleDirections[sourcePosition];\n const targetDir = handleDirections[targetPosition];\n const sourceGapped: XYPosition = { x: source.x + sourceDir.x * offset, y: source.y + sourceDir.y * offset };\n const targetGapped: XYPosition = { x: target.x + targetDir.x * offset, y: target.y + targetDir.y * offset };\n const dir = getDirection({\n source: sourceGapped,\n sourcePosition,\n target: targetGapped,\n });\n const dirAccessor = dir.x !== 0 ? 'x' : 'y';\n const currDir = dir[dirAccessor];\n\n let points: XYPosition[];\n let centerX, centerY;\n const sourceGapOffset = { x: 0, y: 0 };\n const targetGapOffset = { x: 0, y: 0 };\n\n const [, , defaultOffsetX, defaultOffsetY] = getEdgeCenter({\n sourceX: source.x,\n sourceY: source.y,\n targetX: target.x,\n targetY: target.y,\n });\n\n // opposite handle positions, default case\n if (sourceDir[dirAccessor] * targetDir[dirAccessor] === -1) {\n if (dirAccessor === 'x') {\n // Primary direction is horizontal, so stepPosition affects X coordinate\n centerX = center.x ?? sourceGapped.x + (targetGapped.x - sourceGapped.x) * stepPosition;\n centerY = center.y ?? (sourceGapped.y + targetGapped.y) / 2;\n } else {\n // Primary direction is vertical, so stepPosition affects Y coordinate\n centerX = center.x ?? (sourceGapped.x + targetGapped.x) / 2;\n centerY = center.y ?? sourceGapped.y + (targetGapped.y - sourceGapped.y) * stepPosition;\n }\n\n /*\n * --->\n * |\n * >---\n */\n const verticalSplit: XYPosition[] = [\n { x: centerX, y: sourceGapped.y },\n { x: centerX, y: targetGapped.y },\n ];\n /*\n * |\n * ---\n * |\n */\n const horizontalSplit: XYPosition[] = [\n { x: sourceGapped.x, y: centerY },\n { x: targetGapped.x, y: centerY },\n ];\n\n if (sourceDir[dirAccessor] === currDir) {\n points = dirAccessor === 'x' ? verticalSplit : horizontalSplit;\n } else {\n points = dirAccessor === 'x' ? horizontalSplit : verticalSplit;\n }\n } else {\n // sourceTarget means we take x from source and y from target, targetSource is the opposite\n const sourceTarget: XYPosition[] = [{ x: sourceGapped.x, y: targetGapped.y }];\n const targetSource: XYPosition[] = [{ x: targetGapped.x, y: sourceGapped.y }];\n // this handles edges with same handle positions\n if (dirAccessor === 'x') {\n points = sourceDir.x === currDir ? targetSource : sourceTarget;\n } else {\n points = sourceDir.y === currDir ? sourceTarget : targetSource;\n }\n\n if (sourcePosition === targetPosition) {\n const diff = Math.abs(source[dirAccessor] - target[dirAccessor]);\n\n // if an edge goes from right to right for example (sourcePosition === targetPosition) and the distance between source.x and target.x is less than the offset, the added point and the gapped source/target will overlap. This leads to a weird edge path. To avoid this we add a gapOffset to the source/target\n if (diff <= offset) {\n const gapOffset = Math.min(offset - 1, offset - diff);\n if (sourceDir[dirAccessor] === currDir) {\n sourceGapOffset[dirAccessor] = (sourceGapped[dirAccessor] > source[dirAccessor] ? -1 : 1) * gapOffset;\n } else {\n targetGapOffset[dirAccessor] = (targetGapped[dirAccessor] > target[dirAccessor] ? -1 : 1) * gapOffset;\n }\n }\n }\n\n // these are conditions for handling mixed handle positions like Right -> Bottom for example\n if (sourcePosition !== targetPosition) {\n const dirAccessorOpposite = dirAccessor === 'x' ? 'y' : 'x';\n const isSameDir = sourceDir[dirAccessor] === targetDir[dirAccessorOpposite];\n const sourceGtTargetOppo = sourceGapped[dirAccessorOpposite] > targetGapped[dirAccessorOpposite];\n const sourceLtTargetOppo = sourceGapped[dirAccessorOpposite] < targetGapped[dirAccessorOpposite];\n const flipSourceTarget =\n (sourceDir[dirAccessor] === 1 && ((!isSameDir && sourceGtTargetOppo) || (isSameDir && sourceLtTargetOppo))) ||\n (sourceDir[dirAccessor] !== 1 && ((!isSameDir && sourceLtTargetOppo) || (isSameDir && sourceGtTargetOppo)));\n\n if (flipSourceTarget) {\n points = dirAccessor === 'x' ? sourceTarget : targetSource;\n }\n }\n\n const sourceGapPoint = { x: sourceGapped.x + sourceGapOffset.x, y: sourceGapped.y + sourceGapOffset.y };\n const targetGapPoint = { x: targetGapped.x + targetGapOffset.x, y: targetGapped.y + targetGapOffset.y };\n const maxXDistance = Math.max(Math.abs(sourceGapPoint.x - points[0].x), Math.abs(targetGapPoint.x - points[0].x));\n const maxYDistance = Math.max(Math.abs(sourceGapPoint.y - points[0].y), Math.abs(targetGapPoint.y - points[0].y));\n\n // we want to place the label on the longest segment of the edge\n if (maxXDistance >= maxYDistance) {\n centerX = (sourceGapPoint.x + targetGapPoint.x) / 2;\n centerY = points[0].y;\n } else {\n centerX = points[0].x;\n centerY = (sourceGapPoint.y + targetGapPoint.y) / 2;\n }\n }\n\n const gappedSource = { x: sourceGapped.x + sourceGapOffset.x, y: sourceGapped.y + sourceGapOffset.y };\n const gappedTarget = { x: targetGapped.x + targetGapOffset.x, y: targetGapped.y + targetGapOffset.y };\n\n const pathPoints: XYPosition[] = [];\n\n for (const point of [source, gappedSource, ...points, gappedTarget, target]) {\n const [a, b] = pathPoints.slice(-2);\n // drop b if the path runs straight through it, otherwise it would shrink the bend of the next corner\n if (b && isBetween(a, b, point)) {\n pathPoints.pop();\n }\n pathPoints.push(point);\n }\n\n return [pathPoints, centerX, centerY, defaultOffsetX, defaultOffsetY];\n}\n\nfunction getBend(a: XYPosition, b: XYPosition, c: XYPosition, size: number): string {\n const bendSize = Math.min(distance(a, b) / 2, distance(b, c) / 2, size);\n const { x, y } = b;\n\n // no bend\n if ((a.x === x && x === c.x) || (a.y === y && y === c.y)) {\n return `L${x} ${y}`;\n }\n\n // first segment is horizontal\n if (a.y === y) {\n const xDir = a.x < c.x ? -1 : 1;\n const yDir = a.y < c.y ? 1 : -1;\n return `L ${x + bendSize * xDir},${y}Q ${x},${y} ${x},${y + bendSize * yDir}`;\n }\n\n const xDir = a.x < c.x ? 1 : -1;\n const yDir = a.y < c.y ? -1 : 1;\n return `L ${x},${y + bendSize * yDir}Q ${x},${y} ${x + bendSize * xDir},${y}`;\n}\n\n/**\n * The `getSmoothStepPath` util returns everything you need to render a stepped path\n * between two nodes. The `borderRadius` property can be used to choose how rounded\n * the corners of those steps are.\n * @public\n * @returns A path string you can use in an SVG, the `labelX` and `labelY` position (center of path)\n * and `offsetX`, `offsetY` between source handle and label.\n *\n * - `path`: the path to use in an SVG `<path>` element.\n * - `labelX`: the `x` position you can use to render a label for this edge.\n * - `labelY`: the `y` position you can use to render a label for this edge.\n * - `offsetX`: the absolute difference between the source `x` position and the `x` position of the\n * middle of this path.\n * - `offsetY`: the absolute difference between the source `y` position and the `y` position of the\n * middle of this path.\n * @example\n * ```js\n * const source = { x: 0, y: 20 };\n * const target = { x: 150, y: 100 };\n *\n * const [path, labelX, labelY, offsetX, offsetY] = getSmoothStepPath({\n * sourceX: source.x,\n * sourceY: source.y,\n * sourcePosition: Position.Right,\n * targetX: target.x,\n * targetY: target.y,\n * targetPosition: Position.Left,\n * });\n * ```\n * @remarks This function returns a tuple (aka a fixed-size array) to make it easier to work with multiple edge paths at once.\n */\nexport function getSmoothStepPath({\n sourceX,\n sourceY,\n sourcePosition = Position.Bottom,\n targetX,\n targetY,\n targetPosition = Position.Top,\n borderRadius = 5,\n centerX,\n centerY,\n offset = 20,\n stepPosition = 0.5,\n}: GetSmoothStepPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number] {\n const [points, labelX, labelY, offsetX, offsetY] = getPoints({\n source: { x: sourceX, y: sourceY },\n sourcePosition,\n target: { x: targetX, y: targetY },\n targetPosition,\n center: { x: centerX, y: centerY },\n offset,\n stepPosition,\n });\n\n let path = `M${points[0].x} ${points[0].y}`;\n\n for (let i = 1; i < points.length - 1; i++) {\n path += getBend(points[i - 1], points[i], points[i + 1], borderRadius);\n }\n\n path += `L${points[points.length - 1].x} ${points[points.length - 1].y}`;\n\n return [path, labelX, labelY, offsetX, offsetY];\n}\n","import { type EdgePosition } from '../../types/edges';\nimport { ConnectionMode, type OnError } from '../../types/general';\nimport { type HandleBounds, type InternalNodeBase } from '../../types';\nimport { Position, type XYPosition } from '../../types/utils';\nimport { errorMessages } from '../constants';\nimport { getNodeDimensions } from '../general';\n\nexport type GetEdgePositionParams = {\n id: string;\n sourceNode: InternalNodeBase;\n sourceHandle: string | null;\n targetNode: InternalNodeBase;\n targetHandle: string | null;\n connectionMode: ConnectionMode;\n onError?: OnError;\n};\n\nfunction isNodeInitialized(node: InternalNodeBase): boolean {\n return (\n node &&\n !!(node.internals.handleBounds || node.handles?.length) &&\n !!(node.measured.width || node.width || node.initialWidth)\n );\n}\n\nexport function getEdgePosition(params: GetEdgePositionParams): EdgePosition | null {\n const { sourceNode, targetNode } = params;\n\n if (!isNodeInitialized(sourceNode) || !isNodeInitialized(targetNode)) {\n return null;\n }\n\n const sourceHandleBounds = sourceNode.internals.handleBounds;\n const targetHandleBounds = targetNode.internals.handleBounds;\n\n const sourceHandle = getHandle(sourceHandleBounds?.source ?? [], params.sourceHandle);\n const targetHandle = getHandle(\n // when connection type is loose we can define all handles as sources and connect source -> source\n params.connectionMode === ConnectionMode.Strict\n ? (targetHandleBounds?.target ?? [])\n : (targetHandleBounds?.target ?? []).concat(targetHandleBounds?.source ?? []),\n params.targetHandle\n );\n\n if (!sourceHandle || !targetHandle) {\n params.onError?.(\n '008',\n errorMessages['error008'](!sourceHandle ? 'source' : 'target', {\n id: params.id,\n sourceHandle: params.sourceHandle,\n targetHandle: params.targetHandle,\n })\n );\n\n return null;\n }\n\n const sourcePosition = sourceHandle?.position || Position.Bottom;\n const targetPosition = targetHandle?.position || Position.Top;\n const source = getHandlePosition(sourceNode, sourceHandle, sourcePosition);\n const target = getHandlePosition(targetNode, targetHandle, targetPosition);\n\n return {\n sourceX: source.x,\n sourceY: source.y,\n targetX: target.x,\n targetY: target.y,\n sourcePosition,\n targetPosition,\n };\n}\n\nexport function getHandlePosition(\n node: InternalNodeBase,\n handle: HandleBounds | null,\n fallbackPosition: Position = Position.Left,\n center = false\n): XYPosition {\n const x = (handle?.x ?? 0) + node.internals.positionAbsolute.x;\n const y = (handle?.y ?? 0) + node.internals.positionAbsolute.y;\n const { width, height } = handle ?? getNodeDimensions(node);\n\n if (center) {\n return { x: x + width / 2, y: y + height / 2 };\n }\n\n const position = handle?.position ?? fallbackPosition;\n\n switch (position) {\n case Position.Top:\n return { x: x + width / 2, y };\n case Position.Right:\n return { x: x + width, y: y + height / 2 };\n case Position.Bottom:\n return { x: x + width / 2, y: y + height };\n case Position.Left:\n return { x, y: y + height / 2 };\n }\n}\n\nfunction getHandle(bounds: HandleBounds[], handleId?: string | null): HandleBounds | null {\n if (!bounds) {\n return null;\n }\n\n // if no handleId is given, we use the first handle, otherwise we check for the id\n return (!handleId ? bounds[0] : bounds.find((d) => d.id === handleId)) || null;\n}\n","import type { EdgeBase, EdgeMarker, EdgeMarkerType, MarkerProps } from '../types';\n\nexport function getMarkerId(marker: EdgeMarkerType | undefined, id?: string | null): string {\n if (!marker) {\n return '';\n }\n\n if (typeof marker === 'string') {\n return marker;\n }\n\n const idPrefix = id ? `${id}__` : '';\n\n return `${idPrefix}${Object.keys(marker)\n .sort()\n .map((key) => `${key}=${marker[key as keyof EdgeMarker]}`)\n .join('&')}`;\n}\n\nexport function createMarkerIds(\n edges: EdgeBase[],\n {\n id,\n defaultColor,\n defaultMarkerStart,\n defaultMarkerEnd,\n }: {\n id?: string | null;\n defaultColor?: string | null;\n defaultMarkerStart?: EdgeMarkerType;\n defaultMarkerEnd?: EdgeMarkerType;\n }\n) {\n const ids = new Set<string>();\n\n return edges\n .reduce<MarkerProps[]>((markers, edge) => {\n [edge.markerStart || defaultMarkerStart, edge.markerEnd || defaultMarkerEnd].forEach((marker) => {\n if (marker && typeof marker === 'object') {\n const markerId = getMarkerId(marker, id);\n if (!ids.has(markerId)) {\n markers.push({ id: markerId, color: marker.color || defaultColor, ...marker });\n ids.add(markerId);\n }\n }\n });\n\n return markers;\n }, [])\n .sort((a, b) => a.id.localeCompare(b.id));\n}\n","import { Position, type Rect, type Viewport, type Align } from '../';\n\nexport function getNodeToolbarTransform(\n nodeRect: Rect,\n viewport: Viewport,\n position: Position,\n offset: number,\n align: Align\n): string {\n let alignmentOffset = 0.5;\n\n if (align === 'start') {\n alignmentOffset = 0;\n } else if (align === 'end') {\n alignmentOffset = 1;\n }\n\n /*\n * position === Position.Top\n * we set the x any y position of the toolbar based on the nodes position\n */\n let pos = [\n (nodeRect.x + nodeRect.width * alignmentOffset) * viewport.zoom + viewport.x,\n nodeRect.y * viewport.zoom + viewport.y - offset,\n ];\n // and than shift it based on the alignment. The shift values are in %.\n let shift = [-100 * alignmentOffset, -100];\n\n switch (position) {\n case Position.Right:\n pos = [\n (nodeRect.x + nodeRect.width) * viewport.zoom + viewport.x + offset,\n (nodeRect.y + nodeRect.height * alignmentOffset) * viewport.zoom + viewport.y,\n ];\n shift = [0, -100 * alignmentOffset];\n break;\n case Position.Bottom:\n pos[1] = (nodeRect.y + nodeRect.height) * viewport.zoom + viewport.y + offset;\n shift[1] = 0;\n break;\n case Position.Left:\n pos = [\n nodeRect.x * viewport.zoom + viewport.x - offset,\n (nodeRect.y + nodeRect.height * alignmentOffset) * viewport.zoom + viewport.y,\n ];\n shift = [-100, -100 * alignmentOffset];\n break;\n }\n\n return `translate(${pos[0]}px, ${pos[1]}px) translate(${shift[0]}%, ${shift[1]}%)`;\n}\n","const alignXToPercent: Record<'left' | 'center' | 'right', number> = {\n left: 0,\n center: 50,\n right: 100,\n};\n\nconst alignYToPercent: Record<'top' | 'center' | 'bottom', number> = {\n top: 0,\n center: 50,\n bottom: 100,\n};\n\nexport function getEdgeToolbarTransform(\n x: number,\n y: number,\n zoom: number,\n alignX: 'left' | 'center' | 'right' = 'center',\n alignY: 'top' | 'center' | 'bottom' = 'center'\n): string {\n return `translate(${x}px, ${y}px) scale(${1 / zoom}) translate(${-(alignXToPercent[alignX] ?? 50)}%, ${-(\n alignYToPercent[alignY] ?? 50\n )}%)`;\n}\n","import { dimensionChange, DimensionChange, infiniteExtent, positionChange, PositionChange, type ZIndexMode } from '..';\nimport {\n type NodeBase,\n type CoordinateExtent,\n type HandleBounds,\n type InternalNodeUpdate,\n type NodeHandleBounds,\n type NodeOrigin,\n type PanZoomInstance,\n type Transform,\n type XYPosition,\n type ConnectionLookup,\n type EdgeBase,\n type EdgeLookup,\n type InternalNodeBase,\n type NodeLookup,\n type Rect,\n type ParentLookup,\n type NodeConnection,\n} from '../types';\nimport { getDimensions, getHandleBounds } from './dom';\nimport {\n clampPosition,\n clampPositionToParent,\n getBoundsOfRects,\n getNodeDimensions,\n isCoordinateExtent,\n isNumeric,\n nodeToRect,\n} from './general';\nimport { getNodePositionWithOrigin } from './graph';\nimport { type ParentExpandChild } from './types';\n\nconst SELECTED_NODE_Z = 1000;\nconst ROOT_PARENT_Z_INCREMENT = 10;\n\nconst defaultOptions = {\n nodeOrigin: [0, 0] as NodeOrigin,\n nodeExtent: infiniteExtent,\n elevateNodesOnSelect: true,\n zIndexMode: 'basic' as ZIndexMode,\n defaults: {},\n};\n\nconst adoptUserNodesDefaultOptions = {\n ...defaultOptions,\n checkEquality: true,\n};\n\nfunction mergeObjects<T extends Record<string, unknown>>(base: T, incoming?: Partial<T>): T {\n const result = { ...base };\n for (const key in incoming) {\n if (incoming[key] !== undefined) {\n // typecast is safe here, because we check for undefined\n result[key] = (incoming as T)[key]!;\n }\n }\n\n return result;\n}\n\nfunction getPositionAbsolute(\n node: NodeBase,\n nodeOrigin?: NodeOrigin,\n nodeExtent: CoordinateExtent = infiniteExtent\n): XYPosition {\n const positionWithOrigin = getNodePositionWithOrigin(node, nodeOrigin);\n const extent = isCoordinateExtent(node.extent) ? node.extent : nodeExtent;\n return clampPosition(positionWithOrigin, extent, getNodeDimensions(node));\n}\n\nexport function updateAbsolutePositions<NodeType extends NodeBase>(\n nodeLookup: NodeLookup<InternalNodeBase<NodeType>>,\n parentLookup: ParentLookup<InternalNodeBase<NodeType>>,\n options?: UpdateNodesOptions<NodeType>\n) {\n const _options = mergeObjects(defaultOptions, options);\n for (const node of nodeLookup.values()) {\n if (node.parentId) {\n updateChildNode(node, nodeLookup, parentLookup, _options);\n } else {\n node.internals.positionAbsolute = getPositionAbsolute(node, _options.nodeOrigin, _options.nodeExtent);\n }\n }\n}\n\nfunction parseHandles(userNode: NodeBase, internalNode?: InternalNodeBase): NodeHandleBounds | undefined {\n if (!userNode.handles) {\n return !userNode.measured ? undefined : internalNode?.internals.handleBounds;\n }\n\n const source: HandleBounds[] = [];\n const target: HandleBounds[] = [];\n\n for (const handle of userNode.handles) {\n const handleBounds = {\n id: handle.id,\n width: handle.width ?? 1,\n height: handle.height ?? 1,\n nodeId: userNode.id,\n x: handle.x,\n y: handle.y,\n position: handle.position,\n type: handle.type,\n };\n if (handle.type === 'source') {\n source.push(handleBounds);\n } else if (handle.type === 'target') {\n target.push(handleBounds);\n }\n }\n\n return {\n source,\n target,\n };\n}\n\ntype UpdateNodesOptions<NodeType extends NodeBase> = {\n nodeOrigin?: NodeOrigin;\n nodeExtent?: CoordinateExtent;\n elevateNodesOnSelect?: boolean;\n defaults?: Partial<NodeType>;\n zIndexMode?: ZIndexMode;\n checkEquality?: boolean;\n};\n\nexport function isManualZIndexMode(zIndexMode?: ZIndexMode): boolean {\n return zIndexMode === 'manual';\n}\n\ntype AdoptUserNodesReturn = {\n nodesInitialized: boolean;\n hasSelectedNodes: boolean;\n updatedNodes: Set<string>;\n};\n\ntype SubflowContext<NodeType extends NodeBase> = {\n nodeLookup: NodeLookup<InternalNodeBase<NodeType>>;\n parentLookup: ParentLookup<InternalNodeBase<NodeType>>;\n options: UpdateNodesOptions<NodeType>;\n rootParentIndex: { i: number };\n processedNodes: Set<string>;\n deferredChildNodes: Map<string, InternalNodeBase<NodeType>[]>;\n updateNode: (node: InternalNodeBase<NodeType>) => void;\n};\n\nexport function adoptUserNodes<NodeType extends NodeBase>(\n nodes: NodeType[],\n nodeLookup: NodeLookup<InternalNodeBase<NodeType>>,\n parentLookup: ParentLookup<InternalNodeBase<NodeType>>,\n options: UpdateNodesOptions<NodeType> = {}\n): AdoptUserNodesReturn {\n const _options = mergeObjects(adoptUserNodesDefaultOptions, options);\n const rootParentIndex = { i: 0 };\n const tmpLookup = new Map(nodeLookup);\n const hasSubflows = !!options.defaults?.parentId || nodes.some((node) => !!node.parentId);\n const selectedNodeZ: number =\n _options?.elevateNodesOnSelect && !isManualZIndexMode(_options.zIndexMode) ? SELECTED_NODE_Z : 0;\n // We track the nodes that already have been processed (relevant for subflows)\n const processedNodes = new Set<string>();\n // Deferred child nodes are grouped by the parent id they are waiting for\n const deferredChildNodes = new Map<string, InternalNodeBase<NodeType>[]>();\n let nodesInitialized = nodes.length > 0;\n let hasSelectedNodes = false;\n const updatedNodes = new Set<string>();\n function updateNode(node: InternalNodeBase<NodeType>) {\n if (updatedNodes.has(node.id)) {\n const internalNode = nodeLookup.get(node.id);\n if (internalNode) {\n Object.assign(internalNode, node);\n }\n } else {\n updatedNodes.add(node.id);\n nodeLookup.set(node.id, node);\n }\n }\n\n nodeLookup.clear();\n parentLookup.clear();\n\n const subflowContext = {\n nodeLookup,\n parentLookup,\n options,\n rootParentIndex,\n processedNodes,\n deferredChildNodes,\n updateNode,\n };\n\n for (const userNode of nodes) {\n let internalNode = tmpLookup.get(userNode.id);\n\n if (_options.checkEquality && userNode === internalNode?.internals.userNode) {\n nodeLookup.set(userNode.id, internalNode);\n } else {\n internalNode = {\n ..._options.defaults,\n ...userNode,\n measured: {\n width: userNode.measured?.width,\n height: userNode.measured?.height,\n },\n internals: {\n positionAbsolute: getPositionAbsolute(userNode, _options.nodeOrigin, _options.nodeExtent),\n // if user re-initializes the node or removes `measured` for whatever reason, we reset the handleBounds so that the node gets re-measured\n handleBounds: parseHandles(userNode, internalNode),\n z: calculateZ(userNode, selectedNodeZ, _options.zIndexMode),\n userNode,\n isParent: false,\n },\n };\n\n updateNode(internalNode);\n }\n\n if (\n (internalNode.measured === undefined ||\n internalNode.measured.width === undefined ||\n internalNode.measured.height === undefined) &&\n !internalNode.hidden\n ) {\n nodesInitialized = false;\n }\n\n if (hasSubflows) {\n resolveSubflowsForNode(internalNode, subflowContext);\n }\n\n hasSelectedNodes ||= userNode.selected ?? false;\n }\n\n if (process.env.NODE_ENV === 'development') {\n // Any deferred child node which has not been processed yet is missing a parent node\n for (const childNodes of deferredChildNodes.values()) {\n childNodes.forEach((childNode) => {\n console.warn(`Parent node with id \"${childNode.parentId}\" is missing for child node with id \"${childNode.id}\"`);\n });\n }\n }\n\n for (const id of tmpLookup.keys()) {\n const node = nodeLookup.get(id);\n if (!node) {\n updatedNodes.add(id);\n } else if (node.internals.isParent && !parentLookup.has(id)) {\n // An unchanged parent can lose its last child without receiving a new user node.\n updateNode({ ...node, internals: { ...node.internals, isParent: false } });\n }\n }\n\n return { nodesInitialized, hasSelectedNodes, updatedNodes };\n}\n\nfunction resolveSubflowsForNode<NodeType extends NodeBase>(\n node: InternalNodeBase<NodeType>,\n context: SubflowContext<NodeType>\n) {\n const { nodeLookup, parentLookup, options, rootParentIndex, processedNodes, deferredChildNodes, updateNode } =\n context;\n\n // The parent may appear later in the nodes array or may itself still be deferred.\n if (node.parentId && !processedNodes.has(node.parentId)) {\n const children = deferredChildNodes.get(node.parentId) ?? [];\n children.push(node);\n deferredChildNodes.set(node.parentId, children);\n return;\n }\n\n if (node.parentId) {\n updateChildNode(node, nodeLookup, parentLookup, options, rootParentIndex, updateNode);\n }\n\n processedNodes.add(node.id);\n\n // Processing this node may unblock multiple generations of descendants.\n const children = deferredChildNodes.get(node.id);\n if (children) {\n deferredChildNodes.delete(node.id);\n children.forEach((child) => resolveSubflowsForNode(child, context));\n }\n}\n\nfunction updateParentLookup<NodeType extends NodeBase>(\n node: InternalNodeBase<NodeType>,\n parentLookup: ParentLookup<InternalNodeBase<NodeType>>,\n parentNode: InternalNodeBase<NodeType>,\n updateNode: (node: InternalNodeBase<NodeType>) => void\n) {\n if (!node.parentId) {\n return;\n }\n\n const childNodes = parentLookup.get(node.parentId);\n\n if (childNodes) {\n childNodes.set(node.id, node);\n } else {\n parentLookup.set(node.parentId, new Map([[node.id, node]]));\n }\n\n if (!parentNode.internals.isParent) {\n updateNode({\n ...parentNode,\n internals: {\n ...parentNode.internals,\n isParent: true,\n },\n });\n }\n}\n\n/**\n * Updates positionAbsolute and zIndex of a child node and the parentLookup.\n */\nfunction updateChildNode<NodeType extends NodeBase>(\n node: InternalNodeBase<NodeType>,\n nodeLookup: NodeLookup<InternalNodeBase<NodeType>>,\n parentLookup: ParentLookup<InternalNodeBase<NodeType>>,\n options: UpdateNodesOptions<NodeType>,\n rootParentIndex?: { i: number },\n updateNode: (node: InternalNodeBase<NodeType>) => void = (node) => {\n nodeLookup.set(node.id, node);\n }\n) {\n const mergedOptions = mergeObjects(adoptUserNodesDefaultOptions, options);\n const { zIndexMode } = mergedOptions;\n const parentId = node.parentId!;\n const parentNode = nodeLookup.get(parentId);\n\n if (!parentNode) {\n console.warn(`Parent node ${parentId} not found.`);\n return;\n }\n\n // We just want to set the rootParentIndex for the first child\n if (\n rootParentIndex &&\n !parentNode.parentId &&\n parentNode.internals.rootParentIndex === undefined &&\n zIndexMode === 'auto'\n ) {\n parentNode.internals.rootParentIndex = ++rootParentIndex.i;\n parentNode.internals.z = parentNode.internals.z + rootParentIndex.i * ROOT_PARENT_Z_INCREMENT;\n }\n\n // But we need to update rootParentIndex.i also when parent has not been updated\n if (rootParentIndex && parentNode.internals.rootParentIndex !== undefined) {\n rootParentIndex.i = parentNode.internals.rootParentIndex;\n }\n\n const updatedNode = updateChildXYZ(node, parentNode, { nodeLookup, options: mergedOptions, updateNode });\n updateParentLookup(updatedNode, parentLookup, parentNode, updateNode);\n}\n\n/**\n * Updates positionAbsolute and zIndex of a child node and the parentLookup.\n */\nfunction updateChildXYZ<NodeType extends NodeBase>(\n node: InternalNodeBase<NodeType>,\n parentNode: InternalNodeBase<NodeType>,\n context: {\n nodeLookup: NodeLookup<InternalNodeBase<NodeType>>;\n options: Required<UpdateNodesOptions<NodeType>>;\n updateNode: (node: InternalNodeBase<NodeType>) => void;\n }\n) {\n const { elevateNodesOnSelect, nodeOrigin, nodeExtent, zIndexMode } = context.options;\n\n const selectedNodeZ = elevateNodesOnSelect && !isManualZIndexMode(zIndexMode) ? SELECTED_NODE_Z : 0;\n const { x, y, z } = calculateChildXYZ(node, parentNode, nodeOrigin, nodeExtent, selectedNodeZ, zIndexMode);\n const { positionAbsolute } = node.internals;\n const positionChanged = x !== positionAbsolute.x || y !== positionAbsolute.y;\n\n if (positionChanged || z !== node.internals.z) {\n // we create a new object to mark the node as updated\n const newNode = {\n ...node,\n internals: {\n ...node.internals,\n positionAbsolute: positionChanged ? { x, y } : positionAbsolute,\n z,\n },\n };\n context.updateNode(newNode);\n return newNode;\n }\n return node;\n}\n\nfunction calculateZ(node: NodeBase, selectedNodeZ: number, zIndexMode: ZIndexMode): number {\n const zIndex = isNumeric(node.zIndex) ? node.zIndex : 0;\n\n if (isManualZIndexMode(zIndexMode)) {\n return zIndex;\n }\n\n return zIndex + (node.selected ? selectedNodeZ : 0);\n}\n\nfunction calculateChildXYZ<NodeType extends NodeBase>(\n childNode: InternalNodeBase<NodeType>,\n parentNode: InternalNodeBase<NodeType>,\n nodeOrigin: NodeOrigin,\n nodeExtent: CoordinateExtent,\n selectedNodeZ: number,\n zIndexMode: ZIndexMode\n) {\n const { x: parentX, y: parentY } = parentNode.internals.positionAbsolute;\n const childDimensions = getNodeDimensions(childNode);\n const positionWithOrigin = getNodePositionWithOrigin(childNode, nodeOrigin);\n const clampedPosition = isCoordinateExtent(childNode.extent)\n ? clampPosition(positionWithOrigin, childNode.extent, childDimensions)\n : positionWithOrigin;\n\n let absolutePosition = clampPosition(\n { x: parentX + clampedPosition.x, y: parentY + clampedPosition.y },\n nodeExtent,\n childDimensions\n );\n\n if (childNode.extent === 'parent') {\n absolutePosition = clampPositionToParent(absolutePosition, childDimensions, parentNode);\n }\n\n const childZ = calculateZ(childNode, selectedNodeZ, zIndexMode);\n const parentZ = parentNode.internals.z ?? 0;\n\n return {\n x: absolutePosition.x,\n y: absolutePosition.y,\n z: parentZ >= childZ ? parentZ + 1 : childZ,\n };\n}\n\nexport function handleExpandParent(\n children: ParentExpandChild[],\n nodeLookup: NodeLookup,\n parentLookup: ParentLookup,\n nodeOrigin: NodeOrigin = [0, 0]\n): (DimensionChange | PositionChange)[] {\n const changes: (DimensionChange | PositionChange)[] = [];\n const parentExpansions = new Map<string, { expandedRect: Rect; parent: InternalNodeBase }>();\n\n // determine the expanded rectangle the child nodes would take for each parent\n for (const child of children) {\n const parent = nodeLookup.get(child.parentId);\n if (!parent) {\n continue;\n }\n\n const parentRect = parentExpansions.get(child.parentId)?.expandedRect ?? nodeToRect(parent);\n const expandedRect = getBoundsOfRects(parentRect, child.rect);\n\n parentExpansions.set(child.parentId, { expandedRect, parent });\n }\n\n if (parentExpansions.size > 0) {\n parentExpansions.forEach(({ expandedRect, parent }, parentId) => {\n // determine the position & dimensions of the parent\n const positionAbsolute = parent.internals.positionAbsolute;\n const dimensions = getNodeDimensions(parent);\n const origin = parent.origin ?? nodeOrigin;\n\n // determine how much the parent expands in width and position\n const xChange =\n expandedRect.x < positionAbsolute.x ? Math.round(Math.abs(positionAbsolute.x - expandedRect.x)) : 0;\n const yChange =\n expandedRect.y < positionAbsolute.y ? Math.round(Math.abs(positionAbsolute.y - expandedRect.y)) : 0;\n\n const newWidth = Math.max(dimensions.width, Math.round(expandedRect.width));\n const newHeight = Math.max(dimensions.height, Math.round(expandedRect.height));\n\n const widthChange = (newWidth - dimensions.width) * origin[0];\n const heightChange = (newHeight - dimensions.height) * origin[1];\n\n // We need to correct the position of the parent node if the origin is not [0,0]\n if (xChange > 0 || yChange > 0 || widthChange || heightChange) {\n changes.push(\n positionChange(parentId, {\n x: parent.position.x - xChange + widthChange,\n y: parent.position.y - yChange + heightChange,\n })\n );\n\n /*\n * We move all child nodes in the oppsite direction\n * so the x,y changes of the parent do not move the children\n */\n parentLookup.get(parentId)?.forEach((childNode) => {\n if (!children.some((child) => child.id === childNode.id)) {\n changes.push(\n positionChange(childNode.id, {\n x: childNode.position.x + xChange,\n y: childNode.position.y + yChange,\n })\n );\n }\n });\n }\n\n // We need to correct the dimensions of the parent node if the origin is not [0,0]\n if (dimensions.width < expandedRect.width || dimensions.height < expandedRect.height || xChange || yChange) {\n changes.push({\n id: parentId,\n type: 'dimensions',\n setAttributes: true,\n dimensions: {\n width: newWidth + (xChange ? origin[0] * xChange - widthChange : 0),\n height: newHeight + (yChange ? origin[1] * yChange - heightChange : 0),\n },\n });\n }\n });\n }\n\n return changes;\n}\n\nexport function updateNodeInternals<NodeType extends InternalNodeBase>(\n updates: Map<string, InternalNodeUpdate>,\n nodeLookup: NodeLookup<NodeType>,\n parentLookup: ParentLookup<NodeType>,\n domNode: HTMLElement | null,\n nodeOrigin?: NodeOrigin,\n nodeExtent?: CoordinateExtent,\n zIndexMode?: ZIndexMode\n): { changes: (DimensionChange | PositionChange)[]; updatedInternals: boolean; updatedNodes: Set<string> } {\n const updatedNodes = new Set<string>();\n const updateNode = (node: NodeType) => {\n nodeLookup.set(node.id, node);\n updatedNodes.add(node.id);\n };\n const viewportNode = domNode?.querySelector('.xyflow__viewport');\n let updatedInternals = false;\n\n if (!viewportNode) {\n return { changes: [], updatedInternals, updatedNodes };\n }\n\n const changes: (DimensionChange | PositionChange)[] = [];\n const style = window.getComputedStyle(viewportNode);\n const { m22: zoom } = new window.DOMMatrixReadOnly(style.transform);\n // in this array we collect nodes, that might trigger changes (like expanding parent)\n const parentExpandChildren: ParentExpandChild[] = [];\n const expandParentIds: string[] = [];\n\n for (const update of updates.values()) {\n const node = nodeLookup.get(update.id);\n if (!node) {\n continue;\n }\n\n if (node.hidden) {\n updateNode({\n ...node,\n internals: {\n ...node.internals,\n handleBounds: undefined,\n },\n });\n updatedInternals = true;\n continue;\n }\n\n const dimensions = getDimensions(update.nodeElement);\n const dimensionChanged = node.measured.width !== dimensions.width || node.measured.height !== dimensions.height;\n const doUpdate = !!(\n dimensions.width &&\n dimensions.height &&\n (dimensionChanged || !node.internals.handleBounds || update.force)\n );\n\n if (doUpdate) {\n const nodeBounds = update.nodeElement.getBoundingClientRect();\n const measuredNode = { ...node, measured: dimensions };\n\n const newNode = {\n ...measuredNode,\n internals: {\n ...node.internals,\n positionAbsolute: node.parentId\n ? node.internals.positionAbsolute\n : getPositionAbsolute(measuredNode, nodeOrigin, nodeExtent),\n handleBounds: {\n source: getHandleBounds('source', update.nodeElement, nodeBounds, zoom, node.id),\n target: getHandleBounds('target', update.nodeElement, nodeBounds, zoom, node.id),\n },\n },\n };\n\n updateNode(newNode);\n updatedInternals = true;\n\n if (dimensionChanged) {\n changes.push(dimensionChange(node.id, dimensions));\n\n if (node.expandParent && node.parentId) {\n expandParentIds.push(node.id);\n }\n }\n }\n }\n\n if (updatedInternals) {\n const childOptions = { nodeOrigin, nodeExtent, zIndexMode };\n for (const childNodes of parentLookup.values()) {\n for (const childId of childNodes.keys()) {\n const childNode = nodeLookup.get(childId);\n if (childNode) {\n updateChildNode(childNode, nodeLookup, parentLookup, childOptions, undefined, (node) =>\n updateNode(node as NodeType)\n );\n }\n }\n }\n }\n\n for (const id of expandParentIds) {\n const node = nodeLookup.get(id)!;\n parentExpandChildren.push({ id, parentId: node.parentId!, rect: nodeToRect(node, nodeOrigin) });\n }\n\n if (parentExpandChildren.length > 0) {\n const parentExpandChanges = handleExpandParent(parentExpandChildren, nodeLookup, parentLookup, nodeOrigin);\n changes.push(...parentExpandChanges);\n }\n\n return { changes, updatedInternals, updatedNodes };\n}\n\nexport async function panBy({\n delta,\n panZoom,\n transform,\n translateExtent,\n width,\n height,\n}: {\n delta: XYPosition;\n panZoom: PanZoomInstance | null;\n transform: Transform;\n translateExtent: CoordinateExtent;\n width: number;\n height: number;\n}): Promise<boolean> {\n if (!panZoom || (!delta.x && !delta.y)) {\n return false;\n }\n\n const nextViewport = await panZoom.setViewportConstrained(\n {\n x: transform[0] + delta.x,\n y: transform[1] + delta.y,\n zoom: transform[2],\n },\n [\n [0, 0],\n [width, height],\n ],\n translateExtent\n );\n\n const transformChanged =\n !!nextViewport &&\n (nextViewport.x !== transform[0] || nextViewport.y !== transform[1] || nextViewport.k !== transform[2]);\n\n return transformChanged;\n}\n\n/**\n * this function adds the connection to the connectionLookup\n * at the following keys: nodeId-type-handleId, nodeId-type and nodeId\n * @param type type of the connection\n * @param connection connection that should be added to the lookup\n * @param connectionKey at which key the connection should be added\n * @param connectionLookup reference to the connection lookup\n * @param nodeId nodeId of the connection\n * @param handleId handleId of the connection\n */\nfunction addConnectionToLookup(\n type: 'source' | 'target',\n connection: NodeConnection,\n connectionKey: string,\n connectionLookup: ConnectionLookup,\n nodeId: string,\n handleId: string | null,\n updatedConnectionKeys: Set<string>\n) {\n /*\n * We add the connection to the connectionLookup at the following keys\n * 1. nodeId, 2. nodeId-type, 3. nodeId-type-handleId\n * If the key already exists, we add the connection to the existing map\n */\n let key = nodeId;\n let nodeMap = connectionLookup.get(key);\n if (!nodeMap || !updatedConnectionKeys.has(key)) {\n nodeMap = new Map(nodeMap);\n updatedConnectionKeys.add(key);\n connectionLookup.set(key, nodeMap);\n }\n nodeMap.set(connectionKey, connection);\n\n key = `${nodeId}-${type}`;\n let typeMap = connectionLookup.get(key);\n if (!typeMap || !updatedConnectionKeys.has(key)) {\n typeMap = new Map(typeMap);\n updatedConnectionKeys.add(key);\n connectionLookup.set(key, typeMap);\n }\n typeMap.set(connectionKey, connection);\n\n if (handleId) {\n key = `${nodeId}-${type}-${handleId}`;\n let handleMap = connectionLookup.get(key);\n if (!handleMap || !updatedConnectionKeys.has(key)) {\n handleMap = new Map(handleMap);\n updatedConnectionKeys.add(key);\n connectionLookup.set(key, handleMap);\n }\n handleMap.set(connectionKey, connection);\n }\n}\n\nfunction removeConnectionFromLookup(\n type: 'source' | 'target',\n connectionKey: string,\n connectionLookup: ConnectionLookup,\n nodeId: string,\n handleId: string | null,\n updatedConnectionKeys: Set<string>\n) {\n const keys = [nodeId, `${nodeId}-${type}`];\n\n if (handleId) {\n keys.push(`${nodeId}-${type}-${handleId}`);\n }\n\n for (const key of keys) {\n let map = connectionLookup.get(key);\n\n if (!map) {\n continue;\n }\n\n if (!updatedConnectionKeys.has(key)) {\n map = new Map(map);\n connectionLookup.set(key, map);\n updatedConnectionKeys.add(key);\n }\n\n map.delete(connectionKey);\n\n if (map.size === 0) {\n connectionLookup.delete(key);\n }\n }\n}\n\nfunction syncEdgeConnections(\n connectionLookup: ConnectionLookup,\n edge: EdgeBase,\n action: 'add' | 'remove',\n updatedConnectionKeys: Set<string>\n) {\n const { source: sourceNode, target: targetNode, sourceHandle = null, targetHandle = null } = edge;\n const connection = { edgeId: edge.id, source: sourceNode, target: targetNode, sourceHandle, targetHandle };\n const sourceKey = `${sourceNode}-${sourceHandle}--${targetNode}-${targetHandle}`;\n const targetKey = `${targetNode}-${targetHandle}--${sourceNode}-${sourceHandle}`;\n\n if (action === 'add') {\n addConnectionToLookup(\n 'source',\n connection,\n targetKey,\n connectionLookup,\n sourceNode,\n sourceHandle,\n updatedConnectionKeys\n );\n addConnectionToLookup(\n 'target',\n connection,\n sourceKey,\n connectionLookup,\n targetNode,\n targetHandle,\n updatedConnectionKeys\n );\n } else {\n removeConnectionFromLookup('source', targetKey, connectionLookup, sourceNode, sourceHandle, updatedConnectionKeys);\n removeConnectionFromLookup('target', sourceKey, connectionLookup, targetNode, targetHandle, updatedConnectionKeys);\n }\n}\n\nexport function updateConnectionLookup(\n connectionLookup: ConnectionLookup,\n edgeLookup: EdgeLookup,\n edges: EdgeBase[]\n): { updatedEdges: Set<string> } {\n const tmpLookup = new Map(edgeLookup);\n const updatedEdges = new Set<string>();\n // Clone each affected connection map once, preserving subscribers' previous snapshots.\n const updatedConnectionKeys = new Set<string>();\n const connectionsToAdd: EdgeBase[] = [];\n\n edgeLookup.clear();\n\n for (const edge of edges) {\n const existing = tmpLookup.get(edge.id);\n\n if (existing === edge) {\n edgeLookup.set(edge.id, edge);\n continue;\n }\n\n // Data, selection and style changes should not affect the connection lookup\n if (\n !existing ||\n existing.source !== edge.source ||\n existing.target !== edge.target ||\n // we use != because handles can be null or undefined\n existing.sourceHandle != edge.sourceHandle ||\n existing.targetHandle != edge.targetHandle\n ) {\n if (existing) {\n syncEdgeConnections(connectionLookup, existing, 'remove', updatedConnectionKeys);\n }\n connectionsToAdd.push(edge);\n }\n\n edgeLookup.set(edge.id, edge);\n updatedEdges.add(edge.id);\n }\n\n for (const edge of tmpLookup.values()) {\n if (!edgeLookup.has(edge.id)) {\n syncEdgeConnections(connectionLookup, edge, 'remove', updatedConnectionKeys);\n updatedEdges.add(edge.id);\n }\n }\n\n // Remove old connections before adding new ones that may use the same connection key.\n for (const edge of connectionsToAdd) {\n syncEdgeConnections(connectionLookup, edge, 'add', updatedConnectionKeys);\n }\n\n return { updatedEdges };\n}\n","import { type NodeBase } from '../types';\n\ntype NodeData = Pick<NodeBase, 'id' | 'type' | 'data'>;\n\nexport function shallowNodeData(a: NodeData | NodeData[] | null, b: NodeData | NodeData[] | null) {\n if (a === null || b === null) {\n return false;\n }\n\n const _a = Array.isArray(a) ? a : [a];\n const _b = Array.isArray(b) ? b : [b];\n\n if (_a.length !== _b.length) {\n return false;\n }\n\n for (let i = 0; i < _a.length; i++) {\n if (_a[i].id !== _b[i].id || _a[i].type !== _b[i].type || !Object.is(_a[i].data, _b[i].data)) {\n return false;\n }\n }\n\n return true;\n}\n","import { InternalNodeBase, NodeLookup, NodeOrigin } from '../types';\nimport { getNodeDimensions } from './general';\n\nexport function changeParentNode(\n nodeId: string,\n nodeLookup: NodeLookup<InternalNodeBase>,\n parentId: string | null,\n nodeOrigin: NodeOrigin,\n updateNodeCallback: (args: { nodeId: string; parentId: string | null; x: number; y: number }) => void\n) {\n const node = nodeLookup.get(nodeId);\n if (!node) {\n console.warn(`changeParent: Node \"${nodeId}\" does not exists`);\n return;\n }\n\n if (parentId === nodeId) {\n return;\n }\n\n const childPosition = node.internals.positionAbsolute;\n const childOrigin = node.origin ?? nodeOrigin;\n const childDimensions = getNodeDimensions(node);\n\n const originCorrection = {\n x: childOrigin[0] * childDimensions.width,\n y: childOrigin[1] * childDimensions.height,\n };\n\n if (parentId === null) {\n updateNodeCallback({\n nodeId,\n parentId,\n x: childPosition.x + originCorrection.x,\n y: childPosition.y + originCorrection.y,\n });\n\n return;\n }\n\n const parentNode = nodeLookup.get(parentId);\n if (!parentNode) {\n console.warn(`changeParent: Parent node \"${parentId}\" does not exists`);\n return;\n }\n\n const parentPosition = parentNode.internals.positionAbsolute;\n\n updateNodeCallback({\n nodeId,\n parentId,\n x: childPosition.x + originCorrection.x - parentPosition.x,\n y: childPosition.y + originCorrection.y - parentPosition.y,\n });\n}\n","import { type NodeDragItem, type XYPosition, type InternalNodeBase, type NodeBase, type NodeLookup, type SnapGrid } from '../types';\nimport { snapPosition } from '../utils';\n\nexport function isParentSelected<NodeType extends NodeBase>(node: NodeType, nodeLookup: NodeLookup): boolean {\n if (!node.parentId) {\n return false;\n }\n\n const parentNode = nodeLookup.get(node.parentId);\n\n if (!parentNode) {\n return false;\n }\n\n if (parentNode.selected) {\n return true;\n }\n\n return isParentSelected(parentNode, nodeLookup);\n}\n\nexport function hasSelector(target: Element | EventTarget | null, selector: string, domNode: Element): boolean {\n let current = target as Partial<Element> | null | undefined;\n\n do {\n if (current?.matches?.(selector)) return true;\n if (current === domNode) return false;\n current = current?.parentElement;\n } while (current);\n\n return false;\n}\n\n// looks for all selected nodes and created a NodeDragItem for each of them\nexport function getDragItems<NodeType extends NodeBase>(\n nodeLookup: Map<string, InternalNodeBase<NodeType>>,\n nodesDraggable: boolean,\n mousePos: XYPosition,\n nodeId?: string,\n onlyDragNode?: boolean\n): Map<string, NodeDragItem> {\n const dragItems = new Map<string, NodeDragItem>();\n\n for (const [id, node] of nodeLookup) {\n // if onlyDragNode is true, only the grabbed node gets dragged, otherwise all selected nodes are dragged with it\n const isDragged = onlyDragNode ? node.id === nodeId : node.selected || node.id === nodeId;\n\n if (\n isDragged &&\n (onlyDragNode || !node.parentId || !isParentSelected(node, nodeLookup)) &&\n (node.draggable || (nodesDraggable && typeof node.draggable === 'undefined'))\n ) {\n const internalNode = nodeLookup.get(id);\n\n if (internalNode) {\n dragItems.set(id, {\n id,\n position: internalNode.position || { x: 0, y: 0 },\n distance: {\n x: mousePos.x - internalNode.internals.positionAbsolute.x,\n y: mousePos.y - internalNode.internals.positionAbsolute.y,\n },\n extent: internalNode.extent,\n parentId: internalNode.parentId,\n origin: internalNode.origin,\n expandParent: internalNode.expandParent,\n internals: {\n positionAbsolute: internalNode.internals.positionAbsolute || { x: 0, y: 0 },\n },\n measured: {\n width: internalNode.measured.width ?? 0,\n height: internalNode.measured.height ?? 0,\n },\n });\n }\n }\n }\n\n return dragItems;\n}\n\n/*\n * returns two params:\n * 1. the dragged node (or the first of the list, if we are dragging a node selection)\n * 2. array of selected nodes (for multi selections)\n */\nexport function getEventHandlerParams<NodeType extends NodeBase>({\n nodeId,\n dragItems,\n nodeLookup,\n dragging = true,\n}: {\n nodeId?: string;\n dragItems: Map<string, NodeDragItem>;\n nodeLookup: Map<string, InternalNodeBase<NodeType>>;\n dragging?: boolean;\n}): [NodeType, NodeType[]] {\n const nodesFromDragItems: NodeType[] = [];\n\n for (const [id, dragItem] of dragItems) {\n const node = nodeLookup.get(id)?.internals.userNode;\n\n if (node) {\n nodesFromDragItems.push({\n ...node,\n position: dragItem.position,\n dragging,\n });\n }\n }\n\n if (!nodeId) {\n return [nodesFromDragItems[0], nodesFromDragItems];\n }\n\n const node = nodeLookup.get(nodeId)?.internals.userNode;\n\n return [\n !node\n ? nodesFromDragItems[0]\n : {\n ...node,\n position: dragItems.get(nodeId)?.position || node.position,\n dragging,\n },\n nodesFromDragItems,\n ];\n}\n\n/**\n * If a selection is being dragged we want to apply the same snap offset to all nodes in the selection.\n * This function calculates the snap offset based on the first node in the selection.\n */\nexport function calculateSnapOffset({\n dragItems,\n snapGrid,\n x,\n y,\n}: {\n dragItems: Map<string, NodeDragItem>;\n snapGrid: SnapGrid;\n x: number;\n y: number;\n}) {\n const refDragItem = dragItems.values().next().value;\n\n if (!refDragItem) {\n return null;\n }\n\n const refPos = {\n x: x - refDragItem.distance.x,\n y: y - refDragItem.distance.y,\n };\n const refPosSnapped = snapPosition(refPos, snapGrid);\n\n return {\n x: refPosSnapped.x - refPos.x,\n y: refPosSnapped.y - refPos.y,\n };\n}\n","import { drag } from 'd3-drag';\nimport { select, type Selection } from 'd3-selection';\n\nimport {\n calcAutoPan,\n getEventPosition,\n getPointerPosition,\n isTouchEvent,\n calculateNodePosition,\n snapPosition,\n getInternalNodesBounds,\n rectToBox,\n} from '../utils';\nimport { calculateSnapOffset, getDragItems, getEventHandlerParams, hasSelector } from './utils';\nimport type {\n NodeBase,\n NodeDragItem,\n UseDragEvent,\n XYPosition,\n EdgeBase,\n CoordinateExtent,\n NodeOrigin,\n OnError,\n SnapGrid,\n Transform,\n PanBy,\n OnSelectionDrag,\n UpdateNodePositions,\n InternalNodeBase,\n} from '../types';\n\nexport type OnDrag<NodeType extends NodeBase = NodeBase> = (\n event: MouseEvent | TouchEvent,\n dragItems: Map<string, NodeDragItem>,\n node: NodeType,\n nodes: NodeType[]\n) => void;\n\ntype OnNodeDrag<NodeType extends NodeBase = NodeBase> = (\n e: MouseEvent | TouchEvent,\n node: NodeType,\n nodes: NodeType[]\n) => void | undefined;\n\ntype FlowGraph<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase> = {\n nodes: NodeType[];\n edges: EdgeType[];\n};\n\ntype StoreItems<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase> = {\n nodes: NodeType[];\n nodeLookup: Map<string, InternalNodeBase<NodeType>>;\n edges: EdgeType[];\n nodeExtent: CoordinateExtent;\n snapGrid: SnapGrid;\n snapToGrid: boolean;\n nodeOrigin: NodeOrigin;\n multiSelectionActive: boolean;\n domNode?: Element | null;\n transform: Transform;\n autoPanOnNodeDrag: boolean;\n nodesDraggable: boolean;\n selectNodesOnDrag: boolean;\n nodeDragThreshold: number;\n panBy: PanBy;\n unselectNodesAndEdges: (params?: Partial<FlowGraph<NodeType, EdgeType>>) => void;\n onError?: OnError;\n onNodeDragStart?: OnNodeDrag<NodeType>;\n onNodeDrag?: OnNodeDrag<NodeType>;\n onNodeDragStop?: OnNodeDrag<NodeType>;\n onSelectionDragStart?: OnSelectionDrag<NodeType>;\n onSelectionDrag?: OnSelectionDrag<NodeType>;\n onSelectionDragStop?: OnSelectionDrag<NodeType>;\n updateNodePositions: UpdateNodePositions<InternalNodeBase<NodeType>>;\n autoPanSpeed?: number;\n};\n\nexport type XYDragParams<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase> = {\n getStoreItems: () => StoreItems<NodeType, EdgeType>;\n onDragStart?: OnDrag<NodeType>;\n onDrag?: OnDrag<NodeType>;\n onDragStop?: OnDrag<NodeType>;\n onNodeMouseDown?: (id: string) => void;\n autoPanSpeed?: number;\n};\n\nexport type XYDragInstance = {\n update: (params: DragUpdateParams) => void;\n destroy: () => void;\n};\n\nexport type DragUpdateParams = {\n noDragClassName?: string;\n handleSelector?: string;\n isSelectable?: boolean;\n nodeId?: string;\n domNode: Element;\n};\n\nexport function XYDrag<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>({\n onNodeMouseDown,\n getStoreItems,\n onDragStart,\n onDrag,\n onDragStop,\n}: XYDragParams<NodeType, EdgeType>): XYDragInstance {\n let lastPos: { x: number | null; y: number | null } = { x: null, y: null };\n let autoPanId = 0;\n let dragItems = new Map<string, NodeDragItem>();\n let autoPanStarted = false;\n let mousePosition: XYPosition = { x: 0, y: 0 };\n let initialMousePosition: XYPosition = { x: 0, y: 0 };\n let containerBounds: DOMRect | null = null;\n let dragStarted = false;\n let d3Selection: Selection<Element, unknown, null, undefined> | null = null;\n let abortDrag = false; // prevents unintentional dragging on multitouch\n let nodePositionsChanged = false;\n // we store the last drag event to be able to use it in the update function\n let dragEvent: MouseEvent | TouchEvent | null = null;\n\n /*\n * Suppresses the click that the browser dispatches right after a drag that moved nodes.\n * The listener sits on the window in the capture phase so it also catches clicks that are\n * dispatched to a common ancestor (e.g. the pane) when the pointer is released outside of the node.\n * It is removed in the next task, after the click has been dispatched (same approach as d3-drag).\n */\n function preventNextClick(sourceEvent: MouseEvent | TouchEvent) {\n const view = sourceEvent.view ?? window;\n const suppressClick = (event: MouseEvent) => {\n event.preventDefault();\n event.stopImmediatePropagation();\n };\n\n view.addEventListener('click', suppressClick, { capture: true });\n setTimeout(() => view.removeEventListener('click', suppressClick, { capture: true }), 0);\n }\n\n // public functions\n function update({\n noDragClassName,\n handleSelector,\n domNode,\n isSelectable,\n nodeId,\n }: DragUpdateParams) {\n d3Selection = select(domNode);\n function updateNodes({ x, y }: XYPosition) {\n const {\n nodeLookup,\n nodeExtent,\n snapGrid,\n snapToGrid,\n nodeOrigin,\n onNodeDrag,\n onSelectionDrag,\n onError,\n updateNodePositions,\n } = getStoreItems();\n\n lastPos = { x, y };\n let hasChange = false;\n\n const isMultiDrag = dragItems.size > 1;\n const nodesBox = isMultiDrag && nodeExtent ? rectToBox(getInternalNodesBounds(dragItems)) : null;\n const multiDragSnapOffset =\n isMultiDrag && snapToGrid\n ? calculateSnapOffset({\n dragItems,\n snapGrid,\n x,\n y,\n })\n : null;\n\n for (const [id, dragItem] of dragItems) {\n /*\n * if the node is not in the nodeLookup anymore, it was probably deleted while dragging\n */\n if (!nodeLookup.has(id)) {\n continue;\n }\n\n let nextPosition = { x: x - dragItem.distance.x, y: y - dragItem.distance.y };\n if (snapToGrid) {\n nextPosition = multiDragSnapOffset\n ? {\n x: Math.round(nextPosition.x + multiDragSnapOffset.x),\n y: Math.round(nextPosition.y + multiDragSnapOffset.y),\n }\n : snapPosition(nextPosition, snapGrid);\n }\n\n let adjustedNodeExtent: CoordinateExtent | null = null;\n\n if (isMultiDrag && nodeExtent && !dragItem.extent && nodesBox) {\n const { positionAbsolute } = dragItem.internals;\n const x1 = positionAbsolute.x - nodesBox.x + nodeExtent[0][0];\n const x2 = positionAbsolute.x + dragItem.measured.width - nodesBox.x2 + nodeExtent[1][0];\n\n const y1 = positionAbsolute.y - nodesBox.y + nodeExtent[0][1];\n const y2 = positionAbsolute.y + dragItem.measured.height - nodesBox.y2 + nodeExtent[1][1];\n\n adjustedNodeExtent = [\n [x1, y1],\n [x2, y2],\n ];\n }\n\n const { position, positionAbsolute } = calculateNodePosition({\n nodeId: id,\n nextPosition,\n nodeLookup,\n nodeExtent: adjustedNodeExtent ? adjustedNodeExtent : nodeExtent,\n nodeOrigin,\n onError,\n });\n\n // we want to make sure that we only fire a change event when there is a change\n hasChange = hasChange || dragItem.position.x !== position.x || dragItem.position.y !== position.y;\n\n dragItem.position = position;\n dragItem.internals.positionAbsolute = positionAbsolute;\n }\n\n nodePositionsChanged = nodePositionsChanged || hasChange;\n\n if (!hasChange) {\n return;\n }\n\n updateNodePositions(dragItems, true);\n\n if (dragEvent && (onDrag || onNodeDrag || (!nodeId && onSelectionDrag))) {\n const [currentNode, currentNodes] = getEventHandlerParams({\n nodeId,\n dragItems,\n nodeLookup,\n });\n\n onDrag?.(dragEvent, dragItems, currentNode, currentNodes);\n onNodeDrag?.(dragEvent, currentNode, currentNodes);\n\n if (!nodeId) {\n onSelectionDrag?.(dragEvent, currentNodes);\n }\n }\n }\n\n async function autoPan() {\n if (!containerBounds) {\n return;\n }\n\n const { transform, panBy, autoPanSpeed, autoPanOnNodeDrag } = getStoreItems();\n\n if (!autoPanOnNodeDrag) {\n autoPanStarted = false;\n cancelAnimationFrame(autoPanId);\n return;\n }\n\n const [xMovement, yMovement] = calcAutoPan(mousePosition, containerBounds, autoPanSpeed);\n\n if (xMovement !== 0 || yMovement !== 0) {\n lastPos.x = (lastPos.x ?? 0) - xMovement / transform[2];\n lastPos.y = (lastPos.y ?? 0) - yMovement / transform[2];\n\n if (await panBy({ x: xMovement, y: yMovement })) {\n updateNodes(lastPos as XYPosition);\n }\n }\n\n autoPanId = requestAnimationFrame(() => {\n void autoPan();\n });\n }\n\n function startDrag(event: UseDragEvent) {\n const {\n nodeLookup,\n multiSelectionActive,\n nodesDraggable,\n transform,\n snapGrid,\n snapToGrid,\n selectNodesOnDrag,\n onNodeDragStart,\n onSelectionDragStart,\n unselectNodesAndEdges,\n } = getStoreItems();\n\n dragStarted = true;\n\n // if a node is being dragged that is not currently selected, we only want to drag that node and not the rest of the selection\n const isUnselectedNodeDrag = !!nodeId && !multiSelectionActive && !nodeLookup.get(nodeId)?.selected;\n\n if ((!selectNodesOnDrag || !isSelectable) && !multiSelectionActive && nodeId) {\n if (!nodeLookup.get(nodeId)?.selected) {\n // we need to reset selected nodes when selectNodesOnDrag=false\n unselectNodesAndEdges();\n }\n }\n\n if (isSelectable && selectNodesOnDrag && nodeId) {\n onNodeMouseDown?.(nodeId);\n }\n\n const pointerPos = getPointerPosition(event.sourceEvent, {\n transform,\n snapGrid,\n snapToGrid,\n containerBounds,\n });\n lastPos = pointerPos;\n dragItems = getDragItems(nodeLookup, nodesDraggable, pointerPos, nodeId, isUnselectedNodeDrag);\n\n if (dragItems.size > 0 && (onDragStart || onNodeDragStart || (!nodeId && onSelectionDragStart))) {\n const [currentNode, currentNodes] = getEventHandlerParams({\n nodeId,\n dragItems,\n nodeLookup,\n });\n\n onDragStart?.(event.sourceEvent, dragItems, currentNode, currentNodes);\n onNodeDragStart?.(event.sourceEvent, currentNode, currentNodes);\n\n if (!nodeId) {\n onSelectionDragStart?.(event.sourceEvent, currentNodes);\n }\n }\n }\n\n const d3DragInstance = drag()\n .clickDistance(Infinity)\n .on('start', (event: UseDragEvent) => {\n const { domNode, nodeDragThreshold, transform, snapGrid, snapToGrid } = getStoreItems();\n containerBounds = domNode?.getBoundingClientRect() || null;\n dragStarted = false;\n autoPanStarted = false;\n abortDrag = false;\n nodePositionsChanged = false;\n dragEvent = event.sourceEvent;\n\n if (nodeDragThreshold === 0) {\n startDrag(event);\n }\n\n const pointerPos = getPointerPosition(event.sourceEvent, { transform, snapGrid, snapToGrid, containerBounds });\n lastPos = pointerPos;\n mousePosition = getEventPosition(event.sourceEvent, containerBounds!);\n initialMousePosition = mousePosition;\n })\n .on('drag', (event: UseDragEvent) => {\n const { autoPanOnNodeDrag, transform, snapGrid, snapToGrid, nodeDragThreshold, nodeLookup } = getStoreItems();\n dragEvent = event.sourceEvent;\n const pointerPos = getPointerPosition(dragEvent, { transform, snapGrid, snapToGrid, containerBounds });\n\n if (\n (isTouchEvent(dragEvent) && dragEvent.type === 'touchmove' && dragEvent.touches.length > 1) ||\n // if user deletes a node while dragging, we need to abort the drag to prevent errors\n (nodeId && !nodeLookup.has(nodeId))\n ) {\n abortDrag = true;\n }\n\n if (abortDrag) {\n return;\n }\n\n if (!autoPanStarted && autoPanOnNodeDrag && dragStarted) {\n autoPanStarted = true;\n void autoPan();\n }\n\n if (!dragStarted) {\n // Calculate distance in client coordinates for consistent drag threshold behavior across zoom levels\n const currentMousePosition = getEventPosition(event.sourceEvent, containerBounds!);\n const dx = currentMousePosition.x - initialMousePosition.x;\n const dy = currentMousePosition.y - initialMousePosition.y;\n const distance = Math.hypot(dx, dy);\n\n if (distance > nodeDragThreshold) {\n startDrag(event);\n }\n }\n\n // skip events without movement\n if ((lastPos.x !== pointerPos.xSnapped || lastPos.y !== pointerPos.ySnapped) && dragItems && dragStarted) {\n mousePosition = getEventPosition(dragEvent, containerBounds!);\n updateNodes(pointerPos);\n }\n })\n .on('end', (event: UseDragEvent) => {\n // when released outside of the node, the browser dispatches the click to a common ancestor (e.g. the pane)\n const releasedOutside = !domNode.contains(event.sourceEvent.target as globalThis.Node | null);\n\n if (releasedOutside || nodePositionsChanged) {\n preventNextClick(event.sourceEvent);\n }\n\n if (!dragStarted || abortDrag) {\n if (abortDrag && dragItems.size > 0) {\n getStoreItems().updateNodePositions(dragItems, false);\n }\n return;\n }\n\n cancelAnimationFrame(autoPanId);\n\n if (dragItems.size > 0) {\n const { nodeLookup, updateNodePositions, onNodeDragStop, onSelectionDragStop } = getStoreItems();\n\n if (nodePositionsChanged) {\n updateNodePositions(dragItems, false);\n nodePositionsChanged = false;\n }\n\n if (onDragStop || onNodeDragStop || (!nodeId && onSelectionDragStop)) {\n const [currentNode, currentNodes] = getEventHandlerParams({\n nodeId,\n dragItems,\n nodeLookup,\n dragging: false,\n });\n\n onDragStop?.(event.sourceEvent, dragItems, currentNode, currentNodes);\n onNodeDragStop?.(event.sourceEvent, currentNode, currentNodes);\n\n if (!nodeId) {\n onSelectionDragStop?.(event.sourceEvent, currentNodes);\n }\n }\n }\n })\n .filter((event: MouseEvent) => {\n const target = event.target;\n const isDraggable =\n !event.button &&\n (!noDragClassName || !hasSelector(target, `.${noDragClassName}`, domNode)) &&\n (!handleSelector || hasSelector(target, handleSelector, domNode));\n\n return isDraggable;\n });\n\n d3Selection.call(d3DragInstance);\n }\n\n function destroy() {\n d3Selection?.on('.drag', null);\n }\n\n return {\n update,\n destroy,\n };\n}\n","import { getHandlePosition, getOverlappingArea, nodeToRect } from '../utils';\nimport {\n ConnectionMode,\n type HandleType,\n type XYPosition,\n type HandleBounds,\n type InternalNodeBase,\n type NodeLookup,\n} from '../types';\n\nfunction getNodesWithinDistance(position: XYPosition, nodeLookup: NodeLookup, distance: number): InternalNodeBase[] {\n const nodes: InternalNodeBase[] = [];\n const rect = {\n x: position.x - distance,\n y: position.y - distance,\n width: distance * 2,\n height: distance * 2,\n };\n\n for (const node of nodeLookup.values()) {\n if (getOverlappingArea(rect, nodeToRect(node)) > 0) {\n nodes.push(node);\n }\n }\n\n return nodes;\n}\n\n/*\n * this distance is used for the area around the user pointer\n * while doing a connection for finding the closest nodes\n */\nconst ADDITIONAL_DISTANCE = 250;\n\nexport function getClosestHandle(\n position: XYPosition,\n connectionRadius: number,\n nodeLookup: NodeLookup,\n fromHandle: { nodeId: string; type: HandleType; id?: string | null }\n): HandleBounds | null {\n let closestHandles: HandleBounds[] = [];\n let minDistance = Infinity;\n\n const closeNodes = getNodesWithinDistance(position, nodeLookup, connectionRadius + ADDITIONAL_DISTANCE);\n\n for (const node of closeNodes) {\n const allHandles = [...(node.internals.handleBounds?.source ?? []), ...(node.internals.handleBounds?.target ?? [])];\n\n for (const handle of allHandles) {\n // if the handle is the same as the fromHandle we skip it\n if (fromHandle.nodeId === handle.nodeId && fromHandle.type === handle.type && fromHandle.id === handle.id) {\n continue;\n }\n\n // determine absolute position of the handle\n const { x, y } = getHandlePosition(node, handle, handle.position, true);\n\n const distance = Math.sqrt(Math.pow(x - position.x, 2) + Math.pow(y - position.y, 2));\n if (distance > connectionRadius) {\n continue;\n }\n\n if (distance < minDistance) {\n closestHandles = [{ ...handle, x, y }];\n minDistance = distance;\n } else if (distance === minDistance) {\n // when multiple handles are on the same distance we collect all of them\n closestHandles.push({ ...handle, x, y });\n }\n }\n }\n\n if (!closestHandles.length) {\n return null;\n }\n // when multiple handles overlay each other we prefer the opposite handle\n if (closestHandles.length > 1) {\n const oppositeHandleType = fromHandle.type === 'source' ? 'target' : 'source';\n return closestHandles.find((handle) => handle.type === oppositeHandleType) ?? closestHandles[0];\n }\n\n return closestHandles[0];\n}\n\nexport function getHandle(\n nodeId: string,\n handleType: HandleType,\n handleId: string | null,\n nodeLookup: NodeLookup,\n connectionMode: ConnectionMode,\n withAbsolutePosition = false\n): HandleBounds | null {\n const node = nodeLookup.get(nodeId);\n if (!node) {\n return null;\n }\n\n const handles =\n connectionMode === ConnectionMode.Strict\n ? node.internals.handleBounds?.[handleType]\n : [...(node.internals.handleBounds?.source ?? []), ...(node.internals.handleBounds?.target ?? [])];\n const handle = (handleId ? handles?.find((h) => h.id === handleId) : handles?.[0]) ?? null;\n\n return handle && withAbsolutePosition\n ? { ...handle, ...getHandlePosition(node, handle, handle.position, true) }\n : handle;\n}\n\nexport function getHandleType(\n edgeUpdaterType: HandleType | undefined,\n handleDomNode: Element | null\n): HandleType | null {\n if (edgeUpdaterType) {\n return edgeUpdaterType;\n } else if (handleDomNode?.classList.contains('target')) {\n return 'target';\n } else if (handleDomNode?.classList.contains('source')) {\n return 'source';\n }\n\n return null;\n}\n\nexport function isConnectionValid(isInsideConnectionRadius: boolean, isHandleValid: boolean) {\n let isValid: boolean | null = null;\n\n if (isHandleValid) {\n isValid = true;\n } else if (isInsideConnectionRadius && !isHandleValid) {\n isValid = false;\n }\n\n return isValid;\n}\n","import {\n pointToRendererPoint,\n getHostForElement,\n calcAutoPan,\n getEventPosition,\n getHandlePosition,\n rendererPointToPoint,\n} from '../utils';\nimport {\n ConnectionMode,\n Position,\n oppositePosition,\n type ConnectionInProgress,\n type HandleBounds,\n type Connection,\n type NodeBase,\n type EdgeBase,\n type InternalNodeBase,\n} from '../types';\n\nimport { getClosestHandle, isConnectionValid, getHandleType, getHandle } from './utils';\nimport { type IsValidParams, type OnPointerDownParams, type Result, type XYHandleInstance } from './types';\n\nconst alwaysValid = () => true;\n\nfunction onPointerDown<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(\n event: MouseEvent | TouchEvent,\n {\n connectionMode,\n connectionRadius,\n handleId,\n nodeId,\n edgeUpdaterType,\n isTarget,\n domNode,\n nodeLookup,\n lib,\n autoPanOnConnect,\n flowId,\n panBy,\n cancelConnection,\n onConnectStart,\n onConnect,\n onConnectEnd,\n isValidConnection = alwaysValid,\n onReconnectEnd,\n updateConnection,\n getTransform,\n getFromHandle,\n autoPanSpeed,\n dragThreshold = 1,\n handleDomNode,\n }: OnPointerDownParams<NodeType, EdgeType>\n) {\n // when xyflow is used inside a shadow root we can't use document\n const doc = getHostForElement(event.target);\n let autoPanId = 0;\n let closestHandle: HandleBounds | null;\n\n const { x, y } = getEventPosition(event);\n const handleType = getHandleType(edgeUpdaterType, handleDomNode);\n const containerBounds = domNode?.getBoundingClientRect();\n let connectionStarted = false;\n\n if (!containerBounds || !handleType) {\n return;\n }\n\n const fromHandleInternal = getHandle(nodeId, handleType, handleId, nodeLookup, connectionMode);\n if (!fromHandleInternal) {\n return;\n }\n\n let position = getEventPosition(event, containerBounds);\n let autoPanStarted = false;\n let connection: Connection | null = null;\n let isValid: boolean | null = false;\n let resultHandleDomNode: Element | null = null;\n\n // when the user is moving the mouse close to the edge of the canvas while connecting we move the canvas\n function autoPan(): void {\n if (!autoPanOnConnect || !containerBounds) {\n return;\n }\n const [x, y] = calcAutoPan(position, containerBounds, autoPanSpeed);\n\n void panBy({ x, y });\n autoPanId = requestAnimationFrame(autoPan);\n }\n\n // Stays the same for all consecutive pointermove events\n const fromHandle: HandleBounds = {\n ...fromHandleInternal,\n nodeId,\n type: handleType,\n position: fromHandleInternal.position,\n };\n\n const fromInternalNode = nodeLookup.get(nodeId)!;\n const from = getHandlePosition(fromInternalNode, fromHandle, Position.Left, true);\n\n let previousConnection: ConnectionInProgress<InternalNodeBase<NodeType>> = {\n inProgress: true,\n isValid: null,\n\n from,\n fromHandle,\n fromPosition: fromHandle.position,\n fromNode: fromInternalNode,\n\n to: position,\n toHandle: null,\n toPosition: oppositePosition[fromHandle.position],\n toNode: null,\n pointer: position,\n };\n\n function startConnection() {\n connectionStarted = true;\n updateConnection(previousConnection);\n onConnectStart?.(event, { nodeId, handleId, handleType });\n }\n\n if (dragThreshold === 0) {\n startConnection();\n }\n\n function onPointerMove(event: MouseEvent | TouchEvent) {\n if (!connectionStarted) {\n const { x: evtX, y: evtY } = getEventPosition(event);\n const dx = evtX - x;\n const dy = evtY - y;\n const nextConnectionStarted = dx * dx + dy * dy > dragThreshold * dragThreshold;\n\n if (!nextConnectionStarted) {\n return;\n }\n\n startConnection();\n }\n\n if (!getFromHandle() || !fromHandle) {\n onPointerUp(event);\n return;\n }\n\n const transform = getTransform();\n position = getEventPosition(event, containerBounds);\n closestHandle = getClosestHandle(\n pointToRendererPoint(position, transform, false, [1, 1]),\n connectionRadius,\n nodeLookup,\n fromHandle\n );\n\n if (!autoPanStarted) {\n autoPan();\n autoPanStarted = true;\n }\n\n const result = isValidHandle(event, {\n handle: closestHandle,\n connectionMode,\n fromNodeId: nodeId,\n fromHandleId: handleId,\n fromType: isTarget ? 'target' : 'source',\n isValidConnection,\n doc,\n lib,\n flowId,\n nodeLookup,\n });\n\n resultHandleDomNode = result.handleDomNode;\n connection = result.connection;\n isValid = isConnectionValid(!!closestHandle, result.isValid);\n\n const fromInternalNode = nodeLookup.get(nodeId);\n const from = fromInternalNode\n ? getHandlePosition(fromInternalNode, fromHandle, Position.Left, true)\n : previousConnection.from;\n\n const newConnection = {\n ...previousConnection,\n from,\n isValid,\n to:\n result.toHandle && isValid\n ? rendererPointToPoint({ x: result.toHandle.x, y: result.toHandle.y }, transform)\n : position,\n toHandle: result.toHandle,\n toPosition: isValid && result.toHandle ? result.toHandle.position : oppositePosition[fromHandle.position],\n toNode: result.toHandle ? nodeLookup.get(result.toHandle.nodeId)! : null,\n pointer: position,\n };\n\n updateConnection(newConnection);\n previousConnection = newConnection;\n }\n\n function onPointerUp(event: MouseEvent | TouchEvent) {\n // Prevent multi-touch aborting connection\n if ('touches' in event && event.touches.length > 0) {\n return;\n }\n\n if (connectionStarted) {\n if ((closestHandle || resultHandleDomNode) && connection && isValid) {\n onConnect?.(connection);\n }\n\n /*\n * it's important to get a fresh reference from the store here\n * in order to get the latest state of onConnectEnd\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { inProgress, ...connectionState } = previousConnection;\n const finalConnectionState = {\n ...connectionState,\n to: pointToRendererPoint(previousConnection.to, getTransform()),\n toPosition: previousConnection.toHandle ? previousConnection.toPosition : null,\n };\n\n onConnectEnd?.(event, finalConnectionState);\n\n if (edgeUpdaterType) {\n onReconnectEnd?.(event, finalConnectionState);\n }\n }\n\n cancelConnection();\n cancelAnimationFrame(autoPanId);\n autoPanStarted = false;\n isValid = false;\n connection = null;\n resultHandleDomNode = null;\n\n doc.removeEventListener('mousemove', onPointerMove as EventListener);\n doc.removeEventListener('mouseup', onPointerUp as EventListener);\n\n doc.removeEventListener('touchmove', onPointerMove as EventListener);\n doc.removeEventListener('touchend', onPointerUp as EventListener);\n }\n\n doc.addEventListener('mousemove', onPointerMove as EventListener);\n doc.addEventListener('mouseup', onPointerUp as EventListener);\n\n doc.addEventListener('touchmove', onPointerMove as EventListener);\n doc.addEventListener('touchend', onPointerUp as EventListener);\n}\n\n// checks if and returns connection in form of an object { source: 123, target: 312 }\nfunction isValidHandle<NodeType extends NodeBase = NodeBase, EdgeType extends EdgeBase = EdgeBase>(\n event: MouseEvent | TouchEvent,\n {\n handle,\n connectionMode,\n fromNodeId,\n fromHandleId,\n fromType,\n doc,\n lib,\n flowId,\n isValidConnection = alwaysValid,\n nodeLookup,\n }: IsValidParams<NodeType, EdgeType>\n) {\n const isTarget = fromType === 'target';\n const handleDomNode = handle\n ? doc.querySelector(`.${lib}-flow__handle[data-id=\"${flowId}-${handle?.nodeId}-${handle?.id}-${handle?.type}\"]`)\n : null;\n\n const { x, y } = getEventPosition(event);\n const handleBelow = doc.elementFromPoint(x, y);\n /*\n * we always want to prioritize the handle below the mouse cursor over the closest distance handle,\n * because it could be that the center of another handle is closer to the mouse pointer than the handle below the cursor\n */\n const handleToCheck = handleBelow?.classList.contains(`${lib}-flow__handle`) ? handleBelow : handleDomNode;\n\n const result: Result = {\n handleDomNode: handleToCheck,\n isValid: false,\n connection: null,\n toHandle: null,\n };\n\n if (handleToCheck) {\n const handleType = getHandleType(undefined, handleToCheck);\n const handleNodeId = handleToCheck.getAttribute('data-nodeid');\n const handleId = handleToCheck.getAttribute('data-handleid');\n const connectable = handleToCheck.classList.contains('connectable');\n const connectableEnd = handleToCheck.classList.contains('connectableend');\n\n if (!handleNodeId || !handleType) {\n return result;\n }\n\n const connection: Connection = {\n source: isTarget ? handleNodeId : fromNodeId,\n sourceHandle: isTarget ? handleId : fromHandleId,\n target: isTarget ? fromNodeId : handleNodeId,\n targetHandle: isTarget ? fromHandleId : handleId,\n };\n\n result.connection = connection;\n\n const isConnectable = connectable && connectableEnd;\n // in strict mode we don't allow target to target or source to source connections\n const isValid =\n isConnectable &&\n (connectionMode === ConnectionMode.Strict\n ? (isTarget && handleType === 'source') || (!isTarget && handleType === 'target')\n : handleNodeId !== fromNodeId || handleId !== fromHandleId);\n\n result.isValid = isValid && isValidConnection(connection);\n\n result.toHandle = getHandle(handleNodeId, handleType, handleId, nodeLookup, connectionMode, true);\n }\n\n return result;\n}\n\nexport const XYHandle: XYHandleInstance = {\n onPointerDown,\n isValid: isValidHandle,\n};\n","import { zoom } from 'd3-zoom';\nimport { select, pointer } from 'd3-selection';\n\nimport type { CoordinateExtent, PanZoomInstance, Transform } from '../types';\nimport { getTouchPoint, isPointerEvent, isWheelEvent, type XYFlowZoomEvent } from '../utils/events';\nimport { isMacOs } from '../utils';\n\nexport type XYMinimapInstance = {\n update: (params: XYMinimapUpdate) => void;\n destroy: () => void;\n pointer: typeof pointer;\n};\n\nexport type XYMinimapParams = {\n panZoom: PanZoomInstance;\n domNode: Element;\n getTransform: () => Transform;\n getViewScale: () => number;\n};\n\nexport type XYMinimapUpdate = {\n translateExtent: CoordinateExtent;\n width: number;\n height: number;\n inversePan?: boolean;\n zoomStep?: number;\n pannable?: boolean;\n zoomable?: boolean;\n};\n\nexport function XYMinimap({ domNode, panZoom, getTransform, getViewScale }: XYMinimapParams) {\n const selection = select(domNode);\n\n function update({\n translateExtent,\n width,\n height,\n zoomStep = 1,\n pannable = true,\n zoomable = true,\n inversePan = false,\n }: XYMinimapUpdate) {\n const zoomHandler = (event: XYFlowZoomEvent<SVGSVGElement>) => {\n const sourceEvent = event.sourceEvent;\n\n if (!isWheelEvent(sourceEvent) || !panZoom) {\n return;\n }\n\n const transform = getTransform();\n const factor = sourceEvent.ctrlKey && isMacOs() ? 10 : 1;\n const pinchDelta =\n -sourceEvent.deltaY * (sourceEvent.deltaMode === 1 ? 0.05 : sourceEvent.deltaMode ? 1 : 0.002) * zoomStep;\n const nextZoom = transform[2] * Math.pow(2, pinchDelta * factor);\n\n void panZoom.scaleTo(nextZoom);\n };\n\n let panStart = [0, 0];\n\n const panStartHandler = (event: XYFlowZoomEvent<HTMLDivElement>) => {\n const sourceEvent = event.sourceEvent;\n\n if (!isPointerEvent(sourceEvent)) {\n return;\n }\n\n if (sourceEvent.type === 'mousedown' || sourceEvent.type === 'touchstart') {\n panStart = getTouchPoint(sourceEvent);\n }\n };\n\n const panHandler = (event: XYFlowZoomEvent<HTMLDivElement>) => {\n const transform = getTransform();\n const sourceEvent = event.sourceEvent;\n\n if (!isPointerEvent(sourceEvent) || isWheelEvent(sourceEvent) || !panZoom) {\n return;\n }\n\n const panCurrent = getTouchPoint(sourceEvent);\n const panDelta = [panCurrent[0] - panStart[0], panCurrent[1] - panStart[1]];\n panStart = panCurrent;\n\n const moveScale = getViewScale() * Math.max(transform[2], Math.log(transform[2])) * (inversePan ? -1 : 1);\n const position = {\n x: transform[0] - panDelta[0] * moveScale,\n y: transform[1] - panDelta[1] * moveScale,\n };\n const extent: CoordinateExtent = [\n [0, 0],\n [width, height],\n ];\n\n void panZoom.setViewportConstrained(\n {\n x: position.x,\n y: position.y,\n zoom: transform[2],\n },\n extent,\n translateExtent\n );\n };\n\n const zoomAndPanHandler = zoom()\n .on('start', panStartHandler)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n .on('zoom', pannable ? panHandler : null)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n .on('zoom.wheel', zoomable ? zoomHandler : null);\n\n selection.call(zoomAndPanHandler, {});\n }\n\n function destroy() {\n selection.on('zoom', null);\n }\n\n return {\n update,\n destroy,\n pointer,\n };\n}\n","import { type ZoomTransform, zoomIdentity } from 'd3-zoom';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { transition } from 'd3-transition';\n\nimport { type D3SelectionInstance, type Viewport } from '../types';\nimport { isMacOs } from '../utils';\nimport { type D3ZoomInputEvent } from '../utils/events';\n\nexport const transformToViewport = (transform: ZoomTransform): Viewport => ({\n x: transform.x,\n y: transform.y,\n zoom: transform.k,\n});\n\nexport const viewportToTransform = ({ x, y, zoom }: Viewport): ZoomTransform =>\n zoomIdentity.translate(x, y).scale(zoom);\n\nexport const isWrappedWithClass = (event: D3ZoomInputEvent, className: string | undefined) => {\n if (!className) {\n return false;\n }\n\n const target = event.target;\n\n return target instanceof Element && !!target.closest(`.${className}`);\n};\n\nexport const isLeftClickPan = (panOnDrag: boolean | number[]) =>\n panOnDrag === true || (Array.isArray(panOnDrag) && panOnDrag.includes(0));\n\nexport const isRightClickPan = (panOnDrag: boolean | number[], usedButton: number) =>\n usedButton === 2 && Array.isArray(panOnDrag) && panOnDrag.includes(2);\n\n// taken from d3-ease: https://github.com/d3/d3-ease/blob/main/src/cubic.js\nconst defaultEase = (t: number) => ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;\n\nexport const getD3Transition = (\n selection: D3SelectionInstance,\n duration = 0,\n ease = defaultEase,\n onEnd: (ended: boolean) => void = () => {}\n) => {\n const hasDuration = typeof duration === 'number' && duration > 0;\n\n if (!hasDuration) {\n onEnd(true);\n }\n\n /*\n * A user gesture or another viewport update stops a running transition with \"interrupt\"\n * (or with \"cancel\" if it has not started yet) and the transition never sends \"end\"\n */\n return hasDuration\n ? selection\n .transition()\n .duration(duration)\n .ease(ease)\n .on('end', () => onEnd(true))\n .on('interrupt cancel', () => onEnd(false))\n : selection;\n};\n\nexport const wheelDelta = (event: WheelEvent) => {\n const factor = event.ctrlKey && isMacOs() ? 10 : 1;\n\n return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002) * factor;\n};\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport type { D3ZoomEvent } from 'd3-zoom';\nimport { pointer } from 'd3-selection';\nimport type { ZoomTransform } from 'd3-zoom';\n\nimport {\n PanOnScrollMode,\n type D3SelectionInstance,\n type D3ZoomHandler,\n type D3ZoomInstance,\n type OnPanZoom,\n type OnDraggingChange,\n type OnTransformChange,\n} from '../types';\nimport { isRightClickPan, isWrappedWithClass, transformToViewport, wheelDelta } from './utils';\nimport { isMacOs } from '../utils';\nimport { type D3ZoomInputEvent, type XYFlowSourceEvent } from '../utils/events';\nimport { type ZoomPanValues } from './XYPanZoom';\n\nexport type PanOnScrollParams = {\n zoomPanValues: ZoomPanValues;\n noWheelClassName: string;\n d3Selection: D3SelectionInstance;\n d3Zoom: D3ZoomInstance;\n panOnScrollMode: PanOnScrollMode;\n panOnScrollSpeed: number;\n zoomOnPinch: boolean;\n onPanZoomStart?: OnPanZoom;\n onPanZoom?: OnPanZoom;\n onPanZoomEnd?: OnPanZoom;\n};\n\nexport type ZoomOnScrollParams = {\n noWheelClassName: string;\n preventScrolling: boolean;\n d3ZoomHandler: D3ZoomHandler;\n};\n\nexport type PanZoomStartParams = {\n zoomPanValues: ZoomPanValues;\n paneDragThreshold: number;\n onDraggingChange: OnDraggingChange;\n onPanZoomStart?: OnPanZoom;\n};\n\nexport type PanZoomParams = {\n zoomPanValues: ZoomPanValues;\n d3Selection: D3SelectionInstance;\n paneDragThreshold: number;\n onDraggingChange: OnDraggingChange;\n onTransformChange: OnTransformChange;\n onPanZoomStart?: OnPanZoom;\n onPanZoom?: OnPanZoom;\n};\n\nexport type PanZoomEndParams = {\n zoomPanValues: ZoomPanValues;\n panOnDrag: boolean | number[];\n panOnScroll: boolean;\n onDraggingChange: (isDragging: boolean) => void;\n onPanZoomEnd?: OnPanZoom;\n onPaneContextMenu?: (event: MouseEvent) => void;\n};\n\nexport function createPanOnScrollHandler({\n zoomPanValues,\n noWheelClassName,\n d3Selection,\n d3Zoom,\n panOnScrollMode,\n panOnScrollSpeed,\n zoomOnPinch,\n onPanZoomStart,\n onPanZoom,\n onPanZoomEnd,\n}: PanOnScrollParams) {\n return (event: WheelEvent) => {\n if (isWrappedWithClass(event, noWheelClassName)) {\n if (event.ctrlKey) {\n event.preventDefault(); // stop native page zoom for pinch zooming\n }\n return false;\n }\n event.preventDefault();\n event.stopImmediatePropagation();\n\n const currentZoom = (d3Selection.property('__zoom') as ZoomTransform).k || 1;\n\n // macos sets ctrlKey=true for pinch gesture on a trackpad\n if (event.ctrlKey && zoomOnPinch) {\n const point = pointer(event);\n const pinchDelta = wheelDelta(event);\n const zoom = currentZoom * Math.pow(2, pinchDelta);\n // @ts-ignore\n d3Zoom.scaleTo(d3Selection, zoom, point, event);\n\n return;\n }\n\n /*\n * increase scroll speed in firefox\n * firefox: deltaMode === 1; chrome: deltaMode === 0\n */\n const deltaNormalize = event.deltaMode === 1 ? 20 : 1;\n let deltaX = panOnScrollMode === PanOnScrollMode.Vertical ? 0 : event.deltaX * deltaNormalize;\n let deltaY = panOnScrollMode === PanOnScrollMode.Horizontal ? 0 : event.deltaY * deltaNormalize;\n\n // this enables vertical scrolling with shift + scroll on windows\n if (!isMacOs() && event.shiftKey && panOnScrollMode !== PanOnScrollMode.Vertical) {\n deltaX = event.deltaY * deltaNormalize;\n deltaY = 0;\n }\n\n d3Zoom.translateBy(\n d3Selection,\n -(deltaX / currentZoom) * panOnScrollSpeed,\n -(deltaY / currentZoom) * panOnScrollSpeed,\n // @ts-ignore\n { internal: true }\n );\n\n const nextViewport = transformToViewport(d3Selection.property('__zoom') as ZoomTransform);\n\n clearTimeout(zoomPanValues.panScrollTimeout);\n\n /*\n * for pan on scroll we need to handle the event calls on our own\n * we can't use the start, zoom and end events from d3-zoom\n * because start and move gets called on every scroll event and not once at the beginning\n */\n if (!zoomPanValues.isPanScrolling) {\n zoomPanValues.isPanScrolling = true;\n\n onPanZoomStart?.(event, nextViewport);\n } else {\n onPanZoom?.(event, nextViewport);\n }\n\n zoomPanValues.panScrollTimeout = setTimeout(() => {\n onPanZoomEnd?.(event, nextViewport);\n\n zoomPanValues.isPanScrolling = false;\n }, 150);\n };\n}\n\nexport function createZoomOnScrollHandler({ noWheelClassName, preventScrolling, d3ZoomHandler }: ZoomOnScrollParams) {\n return function (this: Element, event: D3ZoomInputEvent, d: unknown) {\n const isWheel = event.type === 'wheel';\n // we still want to enable pinch zooming even if preventScrolling is set to false\n const preventZoom = !preventScrolling && isWheel && !event.ctrlKey;\n const hasNoWheelClass = isWrappedWithClass(event, noWheelClassName);\n\n // if user is pinch zooming above a nowheel element, we don't want the browser to zoom\n if (event.ctrlKey && isWheel && hasNoWheelClass) {\n event.preventDefault();\n }\n\n if (preventZoom || hasNoWheelClass) {\n return null;\n }\n\n event.preventDefault();\n\n d3ZoomHandler.call(this, event, d);\n };\n}\n\nfunction startMove(zoomPanValues: ZoomPanValues, sourceEvent: Event | null, onPanZoomStart?: OnPanZoom) {\n const pointerDrag = zoomPanValues.pointerDrag;\n if (!pointerDrag || pointerDrag.moveStarted) {\n return;\n }\n\n pointerDrag.moveStarted = true;\n onPanZoomStart?.(sourceEvent as MouseEvent | TouchEvent | null, zoomPanValues.prevViewport);\n}\n\nfunction startPointerDrag(\n zoomPanValues: ZoomPanValues,\n sourceEvent: Event,\n onDraggingChange: OnDraggingChange,\n onPanZoomStart?: OnPanZoom\n) {\n const pointerDrag = zoomPanValues.pointerDrag;\n if (!pointerDrag) {\n return;\n }\n\n startMove(zoomPanValues, sourceEvent, onPanZoomStart);\n pointerDrag.dragging = true;\n\n // touch gestures never toggled the dragging state\n if (!pointerDrag.isTouch) {\n onDraggingChange(true);\n }\n}\n\nfunction isPointerMove(sourceEvent: Event | null): sourceEvent is MouseEvent | TouchEvent {\n return sourceEvent?.type === 'mousemove' || sourceEvent?.type === 'touchmove';\n}\n\nfunction getPointerPosition(sourceEvent: MouseEvent | TouchEvent, touchId: number | null) {\n if (!('touches' in sourceEvent)) {\n return sourceEvent;\n }\n\n return Array.from(sourceEvent.touches).find((touch) => touch.identifier === touchId) ?? null;\n}\n\nexport function createPanZoomStartHandler({\n zoomPanValues,\n paneDragThreshold,\n onDraggingChange,\n onPanZoomStart,\n}: PanZoomStartParams) {\n return (event: D3ZoomEvent<HTMLDivElement, unknown>) => {\n const sourceEvent = event.sourceEvent as XYFlowSourceEvent | null;\n\n if (!sourceEvent || sourceEvent.internal) {\n return;\n }\n\n const viewport = transformToViewport(event.transform);\n\n // we need to remember it here, because it's always 0 in the \"zoom\" event\n zoomPanValues.mouseButton = 'button' in sourceEvent ? sourceEvent.button : 0;\n zoomPanValues.isZoomingOrPanning = true;\n zoomPanValues.prevViewport = viewport;\n zoomPanValues.pointerDrag = null;\n\n const isTouch = sourceEvent.type === 'touchstart';\n\n if (sourceEvent.type === 'mousedown' || isTouch) {\n const touch = isTouch ? (sourceEvent as TouchEvent).touches[0] : null;\n const { clientX, clientY } = touch ?? (sourceEvent as MouseEvent);\n\n zoomPanValues.pointerDrag = {\n isTouch,\n touchId: touch?.identifier ?? null,\n startX: clientX,\n startY: clientY,\n startTransform: event.transform,\n thresholdCrossed: false,\n lastMove: null,\n moveStarted: false,\n dragging: false,\n };\n\n if (paneDragThreshold === 0) {\n startPointerDrag(zoomPanValues, sourceEvent, onDraggingChange, onPanZoomStart);\n }\n\n return;\n }\n\n onPanZoomStart?.(sourceEvent, viewport);\n };\n}\n\nexport function createPanZoomHandler({\n zoomPanValues,\n d3Selection,\n paneDragThreshold,\n onDraggingChange,\n onTransformChange,\n onPanZoomStart,\n onPanZoom,\n}: PanZoomParams) {\n return (event: D3ZoomEvent<HTMLDivElement, unknown>) => {\n const sourceEvent = event.sourceEvent as XYFlowSourceEvent | null;\n const pointerDrag = zoomPanValues.pointerDrag;\n\n if (pointerDrag) {\n const isMove = isPointerMove(sourceEvent) && sourceEvent !== pointerDrag.lastMove;\n\n if (isMove) {\n pointerDrag.lastMove = sourceEvent;\n }\n\n if (isMove && !pointerDrag.thresholdCrossed) {\n const position = getPointerPosition(sourceEvent, pointerDrag.touchId);\n // a pinch (more than one touch) or a lost first touch always starts the gesture\n const isMultiTouch = 'touches' in sourceEvent && sourceEvent.touches.length > 1;\n\n if (!position || isMultiTouch) {\n pointerDrag.thresholdCrossed = true;\n } else {\n const dx = position.clientX - pointerDrag.startX;\n const dy = position.clientY - pointerDrag.startY;\n // same check as d3-zoom's clickDistance, so a gesture is either a click or a drag\n pointerDrag.thresholdCrossed = dx * dx + dy * dy > paneDragThreshold * paneDragThreshold;\n }\n }\n\n if (!pointerDrag.dragging) {\n if (!isMove) {\n // e.g. wheel zoom or setViewport while the pointer is pressed: accept it as the new resting transform\n pointerDrag.startTransform = event.transform;\n if (!sourceEvent?.internal) {\n startMove(zoomPanValues, sourceEvent, onPanZoomStart);\n }\n } else if (pointerDrag.thresholdCrossed) {\n startPointerDrag(zoomPanValues, sourceEvent, onDraggingChange, onPanZoomStart);\n } else {\n // below the threshold: undo the transform d3-zoom already stored, so it stays in sync with the viewport\n d3Selection.property('__zoom', pointerDrag.startTransform);\n return;\n }\n }\n }\n\n if (!sourceEvent?.sync) {\n onTransformChange([event.transform.x, event.transform.y, event.transform.k]);\n }\n\n if (onPanZoom && !sourceEvent?.internal && (!pointerDrag || pointerDrag.moveStarted)) {\n onPanZoom?.(event.sourceEvent as MouseEvent | TouchEvent, transformToViewport(event.transform));\n }\n };\n}\n\nexport function createPanZoomEndHandler({\n zoomPanValues,\n panOnDrag,\n panOnScroll,\n onDraggingChange,\n onPanZoomEnd,\n onPaneContextMenu,\n}: PanZoomEndParams) {\n return (event: D3ZoomEvent<HTMLDivElement, unknown>) => {\n const sourceEvent = event.sourceEvent as XYFlowSourceEvent | null;\n\n if (sourceEvent?.internal) {\n return;\n }\n\n zoomPanValues.isZoomingOrPanning = false;\n\n const pointerDrag = zoomPanValues.pointerDrag;\n zoomPanValues.pointerDrag = null;\n\n // with right-click panning the native contextmenu event is prevented by the pane, so we emit it here\n if (\n onPaneContextMenu &&\n isRightClickPan(panOnDrag, zoomPanValues.mouseButton ?? 0) &&\n !pointerDrag?.thresholdCrossed &&\n event.sourceEvent\n ) {\n onPaneContextMenu(event.sourceEvent as MouseEvent);\n }\n\n // nothing moved during the mouse or touch gesture, so this was a click or tap\n if (pointerDrag && !pointerDrag.moveStarted) {\n return;\n }\n\n onDraggingChange(false);\n\n if (onPanZoomEnd) {\n const viewport = transformToViewport(event.transform);\n zoomPanValues.prevViewport = viewport;\n\n clearTimeout(zoomPanValues.timerId);\n zoomPanValues.timerId = setTimeout(\n () => {\n onPanZoomEnd?.(event.sourceEvent as MouseEvent | TouchEvent, viewport);\n },\n // we need a setTimeout for panOnScroll to suppress multiple end events fired during scroll\n panOnScroll ? 150 : 0\n );\n }\n };\n}\n","import { isMouseEvent, isTouchEvent, type D3ZoomInputEvent } from '../utils/events';\nimport { isWrappedWithClass } from './utils';\n\nexport type FilterParams = {\n panActivationKeyPressed: boolean;\n zoomActivationKeyPressed: boolean;\n zoomOnScroll: boolean;\n zoomOnPinch: boolean;\n panOnDrag: boolean | number[];\n panOnScroll: boolean;\n zoomOnDoubleClick: boolean;\n userSelectionActive: boolean;\n noWheelClassName: string;\n noPanClassName: string;\n lib: string;\n connectionInProgress: boolean;\n};\n\nexport function createFilter({\n panActivationKeyPressed,\n zoomActivationKeyPressed,\n zoomOnScroll,\n zoomOnPinch,\n panOnDrag,\n panOnScroll,\n zoomOnDoubleClick,\n userSelectionActive,\n noWheelClassName,\n noPanClassName,\n lib,\n connectionInProgress,\n}: FilterParams) {\n return (event: D3ZoomInputEvent): boolean => {\n const zoomScroll = zoomActivationKeyPressed || zoomOnScroll;\n const pinchZoom = zoomOnPinch && event.ctrlKey;\n const isWheelEvent = event.type === 'wheel';\n const middleMousePanAllowed = panOnDrag === true || (Array.isArray(panOnDrag) && panOnDrag.includes(1));\n\n /*\n * nodes, edges and selections are marked as nopan, but we still want to allow\n * panning with the middle mouse button on them — as long as panOnDrag allows it\n */\n if (\n middleMousePanAllowed &&\n isMouseEvent(event) &&\n event.button === 1 &&\n event.type === 'mousedown' &&\n (isWrappedWithClass(event, `${lib}-flow__node`) ||\n isWrappedWithClass(event, `${lib}-flow__edge`) ||\n isWrappedWithClass(event, `${lib}-flow__selection`) ||\n isWrappedWithClass(event, `${lib}-flow__nodesselection`))\n ) {\n return true;\n }\n\n // if all interactions are disabled, we prevent all zoom events\n if (!panOnDrag && !zoomScroll && !panOnScroll && !zoomOnDoubleClick && !zoomOnPinch) {\n return false;\n }\n\n // during a selection we prevent all other interactions\n if (userSelectionActive) {\n return false;\n }\n\n // we want to disable pinch-zooming while making a connection\n if (connectionInProgress && !isWheelEvent) {\n return false;\n }\n\n // if the target element is inside an element with the nowheel class, we prevent zooming\n if (isWrappedWithClass(event, noWheelClassName) && isWheelEvent) {\n return false;\n }\n\n // if the target element is inside an element with the nopan class, we prevent panning\n if (\n isWrappedWithClass(event, noPanClassName) &&\n (!isWheelEvent || (panOnScroll && isWheelEvent && !zoomActivationKeyPressed))\n ) {\n return false;\n }\n\n if (!zoomOnPinch && event.ctrlKey && isWheelEvent) {\n return false;\n }\n\n if (!zoomOnPinch && isTouchEvent(event) && event.type === 'touchstart' && event.touches.length > 1) {\n event.preventDefault(); // if you manage to start with 2 touches, we prevent native zoom\n return false;\n }\n\n // when there is no scroll handling enabled, we prevent all wheel events\n if (!zoomScroll && !panOnScroll && !pinchZoom && isWheelEvent) {\n return false;\n }\n\n // if the pane is not movable, we prevent dragging it with mousestart or touchstart\n if (!panOnDrag && (event.type === 'mousedown' || event.type === 'touchstart')) {\n return false;\n }\n\n /*\n * if the pane is only movable using allowed clicks\n * the type check is needed: wheel and dblclick events are MouseEvents too (button 0)\n * and would otherwise be rejected, which breaks zooming\n */\n if (\n Array.isArray(panOnDrag) &&\n isMouseEvent(event) &&\n event.type === 'mousedown' &&\n !panOnDrag.includes(event.button)\n ) {\n return false;\n }\n\n // We only allow right clicks if pan on drag is set to right click\n const button = isMouseEvent(event) ? event.button : 0;\n const buttonAllowed = (Array.isArray(panOnDrag) && panOnDrag.includes(button)) || button <= 1;\n\n // d3-zoom rejects Ctrl-modified mouse drags by default because Ctrl+wheel is\n // commonly used for pinch zooming. Allow the drag when Control is the\n // configured pan activation key, while retaining the wheel safeguard.\n return (!event.ctrlKey || isWheelEvent || panActivationKeyPressed) && buttonAllowed;\n };\n}\n","import { type ZoomTransform, zoom, zoomTransform } from 'd3-zoom';\nimport { select } from 'd3-selection';\nimport { interpolateZoom, interpolate } from 'd3-interpolate';\n\nimport {\n type CoordinateExtent,\n type Viewport,\n type PanZoomTransformOptions,\n type PanZoomUpdateOptions,\n type PanZoomParams,\n type PanZoomInstance,\n} from '../types';\nimport { clamp, isNumeric } from '../utils';\nimport { getD3Transition, viewportToTransform, wheelDelta } from './utils';\nimport {\n createPanOnScrollHandler,\n createPanZoomEndHandler,\n createPanZoomHandler,\n createPanZoomStartHandler,\n createZoomOnScrollHandler,\n} from './eventhandler';\nimport { createFilter } from './filter';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { transition } from 'd3-transition';\n\nexport type ZoomPanValues = {\n isZoomingOrPanning: boolean;\n prevViewport: Viewport;\n mouseButton: number;\n timerId: ReturnType<typeof setTimeout> | undefined;\n panScrollTimeout: ReturnType<typeof setTimeout> | undefined;\n isPanScrolling: boolean;\n // only set for mouse and touch drags; the drag starts once the pointer moved further than paneDragThreshold\n pointerDrag: {\n isTouch: boolean;\n // identifier of the first touch, used to measure the distance of touch drags\n touchId: number | null;\n startX: number;\n startY: number;\n startTransform: ZoomTransform;\n thresholdCrossed: boolean;\n // d3-zoom reuses the last move event as sourceEvent for programmatic changes during the gesture\n lastMove: Event | null;\n // onPanZoomStart was called (can happen before the threshold is crossed, e.g. by a wheel zoom)\n moveStarted: boolean;\n dragging: boolean;\n } | null;\n};\n\nexport function XYPanZoom({\n domNode,\n minZoom,\n maxZoom,\n translateExtent,\n viewport,\n onPanZoom,\n onPanZoomStart,\n onPanZoomEnd,\n onDraggingChange,\n}: PanZoomParams): PanZoomInstance {\n const zoomPanValues: ZoomPanValues = {\n isZoomingOrPanning: false,\n prevViewport: { x: 0, y: 0, zoom: 0 },\n mouseButton: 0,\n timerId: undefined,\n panScrollTimeout: undefined,\n isPanScrolling: false,\n pointerDrag: null,\n };\n const bbox = domNode.getBoundingClientRect();\n\n /*\n * Cache the pane extent and refresh it from a ResizeObserver. Otherwise d3-zoom falls back to its\n * defaultExtent, which reads clientWidth/clientHeight and forces a synchronous layout while panning\n * and pinching. The observer stays connected while zooming is paused during a user selection, so the\n * cache stays fresh, and is disconnected in destroy().\n */\n let cachedExtent: CoordinateExtent = [\n [0, 0],\n [bbox.width, bbox.height],\n ];\n const extentResizeObserver =\n typeof ResizeObserver !== 'undefined'\n ? new ResizeObserver((entries) => {\n const entry = entries[0];\n // test mocks may call back without contentRect\n if (entry?.contentRect) {\n cachedExtent = [\n [0, 0],\n [entry.contentRect.width, entry.contentRect.height],\n ];\n }\n })\n : null;\n extentResizeObserver?.observe(domNode);\n\n const d3ZoomInstance = zoom()\n .extent(() => cachedExtent)\n .scaleExtent([minZoom, maxZoom])\n .translateExtent(translateExtent);\n const d3Selection = select(domNode).call(d3ZoomInstance);\n\n void setViewportConstrained(\n {\n x: viewport.x,\n y: viewport.y,\n zoom: clamp(viewport.zoom, minZoom, maxZoom),\n },\n [\n [0, 0],\n [bbox.width, bbox.height],\n ],\n translateExtent\n );\n\n const d3ZoomHandler = d3Selection.on('wheel.zoom')!;\n const d3DblClickZoomHandler = d3Selection.on('dblclick.zoom')!;\n d3ZoomInstance.wheelDelta(wheelDelta);\n\n async function setTransform(transform: ZoomTransform, options?: PanZoomTransformOptions) {\n if (d3Selection) {\n return new Promise<boolean>((resolve) => {\n d3ZoomInstance\n ?.interpolate(options?.interpolate === 'linear' ? interpolate : interpolateZoom)\n .transform(getD3Transition(d3Selection, options?.duration, options?.ease, resolve), transform);\n });\n }\n\n return false;\n }\n\n // public functions\n function update({\n noWheelClassName,\n noPanClassName,\n onPaneContextMenu,\n userSelectionActive,\n panOnScroll,\n panOnDrag,\n panOnScrollMode,\n panOnScrollSpeed,\n preventScrolling,\n zoomOnPinch,\n zoomOnScroll,\n zoomOnDoubleClick,\n panActivationKeyPressed = false,\n zoomActivationKeyPressed,\n lib,\n onTransformChange,\n connectionInProgress,\n paneDragThreshold,\n }: PanZoomUpdateOptions) {\n if (userSelectionActive && !zoomPanValues.isZoomingOrPanning) {\n // pause zooming during a user selection\n d3ZoomInstance.on('zoom', null);\n }\n\n const isPanOnScroll = panOnScroll && !zoomActivationKeyPressed && !userSelectionActive;\n\n const dragThreshold = isNumeric(paneDragThreshold) && paneDragThreshold > 0 ? paneDragThreshold : 0;\n d3ZoomInstance.clickDistance(dragThreshold);\n\n const wheelHandler = isPanOnScroll\n ? createPanOnScrollHandler({\n zoomPanValues,\n noWheelClassName,\n d3Selection,\n d3Zoom: d3ZoomInstance,\n panOnScrollMode,\n panOnScrollSpeed,\n zoomOnPinch,\n onPanZoomStart,\n onPanZoom,\n onPanZoomEnd,\n })\n : createZoomOnScrollHandler({\n noWheelClassName,\n preventScrolling,\n d3ZoomHandler,\n });\n\n d3Selection.on('wheel.zoom', wheelHandler, { passive: false });\n\n // pan zoom start\n const startHandler = createPanZoomStartHandler({\n zoomPanValues,\n paneDragThreshold: dragThreshold,\n onDraggingChange,\n onPanZoomStart,\n });\n d3ZoomInstance.on('start', startHandler);\n\n // pan zoom\n const panZoomHandler = createPanZoomHandler({\n zoomPanValues,\n d3Selection,\n paneDragThreshold: dragThreshold,\n onPanZoomStart,\n onPanZoom,\n onDraggingChange,\n onTransformChange,\n });\n d3ZoomInstance.on('zoom', panZoomHandler);\n\n // pan zoom end\n const panZoomEndHandler = createPanZoomEndHandler({\n zoomPanValues,\n panOnDrag,\n panOnScroll,\n onPaneContextMenu,\n onPanZoomEnd,\n onDraggingChange,\n });\n d3ZoomInstance.on('end', panZoomEndHandler);\n\n const filter = createFilter({\n panActivationKeyPressed,\n zoomActivationKeyPressed,\n panOnDrag,\n zoomOnScroll,\n panOnScroll,\n zoomOnDoubleClick,\n zoomOnPinch,\n userSelectionActive,\n noPanClassName,\n noWheelClassName,\n lib,\n connectionInProgress,\n });\n d3ZoomInstance.filter(filter);\n\n /*\n * We cannot add zoomOnDoubleClick to the filter above because\n * double tapping on touch screens circumvents the filter and\n * dblclick.zoom is fired on the selection directly\n */\n if (zoomOnDoubleClick) {\n d3Selection.on('dblclick.zoom', d3DblClickZoomHandler);\n } else {\n d3Selection.on('dblclick.zoom', null);\n }\n }\n\n function destroy() {\n d3ZoomInstance.on('zoom', null);\n extentResizeObserver?.disconnect();\n }\n\n async function setViewportConstrained(\n viewport: Viewport,\n extent: CoordinateExtent,\n translateExtent: CoordinateExtent\n ): Promise<ZoomTransform | undefined> {\n const nextTransform = viewportToTransform(viewport);\n const contrainedTransform = d3ZoomInstance?.constrain()(nextTransform, extent, translateExtent);\n\n if (contrainedTransform) {\n await setTransform(contrainedTransform);\n }\n\n return contrainedTransform;\n }\n\n async function setViewport(viewport: Viewport, options?: PanZoomTransformOptions) {\n const nextTransform = viewportToTransform(viewport);\n\n return setTransform(nextTransform, options);\n }\n\n function syncViewport(viewport: Viewport) {\n if (d3Selection) {\n const nextTransform = viewportToTransform(viewport);\n const currentTransform = d3Selection.property('__zoom') as ZoomTransform;\n\n if (\n currentTransform.k !== viewport.zoom ||\n currentTransform.x !== viewport.x ||\n currentTransform.y !== viewport.y\n ) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n d3ZoomInstance?.transform(d3Selection, nextTransform, null, { sync: true });\n }\n }\n }\n\n function getViewport(): Viewport {\n const transform = d3Selection ? zoomTransform(d3Selection.node() as Element) : { x: 0, y: 0, k: 1 };\n return { x: transform.x, y: transform.y, zoom: transform.k };\n }\n\n async function scaleTo(zoom: number, options?: PanZoomTransformOptions) {\n if (d3Selection) {\n return new Promise<boolean>((resolve) => {\n d3ZoomInstance\n ?.interpolate(options?.interpolate === 'linear' ? interpolate : interpolateZoom)\n .scaleTo(getD3Transition(d3Selection, options?.duration, options?.ease, resolve), zoom);\n });\n }\n\n return false;\n }\n\n async function scaleBy(factor: number, options?: PanZoomTransformOptions) {\n if (d3Selection) {\n return new Promise<boolean>((resolve) => {\n d3ZoomInstance\n ?.interpolate(options?.interpolate === 'linear' ? interpolate : interpolateZoom)\n .scaleBy(getD3Transition(d3Selection, options?.duration, options?.ease, resolve), factor);\n });\n }\n\n return false;\n }\n\n function setScaleExtent(scaleExtent: [number, number]) {\n d3ZoomInstance?.scaleExtent(scaleExtent);\n }\n\n function setTranslateExtent(translateExtent: CoordinateExtent) {\n d3ZoomInstance?.translateExtent(translateExtent);\n }\n\n return {\n update,\n destroy,\n setViewport,\n setViewportConstrained,\n getViewport,\n scaleTo,\n scaleBy,\n setScaleExtent,\n setTranslateExtent,\n syncViewport,\n };\n}\n","import type { D3DragEvent, SubjectPosition } from 'd3-drag';\n\n/**\n * @public\n * @inline\n */\nexport type ResizeParams = {\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\nexport type ResizeParamsWithDirection = ResizeParams & {\n direction: number[];\n};\n\n/**\n * Used to determine the control line position of the NodeResizer\n *\n * @public\n * @inline\n */\nexport type ControlLinePosition = 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * Used to determine the control position of the NodeResizer\n *\n * @public\n * @inline\n */\nexport type ControlPosition = ControlLinePosition | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';\n\n/**\n * Used to determine the variant of the resize control\n *\n * @public\n */\nexport enum ResizeControlVariant {\n Line = 'line',\n Handle = 'handle',\n}\n\n/**\n * The direction the user can resize the node.\n * @public\n * @inline\n */\nexport type ResizeControlDirection = 'horizontal' | 'vertical';\n\nexport const XY_RESIZER_HANDLE_POSITIONS: ControlPosition[] = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];\nexport const XY_RESIZER_LINE_POSITIONS: ControlLinePosition[] = ['top', 'right', 'bottom', 'left'];\n\ntype OnResizeHandler<Params = ResizeParams, Result = void> = (event: ResizeDragEvent, params: Params) => Result;\nexport type ResizeDragEvent = Omit<D3DragEvent<HTMLDivElement, null, SubjectPosition>, 'sourceEvent'> & {\n sourceEvent: MouseEvent | TouchEvent;\n};\n\n/**\n * Callback to determine if node should resize\n *\n * @inline\n * @public\n */\nexport type ShouldResize = OnResizeHandler<ResizeParamsWithDirection, boolean>;\nexport type OnResizeStart = OnResizeHandler;\nexport type OnResize = OnResizeHandler<ResizeParamsWithDirection>;\nexport type OnResizeEnd = OnResizeHandler;\n","import { type CoordinateExtent, type NodeOrigin } from '../types';\nimport { type getPointerPosition } from '../utils';\nimport { type ControlPosition } from './types';\n\ntype GetResizeDirectionParams = {\n width: number;\n prevWidth: number;\n height: number;\n prevHeight: number;\n affectsX: boolean;\n affectsY: boolean;\n};\n\n/**\n * Get all connecting edges for a given set of nodes\n * @param width - new width of the node\n * @param prevWidth - previous width of the node\n * @param height - new height of the node\n * @param prevHeight - previous height of the node\n * @param affectsX - whether to invert the resize direction for the x axis\n * @param affectsY - whether to invert the resize direction for the y axis\n * @returns array of two numbers representing the direction of the resize for each axis, 0 = no change, 1 = increase, -1 = decrease\n */\nexport function getResizeDirection({\n width,\n prevWidth,\n height,\n prevHeight,\n affectsX,\n affectsY,\n}: GetResizeDirectionParams) {\n const deltaWidth = width - prevWidth;\n const deltaHeight = height - prevHeight;\n\n const direction = [deltaWidth > 0 ? 1 : deltaWidth < 0 ? -1 : 0, deltaHeight > 0 ? 1 : deltaHeight < 0 ? -1 : 0];\n\n if (deltaWidth && affectsX) {\n direction[0] = direction[0] * -1;\n }\n\n if (deltaHeight && affectsY) {\n direction[1] = direction[1] * -1;\n }\n return direction;\n}\n\n/**\n * Parses the control position that is being dragged to dimensions that are being resized\n * @param controlPosition - position of the control that is being dragged\n * @returns isHorizontal, isVertical, affectsX, affectsY,\n */\nexport function getControlDirection(controlPosition: ControlPosition) {\n const isHorizontal = controlPosition.includes('right') || controlPosition.includes('left');\n const isVertical = controlPosition.includes('bottom') || controlPosition.includes('top');\n const affectsX = controlPosition.includes('left');\n const affectsY = controlPosition.includes('top');\n\n return {\n isHorizontal,\n isVertical,\n affectsX,\n affectsY,\n };\n}\n\ntype PrevValues = {\n width: number;\n height: number;\n x: number;\n y: number;\n};\n\ntype StartValues = PrevValues & {\n pointerX: number;\n pointerY: number;\n aspectRatio: number;\n};\n\nfunction getLowerExtentClamp(lowerExtent: number, lowerBound: number) {\n return Math.max(0, lowerBound - lowerExtent);\n}\n\nfunction getUpperExtentClamp(upperExtent: number, upperBound: number) {\n return Math.max(0, upperExtent - upperBound);\n}\n\nfunction getSizeClamp(size: number, minSize: number, maxSize: number) {\n return Math.max(0, minSize - size, size - maxSize);\n}\n\nfunction xor(a: boolean, b: boolean) {\n return a ? !b : b;\n}\n\n/**\n * Calculates new width & height and x & y of node after resize based on pointer position\n * @description - Buckle up, this is a chunky one... If you want to determine the new dimensions of a node after a resize,\n * you have to account for all possible restrictions: min/max width/height of the node, the maximum extent the node is allowed\n * to move in (in this case: resize into) determined by the parent node, the minimal extent determined by child nodes\n * with expandParent or extent: 'parent' set and oh yeah, these things also have to work with keepAspectRatio!\n * The way this is done is by determining how much each of these restricting actually restricts the resize and then applying the\n * strongest restriction. Because the resize affects x, y and width, height and width, height of a opposing side with keepAspectRatio,\n * the resize amount is always kept in distX & distY amount (the distance in mouse movement)\n * Instead of clamping each value, we first calculate the biggest 'clamp' (for the lack of a better name) and then apply it to all values.\n * To complicate things nodeOrigin has to be taken into account as well. This is done by offsetting the nodes as if their origin is [0, 0],\n * then calculating the restrictions as usual\n * @param startValues - starting values of resize\n * @param controlDirection - dimensions affected by the resize\n * @param pointerPosition - the current pointer position corrected for snapping\n * @param boundaries - minimum and maximum dimensions of the node\n * @param keepAspectRatio - prevent changes of asprect ratio\n * @returns x, y, width and height of the node after resize\n */\nexport function getDimensionsAfterResize(\n startValues: StartValues,\n controlDirection: ReturnType<typeof getControlDirection>,\n pointerPosition: ReturnType<typeof getPointerPosition>,\n boundaries: { minWidth: number; maxWidth: number; minHeight: number; maxHeight: number },\n keepAspectRatio: boolean,\n nodeOrigin: NodeOrigin,\n extent?: CoordinateExtent,\n childExtent?: CoordinateExtent\n) {\n let { affectsX, affectsY } = controlDirection;\n const { isHorizontal, isVertical } = controlDirection;\n const isDiagonal = isHorizontal && isVertical;\n\n const { xSnapped, ySnapped } = pointerPosition;\n const { minWidth, maxWidth, minHeight, maxHeight } = boundaries;\n\n const { x: startX, y: startY, width: startWidth, height: startHeight, aspectRatio } = startValues;\n let distX = Math.floor(isHorizontal ? xSnapped - startValues.pointerX : 0);\n let distY = Math.floor(isVertical ? ySnapped - startValues.pointerY : 0);\n\n const newWidth = startWidth + (affectsX ? -distX : distX);\n const newHeight = startHeight + (affectsY ? -distY : distY);\n\n const originOffsetX = -nodeOrigin[0] * startWidth;\n const originOffsetY = -nodeOrigin[1] * startHeight;\n\n // Check if maxWidth, minWWidth, maxHeight, minHeight are restricting the resize\n let clampX = getSizeClamp(newWidth, minWidth, maxWidth);\n let clampY = getSizeClamp(newHeight, minHeight, maxHeight);\n\n // Check if extent is restricting the resize\n if (extent) {\n let xExtentClamp = 0;\n let yExtentClamp = 0;\n if (affectsX && distX < 0) {\n xExtentClamp = getLowerExtentClamp(startX + distX + originOffsetX, extent[0][0]);\n } else if (!affectsX && distX > 0) {\n xExtentClamp = getUpperExtentClamp(startX + newWidth + originOffsetX, extent[1][0]);\n }\n\n if (affectsY && distY < 0) {\n yExtentClamp = getLowerExtentClamp(startY + distY + originOffsetY, extent[0][1]);\n } else if (!affectsY && distY > 0) {\n yExtentClamp = getUpperExtentClamp(startY + newHeight + originOffsetY, extent[1][1]);\n }\n\n clampX = Math.max(clampX, xExtentClamp);\n clampY = Math.max(clampY, yExtentClamp);\n }\n\n // Check if the child extent is restricting the resize\n if (childExtent) {\n let xExtentClamp = 0;\n let yExtentClamp = 0;\n if (affectsX && distX > 0) {\n xExtentClamp = getUpperExtentClamp(startX + distX, childExtent[0][0]);\n } else if (!affectsX && distX < 0) {\n xExtentClamp = getLowerExtentClamp(startX + newWidth, childExtent[1][0]);\n }\n\n if (affectsY && distY > 0) {\n yExtentClamp = getUpperExtentClamp(startY + distY, childExtent[0][1]);\n } else if (!affectsY && distY < 0) {\n yExtentClamp = getLowerExtentClamp(startY + newHeight, childExtent[1][1]);\n }\n\n clampX = Math.max(clampX, xExtentClamp);\n clampY = Math.max(clampY, yExtentClamp);\n }\n\n // Check if the aspect ratio resizing of the other side is restricting the resize\n if (keepAspectRatio) {\n if (isHorizontal) {\n // Check if the max dimensions might be restricting the resize\n const aspectHeightClamp = getSizeClamp(newWidth / aspectRatio, minHeight, maxHeight) * aspectRatio;\n clampX = Math.max(clampX, aspectHeightClamp);\n\n // Check if the extent is restricting the resize\n if (extent) {\n const aspectExtentClamp =\n (!affectsX && !affectsY) || (affectsX && !affectsY && isDiagonal)\n ? getUpperExtentClamp(startY + originOffsetY + newWidth / aspectRatio, extent[1][1]) * aspectRatio\n : getLowerExtentClamp(startY + originOffsetY + (affectsX ? distX : -distX) / aspectRatio, extent[0][1]) *\n aspectRatio;\n clampX = Math.max(clampX, aspectExtentClamp);\n }\n\n // Check if the child extent is restricting the resize\n if (childExtent) {\n const aspectExtentClamp =\n (!affectsX && !affectsY) || (affectsX && !affectsY && isDiagonal)\n ? getLowerExtentClamp(startY + newWidth / aspectRatio, childExtent[1][1]) * aspectRatio\n : getUpperExtentClamp(startY + (affectsX ? distX : -distX) / aspectRatio, childExtent[0][1]) * aspectRatio;\n clampX = Math.max(clampX, aspectExtentClamp);\n }\n }\n\n // Do the same thing for vertical resizing\n if (isVertical) {\n const aspectWidthClamp = getSizeClamp(newHeight * aspectRatio, minWidth, maxWidth) / aspectRatio;\n clampY = Math.max(clampY, aspectWidthClamp);\n\n if (extent) {\n const aspectExtentClamp =\n (!affectsX && !affectsY) || (affectsY && !affectsX && isDiagonal)\n ? getUpperExtentClamp(startX + newHeight * aspectRatio + originOffsetX, extent[1][0]) / aspectRatio\n : getLowerExtentClamp(startX + (affectsY ? distY : -distY) * aspectRatio + originOffsetX, extent[0][0]) /\n aspectRatio;\n clampY = Math.max(clampY, aspectExtentClamp);\n }\n\n if (childExtent) {\n const aspectExtentClamp =\n (!affectsX && !affectsY) || (affectsY && !affectsX && isDiagonal)\n ? getLowerExtentClamp(startX + newHeight * aspectRatio, childExtent[1][0]) / aspectRatio\n : getUpperExtentClamp(startX + (affectsY ? distY : -distY) * aspectRatio, childExtent[0][0]) / aspectRatio;\n clampY = Math.max(clampY, aspectExtentClamp);\n }\n }\n }\n\n distY = distY + (distY < 0 ? clampY : -clampY);\n distX = distX + (distX < 0 ? clampX : -clampX);\n\n if (keepAspectRatio) {\n if (isDiagonal) {\n if (newWidth > newHeight * aspectRatio) {\n distY = (xor(affectsX, affectsY) ? -distX : distX) / aspectRatio;\n } else {\n distX = (xor(affectsX, affectsY) ? -distY : distY) * aspectRatio;\n }\n } else {\n if (isHorizontal) {\n distY = distX / aspectRatio;\n affectsY = affectsX;\n } else {\n distX = distY * aspectRatio;\n affectsX = affectsY;\n }\n }\n }\n\n const x = affectsX ? startX + distX : startX;\n const y = affectsY ? startY + distY : startY;\n\n return {\n width: startWidth + (affectsX ? -distX : distX),\n height: startHeight + (affectsY ? -distY : distY),\n x: nodeOrigin[0] * distX * (!affectsX ? 1 : -1) + x,\n y: nodeOrigin[1] * distY * (!affectsY ? 1 : -1) + y,\n };\n}\n","import { drag } from 'd3-drag';\nimport { select } from 'd3-selection';\n\nimport { getControlDirection, getDimensionsAfterResize, getResizeDirection } from './utils';\nimport { getPointerPosition, isCoordinateExtent } from '../utils';\nimport type {\n CoordinateExtent,\n InternalNodeBase,\n NodeBase,\n NodeLookup,\n NodeOrigin,\n Transform,\n XYPosition,\n} from '../types';\nimport type {\n OnResize,\n OnResizeEnd,\n OnResizeStart,\n ResizeDragEvent,\n ShouldResize,\n ControlPosition,\n ResizeControlDirection,\n} from './types';\n\nconst initPrevValues = { width: 0, height: 0, x: 0, y: 0 };\n\nconst initStartValues = {\n ...initPrevValues,\n pointerX: 0,\n pointerY: 0,\n aspectRatio: 1,\n};\n\nexport type XYResizerChange = {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n};\n\nexport type XYResizerChildChange = {\n id: string;\n position: XYPosition;\n extent?: NodeBase['extent'];\n};\n\ntype XYResizerParams = {\n domNode: HTMLDivElement;\n nodeId: string;\n getStoreItems: () => {\n nodeLookup: NodeLookup;\n transform: Transform;\n snapGrid?: [number, number];\n snapToGrid: boolean;\n nodeOrigin: NodeOrigin;\n paneDomNode: HTMLDivElement | null;\n };\n onChange: (changes: XYResizerChange, childChanges: XYResizerChildChange[]) => void;\n onEnd?: (change: Required<XYResizerChange>) => void;\n};\n\ntype XYResizerUpdateParams = {\n controlPosition: ControlPosition;\n boundaries: {\n minWidth: number;\n minHeight: number;\n maxWidth: number;\n maxHeight: number;\n };\n keepAspectRatio: boolean;\n resizeDirection?: ResizeControlDirection;\n onResizeStart: OnResizeStart | undefined;\n onResize: OnResize | undefined;\n onResizeEnd: OnResizeEnd | undefined;\n shouldResize: ShouldResize | undefined;\n};\n\nexport type XYResizerInstance = {\n update: (params: XYResizerUpdateParams) => void;\n destroy: () => void;\n};\n\nfunction nodeToChildExtent(\n child: InternalNodeBase,\n parent: InternalNodeBase,\n parentPosition: XYPosition\n): CoordinateExtent {\n const x = parentPosition.x + child.internals.positionAbsolute.x - parent.internals.positionAbsolute.x;\n const y = parentPosition.y + child.internals.positionAbsolute.y - parent.internals.positionAbsolute.y;\n const width = child.measured.width ?? 0;\n const height = child.measured.height ?? 0;\n\n return [\n [x, y],\n [x + width, y + height],\n ];\n}\n\nexport function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }: XYResizerParams): XYResizerInstance {\n const selection = select(domNode);\n\n let params = {\n controlDirection: getControlDirection('bottom-right'),\n boundaries: {\n minWidth: 0,\n minHeight: 0,\n maxWidth: Number.MAX_VALUE,\n maxHeight: Number.MAX_VALUE,\n },\n resizeDirection: undefined as ResizeControlDirection | undefined,\n keepAspectRatio: false,\n };\n\n function update({\n controlPosition,\n boundaries,\n keepAspectRatio,\n resizeDirection,\n onResizeStart,\n onResize,\n onResizeEnd,\n shouldResize,\n }: XYResizerUpdateParams) {\n let prevValues = { ...initPrevValues };\n let startValues = { ...initStartValues };\n\n params = {\n boundaries,\n resizeDirection,\n keepAspectRatio,\n controlDirection: getControlDirection(controlPosition),\n };\n\n let node: InternalNodeBase | undefined = undefined;\n let containerBounds: DOMRect | null = null;\n let childNodes: XYResizerChildChange[] = [];\n let parentNode: InternalNodeBase | undefined = undefined; // Needed to fix expandParent\n let nodeExtent: CoordinateExtent | undefined = undefined;\n let childExtent: CoordinateExtent | undefined = undefined;\n\n const dragHandler = drag<HTMLDivElement, unknown>()\n .on('start', (event: ResizeDragEvent) => {\n const { nodeLookup, transform, snapGrid, snapToGrid, nodeOrigin, paneDomNode } = getStoreItems();\n node = nodeLookup.get(nodeId);\n\n if (!node) {\n return;\n }\n\n containerBounds = paneDomNode?.getBoundingClientRect() ?? null;\n const { xSnapped, ySnapped } = getPointerPosition(event.sourceEvent, {\n transform,\n snapGrid,\n snapToGrid,\n containerBounds,\n });\n\n const width = node.measured.width ?? 0;\n const height = node.measured.height ?? 0;\n const origin = node.origin ?? nodeOrigin;\n const parentPosition = node.parentId ? nodeLookup.get(node.parentId)?.internals.positionAbsolute : undefined;\n\n // node.position can lie outside of the node's extent, but the node is drawn at the clamped\n // positionAbsolute. We derive the start position from it, so the resizer works with the\n // position the user actually sees.\n prevValues = {\n width,\n height,\n x: node.internals.positionAbsolute.x - (parentPosition?.x ?? 0) + origin[0] * width,\n y: node.internals.positionAbsolute.y - (parentPosition?.y ?? 0) + origin[1] * height,\n };\n\n startValues = {\n ...prevValues,\n pointerX: xSnapped,\n pointerY: ySnapped,\n aspectRatio: prevValues.width / prevValues.height,\n };\n\n parentNode = undefined;\n\n nodeExtent = isCoordinateExtent(node.extent) ? node.extent : undefined;\n\n if (node.parentId && (node.extent === 'parent' || node.expandParent)) {\n parentNode = nodeLookup.get(node.parentId);\n }\n\n if (parentNode && node.extent === 'parent') {\n nodeExtent = [\n [0, 0],\n [parentNode.measured.width!, parentNode.measured.height!],\n ];\n }\n\n /*\n * Collect all child nodes to correct their relative positions when top/left changes\n * Determine largest minimal extent the parent node is allowed to resize to\n */\n childNodes = [];\n childExtent = undefined;\n\n for (const [childId, child] of nodeLookup) {\n if (child.parentId === nodeId) {\n childNodes.push({\n id: childId,\n position: { ...child.position },\n extent: child.extent,\n });\n\n if (child.extent === 'parent' || child.expandParent) {\n const extent = nodeToChildExtent(child, node, prevValues);\n\n if (childExtent) {\n childExtent = [\n [Math.min(extent[0][0], childExtent[0][0]), Math.min(extent[0][1], childExtent[0][1])],\n [Math.max(extent[1][0], childExtent[1][0]), Math.max(extent[1][1], childExtent[1][1])],\n ];\n } else {\n childExtent = extent;\n }\n }\n }\n }\n\n onResizeStart?.(event, { ...prevValues });\n })\n .on('drag', (event: ResizeDragEvent) => {\n const { transform, snapGrid, snapToGrid, nodeOrigin: storeNodeOrigin } = getStoreItems();\n const pointerPosition = getPointerPosition(event.sourceEvent, {\n transform,\n snapGrid,\n snapToGrid,\n containerBounds,\n });\n\n const childChanges: XYResizerChildChange[] = [];\n\n if (!node) {\n return;\n }\n\n const { x: prevX, y: prevY, width: prevWidth, height: prevHeight } = prevValues;\n const change: XYResizerChange = {};\n const nodeOrigin = node.origin ?? storeNodeOrigin;\n\n const { width, height, x, y } = getDimensionsAfterResize(\n startValues,\n params.controlDirection,\n pointerPosition,\n params.boundaries,\n params.keepAspectRatio,\n nodeOrigin,\n nodeExtent,\n childExtent\n );\n\n const isWidthChange = width !== prevWidth;\n const isHeightChange = height !== prevHeight;\n\n const isXPosChange = x !== prevX && isWidthChange;\n const isYPosChange = y !== prevY && isHeightChange;\n\n if (!isXPosChange && !isYPosChange && !isWidthChange && !isHeightChange) {\n return;\n }\n\n const lastValid = {\n prevValues: { ...prevValues },\n startX: startValues.x,\n startY: startValues.y,\n childNodes: childNodes.map((child) => ({\n ...child,\n position: { ...child.position },\n })),\n };\n\n if (isXPosChange || isYPosChange || nodeOrigin[0] === 1 || nodeOrigin[1] === 1) {\n change.x = isXPosChange ? x : prevValues.x;\n change.y = isYPosChange ? y : prevValues.y;\n\n prevValues.x = change.x;\n prevValues.y = change.y;\n\n /*\n * when top/left changes, correct the relative positions of child nodes\n * so that they stay in the same position\n */\n if (childNodes.length > 0) {\n const xChange = x - prevX;\n const yChange = y - prevY;\n\n for (const childNode of childNodes) {\n childNode.position = {\n x: childNode.position.x - xChange + nodeOrigin[0] * (width - prevWidth),\n y: childNode.position.y - yChange + nodeOrigin[1] * (height - prevHeight),\n };\n childChanges.push(childNode);\n }\n }\n }\n\n if (isWidthChange || isHeightChange) {\n change.width =\n isWidthChange && (!params.resizeDirection || params.resizeDirection === 'horizontal')\n ? width\n : prevValues.width;\n change.height =\n isHeightChange && (!params.resizeDirection || params.resizeDirection === 'vertical')\n ? height\n : prevValues.height;\n prevValues.width = change.width;\n prevValues.height = change.height;\n }\n\n // Fix expandParent when resizing from top/left\n if (parentNode && node.expandParent) {\n const xLimit = nodeOrigin[0] * (change.width ?? 0);\n if (change.x && change.x < xLimit) {\n prevValues.x = xLimit;\n startValues.x = startValues.x - (change.x - xLimit);\n }\n\n const yLimit = nodeOrigin[1] * (change.height ?? 0);\n if (change.y && change.y < yLimit) {\n prevValues.y = yLimit;\n startValues.y = startValues.y - (change.y - yLimit);\n }\n }\n\n const direction = getResizeDirection({\n width: prevValues.width,\n prevWidth,\n height: prevValues.height,\n prevHeight,\n affectsX: params.controlDirection.affectsX,\n affectsY: params.controlDirection.affectsY,\n });\n\n const nextValues = { ...prevValues, direction };\n\n const callResize = shouldResize?.(event, nextValues);\n\n if (callResize === false) {\n prevValues = lastValid.prevValues;\n startValues.x = lastValid.startX;\n startValues.y = lastValid.startY;\n childNodes.forEach((child, i) => {\n child.position = lastValid.childNodes[i].position;\n });\n return;\n }\n\n onResize?.(event, nextValues);\n onChange(change, childChanges);\n })\n .on('end', (event: ResizeDragEvent) => {\n onResizeEnd?.(event, { ...prevValues });\n onEnd?.({ ...prevValues });\n });\n selection.call(dragHandler);\n }\n function destroy() {\n selection.on('.drag', null);\n }\n\n return {\n update,\n destroy,\n };\n}\n","import type { Changeset } from '.';\nimport { EdgeBase, NodeBase } from '../types';\nimport type { EdgeChange, ElementChangeType, NodeChange } from './types';\n\nexport function applyNodeChanges<NodeType extends NodeBase = NodeBase>(\n nodes: NodeType[],\n nodeChanges: Changeset<NodeType, NodeChange<NodeType>>\n): NodeType[] {\n return applyChanges(nodes, nodeChanges, applyNodeChange);\n}\n\nexport function applyEdgeChanges<EdgeType extends EdgeBase = EdgeBase>(\n edges: EdgeType[],\n edgeChanges: Changeset<EdgeType, EdgeChange<EdgeType>>\n): EdgeType[] {\n return applyChanges(edges, edgeChanges, applyEdgeChange);\n}\n\nfunction applyChanges<ElementType extends NodeBase | EdgeBase, ChangeType extends ElementChangeType<ElementType>>(\n previousElements: ElementType[],\n changes: Changeset<ElementType, ChangeType>,\n applyChange: (element: ElementType, change: ChangeType) => void\n): ElementType[] {\n const newElements: ElementType[] = [];\n\n const addedElements = changes.getNewElements();\n const addedIds = new Set(addedElements.map((element) => element.id));\n\n let isPreviousElement: boolean | undefined;\n for (const elements of [previousElements, addedElements]) {\n isPreviousElement = !isPreviousElement;\n\n elementsLoop: for (const element of elements) {\n // when we loop over the addedElements we skip elements that already exist\n if (!isPreviousElement && !addedIds.has(element.id)) {\n continue;\n }\n\n const elementChanges = changes.getForElement(element.id);\n\n if (!elementChanges.length) {\n newElements.push(element);\n addedIds.delete(element.id);\n continue;\n }\n\n let updatedElement = { ...element };\n for (const change of elementChanges) {\n switch (change.type) {\n case 'remove':\n //remove takes prescedent\n addedIds.delete(element.id);\n continue elementsLoop;\n case 'replace':\n updatedElement = { ...change.item };\n continue;\n default:\n applyChange(updatedElement, change);\n }\n }\n newElements.push(updatedElement);\n addedIds.delete(element.id);\n }\n }\n\n return newElements;\n}\n\nfunction applyNodeChange<NodeType extends NodeBase = NodeBase>(node: NodeType, change: NodeChange<NodeType>) {\n switch (change.type) {\n case 'select': {\n node.selected = change.selected;\n break;\n }\n\n case 'position': {\n if (typeof change.position !== 'undefined') {\n node.position = change.position;\n }\n\n if (typeof change.dragging !== 'undefined') {\n node.dragging = change.dragging;\n }\n\n break;\n }\n\n case 'dimensions': {\n if (typeof change.dimensions !== 'undefined') {\n node.measured = {\n ...change.dimensions,\n };\n\n if (change.setAttributes === true || change.setAttributes === 'width') {\n node.width = change.dimensions.width;\n }\n if (change.setAttributes === true || change.setAttributes === 'height') {\n node.height = change.dimensions.height;\n }\n }\n\n if (typeof change.resizing === 'boolean') {\n node.resizing = change.resizing;\n }\n\n break;\n }\n\n case 'update': {\n Object.assign(node, change.item);\n break;\n }\n\n case 'data': {\n node.data = change.replace ? change.data : { ...node.data, ...change.data };\n break;\n }\n\n default:\n return;\n }\n}\n\nexport function applyEdgeChange<EdgeType extends EdgeBase = EdgeBase>(edge: EdgeType, change: EdgeChange<EdgeType>) {\n switch (change.type) {\n case 'select': {\n edge.selected = change.selected;\n break;\n }\n\n case 'update': {\n Object.assign(edge, change.item);\n break;\n }\n\n case 'data': {\n edge.data = change.replace ? change.data : { ...edge.data, ...change.data };\n break;\n }\n\n default:\n return;\n }\n}\n","import type { Dimensions, XYPosition } from '../types';\nimport type {\n AddChange,\n DataChange,\n DimensionChange,\n PositionChange,\n RemoveChange,\n ReplaceChange,\n SelectionChange,\n UpdateChange,\n} from './types';\n\nexport function selectionChange(id: string, selected: boolean): SelectionChange {\n return {\n id,\n type: 'select',\n selected,\n };\n}\n\nexport function positionChange(id: string, position: XYPosition): PositionChange {\n return {\n id,\n type: 'position',\n position,\n };\n}\n\nexport function dimensionChange(id: string, dimensions: Dimensions): DimensionChange {\n return {\n id,\n type: 'dimensions',\n dimensions,\n };\n}\n\nexport function removeChange(id: string): RemoveChange {\n return {\n id,\n type: 'remove',\n };\n}\n\nexport function addChange<T extends { id: string }>(item: T): AddChange<T> {\n return {\n id: item.id,\n item: item,\n type: 'add',\n };\n}\n\nexport function replaceChange<T extends { id: string }>(item: T): ReplaceChange<T> {\n return {\n id: item.id,\n item: item,\n type: 'replace',\n };\n}\n\nexport function updateChange<T extends { id: string }>(id: string, item: Partial<T>): UpdateChange<T> {\n return {\n id,\n item,\n type: 'update',\n };\n}\n\nexport function dataChange<Data = Record<string, unknown>>(id: string, data: Data, replace: true): DataChange<Data>;\nexport function dataChange<Data = Record<string, unknown>>(\n id: string,\n data: Partial<Data>,\n replace?: false\n): DataChange<Data>;\nexport function dataChange<Data = Record<string, unknown>>(\n id: string,\n data: Partial<Data>,\n replace?: boolean\n): DataChange<Data> {\n return (replace ? { id, type: 'data', data, replace } : { id, type: 'data', data }) as DataChange<Data>;\n}\n","import type { EdgeBase, NodeBase } from '../types';\nimport type { EdgeChange, ElementChangeType, NodeChange } from './types';\n\nimport { applyEdgeChanges, applyNodeChanges } from './apply.js';\n\n/** Helper to narrow down the type of a change based on it's name */\ntype ChangeOfType<ChangeType extends { type: string }, T extends ChangeType['type']> = Extract<ChangeType, { type: T }>;\n\n/** Generic apply changes function that works for both nodes and changes */\ntype ApplyChangesFn<ElementType extends NodeBase | EdgeBase, ChangeType extends ElementChangeType<ElementType>> = (\n elements: ElementType[],\n changes: Changeset<ElementType, ChangeType>\n) => ElementType[];\n\n/**\n * Tracks a batch of changes to be applied to either edges or nodes\n * TODO: include a way to split ephemeral dimension changes to split\n *\n * @example\n * ```ts\n * const changes = new NodeChanges();\n * changes.add({ id: '1', type: 'position', position: { x: 10, y: 20 } });\n * const nextNodes = changes.applyTo(nodes);\n * ```\n */\nexport class Changeset<ElementType extends NodeBase | EdgeBase, ChangeType extends ElementChangeType<ElementType>> {\n private changeTypes: Partial<Record<ChangeType['type'], boolean>> = {};\n private changeMap: Map<string, ChangeType[]> = new Map();\n /** add changes are tracked separately, there can only be one per element */\n private addChanges: Map<string, ChangeOfType<ChangeType, 'add'>> = new Map();\n\n constructor(private applyChanges: ApplyChangesFn<ElementType, ChangeType>) {}\n\n /**\n * Queues a change for an element.\n *\n * @example\n * ```ts\n * changes.add(selectionChange('1', true));\n * changes.add(positionChnage('1', { x: 0, y: 0 }));\n * ```\n */\n add(change: ChangeType | ChangeType[]): void {\n const newChanges = Array.isArray(change) ? change : [change];\n for (const change of newChanges) {\n this.changeTypes[change.type as ChangeType['type']] = true;\n if (change.type === 'add') {\n this.addChanges.set(change.id, change as ChangeOfType<ChangeType, 'add'>);\n continue;\n }\n const changes = this.changeMap.get(change.id);\n if (changes) {\n changes.push(change);\n } else {\n this.changeMap.set(change.id, [change]);\n }\n }\n }\n\n /**\n * Removes a specific change by object reference\n *\n * @example\n * ```ts\n * const change = { id: '1', type: 'select', selected: true };\n * changes.add(change);\n * changes.remove(change);\n * ```\n */\n remove(change: ChangeType): void {\n if (change.type === 'add') {\n if (this.addChanges.get(change.id) === change) {\n this.addChanges.delete(change.id);\n }\n return;\n }\n\n const changes = this.changeMap.get(change.id);\n if (!changes) {\n return;\n }\n\n const index = changes.indexOf(change);\n if (index < 0) {\n return;\n }\n\n if (changes.length === 1) {\n this.changeMap.delete(change.id);\n return;\n }\n\n changes.splice(index, 1);\n }\n\n /**\n * Returns all queued changes for an element.\n *\n * @example\n * ```ts\n * const elementChanges = changes.getForElement('1');\n * ```\n */\n getForElement(elementId: string): ChangeType[] {\n return this.changeMap.get(elementId) || [];\n }\n\n /**\n * Clears every change for an element.\n *\n * @example\n * ```ts\n * changes.removeForElement('1');\n * ```\n */\n removeForElement(elementId: string): void {\n this.changeMap.delete(elementId);\n this.addChanges.delete(elementId);\n }\n\n /**\n * Clears all queued changes.\n *\n * @example\n * ```ts\n * changes.clear();\n * ```\n */\n clear(): void {\n this.changeTypes = {};\n this.changeMap.clear();\n this.addChanges.clear();\n }\n\n /**\n * Returns true if there are no queued changes.\n *\n * @example\n * ```ts\n * if (changes.isEmpty()) return;\n * ```\n */\n isEmpty(): boolean {\n // entries are deleted as soon as their last change is removed,\n // so the map never holds empty arrays\n return this.changeMap.size === 0 && this.addChanges.size === 0;\n }\n\n /**\n * Iterates over all queued changes.\n *\n * @example\n * ```ts\n * for (const change of changes) {\n * console.log(change.type, change.id);\n * }\n * ```\n */\n *[Symbol.iterator](): Iterator<ChangeType> {\n yield* this.addChanges.values();\n for (const changes of this.changeMap.values()) {\n yield* changes;\n }\n }\n\n /**\n * Returns all elements that are added by this changeset.\n *\n * @example\n * ```ts\n * const newElements = changes.getNewElements();\n * ```\n */\n getNewElements(): ElementType[] {\n const newElements: ElementType[] = [];\n for (const change of this.addChanges.values()) {\n newElements.push(change.item);\n }\n return newElements;\n }\n\n /**\n * Returns all queued changes as a flat array.\n *\n * @example\n * ```ts\n * const list = changes.toArray();\n * ```\n */\n toArray() {\n const array: ChangeType[] = [];\n for (const change of this.addChanges.values()) {\n array.push(change);\n }\n for (const changes of this.changeMap.values()) {\n for (const change of changes) {\n array.push(change);\n }\n }\n return array;\n }\n\n /**\n * Returns all changes of a given type (e.g. `'position'`, `'select'`).\n *\n * @example\n * ```ts\n * const positionChanges = changes.getByType('position');\n * ```\n */\n getByType<T extends ChangeType['type']>(changeType: T): ChangeOfType<ChangeType, T>[] {\n if (this.changeTypes[changeType]) {\n // Optimized path for add changes\n if (changeType === 'add') {\n return Array.from(this.addChanges.values()) as unknown as ChangeOfType<ChangeType, T>[];\n }\n\n const changesOfType: ChangeOfType<ChangeType, T>[] = [];\n for (const changes of this.changeMap.values()) {\n for (const change of changes) {\n if (change.type === changeType) {\n changesOfType.push(change as ChangeOfType<ChangeType, T>);\n }\n }\n }\n return changesOfType;\n }\n return [];\n }\n\n /**\n * Applies the queued changes to an elements array and returns the result.\n *\n * @example\n * ```ts\n * const nextElements = changes.applyTo(elements);\n * ```\n */\n applyTo(elements: ElementType[]): ElementType[] {\n return this.applyChanges(elements, this);\n }\n}\n\n/**\n * Defines a batch of changes to be applied to nodes\n *\n * @example\n * ```ts\n * const changes = new NodeChanges();\n * changes.add({ id: '1', type: 'position', position: { x: 10, y: 20 } });\n * const nextNodes = changes.applyTo(nodes);\n * ```\n */\nexport class NodeChangeset<NodeType extends NodeBase = NodeBase> extends Changeset<NodeType, NodeChange<NodeType>> {\n constructor(changes?: NodeChange<NodeType>[]) {\n super(applyNodeChanges);\n\n if (changes) {\n this.add(changes);\n }\n }\n\n /**\n * Returns all queued changes for a node.\n *\n * @example\n * ```ts\n * const nodeChanges = changes.getForNode('1');\n * ```\n */\n getForNode(nodeId: string): NodeChange<NodeType>[] {\n return this.getForElement(nodeId);\n }\n\n /**\n * Clears every change for a node.\n *\n * @example\n * ```ts\n * changes.removeForNode('1');\n * ```\n */\n removeForNode(nodeId: string): void {\n this.removeForElement(nodeId);\n }\n\n /**\n * Returns all nodes that are added by this changeset.\n *\n * @example\n * ```ts\n * const newNodes = changes.getNewNodes();\n * ```\n */\n getNewNodes(): NodeType[] {\n return this.getNewElements();\n }\n}\n\n/**\n * Defines a batch of changes to be applied to the edges\n *\n * @example\n * ```ts\n * const changes = new EdgeChanges();\n * changes.add({ id: 'e1', type: 'select', selected: true });\n * const nextEdges = changes.applyTo(edges);\n * ```\n */\nexport class EdgeChangeset<EdgeType extends EdgeBase = EdgeBase> extends Changeset<EdgeType, EdgeChange<EdgeType>> {\n constructor(changes?: EdgeChange<EdgeType>[]) {\n super(applyEdgeChanges);\n\n if (changes) {\n this.add(changes);\n }\n }\n\n /**\n * Returns all queued changes for an edge.\n *\n * @example\n * ```ts\n * const edgeChanges = changes.getForEdge('e1');\n * ```\n */\n getForEdge(edgeId: string): EdgeChange<EdgeType>[] {\n return this.getForElement(edgeId);\n }\n\n /**\n * Clears every change for an edge.\n *\n * @example\n * ```ts\n * changes.removeForEdge('e1');\n * ```\n */\n removeForEdge(edgeId: string): void {\n this.removeForElement(edgeId);\n }\n\n /**\n * Returns all edges that are added by this changeset.\n *\n * @example\n * ```ts\n * const newEdges = changes.getNewEdges();\n * ```\n */\n getNewEdges(): EdgeType[] {\n return this.getNewElements();\n }\n}\n","import type { SelectionChange } from './types.js';\nimport { selectionChange } from './create.js';\n\nexport function getSelectionChanges(\n items: Map<string, { id: string; selected?: boolean }>,\n selectedIds: Set<string> = new Set()\n): SelectionChange[] {\n const changes: SelectionChange[] = [];\n\n for (const [, item] of items) {\n const willBeSelected = selectedIds.has(item.id);\n\n if (!(item.selected === undefined && !willBeSelected) && item.selected !== willBeSelected) {\n changes.push(selectionChange(item.id, willBeSelected));\n }\n }\n\n return changes;\n}\n\nexport function getDeselectionChanges(\n items: Map<string, { id: string; selected?: boolean }>,\n deselectedIds: Set<string> | null = new Set()\n): SelectionChange[] {\n const changes: SelectionChange[] = [];\n\n for (const [, item] of items) {\n const shouldDeselect = deselectedIds ? deselectedIds.has(item.id) : true;\n\n if (shouldDeselect && item.selected) {\n changes.push(selectionChange(item.id, false));\n }\n }\n\n return changes;\n}\n"],"names":["_a","c","oldValue","newValue","StoreContext","createContext","Provider","shallow","objA","objB","Object","is","Map","size","key","value","has","get","Set","keysA","keys","length","keyA","prototype","hasOwnProperty","call","useShallow","selector","$","_c","prev","useRef","undefined","t0","state","next","current","identity","zustandErrorMessage","errorMessages","\"error001\"","useOptionsStore","optionsStore","useReactFlowStoreApi","useZustandStore","stores","useContext","Error","useViewportStore","viewportStore","useConnectionStore","connectionStore","useNodesStore","nodesStore","useEdgesStore","edgesStore","useSelectionStore","selectionStore","useEqualSelector","isEqual","style","display","ariaLiveStyle","position","width","height","margin","border","padding","overflow","clip","clipPath","ARIA_NODE_DESC_KEY","ARIA_EDGE_DESC_KEY","AriaLiveMessage","rfId","ariaLiveMessage","_temp","t1","t2","jsx","s","A11yDescriptions","disableKeyboardA11y","ariaLabelConfig","_temp2","t3","t4","t5","t6","t7","t8","jsxs","Fragment","Panel","forwardRef","ref","children","className","rest","positionClasses","split","cc","displayName","link","process","env","NODE_ENV","Attribution","proOptions","Symbol","for","useEffect","hideAttribution","handleAttributionWarning","nodesSelector","selectedNodes","node","nodeLookup","selected","push","internals","userNode","edgesSelector","selectedEdges","edge","edgeLookup","selectId","obj","id","areEqual","a","b","map","SelectionListenerInner","onSelectionChange","params","nodes","getState","edges","onSelectionChangeHandlers","forEach","fn","changeSelector","SelectionListener","storeHasSelectionChangeHandlers","defaultNodeOrigin","defaultViewport","x","y","zoom","fieldsToTrack","reactFlowFieldsToTrack","initPrevValues","translateExtent","infiniteExtent","nodeOrigin","minZoom","maxZoom","elementsSelectable","noPanClassName","StoreUpdater","props","previousFields","setDefaultNodesAndEdges","reset","defaultNodes","defaultEdges","setNodes","setEdges","setMinZoom","setMaxZoom","setTranslateExtent","setNodeExtent","fieldName","fieldValue","setState","mergeAriaLabelConfig","fitViewQueued","fitViewOptions","defaultDoc","document","useKeyPress","keyCode","target","actInsideInputWithModifier","options","keyPressed","setKeyPressed","useState","modifierPressed","pressedKeys","getKeyCodes","keyCodes","keysToWatch","downHandler","event","ctrlKey","metaKey","shiftKey","altKey","isInputDOMNode","keyOrCode","getKeyOrCode","code","add","isMatchingKey","target_0","composedPath","isInteractiveElement","nodeName","preventDefault","upHandler","event_0","keyOrCode_0","clear","delete","resetHandler","addEventListener","window","removeEventListener","Array","isArray","filter","kc","replace","__iconNode","d","reduce","res","concat","item","keysFlat","isUp","some","every","k","eventCode","includes","useViewportHelper","panZoom","scaleBy","options_0","panZoom_0","zoomLevel","options_1","panZoom_1","scaleTo","transform","viewport","options_2","tX","tY","tZoom","panZoom_2","setViewport","x_0","y_0","options_3","setCenter","t9","bounds","options_4","panZoom_3","viewport_0","getViewportForBounds","defaultFitViewPadding","clientPosition","t10","options_5","snapGrid","snapToGrid","domNode","domX","domY","getBoundingClientRect","correctedPosition","_snapGrid","_snapToGrid","pointToRendererPoint","flowPosition","transform_0","domNode_0","domX_0","domY_0","rendererPosition","rendererPointToPoint","zoomIn","zoomOut","zoomTo","getZoom","getViewport","fitBounds","screenToFlowPosition","flowToScreenPosition","getElementsDiffChanges","items","lookup","changes","itemsLookup","entries","lookupItem","storeItem","replaceChange","addChange","nextNode","removeChange","defaultOnError","createDevWarn","addEdge","edgeParams","addEdgeSystem","onError","reconnectEdge","oldEdge","newConnection","shouldReplaceId","reconnectEdgeSystem","isNode","element","isNodeBase","isEdge","isEdgeBase","fixedForwardRef","render","useIsomorphicLayoutEffect","useLayoutEffect","useQueue","runQueue","BigInt","serial","setSerial","createQueue","queue","queueItems","n","cb","BatchContext","BatchProvider","onNodesChange","onNodesChangeMiddlewareMap","hasDefaultNodes","payload","middleware","values","NodeChangeset","requestAnimationFrame","fitViewQueued_0","setNodes_0","nodes_0","nodeQueue","nodeQueueHandler","queueItems_0","hasDefaultEdges","onEdgesChange","next_0","payload_0","changes_0","EdgeChangeset","edgeQueue","edgeQueueHandler","useBatchContext","batchContext","useReactFlow","viewportHelper","viewportInitialized","getInternalNode","nodeToUse","parentId","evaluateAbsolutePosition","measured","nodeWithPosition","nodeToRect","getNodeRect","id_0","nodeUpdate","prevNodes","node_0","updateNode","id_1","edgeUpdate","prevEdges","nextEdge","updateEdge","id_2","id_3","t11","payload_1","newNodes","payload_2","newEdges","edges_0","t12","t13","t14","edges_1","_temp3","_temp4","t15","t16","nodesToRemove","edgesToRemove","nodes_1","edges_2","onNodesDelete","onEdgesDelete","emitNodeChanges","emitEdgeChanges","onDelete","onBeforeDelete","matchingNodes","matchingEdges","getElementsToRemove","hasMatchingEdges","hasMatchingNodes","edgeChanges","_temp5","nodeChanges","_temp6","deletedNodes","deletedEdges","nodeOrRect","nodes_2","partially","isRect","isRectObject","nodeRect","hasNodesOption","nodeOrigin_0","n_2","internalNode","positionAbsolute","currNodeRect","overlappingArea","getOverlappingArea","nodeOrRect_0","area","partially_0","nodeRect_0","overlappingArea_0","id_4","dataUpdate","t17","node_1","nextData","data","nodeId","changeParentNode","t18","nodeId_0","parentId_0","id_5","dataUpdate_0","t19","edge_0","nextData_0","nodes_3","nodeLookup_0","nodeOrigin_1","getNodesBounds","t20","t21","type","handleId","nodeId_1","getConnectionsFromLookup","connectionLookup","fitViewResolver","withResolvers","_temp7","promise","t22","getNodes","getNode","getEdges","getEdge","addNodes","addEdges","toObject","deleteElements","getIntersectingNodes","isNodeIntersecting","updateNodeData","changeParent","updateEdgeData","getNodeConnections","fitView","generalHelper","t23","nodes_4","n_1","e_1","e","e_0","n_0","win","useGlobalKeyHandler","deleteKeyCode","multiSelectionKeyCode","deleteKeyPressed","multiSelectionKeyPressed","nodesSelectionActive","multiSelectionActive","useResizeHandler","updateDimensions","checkVisibility","getDimensions","error004","resizeObserver","ResizeObserver","observe","disconnect","containerStyle","top","left","ZoomPane","onPaneContextMenu","zoomOnScroll","zoomOnPinch","panOnScroll","panActivationKeyPressed","panOnScrollSpeed","panOnScrollMode","zoomOnDoubleClick","panOnDrag","zoomActivationKeyCode","preventScrolling","noWheelClassName","onViewportChange","isControlledViewport","paneDragThreshold","PanOnScrollMode","Free","userSelectionActive","connectionInProgress","zoomActivationKeyPressed","zoomPane","panZoomOptions","onTransformChange","XYPanZoom","onDraggingChange","paneDragging","prevState","onPanZoomStart","vp","onViewportChangeStart","onMoveStart","onPanZoom","vp_0","onViewportChange_0","onMove","onPanZoomEnd","event_1","vp_1","onViewportChangeEnd","onMoveEnd","closest","destroy","update","lib","connection","inProgress","UserSelection","userSelectionRect","s_0","invokeHandler","handler","containerRef","Pane","isSelecting","selectionKeyPressed","selectionMode","autoPanOnSelection","selectionOnDrag","onSelectionStart","onSelectionEnd","onPaneClick","onPaneScroll","onPaneMouseEnter","onPaneMouseMove","onPaneMouseLeave","SelectionMode","Full","autoPanId","panBy","autoPanSpeed","dragging","isSelectionEnabled","container","containerBounds","selectedNodeIds","selectedEdgeIds","connectionEndedOnPane","selectionInProgress","autoPanStarted","onClickConnectEnd","resetSelectedElements","connectionClickStartHandle","connectionClone","structuredClone","toPosition","toHandle","nativeEvent","updateConnectionClickStart","onClick","onContextMenu","onWheel","event_2","stopPropagation","onClickCapture","event_3","pointerType","eventTargetIsContainer","button","isPrimary","setPointerCapture","pointerId","getEventPosition","userSelectionStartPosition","startX","startY","onPointerDownCapture","mouseX","mouseY","defaultEdgeOptions","userStartPosition","screenStartX","screenStartY","nextUserSelectRect","Math","abs","prevSelectedNodeIds","prevSelectedEdgeIds","getNodesInside","Partial","edgesSelectable","selectable","connections","edgeId","areSetsEqual","getSelectionChanges","commitUserSelectionRect","autoPan","calcAutoPan","then","panned","mx","my","cancelAnimationFrame","cleanupAutoPan","event_4","userSelectionRect_0","transform_1","resetSelectedElements_0","mouseX_0","mouseY_0","screenStart","requiredDistance","hypot","distance","onPointerMove","event_5","releasePointerCapture","nodesSelectionActive_0","onPointerUp","event_6","onPointerCancel","draggable","selection","event_7","event_8","event_9","t24","t25","t26","t27","s_3","s_2","s_1","handleNodeClick","unselect","nodeRef","addSelectedNodes","unselectNodesAndEdges","blur","\"error012\"","useDrag","disabled","noDragClassName","handleSelector","isSelectable","setDragging","xyDrag","XYDrag","getStoreItems","onNodeMouseDown","onDragStart","onDragStop","selectedAndDraggable","nodesDraggable","useMoveSelectedNodes","nodeExtent","updateNodePositions","nodeUpdates","isSelected","xVelo","yVelo","xDiff","direction","factor","yDiff","nextPosition","snapPosition","calculateNodePosition","set","moveSelectedNodes","NodeIdContext","Consumer","useNodeId","HandleConfigContext","HandleConfigProvider","config","connectOnClick","connectionMode","useHandleConfig","useConnection","connectionSelector","useConnectionStateForHandle","handle","onStoreChange","pubSub","subscribeToConnectionForHandle","subscribe","getSnapshot","useSyncExternalStore","idleConnectingState","connectingFrom","connectingTo","clickConnecting","isPossibleEndHandle","clickConnectionInProgress","valid","deriveHandleState","clickHandle","fromHandle","isValid","ConnectionMode","Strict","HandleComponent","isValidConnection","onConnect","onMouseDown","onTouchStart","isConnectable","isConnectableStart","isConnectableEnd","Position","Top","isTarget","error010","onPointerDown","handleState","onConnectAction","onConnectExtended","isMouseTriggered","isMouseEvent","currentStore","XYHandle","handleDomNode","currentTarget","autoPanOnConnect","connectionRadius","flowId","cancelConnection","onConnectStart","onConnectEnd","args","updateConnection","args_0","getTransform","getFromHandle","dragThreshold","connectionDragThreshold","onClickConnectStart","connectionMode_0","isValidConnectionStore","connectionState","handleType","doc","getHostForElement","isValidConnectionHandler","connection_0","fromNodeId","fromHandleId","fromType","source","connectable","connectablestart","connectableend","clickconnecting","connectingfrom","connectingto","connectionindicator","Handle","memo","InputNode","sourcePosition","Bottom","label","DefaultNode","targetPosition","GroupNode","OutputNode","arrowKeyDiffs","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","builtinNodeTypes","input","default","output","group","getNodeInlineStyleDimensions","handleBounds","initialWidth","initialHeight","getInternalNodesBounds","isNumeric","NodesSelection","onSelectionContextMenu","transformString","focus","preventScroll","shouldRender","onKeyDown","FlowRendererComponent","selectionKeyCode","panActivationKeyCode","_panOnScroll","_panOnDrag","isLeftClickPan","_selectionOnDrag","FlowRenderer","onlyRenderVisible","from","useVisibleNodeIds","nodeIds","useResizeObserver","updates","entry","getAttribute","nodeElement","force","updateNodeInternals","useNodes","useNode","subscribeToNode","useInternalNode","useInternalNodes","ids","subscribeToNodes","selectSnapshot","useNodeObserver","nodeType","hasDimensions","observedNode","prevSourcePosition","prevTargetPosition","prevType","isInitialized","hidden","unobserve","typeChanged","sourcePosChanged","targetPosChanged","NodeWrapper","onMouseEnter","onMouseMove","onMouseLeave","onDoubleClick","nodesConnectable","nodesFocusable","nodeTypes","NodeComponent","error003","\"default\"","isDraggable","isFocusable","focusable","nodeHasDimensions","dragHandle","getNodeDimensions","nodeDimensions","inlineDimensions","hasPointerEvents","onMouseEnterHandler","onMouseMoveHandler","onMouseLeaveHandler","onContextMenuHandler","onDoubleClickHandler","selectNodesOnDrag","nodeDragThreshold","onSelectNodeHandler","elementSelectionKeys","toLowerCase","matches","autoPanOnNodeFocus","onFocus","isParent","parent","z","zIndex","pointerEvents","visibility","ariaRole","t28","deletable","t29","t30","t31","ariaLabel","domAttributes","NodeWrapper_default","NodeRendererComponent","onlyRenderVisibleElements","onNodeClick","onNodeContextMenu","onNodeDoubleClick","onNodeMouseEnter","onNodeMouseLeave","onNodeMouseMove","NodeRenderer","useVisibleEdgeIds","visibleEdgeIds","sourceNode","targetNode","isEdgeVisible","edgeIds","ArrowSymbol","color","strokeWidth","stroke","ArrowClosedSymbol","fill","arrowSymbols","MarkerType","Arrow","ArrowClosed","Marker","markerUnits","orient","hasOwn","error009","MarkerDefinitions","defaultColor","markerEnd","markerStart","bb0","markers","createMarkerIds","defaultMarkerStart","defaultMarkerEnd","marker","MarkerDefinitions_default","useEdges","useEdge","subscribeToEdge","defaultLabelBgPadding","EdgeTextComponent","labelBgStyle","labelStyle","labelShowBg","labelBgPadding","labelBgBorderRadius","edgeTextBbox","setEdgeTextBbox","edgeTextClasses","edgeTextRef","textBbox","getBBox","EdgeText","BaseEdge","interactionWidth","labelX","labelY","path","getControl","pos","x1","y1","x2","y2","Left","Right","getSimpleBezierPath","sourceX","sourceY","targetX","targetY","sourceControlX","sourceControlY","targetControlX","targetControlY","offsetX","offsetY","getBezierEdgeCenter","createSimpleBezierEdge","SimpleBezierEdgeComponent","_id","isInternal","SimpleBezierEdge","SimpleBezierEdgeInternal","createSmoothStepEdge","SmoothStepEdgeComponent","pathOptions","borderRadius","offset","stepPosition","getSmoothStepPath","SmoothStepEdge","SmoothStepEdgeInternal","createStepEdge","StepEdgeComponent","StepEdge","StepEdgeInternal","createStraightEdge","StraightEdgeComponent","getStraightPath","StraightEdge","StraightEdgeInternal","createBezierEdge","BezierEdgeComponent","curvature","getBezierPath","BezierEdge","builtinEdgeTypes","BezierEdgeInternal","straight","step","smoothstep","simplebezier","nullPosition","shiftX","shift","shiftY","EdgeUpdaterClassName","EdgeAnchor","centerX","centerY","radius","onMouseOut","EdgeUpdateAnchors","isReconnectable","reconnectRadius","onReconnect","onReconnectStart","onReconnectEnd","setReconnecting","setUpdateHover","oppositeHandle","edgeUpdaterType","_event","evt","handleEdgeUpdater","targetHandle","onReconnectSourceMouseDown","sourceHandle","onReconnectTargetMouseDown","onReconnectMouseEnter","onReconnectMouseOut","EdgeWrapper","edgesFocusable","edgesReconnectable","edgeTypes","elevateEdgesOnSelect","zIndexMode","edgeType","EdgeComponent","error011","reconnectable","edgeRef","updateHover","reconnecting","defaultZIndex","getEdgePosition","edgePosition","getElevatedEdgeZIndex","elevateOnSelect","zIndex_0","getMarkerId","markerStartUrl","markerEndUrl","addSelectedEdges","onEdgeClick","onEdgeDoubleClick","onEdgeContextMenu","onEdgeMouseEnter","onEdgeMouseMove","onEdgeMouseLeave","unselectNodesAndEdges_0","addSelectedEdges_0","animated","inactive","updating","EdgeWrapper_default","EdgeRendererComponent","defaultMarkerColor","_temp8","s_6","s_5","s_4","EdgeRenderer","toTransformString","Viewport","viewportRef","initialTransform","prevTransform","applyTransform","useOnInitHandler","onInit","rfInstance","setTimeout","useViewportSync","syncViewport","ConnectionLineWrapper","component","getConnectionStatus","ConnectionLine","CustomComponent","ConnectionLineType","Bezier","fromNode","fromPosition","to","toNode","pointer","pathParams","SimpleBezier","Step","SmoothStep","emptyTypes","useNodeOrEdgeTypesWarning","nodeOrEdgeTypes","typesRef","usedKeys","error002","useStylesLoadedWarning","checked","pane","querySelector","getComputedStyle","error013","GraphViewComponent","connectionLineType","connectionLineStyle","connectionLineComponent","connectionLineContainerStyle","GraphView","getHandleKey","sameHandle","PubSub","nodeListeners","edgeListeners","handleListeners","unsubscribes","unsubscribe","publishNodes","notify","subscribeToEdges","publishEdges","publishConnectionClickStart","notifyAll","publishConnection","previous","notifyHandles","listeners","idListeners","listener","devWarn","getInitialState","parentLookup","storeEdges","storeNodes","storeNodeOrigin","storeNodeExtent","updateConnectionLookup","nodesInitialized","adoptUserNodes","elevateNodesOnSelect","autoPanOnNodeDrag","debug","defaultAriaLabelConfig","onEdgesChangeMiddlewareMap","onNodeDragStart","onNodeDrag","onNodeDragStop","onSelectionDragStart","onSelectionDrag","onSelectionDragStop","initialConnection","createStore","initialState","createZustandStore","rawConnection","deriveConnection","setRawConnection","previousConnection","nextConnection","latestFitViewId","resolveFitView","fitViewId","ended","fitViewport","resolve","hasSelectedNodes","updatedNodes","checkEquality","nextNodesSelectionActive","updatedEdges","updatedInternals","updateNodeInternalsSystem","nodeDragItems","parentExpandChildren","dragItem","expandParent","change","max","updatedFrom","getHandlePosition","rect","parentExpandChanges","handleExpandParent","console","log","applyTo","selectionChange","changedEdges","nodesToUnselect","edgesToUnselect","setScaleExtent","nextNodeExtent","delta","panBySystem","nextZoom","duration","ease","interpolate","ReactFlowProvider","initialNodes","initialEdges","initialMinZoom","initialMaxZoom","initialFitViewOptions","Wrapper","isWrapped","wrapperStyle","ReactFlow","attributionPosition","forceColorMode","onScroll","t32","t33","t34","isMacOs","initViewport","t35","scrollTo","behavior","wrapperOnScroll","t36","t37","t38","t39","t40","t41","t42","t43","t44","ReactFlow_default","EdgeLabelRenderer","edgeLabelRenderer","createPortal","ViewportPortal","viewPortalDiv","useUpdateNodeInternals","updateIds","updateId","triggerFitView","useViewport","useNodesState","nds","useEdgesState","eds","useOnViewportChange","onStart","onChange","onEnd","useOnSelectionChange","nextOnSelectionChangeHandlers","nextHandlers","includeHiddenNodes","useNodesInitialized","initialized","error014","\"error014\"","useNodeConnections","onDisconnect","currentNodeId","prevConnections","getConnectionLookupKey","areConnectionMapsEqual","_connections","handleConnectionChange","useNodesData","isSingleId","shallowNodeData","experimental_useOnNodesChangeMiddleware","symbol","experimental_useOnEdgesChangeMiddleware","LinePattern","dimensions","lineWidth","variant","DotPattern","BackgroundVariant","Lines","Dots","Cross","defaultSize","\"dots\"","\"lines\"","\"cross\"","BackgroundComponent","gap","bgColor","patternClassName","patternId","patternSize","isDots","isCross","gapXY","scaledGap","scaledSize","offsetXY","patternDimensions","scaledOffset","_patternId","Background","PlusIcon","MinusIcon","FitViewIcon","LockIcon","UnlockIcon","ControlButton","ControlsComponent","showZoom","showFitView","showInteractive","onZoomIn","onZoomOut","onFitView","onInteractiveChange","orientation","isInteractive","minZoomReached","maxZoomReached","onZoomInHandler","onZoomOutHandler","onFitViewHandler","onToggleInteractivity","orientationClass","Controls","MiniMapNodeComponent","strokeColor","shapeRendering","background","backgroundColor","MiniMapNode","selectorNodeIds","getAttrFunction","func","Function","MiniMapNodes","nodeStrokeColor","nodeColor","nodeClassName","nodeBorderRadius","nodeStrokeWidth","nodeComponent","nodeColorFunc","nodeStrokeColorFunc","nodeClassNameFunc","chrome","NodeComponentWrapper","NodeComponentWrapperInner","MiniMapNodes_default","filterHidden","viewportSelector","viewBB","hasVisibleNode","boundingRect","getBoundsOfRects","flowWidth","flowHeight","rectEqual","MiniMapComponent","maskColor","maskStrokeColor","maskStrokeWidth","pannable","zoomable","inversePan","zoomStep","offsetScale","svg","elementWidth","defaultWidth","elementHeight","defaultHeight","scaledWidth","scaledHeight","viewScale","viewWidth","viewHeight","labelledBy","minimapInstance","viewScaleRef","currentPanZoom","XYMinimap","getViewScale","onSvgClick","onSvgNodeClick","nodeClickHandler","_ariaLabel","MiniMap","defaultPositions","ResizeControlVariant","Line","ResizeControl","minWidth","minHeight","maxWidth","maxHeight","keepAspectRatio","resizeDirection","autoScale","shouldResize","onResizeStart","onResize","onResizeEnd","Number","MAX_VALUE","contextNodeId","resizeControlRef","isHandleControl","scale","resizer","controlPosition","XYResizer","paneDomNode","childChanges","origin","child","positionChange","dimensionChange","resizing","setAttributes","childChange","_positionChange","width_0","height_0","_dimensionChange","boundaries","colorProperty","positionClassNames","NodeResizeControl","NodeResizer","isVisible","handleClassName","handleStyle","lineClassName","lineStyle","XY_RESIZER_LINE_POSITIONS","XY_RESIZER_HANDLE_POSITIONS","position_0","NodeToolbarPortal","wrapperRef","storeSelector","NodeToolbar","align","selectedNodesCount","getNodeToolbarTransform","trim","acc","EdgeToolbar","EdgeToolbarInner","alignX","alignY","getEdgeToolbarTransform","transformOrigin","cy","r","Tag","cx","getHandle","getPointerPosition"],"mappings":"yDAAA,EAAAA,2UAAA,EAAA,CAAA,IAAA,CAAA,iBAAA,IAAA,EAAA,cAAA,IAAA,EAAA,OAAA,IAAA,EAAA,iBAAA,IAAA,EAAA,EAAA,IAAA,EAAA,2BAAA,IAAA,EAAA,sBAAA,IAAA,EAAA,iBAAA,IAAA,CAAA,mBAAA,6BAAA,GAAA,OAAA,GAAA,8BAAA,GAOA,IAAA,QAAuB,MAAA,EAAA,CAAA,CAAA,kFAEjB,QAAC,CAAA,CAAQ,WAAA,CAAW,gBAAA,CAAc,CAAI,EACtC,EAAA,AAEJ,OAAA,EAAM,EAAA,UAFF,YAAA,yCAEE,EAAN,EAEM,EAAA,kDAAA,CAIF,EAAS,OAAO,GAAA,CAAI,2BAA2B,EAIxC,EAE4B,EAF5B,UAEX,CAAuC,MAAvC,AAAO,EAFI,KAEJA,EAAM,EAAA,EAA0B,gBAA1B,EAAN,KAAA,EAAAA,GAA0B,EAEvB,EAAA,kBAAA,CAAmB,CAAA,CACzB,SAAW,AAAFC,CAAE,EAAc,AACvB,OAAa,EAAA,OAAA,CAAwB,KACnC,CADyC,GACnC,EAAI,AAAI,MAAM,GACpB,CADwB,GACxB,IAAS,EAAK,EAAG,EAAK,EAAM,IAC1B,CADgC,AAChC,CAAE,EAAE,CAAI,EAMV,OADA,CAAA,CAAE,EAAM,EAAI,EAAJ,AACD,CACT,EAAG,CAAC,CAAC,CACP,EAEA,EAAqE,CAAC,EAC5E,CACE,cACA,cACA,aACA,YACA,sBACA,qBACA,kBACA,UACA,aACA,SACA,WACA,gBACA,mBACA,gBACA,mBACA,uBACA,QACA,2BACA,iBACA,kBACA,kBACF,CAAE,OAAA,CAAQ,IACR,CAAA,CAAoB,EAAI,CADR,AACY,CAAJ,IACtB,CADgC,KAC1B,AAAI,MACR,CAAA,o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,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176]}
|