moi-computer 0.13.1-next.3 → 0.13.1-next.5
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/README.md +1 -1
- package/bin/moi.mjs +10 -6
- package/dist/{chunk-a865c7x4.js → chunk-0xy5nenk.js} +1 -1
- package/dist/chunk-4arsawe0.js +2 -0
- package/dist/chunk-5eb7n6xw.js +1 -0
- package/dist/chunk-6aq60rm2.js +5 -0
- package/dist/chunk-9ffaaaw3.css +1 -0
- package/dist/{chunk-xj1pjhng.js → chunk-9vy2z8hd.js} +1 -1
- package/dist/{chunk-r95acex1.js → chunk-cb2a4cjk.js} +78 -78
- package/dist/{chunk-f44cs6mw.js → chunk-ghyzbqgb.js} +2 -2
- package/dist/chunk-j3djs7ta.js +72 -0
- package/dist/chunk-v0w55vnq.js +2 -0
- package/dist/chunk-yff16m73.js +1 -0
- package/dist/dot-2bdkpg3k.png +0 -0
- package/dist/duet-3ab8xyzd.png +0 -0
- package/dist/grok-bot-yv07qj9f.png +0 -0
- package/dist/index.html +1 -1
- package/dist/instinct-ypmq6t0w.png +0 -0
- package/dist/muse-qr7zwsvf.png +0 -0
- package/package.json +39 -40
- package/runtime/applets/chunk-bzxakh65.js +2 -0
- package/runtime/applets/chunk-qhjskz2m.js +2 -0
- package/runtime/applets/collab.js +1 -0
- package/runtime/applets/moi.js +1 -0
- package/runtime/applets/rpc.js +2 -0
- package/runtime/assets/shadcn.css +629 -0
- package/runtime/assets/tw-animate.css +1 -0
- package/runtime/build-worker-entry.js +2 -0
- package/runtime/chunk-30dzwptp.js +2 -0
- package/runtime/chunk-4wj1jzhr.js +3 -0
- package/runtime/chunk-67h4jd69.js +78 -0
- package/runtime/chunk-7c0zbz74.js +3 -0
- package/runtime/chunk-8jg7v8y7.js +3 -0
- package/runtime/chunk-9dr0dhxj.js +83 -0
- package/runtime/chunk-ewc55jga.js +32623 -0
- package/runtime/chunk-f56xzjzw.js +26 -0
- package/runtime/chunk-fdbkvdht.js +128 -0
- package/runtime/chunk-g9saang0.js +3 -0
- package/runtime/chunk-ggphq7nk.js +66 -0
- package/runtime/chunk-hrtaxw37.js +3 -0
- package/runtime/chunk-j0nd7kw0.js +52 -0
- package/runtime/chunk-k049dtaq.js +3 -0
- package/runtime/chunk-kjp60rqs.js +3 -0
- package/runtime/chunk-mjwz158z.js +2 -0
- package/runtime/chunk-pt32r350.js +2 -0
- package/runtime/chunk-q06m17nb.js +3 -0
- package/runtime/chunk-q2t18c1t.js +3 -0
- package/runtime/chunk-sdyqhxe1.js +10 -0
- package/runtime/chunk-w1fx9tsc.js +3 -0
- package/runtime/chunk-zm7k0v1c.js +3 -0
- package/runtime/chunk-zwvtkb81.js +139 -0
- package/runtime/cli.js +246 -0
- package/runtime/functions-worker.js +2 -0
- package/runtime/gateway-client.js +2 -0
- package/runtime/third-party-notices.txt +6830 -0
- package/runtime/worker.js +2 -0
- package/runtime/xdg-open +1267 -0
- package/bunfig.toml +0 -7
- package/client/AGENTS.md +0 -40
- package/client/api/app-config.ts +0 -58
- package/client/api/http.ts +0 -44
- package/client/api/query-client.ts +0 -5
- package/client/api/query-options.ts +0 -6
- package/client/api/workspace-keys.ts +0 -18
- package/client/app/app-provider.tsx +0 -45
- package/client/app/app-router.tsx +0 -60
- package/client/app/routes/home-route.tsx +0 -27
- package/client/app/routes/onboarding-route.tsx +0 -11
- package/client/app/routes/settings-route.tsx +0 -10
- package/client/app/routes/workspace-registration.tsx +0 -68
- package/client/app/routes/workspace-route.tsx +0 -110
- package/client/app/shell/sidebar-layout.tsx +0 -252
- package/client/assets/claude.svg +0 -3
- package/client/assets/favicon.png +0 -0
- package/client/assets/floppy-disk.webp +0 -0
- package/client/assets/hermes.png +0 -0
- package/client/assets/mcp/.gitkeep +0 -0
- package/client/assets/mcp/airtable.png +0 -0
- package/client/assets/mcp/apollo.png +0 -0
- package/client/assets/mcp/asana.png +0 -0
- package/client/assets/mcp/atlassian.png +0 -0
- package/client/assets/mcp/box.png +0 -0
- package/client/assets/mcp/chrome.svg +0 -33
- package/client/assets/mcp/clickup.png +0 -0
- package/client/assets/mcp/cloudflare.png +0 -0
- package/client/assets/mcp/context7.png +0 -0
- package/client/assets/mcp/datadog.png +0 -0
- package/client/assets/mcp/discord.png +0 -0
- package/client/assets/mcp/dropbox.png +0 -0
- package/client/assets/mcp/elevenlabs.png +0 -0
- package/client/assets/mcp/exa.png +0 -0
- package/client/assets/mcp/figma.png +0 -0
- package/client/assets/mcp/firecrawl.png +0 -0
- package/client/assets/mcp/github.png +0 -0
- package/client/assets/mcp/gitlab.png +0 -0
- package/client/assets/mcp/gmail.png +0 -0
- package/client/assets/mcp/googlecalendar.png +0 -0
- package/client/assets/mcp/googledrive.png +0 -0
- package/client/assets/mcp/grafana.png +0 -0
- package/client/assets/mcp/granola.png +0 -0
- package/client/assets/mcp/hubspot.png +0 -0
- package/client/assets/mcp/huggingface.png +0 -0
- package/client/assets/mcp/intercom.png +0 -0
- package/client/assets/mcp/linear.png +0 -0
- package/client/assets/mcp/monday.png +0 -0
- package/client/assets/mcp/mongodb.png +0 -0
- package/client/assets/mcp/neon.png +0 -0
- package/client/assets/mcp/notion.png +0 -0
- package/client/assets/mcp/paper.png +0 -0
- package/client/assets/mcp/paypal.png +0 -0
- package/client/assets/mcp/perplexity.png +0 -0
- package/client/assets/mcp/postgresql.png +0 -0
- package/client/assets/mcp/posthog.png +0 -0
- package/client/assets/mcp/puppeteer.png +0 -0
- package/client/assets/mcp/railway.png +0 -0
- package/client/assets/mcp/redis.png +0 -0
- package/client/assets/mcp/salesforce.png +0 -0
- package/client/assets/mcp/sentry.png +0 -0
- package/client/assets/mcp/shopify.png +0 -0
- package/client/assets/mcp/slack.png +0 -0
- package/client/assets/mcp/snowflake.png +0 -0
- package/client/assets/mcp/stripe.png +0 -0
- package/client/assets/mcp/supabase.png +0 -0
- package/client/assets/mcp/telegram.png +0 -0
- package/client/assets/mcp/twilio.png +0 -0
- package/client/assets/mcp/vercel.png +0 -0
- package/client/assets/mcp/zapier.png +0 -0
- package/client/assets/moi-logo.svg +0 -11
- package/client/assets/openai.svg +0 -1
- package/client/assets/openclaw.svg +0 -22
- package/client/assets.d.ts +0 -14
- package/client/components/shared/agent-blobatar.tsx +0 -93
- package/client/components/shared/bottom-panel.tsx +0 -65
- package/client/components/shared/composer.tsx +0 -125
- package/client/components/shared/led-logo.tsx +0 -181
- package/client/components/shared/panel-header.tsx +0 -16
- package/client/components/shared/reorderable-list.tsx +0 -204
- package/client/components/shared/screen-shell.tsx +0 -23
- package/client/components/shared/ultrafast-icon.tsx +0 -61
- package/client/components/shared/workspace-icon.tsx +0 -83
- package/client/components/ui/alert-dialog.tsx +0 -1
- package/client/components/ui/button.tsx +0 -1
- package/client/components/ui/checkbox.tsx +0 -1
- package/client/components/ui/collapsible.tsx +0 -1
- package/client/components/ui/dialog.tsx +0 -1
- package/client/components/ui/dropdown-menu.tsx +0 -1
- package/client/components/ui/hover-card.tsx +0 -1
- package/client/components/ui/inline-input.tsx +0 -84
- package/client/components/ui/input.tsx +0 -1
- package/client/components/ui/popover.tsx +0 -1
- package/client/components/ui/resizable.tsx +0 -1
- package/client/components/ui/skeleton.tsx +0 -1
- package/client/components/ui/slider.tsx +0 -1
- package/client/components/ui/spinner.tsx +0 -1
- package/client/components/ui/switch.tsx +0 -1
- package/client/components/ui/tabs.tsx +0 -1
- package/client/components/ui/textarea.tsx +0 -1
- package/client/components/ui/toast.tsx +0 -220
- package/client/components/ui/tooltip.tsx +0 -1
- package/client/dev/index.html +0 -43
- package/client/dev/index.ts +0 -15
- package/client/externalize-react.ts +0 -41
- package/client/features/account/account-menu.tsx +0 -96
- package/client/features/account/account-provider.tsx +0 -93
- package/client/features/account/account-test-utils.tsx +0 -310
- package/client/features/account/api.ts +0 -67
- package/client/features/account/profile-actions.ts +0 -29
- package/client/features/app-settings/api.ts +0 -33
- package/client/features/app-settings/avatar-upload.tsx +0 -62
- package/client/features/app-settings/general-settings.tsx +0 -39
- package/client/features/app-settings/profile-settings.tsx +0 -105
- package/client/features/app-settings/settings-page.tsx +0 -45
- package/client/features/app-settings/settings-section.tsx +0 -26
- package/client/features/applets/api.ts +0 -38
- package/client/features/applets/applet-cache.ts +0 -96
- package/client/features/applets/applet-container.tsx +0 -33
- package/client/features/applets/applet-log.ts +0 -81
- package/client/features/applets/applet-runtime.ts +0 -325
- package/client/features/applets/applet-styles.ts +0 -81
- package/client/features/applets/applet-thumbnail.ts +0 -294
- package/client/features/applets/use-applet.ts +0 -212
- package/client/features/applets/widget-error-boundary.tsx +0 -62
- package/client/features/applets/widget-shell.tsx +0 -56
- package/client/features/chat/applet-chat-intents.ts +0 -173
- package/client/features/chat/chat-panel.tsx +0 -326
- package/client/features/chat/chat-popup.tsx +0 -175
- package/client/features/chat/chat-send.ts +0 -259
- package/client/features/chat/chat-store.ts +0 -328
- package/client/features/chat/composer/attachments/attachment-chip.tsx +0 -99
- package/client/features/chat/composer/attachments/draft-attachments.ts +0 -185
- package/client/features/chat/composer/attachments/drawing-attachment-chip.tsx +0 -37
- package/client/features/chat/composer/attachments/file-attachment-chip.tsx +0 -22
- package/client/features/chat/composer/attachments/text-attachment-chip.tsx +0 -11
- package/client/features/chat/composer/attachments/types.ts +0 -25
- package/client/features/chat/composer/attachments/uploads.ts +0 -26
- package/client/features/chat/composer/banners/composer-banner.tsx +0 -16
- package/client/features/chat/composer/banners/error-banner.tsx +0 -36
- package/client/features/chat/composer/banners/skill-update-banner.tsx +0 -93
- package/client/features/chat/composer/chat-composer.tsx +0 -290
- package/client/features/chat/composer/model-order.ts +0 -110
- package/client/features/chat/composer/model-picker.tsx +0 -408
- package/client/features/chat/composer/use-workspace-composer-state.tsx +0 -69
- package/client/features/chat/composer/use-workspace-skill-updates.ts +0 -160
- package/client/features/chat/connection/chat-connection.ts +0 -107
- package/client/features/chat/connection/chat-frames.ts +0 -165
- package/client/features/chat/messages/chat-empty-state.tsx +0 -294
- package/client/features/chat/messages/chat-prompt-bubbles.tsx +0 -72
- package/client/features/chat/messages/fork-history.ts +0 -14
- package/client/features/chat/messages/group-turns.ts +0 -74
- package/client/features/chat/messages/interleave-notices.ts +0 -80
- package/client/features/chat/messages/markdown-content.tsx +0 -89
- package/client/features/chat/messages/preview-turn.ts +0 -37
- package/client/features/chat/messages/shimmer-text.tsx +0 -20
- package/client/features/chat/messages/tool-group/code-block.tsx +0 -41
- package/client/features/chat/messages/tool-group/collapse.tsx +0 -28
- package/client/features/chat/messages/tool-group/detect.ts +0 -93
- package/client/features/chat/messages/tool-group/fixtures.ts +0 -309
- package/client/features/chat/messages/tool-group/format/claude.ts +0 -49
- package/client/features/chat/messages/tool-group/format/codex.ts +0 -130
- package/client/features/chat/messages/tool-group/format/hermes.ts +0 -69
- package/client/features/chat/messages/tool-group/format/index.ts +0 -34
- package/client/features/chat/messages/tool-group/format/mcp.ts +0 -68
- package/client/features/chat/messages/tool-group/format/openclaw.ts +0 -120
- package/client/features/chat/messages/tool-group/format/shared.ts +0 -49
- package/client/features/chat/messages/tool-group/format/shell.ts +0 -162
- package/client/features/chat/messages/tool-group/index.ts +0 -9
- package/client/features/chat/messages/tool-group/read-image-preview.tsx +0 -46
- package/client/features/chat/messages/tool-group/subagent-card.tsx +0 -138
- package/client/features/chat/messages/tool-group/timeline-row.tsx +0 -159
- package/client/features/chat/messages/tool-group/tool-call-group.tsx +0 -279
- package/client/features/chat/messages/tool-group/tool-output.tsx +0 -125
- package/client/features/chat/messages/turn-view.tsx +0 -270
- package/client/features/chat/messages/use-stick-to-bottom.ts +0 -96
- package/client/features/chat/messages/user-message-bubble.tsx +0 -63
- package/client/features/chat/sessions/api.ts +0 -193
- package/client/features/chat/sessions/chat-selector.tsx +0 -399
- package/client/features/chat/sessions/session-view.ts +0 -53
- package/client/features/chat/sessions/use-selected-session.ts +0 -171
- package/client/features/chat/use-chat.ts +0 -229
- package/client/features/collab/applet-api.ts +0 -35
- package/client/features/collab/components/cursors.tsx +0 -241
- package/client/features/collab/components/presence-avatars.tsx +0 -74
- package/client/features/collab/components/presence-frame.tsx +0 -122
- package/client/features/collab/components/presence-group.tsx +0 -31
- package/client/features/collab/components/presence-helpers.ts +0 -50
- package/client/features/collab/components/user-avatar-group.tsx +0 -35
- package/client/features/collab/components/user-avatar.tsx +0 -65
- package/client/features/collab/components/user.tsx +0 -69
- package/client/features/collab/host-state.ts +0 -160
- package/client/features/collab/index.ts +0 -5
- package/client/features/collab/local-user.ts +0 -46
- package/client/features/collab/members/api.ts +0 -17
- package/client/features/collab/members/hooks.ts +0 -97
- package/client/features/collab/members/store.ts +0 -148
- package/client/features/collab/members/types.ts +0 -55
- package/client/features/collab/presence/client.ts +0 -262
- package/client/features/collab/presence/hooks.tsx +0 -160
- package/client/features/collab/presence/presence-publisher.ts +0 -30
- package/client/features/collab/presence/presence-target.ts +0 -8
- package/client/features/collab/presence/provider.tsx +0 -68
- package/client/features/collab/presence/store.ts +0 -156
- package/client/features/collab/presence/users.ts +0 -87
- package/client/features/collab/proxy-user.ts +0 -28
- package/client/features/collab/sharing/agent-invite.tsx +0 -30
- package/client/features/collab/sharing/workspace-members.tsx +0 -269
- package/client/features/collab/sharing/workspace-sharing-menu.tsx +0 -179
- package/client/features/collab/testing/component-fixtures.tsx +0 -54
- package/client/features/collab/testing/fake-engine.ts +0 -120
- package/client/features/connectors/api.ts +0 -25
- package/client/features/connectors/icon-mcp.tsx +0 -21
- package/client/features/connectors/mcp-icons.ts +0 -183
- package/client/features/connectors/mcp-server-cards.tsx +0 -105
- package/client/features/connectors/read-connectors.ts +0 -35
- package/client/features/demo/demo-dialog.tsx +0 -194
- package/client/features/dev/blobatar-shapes-page.tsx +0 -344
- package/client/features/dev/chat-states-fixtures.ts +0 -755
- package/client/features/dev/chat-states-page.tsx +0 -476
- package/client/features/dev/collab/collab-page.tsx +0 -24
- package/client/features/dev/collab/collab-playground.tsx +0 -614
- package/client/features/dev/collab/local-user-settings.tsx +0 -120
- package/client/features/dev/collab/playground-room.ts +0 -33
- package/client/features/dev/dev-index-page.tsx +0 -83
- package/client/features/dev/dev-routes.tsx +0 -43
- package/client/features/dev/harness-debug-page.tsx +0 -607
- package/client/features/dev/onboarding-preview-page.tsx +0 -76
- package/client/features/dev/texture-lab-page.tsx +0 -149
- package/client/features/dev/tool-calls-page.tsx +0 -79
- package/client/features/dev/ui-components/ui-component-previews.tsx +0 -855
- package/client/features/dev/ui-components/ui-components-page.tsx +0 -60
- package/client/features/dev/workspace-setup-mocks.ts +0 -103
- package/client/features/dev/workspace-setup-page.tsx +0 -11
- package/client/features/dev/workspace-setup-preview.tsx +0 -249
- package/client/features/drawings/capture-element.ts +0 -57
- package/client/features/drawings/drawing-layer.tsx +0 -49
- package/client/features/drawings/drawing-toolbar.tsx +0 -95
- package/client/features/drawings/use-chat-annotation.ts +0 -228
- package/client/features/drawings/use-drawing-layer.ts +0 -756
- package/client/features/drawings/use-view-sketch.ts +0 -154
- package/client/features/harness/api.ts +0 -69
- package/client/features/harness/device-login-steps.tsx +0 -103
- package/client/features/harness/harness-login-panel.tsx +0 -232
- package/client/features/harness/harness-presentation.ts +0 -15
- package/client/features/harness/harness-selector.tsx +0 -119
- package/client/features/harness/use-harness-login.ts +0 -77
- package/client/features/home/api.ts +0 -135
- package/client/features/home/home-logo.tsx +0 -344
- package/client/features/home/home-page.tsx +0 -305
- package/client/features/home/shared-workspaces.tsx +0 -70
- package/client/features/home/workspace-invitations.tsx +0 -101
- package/client/features/home/workspace-preview.tsx +0 -213
- package/client/features/identity/host-api.ts +0 -35
- package/client/features/identity/store.ts +0 -26
- package/client/features/identity/types.ts +0 -41
- package/client/features/identity/use-identity.ts +0 -6
- package/client/features/onboarding/agent-setup-step.tsx +0 -57
- package/client/features/onboarding/api.ts +0 -42
- package/client/features/onboarding/onboarding-idea-disk.tsx +0 -129
- package/client/features/onboarding/onboarding-page.tsx +0 -33
- package/client/features/onboarding/onboarding-screen.tsx +0 -20
- package/client/features/onboarding/onboarding-status.tsx +0 -24
- package/client/features/onboarding/workspace-setup-step.tsx +0 -239
- package/client/features/overview/api.ts +0 -28
- package/client/features/overview/default/registry.tsx +0 -34
- package/client/features/overview/default/views-widget.tsx +0 -246
- package/client/features/overview/grid.ts +0 -77
- package/client/features/overview/hidden-panel.tsx +0 -111
- package/client/features/overview/overview.tsx +0 -299
- package/client/features/overview/use-grid-reconcile.ts +0 -94
- package/client/features/overview/widget-canvas.tsx +0 -166
- package/client/features/overview/widget-frame.tsx +0 -77
- package/client/features/overview/workspace-name.tsx +0 -55
- package/client/features/scratchpad/scratch-executor.ts +0 -20
- package/client/features/scratchpad/scratch-session.ts +0 -71
- package/client/features/scratchpad/scratchpad-controls.tsx +0 -516
- package/client/features/scratchpad/scratchpad.tsx +0 -351
- package/client/features/scratchpad/use-scratchpad-snapshot.tsx +0 -133
- package/client/features/update/api.ts +0 -35
- package/client/features/update/update-control.tsx +0 -102
- package/client/features/views/api.ts +0 -189
- package/client/features/views/pending-view-screen.tsx +0 -303
- package/client/features/views/use-view-actions.ts +0 -119
- package/client/features/views/use-view-drafts.ts +0 -88
- package/client/features/views/view-manager.tsx +0 -293
- package/client/features/views/view-presentation.ts +0 -12
- package/client/features/views/view-residency.ts +0 -77
- package/client/features/views/view-submission.ts +0 -56
- package/client/features/workspace/add/api.ts +0 -61
- package/client/features/workspace/add/create-workspace-dialog.tsx +0 -230
- package/client/features/workspace/add/import-workspace-dialog.tsx +0 -81
- package/client/features/workspace/add/use-workspace-import.ts +0 -61
- package/client/features/workspace/add/workspace-agent-options.ts +0 -53
- package/client/features/workspace/add/workspace-agent-selector.tsx +0 -96
- package/client/features/workspace/add/workspace-dialog-content.tsx +0 -22
- package/client/features/workspace/api.ts +0 -185
- package/client/features/workspace/harness-transition.ts +0 -83
- package/client/features/workspace/moi-context.ts +0 -129
- package/client/features/workspace/remote.ts +0 -25
- package/client/features/workspace/settings/api.ts +0 -112
- package/client/features/workspace/settings/connectors-settings.tsx +0 -110
- package/client/features/workspace/settings/environment-settings.tsx +0 -149
- package/client/features/workspace/settings/general-settings.tsx +0 -180
- package/client/features/workspace/settings/icon-picker-options.ts +0 -30
- package/client/features/workspace/settings/settings-layout.tsx +0 -53
- package/client/features/workspace/settings/use-env-vars.ts +0 -20
- package/client/features/workspace/settings/workspace-icon-picker.tsx +0 -318
- package/client/features/workspace/settings/workspace-settings-dialog.tsx +0 -65
- package/client/features/workspace/setup/workspace-login-state.tsx +0 -56
- package/client/features/workspace/setup/workspace-recovery-states.tsx +0 -142
- package/client/features/workspace/setup/workspace-setup.tsx +0 -98
- package/client/features/workspace/setup/workspace-welcome-state.tsx +0 -81
- package/client/features/workspace/tab-resolution.ts +0 -32
- package/client/features/workspace/theme-panel.tsx +0 -191
- package/client/features/workspace/unavailable-page.tsx +0 -21
- package/client/features/workspace/use-fits-split-layout.ts +0 -69
- package/client/features/workspace/use-workspace-navigation.ts +0 -265
- package/client/features/workspace/workspace-content.tsx +0 -601
- package/client/features/workspace/workspace-context.tsx +0 -21
- package/client/features/workspace/workspace-frame.tsx +0 -64
- package/client/features/workspace/workspace-identity.tsx +0 -40
- package/client/features/workspace/workspace-layout-context.tsx +0 -163
- package/client/features/workspace/workspace-menu.tsx +0 -67
- package/client/features/workspace/workspace-pane.tsx +0 -22
- package/client/features/workspace/workspace-pending-screen.tsx +0 -26
- package/client/features/workspace/workspace-preferences.ts +0 -91
- package/client/features/workspace/workspace-presentation.tsx +0 -35
- package/client/features/workspace/workspace-screen.tsx +0 -28
- package/client/features/workspace/workspace-split-layout.tsx +0 -116
- package/client/features/workspace/workspace-state.ts +0 -195
- package/client/features/workspace/workspace-tabs.tsx +0 -233
- package/client/features/workspace/workspace-test-utils.ts +0 -23
- package/client/global.d.ts +0 -5
- package/client/index.css +0 -247
- package/client/index.html +0 -81
- package/client/index.tsx +0 -45
- package/client/lib/agent-availability.ts +0 -14
- package/client/lib/browser-tab-id.ts +0 -4
- package/client/lib/cn.ts +0 -6
- package/client/lib/flags.ts +0 -11
- package/client/lib/identity-icon-registry.ts +0 -150
- package/client/lib/rate-limit.ts +0 -77
- package/client/lib/use-latest-ref.ts +0 -11
- package/client/lib/user-display-name.ts +0 -6
- package/client/lib/ws-url.ts +0 -10
- package/client/main.tsx +0 -43
- package/client/runtime/app-context.ts +0 -20
- package/client/runtime/hmr-watchdog.ts +0 -39
- package/client/runtime/use-workspace-events.ts +0 -70
- package/client/runtime/workspace-events.ts +0 -168
- package/client/runtime/workspace-theme.ts +0 -175
- package/client/store/ui.ts +0 -94
- package/client/store/workspace-session.ts +0 -30
- package/client/structured-clone-shim.ts +0 -14
- package/client/tailwind-config.ts +0 -43
- package/dist/chunk-0h4zypgf.js +0 -1
- package/dist/chunk-1tksq43z.js +0 -72
- package/dist/chunk-6gxf0xr8.js +0 -5
- package/dist/chunk-h3qag4a6.js +0 -2
- package/dist/chunk-kffcah9w.css +0 -1
- package/dist/chunk-q2tpy0h7.js +0 -2
- package/dist/chunk-w5h9grdr.js +0 -1
- package/lib/applet-selector.ts +0 -24
- package/lib/attachment-note.ts +0 -66
- package/lib/chat-title.ts +0 -11
- package/lib/collab/colors.ts +0 -30
- package/lib/collab/protocol.ts +0 -84
- package/lib/collab/types.ts +0 -52
- package/lib/default-widgets.ts +0 -32
- package/lib/format.ts +0 -348
- package/lib/harness-instructions.ts +0 -30
- package/lib/harness-types.ts +0 -13
- package/lib/identity-icons.ts +0 -73
- package/lib/ids.ts +0 -39
- package/lib/message-attachments.ts +0 -40
- package/lib/moi-attachments.ts +0 -204
- package/lib/moi-context.ts +0 -305
- package/lib/navigation.ts +0 -65
- package/lib/onboarding.ts +0 -41
- package/lib/scratchpad-skew.ts +0 -64
- package/lib/session-drafts.ts +0 -10
- package/lib/speed-mode.ts +0 -5
- package/lib/system-messages.ts +0 -241
- package/lib/themes.ts +0 -241
- package/lib/types.ts +0 -779
- package/lib/update.ts +0 -2
- package/lib/view-build-directives.ts +0 -11
- package/lib/workspace-config.ts +0 -48
- package/lib/workspace-icon.ts +0 -20
- package/lib/workspace-layout.ts +0 -15
- package/lib/workspace-name.ts +0 -17
- package/lib/workspace-tabs.ts +0 -29
- package/server/AGENTS.md +0 -17
- package/server/README.md +0 -109
- package/server/agent-caller.ts +0 -16
- package/server/agent-launcher.ts +0 -27
- package/server/api/harnesses.ts +0 -79
- package/server/api/index.ts +0 -1332
- package/server/api/onboarding.ts +0 -46
- package/server/app-config.ts +0 -264
- package/server/app-settings.ts +0 -69
- package/server/applets/api-base.ts +0 -4
- package/server/applets/applet-css.ts +0 -55
- package/server/applets/build-applet.ts +0 -475
- package/server/applets/build-worker.ts +0 -179
- package/server/applets/bundle-queue.ts +0 -19
- package/server/applets/config.ts +0 -226
- package/server/applets/declarations.ts +0 -45
- package/server/applets/dependencies.ts +0 -206
- package/server/applets/functions-worker.ts +0 -121
- package/server/applets/functions.ts +0 -392
- package/server/applets/index.ts +0 -504
- package/server/applets/log.ts +0 -149
- package/server/applets/runtime/collab.ts +0 -94
- package/server/applets/runtime/moi.ts +0 -35
- package/server/applets/runtime/rpc.ts +0 -15
- package/server/applets/thumbnails.ts +0 -200
- package/server/applets/typecheck.ts +0 -100
- package/server/applets/ui-components.ts +0 -241
- package/server/applets/view-source.ts +0 -73
- package/server/applets/views.ts +0 -322
- package/server/applets/widgets.ts +0 -180
- package/server/cli/applet-selector.ts +0 -19
- package/server/cli/args.ts +0 -5
- package/server/cli/colors.ts +0 -20
- package/server/cli/commands/bundle.ts +0 -119
- package/server/cli/commands/call-server-fn.ts +0 -42
- package/server/cli/commands/check.ts +0 -53
- package/server/cli/commands/config.ts +0 -120
- package/server/cli/commands/debug.ts +0 -119
- package/server/cli/commands/env.ts +0 -162
- package/server/cli/commands/hermes.ts +0 -149
- package/server/cli/commands/init.ts +0 -323
- package/server/cli/commands/navigate.ts +0 -35
- package/server/cli/commands/openclaw.ts +0 -168
- package/server/cli/commands/refresh.ts +0 -48
- package/server/cli/commands/remote.ts +0 -330
- package/server/cli/commands/scratch.ts +0 -496
- package/server/cli/commands/service.ts +0 -298
- package/server/cli/commands/skill.ts +0 -121
- package/server/cli/commands/start.ts +0 -112
- package/server/cli/commands/status.ts +0 -80
- package/server/cli/commands/tabs.ts +0 -36
- package/server/cli/commands/theme.ts +0 -192
- package/server/cli/commands/ui-components.ts +0 -15
- package/server/cli/commands/update.ts +0 -192
- package/server/cli/commands/version.ts +0 -9
- package/server/cli/commands/views.ts +0 -87
- package/server/cli/control.ts +0 -120
- package/server/cli/env.ts +0 -259
- package/server/cli/index.ts +0 -175
- package/server/cli/pc.ts +0 -20
- package/server/cli/provider.ts +0 -25
- package/server/cli/remote-command.ts +0 -77
- package/server/cli/remote-control.ts +0 -73
- package/server/cli/remote-operations.ts +0 -247
- package/server/cli/server-version.ts +0 -16
- package/server/cli/server.ts +0 -93
- package/server/cli/ui-components.ts +0 -294
- package/server/cli/ui.ts +0 -52
- package/server/cli.ts +0 -3
- package/server/collab/cloudflare-access.ts +0 -78
- package/server/collab/config.ts +0 -13
- package/server/collab/manager.ts +0 -413
- package/server/collab/service.ts +0 -136
- package/server/collab/skill/index.ts +0 -7
- package/server/collab/worker-messages.ts +0 -10
- package/server/collab/worker.ts +0 -52
- package/server/constants.ts +0 -13
- package/server/control-client.ts +0 -124
- package/server/control.ts +0 -581
- package/server/data-dir.ts +0 -22
- package/server/debug.ts +0 -10
- package/server/events.ts +0 -24
- package/server/harness/README.md +0 -381
- package/server/harness/acp/NOTES.md +0 -426
- package/server/harness/acp/adapter.ts +0 -206
- package/server/harness/acp/archived.ts +0 -88
- package/server/harness/acp/client.ts +0 -329
- package/server/harness/acp/discovery.ts +0 -127
- package/server/harness/acp/model-state.ts +0 -57
- package/server/harness/acp/run-durations.ts +0 -68
- package/server/harness/acp/session.ts +0 -782
- package/server/harness/acp/wire.ts +0 -132
- package/server/harness/auth.ts +0 -295
- package/server/harness/claude-code/NOTES.md +0 -651
- package/server/harness/claude-code/adapter.ts +0 -876
- package/server/harness/claude-code/auth.ts +0 -178
- package/server/harness/claude-code/cli.ts +0 -42
- package/server/harness/claude-code/git-worktree.ts +0 -35
- package/server/harness/claude-code/index.ts +0 -171
- package/server/harness/claude-code/mcp.ts +0 -152
- package/server/harness/claude-code/models.ts +0 -102
- package/server/harness/claude-code/permissions.ts +0 -34
- package/server/harness/claude-code/run-action.ts +0 -123
- package/server/harness/claude-code/session-title.ts +0 -104
- package/server/harness/claude-code/session.ts +0 -965
- package/server/harness/claude-code/sessions.ts +0 -153
- package/server/harness/codex/NOTES.md +0 -259
- package/server/harness/codex/adapter.ts +0 -633
- package/server/harness/codex/auth.ts +0 -140
- package/server/harness/codex/client.ts +0 -439
- package/server/harness/codex/connectors.ts +0 -92
- package/server/harness/codex/discovery.ts +0 -106
- package/server/harness/codex/index.ts +0 -107
- package/server/harness/codex/pagination.ts +0 -27
- package/server/harness/codex/permissions.ts +0 -80
- package/server/harness/codex/probe.ts +0 -183
- package/server/harness/codex/run-action.ts +0 -93
- package/server/harness/codex/session-title.ts +0 -147
- package/server/harness/codex/session.ts +0 -1188
- package/server/harness/codex/status.ts +0 -31
- package/server/harness/codex/thread-list.ts +0 -78
- package/server/harness/codex/transport.ts +0 -191
- package/server/harness/command.ts +0 -45
- package/server/harness/debug.ts +0 -57
- package/server/harness/detect.ts +0 -164
- package/server/harness/executable.ts +0 -125
- package/server/harness/fork.ts +0 -14
- package/server/harness/hermes/NOTES.md +0 -833
- package/server/harness/hermes/discovery.ts +0 -175
- package/server/harness/hermes/index.ts +0 -167
- package/server/harness/hermes/models.ts +0 -99
- package/server/harness/install.ts +0 -49
- package/server/harness/openclaw/NOTES.md +0 -749
- package/server/harness/openclaw/adapter.ts +0 -336
- package/server/harness/openclaw/compat.ts +0 -95
- package/server/harness/openclaw/cron-view.ts +0 -78
- package/server/harness/openclaw/discovery.ts +0 -456
- package/server/harness/openclaw/gateway.ts +0 -467
- package/server/harness/openclaw/index.ts +0 -125
- package/server/harness/openclaw/session.ts +0 -1508
- package/server/harness/openclaw/strip.ts +0 -184
- package/server/harness/openclaw/thinking.ts +0 -150
- package/server/harness/registry.ts +0 -39
- package/server/harness/run-action.ts +0 -85
- package/server/harness/session-title.ts +0 -59
- package/server/harness/shell-path.ts +0 -89
- package/server/harness/types.ts +0 -170
- package/server/navigation-relay.ts +0 -110
- package/server/onboarding/brief.ts +0 -29
- package/server/onboarding/ideas.ts +0 -48
- package/server/onboarding/jobs.ts +0 -291
- package/server/open-browser.ts +0 -7
- package/server/operations/commands.ts +0 -46
- package/server/operations/files.ts +0 -148
- package/server/operations/server.ts +0 -206
- package/server/remote/agent.ts +0 -103
- package/server/remote/broker-client.ts +0 -76
- package/server/remote/broker.ts +0 -81
- package/server/remote/client.ts +0 -725
- package/server/remote/errors.ts +0 -2
- package/server/remote/routes.ts +0 -121
- package/server/remote/workspace.ts +0 -34
- package/server/scratchpad/assets.ts +0 -258
- package/server/scratchpad/document.ts +0 -312
- package/server/scratchpad/executor.ts +0 -499
- package/server/scratchpad/relay.ts +0 -44
- package/server/scratchpad/shape-defaults.ts +0 -82
- package/server/server-cwd.ts +0 -23
- package/server/service.ts +0 -800
- package/server/sessions/archive.ts +0 -23
- package/server/sessions/attachment-message.ts +0 -95
- package/server/sessions/config.ts +0 -45
- package/server/sessions/lifecycle.ts +0 -19
- package/server/sessions/pending-views.ts +0 -152
- package/server/sessions/selected.ts +0 -113
- package/server/sessions/send-message.ts +0 -102
- package/server/sessions/store.ts +0 -54
- package/server/sessions/view-sessions.ts +0 -192
- package/server/skills/locations.ts +0 -82
- package/server/skills/lock.ts +0 -29
- package/server/skills/template.ts +0 -94
- package/server/skills/update.ts +0 -94
- package/server/skills/version.ts +0 -129
- package/server/skills/workspace.ts +0 -121
- package/server/state.ts +0 -40
- package/server/static.ts +0 -25
- package/server/status.ts +0 -110
- package/server/tldraw-package.d.ts +0 -4
- package/server/update.ts +0 -429
- package/server/uploads.ts +0 -290
- package/server/vendor.ts +0 -63
- package/server/version.ts +0 -41
- package/server/web.ts +0 -340
- package/server/workspace-state/file.ts +0 -181
- package/server/workspace-state/index.ts +0 -158
- package/server/workspace-state/lock.ts +0 -42
- package/server/workspace-state/types.ts +0 -16
- package/server/workspaces/api.ts +0 -24
- package/server/workspaces/change-harness.ts +0 -77
- package/server/workspaces/config.ts +0 -41
- package/server/workspaces/env-apply.ts +0 -20
- package/server/workspaces/env.ts +0 -424
- package/server/workspaces/harness-transition.ts +0 -29
- package/server/workspaces/icon.ts +0 -13
- package/server/workspaces/import.ts +0 -74
- package/server/workspaces/init.ts +0 -74
- package/server/workspaces/layout.ts +0 -157
- package/server/workspaces/preview.ts +0 -72
- package/server/workspaces/registry.ts +0 -330
- package/server/workspaces/required-env.ts +0 -19
- package/server/workspaces/scaffold.ts +0 -189
- package/server/workspaces/shared.ts +0 -74
- package/server/workspaces/tabs.ts +0 -35
- package/server/workspaces/theme.ts +0 -58
- package/tsconfig.json +0 -20
package/dist/chunk-6gxf0xr8.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{e,C,Bt,tn,ze,H,to,ro,U,er,He,Ue,It,Sr,tr,rr,ye,or,M,_o,Mo,l,zt,ie}from"/chunk-h3qag4a6.js";import{r,ne}from"/chunk-q2tpy0h7.js";import{Ao,h,he,S}from"/chunk-f44cs6mw.js";var t=C(function(M5,Ph){Ph.exports=globalThis.__esm["react/jsx-runtime"]});var oo=C(function(sL,Hh){Hh.exports=globalThis.__esm["react-dom/client"]});var nr=C(function(CC){var Ps=e(r());function mC(B,ce){return B===ce&&(B!==0||1/B===1/ce)||B!==B&&ce!==ce}var xC=typeof Object.is==="function"?Object.is:mC,IC=Ps.useState,hC=Ps.useEffect,gC=Ps.useLayoutEffect,yC=Ps.useDebugValue;function bC(B,ce){var pe=ce(),we=IC({inst:{value:pe,getSnapshot:ce}}),Te=we[0].inst,Fe=we[1];return gC(function(){Te.value=pe,Te.getSnapshot=ce,Jd(Te)&&Fe({inst:Te})},[B,pe,ce]),hC(function(){return Jd(Te)&&Fe({inst:Te}),B(function(){Jd(Te)&&Fe({inst:Te})})},[B]),yC(pe),pe}function Jd(B){var ce=B.getSnapshot;B=B.value;try{var pe=ce();return!xC(B,pe)}catch(we){return!0}}function vC(B,ce){return ce()}var SC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vC:bC;CC.useSyncExternalStore=Ps.useSyncExternalStore!==void 0?Ps.useSyncExternalStore:SC});var q=C(function(KL,pg){pg.exports=globalThis.__esm["react-dom"]});var at={};Bt(at,{android:()=>yg,apple:()=>pp,ios:()=>dp,linux:()=>s2,mac:()=>bg,windows:()=>n2});var Pt={};Bt(Pt,{blink:()=>f2,gecko:()=>i2,webkit:()=>mp});var xp={};Bt(xp,{voiceOver:()=>l2});var Tr={};Bt(Tr,{jsdom:()=>c2});var hf=e(r(),1),Fh=e(t(),1),$d=hf.createContext(void 0),d=(B)=>{let ce=hf.useContext($d);if(B)return B;if(!ce)throw Error("No QueryClient set, use QueryClientProvider to set one");return ce},Oo=({client:B,children:ce})=>(hf.useEffect(()=>(B.mount(),()=>{B.unmount()}),[B]),Fh.jsx($d.Provider,{value:B,children:ce}));var uc=e(r(),1),Dh=uc.createContext(!1),dc=()=>uc.useContext(Dh),F5=Dh.Provider;var Zf=e(r(),1),cC=e(t(),1);function uC(){let B=!1;return{clearReset:()=>{B=!1},reset:()=>{B=!0},isReset:()=>B}}var dC=Zf.createContext(uC()),pc=()=>Zf.useContext(dC);var Nh=e(r(),1);var gf=class extends ye{#o;#e=void 0;#r=void 0;#t=void 0;#a;#n;#s;#m;#u;#d;#i;#f;#l;#p=new Set;constructor(B,ce){super();this.options=ce,this.#o=B,this.#s=null,this.bindMethods(),this.setOptions(ce)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){if(this.#e.addObserver(this),Lh(this.#e,this.options))this.#c();else this.updateResult();this.#y()}}onUnsubscribe(){if(!this.hasListeners())this.destroy()}shouldFetchOnReconnect(){return Qd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qd(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#v(),this.#e.removeObserver(this)}setOptions(B){let ce=this.options,pe=this.#e;if(this.options=this.#o.defaultQueryOptions(B),this.options.enabled!==void 0&&typeof this.options.enabled!=="boolean"&&typeof this.options.enabled!=="function"&&typeof U(this.options.enabled,this.#e)!=="boolean")throw Error("Expected enabled to be a boolean or a callback that returns a boolean");if(this.#S(),this.#e.setOptions(this.options),ce._defaulted&&!It(this.options,ce))this.#o.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});let we=this.hasListeners();if(we&&Ah(this.#e,pe,this.options,ce))this.#c();if(this.updateResult(),we&&(this.#e!==pe||U(this.options.enabled,this.#e)!==U(ce.enabled,this.#e)||U(this.options.staleTime,this.#e)!==U(ce.staleTime,this.#e)))this.#I();let Te=this.#h();if(we&&(this.#e!==pe||U(this.options.enabled,this.#e)!==U(ce.enabled,this.#e)||Te!==this.#l))this.#g(Te)}getOptimisticResult(B){let ce=this.#o.getQueryCache().build(this.#o,B),pe=this.createResult(ce,B);if(!It(this.getCurrentResult(),pe))this.#t=pe,this.#n=this.options,this.#a=this.#e.state;return pe}getCurrentResult(){return this.#t}trackResult(B,ce){return new Proxy(B,{get:(pe,we)=>(this.trackProp(we),ce?.(we),Reflect.get(pe,we))})}trackProp(B){this.#p.add(B)}getCurrentQuery(){return this.#e}refetch({...B}={}){return this.fetch({...B})}fetchOptimistic(B){let ce=this.#o.defaultQueryOptions(B),pe=this.#o.getQueryCache().build(this.#o,ce),we=()=>{},Te,Fe=new Promise((Le)=>{Te=Le,we=this.#o.getQueryCache().subscribe((Be)=>{if(Be.type==="updated"&&Be.query.queryHash===pe.queryHash&&pe.state.data!==void 0)we(),Le(this.createResult(pe,ce))})});return Promise.race([pe.fetch().then(()=>{let Le=this.createResult(pe,ce);return Te?.(Le),Le}).finally(()=>{we()}),Fe])}fetch(B){return this.#c({...B,cancelRefetch:B.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#c(B){this.#S();let ce=this.#e.fetch(this.options,B);if(!B?.throwOnError)ce=ce.catch(H);return ce}#x(B){return!rr()&&U(this.options.enabled,this.#e)!==!1&&to(B)}#I(){this.#b();let B=U(this.options.staleTime,this.#e);if(this.#t.isStale||!this.#x(B))return;let ce=ro(this.#t.dataUpdatedAt,B)+1;this.#i=ze.setTimeout(()=>{if(!this.#t.isStale)this.updateResult()},ce)}#h(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(B){if(this.#v(),this.#l=B,this.#l===0||!this.#x(this.#l))return;this.#f=ze.setInterval(()=>{if(this.options.refetchIntervalInBackground||or.isFocused())this.#c()},this.#l)}#y(){this.#I(),this.#g(this.#h())}#b(){if(this.#i!==void 0)ze.clearTimeout(this.#i),this.#i=void 0}#v(){if(this.#f!==void 0)ze.clearInterval(this.#f),this.#f=void 0}createResult(B,ce){let pe=this.#e,we=this.options,Te=this.#t,Fe=this.#a,Le=this.#n,Be=B!==pe?B.state:this.#r,{state:ot}=B,nt={...ot},vt=!1,St;if(ce._optimisticResults){let sa=this.hasListeners(),ua=!sa&&Lh(B,ce),ca=sa&&Ah(B,pe,ce,we);if(ua||ca)nt={...nt,..._o(ot.data,B.options)};if(ce._optimisticResults==="isRestoring")nt.fetchStatus="idle"}let{error:wt,errorUpdatedAt:Do,status:eo}=nt;St=nt.data;let Ir=!1;if(ce.placeholderData!==void 0&&St===void 0&&eo==="pending"){let sa;if(Te?.isPlaceholderData&&ce.placeholderData===Le?.placeholderData)sa=Te.data,Ir=!0;else sa=typeof ce.placeholderData==="function"?ce.placeholderData(this.#d?.state.data,this.#d):ce.placeholderData;if(sa!==void 0)eo="success",St=Sr(Te?.data,sa,ce),vt=!0}if(ce.select&&St!==void 0&&!Ir)if(Te&&St===Fe?.data&&ce.select===this.#m)St=this.#u;else try{this.#m=ce.select,St=ce.select(St),St=Sr(Te?.data,St,ce),this.#u=St,this.#s=null}catch(sa){this.#s=sa}else if(St===void 0)this.#s=null;if(this.#s)wt=this.#s,St=this.#u,Do=Date.now(),eo="error",vt=!1;let wr=nt.fetchStatus==="fetching",Jr=eo==="pending",ta=eo==="error",oa=Jr&&wr,Qr=St!==void 0;return{status:eo,fetchStatus:nt.fetchStatus,isPending:Jr,isSuccess:eo==="success",isError:ta,isInitialLoading:oa,isLoading:oa,data:St,dataUpdatedAt:nt.dataUpdatedAt,error:wt,errorUpdatedAt:Do,failureCount:nt.fetchFailureCount,failureReason:nt.fetchFailureReason,errorUpdateCount:nt.errorUpdateCount,isFetched:B.isFetched(),isFetchedAfterMount:nt.dataUpdateCount>Be.dataUpdateCount||nt.errorUpdateCount>Be.errorUpdateCount,isFetching:wr,isRefetching:wr&&!Jr,isLoadingError:ta&&!Qr,isPaused:nt.fetchStatus==="paused",isPlaceholderData:vt,isRefetchError:ta&&Qr,isStale:Yd(B,ce),refetch:this.refetch,isEnabled:U(ce.enabled,B)!==!1}}updateResult(){let B=this.#t,ce=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#n=this.options,this.#a.data!==void 0)this.#d=this.#e;if(It(ce,B))return;this.#t=ce;let we=(()=>{if(!B)return!0;let{notifyOnChangeProps:Te}=this.options,Fe=typeof Te==="function"?Te():Te;if(Fe==="all"||!Fe&&!this.#p.size)return!0;let Le=new Set(Fe??this.#p);if(this.options.throwOnError)Le.add("error");return Object.keys(this.#t).some((Be)=>{let ot=Be;return this.#t[ot]!==B[ot]&&Le.has(ot)})})();M.batch(()=>{if(we)this.listeners.forEach((Te)=>{Te(this.#t)});this.#o.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}#S(){let B=this.#o.getQueryCache().build(this.#o,this.options);if(B===this.#e)return;let ce=this.#e;if(this.#e=B,this.#r=B.state,this.hasListeners())ce?.removeObserver(this),B.addObserver(this)}onQueryUpdate(){if(this.updateResult(),this.hasListeners())this.#y()}};function pC(B,ce){return U(ce.enabled,B)!==!1&&B.state.data===void 0&&!(B.state.status==="error"&&U(ce.retryOnMount,B)===!1)}function Lh(B,ce){return pC(B,ce)||B.state.data!==void 0&&Qd(B,ce,ce.refetchOnMount)}function Qd(B,ce,pe){if(U(ce.enabled,B)!==!1&&U(ce.staleTime,B)!=="static"){let we=typeof pe==="function"?pe(B):pe;return we==="always"||we!==!1&&Yd(B,ce)}return!1}function Ah(B,ce,pe,we){return(B!==ce||U(we.enabled,B)===!1)&&(!pe.suspense||B.state.status!=="error")&&Yd(B,pe)}function Yd(B,ce){return U(ce.enabled,B)!==!1&&B.isStaleByTime(U(ce.staleTime,B))}var Bh=class extends ye{#o;#e=void 0;#r;#t;constructor(B,ce){super();this.#o=B,this.setOptions(ce),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(B){let ce=this.options;if(this.options=this.#o.defaultMutationOptions(B),!It(this.options,ce))this.#o.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this});if(ce?.mutationKey&&this.options.mutationKey&&He(ce.mutationKey)!==He(this.options.mutationKey))this.reset();else if(this.#r?.state.status==="pending")this.#r.setOptions(this.options)}onSubscribe(){if(this.listeners.size===1&&this.#r)this.#r.addObserver(this),this.#a()}onUnsubscribe(){if(!this.hasListeners())this.#r?.removeObserver(this)}onMutationUpdate(B){this.#a(),this.#n(B)}getCurrentResult(){return this.#e}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#a(),this.#n()}mutate(B,ce){return this.#t=ce,this.#r?.removeObserver(this),this.#r=this.#o.getMutationCache().build(this.#o,this.options),this.#r.addObserver(this),this.#r.execute(B)}#a(){let B=this.#r?.state??Mo();this.#e={...B,isPending:B.status==="pending",isSuccess:B.status==="success",isError:B.status==="error",isIdle:B.status==="idle",mutate:this.mutate,reset:this.reset}}#n(B){M.batch(()=>{if(this.#t&&this.hasListeners()){let ce=this.#e.variables,pe=this.#e.context,we={client:this.#o,meta:this.options.meta,mutationKey:this.options.mutationKey};if(B?.type==="success"){try{this.#t.onSuccess?.(B.data,ce,pe,we)}catch(Te){Promise.reject(Te)}try{this.#t.onSettled?.(B.data,null,ce,pe,we)}catch(Te){Promise.reject(Te)}}else if(B?.type==="error"){try{this.#t.onError?.(B.error,ce,pe,we)}catch(Te){Promise.reject(Te)}try{this.#t.onSettled?.(void 0,B.error,ce,pe,we)}catch(Te){Promise.reject(Te)}}}this.listeners.forEach((ce)=>{ce(this.#e)})})}};function Eh(B,ce){let pe=new Set(ce);return B.filter((we)=>!pe.has(we))}var Oh=class extends ye{#o;#e;#r;#t;#a;#n;#s;#m;#u;#d=[];constructor(B,ce,pe){super();this.#o=B,this.#t=pe,this.#r=[],this.#a=[],this.#e=[],this.setQueries(ce)}onSubscribe(){if(this.listeners.size===1)this.#a.forEach((B)=>{B.subscribe((ce)=>{this.#c(B,ce)})})}onUnsubscribe(){if(!this.listeners.size)this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach((B)=>{B.destroy()})}setQueries(B,ce){this.#r=B,this.#t=ce,M.batch(()=>{let pe=this.#a,we=this.#p(this.#r);we.forEach((vt)=>vt.observer.setOptions(vt.defaultedQueryOptions));let Te=we.map((vt)=>vt.observer),Fe=Te.map((vt)=>vt.getCurrentResult()),Le=pe.length!==Te.length,Be=Te.some((vt,St)=>vt!==pe[St]),ot=Le||Be,nt=ot?!0:Fe.some((vt,St)=>{let wt=this.#e[St];return!wt||!It(vt,wt)});if(!ot&&!nt)return;if(ot)this.#d=we,this.#a=Te;if(this.#e=Fe,!this.hasListeners())return;if(ot)Eh(pe,Te).forEach((vt)=>{vt.destroy()}),Eh(Te,pe).forEach((vt)=>{vt.subscribe((St)=>{this.#c(vt,St)})});this.#x()})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map((B)=>B.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(B,ce){let pe=this.#p(B),we=pe.map((Fe)=>Fe.observer.getOptimisticResult(Fe.defaultedQueryOptions)),Te=pe.map((Fe)=>Fe.defaultedQueryOptions.queryHash);return[we,(Fe)=>this.#f(Fe??we,ce,Te),()=>this.#i(we,pe)]}#i(B,ce){let pe=new Set;return ce.map((we,Te)=>{let Fe=B[Te];return!we.defaultedQueryOptions.notifyOnChangeProps?we.observer.trackResult(Fe,(Le)=>{if(!pe.has(Le))pe.add(Le),ce.forEach((Be)=>{Be.observer.trackProp(Le)})}):Fe})}#f(B,ce,pe){if(ce){let we=this.#u,Te=pe!==void 0&&we!==void 0&&(we.length!==pe.length||pe.some((Fe,Le)=>Fe!==we[Le]));if(this.#e!==this.#m||Te||ce!==this.#s){if(this.#s=ce,this.#m=this.#e,pe!==void 0)this.#u=pe;this.#n=Ue(this.#n,ce(B))}return this.#n}return B}#l(){return!this.#t?.combine||this.#a.some((B,ce)=>B.options.suspense&&this.#e[ce]?.data===void 0)}#p(B){let ce=new Map;this.#a.forEach((we)=>{let Te=we.options.queryHash;if(!Te)return;let Fe=ce.get(Te);if(Fe)Fe.push(we);else ce.set(Te,[we])});let pe=[];return B.forEach((we)=>{let Te=this.#o.defaultQueryOptions(we),Fe=ce.get(Te.queryHash)?.shift()??new gf(this.#o,Te);pe.push({defaultedQueryOptions:Te,observer:Fe})}),pe}#c(B,ce){let pe=this.#a.indexOf(B);if(pe!==-1)this.#e=this.#e.slice(),this.#e[pe]=ce,this.#x()}#x(){if(this.hasListeners()){let B=this.#l(),ce=this.#n,pe=B?ce:this.#f(this.#i(this.#e,this.#d),this.#t?.combine);if(B||ce!==pe)M.batch(()=>{this.listeners.forEach((we)=>{we(this.#e)})})}}};var mc=(B,ce,pe)=>{let we=pe?.state.error&&typeof B.throwOnError==="function"?tr(B.throwOnError,[pe.state.error,pe]):B.throwOnError;if(B.suspense||we){if(!ce.isReset())B.retryOnMount=!1}},xc=(B)=>{Nh.useEffect(()=>{B.clearReset()},[B])},Ic=({result:B,errorResetBoundary:ce,throwOnError:pe,query:we,suspense:Te})=>B.isError&&!ce.isReset()&&!B.isFetching&&we&&(Te&&B.data===void 0||tr(pe,[B.error,we]));var hc=(B)=>{if(B.suspense){let pe=(Te)=>Te==="static"?Te:Math.max(Te??1000,1000),we=B.staleTime;if(B.staleTime=typeof we==="function"?(...Te)=>pe(we(...Te)):pe(we),typeof B.gcTime==="number")B.gcTime=Math.max(B.gcTime,1000)}},Jf=(B,ce)=>B?.suspense&&ce.isPending,gc=(B,ce,pe)=>ce.fetchOptimistic(B).catch(()=>{pe.clearReset()});var Es=e(r(),1);function Zd({queries:B,...ce},pe){let we=d(pe),Te=dc(),Fe=pc(),Le=ce.subscribed!==!1,Be=Es.useMemo(()=>B.map((Ir)=>{let wr=we.defaultQueryOptions(Ir);return wr._optimisticResults=Te?"isRestoring":Le?"optimistic":void 0,wr}),[B,we,Te,Le]);Be.forEach((Ir)=>{hc(Ir);let wr=we.getQueryCache().get(Ir.queryHash);mc(Ir,Fe,wr)}),xc(Fe);let[ot]=Es.useState(()=>new Oh(we,Be,ce)),[nt,vt,St]=ot.getOptimisticResult(Be,ce.combine),wt=!Te&&Le;Es.useSyncExternalStore(Es.useCallback((Ir)=>wt?ot.subscribe(M.batchCalls(Ir)):H,[ot,wt]),()=>ot.getCurrentResult(),()=>ot.getCurrentResult()),Es.useEffect(()=>{ot.setQueries(Be,ce)},[Be,ce,ot]);let Do=nt.some((Ir,wr)=>Jf(Be[wr],Ir))?nt.flatMap((Ir,wr)=>{let Jr=Be[wr];if(Jr&&Jf(Jr,Ir)){let ta=new gf(we,Jr);return gc(Jr,ta,Fe)}return[]}):[];if(Do.length>0)throw Promise.all(Do);let eo=nt.find((Ir,wr)=>{let Jr=Be[wr];return Jr&&Ic({result:Ir,errorResetBoundary:Fe,throwOnError:Jr.throwOnError,query:we.getQueryCache().get(Jr.queryHash),suspense:Jr.suspense})});if(eo)throw eo.error;return vt(St())}var oi=e(r(),1);function Vh(B,ce,pe){let we=dc(),Te=pc(),Fe=d(pe),Le=Fe.defaultQueryOptions(B),Be=Fe.getQueryCache().get(Le.queryHash),ot=B.subscribed!==!1;Le._optimisticResults=we?"isRestoring":ot?"optimistic":void 0,hc(Le),mc(Le,Te,Be),xc(Te);let[nt]=oi.useState(()=>new ce(Fe,Le)),vt=nt.getOptimisticResult(Le),St=!we&&ot;if(oi.useSyncExternalStore(oi.useCallback((wt)=>{let Do=St?nt.subscribe(M.batchCalls(wt)):H;return nt.updateResult(),Do},[nt,St]),()=>nt.getCurrentResult(),()=>nt.getCurrentResult()),oi.useEffect(()=>{nt.setOptions(Le)},[Le,nt]),Jf(Le,vt))throw gc(Le,nt,Te);if(Ic({result:vt,errorResetBoundary:Te,throwOnError:Le.throwOnError,query:Be,suspense:Le.suspense}))throw vt.error;return!Le.notifyOnChangeProps?nt.trackResult(vt):vt}function k(B,ce){return Vh(B,gf,ce)}function it(B){return B}var Xs=e(r(),1);function R(B,ce){let pe=d(ce),[we]=Xs.useState(()=>new Bh(pe,B));Xs.useEffect(()=>{we.setOptions(B)},[we,B]);let Te=Xs.useSyncExternalStore(Xs.useCallback((Le)=>we.subscribe(M.batchCalls(Le)),[we]),()=>we.getCurrentResult(),()=>we.getCurrentResult()),Fe=Xs.useCallback((...Le)=>{we.mutate(Le[0],Le[1]).catch(H)},[we]);if(Te.error&&tr(we.options.throwOnError,[Te.error]))throw Te.error;return{...Te,mutate:Fe,mutateAsync:Te.mutate}}function _h(B,ce){if(B instanceof RegExp)return{keys:!1,pattern:B};var pe,we,Te,Fe,Le=[],Be="",ot=B.split("/");ot[0]||ot.shift();while(Te=ot.shift())if(pe=Te[0],pe==="*")Le.push(pe),Be+=Te[1]==="?"?"(?:/(.*))?":"/(.*)";else if(pe===":"){if(we=Te.indexOf("?",1),Fe=Te.indexOf(".",1),Le.push(Te.substring(1,~we?we:~Fe?Fe:Te.length)),Be+=!!~we&&!~Fe?"(?:/([^/]+?))?":"/([^/]+?)",~Fe)Be+=(~we?"?":"")+"\\"+Te.substring(Fe)}else Be+="/"+Te;return{keys:Le,pattern:new RegExp("^"+Be+(ce?"(?=$|/)":"/?$"),"i")}}var Bi=e(r(),1),Sa=e(r(),1);var yc=e(nr(),1);var TC=Bi.useInsertionEffect,kC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ep=kC?Bi.useLayoutEffect:Bi.useEffect,RC=TC||ep,bc=(B)=>{let ce=Bi.useRef([B,(...pe)=>ce[0](...pe)]).current;return RC(()=>{ce[0]=B}),ce[1]};var Wh=["popstate","pushState","replaceState","hashchange"],el=[],zh=()=>el.forEach((B)=>B()),MC=(B)=>{if(el.push(B)===1)Wh.forEach((ce)=>addEventListener(ce,zh));return()=>{if(el=el.filter((ce)=>ce!==B),!el.length)Wh.forEach((ce)=>removeEventListener(ce,zh))}},jh=(B,ce)=>yc.useSyncExternalStore(MC,B,ce),qh=()=>location.search,no=({ssrSearch:B}={})=>jh(qh,B!=null?()=>B:qh),Uh=()=>location.pathname,Ht=({ssrPath:B}={})=>jh(Uh,B!=null?()=>B:Uh);var PC=(B,{replace:ce=!1,state:pe=null}={})=>history[ce?"replaceState":"pushState"](pe,"",B),Xh=(B)=>[Ht(B),PC],Gh=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Gh]>"u"){for(let B of["pushState","replaceState"]){let ce=history[B];history[B]=function(){let pe=ce.apply(this,arguments),we=new Event(B);return we.arguments=arguments,dispatchEvent(we),pe}}Object.defineProperty(window,Gh,{value:!0})}var Kh=(B="")=>B==="/"?"":B,$h=(B,ce)=>B[0]==="~"?B.slice(1):Kh(ce)+B,op=(B,ce)=>(B=tp(Kh(B)),ce=tp(ce),!B||!ce.toLowerCase().indexOf(B.toLowerCase())?ce.slice(B.length)||"/":"~"+ce),tp=(B)=>{try{return B.includes("%")?decodeURI(B):B}catch(ce){return B}},Qh=(B)=>tp(B[0]==="?"?B.slice(1):B);var Yh={hook:Xh,searchHook:no,parser:_h,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:(B)=>B,aroundNav:(B,ce,pe)=>B(ce,pe)},Zh=Sa.createContext(Yh),oe=()=>Sa.useContext(Zh),Jh={},eg=Sa.createContext(Jh),No=()=>Sa.useContext(eg),tg=(B,ce=B.base)=>op(ce,B.hook(B)[0]),rp=(B)=>{let[ce,pe]=B.hook(B);return[op(B.base,ce),bc((we,Te)=>B.aroundNav(pe,$h(we,B.base),Te))]},Z=()=>rp(oe()),ln=()=>{let B=oe();return Qh(B.searchHook(B))},og=(B,ce,pe,we)=>{let{pattern:Te,keys:Fe}=ce instanceof RegExp?{pattern:ce}:B(ce||"*",we),Le=Te.exec(pe);if(!Le)return[!1,null];let Be={};for(let ot=1;ot<Le.length;ot++)Be[ot-1]=Le[ot];if(Fe)for(let ot=0;ot<Fe.length;ot++)Be[Fe[ot]]=Le[ot+1];else Object.assign(Be,Le.groups);return we?[!0,Be,Le[0]]:[!0,Be]};var Lo=({children:B,...ce})=>{let pe=oe(),we=ce.hook?Yh:pe,Te=we;if(ce.ssrPath){let[ot,nt=ce.ssrSearch??""]=ce.ssrPath.split("?");if(ot)ce.ssrSearch=nt,ce.ssrPath=ot}ce.hrefs=ce.hrefs??ce.hook?.hrefs,ce.searchHook=ce.searchHook??ce.hook?.searchHook;let Fe=Sa.useRef(we),Le=Fe.current,Be=Le;for(let ot in we){let nt=ot==="base"?we[ot]+(ce[ot]??""):ce[ot]??we[ot];if(nt!==Be[ot]){if(Le===Be)Fe.current=Be={...Be};Be[ot]=nt}if(nt!==we[ot]||nt!==Te[ot])Te=Be}return Sa.createElement(Zh.Provider,{value:Te},B)},FC=({children:B,component:ce},pe)=>{if(ce)return Sa.createElement(ce,{params:pe});return typeof B==="function"?B(pe):B},DC=(B)=>{let ce=Sa.useRef(Jh),pe=ce.current,we=Object.keys(B);return ce.current=we.length!==Object.keys(pe).length||we.some((Te)=>B[Te]!==pe[Te])?B:pe};var ir=({path:B,nest:ce,match:pe,...we})=>{let Te=oe(),Fe=tg(Te),[Le,Be,ot]=pe??og(Te.parser,B,Fe,ce),nt=DC({...No(),...Be});if(!Le)return null;let vt=FC(we,nt);return Sa.createElement(eg.Provider,{value:nt},ot?Sa.createElement(Lo,{base:ot},vt):vt)},st=Sa.forwardRef((B,ce)=>{let pe=oe(),[we,Te]=rp(pe),{to:Fe="",href:Le=Fe,onClick:Be,asChild:ot,children:nt,className:vt,replace:St,state:wt,transition:Do,...eo}=B;if(eo.onClick=bc((Ir)=>{if(Ir.ctrlKey||Ir.metaKey||Ir.altKey||Ir.shiftKey||Ir.button!==0)return;if(Be?.(Ir),!Ir.defaultPrevented)Ir.preventDefault(),Te(Le,B)}),eo.href=pe.hrefs(Le[0]==="~"?Le.slice(1):pe.base+Le,pe),vt!==void 0)eo.className=vt?.call?vt(we===Le):vt;if(ce)eo.ref=ce;return ot&&Sa.isValidElement(nt)?Sa.cloneElement(nt,eo):Sa.createElement("a",eo,nt)}),rg=(B,ce=[])=>{if(Array.isArray(B))for(let pe of B)rg(pe&&pe.type===Sa.Fragment?pe.props.children:pe,ce);else ce.push(B);return ce},cn=({children:B,location:ce})=>{let pe=oe(),we=tg(pe);for(let Te of rg(B)){let Fe=0;if(Sa.isValidElement(Te)&&(Fe=og(pe.parser,Te.props.path,ce||we,Te.props.nest))[0])return Sa.cloneElement(Te,{match:Fe})}return null},Ct=(B)=>{let{to:ce,href:pe=ce}=B,we=oe(),[,Te]=rp(we),Fe=bc(()=>Te(ce||pe,B)),{ssrContext:Le}=we;if(ep(()=>{Fe()},[]),Le)Le.redirectTo=ce;return null};var Ag=e(r(),1);var ag=e(r(),1);function D(){}var fe=Object.freeze([]),I=Object.freeze({});function kt(B){ag.useEffect(B,fe)}var sg=e(r(),1),ng={};function L(B,ce){let pe=sg.useRef(ng);if(pe.current===ng)pe.current=B(ce);return pe}var ig=e(r(),1),LC=()=>{},i=typeof document<"u"?ig.useLayoutEffect:LC;function AC(B,ce){return function(we,...Te){let Fe=new URL(B);return Fe.searchParams.set("code",we.toString()),Te.forEach((Le)=>Fe.searchParams.append("args[]",Le)),`${ce} error #${we}; visit ${Fe} for the full message.`}}var BC=AC("https://base-ui.com/production-error","Base UI"),f=BC;var vc=e(r(),1),ap=vc.createContext(void 0);function ri(){let B=vc.useContext(ap);if(!B)throw Error(f(73));return B}var dg=e(r(),1),fp=e(nr(),1);var ai=e(r()),EC=nr();function OC(B,ce){return B===ce&&(B!==0||1/B===1/ce)||B!==B&&ce!==ce}var NC=typeof Object.is==="function"?Object.is:OC,VC=EC.useSyncExternalStore,HC=ai.useRef,_C=ai.useEffect,WC=ai.useMemo,zC=ai.useDebugValue;var np=function(B,ce,pe,we,Te){var Fe=HC(null);if(Fe.current===null){var Le={hasValue:!1,value:null};Fe.current=Le}else Le=Fe.current;Fe=WC(function(){function ot(Do){if(!nt){if(nt=!0,vt=Do,Do=we(Do),Te!==void 0&&Le.hasValue){var eo=Le.value;if(Te(eo,Do))return St=eo}return St=Do}if(eo=St,NC(vt,Do))return eo;var Ir=we(Do);if(Te!==void 0&&Te(eo,Ir))return vt=Do,eo;return vt=Do,St=Ir}var nt=!1,vt,St,wt=pe===void 0?null:pe;return[function(){return ot(ce())},wt===null?void 0:function(){return ot(wt())}]},[ce,pe,we,Te]);var Be=VC(B,Fe[0],Fe[1]);return _C(function(){Le.hasValue=!0,Le.value=Be},[Be]),zC(Be),Be};var fg=e(r(),1),qC=parseInt(fg.version,10);function yf(B){return qC>=B}var lg=e(r(),1);var sp=[],ip=void 0;function cg(){return ip}function ug(B){sp.push(B)}function Me(B){let ce=(pe,we)=>{let Te=L(UC).current,Fe;try{ip=Te;for(let Le of sp)Le.before(Te);Fe=B(pe,we);for(let Le of sp)Le.after(Te);Te.didInitialize=!0}finally{ip=void 0}return Fe};return ce.displayName=B.displayName||B.name,ce}function We(B){return lg.forwardRef(Me(B))}function UC(){return{didInitialize:!1}}var GC=yf(19),jC=GC?KC:$C;function Sc(B,ce,pe,we,Te){return jC(B,ce,pe,we,Te)}function XC(B,ce,pe,we,Te){let Fe=dg.useCallback(()=>ce(B.getSnapshot(),pe,we,Te),[B,ce,pe,we,Te]);return fp.useSyncExternalStore(B.subscribe,Fe,Fe)}ug({before(B){if(B.syncIndex=0,!B.didInitialize)B.syncTick=1,B.syncHooks=[],B.didChangeStore=!0,B.getSnapshot=()=>{let ce=!1;for(let pe=0;pe<B.syncHooks.length;pe+=1){let we=B.syncHooks[pe],Te=we.selector(we.store.state,we.a1,we.a2,we.a3);if(!Object.is(we.value,Te))ce=!0,we.value=Te}if(ce)B.syncTick+=1;return B.syncTick}},after(B){if(B.syncHooks.length>0){if(B.didChangeStore)B.didChangeStore=!1,B.subscribe=(ce)=>{let pe=new Set;for(let Te of B.syncHooks)pe.add(Te.store);let we=[];for(let Te of pe)we.push(Te.subscribe(ce));return()=>{for(let Te of we)Te()}};fp.useSyncExternalStore(B.subscribe,B.getSnapshot,B.getSnapshot)}}});function KC(B,ce,pe,we,Te){let Fe=cg();if(!Fe)return XC(B,ce,pe,we,Te);let Le=Fe.syncIndex;Fe.syncIndex+=1;let Be;if(!Fe.didInitialize)Be={store:B,selector:ce,a1:pe,a2:we,a3:Te,value:ce(B.getSnapshot(),pe,we,Te)},Fe.syncHooks.push(Be);else if(Be=Fe.syncHooks[Le],Be.store!==B||Be.selector!==ce||!Object.is(Be.a1,pe)||!Object.is(Be.a2,we)||!Object.is(Be.a3,Te)){if(Be.store!==B)Fe.didChangeStore=!0;Be.store=B,Be.selector=ce,Be.a1=pe,Be.a2=we,Be.a3=Te,Be.value=ce(B.getSnapshot(),pe,we,Te)}return Be.value}function $C(B,ce,pe,we,Te){return np(B.subscribe,B.getSnapshot,B.getSnapshot,(Fe)=>ce(Fe,pe,we,Te))}class lp{static create(B){return new this(B)}constructor(B){this.state=B,this.listeners=new Set,this.updateTick=0}subscribe=(B)=>(this.listeners.add(B),()=>{this.listeners.delete(B)});getSnapshot=()=>this.state;setState(B){if(this.state===B)return;this.state=B,this.updateTick+=1;let ce=this.updateTick;for(let pe of this.listeners){if(ce!==this.updateTick)return;pe(B)}}update(B){for(let ce in B)if(!Object.is(this.state[ce],B[ce])){this.setState({...this.state,...B});return}}set(B,ce){if(!Object.is(this.state[B],ce))this.setState({...this.state,[B]:ce})}notifyAll(){let B={...this.state};this.setState(B)}use(B,ce,pe,we){return Sc(this,B,ce,pe,we)}}var Ei=e(r(),1);var QC=e(r(),1),tl={...QC};var cp=tl.useInsertionEffect,YC=cp&&cp!==tl.useLayoutEffect?cp:(B)=>B();function a(B){let ce=L(ZC).current;return ce.next=B,YC(ce.effect),ce.trampoline}function ZC(){let B={next:void 0,callback:JC,trampoline:(...ce)=>B.callback?.(...ce),effect:()=>{B.callback=B.next}};return B}function JC(){}class ge extends lp{constructor(B,ce={},pe){super(B);this.context=ce,this.selectors=pe}useSyncedValue(B,ce){Ei.useDebugValue(B);let pe=this;i(()=>{if(pe.state[B]!==ce)pe.set(B,ce)},[pe,B,ce])}useSyncedValueWithCleanup(B,ce){let pe=this;i(()=>{if(pe.state[B]!==ce)pe.set(B,ce);return()=>{pe.set(B,void 0)}},[pe,B,ce])}useSyncedValues(B){let ce=this,pe=Object.values(B);i(()=>{ce.update(B)},[ce,...pe])}useControlledProp(B,ce){Ei.useDebugValue(B);let pe=this,we=ce!==void 0;i(()=>{if(we&&!Object.is(pe.state[B],ce))pe.setState({...pe.state,[B]:ce})},[pe,B,ce,we])}select(B,ce,pe,we){let Te=this.selectors[B];return Te(this.state,ce,pe,we)}useState(B,ce,pe,we){return Ei.useDebugValue(B),Sc(this,this.selectors[B],ce,pe,we)}useContextCallback(B,ce){Ei.useDebugValue(B);let pe=a(ce??D);this.context[B]=pe}useStateSetter(B){let ce=Ei.useRef(void 0);if(ce.current===void 0)ce.current=(pe)=>{this.set(B,pe)};return ce.current}observe(B,ce){let pe;if(typeof B==="function")pe=B;else pe=this.selectors[B];let we=pe(this.state);return ce(we,we,this),this.subscribe((Te)=>{let Fe=pe(Te);if(!Object.is(we,Fe)){let Le=we;we=Fe,ce(Fe,Le,this)}})}}function Cc(){return typeof window<"u"}function J(B){if(wc(B))return(B.nodeName||"").toLowerCase();return"#document"}function v(B){var ce;return(B==null||(ce=B.ownerDocument)==null?void 0:ce.defaultView)||window}function $e(B){var ce;return(ce=(wc(B)?B.ownerDocument:B.document)||window.document)==null?void 0:ce.documentElement}function wc(B){if(!Cc())return!1;return B instanceof Node||B instanceof v(B).Node}function y(B){if(!Cc())return!1;return B instanceof Element||B instanceof v(B).Element}function E(B){if(!Cc())return!1;return B instanceof HTMLElement||B instanceof v(B).HTMLElement}function Ve(B){if(!Cc()||typeof ShadowRoot>"u")return!1;return B instanceof ShadowRoot||B instanceof v(B).ShadowRoot}function Ut(B){let{overflow:ce,overflowX:pe,overflowY:we,display:Te}=ue(B);return/auto|scroll|overlay|hidden|clip/.test(ce+we+pe)&&Te!=="inline"&&Te!=="contents"}function un(B){return/^(table|td|th)$/.test(J(B))}function Cr(B){try{if(B.matches(":popover-open"))return!0}catch(ce){}try{return B.matches(":modal")}catch(ce){return!1}}var e2=/transform|translate|scale|rotate|perspective|filter/,t2=/paint|layout|strict|content/,Oi=(B)=>!!B&&B!=="none",up;function io(B){let ce=y(B)?ue(B):B;return Oi(ce.transform)||Oi(ce.translate)||Oi(ce.scale)||Oi(ce.rotate)||Oi(ce.perspective)||!so()&&(Oi(ce.backdropFilter)||Oi(ce.filter))||e2.test(ce.willChange||"")||t2.test(ce.contain||"")}function dn(B){let ce=Ee(B);while(E(ce)&&!Pe(ce)){if(io(ce))return ce;else if(Cr(ce))return null;ce=Ee(ce)}return null}function so(){if(up==null)up=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return up}function Pe(B){return/^(html|body|#document)$/.test(J(B))}function ue(B){return v(B).getComputedStyle(B)}function kr(B){if(y(B))return{scrollLeft:B.scrollLeft,scrollTop:B.scrollTop};return{scrollLeft:B.scrollX,scrollTop:B.scrollY}}function Ee(B){if(J(B)==="html")return B;let ce=B.assignedSlot||B.parentNode||Ve(B)&&B.host||$e(B);return Ve(ce)?ce.host:ce}function mg(B){let ce=Ee(B);if(Pe(ce))return(B.ownerDocument||B).body;if(E(ce)&&Ut(ce))return ce;return mg(ce)}function Tt(B,ce,pe){var we;if(ce===void 0)ce=[];if(pe===void 0)pe=!0;let Te=mg(B),Fe=Te===((we=B.ownerDocument)==null?void 0:we.body),Le=v(Te);if(Fe){let Be=ao(Le);return ce.concat(Le,Le.visualViewport||[],Ut(Te)?Te:[],Be&&pe?Tt(Be):[])}else return ce.concat(Te,Tt(Te,[],pe))}function ao(B){return B.parent&&Object.getPrototypeOf(B.parent)?B.frameElement:null}function se(...B){return()=>{for(let ce=0;ce<B.length;ce+=1){let pe=B[ce];if(pe)pe()}}}function g(B){return B?.ownerDocument||document}function x(B,ce,pe,we){return B.addEventListener(ce,pe,we),()=>{B.removeEventListener(ce,pe,we)}}var Tc=null,oA=globalThis.requestAnimationFrame;class xg{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=(B)=>{this.isScheduled=!1;let ce=this.callbacks,pe=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,pe>0)for(let we=0;we<ce.length;we+=1)ce[we]?.(B)};request(B){let ce=this.nextId;this.nextId+=1,this.callbacks.push(B),this.callbacksCount+=1;let pe=!1;if(!this.isScheduled||pe)requestAnimationFrame(this.tick),this.isScheduled=!0;return ce}cancel(B){let ce=B-this.startId;if(ce<0||ce>=this.callbacks.length)return;if(this.callbacks[ce]===null)return;this.callbacks[ce]=null,this.callbacksCount-=1}}var kc=new xg;class de{static create(){return new de}static request(B){return kc.request(B)}static cancel(B){return kc.cancel(B)}currentId=Tc;request(B){this.cancel(),this.currentId=kc.request(()=>{this.currentId=Tc,B()})}cancel=()=>{if(this.currentId!==Tc)kc.cancel(this.currentId),this.currentId=Tc};disposeEffect=()=>this.cancel}function De(){let B=L(de.create).current;return kt(B.disposeEffect),B}var ol=0;class Q{static create(){return new Q}currentId=ol;start(B,ce){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ol,ce()},B)}isStarted(){return this.currentId!==ol}clear=()=>{if(this.currentId!==ol)clearTimeout(this.currentId),this.currentId=ol};disposeEffect=()=>this.clear}function F(){let B=L(Q.create).current;return kt(B.disposeEffect),B}var Ig=0;function Rc(B){return Ig+=1,`${B}-${Math.random().toString(36).slice(2,6)}-${Ig}`}function Mc(B,ce){if(typeof B==="string")return{description:B};if(typeof B==="function"){let pe=B(ce);return typeof pe==="string"?{description:pe}:pe}return B}function o2(){if(typeof navigator>"u")return{userAgent:"",platform:"",maxTouchPoints:0};return{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:r2,platform:a2,maxTouchPoints:hg}=o2(),Ni=r2.toLowerCase(),Vi=a2.toLowerCase();var dp=/^i(os$|p)/.test(Vi)||Vi==="macintel"&&hg>1,gg="android",yg=Vi===gg||Ni.includes(gg),bg=!dp&&Vi.startsWith("mac"),n2=Vi.startsWith("win"),s2=!yg&&/^(linux|chrome os)/.test(Vi),pp=bg||dp;var mp=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),i2=!mp&&Ni.includes("firefox"),f2=!mp&&Ni.includes("chrom");var l2=pp;var c2=/jsdom|happydom/.test(Ni);function O(B){let ce=B.activeElement;while(ce?.shadowRoot?.activeElement!=null)ce=ce.shadowRoot.activeElement;return ce}function u(B,ce){if(!B||!ce)return!1;let pe=ce.getRootNode?.();if(B.contains(ce))return!0;if(pe&&Ve(pe)){let we=ce;while(we){if(B===we)return!0;we=we.parentNode||we.host}}return!1}function T(B){if("composedPath"in B)return B.composedPath()[0]??B.target;return B.target}var Pr="data-base-ui-focusable";var hp="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Er="ArrowLeft",Rr="ArrowRight",Fo="ArrowUp",lo="ArrowDown";var lt="data-starting-style",Wt="data-ending-style";var u2={[lt]:""},d2={[Wt]:""},ae={transitionStatus(B){if(B==="starting")return u2;if(B==="ending")return d2;return null}};var Bo="data-open",zo="data-closed",Kn=lt,qn=Wt,vg="data-anchor-hidden";var Fc="data-popup-open",Sg="data-pressed";var m2={[Fc]:""},x2={[Fc]:"",[Sg]:""},I2={[Bo]:""},h2={[zo]:""},g2={[vg]:""},Et={open(B){if(B)return m2;return null}},Ar={open(B){if(B)return x2;return null}},_r={open(B){if(B)return I2;return h2},anchorHidden(B){if(B)return g2;return null}},je={..._r,...ae};var CA=Fc,Mr="data-trigger-disabled";function Rt(B,ce){if(!y(B))return!1;let pe=B;if(ce.hasElement(pe))return!pe.hasAttribute(Mr);for(let[,we]of ce.entries())if(u(we,pe))return!we.hasAttribute(Mr);return!1}function co(B,ce){if(ce==null)return!1;if("composedPath"in B)return B.composedPath().includes(ce);let pe=B;return pe.target!=null&&ce.contains(pe.target)}function pn(B){return B.matches("html,body")}function $t(B){return E(B)&&B.matches(hp)}function Ho(B){return B?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${hp}`)!=null}function Dr(B){if(!B)return!1;return B.getAttribute("role")==="combobox"&&$t(B)}function Ge(B){if(!B||Tr.jsdom)return!0;try{return B.matches(":focus-visible")}catch(ce){return!0}}function Or(B){if(!B)return null;return B.hasAttribute(Pr)?B:B.querySelector(`[${Pr}]`)||B}function At(B,ce){return ce<0||ce>=B.length}function Vt(B,ce){return Re(B.current,{disabledIndices:ce})}function sr(B,ce){return Re(B.current,{decrement:!0,startingIndex:B.current.length,disabledIndices:ce})}function Re(B,{startingIndex:ce=-1,decrement:pe=!1,disabledIndices:we,amount:Te=1}={}){let Fe=ce;do Fe+=pe?-Te:Te;while(Fe>=0&&Fe<=B.length-1&&ct(B,Fe,we));return Fe}function ct(B,ce,pe){if(typeof pe==="function"?pe(ce):pe?.includes(ce)??!1)return!0;let Te=B[ce];if(!Te)return!1;if(!jt(Te))return!0;if(Te.matches(":disabled"))return!0;return!pe&&(Te.hasAttribute("disabled")||Te.getAttribute("aria-disabled")==="true")}function b2(B){return B.visibility==="hidden"||B.visibility==="collapse"}function jt(B,ce=B?ue(B):null){if(!B||!B.isConnected||!ce||b2(ce))return!1;if(typeof B.checkVisibility==="function")return B.checkVisibility();return ce.display!=="none"&&ce.display!=="contents"}var v2='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function S2(B){let ce=B.assignedSlot;if(ce)return ce;if(B.parentElement)return B.parentElement;let pe=B.getRootNode();return Ve(pe)?pe.host:null}function yp(B){for(let ce of Array.from(B.children))if(J(ce)==="summary")return ce;return null}function C2(B,ce){let pe=yp(ce);return!!pe&&(B===pe||u(pe,B))}function wg(B){let ce=B?J(B):"";return B!=null&&B.matches(v2)&&(ce!=="summary"||B.parentElement!=null&&J(B.parentElement)==="details"&&yp(B.parentElement)===B)&&(ce!=="details"||yp(B)==null)&&(ce!=="input"||B.type!=="hidden")}function Tg(B){if(!wg(B)||!B.isConnected||B.matches(":disabled"))return!1;for(let ce=B;ce;ce=S2(ce)){let pe=ce!==B,we=J(ce)==="slot";if(ce.hasAttribute("inert"))return!1;if(pe&&J(ce)==="details"&&!ce.open&&!C2(B,ce)||ce.hasAttribute("hidden")||!we&&!w2(ce,pe))return!1}return!0}function w2(B,ce){let pe=ue(B);if(!ce)return jt(B,pe);return pe.display!=="none"}function kg(B){let ce=B.tabIndex;if(ce<0){let pe=J(B);if(pe==="details"||pe==="audio"||pe==="video"||E(B)&&B.isContentEditable)return 0}return ce}function gp(B){if(J(B)!=="input")return null;let ce=B;return ce.type==="radio"&&ce.name!==""?ce:null}function T2(B,ce){let pe=gp(B);if(!pe)return!0;let we=ce.find((Te)=>{let Fe=gp(Te);return Fe?.name===pe.name&&Fe.form===pe.form&&Fe.checked});if(we)return we===pe;return ce.find((Te)=>{let Fe=gp(Te);return Fe?.name===pe.name&&Fe.form===pe.form})===pe}function Rg(B){if(E(B)&&J(B)==="slot"){let ce=B.assignedElements({flatten:!0});if(ce.length>0)return ce}if(E(B)&&B.shadowRoot)return Array.from(B.shadowRoot.children);return Array.from(B.children)}function Mg(B,ce){Rg(B).forEach((pe)=>{if(wg(pe))ce.push(pe);Mg(pe,ce)})}function Pg(B,ce,pe){Rg(B).forEach((we)=>{if(E(we)&&we.matches(ce))pe.push(we);Pg(we,ce,pe)})}function uo(B){return Tg(B)&&kg(B)>=0}function Uo(B){let ce=[];return Mg(B,ce),ce.filter(Tg)}function ar(B){let ce=Uo(B);return ce.filter((pe)=>kg(pe)>=0&&T2(pe,ce))}function Fg(B,ce){let pe=ar(B),we=pe.length;if(we===0)return;let Te=O(g(B)),Fe=pe.indexOf(Te),Le=Fe===-1?ce===1?0:we-1:Fe+ce;return pe[Le]}function lr(B){return Fg(g(B).body,1)||B}function po(B){return Fg(g(B).body,-1)||B}function Dg(B,ce){if(!B)return null;let pe=ar(g(B).body),we=pe.length;if(we===0)return null;let Te=pe.indexOf(B);if(Te===-1)return null;let Fe=(Te+ce+we)%we;return pe[Fe]}function fn(B){return Dg(B,1)}function mn(B){return Dg(B,-1)}function ut(B,ce){let pe=ce||B.currentTarget,we=B.relatedTarget;return!we||!u(pe,we)}function Lg(B){ar(B).forEach((pe)=>{pe.dataset.tabindex=pe.getAttribute("tabindex")||"",pe.setAttribute("tabindex","-1")})}function bp(B){let ce=[];Pg(B,"[data-tabindex]",ce),ce.forEach((pe)=>{let we=pe.dataset.tabindex;if(delete pe.dataset.tabindex,we)pe.setAttribute("tabindex",we);else pe.removeAttribute("tabindex")})}function vp(B){let ce=new Map,pe=0,we=0;return B.forEach((Te,Fe)=>{let Le=Te.transitionStatus==="ending";if(ce.set(Te.id,{value:Te,domIndex:Fe,visibleIndex:Le?-1:pe,offsetY:we}),we+=Te.height||0,!Le)pe+=1}),ce}function Sp(B,ce){let pe=0;return B.map((we)=>{if(we.transitionStatus==="ending")return we;let Te=pe>=ce;return pe+=1,we.limited===Te?we:{...we,limited:Te}})}var Fs={toasts:(B)=>B.toasts,isEmpty:(B)=>B.toasts.length===0,toast:(B,ce)=>B.toastMetadata.get(ce)?.value,toastIndex:(B,ce)=>B.toastMetadata.get(ce)?.domIndex??-1,toastOffsetY:(B,ce)=>B.toastMetadata.get(ce)?.offsetY??0,toastVisibleIndex:(B,ce)=>B.toastMetadata.get(ce)?.visibleIndex??-1,focused:(B)=>B.focused,expanded:(B)=>B.hovering||B.focused,expandedOrOutOfFocus:(B)=>B.hovering||B.focused||!B.isWindowFocused,prevFocusElement:(B)=>B.prevFocusElement};class Cp extends ge{timers=new Map;areTimersPaused=!1;constructor(B){super({...B,toastMetadata:vp(B.toasts)},{},Fs)}setViewport=(B)=>{this.set("viewport",B)};syncProviderProps(B,ce){let pe=this.state.limit!==ce;if(this.state.timeout===B&&!pe)return;let we={timeout:B,limit:ce};if(pe){let Te=Sp(this.state.toasts,ce);we.toasts=Te,we.toastMetadata=vp(Te)}this.update(we)}disposeEffect=()=>()=>{this.timers.forEach((B)=>{B.timeout?.clear()}),this.timers.clear()};removeToast(B,ce=!1){let pe=Fs.toastIndex(this.state,B);if(pe===-1)return;let we=this.state.toasts[pe];if(!ce)we?.onRemove?.();let Te=[...this.state.toasts];Te.splice(pe,1),this.setToasts(Te)}addToast=(B)=>{let{timeout:ce,limit:pe}=this.state,we=B.id||Rc("toast");if(B.id){let Be=Fs.toast(this.state,B.id);if(Be)if(Be.transitionStatus==="ending")this.removeToast(B.id,!0);else{let{id:ot,transitionStatus:nt,...vt}=B;return this.updateToastInternal(B.id,vt,!0,!0),B.id}}let Te={...B,id:we,updateKey:0,transitionStatus:"starting"},Fe=[Te,...this.state.toasts];this.setToasts(Sp(Fe,pe));let Le=Te.timeout??ce;if(Te.type!=="loading"&&Le>0)this.scheduleTimer(we,Le,()=>this.closeToast(we));if(Fs.expandedOrOutOfFocus(this.state))this.pauseTimers();return we};updateToast=(B,ce)=>{let pe=Fs.toast(this.state,B);if(!pe||pe.transitionStatus==="ending")return;this.updateToastInternal(B,typeof ce==="function"?ce(pe):ce,!1,!0)};updateToastInternal=(B,ce,pe=!1,we=!1)=>{let{timeout:Te,toasts:Fe}=this.state,Le=Fs.toast(this.state,B);if(!Le)return;if(Le.transitionStatus==="ending")return;let Be={...Le,...ce,...we&&{updateKey:Le.updateKey+1}};this.setToasts(Fe.map((Ir)=>Ir.id===B?Be:Ir));let ot=Be.timeout??Te,nt=Le.timeout??Te,vt=Object.hasOwn(ce,"timeout"),St=Be.transitionStatus!=="ending"&&Be.type!=="loading"&&ot>0,wt=this.timers.has(B),Do=nt!==ot,eo=Le.type==="loading";if(!St&&wt){this.clearTimer(B);return}if(St&&(!wt||Do||vt||eo||pe)){if(this.clearTimer(B),this.scheduleTimer(B,ot,()=>this.closeToast(B)),Fs.expandedOrOutOfFocus(this.state))this.pauseTimers()}};closeToast=(B)=>{let ce=B===void 0,{limit:pe,toasts:we}=this.state,Te;if(ce)Te=we,this.clearTimers();else{let Be=Fs.toast(this.state,B);if(!Be)return;Te=[Be],this.clearTimer(B)}let Fe=we.map((Be)=>ce||Be.id===B?{...Be,transitionStatus:"ending",height:0}:Be),Le=Sp(Fe,pe);this.setToasts(Le,!Le.some((Be)=>Be.transitionStatus!=="ending")),Te.forEach((Be)=>{if(Be.transitionStatus!=="ending")Be.onClose?.()}),this.handleFocusManagement(B)};promiseToast=(B,ce)=>{let pe=Mc(ce.loading),we=this.addToast({...pe,type:"loading"}),Te=B.then((Fe)=>{let Le=Mc(ce.success,Fe);return this.updateToast(we,{...Le,type:"success",timeout:Le.timeout}),Fe}).catch((Fe)=>{let Le=Mc(ce.error,Fe);return this.updateToast(we,{...Le,type:"error",timeout:Le.timeout}),Promise.reject(Fe)});if({}.hasOwnProperty.call(ce,"setPromise"))ce.setPromise(Te);return Te};pauseTimers(){if(this.areTimersPaused)return;this.areTimersPaused=!0,this.timers.forEach((B)=>{if(B.timeout)B.timeout.clear(),B.remaining=Math.max(B.remaining-(Date.now()-B.start),0)})}resumeTimers(){if(!this.areTimersPaused)return;this.areTimersPaused=!1,this.timers.forEach((B,ce)=>{B.remaining=B.remaining>0?B.remaining:B.delay,B.timeout??=Q.create(),B.timeout.start(B.remaining,()=>{this.handleTimerFired(ce),B.callback()}),B.start=Date.now()})}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=(B)=>{if(B.pointerType!=="touch")return;let ce=T(B);if(u(this.state.viewport,ce))return;this.resumeTimers(),this.update({hovering:!1,focused:!1})};scheduleTimer(B,ce,pe){let we=Date.now(),Fe=!Fs.expandedOrOutOfFocus(this.state)?Q.create():void 0;Fe?.start(ce,()=>{this.handleTimerFired(B),pe()}),this.timers.set(B,{timeout:Fe,start:we,delay:ce,remaining:ce,callback:pe})}clearTimers(){this.timers.forEach((B)=>{B.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(B){this.timers.get(B)?.timeout?.clear(),this.timers.delete(B),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(B){this.timers.delete(B),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){if(this.timers.size===0)this.areTimersPaused=!1}setToasts(B,ce=B.length===0){let pe={toasts:B,toastMetadata:vp(B)};if(ce)pe.hovering=!1,pe.focused=!1;this.update(pe)}handleFocusManagement(B){let ce=O(g(this.state.viewport));if(!this.state.viewport||!u(this.state.viewport,ce)||!Ge(ce))return;if(B===void 0){this.restoreFocusToPrevElement();return}let pe=Fs.toasts(this.state),we=Fs.toastIndex(this.state,B),Te=(Le,Be)=>{for(let ot=Le;ot>=0&&ot<pe.length;ot+=Be)if(pe[ot].transitionStatus!=="ending")return pe[ot];return null},Fe=Te(we+1,1)??Te(we-1,-1);if(Fe)Fe.ref?.current?.focus();else this.restoreFocusToPrevElement()}}var Dc=e(t(),1),Bg=function(ce){let{children:pe,timeout:we=5000,limit:Te=3,toastManager:Fe}=ce,Le=L(()=>new Cp({timeout:we,limit:Te,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return kt(Le.disposeEffect),Ag.useEffect(function(){if(!Fe)return;return Fe[" subscribe"](({action:nt,options:vt})=>{let St=vt.id;if(nt==="promise"&&vt.promise)Le.promiseToast(vt.promise,vt);else if(nt==="update"&&St)Le.updateToast(St,vt.updates);else if(nt==="close")Le.closeToast(St);else Le.addToast(vt)})},[Le,Fe]),Dc.jsxs(ap.Provider,{value:Le,children:[Dc.jsx(k2,{store:Le,timeout:we,limit:Te}),pe]})};function k2(B){let{store:ce,timeout:pe,limit:we}=B;return i(()=>{ce.syncProviderProps(pe,we)},[ce,pe,we]),null}var gs=e(r(),1);var Eg={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Oe={...Eg,position:"fixed",top:0,left:0},fo={...Eg,position:"absolute"};var Lc=e(r(),1);var Og=e(t(),1),be=Lc.forwardRef(function(ce,pe){let[we,Te]=Lc.useState();return i(()=>{if(xp.voiceOver&&Pt.webkit)Te("button")},[]),Og.jsx("span",{...ce,ref:pe,style:Oe,"aria-hidden":we?void 0:!0,...{tabIndex:0,role:we},"data-base-ui-focus-guard":""})});var ni=e(r(),1);function re(B,ce,pe,we){let Te=L(Vg).current;if(R2(Te,B,ce,pe,we))Hg(Te,[B,ce,pe,we]);return Te.callback}function Ng(B){let ce=L(Vg).current;if(M2(ce,B))Hg(ce,B);return ce.callback}function Vg(){return{callback:null,cleanup:null,refs:[]}}function R2(B,ce,pe,we,Te){return B.refs[0]!==ce||B.refs[1]!==pe||B.refs[2]!==we||B.refs[3]!==Te}function M2(B,ce){return B.refs.length!==ce.length||B.refs.some((pe,we)=>pe!==ce[we])}function Hg(B,ce){if(B.refs=ce,ce.every((pe)=>pe==null)){B.callback=null;return}B.callback=(pe)=>{if(B.cleanup)B.cleanup(),B.cleanup=null;if(pe!=null){let we=Array(ce.length).fill(null);for(let Te=0;Te<ce.length;Te+=1){let Fe=ce[Te];if(Fe==null)continue;switch(typeof Fe){case"function":{let Le=Fe(pe);if(typeof Le==="function")we[Te]=Le;break}case"object":{Fe.current=pe;break}default:}}B.cleanup=()=>{for(let Te=0;Te<ce.length;Te+=1){let Fe=ce[Te];if(Fe==null)continue;switch(typeof Fe){case"function":{let Le=we[Te];if(typeof Le==="function")Le();else Fe(null);break}case"object":{Fe.current=null;break}default:}}}}}}var _g=e(r(),1);function wp(B){if(!_g.isValidElement(B))return null;let ce=B,pe=ce.props;return(yf(19)?pe?.ref:ce.ref)??null}function rl(B,ce){if(B&&!ce)return B;if(!B&&ce)return ce;if(B||ce)return{...B,...ce};return}function Wg(B,ce){let pe={};for(let we in B){let Te=B[we];if(ce?.hasOwnProperty(we)){let Fe=ce[we](Te);if(Fe!=null)Object.assign(pe,Fe);continue}if(Te===!0)pe[`data-${we.toLowerCase()}`]="";else if(Te)pe[`data-${we.toLowerCase()}`]=Te.toString()}return pe}function zg(B,ce){return typeof B==="function"?B(ce):B}function mo(B,ce){return typeof B==="function"?B(ce):B}var Tp={};function ee(B,ce,pe,we,Te){if(!pe&&!we&&!Te&&!B)return Ac(ce);let Fe=Ac(B);if(ce)Fe=al(Fe,ce);if(pe)Fe=al(Fe,pe);if(we)Fe=al(Fe,we);if(Te)Fe=al(Fe,Te);return Fe}function qg(B){if(B.length===0)return Tp;if(B.length===1)return Ac(B[0]);let ce=Ac(B[0]);for(let pe=1;pe<B.length;pe+=1)ce=al(ce,B[pe]);return ce}function Ac(B){if(kp(B))return{...Gg(B,Tp)};return P2(B)}function al(B,ce){if(kp(ce))return Gg(ce,B);return F2(B,ce)}function P2(B){let ce={...B};for(let pe in ce){let we=ce[pe];if(Ug(pe,we))ce[pe]=jg(we)}return ce}function F2(B,ce){if(!ce)return B;for(let pe in ce){let we=ce[pe];switch(pe){case"style":{B[pe]=rl(B.style,we);break}case"className":{B[pe]=Rp(B.className,we);break}default:if(Ug(pe,we))B[pe]=D2(B[pe],we);else B[pe]=we}}return B}function Ug(B,ce){let pe=B.charCodeAt(0),we=B.charCodeAt(1),Te=B.charCodeAt(2);return pe===111&&we===110&&Te>=65&&Te<=90&&(typeof ce==="function"||typeof ce>"u")}function kp(B){return typeof B==="function"}function Gg(B,ce){if(kp(B))return B(ce);return B??Tp}function D2(B,ce){if(!ce)return B;if(!B)return jg(ce);return(...pe)=>{let we=pe[0];if(Xg(we)){let Fe=we;nl(Fe);let Le=ce(...pe);if(!Fe.baseUIHandlerPrevented)B?.(...pe);return Le}let Te=ce(...pe);return B?.(...pe),Te}}function jg(B){if(!B)return B;return(...ce)=>{let pe=ce[0];if(Xg(pe))nl(pe);return B(...ce)}}function nl(B){return B.preventBaseUIHandler=()=>{B.baseUIHandlerPrevented=!0},B}function Rp(B,ce){if(ce){if(B)return ce+" "+B;return ce}return B}function Xg(B){return B!=null&&typeof B==="object"&&"nativeEvent"in B}var Mp=e(r(),1);function c(B,ce,pe={}){let we=ce.render;if(pe.enabled!==!1)we=E2(we);let Te=L2(ce,pe,we);if(pe.enabled===!1)return null;let Fe=pe.state??I;return O2(B,we,Te,Fe)}function L2(B,ce,pe){let{className:we,style:Te}=B,{state:Fe=I,ref:Le,props:Be,stateAttributesMapping:ot,enabled:nt=!0}=ce,vt=nt?zg(we,Fe):void 0,St=nt?mo(Te,Fe):void 0,wt=nt?Wg(Fe,ot):I,Do=nt&&Be?A2(Be):void 0,eo=nt?rl(wt,Do)??{}:I;if(typeof document<"u")if(!nt)re(null,null);else if(Array.isArray(Le))eo.ref=Ng([eo.ref,wp(pe),...Le]);else eo.ref=re(eo.ref,wp(pe),Le);if(!nt)return I;if(vt!==void 0)eo.className=Rp(eo.className,vt);if(St!==void 0)eo.style=rl(eo.style,St);return eo}function A2(B){if(Array.isArray(B))return qg(B);return ee(void 0,B)}var B2=Symbol.for("react.lazy");function E2(B){if(B?.$$typeof!==B2)return B;let ce=ni.Children.toArray(B)[0];return ni.isValidElement(ce)?ce:B}function O2(B,ce,pe,we){if(ce){if(typeof ce==="function")return ce(pe,we);let Te=ee(pe,ce.props);return Te.ref=pe.ref,ni.cloneElement(ce,Te)}if(B){if(typeof B==="string")return N2(B,pe)}throw Error(f(8))}function N2(B,ce){if(B==="button")return Mp.createElement("button",{type:"button",...ce,key:ce.key});if(B==="img")return Mp.createElement("img",{alt:"",...ce,key:ce.key});return ni.createElement(B,ce)}var Kg="--toast-frontmost-height";var Ks=e(t(),1),$g=gs.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,children:Le,...Be}=ce,ot=ri(),nt=F(),vt=gs.useRef(!1),St=gs.useRef(!1),wt=gs.useRef(!1),Do=ot.useState("isEmpty"),eo=ot.useState("toasts"),Ir=ot.useState("focused"),wr=ot.useState("expanded"),Jr=ot.useState("prevFocusElement"),ta=eo[0]?.height,oa=eo.some((pa)=>pa.transitionStatus==="ending"),Qr=eo.filter((pa)=>pa.priority==="high");gs.useEffect(()=>{let pa=ot.state.viewport;if(!pa||Do)return;let na=v(pa),Ua=g(pa);function cs(Ma){if(Ma.key==="F6"&&T(Ma)!==pa)Ma.preventDefault(),ot.set("prevFocusElement",O(Ua)),pa?.focus({preventScroll:!0}),ot.pauseTimers(),ot.set("focused",!0)}function us(Ma){if(T(Ma)!==na)return;ot.set("isWindowFocused",!1),ot.pauseTimers()}function os(Ma){if(Ma.relatedTarget)return;let Ba=T(Ma),Is=O(g(pa));if(Ba===na||!u(pa,Ba)||!Ge(Is))ot.resumeTimers();nt.start(0,()=>ot.set("isWindowFocused",!0))}return se(x(na,"keydown",cs),x(na,"blur",us,!0),x(na,"focus",os,!0),x(Ua,"pointerdown",ot.handleDocumentPointerDown,!0))},[ot,nt,Do]);function sa(pa){vt.current=!0;let na=pa.relatedTarget===ot.state.viewport?eo.find((Ua)=>Ua.transitionStatus!=="ending"&&!Ua.limited):void 0;if(na)na.ref?.current?.focus();else ot.restoreFocusToPrevElement()}function ua(pa){if(pa.key==="Tab"&&pa.shiftKey&&T(pa.nativeEvent)===ot.state.viewport)pa.preventDefault(),ot.restoreFocusToPrevElement()}function ca(){if(ot.state.toasts.some((na)=>na.transitionStatus==="ending")||wt.current||!St.current)return;if(ot.state.isWindowFocused)ot.resumeTimers();ot.set("hovering",!1),St.current=!1}gs.useEffect(ca,[oa,ot]);function ea(){ot.pauseTimers(),ot.set("hovering",!0),St.current=!1}function ma(){if(ot.state.isWindowFocused)ot.resumeTimers()}function da(){St.current=!0,ca()}function ga(pa){if(pa.pointerType==="touch")wt.current=!0}function va(pa){if(pa.pointerType!=="touch")return;wt.current=!1,ca()}function La(){if(vt.current){vt.current=!1;return}if(Ir)return;if(Ge(O(g(ot.state.viewport))))ot.set("focused",!0),ot.pauseTimers()}function _a(pa){if(!Ir||u(ot.state.viewport,pa.relatedTarget))return;ot.set("focused",!1),ma()}let Aa={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:ea,onMouseMove:ea,onMouseLeave:da,onFocus:La,onBlur:_a,onKeyDown:ua,onClick:La,onPointerDown:ga,onPointerUp:va,onPointerCancel:va,style:{[Kg]:ta?`${ta}px`:void 0}},Ca={expanded:wr},Xa=!Do&&Jr&&Ks.jsx(be,{onFocus:sa}),ka=c("div",ce,{ref:[pe,ot.setViewport],state:Ca,props:[Aa,Be,{children:Ks.jsxs(gs.Fragment,{children:[Xa,Le,Xa]})}]});return Ks.jsxs(gs.Fragment,{children:[Xa,ka,!Ir&&Qr.length>0&&Ks.jsx("div",{style:Oe,children:Qr.map((pa)=>Ks.jsxs("div",{role:"alert","aria-atomic":!0,children:[Ks.jsx("div",{children:pa.title}),Ks.jsx("div",{children:pa.description})]},pa.id))})]})});var Fa=e(r(),1),l0=e(q(),1);function Ke(B){if(yf(19))return B;return B?"true":void 0}var Bc=e(r(),1),Pp=Bc.createContext(void 0);function si(){let B=Bc.useContext(Pp);if(!B)throw Error(f(66));return B}var Qg=e(r(),1);var Fp=e(q(),1);function Ne(B){if(B==null)return B;return"current"in B?B.current:B}var Ec=null;function H2(B){if(!Ec){let ce=[];Ec=ce,queueMicrotask(()=>{Ec=null,Fp.flushSync(()=>{for(let pe of ce)pe()})})}Ec.push(B)}function qe(B,ce=!1,pe=!1){let we=De();return a((Te,Fe=null)=>{we.cancel();let Le=Ne(B);if(Le==null)return;let Be=Le,ot=()=>{if(!pe){Fp.flushSync(Te);return}H2(()=>{if(!Fe?.aborted)Te()})};if(typeof Be.getAnimations!=="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){Te();return}function nt(){Promise.all(Be.getAnimations().map((vt)=>vt.finished)).then(()=>{if(!Fe?.aborted)ot()},()=>{if(Fe?.aborted)return;if(Be.getAnimations().some((St)=>St.pending||St.playState!=="finished")){nt();return}ot()})}if(ce){let vt=lt;if(!Be.hasAttribute(vt)){we.request(nt);return}let St=new MutationObserver(()=>{if(!Be.hasAttribute(vt))St.disconnect(),nt()});St.observe(Be,{attributes:!0,attributeFilter:[vt]}),Fe?.addEventListener("abort",()=>St.disconnect(),{once:!0});return}we.request(nt)})}function j(B){let{enabled:ce=!0,open:pe,ref:we,batch:Te=!1,onComplete:Fe}=B,Le=a(Fe),Be=qe(we,pe,Te);Qg.useEffect(()=>{if(!ce)return;let ot=new AbortController;return Be(Le,ot.signal),()=>{ot.abort()}},[ce,pe,Le,Be])}var hn=500,ho=500,gn={style:{transition:"none"}},cr="data-base-ui-click-trigger";var Yg="[data-base-ui-swipe-ignore]",Zg="[data-swipe-ignore]",xn={fallbackAxisSide:"none"},_t={fallbackAxisSide:"end"},Jg={clipPath:"inset(50%)",position:"fixed",top:0,left:0};var Oc=e(r(),1);function e0(B,ce){let pe=(ce??v(B).getComputedStyle(B)).transform,we=0,Te=0,Fe=1;if(pe&&pe!=="none"){let Le=pe.match(/matrix(?:3d)?\(([^)]+)\)/);if(Le){let Be=Le[1].split(", ").map(parseFloat);if(Be.length===6)we=Be[4],Te=Be[5],Fe=Math.sqrt(Be[0]*Be[0]+Be[1]*Be[1]);else if(Be.length===16)we=Be[12],Te=Be[13],Fe=Be[0]}}return{x:we,y:Te,scale:Fe}}function Nc(B,ce,pe){switch(B){case"up":return-pe;case"down":return pe;case"left":return-ce;case"right":return ce;default:return 0}}var t0="--toast-index",o0="--toast-offset-y",r0="--toast-height",a0="--toast-swipe-movement-x",n0="--toast-swipe-movement-y";var s0="data-swipe-direction",YB=lt,ZB=Wt;var c0=e(t(),1),z2={...ae,swipeDirection(B){return B?{[s0]:B}:null}},i0=40,q2=10,f0=0.5,U2=1,G2=`${Yg},${Zg}`,u0=Fa.forwardRef(function(ce,pe){let{toast:we,render:Te,className:Fe,swipeDirection:Le=["down","right"],style:Be,...ot}=ce,nt=we.positionerProps?.anchor!==void 0,vt=[];if(!nt)vt=Array.isArray(Le)?Le:[Le];let St=vt.length>0,wt=ri(),[Do,eo]=Fa.useState(void 0),[Ir,wr]=Fa.useState(!1),[Jr,ta]=Fa.useState(!1),[oa,Qr]=Fa.useState({x:0,y:0}),[sa,ua]=Fa.useState({x:0,y:0,scale:1}),[ca,ea]=Fa.useState(),[ma,da]=Fa.useState(),[ga,va]=Fa.useState(null),La=Fa.useRef(null),_a=Fa.useRef(void 0),Aa=Fa.useRef({x:0,y:0}),Ca=Fa.useRef({x:0,y:0,scale:1}),Xa=Fa.useRef(void 0),ka=Fa.useRef(0),pa=Fa.useRef(!1),na=Fa.useRef({x:0,y:0}),Ua=Fa.useRef(!1),cs=Fa.useRef({x:0,y:0}),us=Fa.useRef(null),os=Fa.useRef(null),Ma=wt.useState("toastIndex",we.id),Ba=wt.useState("toastVisibleIndex",we.id),Is=wt.useState("toastOffsetY",we.id),lc=wt.useState("focused"),Ga=wt.useState("expanded");j({open:we.transitionStatus!=="ending",ref:La,onComplete(){if(we.transitionStatus==="ending")wt.removeToast(we.id)}});let Ai=a((ya=!1)=>{let Pa=La.current;if(!Pa)return;let Qn=Pa.style.height;Pa.style.height="auto";let hs=Pa.offsetHeight;Pa.style.height=Qn;function ss(){wt.updateToastInternal(we.id,{ref:La,height:hs,transitionStatus:void 0})}if(ya)l0.flushSync(ss);else ss()});i(()=>{let ya=_a.current;if(we.transitionStatus!=="starting"&&ya===we.id)return;if(ya!==void 0)eo(void 0),ua({x:0,y:0,scale:1}),Bs({x:0,y:0});_a.current=we.id,Ai()},[Ai,we.id,we.transitionStatus]);function Bs(ya){cs.current=ya,Qr(ya)}i(()=>()=>{os.current?.abort()},[]);function mf(ya,Pa){let Qn=(Ka)=>Ka>0?Ka**f0:-(Math.abs(Ka)**f0),hs=ya>0&&!vt.includes("right")||ya<0&&!vt.includes("left"),ss=Pa>0&&!vt.includes("down")||Pa<0&&!vt.includes("up");return{x:hs?Qn(ya):ya,y:ss?Qn(Pa):Pa}}let ti=a((ya)=>{if(ya.pointerId!==us.current)return;us.current=null,os.current?.abort(),os.current=null,wr(!1),ta(!1),va(null);let Pa=Ca.current;if(ya.type==="pointercancel"||pa.current){Bs({x:Pa.x,y:Pa.y}),eo(void 0);return}let Qn=cs.current,hs=Qn.x-Pa.x,ss=Qn.y-Pa.y,Ka;for(let rs of vt)if(Nc(rs,hs,ss)>i0){Ka=rs;break}if(Ka)eo(Ka),wt.closeToast(we.id);else Bs({x:Pa.x,y:Pa.y}),eo(void 0)});function xf(ya){if(ya.button!==0)return;if(ya.pointerType==="touch")wt.pauseTimers();if(T(ya.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${G2}`))return;pa.current=!1,Xa.current=void 0,ka.current=0,us.current=ya.pointerId,Aa.current={x:ya.clientX,y:ya.clientY},na.current=Aa.current;let hs=ya.currentTarget,ss=e0(hs);Ca.current=ss,ua(ss),Bs({x:ss.x,y:ss.y}),wt.set("hovering",!0),wr(!0),ta(!1),va(null),Ua.current=!0,os.current?.abort();let Ka=new AbortController;os.current=Ka;let rs=g(hs);rs.addEventListener("pointerup",ti,{signal:Ka.signal}),rs.addEventListener("pointercancel",ti,{signal:Ka.signal}),hs.setPointerCapture?.(ya.pointerId)}function QS(ya){if(ya.pointerId!==us.current)return;if(ya.preventDefault(),Ua.current)Aa.current={x:ya.clientX,y:ya.clientY},Ua.current=!1;let{clientY:Pa,clientX:Qn,movementX:hs,movementY:ss}=ya;if(ss<0&&Pa>na.current.y||ss>0&&Pa<na.current.y)na.current={x:na.current.x,y:Pa};if(hs<0&&Qn>na.current.x||hs>0&&Qn<na.current.x)na.current={x:Qn,y:na.current.y};let Ka=Qn-Aa.current.x,rs=Pa-Aa.current.y,rC=Pa-na.current.y,aC=Qn-na.current.x,If=ga;if(!Jr){if(Math.sqrt(Ka*Ka+rs*rs)>=U2){ta(!0);let cc=vt.includes("left")||vt.includes("right"),iC=vt.includes("up")||vt.includes("down");if(cc&&iC){let fC=Math.abs(Ka),lC=Math.abs(rs);If=fC>lC?"horizontal":"vertical",va(If)}}}let Ms;if(!Xa.current){if(If==="vertical"){if(rs>0)Ms="down";else if(rs<0)Ms="up"}else if(If==="horizontal"){if(Ka>0)Ms="right";else if(Ka<0)Ms="left"}else if(Math.abs(Ka)>=Math.abs(rs))Ms=Ka>0?"right":"left";else Ms=rs>0?"down":"up";if(Ms&&vt.includes(Ms))Xa.current=Ms,ka.current=Nc(Ms,Ka,rs),eo(Ms)}else{let Kd=Xa.current,cc=Nc(Kd,aC,rC);if(cc>i0)pa.current=!1,eo(Kd);else if(!(vt.includes("left")&&vt.includes("right"))&&!(vt.includes("up")&&vt.includes("down"))&&ka.current-cc>=q2)pa.current=!0}let kh=mf(Ka,rs),Rh=Ca.current.x,Mh=Ca.current.y,nC=vt.includes("left")||vt.includes("right"),sC=vt.includes("up")||vt.includes("down");if(If!=="vertical"&&nC)Rh+=kh.x;if(If!=="horizontal"&&sC)Mh+=kh.y;Bs({x:Rh,y:Mh})}function YS(ya){if(ya.key==="Escape"){if(!La.current||!u(La.current,O(g(La.current))))return;wt.closeToast(we.id)}}Fa.useEffect(()=>{let ya=La.current;if(!St||!ya)return;function Pa(Qn){if(us.current===null||!u(ya,T(Qn)))return;Qn.preventDefault()}return x(ya,"touchmove",Pa,{passive:!1})},[St]);function ZS(){let ya=oa.x-sa.x,Pa=oa.y-sa.y;return{transition:Ir?"none":void 0,transform:Ir?`translateX(${oa.x}px) translateY(${oa.y}px) scale(${sa.scale})`:void 0,[a0]:`${ya}px`,[n0]:`${Pa}px`}}let Th=we.priority==="high",JS={role:Th?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":ca,"aria-describedby":ma,"aria-hidden":Th&&!lc?!0:void 0,onPointerDown:St?xf:void 0,onPointerMove:St?QS:void 0,onPointerUp:St?ti:void 0,onPointerCancel:St?ti:void 0,onKeyDown:YS,inert:Ke(we.limited),style:{...ZS(),[t0]:we.transitionStatus==="ending"?Ma:Ba,[o0]:`${Is}px`,[r0]:we.height?`${we.height}px`:void 0}},eC=Fa.useMemo(()=>({toast:we,setTitleId:ea,setDescriptionId:da,recalculateHeight:Ai,visibleIndex:Ba,expanded:Ga}),[we,ea,da,Ai,Ba,Ga]),tC={transitionStatus:we.transitionStatus,expanded:Ga,limited:we.limited||!1,type:we.type,swiping:Ir,swipeDirection:Do},oC=c("div",ce,{ref:[pe,La],state:tC,stateAttributesMapping:z2,props:[JS,ot]});return c0.jsx(Pp.Provider,{value:eC,children:oC})});var Vc=e(r(),1);var d0=Vc.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,...Le}=ce,{visibleIndex:Be,expanded:ot,recalculateHeight:nt}=si(),vt=Vc.useRef(null);i(()=>{nt();let Do=vt.current;if(!Do||typeof ResizeObserver!=="function"||typeof MutationObserver!=="function")return;let eo=new ResizeObserver(()=>nt(!0)),Ir=new MutationObserver(()=>nt(!0));return eo.observe(Do),Ir.observe(Do,{childList:!0,subtree:!0,characterData:!0}),()=>{eo.disconnect(),Ir.disconnect()}},[nt]);let St=Be>0;return c("div",ce,{ref:[pe,vt],state:{expanded:ot,behind:St},props:Le})});var h0=e(r(),1);var Hc=e(r(),1);var p0=0;function j2(B,ce="mui"){let[pe,we]=Hc.useState(B),Te=B||pe;return Hc.useEffect(()=>{if(pe==null)p0+=1,we(`${ce}-${p0}`)},[pe,ce]),Te}var m0=tl.useId;function Se(B,ce){if(m0!==void 0){let pe=m0();return B??(ce?`${ce}-${pe}`:pe)}return j2(B,ce)}var x0=e(r(),1);function I0(B){if(B==null||typeof B==="boolean"||B==="")return!1;if(Array.isArray(B))return B.some(I0);return!0}function _c(B){return x0.isValidElement(B)&&I0(B.props.children)}function Wc(B,ce,pe){let{toast:we,setTitleId:Te,setDescriptionId:Fe}=si(),Le=pe==="title"?Te:Fe,Be=ce??(pe==="title"?we.title:we.description);return{id:Se(B),children:Be,type:we.type,setId:Le}}function zc(B,ce,pe){let we=_c(B);return i(()=>{if(!we)return;return pe(ce),()=>{pe((Te)=>Te===ce?void 0:Te)}},[we,ce,pe]),we?B:null}var g0=h0.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,id:Le,children:Be,...ot}=ce,{id:nt,children:vt,type:St,setId:wt}=Wc(Le,Be,"description"),eo=c("p",ce,{ref:pe,state:{type:St},props:{...ot,id:nt,children:vt}});return zc(eo,nt,wt)});var y0=e(r(),1);var b0=y0.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,id:Le,children:Be,...ot}=ce,{id:nt,children:vt,type:St,setId:wt}=Wc(Le,Be,"title"),eo=c("h2",ce,{ref:pe,state:{type:St},props:{...ot,id:nt,children:vt}});return zc(eo,nt,wt)});var Uc=e(r(),1);var bf=e(r(),1);var qc=e(r(),1),Wo=qc.createContext(void 0);function Mt(B=!1){let ce=qc.useContext(Wo);if(ce===void 0&&!B)throw Error(f(16));return ce}var v0=e(r(),1);function S0(B){let{focusableWhenDisabled:ce,disabled:pe,composite:we=!1,tabIndex:Te=0,isNativeButton:Fe}=B,Le=we&&ce!==!1,Be=we&&ce===!1;return{props:v0.useMemo(()=>{let nt={onKeyDown(vt){if(pe&&ce&&vt.key!=="Tab")vt.preventDefault()}};if(!we){if(nt.tabIndex=Te,!Fe&&pe)nt.tabIndex=ce?Te:-1}if(Fe&&(ce||Le)||!Fe&&pe)nt["aria-disabled"]=pe;if(Fe&&(!ce||Be))nt.disabled=pe;return nt},[we,pe,ce,Le,Be,Fe,Te])}}function Xe(B,ce,{detail:pe=0}={}){B.dispatchEvent(new(v(B)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:pe,shiftKey:ce.shiftKey,ctrlKey:ce.ctrlKey,altKey:ce.altKey,metaKey:ce.metaKey}))}function W(B={}){let{disabled:ce=!1,focusableWhenDisabled:pe,tabIndex:we=0,native:Te=!0,composite:Fe}=B,Le=bf.useRef(null),Be=Mt(!0),ot=Fe??Be!==void 0,{props:nt}=S0({focusableWhenDisabled:pe,disabled:ce,composite:ot,tabIndex:we,isNativeButton:Te}),vt=bf.useCallback(()=>{let Do=Le.current;if(!Dp(Do))return;if(ot&&ce&&nt.disabled===void 0&&Do.disabled)Do.disabled=!1},[ce,nt.disabled,ot]);i(vt,[vt]);let St=bf.useCallback((Do={})=>{let{onClick:eo,onMouseDown:Ir,onKeyUp:wr,onKeyDown:Jr,onPointerDown:ta,...oa}=Do;return ee({onClick(Qr){if(ce){Qr.preventDefault();return}eo?.(Qr)},onMouseDown(Qr){if(!ce)Ir?.(Qr)},onKeyDown(Qr){if(ce)return;if(nl(Qr),Jr?.(Qr),Qr.baseUIHandlerPrevented)return;let sa=Qr.target===Qr.currentTarget,ua=Qr.currentTarget,ca=Dp(ua),ea=!Te&&X2(ua),ma=sa&&(Te?ca:!ea),da=Qr.key==="Enter",ga=Qr.key===" ",va=ua.getAttribute("role"),La=va?.startsWith("menuitem")||va==="option"||va==="gridcell";if(sa&&ot&&ga){if(Qr.defaultPrevented&&La)return;if(Qr.preventDefault(),!Te||ca)Qr.preventBaseUIHandler(),Xe(ua,Qr);return}if(!ma||Te||!ga&&!da){if(sa&&ea&&ga)Qr.preventDefault();return}if(Qr.defaultPrevented)return;if(Qr.preventDefault(),da)Qr.preventBaseUIHandler(),Xe(ua,Qr)},onKeyUp(Qr){if(ce)return;if(nl(Qr),wr?.(Qr),Qr.target===Qr.currentTarget&&Te&&ot&&Dp(Qr.currentTarget)&&Qr.key===" "){Qr.preventDefault();return}if(Qr.baseUIHandlerPrevented)return;if(Qr.target===Qr.currentTarget&&!Te&&!ot&&!Qr.defaultPrevented&&Qr.key===" ")Qr.preventBaseUIHandler(),Xe(Qr.currentTarget,Qr)},onPointerDown(Qr){if(ce){Qr.preventDefault();return}ta?.(Qr)}},Te?{type:"button"}:{role:"button"},nt,oa)},[ce,nt,ot,Te]),wt=a((Do)=>{Le.current=Do,vt()});return{getButtonProps:St,buttonRef:wt}}function Dp(B){return E(B)&&B.tagName==="BUTTON"}function X2(B){return E(B)&&B.tagName==="A"&&Boolean(B.href)}var C0=Uc.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,disabled:Le,nativeButton:Be=!0,...ot}=ce,nt=ri(),{toast:vt,expanded:St}=si(),[wt,Do]=Uc.useState(!1),{getButtonProps:eo,buttonRef:Ir}=W({disabled:Le,native:Be}),wr={type:vt.type};return c("button",ce,{ref:[pe,Ir],state:wr,props:[{"aria-hidden":!St&&!wt,onClick(){nt.closeToast(vt.id)},onFocus(){Do(!0)},onBlur(){Do(!1)}},ot,eo]})});var w0=e(r(),1);var T0=w0.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,disabled:Le,nativeButton:Be=!0,...ot}=ce,{toast:nt}=si(),vt=nt.actionProps?.children??ot.children,{getButtonProps:St,buttonRef:wt}=W({disabled:Le,native:Be}),Do={type:nt.type},eo=c("button",ce,{ref:[pe,wt],state:Do,props:[ot,nt.actionProps,St,{children:vt}]});return _c(eo)?eo:null});var F0=e(r(),1);var Gc=e(r(),1),M0=e(q(),1);var Ea=e(r(),1),Lp=e(q(),1);var dt="none",Ye="trigger-press",X="trigger-hover",ur="trigger-focus",$o="outside-press",Vo="item-press",yn="close-press";var bn="track-press";var Xn="input-change";var Gt="focus-out",Nr="escape-key";var jo="list-navigation",Yn="keyboard";var Zn="drag";var Jn="cancel-open",Lr="sibling-open",vn="disabled",wn="missing",Sn="initial",Fr="imperative-action";function p(B,ce,pe,we){let Te=!1,Fe=!1,Le=we??I;return{reason:B,event:ce??new Event("base-ui"),cancel(){Te=!0},allowPropagation(){Fe=!0},get isCanceled(){return Te},get isPropagationAllowed(){return Fe},trigger:pe,...Le}}function go(B,ce,pe){let we=pe??I;return{reason:B,event:ce??new Event("base-ui"),...we}}function pt(B){return`data-base-ui-${B}`}var Hi=e(t(),1),R0=Ea.createContext(null),Go=()=>Ea.useContext(R0),K2=pt("portal");function Ap(B={}){let{ref:ce,container:pe,componentProps:we=I,elementProps:Te}=B,Fe=Se(),Be=Go()?.portalNode,[ot,nt]=Ea.useState(null),[vt,St]=Ea.useState(null),wt=a((wr)=>{if(wr!==null)St(wr)}),Do=Ea.useRef(null);i(()=>{if(pe===null){if(Do.current)Do.current=null,St(null),nt(null);return}let wr=(pe&&(wc(pe)?pe:pe.current))??Be??document.body;if(wr==null){if(Do.current)Do.current=null,St(null),nt(null);return}if(Do.current!==wr)Do.current=wr,St(null),nt(wr)},[pe,Be]);let eo=c("div",we,{ref:[ce,wt],props:[{id:Fe,[K2]:""},Te]}),Ir=ot&&eo?Lp.createPortal(eo,ot):null;return{node:vt,nodeId:Ea.isValidElement(eo)?eo.props.id:void 0,subtree:Ir}}var Kt=Ea.forwardRef(function(ce,pe){let{render:we,className:Te,style:Fe,children:Le,container:Be,portalOwnerRole:ot,...nt}=ce,{node:vt,nodeId:St,subtree:wt}=Ap({container:Be,ref:pe,componentProps:ce,elementProps:nt}),Do=Ea.useRef(null),eo=Ea.useRef(null),Ir=Ea.useRef(null),wr=Ea.useRef(null),[Jr,ta]=Ea.useState(null),oa=Ea.useRef(!1),Qr=Jr?.modal,sa=Jr?.open,ua=!!Jr&&!Jr.modal&&Jr.open&&!!vt;Ea.useEffect(()=>{if(!vt||Qr)return;function ea(ma){if(vt&&ma.relatedTarget&&ut(ma))if(ma.type==="focusin"){if(oa.current)bp(vt),oa.current=!1}else Lg(vt),oa.current=!0}return se(x(vt,"focusin",ea,!0),x(vt,"focusout",ea,!0))},[vt,Qr]),i(()=>{if(!vt||sa!==!0||!oa.current)return;bp(vt),oa.current=!1},[sa,vt]);let ca=Ea.useMemo(()=>({beforeOutsideRef:Do,afterOutsideRef:eo,beforeInsideRef:Ir,afterInsideRef:wr,portalNode:vt,setFocusManagerState:ta}),[vt]);return Hi.jsxs(Ea.Fragment,{children:[wt,Hi.jsxs(R0.Provider,{value:ca,children:[ua&&vt&&Hi.jsx(be,{"data-type":"outside",ref:Do,onFocus:(ea)=>{if(ut(ea,vt))Ir.current?.focus();else{let ma=Jr?Jr.domReference:null;po(ma)?.focus()}}}),ua&&vt&&Hi.jsx("span",{role:ot,"aria-owns":St,style:Jg}),vt&&Lp.createPortal(Le,vt),ua&&vt&&Hi.jsx(be,{"data-type":"outside",ref:eo,onFocus:(ea)=>{if(ut(ea,vt))wr.current?.focus();else{let ma=Jr?Jr.domReference:null;if(lr(ma)?.focus(),Jr?.closeOnFocusOut)Jr?.onOpenChange(!1,p(Gt,ea.nativeEvent))}}})]})]})});var P0=e(t(),1),dr=Gc.forwardRef(function(ce,pe){let{children:we,container:Te,className:Fe,render:Le,style:Be,...ot}=ce,{node:nt,subtree:vt}=Ap({container:Te,ref:pe,componentProps:ce,elementProps:ot});if(!vt&&!nt)return null;return P0.jsxs(Gc.Fragment,{children:[vt,nt&&M0.createPortal(we,nt)]})});var D0=e(t(),1),L0=F0.forwardRef(function(ce,pe){return D0.jsx(dr,{ref:pe,...ce})});var A0=e(r(),1);function Bp(){let B=ri(),ce=B.useState("toasts");return A0.useMemo(()=>({toasts:ce,add:B.addToast,close:B.closeToast,update:B.updateToast,promise:B.promiseToast}),[ce,B])}function Ep(){let B=new Set;function ce(pe){B.forEach((we)=>we(pe))}return{" subscribe":function(we){return B.add(we),()=>{B.delete(we)}},add(pe){let we=pe.id||Rc("toast"),Te={...pe,id:we,transitionStatus:"starting"};return ce({action:"add",options:Te}),we},close(pe){ce({action:"close",options:{id:pe}})},update(pe,we){ce({action:"update",options:{id:pe,updates:we}})},promise(pe,we){let Te=pe;return ce({action:"promise",options:{...we,promise:pe,setPromise(Fe){Te=Fe}}}),Te}}}function E0(B){var ce,pe,we="";if(typeof B=="string"||typeof B=="number")we+=B;else if(typeof B=="object")if(Array.isArray(B)){var Te=B.length;for(ce=0;ce<Te;ce++)B[ce]&&(pe=E0(B[ce]))&&(we&&(we+=" "),we+=pe)}else for(pe in B)B[pe]&&(we&&(we+=" "),we+=pe);return we}function _i(){for(var B,ce,pe=0,we="",Te=arguments.length;pe<Te;pe++)(B=arguments[pe])&&(ce=E0(B))&&(we&&(we+=" "),we+=ce);return we}var Ko=_i;var $2=(B,ce)=>{let pe=Array(B.length+ce.length);for(let we=0;we<B.length;we++)pe[we]=B[we];for(let we=0;we<ce.length;we++)pe[B.length+we]=ce[we];return pe},Q2=(B,ce)=>({classGroupId:B,validator:ce}),W0=(B=new Map,ce=null,pe)=>({nextPart:B,validators:ce,classGroupId:pe});var O0=[];var Y2=(B)=>{let ce=J2(B),{conflictingClassGroups:pe,conflictingClassGroupModifiers:we}=B;return{getClassGroupId:(Le)=>{if(Le.startsWith("[")&&Le.endsWith("]"))return Z2(Le);let Be=Le.split("-"),ot=Be[0]===""&&Be.length>1?1:0;return z0(Be,ot,ce)},getConflictingClassGroupIds:(Le,Be)=>{if(Be){let ot=we[Le],nt=pe[Le];if(ot){if(nt)return $2(nt,ot);return ot}return nt||O0}return pe[Le]||O0}}},z0=(B,ce,pe)=>{if(B.length-ce===0)return pe.classGroupId;let Te=B[ce],Fe=pe.nextPart.get(Te);if(Fe){let nt=z0(B,ce+1,Fe);if(nt)return nt}let Le=pe.validators;if(Le===null)return;let Be=ce===0?B.join("-"):B.slice(ce).join("-"),ot=Le.length;for(let nt=0;nt<ot;nt++){let vt=Le[nt];if(vt.validator(Be))return vt.classGroupId}return},Z2=(B)=>B.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let ce=B.slice(1,-1),pe=ce.indexOf(":"),we=ce.slice(0,pe);return we?"arbitrary.."+we:void 0})(),J2=(B)=>{let{theme:ce,classGroups:pe}=B;return ew(pe,ce)},ew=(B,ce)=>{let pe=W0();for(let we in B){let Te=B[we];Np(Te,pe,we,ce)}return pe},Np=(B,ce,pe,we)=>{let Te=B.length;for(let Fe=0;Fe<Te;Fe++){let Le=B[Fe];tw(Le,ce,pe,we)}},tw=(B,ce,pe,we)=>{if(typeof B==="string"){ow(B,ce,pe);return}if(typeof B==="function"){rw(B,ce,pe,we);return}aw(B,ce,pe,we)},ow=(B,ce,pe)=>{let we=B===""?ce:q0(ce,B);we.classGroupId=pe},rw=(B,ce,pe,we)=>{if(nw(B)){Np(B(we),ce,pe,we);return}if(ce.validators===null)ce.validators=[];ce.validators.push(Q2(pe,B))},aw=(B,ce,pe,we)=>{let Te=Object.entries(B),Fe=Te.length;for(let Le=0;Le<Fe;Le++){let[Be,ot]=Te[Le];Np(ot,q0(ce,Be),pe,we)}},q0=(B,ce)=>{let pe=B,we=ce.split("-"),Te=we.length;for(let Fe=0;Fe<Te;Fe++){let Le=we[Fe],Be=pe.nextPart.get(Le);if(!Be)Be=W0(),pe.nextPart.set(Le,Be);pe=Be}return pe},nw=(B)=>("isThemeGetter"in B)&&B.isThemeGetter===!0,sw=(B)=>{if(B<1)return{get:()=>{return},set:()=>{}};let ce=0,pe=Object.create(null),we=Object.create(null),Te=(Fe,Le)=>{if(pe[Fe]=Le,ce++,ce>B)ce=0,we=pe,pe=Object.create(null)};return{get(Fe){let Le=pe[Fe];if(Le!==void 0)return Le;if((Le=we[Fe])!==void 0)return Te(Fe,Le),Le},set(Fe,Le){if(Fe in pe)pe[Fe]=Le;else Te(Fe,Le)}}};var iw=[],N0=(B,ce,pe,we,Te)=>({modifiers:B,hasImportantModifier:ce,baseClassName:pe,maybePostfixModifierPosition:we,isExternal:Te}),fw=(B)=>{let{prefix:ce,experimentalParseClassName:pe}=B,we=(Te)=>{let Fe=[],Le=0,Be=0,ot=0,nt,vt=Te.length;for(let Ir=0;Ir<vt;Ir++){let wr=Te[Ir];if(Le===0&&Be===0){if(wr===":"){Fe.push(Te.slice(ot,Ir)),ot=Ir+1;continue}if(wr==="/"){nt=Ir;continue}}if(wr==="[")Le++;else if(wr==="]")Le--;else if(wr==="(")Be++;else if(wr===")")Be--}let St=Fe.length===0?Te:Te.slice(ot),wt=St,Do=!1;if(St.endsWith("!"))wt=St.slice(0,-1),Do=!0;else if(St.startsWith("!"))wt=St.slice(1),Do=!0;let eo=nt&&nt>ot?nt-ot:void 0;return N0(Fe,Do,wt,eo)};if(ce){let Te=ce+":",Fe=we;we=(Le)=>Le.startsWith(Te)?Fe(Le.slice(Te.length)):N0(iw,!1,Le,void 0,!0)}if(pe){let Te=we;we=(Fe)=>pe({className:Fe,parseClassName:Te})}return we},lw=(B)=>{let ce=new Map;return B.orderSensitiveModifiers.forEach((pe,we)=>{ce.set(pe,1e6+we)}),(pe)=>{let we=[],Te=[];for(let Fe=0;Fe<pe.length;Fe++){let Le=pe[Fe],Be=Le[0]==="[",ot=ce.has(Le);if(Be||ot){if(Te.length>0)Te.sort(),we.push(...Te),Te=[];we.push(Le)}else Te.push(Le)}if(Te.length>0)Te.sort(),we.push(...Te);return we}},cw=(B)=>({cache:sw(B.cacheSize),parseClassName:fw(B),sortModifiers:lw(B),postfixLookupClassGroupIds:uw(B),...Y2(B)}),uw=(B)=>{let ce=Object.create(null),pe=B.postfixLookupClassGroups;if(pe)for(let we=0;we<pe.length;we++)ce[pe[we]]=!0;return ce},dw=/\s+/,pw=(B,ce)=>{let{parseClassName:pe,getClassGroupId:we,getConflictingClassGroupIds:Te,sortModifiers:Fe,postfixLookupClassGroupIds:Le}=ce,Be=[],ot=B.trim().split(dw),nt="";for(let vt=ot.length-1;vt>=0;vt-=1){let St=ot[vt],{isExternal:wt,modifiers:Do,hasImportantModifier:eo,baseClassName:Ir,maybePostfixModifierPosition:wr}=pe(St);if(wt){nt=St+(nt.length>0?" "+nt:nt);continue}let Jr=!!wr,ta;if(Jr){let ca=Ir.substring(0,wr);ta=we(ca);let ea=ta&&Le[ta]?we(Ir):void 0;if(ea&&ea!==ta)ta=ea,Jr=!1}else ta=we(Ir);if(!ta){if(!Jr){nt=St+(nt.length>0?" "+nt:nt);continue}if(ta=we(Ir),!ta){nt=St+(nt.length>0?" "+nt:nt);continue}Jr=!1}let oa=Do.length===0?"":Do.length===1?Do[0]:Fe(Do).join(":"),Qr=eo?oa+"!":oa,sa=Qr+ta;if(Be.indexOf(sa)>-1)continue;Be.push(sa);let ua=Te(ta,Jr);for(let ca=0;ca<ua.length;++ca){let ea=ua[ca];Be.push(Qr+ea)}nt=St+(nt.length>0?" "+nt:nt)}return nt},mw=(...B)=>{let ce=0,pe,we,Te="";while(ce<B.length)if(pe=B[ce++]){if(we=U0(pe))Te&&(Te+=" "),Te+=we}return Te},U0=(B)=>{if(typeof B==="string")return B;let ce,pe="";for(let we=0;we<B.length;we++)if(B[we]){if(ce=U0(B[we]))pe&&(pe+=" "),pe+=ce}return pe},xw=(B,...ce)=>{let pe,we,Te,Fe,Le=(ot)=>{let nt=ce.reduce((vt,St)=>St(vt),B());return pe=cw(nt),we=pe.cache.get,Te=pe.cache.set,Fe=Be,Be(ot)},Be=(ot)=>{let nt=we(ot);if(nt)return nt;let vt=pw(ot,pe);return Te(ot,vt),vt};return Fe=Le,(...ot)=>Fe(mw(...ot))},Iw=[],Za=(B)=>{let ce=(pe)=>pe[B]||Iw;return ce.isThemeGetter=!0,ce},G0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ii=(B)=>hw.test(B),ha=(B)=>!!B&&!Number.isNaN(Number(B)),Os=(B)=>!!B&&Number.isInteger(Number(B)),Op=(B)=>B.endsWith("%")&&ha(B.slice(0,-1)),$s=(B)=>gw.test(B),X0=()=>!0,Cw=(B)=>yw.test(B)&&!bw.test(B),Vp=()=>!1,ww=(B)=>vw.test(B),Tw=(B)=>Sw.test(B),kw=(B)=>!fa(B)&&!la(B),Rw=(B)=>B.startsWith("@container")&&(B[10]==="/"&&B[11]!==void 0||B[11]==="s"&&B[16]!==void 0&&B.startsWith("-size/",10)||B[11]==="n"&&B[18]!==void 0&&B.startsWith("-normal/",10)),Mw=(B)=>fi(B,Q0,Vp),fa=(B)=>G0.test(B),Wi=(B)=>fi(B,Y0,Cw),V0=(B)=>fi(B,Ow,ha),Pw=(B)=>fi(B,J0,X0),Fw=(B)=>fi(B,Z0,Vp),H0=(B)=>fi(B,K0,Vp),Dw=(B)=>fi(B,$0,Tw),jc=(B)=>fi(B,ey,ww),la=(B)=>j0.test(B),sl=(B)=>zi(B,Y0),Lw=(B)=>zi(B,Z0),_0=(B)=>zi(B,K0),Aw=(B)=>zi(B,Q0),Bw=(B)=>zi(B,$0),Xc=(B)=>zi(B,ey,!0),Ew=(B)=>zi(B,J0,!0),fi=(B,ce,pe)=>{let we=G0.exec(B);if(we){if(we[1])return ce(we[1]);return pe(we[2])}return!1},zi=(B,ce,pe=!1)=>{let we=j0.exec(B);if(we){if(we[1])return ce(we[1]);return pe}return!1},K0=(B)=>B==="position"||B==="percentage",$0=(B)=>B==="image"||B==="url",Q0=(B)=>B==="length"||B==="size"||B==="bg-size",Y0=(B)=>B==="length",Ow=(B)=>B==="number",Z0=(B)=>B==="family-name",J0=(B)=>B==="number"||B==="weight",ey=(B)=>B==="shadow";var Nw=()=>{let B=Za("color"),ce=Za("font"),pe=Za("text"),we=Za("font-weight"),Te=Za("tracking"),Fe=Za("leading"),Le=Za("breakpoint"),Be=Za("container"),ot=Za("spacing"),nt=Za("radius"),vt=Za("shadow"),St=Za("inset-shadow"),wt=Za("text-shadow"),Do=Za("drop-shadow"),eo=Za("blur"),Ir=Za("perspective"),wr=Za("aspect"),Jr=Za("ease"),ta=Za("animate"),oa=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Qr=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],sa=()=>[...Qr(),la,fa],ua=()=>["auto","hidden","clip","visible","scroll"],ca=()=>["auto","contain","none"],ea=()=>[la,fa,ot],ma=()=>[ii,"full","auto",...ea()],da=()=>[Os,"none","subgrid",la,fa],ga=()=>["auto",{span:["full",Os,la,fa]},Os,la,fa],va=()=>[Os,"auto",la,fa],La=()=>["auto","min","max","fr",la,fa],_a=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Aa=()=>["start","end","center","stretch","center-safe","end-safe"],Ca=()=>["auto",...ea()],Xa=()=>[ii,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ea()],ka=()=>[ii,"screen","full","dvw","lvw","svw","min","max","fit",...ea()],pa=()=>[ii,"screen","full","lh","dvh","lvh","svh","min","max","fit",...ea()],na=()=>[B,la,fa],Ua=()=>[...Qr(),_0,H0,{position:[la,fa]}],cs=()=>["no-repeat",{repeat:["","x","y","space","round"]}],us=()=>["auto","cover","contain",Aw,Mw,{size:[la,fa]}],os=()=>[Op,sl,Wi],Ma=()=>["","none","full",nt,la,fa],Ba=()=>["",ha,sl,Wi],Is=()=>["solid","dashed","dotted","double"],lc=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ga=()=>[ha,Op,_0,H0],Ai=()=>["","none",eo,la,fa],Bs=()=>["none",ha,la,fa],mf=()=>["none",ha,la,fa],ti=()=>[ha,la,fa],xf=()=>[ii,"full",...ea()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$s],breakpoint:[$s],color:[X0],container:[$s],"drop-shadow":[$s],ease:["in","out","in-out"],font:[kw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$s],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$s],shadow:[$s],spacing:["px",ha],text:[$s],"text-shadow":[$s],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ii,fa,la,wr]}],container:["container"],"container-type":[{"@container":["","normal","size",la,fa]}],"container-named":[Rw],columns:[{columns:[ha,fa,la,Be]}],"break-after":[{"break-after":oa()}],"break-before":[{"break-before":oa()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:sa()}],overflow:[{overflow:ua()}],"overflow-x":[{"overflow-x":ua()}],"overflow-y":[{"overflow-y":ua()}],overscroll:[{overscroll:ca()}],"overscroll-x":[{"overscroll-x":ca()}],"overscroll-y":[{"overscroll-y":ca()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ma()}],"inset-x":[{"inset-x":ma()}],"inset-y":[{"inset-y":ma()}],start:[{"inset-s":ma(),start:ma()}],end:[{"inset-e":ma(),end:ma()}],"inset-bs":[{"inset-bs":ma()}],"inset-be":[{"inset-be":ma()}],top:[{top:ma()}],right:[{right:ma()}],bottom:[{bottom:ma()}],left:[{left:ma()}],visibility:["visible","invisible","collapse"],z:[{z:[Os,"auto",la,fa]}],basis:[{basis:[ii,"full","auto",Be,...ea()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ha,ii,"auto","initial","none",fa]}],grow:[{grow:["",ha,la,fa]}],shrink:[{shrink:["",ha,la,fa]}],order:[{order:[Os,"first","last","none",la,fa]}],"grid-cols":[{"grid-cols":da()}],"col-start-end":[{col:ga()}],"col-start":[{"col-start":va()}],"col-end":[{"col-end":va()}],"grid-rows":[{"grid-rows":da()}],"row-start-end":[{row:ga()}],"row-start":[{"row-start":va()}],"row-end":[{"row-end":va()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":La()}],"auto-rows":[{"auto-rows":La()}],gap:[{gap:ea()}],"gap-x":[{"gap-x":ea()}],"gap-y":[{"gap-y":ea()}],"justify-content":[{justify:[..._a(),"normal"]}],"justify-items":[{"justify-items":[...Aa(),"normal"]}],"justify-self":[{"justify-self":["auto",...Aa()]}],"align-content":[{content:["normal",..._a()]}],"align-items":[{items:[...Aa(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Aa(),{baseline:["","last"]}]}],"place-content":[{"place-content":_a()}],"place-items":[{"place-items":[...Aa(),"baseline"]}],"place-self":[{"place-self":["auto",...Aa()]}],p:[{p:ea()}],px:[{px:ea()}],py:[{py:ea()}],ps:[{ps:ea()}],pe:[{pe:ea()}],pbs:[{pbs:ea()}],pbe:[{pbe:ea()}],pt:[{pt:ea()}],pr:[{pr:ea()}],pb:[{pb:ea()}],pl:[{pl:ea()}],m:[{m:Ca()}],mx:[{mx:Ca()}],my:[{my:Ca()}],ms:[{ms:Ca()}],me:[{me:Ca()}],mbs:[{mbs:Ca()}],mbe:[{mbe:Ca()}],mt:[{mt:Ca()}],mr:[{mr:Ca()}],mb:[{mb:Ca()}],ml:[{ml:Ca()}],"space-x":[{"space-x":ea()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ea()}],"space-y-reverse":["space-y-reverse"],size:[{size:Xa()}],"inline-size":[{inline:["auto",...ka()]}],"min-inline-size":[{"min-inline":["auto",...ka()]}],"max-inline-size":[{"max-inline":["none",...ka()]}],"block-size":[{block:["auto",...pa()]}],"min-block-size":[{"min-block":["auto",...pa()]}],"max-block-size":[{"max-block":["none",...pa()]}],w:[{w:[Be,"screen",...Xa()]}],"min-w":[{"min-w":[Be,"screen","none",...Xa()]}],"max-w":[{"max-w":[Be,"screen","none","prose",{screen:[Le]},...Xa()]}],h:[{h:["screen","lh",...Xa()]}],"min-h":[{"min-h":["screen","lh","none",...Xa()]}],"max-h":[{"max-h":["screen","lh",...Xa()]}],"font-size":[{text:["base",pe,sl,Wi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[we,Ew,Pw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Op,fa]}],"font-family":[{font:[Lw,Fw,ce]}],"font-features":[{"font-features":[fa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[Te,la,fa]}],"line-clamp":[{"line-clamp":[ha,"none",la,V0]}],leading:[{leading:[Fe,...ea()]}],"list-image":[{"list-image":["none",la,fa]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",la,fa]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:na()}],"text-color":[{text:na()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Is(),"wavy"]}],"text-decoration-thickness":[{decoration:[ha,"from-font","auto",la,Wi]}],"text-decoration-color":[{decoration:na()}],"underline-offset":[{"underline-offset":[ha,"auto",la,fa]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ea()}],"tab-size":[{tab:[Os,la,fa]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",la,fa]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",la,fa]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ua()}],"bg-repeat":[{bg:cs()}],"bg-size":[{bg:us()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Os,la,fa],radial:["",la,fa],conic:[Os,la,fa]},Bw,Dw]}],"bg-color":[{bg:na()}],"gradient-from-pos":[{from:os()}],"gradient-via-pos":[{via:os()}],"gradient-to-pos":[{to:os()}],"gradient-from":[{from:na()}],"gradient-via":[{via:na()}],"gradient-to":[{to:na()}],rounded:[{rounded:Ma()}],"rounded-s":[{"rounded-s":Ma()}],"rounded-e":[{"rounded-e":Ma()}],"rounded-t":[{"rounded-t":Ma()}],"rounded-r":[{"rounded-r":Ma()}],"rounded-b":[{"rounded-b":Ma()}],"rounded-l":[{"rounded-l":Ma()}],"rounded-ss":[{"rounded-ss":Ma()}],"rounded-se":[{"rounded-se":Ma()}],"rounded-ee":[{"rounded-ee":Ma()}],"rounded-es":[{"rounded-es":Ma()}],"rounded-tl":[{"rounded-tl":Ma()}],"rounded-tr":[{"rounded-tr":Ma()}],"rounded-br":[{"rounded-br":Ma()}],"rounded-bl":[{"rounded-bl":Ma()}],"border-w":[{border:Ba()}],"border-w-x":[{"border-x":Ba()}],"border-w-y":[{"border-y":Ba()}],"border-w-s":[{"border-s":Ba()}],"border-w-e":[{"border-e":Ba()}],"border-w-bs":[{"border-bs":Ba()}],"border-w-be":[{"border-be":Ba()}],"border-w-t":[{"border-t":Ba()}],"border-w-r":[{"border-r":Ba()}],"border-w-b":[{"border-b":Ba()}],"border-w-l":[{"border-l":Ba()}],"divide-x":[{"divide-x":Ba()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ba()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Is(),"hidden","none"]}],"divide-style":[{divide:[...Is(),"hidden","none"]}],"border-color":[{border:na()}],"border-color-x":[{"border-x":na()}],"border-color-y":[{"border-y":na()}],"border-color-s":[{"border-s":na()}],"border-color-e":[{"border-e":na()}],"border-color-bs":[{"border-bs":na()}],"border-color-be":[{"border-be":na()}],"border-color-t":[{"border-t":na()}],"border-color-r":[{"border-r":na()}],"border-color-b":[{"border-b":na()}],"border-color-l":[{"border-l":na()}],"divide-color":[{divide:na()}],"outline-style":[{outline:[...Is(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ha,la,fa]}],"outline-w":[{outline:["",ha,sl,Wi]}],"outline-color":[{outline:na()}],shadow:[{shadow:["","none",vt,Xc,jc]}],"shadow-color":[{shadow:na()}],"inset-shadow":[{"inset-shadow":["none",St,Xc,jc]}],"inset-shadow-color":[{"inset-shadow":na()}],"ring-w":[{ring:Ba()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:na()}],"ring-offset-w":[{"ring-offset":[ha,Wi]}],"ring-offset-color":[{"ring-offset":na()}],"inset-ring-w":[{"inset-ring":Ba()}],"inset-ring-color":[{"inset-ring":na()}],"text-shadow":[{"text-shadow":["none",wt,Xc,jc]}],"text-shadow-color":[{"text-shadow":na()}],opacity:[{opacity:[ha,la,fa]}],"mix-blend":[{"mix-blend":[...lc(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":lc()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ha]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ga()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ga()}],"mask-image-linear-from-color":[{"mask-linear-from":na()}],"mask-image-linear-to-color":[{"mask-linear-to":na()}],"mask-image-t-from-pos":[{"mask-t-from":Ga()}],"mask-image-t-to-pos":[{"mask-t-to":Ga()}],"mask-image-t-from-color":[{"mask-t-from":na()}],"mask-image-t-to-color":[{"mask-t-to":na()}],"mask-image-r-from-pos":[{"mask-r-from":Ga()}],"mask-image-r-to-pos":[{"mask-r-to":Ga()}],"mask-image-r-from-color":[{"mask-r-from":na()}],"mask-image-r-to-color":[{"mask-r-to":na()}],"mask-image-b-from-pos":[{"mask-b-from":Ga()}],"mask-image-b-to-pos":[{"mask-b-to":Ga()}],"mask-image-b-from-color":[{"mask-b-from":na()}],"mask-image-b-to-color":[{"mask-b-to":na()}],"mask-image-l-from-pos":[{"mask-l-from":Ga()}],"mask-image-l-to-pos":[{"mask-l-to":Ga()}],"mask-image-l-from-color":[{"mask-l-from":na()}],"mask-image-l-to-color":[{"mask-l-to":na()}],"mask-image-x-from-pos":[{"mask-x-from":Ga()}],"mask-image-x-to-pos":[{"mask-x-to":Ga()}],"mask-image-x-from-color":[{"mask-x-from":na()}],"mask-image-x-to-color":[{"mask-x-to":na()}],"mask-image-y-from-pos":[{"mask-y-from":Ga()}],"mask-image-y-to-pos":[{"mask-y-to":Ga()}],"mask-image-y-from-color":[{"mask-y-from":na()}],"mask-image-y-to-color":[{"mask-y-to":na()}],"mask-image-radial":[{"mask-radial":[la,fa]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ga()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ga()}],"mask-image-radial-from-color":[{"mask-radial-from":na()}],"mask-image-radial-to-color":[{"mask-radial-to":na()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Qr()}],"mask-image-conic-pos":[{"mask-conic":[ha]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ga()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ga()}],"mask-image-conic-from-color":[{"mask-conic-from":na()}],"mask-image-conic-to-color":[{"mask-conic-to":na()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ua()}],"mask-repeat":[{mask:cs()}],"mask-size":[{mask:us()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",la,fa]}],filter:[{filter:["","none",la,fa]}],blur:[{blur:Ai()}],brightness:[{brightness:[ha,la,fa]}],contrast:[{contrast:[ha,la,fa]}],"drop-shadow":[{"drop-shadow":["","none",Do,Xc,jc]}],"drop-shadow-color":[{"drop-shadow":na()}],grayscale:[{grayscale:["",ha,la,fa]}],"hue-rotate":[{"hue-rotate":[ha,la,fa]}],invert:[{invert:["",ha,la,fa]}],saturate:[{saturate:[ha,la,fa]}],sepia:[{sepia:["",ha,la,fa]}],"backdrop-filter":[{"backdrop-filter":["","none",la,fa]}],"backdrop-blur":[{"backdrop-blur":Ai()}],"backdrop-brightness":[{"backdrop-brightness":[ha,la,fa]}],"backdrop-contrast":[{"backdrop-contrast":[ha,la,fa]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ha,la,fa]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ha,la,fa]}],"backdrop-invert":[{"backdrop-invert":["",ha,la,fa]}],"backdrop-opacity":[{"backdrop-opacity":[ha,la,fa]}],"backdrop-saturate":[{"backdrop-saturate":[ha,la,fa]}],"backdrop-sepia":[{"backdrop-sepia":["",ha,la,fa]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ea()}],"border-spacing-x":[{"border-spacing-x":ea()}],"border-spacing-y":[{"border-spacing-y":ea()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",la,fa]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ha,"initial",la,fa]}],ease:[{ease:["linear","initial",Jr,la,fa]}],delay:[{delay:[ha,la,fa]}],animate:[{animate:["none",ta,la,fa]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[Ir,la,fa]}],"perspective-origin":[{"perspective-origin":sa()}],rotate:[{rotate:Bs()}],"rotate-x":[{"rotate-x":Bs()}],"rotate-y":[{"rotate-y":Bs()}],"rotate-z":[{"rotate-z":Bs()}],scale:[{scale:mf()}],"scale-x":[{"scale-x":mf()}],"scale-y":[{"scale-y":mf()}],"scale-z":[{"scale-z":mf()}],"scale-3d":["scale-3d"],skew:[{skew:ti()}],"skew-x":[{"skew-x":ti()}],"skew-y":[{"skew-y":ti()}],transform:[{transform:[la,fa,"","none","gpu","cpu"]}],"transform-origin":[{origin:sa()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xf()}],"translate-x":[{"translate-x":xf()}],"translate-y":[{"translate-y":xf()}],"translate-z":[{"translate-z":xf()}],"translate-none":["translate-none"],zoom:[{zoom:[Os,la,fa]}],accent:[{accent:na()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:na()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",la,fa]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":na()}],"scrollbar-track-color":[{"scrollbar-track":na()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":ea()}],"scroll-mx":[{"scroll-mx":ea()}],"scroll-my":[{"scroll-my":ea()}],"scroll-ms":[{"scroll-ms":ea()}],"scroll-me":[{"scroll-me":ea()}],"scroll-mbs":[{"scroll-mbs":ea()}],"scroll-mbe":[{"scroll-mbe":ea()}],"scroll-mt":[{"scroll-mt":ea()}],"scroll-mr":[{"scroll-mr":ea()}],"scroll-mb":[{"scroll-mb":ea()}],"scroll-ml":[{"scroll-ml":ea()}],"scroll-p":[{"scroll-p":ea()}],"scroll-px":[{"scroll-px":ea()}],"scroll-py":[{"scroll-py":ea()}],"scroll-ps":[{"scroll-ps":ea()}],"scroll-pe":[{"scroll-pe":ea()}],"scroll-pbs":[{"scroll-pbs":ea()}],"scroll-pbe":[{"scroll-pbe":ea()}],"scroll-pt":[{"scroll-pt":ea()}],"scroll-pr":[{"scroll-pr":ea()}],"scroll-pb":[{"scroll-pb":ea()}],"scroll-pl":[{"scroll-pl":ea()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",la,fa]}],fill:[{fill:["none",...na()]}],"stroke-w":[{stroke:[ha,sl,Wi,V0]}],stroke:[{stroke:["none",...na()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Kc=xw(Nw);function n(...B){return Kc(_i(B))}var ty=e(r(),1);var Hp=ty.forwardRef(function(ce,pe){let{render:we,className:Te,disabled:Fe=!1,focusableWhenDisabled:Le=!1,nativeButton:Be=!0,style:ot,...nt}=ce,{getButtonProps:vt,buttonRef:St}=W({disabled:Fe,focusableWhenDisabled:Le,native:Be});return c("button",ce,{state:{disabled:Fe},ref:[pe,St],props:[nt,vt]})});var oy=(B)=>typeof B==="boolean"?`${B}`:B===0?"0":B,ry=_i,Ze=(B,ce)=>(pe)=>{var we;if((ce===null||ce===void 0?void 0:ce.variants)==null)return ry(B,pe===null||pe===void 0?void 0:pe.class,pe===null||pe===void 0?void 0:pe.className);let{variants:Te,defaultVariants:Fe}=ce,Le=Object.keys(Te).map((nt)=>{let vt=pe===null||pe===void 0?void 0:pe[nt],St=Fe===null||Fe===void 0?void 0:Fe[nt];if(vt===null)return null;let wt=oy(vt)||oy(St);return Te[nt][wt]}),Be=pe&&Object.entries(pe).reduce((nt,vt)=>{let[St,wt]=vt;if(wt===void 0)return nt;return nt[St]=wt,nt},{}),ot=ce===null||ce===void 0?void 0:(we=ce.compoundVariants)===null||we===void 0?void 0:we.reduce((nt,vt)=>{let{class:St,className:wt,...Do}=vt;return Object.entries(Do).every((eo)=>{let[Ir,wr]=eo;return Array.isArray(wr)?wr.includes({...Fe,...Be}[Ir]):{...Fe,...Be}[Ir]===wr})?[...nt,St,wt]:nt},[]);return ry(B,Le,ot,pe===null||pe===void 0?void 0:pe.class,pe===null||pe===void 0?void 0:pe.className)};function m(...B){return Kc(_i(B))}var ay=e(t(),1),Ae=Ze("inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 rounded-lg text-sm font-medium whitespace-nowrap transition-all duration-100 outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&>svg]:pointer-events-none [&>svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground inset-shadow-[0_0_8px_color-mix(in_oklab,var(--color-white)_20%,transparent)] hover:bg-primary/90 disabled:bg-accent disabled:text-muted-foreground disabled:opacity-100 disabled:shadow-none",secondary:"bg-accent text-accent-foreground hover:bg-[color-mix(in_oklch,var(--accent),var(--foreground)_3%)] disabled:text-muted-foreground disabled:opacity-100",outline:"border bg-background text-foreground hover:bg-[color-mix(in_oklch,var(--background),var(--foreground)_3%)]",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-white inset-shadow-[0_0_8px_color-mix(in_oklab,var(--color-white)_20%,transparent)] hover:bg-destructive/90 focus-visible:border-destructive/40 focus-visible:ring-destructive/20"},size:{xs:"h-6 gap-1 rounded-md px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3",sm:"h-7 gap-1.5 rounded-md px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&>svg]:size-4",default:"h-8 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 [&>svg]:size-5",lg:"h-9 rounded-xl px-3.5 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 [&>svg]:size-5","icon-xs":"size-6 rounded-md [&>svg]:size-3","icon-sm":"size-7 rounded-md [&>svg]:size-4",icon:"size-8 [&>svg]:size-5","icon-lg":"size-9 rounded-xl [&>svg]:size-5"}},defaultVariants:{variant:"default",size:"default"}});function s({className:B,variant:ce="default",size:pe="default",...we}){return ay.jsx(Hp,{"data-slot":"button",className:m(Ae({variant:ce,size:pe,className:B})),...we})}var vf=e(r(),1);var ny={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var o=(B,ce,pe,we)=>{let Te=vf.forwardRef(({color:Fe="currentColor",size:Le=24,stroke:Be=2,title:ot,className:nt,children:vt,...St},wt)=>vf.createElement("svg",{ref:wt,...ny[B],width:Le,height:Le,className:["tabler-icon",`tabler-icon-${ce}`,nt].join(" "),...B==="filled"?{fill:Fe}:{strokeWidth:Be,stroke:Fe},...St},[ot&&vf.createElement("title",{key:"svg-title"},ot),...we.map(([Do,eo])=>vf.createElement(Do,eo)),...Array.isArray(vt)?vt:[vt]]));return Te.displayName=`${pe}`,Te};var Vw=[["path",{d:"M3 12h4l3 8l4 -16l3 8h4",key:"svg-0"}]],_p=o("outline","activity","Activity",Vw);var Hw=[["path",{d:"M12.802 2.165l5.575 2.389c.48 .206 .863 .589 1.07 1.07l2.388 5.574c.22 .512 .22 1.092 0 1.604l-2.389 5.575c-.206 .48 -.589 .863 -1.07 1.07l-5.574 2.388c-.512 .22 -1.092 .22 -1.604 0l-5.575 -2.389a2.036 2.036 0 0 1 -1.07 -1.07l-2.388 -5.574a2.036 2.036 0 0 1 0 -1.604l2.389 -5.575c.206 -.48 .589 -.863 1.07 -1.07l5.574 -2.388a2.036 2.036 0 0 1 1.604 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Wp=o("outline","alert-octagon","AlertOctagon",Hw);var _w=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Br=o("outline","alert-triangle","AlertTriangle",_w);var Ww=[["path",{d:"M4 13h5",key:"svg-0"}],["path",{d:"M12 16v-8h3a2 2 0 0 1 2 2v1a2 2 0 0 1 -2 2h-3",key:"svg-1"}],["path",{d:"M20 8v8",key:"svg-2"}],["path",{d:"M9 16v-5.5a2.5 2.5 0 0 0 -5 0v5.5",key:"svg-3"}]],zp=o("outline","api","Api",Ww);var zw=[["path",{d:"M17 7l-10 10",key:"svg-0"}],["path",{d:"M8 7l9 0l0 9",key:"svg-1"}]],pr=o("outline","arrow-up-right","ArrowUpRight",zw);var qw=[["path",{d:"M12 12v.01",key:"svg-0"}],["path",{d:"M19.071 4.929c-1.562 -1.562 -6 .337 -9.9 4.243c-3.905 3.905 -5.804 8.337 -4.242 9.9c1.562 1.561 6 -.338 9.9 -4.244c3.905 -3.905 5.804 -8.337 4.242 -9.9",key:"svg-1"}],["path",{d:"M4.929 4.929c-1.562 1.562 .337 6 4.243 9.9c3.905 3.905 8.337 5.804 9.9 4.242c1.561 -1.562 -.338 -6 -4.244 -9.9c-3.905 -3.905 -8.337 -5.804 -9.9 -4.242",key:"svg-2"}]],qp=o("outline","atom","Atom",qw);var Uw=[["path",{d:"M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}]],Up=o("outline","bell","Bell",Uw);var Gw=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],zr=o("outline","bolt","Bolt",Gw);var jw=[["path",{d:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-0"}],["path",{d:"M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0",key:"svg-1"}],["path",{d:"M3 6l0 13",key:"svg-2"}],["path",{d:"M12 6l0 13",key:"svg-3"}],["path",{d:"M21 6l0 13",key:"svg-4"}]],Gp=o("outline","book","Book",jw);var Xw=[["path",{d:"M15.5 13a3.5 3.5 0 0 0 -3.5 3.5v1a3.5 3.5 0 0 0 7 0v-1.8",key:"svg-0"}],["path",{d:"M8.5 13a3.5 3.5 0 0 1 3.5 3.5v1a3.5 3.5 0 0 1 -7 0v-1.8",key:"svg-1"}],["path",{d:"M17.5 16a3.5 3.5 0 0 0 0 -7h-.5",key:"svg-2"}],["path",{d:"M19 9.3v-2.8a3.5 3.5 0 0 0 -7 0",key:"svg-3"}],["path",{d:"M6.5 16a3.5 3.5 0 0 1 0 -7h.5",key:"svg-4"}],["path",{d:"M5 9.3v-2.8a3.5 3.5 0 0 1 7 0v10",key:"svg-5"}]],jp=o("outline","brain","Brain",Xw);var Kw=[["path",{d:"M3 9a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -9",key:"svg-0"}],["path",{d:"M8 7v-2a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v2",key:"svg-1"}],["path",{d:"M12 12l0 .01",key:"svg-2"}],["path",{d:"M3 13a20 20 0 0 0 18 0",key:"svg-3"}]],Xp=o("outline","briefcase","Briefcase",Kw);var $w=[["path",{d:"M9 9v-1a3 3 0 0 1 6 0v1",key:"svg-0"}],["path",{d:"M8 9h8a6 6 0 0 1 1 3v3a5 5 0 0 1 -10 0v-3a6 6 0 0 1 1 -3",key:"svg-1"}],["path",{d:"M3 13l4 0",key:"svg-2"}],["path",{d:"M17 13l4 0",key:"svg-3"}],["path",{d:"M12 20l0 -6",key:"svg-4"}],["path",{d:"M4 19l3.35 -2",key:"svg-5"}],["path",{d:"M20 19l-3.35 -2",key:"svg-6"}],["path",{d:"M4 7l3.75 2.4",key:"svg-7"}],["path",{d:"M20 7l-3.75 2.4",key:"svg-8"}]],Kp=o("outline","bug","Bug",$w);var Qw=[["path",{d:"M3 12h1m8 -9v1m8 8h1m-15.4 -6.4l.7 .7m12.1 -.7l-.7 .7",key:"svg-0"}],["path",{d:"M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0 -1 3a2 2 0 0 1 -4 0a3.5 3.5 0 0 0 -1 -3",key:"svg-1"}],["path",{d:"M9.7 17l4.6 0",key:"svg-2"}]],$p=o("outline","bulb","Bulb",Qw);var Yw=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]],Qp=o("outline","calendar","Calendar",Yw);var Zw=[["path",{d:"M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],Yp=o("outline","camera","Camera",Zw);var Jw=[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]],Zp=o("outline","chart-bar","ChartBar",Jw);var eT=[["path",{d:"M12 3c1.918 0 3.52 1.35 3.91 3.151a4 4 0 0 1 2.09 7.723l0 7.126h-12v-7.126a4 4 0 1 1 2.092 -7.723a4 4 0 0 1 3.908 -3.151",key:"svg-0"}],["path",{d:"M6.161 17.009l11.839 -.009",key:"svg-1"}]],Jp=o("outline","chef-hat","ChefHat",eT);var tT=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]],em=o("outline","circle-check","CircleCheck",tT);var oT=[["path",{d:"M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878",key:"svg-0"}]],tm=o("outline","cloud","Cloud",oT);var rT=[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M14 4l-4 16",key:"svg-2"}]],om=o("outline","code","Code",rT);var aT=[["path",{d:"M8 16l2 -6l6 -2l-2 6l-6 2",key:"svg-0"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-1"}],["path",{d:"M12 3l0 2",key:"svg-2"}],["path",{d:"M12 19l0 2",key:"svg-3"}],["path",{d:"M3 12l2 0",key:"svg-4"}],["path",{d:"M19 12l2 0",key:"svg-5"}]],rm=o("outline","compass","Compass",aT);var nT=[["path",{d:"M5 6a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1l0 -12",key:"svg-0"}],["path",{d:"M9 9h6v6h-6l0 -6",key:"svg-1"}],["path",{d:"M3 10h2",key:"svg-2"}],["path",{d:"M3 14h2",key:"svg-3"}],["path",{d:"M10 3v2",key:"svg-4"}],["path",{d:"M14 3v2",key:"svg-5"}],["path",{d:"M21 10h-2",key:"svg-6"}],["path",{d:"M21 14h-2",key:"svg-7"}],["path",{d:"M14 21v-2",key:"svg-8"}],["path",{d:"M10 21v-2",key:"svg-9"}]],am=o("outline","cpu","Cpu",nT);var sT=[["path",{d:"M21 16.008v-8.018a1.98 1.98 0 0 0 -1 -1.717l-7 -4.008a2.016 2.016 0 0 0 -2 0l-7 4.008c-.619 .355 -1 1.01 -1 1.718v8.018c0 .709 .381 1.363 1 1.717l7 4.008a2.016 2.016 0 0 0 2 0l7 -4.008c.619 -.355 1 -1.01 1 -1.718",key:"svg-0"}],["path",{d:"M12 22v-10",key:"svg-1"}],["path",{d:"M12 12l8.73 -5.04",key:"svg-2"}],["path",{d:"M3.27 6.96l8.73 5.04",key:"svg-3"}]],nm=o("outline","cube","Cube",sT);var iT=[["path",{d:"M4 6a8 3 0 1 0 16 0a8 3 0 1 0 -16 0",key:"svg-0"}],["path",{d:"M4 6v6a8 3 0 0 0 16 0v-6",key:"svg-1"}],["path",{d:"M4 12v6a8 3 0 0 0 16 0v-6",key:"svg-2"}]],sm=o("outline","database","Database",iT);var fT=[["path",{d:"M12 5h3.5a5 5 0 0 1 0 10h-5.5l-4.015 4.227a2.3 2.3 0 0 1 -3.923 -2.035l1.634 -8.173a5 5 0 0 1 4.904 -4.019h3.4",key:"svg-0"}],["path",{d:"M14 15l4.07 4.284a2.3 2.3 0 0 0 3.925 -2.023l-1.6 -8.232",key:"svg-1"}],["path",{d:"M8 9v2",key:"svg-2"}],["path",{d:"M7 10h2",key:"svg-3"}],["path",{d:"M14 10h2",key:"svg-4"}]],im=o("outline","device-gamepad-2","DeviceGamepad2",fT);var lT=[["path",{d:"M6 5h12l3 5l-8.5 9.5a.7 .7 0 0 1 -1 0l-8.5 -9.5l3 -5",key:"svg-0"}],["path",{d:"M10 12l-2 -2.2l.6 -1",key:"svg-1"}]],fm=o("outline","diamond","Diamond",lT);var cT=[["path",{d:"M4 20l10 -10m0 -5v5h5m-9 -1v5h5m-9 -1v5h5m-5 -5l4 -4l4 -4",key:"svg-0"}],["path",{d:"M19 10c.638 -.636 1 -1.515 1 -2.486a3.515 3.515 0 0 0 -3.517 -3.514c-.97 0 -1.847 .367 -2.483 1m-3 13l4 -4l4 -4",key:"svg-1"}]],lm=o("outline","feather","Feather",cT);var uT=[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2",key:"svg-1"}]],qt=o("outline","file","File",uT);var dT=[["path",{d:"M12 10.941c2.333 -3.308 .167 -7.823 -1 -8.941c0 3.395 -2.235 5.299 -3.667 6.706c-1.43 1.408 -2.333 3.294 -2.333 5.588c0 3.704 3.134 6.706 7 6.706c3.866 0 7 -3.002 7 -6.706c0 -1.712 -1.232 -4.403 -2.333 -5.588c-2.084 3.353 -3.257 3.353 -4.667 2.235",key:"svg-0"}]],cm=o("outline","flame","Flame",dT);var pT=[["path",{d:"M9 3l6 0",key:"svg-0"}],["path",{d:"M10 9l4 0",key:"svg-1"}],["path",{d:"M10 3v6l-4 11a.7 .7 0 0 0 .5 1h11a.7 .7 0 0 0 .5 -1l-4 -11v-6",key:"svg-2"}]],um=o("outline","flask","Flask",pT);var mT=[["path",{d:"M8 4h1l3 3h7a2 2 0 0 1 2 2v8m-2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 1.189 -1.829",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]],dm=o("outline","folder-off","FolderOff",mT);var xT=[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]],pm=o("outline","folder","Folder",xT);var IT=[["path",{d:"M5 11a7 7 0 0 1 14 0v7a1.78 1.78 0 0 1 -3.1 1.4a1.65 1.65 0 0 0 -2.6 0a1.65 1.65 0 0 1 -2.6 0a1.65 1.65 0 0 0 -2.6 0a1.78 1.78 0 0 1 -3.1 -1.4v-7",key:"svg-0"}],["path",{d:"M10 10l.01 0",key:"svg-1"}],["path",{d:"M14 10l.01 0",key:"svg-2"}],["path",{d:"M10 14a3.5 3.5 0 0 0 4 0",key:"svg-3"}]],mm=o("outline","ghost","Ghost",IT);var hT=[["path",{d:"M3 9a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1l0 -2",key:"svg-0"}],["path",{d:"M12 8l0 13",key:"svg-1"}],["path",{d:"M19 12v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-7",key:"svg-2"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0 -5a4.8 8 0 0 1 4.5 5a4.8 8 0 0 1 4.5 -5a2.5 2.5 0 0 1 0 5",key:"svg-3"}]],xm=o("outline","gift","Gift",hT);var gT=[["path",{d:"M7 9a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M5.75 15a8.015 8.015 0 1 0 9.25 -13",key:"svg-1"}],["path",{d:"M11 17v4",key:"svg-2"}],["path",{d:"M7 21h8",key:"svg-3"}]],Im=o("outline","globe","Globe",gT);var yT=[["path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572",key:"svg-0"}]],hm=o("outline","heart","Heart",yT);var bT=[["path",{d:"M19.875 6.27a2.225 2.225 0 0 1 1.125 1.948v7.284c0 .809 -.443 1.555 -1.158 1.948l-6.75 4.27a2.269 2.269 0 0 1 -2.184 0l-6.75 -4.27a2.225 2.225 0 0 1 -1.158 -1.948v-7.285c0 -.809 .443 -1.554 1.158 -1.947l6.75 -3.98a2.33 2.33 0 0 1 2.25 0l6.75 3.98h-.033",key:"svg-0"}]],gm=o("outline","hexagon","Hexagon",bT);var vT=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0",key:"svg-0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7",key:"svg-1"}],["path",{d:"M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6",key:"svg-2"}]],ym=o("outline","home","Home",vT);var ST=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],bm=o("outline","info-circle","InfoCircle",ST);var CT=[["path",{d:"M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0",key:"svg-0"}],["path",{d:"M15 9h.01",key:"svg-1"}]],Hr=o("outline","key","Key",CT);var wT=[["path",{d:"M5 21c.5 -4.5 2.5 -8 7 -10",key:"svg-0"}],["path",{d:"M9 18c6.218 0 10.5 -3.288 11 -12v-2h-4.014c-9 0 -11.986 4 -12 9c0 1 0 3 2 5h3l.014 0",key:"svg-1"}]],vm=o("outline","leaf","Leaf",wT);var TT=[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]],G=o("outline","loader-2","Loader2",TT);var kT=[["path",{d:"M12 6l0 -3",key:"svg-0"}],["path",{d:"M16.25 7.75l2.15 -2.15",key:"svg-1"}],["path",{d:"M18 12l3 0",key:"svg-2"}],["path",{d:"M16.25 16.25l2.15 2.15",key:"svg-3"}],["path",{d:"M12 18l0 3",key:"svg-4"}],["path",{d:"M7.75 16.25l-2.15 2.15",key:"svg-5"}],["path",{d:"M6 12l-3 0",key:"svg-6"}],["path",{d:"M7.75 7.75l-2.15 -2.15",key:"svg-7"}]],Sm=o("outline","loader","Loader",kT);var RT=[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]],Cm=o("outline","mail","Mail",RT);var MT=[["path",{d:"M3 7l6 -3l6 3l6 -3v13l-6 3l-6 -3l-6 3v-13",key:"svg-0"}],["path",{d:"M9 4v13",key:"svg-1"}],["path",{d:"M15 7v13",key:"svg-2"}]],wm=o("outline","map","Map",MT);var PT=[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-2"}]],Tm=o("outline","message","Message",PT);var FT=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454l0 .008",key:"svg-0"}]],km=o("outline","moon","Moon",FT);var DT=[["path",{d:"M3 20h18l-6.921 -14.612a2.3 2.3 0 0 0 -4.158 0l-6.921 14.612",key:"svg-0"}],["path",{d:"M7.5 11l2 2.5l2.5 -2.5l2 3l2.5 -2",key:"svg-1"}]],Rm=o("outline","mountain","Mountain",DT);var LT=[["path",{d:"M3 17a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M13 17a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}],["path",{d:"M9 17v-13h10v13",key:"svg-2"}],["path",{d:"M9 8h10",key:"svg-3"}]],Mm=o("outline","music","Music",LT);var AT=[["path",{d:"M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25",key:"svg-0"}],["path",{d:"M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}]],Pm=o("outline","palette","Palette",AT);var BT=[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]],Ur=o("outline","paperclip","Paperclip",BT);var ET=[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]],Fm=o("outline","photo","Photo",ET);var OT=[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-0"}],["path",{d:"M9 19v-6",key:"svg-1"}],["path",{d:"M8 5v8h2v-8",key:"svg-2"}],["path",{d:"M15 19v-6",key:"svg-3"}],["path",{d:"M14 5v8h2v-8",key:"svg-4"}]],Wr=o("outline","piano","Piano",OT);var NT=[["path",{d:"M18.816 13.58c2.292 2.138 3.546 4 3.092 4.9c-.745 1.46 -5.783 -.259 -11.255 -3.838c-5.47 -3.579 -9.304 -7.664 -8.56 -9.123c.464 -.91 2.926 -.444 5.803 .805",key:"svg-0"}],["path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-1"}]],Dm=o("outline","planet","Planet",NT);var VT=[["path",{d:"M9.785 6l8.215 8.215l-2.054 2.054a5.81 5.81 0 1 1 -8.215 -8.215l2.054 -2.054",key:"svg-0"}],["path",{d:"M4 20l3.5 -3.5",key:"svg-1"}],["path",{d:"M15 4l-3.5 3.5",key:"svg-2"}],["path",{d:"M20 9l-3.5 3.5",key:"svg-3"}]],Lm=o("outline","plug","Plug",VT);var HT=[["path",{d:"M14.185 13.14l5.644 -2.202c1.625 -.634 1.538 -2.962 -.13 -3.473l-14.319 -4.382c-1.41 -.431 -2.73 .888 -2.298 2.298l4.382 14.318c.51 1.668 2.84 1.755 3.473 .13l2.202 -5.644a1.84 1.84 0 0 1 1.045 -1.045",key:"svg-0"}]],fr=o("outline","pointer-2","Pointer2",HT);var _T=[["path",{d:"M6 6a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2l0 -4",key:"svg-0"}],["path",{d:"M12 2v2",key:"svg-1"}],["path",{d:"M9 12v9",key:"svg-2"}],["path",{d:"M15 12v9",key:"svg-3"}],["path",{d:"M5 16l4 -2",key:"svg-4"}],["path",{d:"M15 14l4 2",key:"svg-5"}],["path",{d:"M9 18h6",key:"svg-6"}],["path",{d:"M10 8v.01",key:"svg-7"}],["path",{d:"M14 8v.01",key:"svg-8"}]],Am=o("outline","robot","Robot",_T);var WT=[["path",{d:"M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3 -5a9 9 0 0 0 6 -8a3 3 0 0 0 -3 -3a9 9 0 0 0 -8 6a6 6 0 0 0 -5 3",key:"svg-0"}],["path",{d:"M7 14a6 6 0 0 0 -3 6a6 6 0 0 0 6 -3",key:"svg-1"}],["path",{d:"M14 9a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],Bm=o("outline","rocket","Rocket",WT);var zT=[["path",{d:"M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3",key:"svg-0"}]],Em=o("outline","shield","Shield",zT);var qT=[["path",{d:"M4 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M15 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M17 17h-11v-14h-2",key:"svg-2"}],["path",{d:"M6 5l14 1l-1 7h-13",key:"svg-3"}]],Om=o("outline","shopping-cart","ShoppingCart",qT);var UT=[["path",{d:"M4 15c2 -4.97 7.356 -11 9 -11c4.25 0 -5.5 11.958 -3 13s5.65 -6.678 7.4 -5.902c1.75 .777 -1.05 7.589 -.3 8.63s3.15 -.897 3.9 -2.728",key:"svg-0"}]],ft=o("outline","sketching","Sketching",UT);var GT=[["path",{d:"M10 4l2 1l2 -1",key:"svg-0"}],["path",{d:"M12 2v6.5l3 1.72",key:"svg-1"}],["path",{d:"M17.928 6.268l.134 2.232l1.866 1.232",key:"svg-2"}],["path",{d:"M20.66 7l-5.629 3.25l.01 3.458",key:"svg-3"}],["path",{d:"M19.928 14.268l-1.866 1.232l-.134 2.232",key:"svg-4"}],["path",{d:"M20.66 17l-5.629 -3.25l-2.99 1.738",key:"svg-5"}],["path",{d:"M14 20l-2 -1l-2 1",key:"svg-6"}],["path",{d:"M12 22v-6.5l-3 -1.72",key:"svg-7"}],["path",{d:"M6.072 17.732l-.134 -2.232l-1.866 -1.232",key:"svg-8"}],["path",{d:"M3.34 17l5.629 -3.25l-.01 -3.458",key:"svg-9"}],["path",{d:"M4.072 9.732l1.866 -1.232l.134 -2.232",key:"svg-10"}],["path",{d:"M3.34 7l5.629 3.25l2.99 -1.738",key:"svg-11"}]],Nm=o("outline","snowflake","Snowflake",GT);var jT=[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}]],Vm=o("outline","sparkles","Sparkles",jT);var XT=[["path",{d:"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245",key:"svg-0"}]],Hm=o("outline","star","Star",XT);var KT=[["path",{d:"M8 12a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7",key:"svg-1"}]],_m=o("outline","sun","Sun",KT);var $T=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M7 12a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Wm=o("outline","target","Target",$T);var QT=[["path",{d:"M8 9l3 3l-3 3",key:"svg-0"}],["path",{d:"M13 15l3 0",key:"svg-1"}],["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12",key:"svg-2"}]],zm=o("outline","terminal-2","Terminal2",QT);var YT=[["path",{d:"M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5",key:"svg-0"}]],qm=o("outline","tool","Tool",YT);var ZT=[["path",{d:"M8 21l8 0",key:"svg-0"}],["path",{d:"M12 17l0 4",key:"svg-1"}],["path",{d:"M7 4l10 0",key:"svg-2"}],["path",{d:"M17 4v8a5 5 0 0 1 -10 0v-8",key:"svg-3"}],["path",{d:"M3 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-4"}],["path",{d:"M17 9a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-5"}]],Um=o("outline","trophy","Trophy",ZT);var JT=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],$r=o("outline","user","User",JT);var ek=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3",key:"svg-0"}],["path",{d:"M15 6l3 3",key:"svg-1"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2",key:"svg-3"}]],Gm=o("outline","wand","Wand",ek);var tk=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M3.6 9h16.8",key:"svg-1"}],["path",{d:"M3.6 15h16.8",key:"svg-2"}],["path",{d:"M11.5 3a17 17 0 0 0 0 18",key:"svg-3"}],["path",{d:"M12.5 3a17 17 0 0 1 0 18",key:"svg-4"}]],jm=o("outline","world","World",tk);var ok=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],K=o("outline","x","X",ok);var wa=e(t(),1),P=Ep();function ik({...B}){return wa.jsx(Bg,{...B})}function fk({...B}){return wa.jsx(L0,{"data-slot":"toast-portal",...B})}function lk({className:B,...ce}){return wa.jsx($g,{"data-slot":"toast-viewport",className:n("pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full",B),...ce})}function ck({className:B,...ce}){return wa.jsx(u0,{"data-slot":"toast",className:n("group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-xl bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",B),...ce})}function uk({className:B,...ce}){return wa.jsx(d0,{"data-slot":"toast-content",className:n("flex items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100",B),...ce})}function dk({className:B,...ce}){return wa.jsx(b0,{"data-slot":"toast-title",className:n("text-sm font-medium",B),...ce})}function pk({className:B,...ce}){return wa.jsx(g0,{"data-slot":"toast-description",className:n("text-sm text-muted-foreground",B),...ce})}function mk({className:B,render:ce=wa.jsx(s,{variant:"outline",size:"sm"}),...pe}){return wa.jsx(T0,{"data-slot":"toast-action",render:ce,className:n("shrink-0",B),...pe})}function xk({className:B,children:ce,render:pe=wa.jsx(s,{variant:"ghost",size:"icon-sm"}),...we}){return wa.jsx(C0,{"data-slot":"toast-close","aria-label":"Close toast",render:pe,className:n("relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground",B),...we,children:ce??wa.jsx(K,{"aria-hidden":"true",stroke:1.75})})}function Ik({type:B}){let ce=null;if(B==="success")ce=wa.jsx(em,{"aria-hidden":"true",stroke:1.75});if(B==="info")ce=wa.jsx(bm,{"aria-hidden":"true",stroke:1.75});if(B==="warning")ce=wa.jsx(Br,{"aria-hidden":"true",stroke:1.75});if(B==="error")ce=wa.jsx(Wp,{className:"text-destructive","aria-hidden":"true",stroke:1.75});if(B==="loading")ce=wa.jsx(Sm,{className:"animate-spin","aria-hidden":"true",stroke:1.75});if(!ce)return null;return wa.jsx("span",{"data-slot":"toast-icon",className:"shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",children:ce})}function hk(){let{toasts:B}=Bp();return B.map((ce)=>wa.jsx(ck,{toast:ce,children:wa.jsxs(uk,{children:[wa.jsx(Ik,{type:ce.type}),wa.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[wa.jsx(dk,{}),wa.jsx(pk,{})]}),wa.jsx(mk,{}),wa.jsx(xk,{})]})},ce.id))}function In({children:B,toastManager:ce=P,...pe}){return wa.jsxs(ik,{toastManager:ce,...pe,children:[B,wa.jsx(fk,{children:wa.jsx(lk,{children:wa.jsx(hk,{})})})]})}var XIr=Ep,KIr=Bp;var sy=(B)=>{let ce,pe=new Set,we=(nt,vt)=>{let St=typeof nt==="function"?nt(ce):nt;if(!Object.is(St,ce)){let wt=ce;ce=(vt!=null?vt:typeof St!=="object"||St===null)?St:Object.assign({},ce,St),pe.forEach((Do)=>Do(ce,wt))}},Te=()=>ce,Be={setState:we,getState:Te,getInitialState:()=>ot,subscribe:(nt)=>(pe.add(nt),()=>pe.delete(nt))},ot=ce=B(we,Te,Be);return Be},$c=(B)=>B?sy(B):sy;var il=e(r(),1);var gk=(B)=>B;function Xm(B,ce=gk){let pe=il.default.useSyncExternalStore(B.subscribe,il.default.useCallback(()=>ce(B.getState()),[B,ce]),il.default.useCallback(()=>ce(B.getInitialState()),[B,ce]));return il.default.useDebugValue(pe),pe}var iy=(B)=>{let ce=$c(B),pe=(we)=>Xm(ce,we);return Object.assign(pe,ce),pe},Xt=(B)=>B?iy(B):iy;function Sf(B,ce){return`${B}:${ce}`}function Vr(B){return B==="running"}function Cn(B){return Object.values(B).some(Vr)}function mr(B,ce,pe){return Vr(B[Sf(ce,pe)])}function xo(B,ce){let pe=`${ce}:`;return Object.entries(B).some(([we,Te])=>we.startsWith(pe)&&Vr(Te))}function Ie(B,ce){return Sf(B,ce??"new")}function yo(B,ce,pe){for(let[we,Te]of Object.entries(B)){if(!we.startsWith(`${ce}:`))continue;let Fe=Te.find((Le)=>Le.localId===pe);if(Fe)return{key:we,attachment:Fe}}}var A=$c()((B)=>({activity:{},errors:{},previews:{},attachments:{},setActivity:(ce,pe,we)=>B((Te)=>({activity:{...Te.activity,[Sf(ce,pe)]:we}})),reconcileActivity:(ce)=>B(()=>({activity:Object.fromEntries(ce.map((pe)=>[Sf(pe.workspaceId,pe.sessionId),pe.activity]))})),setError:(ce,pe,we)=>B((Te)=>({errors:{...Te.errors,[Sf(ce,pe)]:we}})),setPreview:(ce)=>B((pe)=>({previews:{...pe.previews,[ce.messageId]:{workspaceId:ce.workspaceId,sessionId:ce.sessionId,parentToolUseId:ce.parentToolUseId,blocks:ce.blocks,updatedAt:Date.now()}}})),clearPreview:(ce)=>B((pe)=>{if(!(ce in pe.previews))return pe;let{[ce]:we,...Te}=pe.previews;return{previews:Te}}),clearPreviewsForSession:(ce,pe)=>B((we)=>{let Te={},Fe=!1;for(let[Le,Be]of Object.entries(we.previews))if(Be.workspaceId===ce&&Be.sessionId===pe)Fe=!0;else Te[Le]=Be;return Fe?{previews:Te}:we}),clearAllPreviews:()=>B((ce)=>Object.keys(ce.previews).length?{previews:{}}:ce),sweepPreviews:(ce,pe)=>B((we)=>{let Te={},Fe=!1;for(let[Le,Be]of Object.entries(we.previews))if(pe-Be.updatedAt>ce)Fe=!0;else Te[Le]=Be;return Fe?{previews:Te}:we}),addAttachments:(ce,pe,we)=>B((Te)=>{let Fe=Ie(ce,pe);return{attachments:{...Te.attachments,[Fe]:[...Te.attachments[Fe]??[],...we]}}}),updateAttachment:(ce,pe,we)=>B((Te)=>{let Fe=yo(Te.attachments,ce,pe);if(!Fe)return{};let{key:Le,attachment:Be}=Fe,ot=Te.attachments[Le];if(Be.kind!=="text"&&Be.previewUrl&&"previewUrl"in we&&we.previewUrl!==Be.previewUrl)URL.revokeObjectURL(Be.previewUrl);return{attachments:{...Te.attachments,[Le]:ot.map((nt)=>nt.localId===pe&&nt.kind!=="text"?{...nt,...we}:nt)}}}),removeAttachment:(ce,pe)=>B((we)=>{let Te=yo(we.attachments,ce,pe);if(!Te)return{};let{key:Fe,attachment:Le}=Te,Be=we.attachments[Fe];if(Le.kind!=="text"&&Le.previewUrl)URL.revokeObjectURL(Le.previewUrl);return{attachments:{...we.attachments,[Fe]:Be.filter((ot)=>ot.localId!==pe)}}}),clearAttachments:(ce,pe)=>B((we)=>{let Te=Ie(ce,pe);for(let Le of we.attachments[Te]??[])if(Le.kind!=="text"&&Le.previewUrl)URL.revokeObjectURL(Le.previewUrl);let Fe={...we.attachments};return delete Fe[Te],{attachments:Fe}}),renameSession:(ce,pe,we)=>B((Te)=>{let Fe=Ie(ce,pe),Le=Sf(ce,we);if(Fe===Le)return Te;if(!(Fe in Te.activity)&&!(Fe in Te.errors)&&!(Fe in Te.attachments)&&!Object.values(Te.previews).some((wt)=>wt.workspaceId===ce&&wt.sessionId===pe))return Te;let Be={...Te.activity},ot={...Te.errors};if(Fe in Be)Be[Le]=Be[Fe],delete Be[Fe];if(Fe in ot)ot[Le]=ot[Fe],delete ot[Fe];let nt=Te.previews,vt=!1;for(let[wt,Do]of Object.entries(Te.previews))if(Do.workspaceId===ce&&Do.sessionId===pe){if(!vt)nt={...Te.previews},vt=!0;nt[wt]={...Do,sessionId:we}}let St=Te.attachments;if(Fe!==Le&&St[Fe])St={...St,[Le]:[...St[Le]??[],...St[Fe]]},delete St[Fe];return{activity:Be,errors:ot,previews:nt,attachments:St}})}));function kn(B,ce,pe){if(!pe)return{root:null,byParent:{}};let we=null,Te={};for(let Fe of Object.values(B)){if(Fe.workspaceId!==ce||Fe.sessionId!==pe)continue;if(Fe.parentToolUseId===null){if(!we||Fe.updatedAt>we.updatedAt)we=Fe}else{let Le=Te[Fe.parentToolUseId];if(!Le||Fe.updatedAt>Le.updatedAt)Te[Fe.parentToolUseId]=Fe}}return{root:we,byParent:Te}}function le(B){return Xm(A,B)}var Km=new Map;function qo(B,ce){if(ce)Km.set(B,ce);else Km.delete(B)}function Tn(B){return Km.get(B)}var Qc=e(r(),1),ly=e(t(),1),fy=Qc.createContext("default");function _(){return Qc.useContext(fy)}function Pn({id:B,children:ce}){return ly.jsx(fy,{value:B,children:ce})}var Qm=e(r(),1);var Yc=e(r(),1);function z(B){let ce=Yc.useRef(B);return Yc.useLayoutEffect(()=>{ce.current=B},[B]),ce}var Zc=e(r(),1),Xo=Zc.createContext(void 0);function $m(){return Zc.useContext(Xo)}function te(B){let ce=$m()?.events,pe=z(B);Qm.useEffect(()=>ce?.subscribe((we)=>pe.current(we)),[ce,pe])}function jr(B,ce){te((pe)=>{if("workspaceId"in pe&&pe.workspaceId!==void 0&&pe.workspaceId!==B)return;ce(pe)})}function En(B,ce){let pe=$m()?.events;Qm.useEffect(()=>{if(!pe)return;pe.setNavigationWorkspace(B);let we=()=>pe.sendNavigationPresence();return window.addEventListener("focus",we),document.addEventListener("visibilitychange",we),()=>{pe.setNavigationWorkspace(void 0),window.removeEventListener("focus",we),document.removeEventListener("visibilitychange",we)}},[pe,B]),te(async(we)=>{if(!pe||we.type!=="navigation:request"||we.workspaceId!==B)return;try{if(pe.navigationWorkspace!==B)throw Error("The browser switched workspaces.");await ce(we.href),pe.send({type:"navigation:result",requestId:we.requestId,ok:!0})}catch(Te){pe.send({type:"navigation:result",requestId:we.requestId,error:Te instanceof Error?Te.message:"Navigation failed"})}})}function Cf(B){return l.state(B)}function cy(B){return[...Cf(B),"write"]}function Zm(B,ce){return B.isMutating({mutationKey:cy(ce)})}var Ym=new WeakMap;function uy(B,ce,pe){let we=Ym.get(B);if(!we)Ym.set(B,we=new Map);we.set(ce,Jc(we.get(ce),pe))}function Jc(B,ce){return B&&B.revision>ce.revision?B:ce}function Yo(B,ce){let pe=Cf(ce);return{queryKey:pe,queryFn:async({signal:we})=>{let Te=await h(`/api/workspaces/${ce}/state`,{signal:we}),Fe=B.getQueryData(pe);if(Fe&&Zm(B,ce)>0)return uy(B,ce,Te),Fe;return Jc(Fe,Te)},staleTime:0,retry:!1,gcTime:300000,refetchOnMount:!1,refetchOnWindowFocus:!0}}function me(B,ce){let pe=d();return k({...Yo(pe,B),select:ce})}function xe(B,ce){return B.getQueryData(Cf(ce))}function mt(B,ce,pe){B.setQueryData(Cf(ce),(we)=>{if(!we)return we;let Te=structuredClone(we);return pe(Te),Te})}function bo(B,ce,pe){if(Zm(B,ce)>0){uy(B,ce,pe);return}B.setQueryData(Cf(ce),(we)=>Jc(we,pe))}function Je(B,{request:ce,optimistic:pe,onSuccess:we,errorTitle:Te}){let Fe=d(),Le=Cf(B);return R({mutationKey:cy(B),scope:{id:`workspace-state:${B}`},mutationFn:ce,onMutate:async(Be)=>{if(!pe)return;await Fe.cancelQueries({queryKey:Le,exact:!0}),mt(Fe,B,(ot)=>pe(ot,Be))},onSuccess:(Be,ot)=>{bo(Fe,B,"state"in Be?Be.state:Be),we?.(Be,ot)},onError:(Be)=>{P.add({title:Te,description:Be.message,type:"error"})},onSettled:(Be,ot)=>{if(Zm(Fe,B)===1){let nt=Ym.get(Fe),vt=nt?.get(B);if(nt?.delete(B),vt)Fe.setQueryData(Le,(St)=>Jc(St,vt))}if(ot)Fe.invalidateQueries({queryKey:Le,exact:!0})}})}function Rn(){let B=d();te((ce)=>{if(ce.type!=="state:changed")return;if(!xe(B,ce.workspaceId))return;bo(B,ce.workspaceId,ce.state)})}function An(B,ce,pe){if(ce===pe)return;let we=B.sessions[ce];if(we){let Te=B.sessions[pe],Fe=we.config||Te?.config?{...we.config,...Te?.config}:void 0;B.sessions[pe]={...we,...Te,...Fe?{config:Fe}:{}},delete B.sessions[ce]}for(let Te of Object.values(B.sessions))if(Te.fork?.fromSessionId===ce)Te.fork.fromSessionId=pe;for(let[Te,Fe]of Object.entries(B.selected))if(Fe===ce)B.selected[Te]=pe;if(B.pinnedSessionId===ce)B.pinnedSessionId=pe;for(let Te of Object.values(B.pendingViews))if(Te.buildSessionId===ce)Te.buildSessionId=pe}function _n(B,ce){for(let[pe,we]of Object.entries(B.selected))if(we===ce)delete B.selected[pe];if(B.pinnedSessionId===ce)delete B.pinnedSessionId}function Gr(B,ce){let pe;try{pe=B()}catch(Te){return}return{getItem:(Te)=>{var Fe;let Le=(ot)=>{if(ot===null)return null;return JSON.parse(ot,ce==null?void 0:ce.reviver)},Be=(Fe=pe.getItem(Te))!=null?Fe:null;if(Be instanceof Promise)return Be.then(Le);return Le(Be)},setItem:(Te,Fe)=>pe.setItem(Te,JSON.stringify(Fe,ce==null?void 0:ce.replacer)),removeItem:(Te)=>pe.removeItem(Te)}}var Jm=(B)=>(ce)=>{try{let pe=B(ce);if(pe instanceof Promise)return pe;return{then(we){return Jm(we)(pe)},catch(we){return this}}}catch(pe){return{then(we){return this},catch(we){return Jm(we)(pe)}}}},yk=(B,ce)=>(pe,we,Te)=>{let Fe={storage:Gr(()=>window.localStorage),partialize:(wr)=>wr,version:0,merge:(wr,Jr)=>({...Jr,...wr}),...ce},Le=!1,Be=0,ot=new Set,nt=new Set,vt=Fe.storage;if(!vt)return B((...wr)=>{console.warn(`[zustand persist middleware] Unable to update item '${Fe.name}', the given storage is currently unavailable.`),pe(...wr)},we,Te);let St=()=>{let wr=Fe.partialize({...we()});return vt.setItem(Fe.name,{state:wr,version:Fe.version})},wt=Te.setState;Te.setState=(wr,Jr)=>(wt(wr,Jr),St());let Do=B((...wr)=>(pe(...wr),St()),we,Te);Te.getInitialState=()=>Do;let eo,Ir=()=>{var wr,Jr;if(!vt)return;let ta=++Be;Le=!1,ot.forEach((Qr)=>{var sa;return Qr((sa=we())!=null?sa:Do)});let oa=((Jr=Fe.onRehydrateStorage)==null?void 0:Jr.call(Fe,(wr=we())!=null?wr:Do))||void 0;return Jm(vt.getItem.bind(vt))(Fe.name).then((Qr)=>{if(Qr)if(typeof Qr.version==="number"&&Qr.version!==Fe.version){if(Fe.migrate){let sa=Fe.migrate(Qr.state,Qr.version);if(sa instanceof Promise)return sa.then((ua)=>[!0,ua]);return[!0,sa]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,Qr.state];return[!1,void 0]}).then((Qr)=>{var sa;if(ta!==Be)return;let[ua,ca]=Qr;if(eo=Fe.merge(ca,(sa=we())!=null?sa:Do),pe(eo,!0),ua)return St()}).then(()=>{if(ta!==Be)return;oa==null||oa(we(),void 0),eo=we(),Le=!0,nt.forEach((Qr)=>Qr(eo))}).catch((Qr)=>{if(ta!==Be)return;oa==null||oa(void 0,Qr)})};if(Te.persist={setOptions:(wr)=>{if(Fe={...Fe,...wr},wr.storage)vt=wr.storage},clearStorage:()=>{++Be,vt==null||vt.removeItem(Fe.name)},getOptions:()=>Fe,rehydrate:()=>Ir(),hasHydrated:()=>Le,onHydrate:(wr)=>(ot.add(wr),()=>{ot.delete(wr)}),onFinishHydration:(wr)=>(nt.add(wr),()=>{nt.delete(wr)})},!Fe.skipHydration)Ir();return eo||Do},Yt=yk;function ht(B){return B==="overview"||B==="scratchpad"||typeof B==="string"&&/^views\/[a-zA-Z0-9_-]+$/.test(B)}function Zt(B){try{let ce=decodeURIComponent(B);return ht(ce)?ce:void 0}catch{return}}var V=(B)=>`views/${B}`,hr=(B)=>B.startsWith("views/")?B.slice(6):void 0;function Qe(B){return typeof B==="object"&&B!==null&&!Array.isArray(B)}var ex=e(t(),1);function gr({children:B,className:ce,...pe}){return ex.jsx("section",{...pe,className:n("flex min-h-0 flex-1 flex-col overflow-y-auto bg-muted texture-checker-20",ce),children:ex.jsx("div",{className:"flex flex-1 flex-col bg-radial from-background from-25% to-transparent",children:B})})}var dy=e(t(),1);function Y({className:B,...ce}){return dy.jsx(G,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:m("size-4 animate-spin",B),stroke:1.75,...ce})}var Db=e(r(),1);var vo="/claude-z2xnay0d.svg";var py="/hermes-pznd63x9.png";var wo="/openai-ep9ht2pq.svg";var my="/openclaw-a2pyfhpn.svg";var Kr=["rocket","sparkles","bolt","flame","star","heart","diamond","trophy","target","bulb","brain","robot","wand","atom","flask","cpu","code","terminal","api","database","cube","hexagon","plug","tool","bug","activity","chart","briefcase","folder","file","book","message","mail","bell","paperclip","key","shield","user","home","globe","world","planet","compass","map","calendar","cloud","sun","moon","snowflake","leaf","mountain","feather","ghost","music","piano","camera","photo","palette","gamepad","gift","cart","chef"],wk=new Set(Kr);function xy(B){return wk.has(B)}var Iy={rocket:Bm,sparkles:Vm,bolt:zr,flame:cm,star:Hm,heart:hm,diamond:fm,trophy:Um,target:Wm,bulb:$p,brain:jp,robot:Am,wand:Gm,atom:qp,flask:um,cpu:am,code:om,terminal:zm,api:zp,database:sm,cube:nm,hexagon:gm,plug:Lm,tool:qm,bug:Kp,activity:_p,chart:Zp,briefcase:Xp,folder:pm,file:qt,book:Gp,message:Tm,mail:Cm,bell:Up,paperclip:Ur,key:Hr,shield:Em,user:$r,home:ym,globe:Im,world:jm,planet:Dm,compass:rm,map:wm,calendar:Qp,cloud:tm,sun:_m,moon:km,snowflake:Nm,leaf:vm,mountain:Rm,feather:lm,ghost:mm,music:Mm,piano:Wr,camera:Yp,photo:Fm,palette:Pm,gamepad:im,gift:xm,cart:Om,chef:Jp},Mn=Kr.map((B)=>({id:B,Icon:Iy[B]}));function xr(B){return B&&xy(B)?Iy[B]:null}var Tk=(B,ce)=>{if(typeof B!=="number")return;if(ce===3)return{mode:"rgb",r:(B>>8&15|B>>4&240)/255,g:(B>>4&15|B&240)/255,b:(B&15|B<<4&240)/255};if(ce===4)return{mode:"rgb",r:(B>>12&15|B>>8&240)/255,g:(B>>8&15|B>>4&240)/255,b:(B>>4&15|B&240)/255,alpha:(B&15|B<<4&240)/255};if(ce===6)return{mode:"rgb",r:(B>>16&255)/255,g:(B>>8&255)/255,b:(B&255)/255};if(ce===8)return{mode:"rgb",r:(B>>24&255)/255,g:(B>>16&255)/255,b:(B>>8&255)/255,alpha:(B&255)/255}},eu=Tk;var kk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},hy=kk;var Rk=(B)=>eu(hy[B.toLowerCase()],6),gy=Rk;var Mk=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Pk=(B)=>{let ce;return(ce=B.match(Mk))?eu(parseInt(ce[1],16),ce[1].length):void 0},yy=Pk;var tu="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";var qi="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%";var fl="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var by="(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)(deg|grad|rad|turn)|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?))";var li="\\s*,\\s*";var Hhr=new RegExp("^(?:([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%|([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)|none)$");var Fk=new RegExp(`^rgba?\\(\\s*${tu}${li}${tu}${li}${tu}\\s*(?:,\\s*${fl}\\s*)?\\)$`),Dk=new RegExp(`^rgba?\\(\\s*${qi}${li}${qi}${li}${qi}\\s*(?:,\\s*${fl}\\s*)?\\)$`),Lk=(B)=>{let ce={mode:"rgb"},pe;if(pe=B.match(Fk)){if(pe[1]!==void 0)ce.r=pe[1]/255;if(pe[2]!==void 0)ce.g=pe[2]/255;if(pe[3]!==void 0)ce.b=pe[3]/255}else if(pe=B.match(Dk)){if(pe[1]!==void 0)ce.r=pe[1]/100;if(pe[2]!==void 0)ce.g=pe[2]/100;if(pe[3]!==void 0)ce.b=pe[3]/100}else return;if(pe[4]!==void 0)ce.alpha=Math.max(0,Math.min(1,pe[4]/100));else if(pe[5]!==void 0)ce.alpha=Math.max(0,Math.min(1,+pe[5]));return ce},vy=Lk;var Ak=(B,ce)=>B===void 0?void 0:typeof B!=="object"?Cy(B):B.mode!==void 0?B:ce?{...B,mode:ce}:void 0,Sy=Ak;var Bk=(B="rgb")=>(ce)=>(ce=Sy(ce,B))!==void 0?ce.mode===B?ce:Ds[ce.mode][B]?Ds[ce.mode][B](ce):B==="rgb"?Ds[ce.mode].rgb(ce):Ds.rgb[B](Ds[ce.mode].rgb(ce)):void 0,ou=Bk;var Ds={},wy={},ll=[],tx={},Ek=(B)=>B,Ta=(B)=>{if(Ds[B.mode]={...Ds[B.mode],...B.toMode},Object.keys(B.fromMode||{}).forEach((ce)=>{if(!Ds[ce])Ds[ce]={};Ds[ce][B.mode]=B.fromMode[ce]}),!B.ranges)B.ranges={};if(!B.difference)B.difference={};return B.channels.forEach((ce)=>{if(B.ranges[ce]===void 0)B.ranges[ce]=[0,1];if(!B.interpolate[ce])throw Error(`Missing interpolator for: ${ce}`);if(typeof B.interpolate[ce]==="function")B.interpolate[ce]={use:B.interpolate[ce]};if(!B.interpolate[ce].fixup)B.interpolate[ce].fixup=Ek}),wy[B.mode]=B,(B.parse||[]).forEach((ce)=>{Ok(ce,B.mode)}),ou(B.mode)},Ty=(B)=>wy[B],Ok=(B,ce)=>{if(typeof B==="string"){if(!ce)throw Error("'mode' required when 'parser' is a string");tx[B]=ce}else if(typeof B==="function"){if(ll.indexOf(B)<0)ll.push(B)}};var ox=/[^\x00-\x7F]|[a-zA-Z_]/,Nk=/[^\x00-\x7F]|[-\w]/,ra={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},xa=0;function ru(B){let ce=B[xa],pe=B[xa+1];if(ce==="-"||ce==="+")return/\d/.test(pe)||pe==="."&&/\d/.test(B[xa+2]);if(ce===".")return/\d/.test(pe);return/\d/.test(ce)}function rx(B){if(xa>=B.length)return!1;let ce=B[xa];if(ox.test(ce))return!0;if(ce==="-"){if(B.length-xa<2)return!1;let pe=B[xa+1];if(pe==="-"||ox.test(pe))return!0;return!1}return!1}var Vk={deg:1,rad:180/Math.PI,grad:0.9,turn:360};function cl(B){let ce="";if(B[xa]==="-"||B[xa]==="+")ce+=B[xa++];if(ce+=au(B),B[xa]==="."&&/\d/.test(B[xa+1]))ce+=B[xa++]+au(B);if(B[xa]==="e"||B[xa]==="E"){if((B[xa+1]==="-"||B[xa+1]==="+")&&/\d/.test(B[xa+2]))ce+=B[xa++]+B[xa++]+au(B);else if(/\d/.test(B[xa+1]))ce+=B[xa++]+au(B)}if(rx(B)){let pe=nu(B);if(pe==="deg"||pe==="rad"||pe==="turn"||pe==="grad")return{type:ra.Hue,value:ce*Vk[pe]};return}if(B[xa]==="%")return xa++,{type:ra.Percentage,value:+ce};return{type:ra.Number,value:+ce}}function au(B){let ce="";while(/\d/.test(B[xa]))ce+=B[xa++];return ce}function nu(B){let ce="";while(xa<B.length&&Nk.test(B[xa]))ce+=B[xa++];return ce}function Hk(B){let ce=nu(B);if(B[xa]==="(")return xa++,{type:ra.Function,value:ce};if(ce==="none")return{type:ra.None,value:void 0};return{type:ra.Ident,value:ce}}function _k(B=""){let ce=B.trim(),pe=[],we;xa=0;while(xa<ce.length){if(we=ce[xa++],we===`
|
|
2
|
-
`||we==="\t"||we===" "){while(xa<ce.length&&(ce[xa]===`
|
|
3
|
-
`||ce[xa]==="\t"||ce[xa]===" "))xa++;continue}if(we===",")return;if(we===")"){pe.push({type:ra.ParenClose});continue}if(we==="+"){if(xa--,ru(ce)){pe.push(cl(ce));continue}return}if(we==="-"){if(xa--,ru(ce)){pe.push(cl(ce));continue}if(rx(ce)){pe.push({type:ra.Ident,value:nu(ce)});continue}return}if(we==="."){if(xa--,ru(ce)){pe.push(cl(ce));continue}return}if(we==="/"){while(xa<ce.length&&(ce[xa]===`
|
|
4
|
-
`||ce[xa]==="\t"||ce[xa]===" "))xa++;let Te;if(ru(ce)){if(Te=cl(ce),Te.type!==ra.Hue){pe.push({type:ra.Alpha,value:Te});continue}}if(rx(ce)){if(nu(ce)==="none"){pe.push({type:ra.Alpha,value:{type:ra.None,value:void 0}});continue}}return}if(/\d/.test(we)){xa--,pe.push(cl(ce));continue}if(ox.test(we)){xa--,pe.push(Hk(ce));continue}return}return pe}function Wk(B){B._i=0;let ce=B[B._i++];if(!ce||ce.type!==ra.Function||ce.value!=="color")return;if(ce=B[B._i++],ce.type!==ra.Ident)return;let pe=tx[ce.value];if(!pe)return;let we={mode:pe},Te=ky(B,!1);if(!Te)return;let Fe=Ty(pe).channels;for(let Le=0,Be,ot;Le<Fe.length;Le++)if(Be=Te[Le],ot=Fe[Le],Be.type!==ra.None){if(we[ot]=Be.type===ra.Number?Be.value:Be.value/100,ot==="alpha")we[ot]=Math.max(0,Math.min(1,we[ot]))}return we}function ky(B,ce){let pe=[],we;while(B._i<B.length){if(we=B[B._i++],we.type===ra.None||we.type===ra.Number||we.type===ra.Alpha||we.type===ra.Percentage||ce&&we.type===ra.Hue){pe.push(we);continue}if(we.type===ra.ParenClose){if(B._i<B.length)return;continue}return}if(pe.length<3||pe.length>4)return;if(pe.length===4){if(pe[3].type!==ra.Alpha)return;pe[3]=pe[3].value}if(pe.length===3)pe.push({type:ra.None,value:void 0});return pe.every((Te)=>Te.type!==ra.Alpha)?pe:void 0}function zk(B,ce){B._i=0;let pe=B[B._i++];if(!pe||pe.type!==ra.Function)return;let we=ky(B,ce);if(!we)return;return we.unshift(pe.value),we}var qk=(B)=>{if(typeof B!=="string")return;let ce=_k(B),pe=ce?zk(ce,!0):void 0,we=void 0,Te=0,Fe=ll.length;while(Te<Fe)if((we=ll[Te++](B,pe))!==void 0)return we;return ce?Wk(ce):void 0},Cy=qk;function Uk(B,ce){if(!ce||ce[0]!=="rgb"&&ce[0]!=="rgba")return;let pe={mode:"rgb"},[,we,Te,Fe,Le]=ce;if(we.type===ra.Hue||Te.type===ra.Hue||Fe.type===ra.Hue)return;if(we.type!==ra.None)pe.r=we.type===ra.Number?we.value/255:we.value/100;if(Te.type!==ra.None)pe.g=Te.type===ra.Number?Te.value/255:Te.value/100;if(Fe.type!==ra.None)pe.b=Fe.type===ra.Number?Fe.value/255:Fe.value/100;if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var Ry=Uk;var Gk=(B)=>B==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,My=Gk;var Py=(B,ce,pe)=>B+pe*(ce-B);var jk=(B)=>{let ce=[];for(let pe=0;pe<B.length-1;pe++){let we=B[pe],Te=B[pe+1];if(we===void 0&&Te===void 0)ce.push(void 0);else if(we!==void 0&&Te!==void 0)ce.push([we,Te]);else ce.push(we!==void 0?[we,we]:[Te,Te])}return ce},Fy=(B)=>(ce)=>{let pe=jk(ce);return(we)=>{let Te=we*pe.length,Fe=we>=1?pe.length-1:Math.max(Math.floor(Te),0),Le=pe[Fe];return Le===void 0?void 0:B(Le[0],Le[1],Te-Fe)}};var aa=Fy(Py);var ba=(B)=>{let ce=!1,pe=B.map((we)=>{if(we!==void 0)return ce=!0,we;return 1});return ce?pe:B};var Xk={mode:"rgb",channels:["r","g","b","alpha"],parse:[Ry,yy,vy,gy,My,"srgb"],serialize:"srgb",interpolate:{r:aa,g:aa,b:aa,alpha:{use:aa,fixup:ba}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ys=Xk;var ax=(B=0)=>Math.pow(Math.abs(B),2.19921875)*Math.sign(B),Kk=(B)=>{let ce=ax(B.r),pe=ax(B.g),we=ax(B.b),Te={mode:"xyz65",x:0.5766690429101305*ce+0.1855582379065463*pe+0.1882286462349947*we,y:0.297344975250536*ce+0.6273635662554661*pe+0.0752914584939979*we,z:0.0270313613864123*ce+0.0706888525358272*pe+0.9913375368376386*we};if(B.alpha!==void 0)Te.alpha=B.alpha;return Te},nx=Kk;var sx=(B)=>Math.pow(Math.abs(B),0.4547069271758437)*Math.sign(B),$k=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te={mode:"a98",r:sx(B*2.0415879038107465-ce*0.5650069742788597-0.3447313507783297*pe),g:sx(B*-0.9692436362808798+ce*1.8759675015077206+0.0415550574071756*pe),b:sx(B*0.0134442806320312-ce*0.1183623922310184+1.0151749943912058*pe)};if(we!==void 0)Te.alpha=we;return Te},ix=$k;var fx=(B=0)=>{let ce=Math.abs(B);if(ce<=0.04045)return B/12.92;return(Math.sign(B)||1)*Math.pow((ce+0.055)/1.055,2.4)},Qk=({r:B,g:ce,b:pe,alpha:we})=>{let Te={mode:"lrgb",r:fx(B),g:fx(ce),b:fx(pe)};if(we!==void 0)Te.alpha=we;return Te},bs=Qk;var Yk=(B)=>{let{r:ce,g:pe,b:we,alpha:Te}=bs(B),Fe={mode:"xyz65",x:0.4123907992659593*ce+0.357584339383878*pe+0.1804807884018343*we,y:0.2126390058715102*ce+0.715168678767756*pe+0.0721923153607337*we,z:0.0193308187155918*ce+0.119194779794626*pe+0.9505321522496607*we};if(Te!==void 0)Fe.alpha=Te;return Fe},is=Yk;var lx=(B=0)=>{let ce=Math.abs(B);if(ce>0.0031308)return(Math.sign(B)||1)*(1.055*Math.pow(ce,0.4166666666666667)-0.055);return B*12.92},Zk=({r:B,g:ce,b:pe,alpha:we},Te="rgb")=>{let Fe={mode:Te,r:lx(B),g:lx(ce),b:lx(pe)};if(we!==void 0)Fe.alpha=we;return Fe},vs=Zk;var Jk=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=vs({r:B*3.2409699419045226-ce*1.537383177570094-0.4986107602930034*pe,g:B*-0.9692436362808796+ce*1.8759675015077204+0.0415550574071756*pe,b:B*0.0556300796969936-ce*0.2039769588889765+1.0569715142428784*pe});if(we!==void 0)Te.alpha=we;return Te},fs=Jk;var eR={...ys,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:(B)=>ix(is(B)),xyz65:ix},toMode:{rgb:(B)=>fs(nx(B)),xyz65:nx}},Dy=eR;var tR=(B)=>(B=B%360)<0?B+360:B,Da=tR;var oR=(B,ce)=>B.map((pe,we,Te)=>{if(pe===void 0)return pe;let Fe=Da(pe);if(we===0||B[we-1]===void 0)return Fe;return ce(Fe-Da(Te[we-1]))}).reduce((pe,we)=>{if(!pe.length||we===void 0||pe[pe.length-1]===void 0)return pe.push(we),pe;return pe.push(we+pe[pe.length-1]),pe},[]),rn=(B)=>oR(B,(ce)=>Math.abs(ce)<=180?ce:ce-360*Math.sign(ce));var Qa=[-0.14861,1.78277,-0.29227,-0.90649,1.97294,0],Ly=Math.PI/180,Ay=180/Math.PI;var By=Qa[3]*Qa[4],Ey=Qa[1]*Qa[4],Oy=Qa[1]*Qa[2]-Qa[0]*Qa[3],rR=({r:B,g:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=(Oy*pe+B*By-ce*Ey)/(Oy+By-Ey),Fe=pe-Te,Le=(Qa[4]*(ce-Te)-Qa[2]*Fe)/Qa[3],Be={mode:"cubehelix",l:Te,s:Te===0||Te===1?void 0:Math.sqrt(Fe*Fe+Le*Le)/(Qa[4]*Te*(1-Te))};if(Be.s)Be.h=Math.atan2(Le,Fe)*Ay-120;if(we!==void 0)Be.alpha=we;return Be},Ny=rR;var aR=({h:B,s:ce,l:pe,alpha:we})=>{let Te={mode:"rgb"};if(B=(B===void 0?0:B+120)*Ly,pe===void 0)pe=0;let Fe=ce===void 0?0:ce*pe*(1-pe),Le=Math.cos(B),Be=Math.sin(B);if(Te.r=pe+Fe*(Qa[0]*Le+Qa[1]*Be),Te.g=pe+Fe*(Qa[2]*Le+Qa[3]*Be),Te.b=pe+Fe*(Qa[4]*Le+Qa[5]*Be),we!==void 0)Te.alpha=we;return Te},Vy=aR;var ci=(B,ce)=>{if(B.h===void 0||ce.h===void 0||!B.s||!ce.s)return 0;let pe=Da(B.h),we=Da(ce.h),Te=Math.sin((we-pe+360)/2*Math.PI/180);return 2*Math.sqrt(B.s*ce.s)*Te},Hy=(B,ce)=>{if(B.h===void 0||ce.h===void 0)return 0;let pe=Da(B.h),we=Da(ce.h);if(Math.abs(we-pe)>180)return pe-(we-360*Math.sign(we-pe));return we-pe},ui=(B,ce)=>{if(B.h===void 0||ce.h===void 0||!B.c||!ce.c)return 0;let pe=Da(B.h),we=Da(ce.h),Te=Math.sin((we-pe+360)/2*Math.PI/180);return 2*Math.sqrt(B.c*ce.c)*Te};var an=(B)=>{let ce=B.reduce((we,Te)=>{if(Te!==void 0){let Fe=Te*Math.PI/180;we.sin+=Math.sin(Fe),we.cos+=Math.cos(Fe)}return we},{sin:0,cos:0}),pe=Math.atan2(ce.sin,ce.cos)*180/Math.PI;return pe<0?360+pe:pe};var nR={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Ny},toMode:{rgb:Vy},interpolate:{h:{use:aa,fixup:rn},s:aa,l:aa,alpha:{use:aa,fixup:ba}},difference:{h:ci},average:{h:an}},_y=nR;var sR=({l:B,a:ce,b:pe,alpha:we},Te="lch")=>{if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Fe=Math.sqrt(ce*ce+pe*pe),Le={mode:Te,l:B,c:Fe};if(Fe)Le.h=Da(Math.atan2(pe,ce)*180/Math.PI);if(we!==void 0)Le.alpha=we;return Le},ds=sR;var iR=({l:B,c:ce,h:pe,alpha:we},Te="lab")=>{if(pe===void 0)pe=0;let Fe={mode:Te,l:B,a:ce?ce*Math.cos(pe/180*Math.PI):0,b:ce?ce*Math.sin(pe/180*Math.PI):0};if(we!==void 0)Fe.alpha=we;return Fe},ps=iR;var su=Math.pow(29,3)/Math.pow(3,3),iu=Math.pow(6,3)/Math.pow(29,3);var Oa={X:0.9642956764295677,Y:1,Z:0.8251046025104602},di={X:0.9504559270516716,Y:1,Z:1.0890577507598784},Zgr=Math.pow(29,3)/Math.pow(3,3),Jgr=Math.pow(6,3)/Math.pow(29,3);var cx=(B)=>Math.pow(B,3)>iu?Math.pow(B,3):(116*B-16)/su,fR=({l:B,a:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=(B+16)/116,Fe=ce/500+Te,Le=Te-pe/200,Be={mode:"xyz65",x:cx(Fe)*di.X,y:cx(Te)*di.Y,z:cx(Le)*di.Z};if(we!==void 0)Be.alpha=we;return Be},fu=fR;var lR=(B)=>fs(fu(B)),pi=lR;var ux=(B)=>B>iu?Math.cbrt(B):(su*B+16)/116,cR=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=ux(B/di.X),Fe=ux(ce/di.Y),Le=ux(pe/di.Z),Be={mode:"lab65",l:116*Fe-16,a:500*(Te-Fe),b:200*(Fe-Le)};if(we!==void 0)Be.alpha=we;return Be},lu=cR;var uR=(B)=>{let ce=lu(is(B));if(B.r===B.b&&B.b===B.g)ce.a=ce.b=0;return ce},mi=uR;var wf=1,cu=1,Ui=0.14444444444444443*Math.PI,Tf=Math.cos(Ui),kf=Math.sin(Ui),uu=100/Math.log(1.39);var dR=({l:B,c:ce,h:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te={mode:"lab65",l:(Math.exp(B*wf/uu)-1)/0.0039},Fe=(Math.exp(0.0435*ce*cu*wf)-1)/0.075,Le=Fe*Math.cos(pe/180*Math.PI-Ui),Be=Fe*Math.sin(pe/180*Math.PI-Ui);if(Te.a=Le*Tf-Be/0.83*kf,Te.b=Le*kf+Be/0.83*Tf,we!==void 0)Te.alpha=we;return Te},ul=dR;var pR=({l:B,a:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=ce*Tf+pe*kf,Fe=0.83*(pe*Tf-ce*kf),Le=Math.sqrt(Te*Te+Fe*Fe),Be={mode:"dlch",l:uu/wf*Math.log(1+0.0039*B),c:Math.log(1+0.075*Le)/(0.0435*cu*wf)};if(Be.c)Be.h=Da((Math.atan2(Fe,Te)+Ui)/Math.PI*180);if(we!==void 0)Be.alpha=we;return Be},dl=pR;var Wy=(B)=>ul(ds(B,"dlch")),zy=(B)=>ps(dl(B),"dlab"),mR={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Wy,rgb:(B)=>pi(Wy(B))},fromMode:{lab65:zy,rgb:(B)=>zy(mi(B))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:aa,a:aa,b:aa,alpha:{use:aa,fixup:ba}}},qy=mR;var xR={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:ul,dlab:(B)=>ps(B,"dlab"),rgb:(B)=>pi(ul(B))},fromMode:{lab65:dl,dlab:(B)=>ds(B,"dlch"),rgb:(B)=>dl(mi(B))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:aa,c:aa,h:{use:aa,fixup:rn},alpha:{use:aa,fixup:ba}},difference:{h:ui},average:{h:an}},Uy=xR;function dx({h:B,s:ce,i:pe,alpha:we}){if(B=Da(B!==void 0?B:0),ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.abs(B/60%2-1),Fe;switch(Math.floor(B/60)){case 0:Fe={r:pe*(1+ce*(3/(2-Te)-1)),g:pe*(1+ce*(3*(1-Te)/(2-Te)-1)),b:pe*(1-ce)};break;case 1:Fe={r:pe*(1+ce*(3*(1-Te)/(2-Te)-1)),g:pe*(1+ce*(3/(2-Te)-1)),b:pe*(1-ce)};break;case 2:Fe={r:pe*(1-ce),g:pe*(1+ce*(3/(2-Te)-1)),b:pe*(1+ce*(3*(1-Te)/(2-Te)-1))};break;case 3:Fe={r:pe*(1-ce),g:pe*(1+ce*(3*(1-Te)/(2-Te)-1)),b:pe*(1+ce*(3/(2-Te)-1))};break;case 4:Fe={r:pe*(1+ce*(3*(1-Te)/(2-Te)-1)),g:pe*(1-ce),b:pe*(1+ce*(3/(2-Te)-1))};break;case 5:Fe={r:pe*(1+ce*(3/(2-Te)-1)),g:pe*(1-ce),b:pe*(1+ce*(3*(1-Te)/(2-Te)-1))};break;default:Fe={r:pe*(1-ce),g:pe*(1-ce),b:pe*(1-ce)}}if(Fe.mode="rgb",we!==void 0)Fe.alpha=we;return Fe}function px({r:B,g:ce,b:pe,alpha:we}){if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.max(B,ce,pe),Fe=Math.min(B,ce,pe),Le={mode:"hsi",s:B+ce+pe===0?0:1-3*Fe/(B+ce+pe),i:(B+ce+pe)/3};if(Te-Fe!==0)Le.h=(Te===B?(ce-pe)/(Te-Fe)+(ce<pe)*6:Te===ce?(pe-B)/(Te-Fe)+2:(B-ce)/(Te-Fe)+4)*60;if(we!==void 0)Le.alpha=we;return Le}var IR={mode:"hsi",toMode:{rgb:dx},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:px},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:aa,fixup:rn},s:aa,i:aa,alpha:{use:aa,fixup:ba}},difference:{h:ci},average:{h:an}},Gy=IR;function mx({h:B,s:ce,l:pe,alpha:we}){if(B=Da(B!==void 0?B:0),ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=pe+ce*(pe<0.5?pe:1-pe),Fe=Te-(Te-pe)*2*Math.abs(B/60%2-1),Le;switch(Math.floor(B/60)){case 0:Le={r:Te,g:Fe,b:2*pe-Te};break;case 1:Le={r:Fe,g:Te,b:2*pe-Te};break;case 2:Le={r:2*pe-Te,g:Te,b:Fe};break;case 3:Le={r:2*pe-Te,g:Fe,b:Te};break;case 4:Le={r:Fe,g:2*pe-Te,b:Te};break;case 5:Le={r:Te,g:2*pe-Te,b:Fe};break;default:Le={r:2*pe-Te,g:2*pe-Te,b:2*pe-Te}}if(Le.mode="rgb",we!==void 0)Le.alpha=we;return Le}function xx({r:B,g:ce,b:pe,alpha:we}){if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.max(B,ce,pe),Fe=Math.min(B,ce,pe),Le={mode:"hsl",s:Te===Fe?0:(Te-Fe)/(1-Math.abs(Te+Fe-1)),l:0.5*(Te+Fe)};if(Te-Fe!==0)Le.h=(Te===B?(ce-pe)/(Te-Fe)+(ce<pe)*6:Te===ce?(pe-B)/(Te-Fe)+2:(B-ce)/(Te-Fe)+4)*60;if(we!==void 0)Le.alpha=we;return Le}var hR=(B,ce)=>{switch(ce){case"deg":return+B;case"rad":return B/Math.PI*180;case"grad":return B/10*9;case"turn":return B*360}},jy=hR;var gR=new RegExp(`^hsla?\\(\\s*${by}${li}${qi}${li}${qi}\\s*(?:,\\s*${fl}\\s*)?\\)$`),yR=(B)=>{let ce=B.match(gR);if(!ce)return;let pe={mode:"hsl"};if(ce[3]!==void 0)pe.h=+ce[3];else if(ce[1]!==void 0&&ce[2]!==void 0)pe.h=jy(ce[1],ce[2]);if(ce[4]!==void 0)pe.s=Math.min(Math.max(0,ce[4]/100),1);if(ce[5]!==void 0)pe.l=Math.min(Math.max(0,ce[5]/100),1);if(ce[6]!==void 0)pe.alpha=Math.max(0,Math.min(1,ce[6]/100));else if(ce[7]!==void 0)pe.alpha=Math.max(0,Math.min(1,+ce[7]));return pe},Xy=yR;function bR(B,ce){if(!ce||ce[0]!=="hsl"&&ce[0]!=="hsla")return;let pe={mode:"hsl"},[,we,Te,Fe,Le]=ce;if(we.type!==ra.None){if(we.type===ra.Percentage)return;pe.h=we.value}if(Te.type!==ra.None){if(Te.type===ra.Hue)return;pe.s=Te.value/100}if(Fe.type!==ra.None){if(Fe.type===ra.Hue)return;pe.l=Fe.value/100}if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var Ky=bR;var vR={mode:"hsl",toMode:{rgb:mx},fromMode:{rgb:xx},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Ky,Xy],serialize:(B)=>`hsl(${B.h!==void 0?B.h:"none"} ${B.s!==void 0?B.s*100+"%":"none"} ${B.l!==void 0?B.l*100+"%":"none"}${B.alpha<1?` / ${B.alpha}`:""})`,interpolate:{h:{use:aa,fixup:rn},s:aa,l:aa,alpha:{use:aa,fixup:ba}},difference:{h:ci},average:{h:an}},du=vR;function pl({h:B,s:ce,v:pe,alpha:we}){if(B=Da(B!==void 0?B:0),ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.abs(B/60%2-1),Fe;switch(Math.floor(B/60)){case 0:Fe={r:pe,g:pe*(1-ce*Te),b:pe*(1-ce)};break;case 1:Fe={r:pe*(1-ce*Te),g:pe,b:pe*(1-ce)};break;case 2:Fe={r:pe*(1-ce),g:pe,b:pe*(1-ce*Te)};break;case 3:Fe={r:pe*(1-ce),g:pe*(1-ce*Te),b:pe};break;case 4:Fe={r:pe*(1-ce*Te),g:pe*(1-ce),b:pe};break;case 5:Fe={r:pe,g:pe*(1-ce),b:pe*(1-ce*Te)};break;default:Fe={r:pe*(1-ce),g:pe*(1-ce),b:pe*(1-ce)}}if(Fe.mode="rgb",we!==void 0)Fe.alpha=we;return Fe}function ml({r:B,g:ce,b:pe,alpha:we}){if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.max(B,ce,pe),Fe=Math.min(B,ce,pe),Le={mode:"hsv",s:Te===0?0:1-Fe/Te,v:Te};if(Te-Fe!==0)Le.h=(Te===B?(ce-pe)/(Te-Fe)+(ce<pe)*6:Te===ce?(pe-B)/(Te-Fe)+2:(B-ce)/(Te-Fe)+4)*60;if(we!==void 0)Le.alpha=we;return Le}var SR={mode:"hsv",toMode:{rgb:pl},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:ml},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:aa,fixup:rn},s:aa,v:aa,alpha:{use:aa,fixup:ba}},difference:{h:ci},average:{h:an}},pu=SR;function Ix({h:B,w:ce,b:pe,alpha:we}){if(ce===void 0)ce=0;if(pe===void 0)pe=0;if(ce+pe>1){let Te=ce+pe;ce/=Te,pe/=Te}return pl({h:B,s:pe===1?1:1-ce/(1-pe),v:1-pe,alpha:we})}function hx(B){let ce=ml(B);if(ce===void 0)return;let pe=ce.s!==void 0?ce.s:0,we=ce.v!==void 0?ce.v:0,Te={mode:"hwb",w:(1-pe)*we,b:1-we};if(ce.h!==void 0)Te.h=ce.h;if(ce.alpha!==void 0)Te.alpha=ce.alpha;return Te}function CR(B,ce){if(!ce||ce[0]!=="hwb")return;let pe={mode:"hwb"},[,we,Te,Fe,Le]=ce;if(we.type!==ra.None){if(we.type===ra.Percentage)return;pe.h=we.value}if(Te.type!==ra.None){if(Te.type===ra.Hue)return;pe.w=Te.value/100}if(Fe.type!==ra.None){if(Fe.type===ra.Hue)return;pe.b=Fe.value/100}if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var $y=CR;var wR={mode:"hwb",toMode:{rgb:Ix},fromMode:{rgb:hx},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[$y],serialize:(B)=>`hwb(${B.h!==void 0?B.h:"none"} ${B.w!==void 0?B.w*100+"%":"none"} ${B.b!==void 0?B.b*100+"%":"none"}${B.alpha<1?` / ${B.alpha}`:""})`,interpolate:{h:{use:aa,fixup:rn},w:aa,b:aa,alpha:{use:aa,fixup:ba}},difference:{h:Hy},average:{h:an}},Qy=wR;var mu=203;var xu=0.1593017578125;var Iu=0.8359375,hu=18.8515625,gu=18.6875;function yu(B){if(B<0)return 0;let ce=Math.pow(B,0.012683313515655966);return 1e4*Math.pow(Math.max(0,ce-0.8359375)/(18.8515625-18.6875*ce),6.277394636015326)}function bu(B){if(B<0)return 0;let ce=Math.pow(B/1e4,0.1593017578125);return Math.pow((0.8359375+18.8515625*ce)/(1+18.6875*ce),78.84375)}var gx=(B)=>Math.max(B/mu,0),TR=({i:B,t:ce,p:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=yu(B+0.008609037037932761*ce+0.11102962500302593*pe),Fe=yu(B-0.00860903703793275*ce-0.11102962500302599*pe),Le=yu(B+0.5600313357106791*ce-0.32062717498731885*pe),Be={mode:"xyz65",x:gx(2.070152218389422*Te-1.3263473389671556*Fe+0.2066510476294051*Le),y:gx(0.3647385209748074*Te+0.680566024947227*Fe-0.0453045459220346*Le),z:gx(-0.049747207535812*Te-0.0492609666966138*Fe+1.1880659249923042*Le)};if(we!==void 0)Be.alpha=we;return Be},yx=TR;var bx=(B=0)=>Math.max(B*mu,0),kR=({x:B,y:ce,z:pe,alpha:we})=>{let Te=bx(B),Fe=bx(ce),Le=bx(pe),Be=bu(0.3592832590121217*Te+0.6976051147779502*Fe-0.0358915932320289*Le),ot=bu(-0.1920808463704995*Te+1.1004767970374323*Fe+0.0753748658519118*Le),nt=bu(0.0070797844607477*Te+0.0748396662186366*Fe+0.8433265453898765*Le),vt=0.5*Be+0.5*ot,St=1.61376953125*Be-3.323486328125*ot+1.709716796875*nt,wt=4.378173828125*Be-4.24560546875*ot-0.132568359375*nt,Do={mode:"itp",i:vt,t:St,p:wt};if(we!==void 0)Do.alpha=we;return Do},vx=kR;var RR={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:yx,rgb:(B)=>fs(yx(B))},fromMode:{xyz65:vx,rgb:(B)=>vx(is(B))},ranges:{i:[0,0.581],t:[-0.369,0.272],p:[-0.164,0.331]},interpolate:{i:aa,t:aa,p:aa,alpha:{use:aa,fixup:ba}}},Yy=RR;var MR=134.03437499999998,PR=0.000000000016295499532821565,Sx=(B)=>{if(B<0)return 0;let ce=Math.pow(B/1e4,xu);return Math.pow((Iu+hu*ce)/(1+gu*ce),MR)},Cx=(B=0)=>Math.max(B*203,0),FR=({x:B,y:ce,z:pe,alpha:we})=>{B=Cx(B),ce=Cx(ce),pe=Cx(pe);let Te=1.15*B-0.15*pe,Fe=0.66*ce+0.34*B,Le=Sx(0.41478972*Te+0.579999*Fe+0.014648*pe),Be=Sx(-0.20151*Te+1.120649*Fe+0.0531008*pe),ot=Sx(-0.0166008*Te+0.2648*Fe+0.6684799*pe),nt=(Le+Be)/2,vt={mode:"jab",j:0.44*nt/(1-0.56*nt)-PR,a:3.524*Le-4.066708*Be+0.542708*ot,b:0.199076*Le+1.096799*Be-1.295875*ot};if(we!==void 0)vt.alpha=we;return vt},vu=FR;var DR=134.03437499999998,Zy=0.000000000016295499532821565,wx=(B)=>{if(B<0)return 0;let ce=Math.pow(B,1/DR);return 1e4*Math.pow((Iu-ce)/(gu*ce-hu),1/xu)},Tx=(B)=>B/203,LR=({j:B,a:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=(B+Zy)/(0.44+0.56*(B+Zy)),Fe=wx(Te+0.13860504*ce+0.058047316*pe),Le=wx(Te-0.13860504*ce-0.058047316*pe),Be=wx(Te-0.096019242*ce-0.8118919*pe),ot={mode:"xyz65",x:Tx(1.661373024652174*Fe-0.914523081304348*Le+0.23136208173913045*Be),y:Tx(-0.3250758611844533*Fe+1.571847026732543*Le-0.21825383453227928*Be),z:Tx(-0.090982811*Fe-0.31272829*Le+1.5227666*Be)};if(we!==void 0)ot.alpha=we;return ot},Su=LR;var AR=(B)=>{let ce=vu(is(B));if(B.r===B.b&&B.b===B.g)ce.a=ce.b=0;return ce},Cu=AR;var BR=(B)=>fs(Su(B)),wu=BR;var ER={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Cu,xyz65:vu},toMode:{rgb:wu,xyz65:Su},ranges:{j:[0,0.222],a:[-0.109,0.129],b:[-0.185,0.134]},interpolate:{j:aa,a:aa,b:aa,alpha:{use:aa,fixup:ba}}},Jy=ER;var OR=({j:B,a:ce,b:pe,alpha:we})=>{if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.sqrt(ce*ce+pe*pe),Fe={mode:"jch",j:B,c:Te};if(Te)Fe.h=Da(Math.atan2(pe,ce)*180/Math.PI);if(we!==void 0)Fe.alpha=we;return Fe},kx=OR;var NR=({j:B,c:ce,h:pe,alpha:we})=>{if(pe===void 0)pe=0;let Te={mode:"jab",j:B,a:ce?ce*Math.cos(pe/180*Math.PI):0,b:ce?ce*Math.sin(pe/180*Math.PI):0};if(we!==void 0)Te.alpha=we;return Te},Rx=NR;var VR={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Rx,rgb:(B)=>wu(Rx(B))},fromMode:{rgb:(B)=>kx(Cu(B)),jab:kx},channels:["j","c","h","alpha"],ranges:{j:[0,0.221],c:[0,0.19],h:[0,360]},interpolate:{h:{use:aa,fixup:rn},c:aa,j:aa,alpha:{use:aa,fixup:ba}},difference:{h:ui},average:{h:an}},eb=VR;var xi=Math.pow(29,3)/Math.pow(3,3),Rf=Math.pow(6,3)/Math.pow(29,3);var Mx=(B)=>Math.pow(B,3)>Rf?Math.pow(B,3):(116*B-16)/xi,HR=({l:B,a:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=(B+16)/116,Fe=ce/500+Te,Le=Te-pe/200,Be={mode:"xyz50",x:Mx(Fe)*Oa.X,y:Mx(Te)*Oa.Y,z:Mx(Le)*Oa.Z};if(we!==void 0)Be.alpha=we;return Be},Mf=HR;var _R=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=vs({r:B*3.1341359569958707-ce*1.6173863321612538-0.4906619460083532*pe,g:B*-0.978795502912089+ce*1.916254567259524+0.03344273116131949*pe,b:B*0.07195537988411677-ce*0.2289768264158322+1.405386058324125*pe});if(we!==void 0)Te.alpha=we;return Te},Ns=_R;var WR=(B)=>Ns(Mf(B)),Tu=WR;var zR=(B)=>{let{r:ce,g:pe,b:we,alpha:Te}=bs(B),Fe={mode:"xyz50",x:0.436065742824811*ce+0.3851514688337912*pe+0.14307845442264197*we,y:0.22249319175623702*ce+0.7168870538238823*pe+0.06061979053616537*we,z:0.013923904500943465*ce+0.09708128566574634*pe+0.7140993584005155*we};if(Te!==void 0)Fe.alpha=Te;return Fe},Vs=zR;var Px=(B)=>B>Rf?Math.cbrt(B):(xi*B+16)/116,qR=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Px(B/Oa.X),Fe=Px(ce/Oa.Y),Le=Px(pe/Oa.Z),Be={mode:"lab",l:116*Fe-16,a:500*(Te-Fe),b:200*(Fe-Le)};if(we!==void 0)Be.alpha=we;return Be},Pf=qR;var UR=(B)=>{let ce=Pf(Vs(B));if(B.r===B.b&&B.b===B.g)ce.a=ce.b=0;return ce},ku=UR;function GR(B,ce){if(!ce||ce[0]!=="lab")return;let pe={mode:"lab"},[,we,Te,Fe,Le]=ce;if(we.type===ra.Hue||Te.type===ra.Hue||Fe.type===ra.Hue)return;if(we.type!==ra.None)pe.l=Math.min(Math.max(0,we.value),100);if(Te.type!==ra.None)pe.a=Te.type===ra.Number?Te.value:Te.value*125/100;if(Fe.type!==ra.None)pe.b=Fe.type===ra.Number?Fe.value:Fe.value*125/100;if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var tb=GR;var jR={mode:"lab",toMode:{xyz50:Mf,rgb:Tu},fromMode:{xyz50:Pf,rgb:ku},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[tb],serialize:(B)=>`lab(${B.l!==void 0?B.l:"none"} ${B.a!==void 0?B.a:"none"} ${B.b!==void 0?B.b:"none"}${B.alpha<1?` / ${B.alpha}`:""})`,interpolate:{l:aa,a:aa,b:aa,alpha:{use:aa,fixup:ba}}},Ff=jR;var XR={...Ff,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:fu,rgb:pi},fromMode:{xyz65:lu,rgb:mi},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},ob=XR;function KR(B,ce){if(!ce||ce[0]!=="lch")return;let pe={mode:"lch"},[,we,Te,Fe,Le]=ce;if(we.type!==ra.None){if(we.type===ra.Hue)return;pe.l=Math.min(Math.max(0,we.value),100)}if(Te.type!==ra.None)pe.c=Math.max(0,Te.type===ra.Number?Te.value:Te.value*150/100);if(Fe.type!==ra.None){if(Fe.type===ra.Percentage)return;pe.h=Fe.value}if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var rb=KR;var $R={mode:"lch",toMode:{lab:ps,rgb:(B)=>Tu(ps(B))},fromMode:{rgb:(B)=>ds(ku(B)),lab:ds},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[rb],serialize:(B)=>`lch(${B.l!==void 0?B.l:"none"} ${B.c!==void 0?B.c:"none"} ${B.h!==void 0?B.h:"none"}${B.alpha<1?` / ${B.alpha}`:""})`,interpolate:{h:{use:aa,fixup:rn},c:aa,l:aa,alpha:{use:aa,fixup:ba}},difference:{h:ui},average:{h:an}},Df=$R;var QR={...Df,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:(B)=>ps(B,"lab65"),rgb:(B)=>pi(ps(B,"lab65"))},fromMode:{rgb:(B)=>ds(mi(B),"lch65"),lab65:(B)=>ds(B,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},ab=QR;var YR=({l:B,u:ce,v:pe,alpha:we})=>{if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.sqrt(ce*ce+pe*pe),Fe={mode:"lchuv",l:B,c:Te};if(Te)Fe.h=Da(Math.atan2(pe,ce)*180/Math.PI);if(we!==void 0)Fe.alpha=we;return Fe},Fx=YR;var ZR=({l:B,c:ce,h:pe,alpha:we})=>{if(pe===void 0)pe=0;let Te={mode:"luv",l:B,u:ce?ce*Math.cos(pe/180*Math.PI):0,v:ce?ce*Math.sin(pe/180*Math.PI):0};if(we!==void 0)Te.alpha=we;return Te},Dx=ZR;var nb=(B,ce,pe)=>4*B/(B+15*ce+3*pe),sb=(B,ce,pe)=>9*ce/(B+15*ce+3*pe),JR=nb(Oa.X,Oa.Y,Oa.Z),eM=sb(Oa.X,Oa.Y,Oa.Z),tM=(B)=>B<=Rf?xi*B:116*Math.cbrt(B)-16,oM=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=tM(ce/Oa.Y),Fe=nb(B,ce,pe),Le=sb(B,ce,pe);if(!isFinite(Fe)||!isFinite(Le))Te=Fe=Le=0;else Fe=13*Te*(Fe-JR),Le=13*Te*(Le-eM);let Be={mode:"luv",l:Te,u:Fe,v:Le};if(we!==void 0)Be.alpha=we;return Be},xl=oM;var rM=(B,ce,pe)=>4*B/(B+15*ce+3*pe),aM=(B,ce,pe)=>9*ce/(B+15*ce+3*pe),nM=rM(Oa.X,Oa.Y,Oa.Z),sM=aM(Oa.X,Oa.Y,Oa.Z),iM=({l:B,u:ce,v:pe,alpha:we})=>{if(B===void 0)B=0;if(B===0)return{mode:"xyz50",x:0,y:0,z:0};if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=ce/(13*B)+nM,Fe=pe/(13*B)+sM,Le=Oa.Y*(B<=8?B/xi:Math.pow((B+16)/116,3)),Be=Le*(9*Te)/(4*Fe),ot=Le*(12-3*Te-20*Fe)/(4*Fe),nt={mode:"xyz50",x:Be,y:Le,z:ot};if(we!==void 0)nt.alpha=we;return nt},Il=iM;var fM=(B)=>Fx(xl(Vs(B))),lM=(B)=>Ns(Il(Dx(B))),cM={mode:"lchuv",toMode:{luv:Dx,rgb:lM},fromMode:{rgb:fM,luv:Fx},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:aa,fixup:rn},c:aa,l:aa,alpha:{use:aa,fixup:ba}},difference:{h:ui},average:{h:an}},ib=cM;var uM={...ys,mode:"lrgb",toMode:{rgb:vs},fromMode:{rgb:bs},parse:["srgb-linear"],serialize:"srgb-linear"},fb=uM;var dM={mode:"luv",toMode:{xyz50:Il,rgb:(B)=>Ns(Il(B))},fromMode:{xyz50:xl,rgb:(B)=>xl(Vs(B))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:aa,u:aa,v:aa,alpha:{use:aa,fixup:ba}}},lb=dM;var pM=({r:B,g:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.cbrt(0.412221469470763*B+0.5363325372617348*ce+0.0514459932675022*pe),Fe=Math.cbrt(0.2119034958178252*B+0.6806995506452344*ce+0.1073969535369406*pe),Le=Math.cbrt(0.0883024591900564*B+0.2817188391361215*ce+0.6299787016738222*pe),Be={mode:"oklab",l:0.210454268309314*Te+0.7936177747023054*Fe-0.0040720430116193*Le,a:1.9779985324311684*Te-2.42859224204858*Fe+0.450593709617411*Le,b:0.0259040424655478*Te+0.7827717124575296*Fe-0.8086757549230774*Le};if(we!==void 0)Be.alpha=we;return Be},Ru=pM;var mM=(B)=>{let ce=Ru(bs(B));if(B.r===B.b&&B.b===B.g)ce.a=ce.b=0;return ce},Ii=mM;var xM=({l:B,a:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Math.pow(B+0.3963377773761749*ce+0.2158037573099136*pe,3),Fe=Math.pow(B-0.1055613458156586*ce-0.0638541728258133*pe,3),Le=Math.pow(B-0.0894841775298119*ce-1.2914855480194092*pe,3),Be={mode:"lrgb",r:4.076741636075957*Te-3.3077115392580616*Fe+0.2309699031821044*Le,g:-1.2684379732850317*Te+2.6097573492876887*Fe-0.3413193760026573*Le,b:-0.0041960761386756*Te-0.7034186179359362*Fe+1.7076146940746117*Le};if(we!==void 0)Be.alpha=we;return Be},Hs=xM;var IM=(B)=>vs(Hs(B)),hi=IM;function hl(B){return 0.5*(1.170873786407767*B-0.206+Math.sqrt((1.170873786407767*B-0.206)*(1.170873786407767*B-0.206)+0.14050485436893204*B))}function Gi(B){return(B*B+0.206*B)/(1.170873786407767*(B+0.03))}function hM(B,ce){let pe,we,Te,Fe,Le,Be,ot,nt;if(-1.88170328*B-0.80936493*ce>1)pe=1.19086277,we=1.76576728,Te=0.59662641,Fe=0.75515197,Le=0.56771245,Be=4.0767416621,ot=-3.3077115913,nt=0.2309699292;else if(1.81444104*B-1.19445276*ce>1)pe=0.73956515,we=-0.45954404,Te=0.08285427,Fe=0.1254107,Le=0.14503204,Be=-1.2684380046,ot=2.6097574011,nt=-0.3413193965;else pe=1.35733652,we=-0.00915799,Te=-1.1513021,Fe=-0.50559606,Le=0.00692167,Be=-0.0041960863,ot=-0.7034186147,nt=1.707614701;let vt=pe+we*B+Te*ce+Fe*B*B+Le*B*ce,St=0.3963377774*B+0.2158037573*ce,wt=-0.1055613458*B-0.0638541728*ce,Do=-0.0894841775*B-1.291485548*ce;{let eo=1+vt*St,Ir=1+vt*wt,wr=1+vt*Do,Jr=eo*eo*eo,ta=Ir*Ir*Ir,oa=wr*wr*wr,Qr=3*St*eo*eo,sa=3*wt*Ir*Ir,ua=3*Do*wr*wr,ca=6*St*St*eo,ea=6*wt*wt*Ir,ma=6*Do*Do*wr,da=Be*Jr+ot*ta+nt*oa,ga=Be*Qr+ot*sa+nt*ua,va=Be*ca+ot*ea+nt*ma;vt=vt-da*ga/(ga*ga-0.5*da*va)}return vt}function Lx(B,ce){let pe=hM(B,ce),we=Hs({l:1,a:pe*B,b:pe*ce}),Te=Math.cbrt(1/Math.max(we.r,we.g,we.b)),Fe=Te*pe;return[Te,Fe]}function gM(B,ce,pe,we,Te,Fe=null){if(!Fe)Fe=Lx(B,ce);let Le;if((pe-Te)*Fe[1]-(Fe[0]-Te)*we<=0)Le=Fe[1]*Te/(we*Fe[0]+Fe[1]*(Te-pe));else{Le=Fe[1]*(Te-1)/(we*(Fe[0]-1)+Fe[1]*(Te-pe));{let Be=pe-Te,ot=we,nt=0.3963377774*B+0.2158037573*ce,vt=-0.1055613458*B-0.0638541728*ce,St=-0.0894841775*B-1.291485548*ce,wt=Be+ot*nt,Do=Be+ot*vt,eo=Be+ot*St;{let Ir=Te*(1-Le)+Le*pe,wr=Le*we,Jr=Ir+wr*nt,ta=Ir+wr*vt,oa=Ir+wr*St,Qr=Jr*Jr*Jr,sa=ta*ta*ta,ua=oa*oa*oa,ca=3*wt*Jr*Jr,ea=3*Do*ta*ta,ma=3*eo*oa*oa,da=6*wt*wt*Jr,ga=6*Do*Do*ta,va=6*eo*eo*oa,La=4.0767416621*Qr-3.3077115913*sa+0.2309699292*ua-1,_a=4.0767416621*ca-3.3077115913*ea+0.2309699292*ma,Aa=4.0767416621*da-3.3077115913*ga+0.2309699292*va,Ca=_a/(_a*_a-0.5*La*Aa),Xa=-La*Ca,ka=-1.2684380046*Qr+2.6097574011*sa-0.3413193965*ua-1,pa=-1.2684380046*ca+2.6097574011*ea-0.3413193965*ma,na=-1.2684380046*da+2.6097574011*ga-0.3413193965*va,Ua=pa/(pa*pa-0.5*ka*na),cs=-ka*Ua,us=-0.0041960863*Qr-0.7034186147*sa+1.707614701*ua-1,os=-0.0041960863*ca-0.7034186147*ea+1.707614701*ma,Ma=-0.0041960863*da-0.7034186147*ga+1.707614701*va,Ba=os/(os*os-0.5*us*Ma),Is=-us*Ba;Xa=Ca>=0?Xa:1e6,cs=Ua>=0?cs:1e6,Is=Ba>=0?Is:1e6,Le+=Math.min(Xa,Math.min(cs,Is))}}}return Le}function gl(B,ce,pe=null){if(!pe)pe=Lx(B,ce);let we=pe[0],Te=pe[1];return[Te/we,Te/(1-we)]}function Mu(B,ce,pe){let we=Lx(ce,pe),Te=gM(ce,pe,B,1,B,we),Fe=gl(ce,pe,we),Le=0.11516993+1/(7.4477897+4.1590124*pe+ce*(-2.19557347+1.75198401*pe+ce*(-2.13704948-10.02301043*pe+ce*(-4.24894561+5.38770819*pe+4.69891013*ce)))),Be=0.11239642+1/(1.6132032-0.68124379*pe+ce*(0.40370612+0.90148123*pe+ce*(-0.27087943+0.6122399*pe+ce*(0.00299215-0.45399568*pe-0.14661872*ce)))),ot=Te/Math.min(B*Fe[0],(1-B)*Fe[1]),nt=B*Le,vt=(1-B)*Be,St=0.9*ot*Math.sqrt(Math.sqrt(1/(1/(nt*nt*nt*nt)+1/(vt*vt*vt*vt))));return nt=B*0.4,vt=(1-B)*0.8,[Math.sqrt(1/(1/(nt*nt)+1/(vt*vt))),St,Te]}function Pu(B){let ce=B.l!==void 0?B.l:0,pe=B.a!==void 0?B.a:0,we=B.b!==void 0?B.b:0,Te={mode:"okhsl",l:hl(ce)};if(B.alpha!==void 0)Te.alpha=B.alpha;let Fe=Math.sqrt(pe*pe+we*we);if(!Fe)return Te.s=0,Te;let[Le,Be,ot]=Mu(ce,pe/Fe,we/Fe),nt;if(Fe<Be){let vt=0,St=0.8*Le,wt=1-St/Be;nt=(Fe-vt)/(St+wt*(Fe-vt))*0.8}else{let vt=Be,St=0.2*Be*Be*1.25*1.25/Le,wt=1-St/(ot-Be);nt=0.8+0.2*((Fe-vt)/(St+wt*(Fe-vt)))}if(nt)Te.s=nt,Te.h=Da(Math.atan2(we,pe)*180/Math.PI);return Te}function Fu(B){let ce=B.h!==void 0?B.h:0,pe=B.s!==void 0?B.s:0,we=B.l!==void 0?B.l:0,Te={mode:"oklab",l:Gi(we)};if(B.alpha!==void 0)Te.alpha=B.alpha;if(!pe||we===1)return Te.a=Te.b=0,Te;let Fe=Math.cos(ce/180*Math.PI),Le=Math.sin(ce/180*Math.PI),[Be,ot,nt]=Mu(Te.l,Fe,Le),vt,St,wt,Do;if(pe<0.8)vt=1.25*pe,St=0,wt=0.8*Be,Do=1-wt/ot;else vt=5*(pe-0.8),St=ot,wt=0.2*ot*ot*1.25*1.25/Be,Do=1-wt/(nt-ot);let eo=St+vt*wt/(1-Do*vt);return Te.a=eo*Fe,Te.b=eo*Le,Te}var yM={...du,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Pu,rgb:(B)=>Pu(Ii(B))},toMode:{oklab:Fu,rgb:(B)=>hi(Fu(B))}},cb=yM;function Du(B){let ce=B.l!==void 0?B.l:0,pe=B.a!==void 0?B.a:0,we=B.b!==void 0?B.b:0,Te=Math.sqrt(pe*pe+we*we),Fe=Te?pe/Te:1,Le=Te?we/Te:1,[Be,ot]=gl(Fe,Le),nt=0.5,vt=1-nt/Be,St=ot/(Te+ce*ot),wt=St*ce,Do=St*Te,eo=Gi(wt),Ir=Do*eo/wt,wr=Hs({l:eo,a:Fe*Ir,b:Le*Ir}),Jr=Math.cbrt(1/Math.max(wr.r,wr.g,wr.b,0));ce=ce/Jr,Te=Te/Jr*hl(ce)/ce,ce=hl(ce);let ta={mode:"okhsv",s:Te?(nt+ot)*Do/(ot*nt+ot*vt*Do):0,v:ce?ce/wt:0};if(ta.s)ta.h=Da(Math.atan2(we,pe)*180/Math.PI);if(B.alpha!==void 0)ta.alpha=B.alpha;return ta}function Lu(B){let ce={mode:"oklab"};if(B.alpha!==void 0)ce.alpha=B.alpha;let pe=B.h!==void 0?B.h:0,we=B.s!==void 0?B.s:0,Te=B.v!==void 0?B.v:0,Fe=Math.cos(pe/180*Math.PI),Le=Math.sin(pe/180*Math.PI),[Be,ot]=gl(Fe,Le),nt=0.5,vt=1-nt/Be,St=1-we*nt/(nt+ot-ot*vt*we),wt=we*ot*nt/(nt+ot-ot*vt*we),Do=Gi(St),eo=wt*Do/St,Ir=Hs({l:Do,a:Fe*eo,b:Le*eo}),wr=Math.cbrt(1/Math.max(Ir.r,Ir.g,Ir.b,0)),Jr=Gi(Te*St),ta=wt*Jr/St;return ce.l=Jr*wr,ce.a=ta*Fe*wr,ce.b=ta*Le*wr,ce}var bM={...pu,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Du,rgb:(B)=>Du(Ii(B))},toMode:{oklab:Lu,rgb:(B)=>hi(Lu(B))}},ub=bM;function vM(B,ce){if(!ce||ce[0]!=="oklab")return;let pe={mode:"oklab"},[,we,Te,Fe,Le]=ce;if(we.type===ra.Hue||Te.type===ra.Hue||Fe.type===ra.Hue)return;if(we.type!==ra.None)pe.l=Math.min(Math.max(0,we.type===ra.Number?we.value:we.value/100),1);if(Te.type!==ra.None)pe.a=Te.type===ra.Number?Te.value:Te.value*0.4/100;if(Fe.type!==ra.None)pe.b=Fe.type===ra.Number?Fe.value:Fe.value*0.4/100;if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var db=vM;var SM={...Ff,mode:"oklab",toMode:{lrgb:Hs,rgb:hi},fromMode:{lrgb:Ru,rgb:Ii},ranges:{l:[0,1],a:[-0.4,0.4],b:[-0.4,0.4]},parse:[db],serialize:(B)=>`oklab(${B.l!==void 0?B.l:"none"} ${B.a!==void 0?B.a:"none"} ${B.b!==void 0?B.b:"none"}${B.alpha<1?` / ${B.alpha}`:""})`},pb=SM;function CM(B,ce){if(!ce||ce[0]!=="oklch")return;let pe={mode:"oklch"},[,we,Te,Fe,Le]=ce;if(we.type!==ra.None){if(we.type===ra.Hue)return;pe.l=Math.min(Math.max(0,we.type===ra.Number?we.value:we.value/100),1)}if(Te.type!==ra.None)pe.c=Math.max(0,Te.type===ra.Number?Te.value:Te.value*0.4/100);if(Fe.type!==ra.None){if(Fe.type===ra.Percentage)return;pe.h=Fe.value}if(Le.type!==ra.None)pe.alpha=Math.min(1,Math.max(0,Le.type===ra.Number?Le.value:Le.value/100));return pe}var mb=CM;var wM={...Df,mode:"oklch",toMode:{oklab:(B)=>ps(B,"oklab"),rgb:(B)=>hi(ps(B,"oklab"))},fromMode:{rgb:(B)=>ds(Ii(B),"oklch"),oklab:(B)=>ds(B,"oklch")},parse:[mb],serialize:(B)=>`oklch(${B.l!==void 0?B.l:"none"} ${B.c!==void 0?B.c:"none"} ${B.h!==void 0?B.h:"none"}${B.alpha<1?` / ${B.alpha}`:""})`,ranges:{l:[0,1],c:[0,0.4],h:[0,360]}},xb=wM;var TM=(B)=>{let{r:ce,g:pe,b:we,alpha:Te}=bs(B),Fe={mode:"xyz65",x:0.486570948648216*ce+0.265667693169093*pe+0.1982172852343625*we,y:0.2289745640697487*ce+0.6917385218365062*pe+0.079286914093745*we,z:0*ce+0.0451133818589026*pe+1.043944368900976*we};if(Te!==void 0)Fe.alpha=Te;return Fe},Ax=TM;var kM=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=vs({r:B*2.4934969119414263-ce*0.9313836179191242-0.402710784450717*pe,g:B*-0.8294889695615749+ce*1.7626640603183465+0.0236246858419436*pe,b:B*0.0358458302437845-ce*0.0761723892680418+0.9568845240076871*pe},"p3");if(we!==void 0)Te.alpha=we;return Te},Bx=kM;var RM={...ys,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:(B)=>Bx(is(B)),xyz65:Bx},toMode:{rgb:(B)=>fs(Ax(B)),xyz65:Ax}},Ib=RM;var Ex=(B)=>{let ce=Math.abs(B);if(ce>=0.001953125)return Math.sign(B)*Math.pow(ce,0.5555555555555556);return 16*B},MM=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te={mode:"prophoto",r:Ex(B*1.3457868816471585-ce*0.2555720873797946-0.0511018649755453*pe),g:Ex(B*-0.5446307051249019+ce*1.5082477428451466+0.0205274474364214*pe),b:Ex(B*0+ce*0+1.2119675456389452*pe)};if(we!==void 0)Te.alpha=we;return Te},Ox=MM;var Nx=(B=0)=>{let ce=Math.abs(B);if(ce>=0.03125)return Math.sign(B)*Math.pow(ce,1.8);return B/16},PM=(B)=>{let ce=Nx(B.r),pe=Nx(B.g),we=Nx(B.b),Te={mode:"xyz50",x:0.7977666449006423*ce+0.1351812974005331*pe+0.0313477341283922*we,y:0.2880748288194013*ce+0.7118352342418731*pe+0.0000899369387256*we,z:0*ce+0*pe+0.8251046025104602*we};if(B.alpha!==void 0)Te.alpha=B.alpha;return Te},Vx=PM;var FM={...ys,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Ox,rgb:(B)=>Ox(Vs(B))},toMode:{xyz50:Vx,rgb:(B)=>Ns(Vx(B))}},hb=FM;var Hx=(B)=>{let ce=Math.abs(B);if(ce>0.018053968510807)return(Math.sign(B)||1)*(1.09929682680944*Math.pow(ce,0.45)-0.09929682680944008);return 4.5*B},DM=({x:B,y:ce,z:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te={mode:"rec2020",r:Hx(B*1.7166511879712683-ce*0.3556707837763925-0.2533662813736599*pe),g:Hx(B*-0.6666843518324893+ce*1.6164812366349395+0.0157685458139111*pe),b:Hx(B*0.0176398574453108-ce*0.0427706132578085+0.9421031212354739*pe)};if(we!==void 0)Te.alpha=we;return Te},_x=DM;var Wx=(B=0)=>{let ce=Math.abs(B);if(ce<0.08124285829863151)return B/4.5;return(Math.sign(B)||1)*Math.pow((ce+1.09929682680944-1)/1.09929682680944,2.2222222222222223)},LM=(B)=>{let ce=Wx(B.r),pe=Wx(B.g),we=Wx(B.b),Te={mode:"xyz65",x:0.6369580483012911*ce+0.1446169035862083*pe+0.1688809751641721*we,y:0.262700212011267*ce+0.6779980715188708*pe+0.059301716469862*we,z:0*ce+0.0280726930490874*pe+1.0609850577107909*we};if(B.alpha!==void 0)Te.alpha=B.alpha;return Te},zx=LM;var AM={...ys,mode:"rec2020",fromMode:{xyz65:_x,rgb:(B)=>_x(is(B))},toMode:{xyz65:zx,rgb:(B)=>fs(zx(B))},parse:["rec2020"],serialize:"rec2020"},gb=AM;var gi=0.0037930732552754493,Au=Math.cbrt(0.0037930732552754493);var qx=(B)=>Math.cbrt(B)-Au,BM=(B)=>{let{r:ce,g:pe,b:we,alpha:Te}=bs(B),Fe=qx(0.3*ce+0.622*pe+0.078*we+gi),Le=qx(0.23*ce+0.692*pe+0.078*we+gi),Be=qx(0.2434226892454782*ce+0.2047674442449682*pe+0.5518098665095535*we+gi),ot={mode:"xyb",x:(Fe-Le)/2,y:(Fe+Le)/2,b:Be-(Fe+Le)/2};if(Te!==void 0)ot.alpha=Te;return ot},yb=BM;var Ux=(B)=>Math.pow(B+Au,3),EM=({x:B,y:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te=Ux(B+ce)-gi,Fe=Ux(ce-B)-gi,Le=Ux(pe+ce)-gi,Be=vs({r:11.031566904639861*Te-9.866943908131562*Fe-0.16462299650829934*Le,g:-3.2541473810744237*Te+4.418770377582723*Fe-0.16462299650829934*Le,b:-3.6588512867136815*Te+2.7129230459360922*Fe+1.9459282407775895*Le});if(we!==void 0)Be.alpha=we;return Be},bb=EM;var OM={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:bb},fromMode:{rgb:yb},ranges:{x:[-0.0154,0.0281],y:[0,0.8453],b:[-0.2778,0.388]},interpolate:{x:aa,y:aa,b:aa,alpha:{use:aa,fixup:ba}}},vb=OM;var NM={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Ns,lab:Pf},fromMode:{rgb:Vs,lab:Mf},channels:["x","y","z","alpha"],ranges:{x:[0,0.964],y:[0,0.999],z:[0,0.825]},interpolate:{x:aa,y:aa,z:aa,alpha:{use:aa,fixup:ba}}},Sb=NM;var VM=(B)=>{let{x:ce,y:pe,z:we,alpha:Te}=B;if(ce===void 0)ce=0;if(pe===void 0)pe=0;if(we===void 0)we=0;let Fe={mode:"xyz50",x:1.0479298208405488*ce+0.0229467933410191*pe-0.0501922295431356*we,y:0.0296278156881593*ce+0.990434484573249*pe-0.0170738250293851*we,z:-0.0092430581525912*ce+0.0150551448965779*pe+0.7518742899580008*we};if(Te!==void 0)Fe.alpha=Te;return Fe},Cb=VM;var HM=(B)=>{let{x:ce,y:pe,z:we,alpha:Te}=B;if(ce===void 0)ce=0;if(pe===void 0)pe=0;if(we===void 0)we=0;let Fe={mode:"xyz65",x:0.9554734527042182*ce-0.0230985368742614*pe+0.0632593086610217*we,y:-0.0283697069632081*ce+1.0099954580058226*pe+0.021041398966943*we,z:0.0123140016883199*ce-0.0205076964334779*pe+1.3303659366080753*we};if(Te!==void 0)Fe.alpha=Te;return Fe},wb=HM;var _M={mode:"xyz65",toMode:{rgb:fs,xyz50:Cb},fromMode:{rgb:is,xyz50:wb},ranges:{x:[0,0.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:aa,y:aa,z:aa,alpha:{use:aa,fixup:ba}}},Tb=_M;var WM=({r:B,g:ce,b:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te={mode:"yiq",y:0.29889531*B+0.58662247*ce+0.11448223*pe,i:0.59597799*B-0.2741761*ce-0.32180189*pe,q:0.21147017*B-0.52261711*ce+0.31114694*pe};if(we!==void 0)Te.alpha=we;return Te},kb=WM;var zM=({y:B,i:ce,q:pe,alpha:we})=>{if(B===void 0)B=0;if(ce===void 0)ce=0;if(pe===void 0)pe=0;let Te={mode:"rgb",r:B+0.95608445*ce+0.6208885*pe,g:B-0.27137664*ce-0.6486059*pe,b:B-1.10561724*ce+1.70250126*pe};if(we!==void 0)Te.alpha=we;return Te},Rb=zM;var qM={mode:"yiq",toMode:{rgb:Rb},fromMode:{rgb:kb},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-0.595,0.595],q:[-0.522,0.522]},interpolate:{y:aa,i:aa,q:aa,alpha:{use:aa,fixup:ba}}},Mb=qM;function Gx(B){let ce=ou("lrgb")(B);return 0.2126*ce.r+0.7152*ce.g+0.0722*ce.b}var KCr=Ta(Dy),$Cr=Ta(_y),QCr=Ta(qy),YCr=Ta(Uy),ZCr=Ta(Gy),JCr=Ta(du),e2r=Ta(pu),t2r=Ta(Qy),o2r=Ta(Yy),r2r=Ta(Jy),a2r=Ta(eb),n2r=Ta(Ff),s2r=Ta(ob),i2r=Ta(Df),f2r=Ta(ab),l2r=Ta(ib),c2r=Ta(fb),u2r=Ta(lb),d2r=Ta(cb),p2r=Ta(ub),m2r=Ta(pb),x2r=Ta(xb),I2r=Ta(Ib),h2r=Ta(hb),g2r=Ta(gb),y2r=Ta(ys),b2r=Ta(vb),v2r=Ta(Sb),S2r=Ta(Tb),C2r=Ta(Mb);var Dt={sans:{label:"Sans",sans:"system-ui",mono:"Geist Mono",googleFontsQuery:"Geist+Mono:wght@400;500"},serif:{label:"Serif",sans:"Literata",mono:"Geist Mono",googleFontsQuery:"Literata:wght@400;600;700&family=Geist+Mono:wght@400;500"},mono:{label:"Mono",sans:"Geist Mono",mono:"Geist Mono",googleFontsQuery:"Geist+Mono:wght@400;500;600"},geometric:{label:"Geometric",sans:"Manrope",mono:"Geist Mono",googleFontsQuery:"Manrope:wght@400;500;600&family=Geist+Mono:wght@400;500"},rounded:{label:"Rounded",sans:"SN Pro",mono:"Geist Mono",googleFontsQuery:"SN+Pro:wght@400;500;600&family=Geist+Mono:wght@400;500"},blobby:{label:"Blobby",sans:"Sour Gummy",mono:"Azeret Mono",googleFontsQuery:"Sour+Gummy:wght@400;500;600&family=Azeret+Mono:wght@400;500"},awkward:{label:"Awkward",sans:"Averia Sans Libre",mono:"Azeret Mono",googleFontsQuery:"Averia+Sans+Libre:wght@400;500;600&family=Azeret+Mono:wght@400;500"},comic:{label:"Comic",sans:"Comic Sans MS, Comic Sans, cursive",mono:"Geist Mono",googleFontsQuery:"Geist+Mono:wght@400;500"}},qr={squishy:{label:"Squishy",radius:"0.875rem"},soft:{label:"Soft",radius:"0.625rem"},subtle:{label:"Subtle",radius:"0.375rem"},square:{label:"Square",radius:"0"}},Xr={blob:{label:"Blob",traits:{shape:0.11,"body.r":0.5,"body.ratio":0,"body.n":0.5}},boxy:{label:"Boxy",traits:{shape:0.54,"body.r":1,"body.ratio":0}},pill:{label:"Pill",traits:{shape:0.65,"body.r":1}},dorito:{label:"Dorito",traits:{shape:0.99,"body.r":1,"body.ratio":0,"body.rot":0}}},jx="oklch(0.205 0 0)";function Pb(B){return Gx(B)>0.3?"oklch(0 0 0)":"oklch(1 0 0)"}var Fb={workspace:{primary:(B)=>B,primaryForeground:(B)=>Pb(B),background:()=>"color-mix(in srgb, var(--primary) 2%, oklch(1 0 0) 98%)",foreground:()=>"color-mix(in srgb, var(--primary) 20%, oklch(0 0 0) 80%)",muted:()=>"color-mix(in srgb, var(--background) 95%, var(--foreground) 5%)",mutedForeground:()=>"color-mix(in srgb, var(--background) 50%, var(--foreground) 50%)",accent:()=>"color-mix(in srgb, var(--primary) 3%, var(--foreground) 4%)",accentForeground:()=>"var(--foreground)",border:()=>"color-mix(in srgb, var(--foreground) 7%, transparent)",ring:()=>"color-mix(in srgb, var(--background) 50%, var(--primary) 50%)"},widget:{background:(B)=>B,foreground:(B)=>Pb(B),primary:()=>"color-mix(in srgb, var(--background) 2%, oklch(1 0 0) 98%)",primaryForeground:()=>"color-mix(in srgb, var(--background) 20%, oklch(0 0 0) 80%)",muted:()=>"color-mix(in srgb, var(--background) 95%, var(--foreground) 5%)",mutedForeground:()=>"color-mix(in srgb, var(--background) 50%, var(--foreground) 50%)",accent:()=>"color-mix(in srgb, var(--primary) 3%, var(--foreground) 4%)",accentForeground:()=>"var(--foreground)",border:()=>"color-mix(in srgb, var(--foreground) 15%, transparent)",ring:()=>"color-mix(in srgb, var(--background) 50%, var(--primary) 50%)"}},Zo=Object.keys(Fb.workspace);function Xx(B,ce="workspace"){let pe={},we=Fb[ce];for(let Te of Zo)pe[Te]=we[Te](B);return pe}var So={default:{label:"Default"},paper:{label:"Paper",primary:"oklch(0.4328 0.0351 66.67)"},rose:{label:"Rose",primary:"oklch(0.6322 0.2171 26.02)"},tangerine:{label:"Tangerine",primary:"oklch(0.6886 0.22 37.15)"},sand:{label:"Sand",primary:"oklch(0.8334 0.1271 67.80)"},mint:{label:"Tropics",primary:"oklch(0.5774 0.1399 156.06)"},sky:{label:"Sky",primary:"oklch(0.5824 0.1830 253.59)"},lavender:{label:"Lavender",primary:"oklch(0.6025 0.2426 294.58)"}},et={font:"sans",color:"default",radius:"soft",agent:"boxy"};function Bu(B,ce,pe){return typeof B==="string"&&Object.hasOwn(ce,B)?B:pe}function Ce(B){return{font:Bu(B?.font,Dt,et.font),color:Bu(B?.color,So,et.color),radius:Bu(B?.radius,qr,et.radius),agent:Bu(B?.agent,Xr,et.agent)}}function Io(B,ce="workspace"){let pe=Ce(B),Te=So[pe.color].primary??(ce==="widget"?jx:void 0);return Te?Xx(Te,ce):void 0}var yl=e(t(),1),ke={"claude-code":vo,openclaw:my,codex:wo,hermes:py};function UM(B,ce,pe){switch(B?.type){case"emoji":return yl.jsx("span",{"aria-hidden":"true",className:n("flex size-full translate-y-[2cqi] items-center justify-center font-[Apple_Color_Emoji,Segoe_UI_Emoji,Noto_Color_Emoji,sans-serif] leading-none",ce?"text-[60cqi]":"text-[85cqi]"),children:B.value});case"upload":return yl.jsx("img",{src:B.value,alt:"",className:"size-full"});case"glyph":{let we=xr(B.value);if(we)return Db.createElement(we,{"aria-hidden":!0,stroke:1.75,className:ce?"size-[70%]":"size-[95%] text-foreground"})}default:return yl.jsx("img",{src:pe,alt:"",className:"size-[95%]"})}}function tt({className:B,icon:ce,harness:pe,workspaceTheme:we}){let Te=ce?.type!=="upload"&&ce?.background==="theme",Fe=Te?Io(we)??Xx(jx):void 0,Le=ke[pe??"claude-code"];return yl.jsx("span",{className:n("@container inline-flex shrink-0 items-center justify-center overflow-hidden",Te&&"shadow-[inset_0_0_1rem_rgba(255,255,255,0.3)]",B),style:Fe?{backgroundColor:Fe.primary,color:Fe.primaryForeground}:void 0,children:UM(ce,Te,Le)})}var GM=(B)=>crypto.getRandomValues(new Uint8Array(B)),jM=(B,ce,pe)=>{let we=256-256%B.length;if(we===256){let Fe=B.length-1;return(Le=ce)=>{if(!Le)return"";let Be="";while(!0){let ot=pe(Le),nt=Le;while(nt--)if(Be+=B[ot[nt]&Fe],Be.length>=Le)return Be}}}let Te=Math.ceil(409.6*ce/we);return(Fe=ce)=>{if(!Fe)return"";let Le="";while(!0){let Be=pe(Te),ot=Te;while(ot--)if(Be[ot]<we){if(Le+=B[Be[ot]%B.length],Le.length>=Fe)return Le}}}},Kx=(B,ce=21)=>jM(B,ce|0,GM);var Ab="0123456789abcdefghijklmnopqrstuvwxyz",V2r=Kx(Ab,10),Lb=["create","discover","order","previews","ws"];function Bb(B){if(!B)return"Workspace id is required";if(B.length>64)return"Workspace id is too long (max 64 characters)";if(!/^[A-Za-z0-9][A-Za-z0-9_-]*$/.test(B))return"Use letters, numbers, dashes and underscores, starting with a letter or number";if(Lb.includes(B.toLowerCase()))return`Workspace id ${B} is reserved (${Lb.join(", ")})`;return null}var H2r=Kx(Ab,6);function yr(B,ce){return ce?`${encodeURIComponent(ce)}:${encodeURIComponent(B)}`:encodeURIComponent(B)}function Yr(B,ce){return`/api/workspaces/${yr(B,ce)}`}function Dn(B){if(!B||typeof B!=="object"||Array.isArray(B))throw Error("Invalid remote workspace address");let ce=B;if(typeof ce.user_id!=="string"||!/^[A-Za-z0-9_-]{1,64}$/.test(ce.user_id))throw Error("Invalid remote owner ID");if(typeof ce.workspace_id!=="string")throw Error("Invalid remote workspace ID");let pe=Bb(ce.workspace_id);if(pe)throw Error(pe);return{user_id:ce.user_id,workspace_id:ce.workspace_id}}var Eb=e(r(),1);async function Eu(B,ce,pe){let we=B.getQueryData(l.layout(ce)),Te=we?we.harness??"claude-code":void 0;try{let ot=`moi:workspace-harness:${ce}`;Te=sessionStorage.getItem(ot)??Te,sessionStorage.setItem(ot,pe)}catch{}if(!Te||Te===pe)return;let Fe=[l.layout(ce),l.state(ce),l.sessions(ce),l.mcp(ce),l.skills(ce),l.views(ce),["workspaces","events",ce]],Le={predicate:(ot)=>Fe.some((nt)=>er({queryKey:nt},ot))};await B.cancelQueries(Le),B.resetQueries({queryKey:l.harness(ce),exact:!0}),B.resetQueries({queryKey:l.mcp(ce),exact:!0}),B.setQueryData(l.layout(ce),(ot)=>ot?{...ot,harness:pe}:ot),mt(B,ce,(ot)=>{ot.chatDefaults={},ot.selected={},delete ot.pinnedSessionId});let Be=(ot)=>Object.fromEntries(Object.entries(ot).filter(([nt])=>!nt.startsWith(`${ce}:`)));A.setState((ot)=>({activity:Be(ot.activity),errors:Be(ot.errors),previews:Object.fromEntries(Object.entries(ot.previews).filter(([,nt])=>nt.workspaceId!==ce))})),B.removeQueries({queryKey:["workspaces","events",ce]}),await Promise.all([B.invalidateQueries(Le),B.invalidateQueries({queryKey:l.all,exact:!0}),B.invalidateQueries({queryKey:l.previews})])}function On(B,ce){let pe=d();Eb.useEffect(()=>{if(ce)Eu(pe,B,ce)},[ce,B,pe]),te((we)=>{if(we.type==="connection:opened")pe.invalidateQueries({queryKey:l.layout(B)});else if(we.type==="workspace-harness:switched"&&we.workspaceId===B)Eu(pe,B,we.harness)})}var gt={staleTime:0,gcTime:300000,refetchOnMount:!0,refetchOnWindowFocus:!0};var ve=Math.random().toString(36).slice(2);function Ot(B){let ce=decodeURIComponent(B.slice(16));return{queryKey:l.layout(ce),queryFn:({signal:pe})=>h(B,{signal:pe}),staleTime:60000,retry:!1}}function Ob(B){let ce=d(),pe=Ot(`/api/workspaces/${B}`);return k({queryKey:pe.queryKey,queryFn:async(we)=>{let Te=await pe.queryFn(we);if(we.signal.aborted)throw we.signal.reason;if(!Te.isRemote)return Te;let Fe=await ce.fetchQuery(Ot(Te.apiBase));if(we.signal.aborted)throw we.signal.reason;if(Fe.isRemote)throw Error("The owner address points to another remote reference");return{...Fe,apiBase:Te.apiBase,isRemote:Te.isRemote,cwd:Te.cwd,harness:Te.harness,agentId:Te.agentId}},...gt,retry:!1})}function _e(B){let ce=d();return te((pe)=>{if(pe.type==="harness:updated"&&pe.workspaceId===B)ce.cancelQueries({queryKey:l.harness(B)}),ce.setQueryData(l.harness(B),(we)=>we?{...we,availability:pe.availability}:we);if(pe.type==="env:updated"&&pe.workspaceId===B)ce.invalidateQueries({queryKey:l.harness(B)})}),k({queryKey:l.harness(B),queryFn:async({signal:pe})=>{let we=ce.getQueryData(l.harness(B)),Te=we?.hasAuthOverrides&&we.availability.status!=="available";return h(`/api/workspaces/${B}/harness${Te?"?refresh=true":""}`,{signal:pe})},staleTime:30000,refetchOnWindowFocus:!0})}function Nn(B){return k({queryKey:l.skills(B),queryFn:()=>h(`/api/workspaces/${B}/skills`),...gt})}async function XM(B){let ce=await fetch(`/api/workspaces/${B}/skills/update`,{method:"POST"}),pe=await ce.text(),we=null;try{we=JSON.parse(pe)}catch{}if(!ce.ok){let Te=we&&"error"in we?we.error:pe,Fe=Error(Te||"Failed to update workspace skill");if(we?.skills)Fe.status={skills:we.skills,updateAvailable:we.updateAvailable};throw Fe}if(!we)throw Error("Invalid workspace skill update response");return we}function Ln(B){let ce=d();return R({mutationFn:()=>XM(B),onSuccess:(pe)=>{ce.setQueryData(l.skills(B),pe)},onError:(pe)=>{if(pe.status)ce.setQueryData(l.skills(B),pe.status)}})}function Nb(B){let ce=d();return R({mutationFn:(pe)=>he(ie(B,ce),S("PUT",{...pe,origin:ve})),onError:(pe)=>{if(P.add({title:"Couldn’t save workspace",description:pe.message,type:"error"}),zt(B,ce))ce.invalidateQueries({queryKey:Ot(ie(B,ce)).queryKey,refetchType:"none"});ce.invalidateQueries({queryKey:l.layout(B)})},onSuccess:()=>{if(zt(B,ce))ce.invalidateQueries({queryKey:Ot(ie(B,ce)).queryKey});ce.invalidateQueries({queryKey:l.all,exact:!0}),ce.invalidateQueries({queryKey:l.previews})}})}function Fn(B){let ce=d();return R({mutationFn:(pe)=>h(`/api/workspaces/${B}/harness`,S("PATCH",{harness:pe})),onSuccess:(pe)=>{Eu(ce,B,pe.harness??"claude-code")}})}function br(){return k({queryKey:l.all,queryFn:()=>h("/api/workspaces"),staleTime:300000})}function Co(B){let ce=[...new Set(B.flatMap((Te)=>Te.remote?[Yr(Te.remote.workspace_id,Te.remote.user_id)]:[]))],pe=Zd({queries:ce.map(Ot)}),we=new Map(ce.map((Te,Fe)=>[Te,pe[Fe]?.data]));return B.map((Te)=>{let Fe=Te.remote&&we.get(Yr(Te.remote.workspace_id,Te.remote.user_id));if(!Fe||Fe.isRemote)return Te;return{...Te,...Fe.name&&{name:Fe.name},icon:Fe.icon,theme:Fe.theme}})}var Hb=it({queryKey:l.previews,queryFn:()=>h("/api/workspaces/previews"),staleTime:60000});function Bn(){return k(Hb)}function ko(B){return k({...Hb,select:(ce)=>ce[B]})}function zn(){return k({queryKey:l.discover,queryFn:()=>h("/api/workspaces/discover")})}var Vb=["workspaces-reorder"];function Hn(){let B=d();return R({mutationKey:Vb,mutationFn:(ce)=>h("/api/workspaces/order",S("PUT",{ids:ce,origin:ve}),"Failed to reorder spaces"),onMutate:async(ce)=>{await B.cancelQueries({queryKey:l.all,exact:!0});let pe=B.getQueryData(l.all);if(pe){let we=new Map(pe.map((Fe)=>[Fe.id,Fe])),Te=ce.map((Fe)=>we.get(Fe)).filter((Fe)=>Boolean(Fe));if(Te.length===pe.length)B.setQueryData(l.all,Te)}return{previous:pe}},onError:(ce,pe,we)=>{if(we?.previous)B.setQueryData(l.all,we.previous);B.invalidateQueries({queryKey:l.all,exact:!0})},onSuccess:(ce)=>{if(B.isMutating({mutationKey:Vb})>1)return;B.setQueryData(l.all,ce)}})}function To(){let B=d();return R({mutationFn:(ce)=>he(`/api/workspaces/${ce}`,{method:"DELETE"},"Failed to remove workspace"),onSuccess:(ce,pe)=>{B.setQueryData(l.all,(we)=>(we??[]).filter((Te)=>Te.id!==pe)),B.invalidateQueries({queryKey:l.discover})}})}var _b=e(r(),1),xt=_b.createContext({});var Wb=e(r(),1);function Nt(B){let ce=Wb.useRef(null);if(ce.current===null)ce.current=B();return ce.current}var Ou=e(r(),1);var zb=typeof window<"u";var Lt=zb?Ou.useLayoutEffect:Ou.useEffect;var qb=e(r(),1),Ft=qb.createContext(null);function ji(B,ce){if(B.indexOf(ce)===-1)B.push(ce)}function yi(B,ce){let pe=B.indexOf(ce);if(pe>-1)B.splice(pe,1)}var Ja=(B,ce,pe)=>{if(pe>ce)return ce;if(pe<B)return B;return pe};function $x(B,ce){return ce?`${B}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${ce}`:B}var _s=()=>{},es=()=>{};if(typeof process<"u"&&process.env?.NODE_ENV!=="production")_s=(B,ce,pe)=>{if(!B&&typeof console<"u")console.warn($x(ce,pe))},es=(B,ce,pe)=>{if(!B)throw Error($x(ce,pe))};var as={};var bl=(B)=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(B);var vl=(B)=>typeof B==="object"&&B!==null;var Sl=(B)=>/^0[^.\s]+$/u.test(B);function Cl(B){let ce;return()=>{if(ce===void 0)ce=B();return ce}}var Wa=(B)=>B;var Ls=(...B)=>B.reduce((ce,pe)=>(we)=>pe(ce(we)));var Ws=(B,ce,pe)=>{let we=ce-B;return we?(pe-B)/we:1};class bi{constructor(){this.subscriptions=[]}add(B){return ji(this.subscriptions,B),()=>yi(this.subscriptions,B)}notify(B,ce,pe){let we=this.subscriptions.length;if(!we)return;if(we===1)this.subscriptions[0](B,ce,pe);else for(let Te=0;Te<we;Te++){let Fe=this.subscriptions[Te];Fe&&Fe(B,ce,pe)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var $a=(B)=>B*1000,nn=(B)=>B/1000;var wl=(B,ce)=>ce?B*(1000/ce):0;var Ub=(B,ce,pe)=>(((1-3*pe+3*ce)*B+(3*pe-6*ce))*B+3*ce)*B,KM=0.0000001,$M=12;function QM(B,ce,pe,we,Te){let Fe,Le,Be=0;do if(Le=ce+(pe-ce)/2,Fe=Ub(Le,we,Te)-B,Fe>0)pe=Le;else ce=Le;while(Math.abs(Fe)>KM&&++Be<$M);return Le}function vi(B,ce,pe,we){if(B===ce&&pe===we)return Wa;let Te=(Fe)=>QM(Fe,0,1,B,pe);return(Fe)=>Fe===0||Fe===1?Fe:Ub(Te(Fe),ce,we)}var Nu=(B)=>(ce)=>ce<=0.5?B(2*ce)/2:(2-B(2*(1-ce)))/2;var Vu=(B)=>(ce)=>1-B(1-ce);var Hu=vi(0.33,1.53,0.69,0.99),Lf=Vu(Hu),Tl=Nu(Lf);var kl=(B)=>B>=1?1:(B*=2)<1?0.5*Lf(B):0.5*(2-Math.pow(2,-10*(B-1)));var Rl=(B)=>1-Math.sin(Math.acos(B)),Ml=Vu(Rl),Pl=Nu(Rl);var Qx=vi(0.42,0,1,1),Yx=vi(0,0,0.58,1),Fl=vi(0.42,0,0.58,1);var Zx=(B)=>Array.isArray(B)&&typeof B[0]!=="number";var Dl=(B)=>Array.isArray(B)&&typeof B[0]==="number";var Gb={linear:Wa,easeIn:Qx,easeInOut:Fl,easeOut:Yx,circIn:Rl,circInOut:Pl,circOut:Ml,backIn:Lf,backInOut:Tl,backOut:Hu,anticipate:kl},YM=(B)=>typeof B==="string",_u=(B)=>{if(Dl(B)){es(B.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[ce,pe,we,Te]=B;return vi(ce,pe,we,Te)}else if(YM(B))return es(Gb[B]!==void 0,`Invalid easing type '${B}'`,"invalid-easing-type"),Gb[B];return B};var Ll=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jb(B){let ce=new Set,pe=new Set,we=!1,Te=!1,Fe=new WeakSet,Le={delta:0,timestamp:0,isProcessing:!1};function Be(nt){if(Fe.has(nt))ot.schedule(nt),B();nt(Le)}let ot={schedule:(nt,vt=!1,St=!1)=>{let Do=St&&we?ce:pe;if(vt)Fe.add(nt);return Do.add(nt),nt},cancel:(nt)=>{pe.delete(nt),Fe.delete(nt)},process:(nt)=>{if(Le=nt,we){Te=!0;return}we=!0;let vt=ce;if(ce=pe,pe=vt,ce.forEach(Be),ce.clear(),we=!1,Te)Te=!1,ot.process(nt)}};return ot}var ZM=40;function Wu(B,ce){let pe=!1,we=!0,Te={delta:0,timestamp:0,isProcessing:!1},Fe=()=>pe=!0,Le=Ll.reduce((oa,Qr)=>(oa[Qr]=jb(Fe),oa),{}),{setup:Be,read:ot,resolveKeyframes:nt,preUpdate:vt,update:St,preRender:wt,render:Do,postRender:eo}=Le,Ir=()=>{let oa=as.useManualTiming,Qr=oa?Te.timestamp:performance.now();if(pe=!1,!oa)Te.delta=we?16.666666666666668:Math.max(Math.min(Qr-Te.timestamp,ZM),1);if(Te.timestamp=Qr,Te.isProcessing=!0,Be.process(Te),ot.process(Te),nt.process(Te),vt.process(Te),St.process(Te),wt.process(Te),Do.process(Te),eo.process(Te),Te.isProcessing=!1,pe&&ce)we=!1,B(Ir)},wr=()=>{if(pe=!0,we=!0,!Te.isProcessing)B(Ir)};return{schedule:Ll.reduce((oa,Qr)=>{let sa=Le[Qr];return oa[Qr]=(ua,ca=!1,ea=!1)=>{if(!pe)wr();return sa.schedule(ua,ca,ea)},oa},{}),cancel:(oa)=>{for(let Qr=0;Qr<Ll.length;Qr++)Le[Ll[Qr]].cancel(oa)},state:Te,steps:Le}}var{schedule:w,cancel:ls,state:ja,steps:Al}=Wu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wa,!0);var zu;function JM(){zu=void 0}var za={now:()=>{if(zu===void 0)za.set(ja.isProcessing||as.useManualTiming?ja.timestamp:performance.now());return zu},set:(B)=>{zu=B,queueMicrotask(JM)}};var Xb=(B)=>(ce)=>typeof ce==="string"&&ce.startsWith(B),qu=Xb("--"),eP=Xb("var(--"),Af=(B)=>{if(!eP(B))return!1;return tP.test(B.split("/*")[0].trim())},tP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Jx(B){if(typeof B!=="string")return!1;return B.split("/*")[0].includes("var(--")}var zs={test:(B)=>typeof B==="number",parse:parseFloat,transform:(B)=>B},Qs={...zs,transform:(B)=>Ja(0,1,B)},Bl={...zs,default:1};var Si=(B)=>Math.round(B*1e5)/1e5;var Bf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Kb(B){return B==null}var $b=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Ef=(B,ce)=>(pe)=>Boolean(typeof pe==="string"&&$b.test(pe)&&pe.startsWith(B)||ce&&!Kb(pe)&&Object.prototype.hasOwnProperty.call(pe,ce)),Uu=(B,ce,pe)=>(we)=>{if(typeof we!=="string")return we;let[Te,Fe,Le,Be]=we.match(Bf);return{[B]:parseFloat(Te),[ce]:parseFloat(Fe),[pe]:parseFloat(Le),alpha:Be!==void 0?parseFloat(Be):1}};var oP=(B)=>Ja(0,255,B),eI={...zs,transform:(B)=>Math.round(oP(B))},qs={test:Ef("rgb","red"),parse:Uu("red","green","blue"),transform:({red:B,green:ce,blue:pe,alpha:we=1})=>"rgba("+eI.transform(B)+", "+eI.transform(ce)+", "+eI.transform(pe)+", "+Si(Qs.transform(we))+")"};function rP(B){let ce="",pe="",we="",Te="";if(B.length>5)ce=B.substring(1,3),pe=B.substring(3,5),we=B.substring(5,7),Te=B.substring(7,9);else ce=B.substring(1,2),pe=B.substring(2,3),we=B.substring(3,4),Te=B.substring(4,5),ce+=ce,pe+=pe,we+=we,Te+=Te;return{red:parseInt(ce,16),green:parseInt(pe,16),blue:parseInt(we,16),alpha:Te?parseInt(Te,16)/255:1}}var El={test:Ef("#"),parse:rP,transform:qs.transform};var Ol=(B)=>({test:(ce)=>typeof ce==="string"&&ce.endsWith(B)&&ce.split(" ").length===1,parse:parseFloat,transform:(ce)=>`${ce}${B}`}),Ss=Ol("deg"),ts=Ol("%"),ia=Ol("px"),tI=Ol("vh"),oI=Ol("vw"),Gu=(()=>({...ts,parse:(B)=>ts.parse(B)/100,transform:(B)=>ts.transform(B*100)}))();var Ci={test:Ef("hsl","hue"),parse:Uu("hue","saturation","lightness"),transform:({hue:B,saturation:ce,lightness:pe,alpha:we=1})=>"hsla("+Math.round(B)+", "+ts.transform(Si(ce))+", "+ts.transform(Si(pe))+", "+Si(Qs.transform(we))+")"};var Na={test:(B)=>qs.test(B)||El.test(B)||Ci.test(B),parse:(B)=>{if(qs.test(B))return qs.parse(B);else if(Ci.test(B))return Ci.parse(B);else return El.parse(B)},transform:(B)=>typeof B==="string"?B:B.hasOwnProperty("red")?qs.transform(B):Ci.transform(B),getAnimatableNone:(B)=>{let ce=Na.parse(B);return ce.alpha=0,Na.transform(ce)}};var Qb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function aP(B){return isNaN(B)&&typeof B==="string"&&(B.match(Bf)?.length||0)+(B.match(Qb)?.length||0)>0}var Zb="number",Jb="color",nP="var",sP="var(",Yb="${}",iP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wi(B){let ce=B.toString(),pe=[],we={color:[],number:[],var:[]},Te=[],Fe=0,Be=ce.replace(iP,(ot)=>{if(Na.test(ot))we.color.push(Fe),Te.push(Jb),pe.push(Na.parse(ot));else if(ot.startsWith(sP))we.var.push(Fe),Te.push(nP),pe.push(ot);else we.number.push(Fe),Te.push(Zb),pe.push(parseFloat(ot));return++Fe,Yb}).split(Yb);return{values:pe,split:Be,indexes:we,types:Te}}function fP(B){return wi(B).values}function e1({split:B,types:ce}){let pe=B.length;return(we)=>{let Te="";for(let Fe=0;Fe<pe;Fe++)if(Te+=B[Fe],we[Fe]!==void 0){let Le=ce[Fe];if(Le===Zb)Te+=Si(we[Fe]);else if(Le===Jb)Te+=Na.transform(we[Fe]);else Te+=we[Fe]}return Te}}function lP(B){return e1(wi(B))}var cP=(B)=>typeof B==="number"?0:Na.test(B)?Na.getAnimatableNone(B):B,uP=(B,ce)=>{if(typeof B==="number")return ce?.trim().endsWith("/")?B:0;return cP(B)};function dP(B){let ce=wi(B);return e1(ce)(ce.values.map((we,Te)=>uP(we,ce.split[Te])))}var on={test:aP,parse:fP,createTransformer:lP,getAnimatableNone:dP};function rI(B,ce,pe){if(pe<0)pe+=1;if(pe>1)pe-=1;if(pe<0.16666666666666666)return B+(ce-B)*6*pe;if(pe<0.5)return ce;if(pe<0.6666666666666666)return B+(ce-B)*(0.6666666666666666-pe)*6;return B}function t1({hue:B,saturation:ce,lightness:pe,alpha:we}){B/=360,ce/=100,pe/=100;let Te=0,Fe=0,Le=0;if(!ce)Te=Fe=Le=pe;else{let Be=pe<0.5?pe*(1+ce):pe+ce-pe*ce,ot=2*pe-Be;Te=rI(ot,Be,B+0.3333333333333333),Fe=rI(ot,Be,B),Le=rI(ot,Be,B-0.3333333333333333)}return{red:Math.round(Te*255),green:Math.round(Fe*255),blue:Math.round(Le*255),alpha:we}}function Of(B,ce){return(pe)=>pe>0?ce:B}var Ia=(B,ce,pe)=>B+(ce-B)*pe;var aI=(B,ce,pe)=>{let we=B*B,Te=pe*(ce*ce-we)+we;return Te<0?0:Math.sqrt(Te)},pP=[El,qs,Ci],mP=(B)=>pP.find((ce)=>ce.test(B));function o1(B){let ce=mP(B);if(_s(Boolean(ce),`'${B}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(ce))return!1;let pe=ce.parse(B);if(ce===Ci)pe=t1(pe);return pe}var nI=(B,ce)=>{let pe=o1(B),we=o1(ce);if(!pe||!we)return Of(B,ce);let Te={...pe};return(Fe)=>(Te.red=aI(pe.red,we.red,Fe),Te.green=aI(pe.green,we.green,Fe),Te.blue=aI(pe.blue,we.blue,Fe),Te.alpha=Ia(pe.alpha,we.alpha,Fe),qs.transform(Te))};var ju=new Set(["none","hidden"]);function r1(B,ce){if(ju.has(B))return(pe)=>pe<=0?B:ce;else return(pe)=>pe>=1?ce:B}function xP(B,ce){return(pe)=>Ia(B,ce,pe)}function Xu(B){if(typeof B==="number")return xP;else if(typeof B==="string")return Af(B)?Of:Na.test(B)?nI:gP;else if(Array.isArray(B))return a1;else if(typeof B==="object")return Na.test(B)?nI:IP;return Of}function a1(B,ce){let pe=[...B],we=pe.length,Te=B.map((Fe,Le)=>Xu(Fe)(Fe,ce[Le]));return(Fe)=>{for(let Le=0;Le<we;Le++)pe[Le]=Te[Le](Fe);return pe}}function IP(B,ce){let pe={...B,...ce},we={};for(let Te in pe)if(B[Te]!==void 0&&ce[Te]!==void 0)we[Te]=Xu(B[Te])(B[Te],ce[Te]);return(Te)=>{for(let Fe in we)pe[Fe]=we[Fe](Te);return pe}}function hP(B,ce){let pe=[],we={color:0,var:0,number:0};for(let Te=0;Te<ce.values.length;Te++){let Fe=ce.types[Te],Le=B.indexes[Fe][we[Fe]],Be=B.values[Le]??0;pe[Te]=Be,we[Fe]++}return pe}var gP=(B,ce)=>{let pe=on.createTransformer(ce),we=wi(B),Te=wi(ce);if(we.indexes.var.length===Te.indexes.var.length&&we.indexes.color.length===Te.indexes.color.length&&we.indexes.number.length>=Te.indexes.number.length){if(ju.has(B)&&!Te.values.length||ju.has(ce)&&!we.values.length)return r1(B,ce);return Ls(a1(hP(we,Te),Te.values),pe)}else return _s(!0,`Complex values '${B}' and '${ce}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Of(B,ce)};function Ku(B,ce,pe){if(typeof B==="number"&&typeof ce==="number"&&typeof pe==="number")return Ia(B,ce,pe);return Xu(B)(B,ce)}var n1=(B)=>{let ce=({timestamp:pe})=>B(pe);return{start:(pe=!0)=>w.update(ce,pe),stop:()=>ls(ce),now:()=>ja.isProcessing?ja.timestamp:za.now()}};var $u=(B,ce,pe=10)=>{let we="",Te=Math.max(Math.round(ce/pe),2);for(let Fe=0;Fe<Te;Fe++)we+=Math.round(B(Fe/(Te-1))*1e4)/1e4+", ";return`linear(${we.substring(0,we.length-2)})`};var Qu=20000;function Nf(B){let ce=0,pe=50,we=B.next(ce);while(!we.done&&ce<20000)ce+=pe,we=B.next(ce);return ce>=20000?1/0:ce}function s1(B,ce=100,pe){let we=pe({...B,keyframes:[0,ce]}),Te=Math.min(Nf(we),Qu);return{type:"keyframes",ease:(Fe)=>we.next(Te*Fe).value/ce,duration:nn(Te)}}var qa={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:0.3,visualDuration:0.3,restSpeed:{granular:0.01,default:2},restDelta:{granular:0.005,default:0.5},minDuration:0.01,maxDuration:10,minDamping:0.05,maxDamping:1};function iI(B,ce){return B*Math.sqrt(1-ce*ce)}var yP=12;function bP(B,ce,pe){let we=pe;for(let Te=1;Te<yP;Te++)we=we-B(we)/ce(we);return we}var sI=0.001;function vP({duration:B=qa.duration,bounce:ce=qa.bounce,velocity:pe=qa.velocity,mass:we=qa.mass}){let Te,Fe;_s(B<=$a(qa.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let Le=1-ce;if(Le=Ja(qa.minDamping,qa.maxDamping,Le),B=Ja(qa.minDuration,qa.maxDuration,nn(B)),Le<1)Te=(nt)=>{let vt=nt*Le,St=vt*B,wt=vt-pe,Do=iI(nt,Le),eo=Math.exp(-St);return sI-wt/Do*eo},Fe=(nt)=>{let St=nt*Le*B,wt=St*pe+pe,Do=Math.pow(Le,2)*Math.pow(nt,2)*B,eo=Math.exp(-St),Ir=iI(Math.pow(nt,2),Le);return(-Te(nt)+sI>0?-1:1)*((wt-Do)*eo)/Ir};else Te=(nt)=>{let vt=Math.exp(-nt*B),St=(nt-pe)*B+1;return-sI+vt*St},Fe=(nt)=>{let vt=Math.exp(-nt*B),St=(pe-nt)*(B*B);return vt*St};let Be=5/B,ot=bP(Te,Fe,Be);if(B=$a(B),isNaN(ot))return{stiffness:qa.stiffness,damping:qa.damping,duration:B};else{let nt=Math.pow(ot,2)*we;return{stiffness:nt,damping:Le*2*Math.sqrt(we*nt),duration:B}}}var SP=["duration","bounce"],CP=["stiffness","damping","mass"];function i1(B,ce){return ce.some((pe)=>B[pe]!==void 0)}function wP(B){let ce={velocity:qa.velocity,stiffness:qa.stiffness,damping:qa.damping,mass:qa.mass,isResolvedFromDuration:!1,...B};if(!i1(B,CP)&&i1(B,SP))if(ce.velocity=0,B.visualDuration){let pe=B.visualDuration,we=2*Math.PI/(pe*1.2),Te=we*we,Fe=2*Ja(0.05,1,1-(B.bounce||0))*Math.sqrt(Te);ce={...ce,mass:qa.mass,stiffness:Te,damping:Fe}}else{let pe=vP({...B,velocity:0});ce={...ce,...pe,mass:qa.mass},ce.isResolvedFromDuration=!0}return ce}function Vf(B=qa.visualDuration,ce=qa.bounce){let pe=typeof B!=="object"?{visualDuration:B,keyframes:[0,1],bounce:ce}:B,{restSpeed:we,restDelta:Te}=pe,Fe=pe.keyframes[0],Le=pe.keyframes[pe.keyframes.length-1],Be={done:!1,value:Fe},{stiffness:ot,damping:nt,mass:vt,duration:St,velocity:wt,isResolvedFromDuration:Do}=wP({...pe,velocity:-nn(pe.velocity||0)}),eo=wt||0,Ir=nt/(2*Math.sqrt(ot*vt)),wr=Le-Fe,Jr=nn(Math.sqrt(ot/vt)),ta=Math.abs(wr)<5;we||(we=ta?qa.restSpeed.granular:qa.restSpeed.default),Te||(Te=ta?qa.restDelta.granular:qa.restDelta.default);let oa,Qr,sa,ua,ca,ea;if(Ir<1)sa=iI(Jr,Ir),ua=(eo+Ir*Jr*wr)/sa,oa=(da)=>{let ga=Math.exp(-Ir*Jr*da);return Le-ga*(ua*Math.sin(sa*da)+wr*Math.cos(sa*da))},ca=Ir*Jr*ua+wr*sa,ea=Ir*Jr*wr-ua*sa,Qr=(da)=>Math.exp(-Ir*Jr*da)*(ca*Math.sin(sa*da)+ea*Math.cos(sa*da));else if(Ir===1){oa=(ga)=>Le-Math.exp(-Jr*ga)*(wr+(eo+Jr*wr)*ga);let da=eo+Jr*wr;Qr=(ga)=>Math.exp(-Jr*ga)*(Jr*da*ga-eo)}else{let da=Jr*Math.sqrt(Ir*Ir-1);oa=(_a)=>{let Aa=Math.exp(-Ir*Jr*_a),Ca=Math.min(da*_a,300);return Le-Aa*((eo+Ir*Jr*wr)*Math.sinh(Ca)+da*wr*Math.cosh(Ca))/da};let ga=(eo+Ir*Jr*wr)/da,va=Ir*Jr*ga-wr*da,La=Ir*Jr*wr-ga*da;Qr=(_a)=>{let Aa=Math.exp(-Ir*Jr*_a),Ca=Math.min(da*_a,300);return Aa*(va*Math.sinh(Ca)+La*Math.cosh(Ca))}}let ma={calculatedDuration:Do?St||null:null,velocity:(da)=>$a(Qr(da)),next:(da)=>{if(!Do&&Ir<1){let va=Math.exp(-Ir*Jr*da),La=Math.sin(sa*da),_a=Math.cos(sa*da),Aa=Le-va*(ua*La+wr*_a),Ca=$a(va*(ca*La+ea*_a));return Be.done=Math.abs(Ca)<=we&&Math.abs(Le-Aa)<=Te,Be.value=Be.done?Le:Aa,Be}let ga=oa(da);if(!Do){let va=$a(Qr(da));Be.done=Math.abs(va)<=we&&Math.abs(Le-ga)<=Te}else Be.done=da>=St;return Be.value=Be.done?Le:ga,Be},toString:()=>{let da=Math.min(Nf(ma),Qu),ga=$u((va)=>ma.next(da*va).value,da,30);return da+"ms "+ga},toTransition:()=>{}};return ma}Vf.applyToOptions=(B)=>{let ce=s1(B,100,Vf);return B.ease=ce.ease,B.duration=$a(ce.duration),B.type="keyframes",B};var TP=5;function Yu(B,ce,pe){let we=Math.max(ce-TP,0);return wl(pe-B(we),ce-we)}function Nl({keyframes:B,velocity:ce=0,power:pe=0.8,timeConstant:we=325,bounceDamping:Te=10,bounceStiffness:Fe=500,modifyTarget:Le,min:Be,max:ot,restDelta:nt=0.5,restSpeed:vt}){let St=B[0],wt={done:!1,value:St},Do=(ea)=>Be!==void 0&&ea<Be||ot!==void 0&&ea>ot,eo=(ea)=>{if(Be===void 0)return ot;if(ot===void 0)return Be;return Math.abs(Be-ea)<Math.abs(ot-ea)?Be:ot},Ir=pe*ce,wr=St+Ir,Jr=Le===void 0?wr:Le(wr);if(Jr!==wr)Ir=Jr-St;let ta=(ea)=>-Ir*Math.exp(-ea/we),oa=(ea)=>Jr+ta(ea),Qr=(ea)=>{let ma=ta(ea),da=oa(ea);wt.done=Math.abs(ma)<=nt,wt.value=wt.done?Jr:da},sa,ua,ca=(ea)=>{if(!Do(wt.value))return;sa=ea,ua=Vf({keyframes:[wt.value,eo(wt.value)],velocity:Yu(oa,ea,wt.value),damping:Te,stiffness:Fe,restDelta:nt,restSpeed:vt})};return ca(0),{calculatedDuration:null,next:(ea)=>{let ma=!1;if(!ua&&sa===void 0)ma=!0,Qr(ea),ca(ea);if(sa!==void 0&&ea>=sa)return ua.next(ea-sa);else return!ma&&Qr(ea),wt}}}function kP(B,ce,pe){let we=[],Te=pe||as.mix||Ku,Fe=B.length-1;for(let Le=0;Le<Fe;Le++){let Be=Te(B[Le],B[Le+1]);if(ce){let ot=Array.isArray(ce)?ce[Le]||Wa:ce;Be=Ls(ot,Be)}we.push(Be)}return we}function f1(B,ce,{clamp:pe=!0,ease:we,mixer:Te}={}){let Fe=B.length;if(es(Fe===ce.length,"Both input and output ranges must be the same length","range-length"),Fe===1)return()=>ce[0];if(Fe===2&&ce[0]===ce[1])return()=>ce[1];let Le=B[0]===B[1];if(B[0]>B[Fe-1])B=[...B].reverse(),ce=[...ce].reverse();let Be=kP(ce,we,Te),ot=Be.length,nt=(vt)=>{if(Le&&vt<B[0])return ce[0];let St=0;if(ot>1){for(;St<B.length-2;St++)if(vt<B[St+1])break}let wt=Ws(B[St],B[St+1],vt);return Be[St](wt)};return pe?(vt)=>nt(Ja(B[0],B[Fe-1],vt)):nt}function l1(B,ce){let pe=B[B.length-1];for(let we=1;we<=ce;we++){let Te=Ws(0,ce,we);B.push(Ia(pe,1,Te))}}function c1(B){let ce=[0];return l1(ce,B.length-1),ce}function u1(B,ce){return B.map((pe)=>pe*ce)}function RP(B,ce){return B.map(()=>ce||Fl).splice(0,B.length-1)}function Xi({duration:B=300,keyframes:ce,times:pe,ease:we="easeInOut"}){let Te=Zx(we)?we.map(_u):_u(we),Fe={done:!1,value:ce[0]},Le=u1(pe&&pe.length===ce.length?pe:c1(ce),B),Be=f1(Le,ce,{ease:Array.isArray(Te)?Te:RP(ce,Te)});return{calculatedDuration:B,next:(ot)=>(Fe.value=Be(ot),Fe.done=ot>=B,Fe)}}var MP=(B)=>B!==null;function Ti(B,{repeat:ce,repeatType:pe="loop"},we,Te=1){let Fe=B.filter(MP),Be=Te<0||ce&&pe!=="loop"&&ce%2===1?0:Fe.length-1;return!Be||we===void 0?Fe[Be]:we}var PP={decay:Nl,inertia:Nl,tween:Xi,keyframes:Xi,spring:Vf};function Zu(B){if(typeof B.type==="string")B.type=PP[B.type]}class Ki{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((B)=>{this.resolve=B})}notifyFinished(){this.resolve()}then(B,ce){return this.finished.then(B,ce)}}var FP=(B)=>B/100;class ki extends Ki{constructor(B){super();if(this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:ce}=this.options;if(ce&&ce.updatedAt!==za.now())this.tick(za.now());if(this.isStopped=!0,this.state==="idle")return;this.teardown(),this.options.onStop?.()},this.options=B,this.initAnimation(),this.play(),B.autoplay===!1)this.pause()}initAnimation(){let{options:B}=this;Zu(B);let{type:ce=Xi,repeat:pe=0,repeatDelay:we=0,repeatType:Te,velocity:Fe=0}=B,{keyframes:Le}=B,Be=ce||Xi;if(Be!==Xi&&typeof Le[0]!=="number")this.mixKeyframes=Ls(FP,Ku(Le[0],Le[1])),Le=[0,100];let ot=Be({...B,keyframes:Le});if(Te==="mirror")this.mirroredGenerator=Be({...B,keyframes:[...Le].reverse(),velocity:-Fe});if(ot.calculatedDuration===null)ot.calculatedDuration=Nf(ot);let{calculatedDuration:nt}=ot;this.calculatedDuration=nt,this.resolvedDuration=nt+we,this.totalDuration=this.resolvedDuration*(pe+1)-we,this.generator=ot}updateTime(B){let ce=Math.round(B-this.startTime)*this.playbackSpeed;if(this.holdTime!==null)this.currentTime=this.holdTime;else this.currentTime=ce}tick(B,ce=!1){let{generator:pe,totalDuration:we,mixKeyframes:Te,mirroredGenerator:Fe,resolvedDuration:Le,calculatedDuration:Be}=this;if(this.startTime===null)return pe.next(0);let{delay:ot=0,keyframes:nt,repeat:vt,repeatType:St,repeatDelay:wt,type:Do,onUpdate:eo,finalKeyframe:Ir}=this.options;if(this.speed>0)this.startTime=Math.min(this.startTime,B);else if(this.speed<0)this.startTime=Math.min(B-we/this.speed,this.startTime);if(ce)this.currentTime=B;else this.updateTime(B);let wr=this.currentTime-ot*(this.playbackSpeed>=0?1:-1),Jr=this.playbackSpeed>=0?wr<0:wr>we;if(this.currentTime=Math.max(wr,0),this.state==="finished"&&this.holdTime===null)this.currentTime=we;let ta=this.currentTime,oa=pe;if(vt){let ca=Math.min(this.currentTime,we)/Le,ea=Math.floor(ca),ma=ca%1;if(!ma&&ca>=1)ma=1;if(ma===1&&ea--,ea=Math.min(ea,vt+1),Boolean(ea%2)){if(St==="reverse"){if(ma=1-ma,wt)ma-=wt/Le}else if(St==="mirror")oa=Fe}ta=Ja(0,1,ma)*Le}let Qr;if(Jr)this.delayState.value=nt[0],Qr=this.delayState;else Qr=oa.next(ta);if(Te&&!Jr)Qr.value=Te(Qr.value);let{done:sa}=Qr;if(!Jr&&Be!==null)sa=this.playbackSpeed>=0?this.currentTime>=we:this.currentTime<=0;let ua=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&sa);if(ua&&Do!==Nl)Qr.value=Ti(nt,this.options,Ir,this.speed);if(eo)eo(Qr.value);if(ua)this.finish();return Qr}then(B,ce){return this.finished.then(B,ce)}get duration(){return nn(this.calculatedDuration)}get iterationDuration(){let{delay:B=0}=this.options||{};return this.duration+nn(B)}get time(){return nn(this.currentTime)}set time(B){if(B=$a(B),this.currentTime=B,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0)this.holdTime=B;else if(this.driver)this.startTime=this.driver.now()-B/this.playbackSpeed;if(this.driver)this.driver.start(!1);else this.startTime=0,this.state="paused",this.holdTime=B,this.tick(B)}getGeneratorVelocity(){let B=this.currentTime;if(B<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(B);let ce=this.generator.next(B).value;return Yu((pe)=>this.generator.next(pe).value,B,ce)}get speed(){return this.playbackSpeed}set speed(B){let ce=this.playbackSpeed!==B;if(ce&&this.driver)this.updateTime(za.now());if(this.playbackSpeed=B,ce&&this.driver)this.time=nn(this.currentTime)}play(){if(this.isStopped)return;let{driver:B=n1,startTime:ce}=this.options;if(!this.driver)this.driver=B((we)=>this.tick(we));this.options.onPlay?.();let pe=this.driver.now();if(this.state==="finished")this.updateFinished(),this.startTime=pe;else if(this.holdTime!==null)this.startTime=pe-this.holdTime;else if(!this.startTime)this.startTime=ce??pe;if(this.state==="finished"&&this.speed<0)this.startTime+=this.calculatedDuration;this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(za.now()),this.holdTime=this.currentTime}complete(){if(this.state!=="running")this.play();this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){if(!this.driver)return;this.driver.stop(),this.driver=void 0}sample(B){return this.startTime=0,this.tick(B,!0)}attachTimeline(B){if(this.options.allowFlatten)this.options.type="keyframes",this.options.ease="linear",this.initAnimation();return this.driver?.stop(),B.observe(this)}}function d1(B){for(let ce=1;ce<B.length;ce++)B[ce]??(B[ce]=B[ce-1])}var $i=(B)=>B*180/Math.PI,fI=(B)=>{let ce=$i(Math.atan2(B[1],B[0]));return lI(ce)},DP={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:(B)=>(Math.abs(B[0])+Math.abs(B[3]))/2,rotate:fI,rotateZ:fI,skewX:(B)=>$i(Math.atan(B[1])),skewY:(B)=>$i(Math.atan(B[2])),skew:(B)=>(Math.abs(B[1])+Math.abs(B[2]))/2},lI=(B)=>{if(B=B%360,B<0)B+=360;return B},p1=fI,m1=(B)=>Math.sqrt(B[0]*B[0]+B[1]*B[1]),x1=(B)=>Math.sqrt(B[4]*B[4]+B[5]*B[5]),LP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:m1,scaleY:x1,scale:(B)=>(m1(B)+x1(B))/2,rotateX:(B)=>lI($i(Math.atan2(B[6],B[5]))),rotateY:(B)=>lI($i(Math.atan2(-B[2],B[0]))),rotateZ:p1,rotate:p1,skewX:(B)=>$i(Math.atan(B[4])),skewY:(B)=>$i(Math.atan(B[1])),skew:(B)=>(Math.abs(B[1])+Math.abs(B[4]))/2};function Ju(B){return B.includes("scale")?1:0}function ed(B,ce){if(!B||B==="none")return Ju(ce);let pe=B.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),we,Te;if(pe)we=LP,Te=pe;else{let Be=B.match(/^matrix\(([-\d.e\s,]+)\)$/u);we=DP,Te=Be}if(!Te)return Ju(ce);let Fe=we[ce],Le=Te[1].split(",").map(AP);return typeof Fe==="function"?Fe(Le):Le[Fe]}var I1=(B,ce)=>{let{transform:pe="none"}=getComputedStyle(B);return ed(pe,ce)};function AP(B){return parseFloat(B.trim())}var Us=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cs=(()=>new Set([...Us,"pathRotation"]))();var cI=(B)=>B===zs||B===ia,BP=new Set(["x","y","z"]),EP=Us.filter((B)=>!BP.has(B));function h1(B){let ce=[];return EP.forEach((pe)=>{let we=B.getValue(pe);if(we!==void 0)ce.push([pe,we.get()]),we.set(pe.startsWith("scale")?1:0)}),ce}var Ys={width:({x:B},{paddingLeft:ce="0",paddingRight:pe="0",boxSizing:we})=>{let Te=B.max-B.min;return we==="border-box"?Te:Te-parseFloat(ce)-parseFloat(pe)},height:({y:B},{paddingTop:ce="0",paddingBottom:pe="0",boxSizing:we})=>{let Te=B.max-B.min;return we==="border-box"?Te:Te-parseFloat(ce)-parseFloat(pe)},top:(B,{top:ce})=>parseFloat(ce),left:(B,{left:ce})=>parseFloat(ce),bottom:({y:B},{top:ce})=>parseFloat(ce)+(B.max-B.min),right:({x:B},{left:ce})=>parseFloat(ce)+(B.max-B.min),x:(B,{transform:ce})=>ed(ce,"x"),y:(B,{transform:ce})=>ed(ce,"y")};Ys.translateX=Ys.x;Ys.translateY=Ys.y;var Qi=new Set,uI=!1,dI=!1,pI=!1;function g1(){if(dI){let B=Array.from(Qi).filter((we)=>we.needsMeasurement),ce=new Set(B.map((we)=>we.element)),pe=new Map;ce.forEach((we)=>{let Te=h1(we);if(!Te.length)return;pe.set(we,Te),we.render()}),B.forEach((we)=>we.measureInitialState()),ce.forEach((we)=>{we.render();let Te=pe.get(we);if(Te)Te.forEach(([Fe,Le])=>{we.getValue(Fe)?.set(Le)})}),B.forEach((we)=>we.measureEndState()),B.forEach((we)=>{if(we.suspendedScrollY!==void 0)window.scrollTo(0,we.suspendedScrollY)})}dI=!1,uI=!1,Qi.forEach((B)=>B.complete(pI)),Qi.clear()}function y1(){Qi.forEach((B)=>{if(B.readKeyframes(),B.needsMeasurement)dI=!0})}function b1(){pI=!0,y1(),g1(),pI=!1}class Yi{constructor(B,ce,pe,we,Te,Fe=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...B],this.onComplete=ce,this.name=pe,this.motionValue=we,this.element=Te,this.isAsync=Fe}scheduleResolve(){if(this.state="scheduled",this.isAsync){if(Qi.add(this),!uI)uI=!0,w.read(y1),w.resolveKeyframes(g1)}else this.readKeyframes(),this.complete()}readKeyframes(){let{unresolvedKeyframes:B,name:ce,element:pe,motionValue:we}=this;if(B[0]===null){let Te=we?.get(),Fe=B[B.length-1];if(Te!==void 0)B[0]=Te;else if(pe&&ce){let Le=pe.readValue(ce,Fe);if(Le!==void 0&&Le!==null)B[0]=Le}if(B[0]===void 0)B[0]=Fe;if(we&&Te===void 0)we.set(B[0])}d1(B)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(B=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,B),Qi.delete(this)}cancel(){if(this.state==="scheduled")Qi.delete(this),this.state="pending"}resume(){if(this.state==="pending")this.scheduleResolve()}}var v1=(B)=>B.startsWith("--");function td(B,ce,pe){v1(ce)?B.style.setProperty(ce,pe):B.style[ce]=pe}var S1={};function od(B,ce){let pe=Cl(B);return()=>S1[ce]??pe()}var C1=od(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var rd=od(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(B){return!1}return!0},"linearEasing");var Zi=([B,ce,pe,we])=>`cubic-bezier(${B}, ${ce}, ${pe}, ${we})`;var mI={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zi([0,0.65,0.55,1]),circOut:Zi([0.55,0,1,0.45]),backIn:Zi([0.31,0.01,0.66,-0.59]),backOut:Zi([0.33,1.53,0.69,0.99])};function xI(B,ce){if(!B)return;else if(typeof B==="function")return rd()?$u(B,ce):"ease-out";else if(Dl(B))return Zi(B);else if(Array.isArray(B))return B.map((pe)=>xI(pe,ce)||mI.easeOut);else return mI[B]}function w1(B,ce,pe,{delay:we=0,duration:Te=300,repeat:Fe=0,repeatType:Le="loop",ease:Be="easeOut",times:ot}={},nt=void 0){let vt={[ce]:pe};if(ot)vt.offset=ot;let St=xI(Be,Te);if(Array.isArray(St))vt.easing=St;let wt={delay:we,duration:Te,easing:!Array.isArray(St)?St:"linear",fill:"both",iterations:Fe+1,direction:Le==="reverse"?"alternate":"normal"};if(nt)wt.pseudoElement=nt;return B.animate(vt,wt)}function ad(B){return typeof B==="function"&&"applyToOptions"in B}function T1({type:B,...ce}){if(ad(B)&&rd())return B.applyToOptions(ce);else ce.duration??(ce.duration=300),ce.ease??(ce.ease="easeOut");return ce}class Vl extends Ki{constructor(B){super();if(this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!B)return;let{element:ce,name:pe,keyframes:we,pseudoElement:Te,allowFlatten:Fe=!1,finalKeyframe:Le,onComplete:Be}=B;this.isPseudoElement=Boolean(Te),this.allowFlatten=Fe,this.options=B,es(typeof B.type!=="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let ot=T1(B);if(this.animation=w1(ce,pe,we,ot,Te),ot.autoplay===!1)this.animation.pause();this.animation.onfinish=()=>{if(this.finishedTime=this.time,!Te){let nt=Ti(we,this.options,Le,this.speed);if(this.updateMotionValue)this.updateMotionValue(nt);td(ce,pe,nt),this.animation.cancel()}Be?.(),this.notifyFinished()}}play(){if(this.isStopped)return;if(this.manualStartTime=null,this.animation.play(),this.state==="finished")this.updateFinished()}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(B){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:B}=this;if(B==="idle"||B==="finished")return;if(this.updateMotionValue)this.updateMotionValue();else this.commitStyles();if(!this.isPseudoElement)this.cancel()}commitStyles(){let B=this.options?.element;if(!this.isPseudoElement&&B?.isConnected)this.animation.commitStyles?.()}get duration(){let B=this.animation.effect?.getComputedTiming?.().duration||0;return nn(Number(B))}get iterationDuration(){let{delay:B=0}=this.options||{};return this.duration+nn(B)}get time(){return nn(Number(this.animation.currentTime)||0)}set time(B){let ce=this.finishedTime!==null;if(this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=$a(B),ce)this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(B){if(B<0)this.finishedTime=null;this.animation.playbackRate=B}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(B){this.manualStartTime=this.animation.startTime=B}attachTimeline({timeline:B,rangeStart:ce,rangeEnd:pe,observe:we}){if(this.allowFlatten)this.animation.effect?.updateTiming({easing:"linear"});if(this.animation.onfinish=null,B&&C1()){if(this.animation.timeline=B,ce)this.animation.rangeStart=ce;if(pe)this.animation.rangeEnd=pe;return Wa}else return we(this)}}var k1={anticipate:kl,backInOut:Tl,circInOut:Pl};function OP(B){return B in k1}function R1(B){if(typeof B.ease==="string"&&OP(B.ease))B.ease=k1[B.ease]}var II=10;class hI extends Vl{constructor(B){R1(B),Zu(B);super(B);if(B.startTime!==void 0&&B.autoplay!==!1)this.startTime=B.startTime;this.options=B}updateMotionValue(B){let{motionValue:ce,onUpdate:pe,onComplete:we,element:Te,...Fe}=this.options;if(!ce)return;if(B!==void 0){ce.set(B);return}let Le=new ki({...Fe,autoplay:!1}),Be=Math.max(II,za.now()-this.startTime),ot=Ja(0,II,Be-II),nt=Le.sample(Be).value,{name:vt}=this.options;if(Te&&vt)td(Te,vt,nt);ce.setWithVelocity(Le.sample(Math.max(0,Be-ot)).value,nt,ot),Le.stop()}}var gI=(B,ce)=>{if(ce==="zIndex")return!1;if(typeof B==="number"||Array.isArray(B))return!0;if(typeof B==="string"&&(on.test(B)||B==="0")&&!B.startsWith("url("))return!0;return!1};function NP(B){let ce=B[0];if(B.length===1)return!0;for(let pe=0;pe<B.length;pe++)if(B[pe]!==ce)return!0}function M1(B,ce,pe,we){let Te=B[0];if(Te===null)return!1;if(ce==="display"||ce==="visibility")return!0;let Fe=B[B.length-1],Le=gI(Te,ce),Be=gI(Fe,ce);if(_s(Le===Be,`You are trying to animate ${ce} from "${Te}" to "${Fe}". "${Le?Fe:Te}" is not an animatable value.`,"value-not-animatable"),!Le||!Be)return!1;return NP(B)||(pe==="spring"||ad(pe))&&we}function Hl(B){B.duration=0,B.type="keyframes"}var nd=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var VP=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function P1(B){for(let ce=0;ce<B.length;ce++)if(typeof B[ce]==="string"&&VP.test(B[ce]))return!0;return!1}var HP=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_P=Cl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function F1(B){let{motionValue:ce,name:pe,repeatDelay:we,repeatType:Te,damping:Fe,type:Le,keyframes:Be}=B,ot=ce?.owner?.current;if(!(ot instanceof HTMLElement)&&!(ot instanceof SVGElement))return!1;let{onUpdate:nt,transformTemplate:vt}=ce.owner.getProps();return _P()&&pe&&(nd.has(pe)||HP.has(pe)&&P1(Be))&&(pe!=="transform"||!vt)&&!nt&&!we&&Te!=="mirror"&&Fe!==0&&Le!=="inertia"}var WP=40;class yI extends Ki{constructor({autoplay:B=!0,delay:ce=0,type:pe="keyframes",repeat:we=0,repeatDelay:Te=0,repeatType:Fe="loop",keyframes:Le,name:Be,motionValue:ot,element:nt,...vt}){super();this.stop=()=>{if(this._animation)this._animation.stop(),this.stopTimeline?.();this.keyframeResolver?.cancel()},this.createdAt=za.now();let St={autoplay:B,delay:ce,type:pe,repeat:we,repeatDelay:Te,repeatType:Fe,name:Be,motionValue:ot,element:nt,...vt},wt=nt?.KeyframeResolver||Yi;this.keyframeResolver=new wt(Le,(Do,eo,Ir)=>this.onKeyframesResolved(Do,eo,St,!Ir),Be,ot,nt),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(B,ce,pe,we){this.keyframeResolver=void 0;let{name:Te,type:Fe,velocity:Le,delay:Be,isHandoff:ot,onUpdate:nt}=pe;this.resolvedAt=za.now();let vt=!0;if(!M1(B,Te,Fe,Le)){if(vt=!1,as.instantAnimations||!Be)nt?.(Ti(B,pe,ce));B[0]=B[B.length-1],Hl(pe),pe.repeat=0}let wt={startTime:we?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>WP?this.resolvedAt:this.createdAt:void 0,finalKeyframe:ce,...pe,keyframes:B},Do=vt&&!ot&&F1(wt),eo=wt.motionValue?.owner?.current,Ir;if(Do)try{Ir=new hI({...wt,element:eo})}catch{Ir=new ki(wt)}else Ir=new ki(wt);if(Ir.finished.then(()=>{this.notifyFinished()}).catch(Wa),this.pendingTimeline)this.stopTimeline=Ir.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0;this._animation=Ir}get finished(){if(!this._animation)return this._finished;else return this.animation.finished}then(B,ce){return this.finished.finally(B).then(()=>{})}get animation(){if(!this._animation)this.keyframeResolver?.resume(),b1();return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(B){this.animation.time=B}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(B){this.animation.speed=B}get startTime(){return this.animation.startTime}attachTimeline(B){if(this._animation)this.stopTimeline=this.animation.attachTimeline(B);else this.pendingTimeline=B;return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation)this.animation.cancel();this.keyframeResolver?.cancel()}}function sd(B,ce,pe,we=0,Te=1){let Fe=Array.from(B).sort((nt,vt)=>nt.sortNodePosition(vt)).indexOf(ce),Le=B.size,Be=(Le-1)*we;return typeof pe==="function"?pe(Fe,Le):Te===1?Fe*we:Be-Fe*we}var D1=30,qP=(B)=>!isNaN(parseFloat(B)),L1={current:void 0};class A1{constructor(B,ce={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(pe)=>{let we=za.now();if(this.updatedAt!==we)this.setPrevFrameValue();if(this.prev=this.current,this.setCurrent(pe),this.current!==this.prev){if(this.events.change?.notify(this.current),this.dependents)for(let Te of this.dependents)Te.dirty()}},this.hasAnimated=!1,this.setCurrent(B),this.owner=ce.owner}setCurrent(B){if(this.current=B,this.updatedAt=za.now(),this.canTrackVelocity===null&&B!==void 0)this.canTrackVelocity=qP(this.current)}setPrevFrameValue(B=this.current){this.prevFrameValue=B,this.prevUpdatedAt=this.updatedAt}onChange(B){return this.on("change",B)}on(B,ce){if(!this.events[B])this.events[B]=new bi;let pe=this.events[B].add(ce);if(B==="change")return()=>{pe(),w.read(()=>{if(!this.events.change.getSize())this.stop()})};return pe}clearListeners(){for(let B in this.events)this.events[B].clear()}attach(B,ce){this.passiveEffect=B,this.stopPassiveEffect=ce}set(B){if(!this.passiveEffect)this.updateAndNotify(B);else this.passiveEffect(B,this.updateAndNotify)}setWithVelocity(B,ce,pe){this.set(ce),this.prev=void 0,this.prevFrameValue=B,this.prevUpdatedAt=this.updatedAt-pe}jump(B,ce=!0){if(this.updateAndNotify(B),this.prev=B,this.prevUpdatedAt=this.prevFrameValue=void 0,ce&&this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(B){if(!this.dependents)this.dependents=new Set;this.dependents.add(B)}removeDependent(B){if(this.dependents)this.dependents.delete(B)}get(){if(L1.current)L1.current.push(this);return this.current}getPrevious(){return this.prev}getVelocity(){let B=za.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||B-this.updatedAt>D1)return 0;let ce=Math.min(this.updatedAt-this.prevUpdatedAt,D1);return wl(parseFloat(this.current)-parseFloat(this.prevFrameValue),ce)}start(B){return this.stop(),new Promise((ce)=>{if(this.hasAnimated=!0,this.animation=B(ce),this.events.animationStart)this.events.animationStart.notify()}).then(()=>{if(this.events.animationComplete)this.events.animationComplete.notify();this.clearAnimation()})}stop(){if(this.animation){if(this.animation.stop(),this.events.animationCancel)this.events.animationCancel.notify()}this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){if(this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}}function As(B,ce){return new A1(B,ce)}function Jt(B,ce){if(B?.inherit&&ce){let{inherit:pe,...we}=B;return{...ce,...we}}return B}function Hf(B,ce){let pe=B?.[ce]??B?.default??B;if(pe!==B)return Jt(pe,B);return pe}var UP={type:"spring",stiffness:500,damping:25,restSpeed:10},GP=(B)=>({type:"spring",stiffness:550,damping:B===0?2*Math.sqrt(550):30,restSpeed:10}),jP={type:"keyframes",duration:0.8},XP={type:"keyframes",ease:[0.25,0.1,0.35,1],duration:0.3},B1=(B,{keyframes:ce})=>{if(ce.length>2)return jP;else if(Cs.has(B))return B.startsWith("scale")?GP(ce[1]):UP;return XP};var KP=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function E1(B){for(let ce in B)if(!KP.has(ce))return!0;return!1}var Ji=(B,ce,pe,we={},Te,Fe)=>(Le)=>{let Be=Hf(we,B)||{},ot=Be.delay||we.delay||0,{elapsed:nt=0}=we;nt=nt-$a(ot);let vt={keyframes:Array.isArray(pe)?pe:[null,pe],ease:"easeOut",velocity:ce.getVelocity(),...Be,delay:-nt,onUpdate:(wt)=>{ce.set(wt),Be.onUpdate&&Be.onUpdate(wt)},onComplete:()=>{Le(),Be.onComplete&&Be.onComplete()},name:B,motionValue:ce,element:Fe?void 0:Te};if(!E1(Be))Object.assign(vt,B1(B,vt));if(vt.duration&&(vt.duration=$a(vt.duration)),vt.repeatDelay&&(vt.repeatDelay=$a(vt.repeatDelay)),vt.from!==void 0)vt.keyframes[0]=vt.from;let St=!1;if(vt.type===!1||vt.duration===0&&!vt.repeatDelay){if(Hl(vt),vt.delay===0)St=!0}if(as.instantAnimations||as.skipAnimations||Te?.shouldSkipAnimations||Be.skipAnimations)St=!0,Hl(vt),vt.delay=0;if(vt.allowFlatten=!Be.type&&!Be.ease,St&&!Fe&&ce.get()!==void 0){let wt=Ti(vt.keyframes,Be);if(wt!==void 0){w.update(()=>{vt.onUpdate(wt),vt.onComplete()});return}}return Be.isSync?new ki(vt):new yI(vt)};var $P=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QP(B){let ce=$P.exec(B);if(!ce)return[,];let[,pe,we,Te]=ce;return[`--${pe??we}`,Te]}var YP=4;function bI(B,ce,pe=1){es(pe<=YP,`Max CSS variable fallback depth detected in property "${B}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[we,Te]=QP(B);if(!we)return;let Fe=window.getComputedStyle(ce).getPropertyValue(we);if(Fe){let Le=Fe.trim();return bl(Le)?parseFloat(Le):Le}return Af(Te)?bI(Te,ce,pe+1):Te}function O1(B){let ce=[{},{}];return B?.values.forEach((pe,we)=>{ce[0][we]=pe.get(),ce[1][we]=pe.getVelocity()}),ce}function ef(B,ce,pe,we){if(typeof ce==="function"){let[Te,Fe]=O1(we);ce=ce(pe!==void 0?pe:B.custom,Te,Fe)}if(typeof ce==="string")ce=B.variants&&B.variants[ce];if(typeof ce==="function"){let[Te,Fe]=O1(we);ce=ce(pe!==void 0?pe:B.custom,Te,Fe)}return ce}function ms(B,ce,pe){let we=B.getProps();return ef(we,ce,pe!==void 0?pe:we.custom,B)}var id=new Set(["width","height","top","left","right","bottom",...Us]);var _l=(B)=>Array.isArray(B);function ZP(B,ce,pe){if(B.hasValue(ce))B.getValue(ce).set(pe);else B.addValue(ce,As(pe))}function JP(B){return _l(B)?B[B.length-1]||0:B}function N1(B,ce){let pe=ms(B,ce),{transitionEnd:we={},transition:Te={},...Fe}=pe||{};Fe={...Fe,...we};for(let Le in Fe){let Be=JP(Fe[Le]);ZP(B,Le,Be)}}var Ra=(B)=>Boolean(B&&B.getVelocity);function V1(B){return Boolean(Ra(B)&&B.add)}function _f(B,ce){let pe=B.getValue("willChange");if(V1(pe))return pe.add(ce);else if(!pe&&as.WillChange){let we=new as.WillChange("auto");B.addValue("willChange",we),we.add(ce)}}function Wf(B){return B.replace(/([A-Z])/g,(ce)=>`-${ce.toLowerCase()}`)}var H1="framerAppearId",Wl="data-"+Wf(H1);function fd(B){return B.props[Wl]}function eF({protectedKeys:B,needsAnimating:ce},pe){let we=B.hasOwnProperty(pe)&&ce[pe]!==!0;return ce[pe]=!1,we}function ld(B,ce,{delay:pe=0,transitionOverride:we,type:Te}={}){let{transition:Fe,transitionEnd:Le,...Be}=ce,ot=B.getDefaultTransition();Fe=Fe?Jt(Fe,ot):ot;let nt=Fe?.reduceMotion,vt=Fe?.skipAnimations;if(we)Fe=we;let St=[],wt=Te&&B.animationState&&B.animationState.getState()[Te],Do=Fe?.path;if(Do)Do.animateVisualElement(B,Be,Fe,pe,St);for(let eo in Be){let Ir=B.getValue(eo,B.latestValues[eo]??null),wr=Be[eo];if(wr===void 0||wt&&eF(wt,eo))continue;let Jr={delay:pe,...Hf(Fe||{},eo)};if(vt)Jr.skipAnimations=!0;let ta=Ir.get();if(ta!==void 0&&!Ir.isAnimating()&&!Array.isArray(wr)&&wr===ta&&!Jr.velocity){w.update(()=>Ir.set(wr));continue}let oa=!1;if(window.MotionHandoffAnimation){let ua=fd(B);if(ua){let ca=window.MotionHandoffAnimation(ua,eo,w);if(ca!==null)Jr.startTime=ca,oa=!0}}_f(B,eo);let Qr=nt??B.shouldReduceMotion;Ir.start(Ji(eo,Ir,wr,Qr&&id.has(eo)?{type:!1}:Jr,B,oa));let sa=Ir.animation;if(sa)St.push(sa)}if(Le){let eo=()=>w.update(()=>{Le&&N1(B,Le)});if(St.length)Promise.all(St).then(eo);else eo()}return St}function cd(B,ce,pe={}){let we=ms(B,ce,pe.type==="exit"?B.presenceContext?.custom:void 0),{transition:Te=B.getDefaultTransition()||{}}=we||{};if(pe.transitionOverride)Te=pe.transitionOverride;let Fe=we?()=>Promise.all(ld(B,we,pe)):()=>Promise.resolve(),Le=B.variantChildren&&B.variantChildren.size?(ot=0)=>{let{delayChildren:nt=0,staggerChildren:vt,staggerDirection:St}=Te;return tF(B,ce,ot,nt,vt,St,pe)}:()=>Promise.resolve(),{when:Be}=Te;if(Be){let[ot,nt]=Be==="beforeChildren"?[Fe,Le]:[Le,Fe];return ot().then(()=>nt())}else return Promise.all([Fe(),Le(pe.delay)])}function tF(B,ce,pe=0,we=0,Te=0,Fe=1,Le){let Be=[];for(let ot of B.variantChildren)ot.notify("AnimationStart",ce),Be.push(cd(ot,ce,{...Le,delay:pe+(typeof we==="function"?0:we)+sd(B.variantChildren,ot,we,Te,Fe)}).then(()=>ot.notify("AnimationComplete",ce)));return Promise.all(Be)}function _1(B,ce,pe={}){B.notify("AnimationStart",ce);let we;if(Array.isArray(ce)){let Te=ce.map((Fe)=>cd(B,Fe,pe));we=Promise.all(Te)}else if(typeof ce==="string")we=cd(B,ce,pe);else{let Te=typeof ce==="function"?ms(B,ce,pe.custom):ce;we=Promise.all(ld(B,Te,pe))}return we.then(()=>{B.notify("AnimationComplete",ce)})}var W1={test:(B)=>B==="auto",parse:(B)=>B};var ud=(B)=>(ce)=>ce.test(B);var vI=[zs,ia,ts,Ss,oI,tI,W1],SI=(B)=>vI.find(ud(B));function z1(B){if(typeof B==="number")return B===0;else if(B!==null)return B==="none"||B==="0"||Sl(B);else return!0}var oF=new Set(["brightness","contrast","saturate","opacity"]);function rF(B){let[ce,pe]=B.slice(0,-1).split("(");if(ce==="drop-shadow")return B;let[we]=pe.match(Bf)||[];if(!we)return B;let Te=pe.replace(we,""),Fe=oF.has(ce)?1:0;if(we!==pe)Fe*=100;return ce+"("+Fe+Te+")"}var aF=/\b([a-z-]*)\(.*?\)/gu,zl={...on,getAnimatableNone:(B)=>{let ce=B.match(aF);return ce?ce.map(rF).join(" "):B}};var ql={...on,getAnimatableNone:(B)=>{let ce=on.parse(B);return on.createTransformer(B)(ce.map((we)=>typeof we==="number"?0:typeof we==="object"?{...we,alpha:1}:we))}};var CI={...zs,transform:Math.round};var q1={rotate:Ss,pathRotation:Ss,rotateX:Ss,rotateY:Ss,rotateZ:Ss,scale:Bl,scaleX:Bl,scaleY:Bl,scaleZ:Bl,skew:Ss,skewX:Ss,skewY:Ss,distance:ia,translateX:ia,translateY:ia,translateZ:ia,x:ia,y:ia,z:ia,perspective:ia,transformPerspective:ia,opacity:Qs,originX:Gu,originY:Gu,originZ:ia};var tf={borderWidth:ia,borderTopWidth:ia,borderRightWidth:ia,borderBottomWidth:ia,borderLeftWidth:ia,borderRadius:ia,borderTopLeftRadius:ia,borderTopRightRadius:ia,borderBottomRightRadius:ia,borderBottomLeftRadius:ia,width:ia,maxWidth:ia,height:ia,maxHeight:ia,top:ia,right:ia,bottom:ia,left:ia,inset:ia,insetBlock:ia,insetBlockStart:ia,insetBlockEnd:ia,insetInline:ia,insetInlineStart:ia,insetInlineEnd:ia,padding:ia,paddingTop:ia,paddingRight:ia,paddingBottom:ia,paddingLeft:ia,paddingBlock:ia,paddingBlockStart:ia,paddingBlockEnd:ia,paddingInline:ia,paddingInlineStart:ia,paddingInlineEnd:ia,margin:ia,marginTop:ia,marginRight:ia,marginBottom:ia,marginLeft:ia,marginBlock:ia,marginBlockStart:ia,marginBlockEnd:ia,marginInline:ia,marginInlineStart:ia,marginInlineEnd:ia,fontSize:ia,backgroundPositionX:ia,backgroundPositionY:ia,...q1,zIndex:CI,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:CI};var nF={...tf,color:Na,backgroundColor:Na,outlineColor:Na,fill:Na,stroke:Na,borderColor:Na,borderTopColor:Na,borderRightColor:Na,borderBottomColor:Na,borderLeftColor:Na,filter:zl,WebkitFilter:zl,mask:ql,WebkitMask:ql},dd=(B)=>nF[B];var sF=new Set([zl,ql]);function pd(B,ce){let pe=dd(B);if(!sF.has(pe))pe=on;return pe.getAnimatableNone?pe.getAnimatableNone(ce):void 0}var iF=new Set(["auto","none","0"]);function U1(B,ce,pe){let we=0,Te=void 0;while(we<B.length&&!Te){let Fe=B[we];if(typeof Fe==="string"&&!iF.has(Fe)&&wi(Fe).values.length)Te=B[we];we++}if(Te&&pe)for(let Fe of ce)B[Fe]=pd(pe,Te)}class wI extends Yi{constructor(B,ce,pe,we,Te){super(B,ce,pe,we,Te,!0)}readKeyframes(){let{unresolvedKeyframes:B,element:ce,name:pe}=this;if(!ce||!ce.current)return;super.readKeyframes();for(let nt=0;nt<B.length;nt++){let vt=B[nt];if(typeof vt==="string"){if(vt=vt.trim(),Af(vt)){let St=bI(vt,ce.current);if(St!==void 0)B[nt]=St;if(nt===B.length-1)this.finalKeyframe=vt}}}if(this.resolveNoneKeyframes(),!id.has(pe)||B.length!==2)return;let[we,Te]=B,Fe=SI(we),Le=SI(Te),Be=Jx(we),ot=Jx(Te);if(Be!==ot&&Ys[pe]){this.needsMeasurement=!0;return}if(Fe===Le)return;if(cI(Fe)&&cI(Le))for(let nt=0;nt<B.length;nt++){let vt=B[nt];if(typeof vt==="string")B[nt]=parseFloat(vt)}else if(Ys[pe])this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:B,name:ce}=this,pe=[];for(let we=0;we<B.length;we++)if(B[we]===null||z1(B[we]))pe.push(we);if(pe.length)U1(B,pe,ce)}measureInitialState(){let{element:B,unresolvedKeyframes:ce,name:pe}=this;if(!B||!B.current)return;if(pe==="height")this.suspendedScrollY=window.pageYOffset;this.measuredOrigin=Ys[pe](B.measureViewportBox(),window.getComputedStyle(B.current)),ce[0]=this.measuredOrigin;let we=ce[ce.length-1];if(we!==void 0)B.getValue(pe,we).jump(we,!1)}measureEndState(){let{element:B,name:ce,unresolvedKeyframes:pe}=this;if(!B||!B.current)return;let we=B.getValue(ce);we&&we.jump(this.measuredOrigin,!1);let Te=pe.length-1,Fe=pe[Te];if(pe[Te]=Ys[ce](B.measureViewportBox(),window.getComputedStyle(B.current)),Fe!==null&&this.finalKeyframe===void 0)this.finalKeyframe=Fe;if(this.removedTransforms?.length)this.removedTransforms.forEach(([Le,Be])=>{B.getValue(Le).set(Be)});this.resolveNoneKeyframes()}}var Ul=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function md(B,ce,pe){if(B==null)return[];if(B instanceof EventTarget)return[B];else if(typeof B==="string"){let we=document;if(ce)we=ce.current;let Te=pe?.[B]??we.querySelectorAll(B);return Te?Array.from(Te):[]}return Array.from(B).filter((we)=>we!=null)}var Gl=(B,ce)=>ce&&typeof B==="number"?ce.transform(B):B;function Qt(B){return vl(B)&&"offsetHeight"in B&&!("ownerSVGElement"in B)}var{schedule:of,cancel:fF}=Wu(queueMicrotask,!1);var ws={x:!1,y:!1};function xd(){return ws.x||ws.y}function TI(B){if(B==="x"||B==="y")if(ws[B])return null;else return ws[B]=!0,()=>{ws[B]=!1};else if(ws.x||ws.y)return null;else return ws.x=ws.y=!0,()=>{ws.x=ws.y=!1}}function Id(B,ce){let pe=md(B),we=new AbortController,Te={passive:!0,...ce,signal:we.signal};return[pe,Te,()=>we.abort()]}function lF(B){return!(B.pointerType==="touch"||xd())}function kI(B,ce,pe={}){let[we,Te,Fe]=Id(B,pe);return we.forEach((Le)=>{let Be=!1,ot=!1,nt,vt=()=>{Le.removeEventListener("pointerleave",eo)},St=(wr)=>{if(nt)nt(wr),nt=void 0;vt()},wt=(wr)=>{if(Be=!1,window.removeEventListener("pointerup",wt),window.removeEventListener("pointercancel",wt),ot)ot=!1,St(wr)},Do=()=>{Be=!0,window.addEventListener("pointerup",wt,Te),window.addEventListener("pointercancel",wt,Te)},eo=(wr)=>{if(wr.pointerType==="touch")return;if(Be){ot=!0;return}St(wr)},Ir=(wr)=>{if(!lF(wr))return;ot=!1;let Jr=ce(Le,wr);if(typeof Jr!=="function")return;nt=Jr,Le.addEventListener("pointerleave",eo,Te)};Le.addEventListener("pointerenter",Ir,Te),Le.addEventListener("pointerdown",Do,Te)}),Fe}var RI=(B,ce)=>{if(!ce)return!1;else if(B===ce)return!0;else return RI(B,ce.parentElement)};var rf=(B)=>{if(B.pointerType==="mouse")return typeof B.button!=="number"||B.button<=0;else return B.isPrimary!==!1};var cF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function MI(B){return cF.has(B.tagName)||B.isContentEditable===!0}var uF=new Set(["INPUT","SELECT","TEXTAREA"]);function PI(B){return uF.has(B.tagName)||B.isContentEditable===!0}var zf=new WeakSet;function G1(B){return(ce)=>{if(ce.key!=="Enter")return;B(ce)}}function FI(B,ce){B.dispatchEvent(new PointerEvent("pointer"+ce,{isPrimary:!0,bubbles:!0}))}var j1=(B,ce)=>{let pe=B.currentTarget;if(!pe)return;let we=G1(()=>{if(zf.has(pe))return;FI(pe,"down");let Te=G1(()=>{FI(pe,"up")}),Fe=()=>FI(pe,"cancel");pe.addEventListener("keyup",Te,ce),pe.addEventListener("blur",Fe,ce)});pe.addEventListener("keydown",we,ce),pe.addEventListener("blur",()=>pe.removeEventListener("keydown",we),ce)};function X1(B){return rf(B)&&!xd()}var K1=new WeakSet;function DI(B,ce,pe={}){let[we,Te,Fe]=Id(B,pe),Le=(Be)=>{let ot=Be.currentTarget;if(!X1(Be))return;if(K1.has(Be))return;if(zf.add(ot),pe.stopPropagation)K1.add(Be);let nt=ce(ot,Be),vt={...Te,capture:!0},St=(eo,Ir)=>{if(window.removeEventListener("pointerup",wt,vt),window.removeEventListener("pointercancel",Do,vt),zf.has(ot))zf.delete(ot);if(!X1(eo))return;if(typeof nt==="function")nt(eo,{success:Ir})},wt=(eo)=>{St(eo,ot===window||ot===document||pe.useGlobalTarget||RI(ot,eo.target))},Do=(eo)=>{St(eo,!1)};window.addEventListener("pointerup",wt,vt),window.addEventListener("pointercancel",Do,vt)};return we.forEach((Be)=>{if((pe.useGlobalTarget?window:Be).addEventListener("pointerdown",Le,Te),Qt(Be)){if(Be.addEventListener("focus",(nt)=>j1(nt,Te)),!MI(Be)&&!Be.hasAttribute("tabindex"))Be.tabIndex=0}}),Fe}function qf(B){return vl(B)&&"ownerSVGElement"in B}var hd=new WeakMap,gd,$1=(B,ce,pe)=>(we,Te)=>{if(Te&&Te[0])return Te[0][B+"Size"];else if(qf(we)&&"getBBox"in we)return we.getBBox()[ce];else return we[pe]},dF=$1("inline","width","offsetWidth"),pF=$1("block","height","offsetHeight");function mF({target:B,borderBoxSize:ce}){hd.get(B)?.forEach((pe)=>{pe(B,{get width(){return dF(B,ce)},get height(){return pF(B,ce)}})})}function xF(B){B.forEach(mF)}function IF(){if(typeof ResizeObserver>"u")return;gd=new ResizeObserver(xF)}function Q1(B,ce){if(!gd)IF();let pe=md(B);return pe.forEach((we)=>{let Te=hd.get(we);if(!Te)Te=new Set,hd.set(we,Te);Te.add(ce),gd?.observe(we)}),()=>{pe.forEach((we)=>{let Te=hd.get(we);if(Te?.delete(ce),!Te?.size)gd?.unobserve(we)})}}var yd=new Set,Uf;function hF(){Uf=()=>{let B={get width(){return window.innerWidth},get height(){return window.innerHeight}};yd.forEach((ce)=>ce(B))},window.addEventListener("resize",Uf)}function Y1(B){if(yd.add(B),!Uf)hF();return()=>{if(yd.delete(B),!yd.size&&typeof Uf==="function")window.removeEventListener("resize",Uf),Uf=void 0}}function bd(B,ce){return typeof B==="function"?Y1(B):Q1(B,ce)}var af={value:null,addProjectionMetrics:null};function Z1(B){return qf(B)&&B.tagName==="svg"}var gF=[...vI,Na,on],J1=(B)=>gF.find(ud(B));var LI=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ri=()=>({x:LI(),y:LI()}),AI=()=>({min:0,max:0}),Va=()=>({x:AI(),y:AI()});var ev=new WeakMap;function Zs(B){return B!==null&&typeof B==="object"&&typeof B.start==="function"}function Gs(B){return typeof B==="string"||Array.isArray(B)}var vd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jl=["initial",...vd];function Mi(B){return Zs(B.animate)||jl.some((ce)=>Gs(B[ce]))}function Xl(B){return Boolean(Mi(B)||B.variants)}function tv(B,ce,pe){for(let we in ce){let Te=ce[we],Fe=pe[we];if(Ra(Te))B.addValue(we,Te);else if(Ra(Fe))B.addValue(we,As(Te,{owner:B}));else if(Fe!==Te)if(B.hasValue(we)){let Le=B.getValue(we);if(Le.liveStyle===!0)Le.jump(Te);else if(!Le.hasAnimated)Le.set(Te)}else{let Le=B.getStaticValue(we);B.addValue(we,As(Le!==void 0?Le:Te,{owner:B}))}}for(let we in pe)if(ce[we]===void 0)B.removeValue(we);return ce}var Kl={current:null},Sd={current:!1};var yF=typeof window<"u";function ov(){if(Sd.current=!0,!yF)return;if(window.matchMedia){let B=window.matchMedia("(prefers-reduced-motion)"),ce=()=>Kl.current=B.matches;B.addEventListener("change",ce),ce()}else Kl.current=!1}var rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Cd={};function $l(B){Cd=B}function BI(){return Cd}class wd{scrapeMotionValuesFromProps(B,ce,pe){return{}}constructor({parent:B,props:ce,presenceContext:pe,reducedMotionConfig:we,skipAnimations:Te,blockInitialAnimation:Fe,visualState:Le},Be={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Yi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{if(!this.current)return;this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection)},this.renderScheduledAt=0,this.scheduleRender=()=>{let wt=za.now();if(this.renderScheduledAt<wt)this.renderScheduledAt=wt,w.render(this.render,!1,!0)};let{latestValues:ot,renderState:nt}=Le;if(this.latestValues=ot,this.baseTarget={...ot},this.initialValues=ce.initial?{...ot}:{},this.renderState=nt,this.parent=B,this.props=ce,this.presenceContext=pe,this.depth=B?B.depth+1:0,this.reducedMotionConfig=we,this.skipAnimationsConfig=Te,this.options=Be,this.blockInitialAnimation=Boolean(Fe),this.isControllingVariants=Mi(ce),this.isVariantNode=Xl(ce),this.isVariantNode)this.variantChildren=new Set;this.manuallyAnimateOnMount=Boolean(B&&B.current);let{willChange:vt,...St}=this.scrapeMotionValuesFromProps(ce,{},this);for(let wt in St){let Do=St[wt];if(ot[wt]!==void 0&&Ra(Do))Do.set(ot[wt])}}mount(B){if(this.hasBeenMounted)for(let ce in this.initialValues)this.values.get(ce)?.jump(this.initialValues[ce]),this.latestValues[ce]=this.initialValues[ce];if(this.current=B,ev.set(B,this),this.projection&&!this.projection.instance)this.projection.mount(B);if(this.parent&&this.isVariantNode&&!this.isControllingVariants)this.removeFromVariantTree=this.parent.addVariantChild(this);if(this.values.forEach((ce,pe)=>this.bindToMotionValue(pe,ce)),this.reducedMotionConfig==="never")this.shouldReduceMotion=!1;else if(this.reducedMotionConfig==="always")this.shouldReduceMotion=!0;else{if(!Sd.current)ov();this.shouldReduceMotion=Kl.current}this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ls(this.notifyUpdate),ls(this.render),this.valueSubscriptions.forEach((B)=>B()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let B in this.events)this.events[B].clear();for(let B in this.features){let ce=this.features[B];if(ce)ce.unmount(),ce.isMounted=!1}this.current=null}addChild(B){this.children.add(B),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(B)}removeChild(B){this.children.delete(B),this.enteringChildren&&this.enteringChildren.delete(B)}bindToMotionValue(B,ce){if(this.valueSubscriptions.has(B))this.valueSubscriptions.get(B)();if(ce.accelerate&&nd.has(B)&&this.current instanceof HTMLElement){let{factory:Fe,keyframes:Le,times:Be,ease:ot,duration:nt}=ce.accelerate,vt=new Vl({element:this.current,name:B,keyframes:Le,times:Be,ease:ot,duration:$a(nt)}),St=Fe(vt);this.valueSubscriptions.set(B,()=>{St(),vt.cancel()});return}let pe=Cs.has(B);if(pe&&this.onBindTransform)this.onBindTransform();let we=ce.on("change",(Fe)=>{if(this.latestValues[B]=Fe,this.props.onUpdate&&w.preRender(this.notifyUpdate),pe&&this.projection)this.projection.isTransformDirty=!0;this.scheduleRender()}),Te;if(typeof window<"u"&&window.MotionCheckAppearSync)Te=window.MotionCheckAppearSync(this,B,ce);this.valueSubscriptions.set(B,()=>{if(we(),Te)Te()})}sortNodePosition(B){if(!this.current||!this.sortInstanceNodePosition||this.type!==B.type)return 0;return this.sortInstanceNodePosition(this.current,B.current)}updateFeatures(){let B="animation";for(B in Cd){let ce=Cd[B];if(!ce)continue;let{isEnabled:pe,Feature:we}=ce;if(!this.features[B]&&we&&pe(this.props))this.features[B]=new we(this);if(this.features[B]){let Te=this.features[B];if(Te.isMounted)Te.update();else Te.mount(),Te.isMounted=!0}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Va()}getStaticValue(B){return this.latestValues[B]}setStaticValue(B,ce){this.latestValues[B]=ce}update(B,ce){if(B.transformTemplate||this.props.transformTemplate)this.scheduleRender();this.prevProps=this.props,this.props=B,this.prevPresenceContext=this.presenceContext,this.presenceContext=ce;for(let pe=0;pe<rv.length;pe++){let we=rv[pe];if(this.propEventSubscriptions[we])this.propEventSubscriptions[we](),delete this.propEventSubscriptions[we];let Te="on"+we,Fe=B[Te];if(Fe)this.propEventSubscriptions[we]=this.on(we,Fe)}if(this.prevMotionValues=tv(this,this.scrapeMotionValuesFromProps(B,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue)this.handleChildMotionValue()}getProps(){return this.props}getVariant(B){return this.props.variants?this.props.variants[B]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(B){let ce=this.getClosestVariantNode();if(ce)return ce.variantChildren&&ce.variantChildren.add(B),()=>ce.variantChildren.delete(B)}addValue(B,ce){let pe=this.values.get(B);if(ce!==pe){if(pe)this.removeValue(B);this.bindToMotionValue(B,ce),this.values.set(B,ce),this.latestValues[B]=ce.get()}}removeValue(B){this.values.delete(B);let ce=this.valueSubscriptions.get(B);if(ce)ce(),this.valueSubscriptions.delete(B);delete this.latestValues[B],this.removeValueFromRenderState(B,this.renderState)}hasValue(B){return this.values.has(B)}getValue(B,ce){if(this.props.values&&this.props.values[B])return this.props.values[B];let pe=this.values.get(B);if(pe===void 0&&ce!==void 0)pe=As(ce===null?void 0:ce,{owner:this}),this.addValue(B,pe);return pe}readValue(B,ce){let pe=this.latestValues[B]!==void 0||!this.current?this.latestValues[B]:this.getBaseTargetFromProps(this.props,B)??this.readValueFromInstance(this.current,B,this.options);if(pe!==void 0&&pe!==null){if(typeof pe==="string"&&(bl(pe)||Sl(pe)))pe=parseFloat(pe);else if(!J1(pe)&&on.test(ce))pe=pd(B,ce);this.setBaseTarget(B,Ra(pe)?pe.get():pe)}return Ra(pe)?pe.get():pe}setBaseTarget(B,ce){this.baseTarget[B]=ce}getBaseTarget(B){let{initial:ce}=this.props,pe;if(typeof ce==="string"||typeof ce==="object"){let Te=ef(this.props,ce,this.presenceContext?.custom);if(Te)pe=Te[B]}if(ce&&pe!==void 0)return pe;let we=this.getBaseTargetFromProps(this.props,B);if(we!==void 0&&!Ra(we))return we;return this.initialValues[B]!==void 0&&pe===void 0?void 0:this.baseTarget[B]}on(B,ce){if(!this.events[B])this.events[B]=new bi;return this.events[B].add(ce)}notify(B,...ce){if(this.events[B])this.events[B].notify(...ce)}scheduleRenderMicrotask(){of.render(this.render)}}class Ql extends wd{constructor(){super(...arguments);this.KeyframeResolver=wI}sortInstanceNodePosition(B,ce){return B.compareDocumentPosition(ce)&2?1:-1}getBaseTargetFromProps(B,ce){let pe=B.style;return pe?pe[ce]:void 0}removeValueFromRenderState(B,{vars:ce,style:pe}){delete ce[B],delete pe[B]}handleChildMotionValue(){if(this.childSubscription)this.childSubscription(),delete this.childSubscription;let{children:B}=this.props;if(Ra(B))this.childSubscription=B.on("change",(ce)=>{if(this.current)this.current.textContent=`${ce}`})}}class sn{constructor(B){this.isMounted=!1,this.node=B}update(){}}function Yl({top:B,left:ce,right:pe,bottom:we}){return{x:{min:ce,max:pe},y:{min:B,max:we}}}function EI({x:B,y:ce}){return{top:ce.min,right:B.max,bottom:ce.max,left:B.min}}function OI(B,ce){if(!ce)return B;let pe=ce({x:B.left,y:B.top}),we=ce({x:B.right,y:B.bottom});return{top:pe.y,left:pe.x,bottom:we.y,right:we.x}}function NI(B){return B===void 0||B===1}function Td({scale:B,scaleX:ce,scaleY:pe}){return!NI(B)||!NI(ce)||!NI(pe)}function Js(B){return Td(B)||VI(B)||B.z||B.rotate||B.rotateX||B.rotateY||B.skewX||B.skewY}function VI(B){return av(B.x)||av(B.y)}function av(B){return B&&B!=="0%"}function Zl(B,ce,pe){let we=B-pe,Te=ce*we;return pe+Te}function nv(B,ce,pe,we,Te){if(Te!==void 0)B=Zl(B,Te,we);return Zl(B,pe,we)+ce}function HI(B,ce=0,pe=1,we,Te){B.min=nv(B.min,ce,pe,we,Te),B.max=nv(B.max,ce,pe,we,Te)}function _I(B,{x:ce,y:pe}){HI(B.x,ce.translate,ce.scale,ce.originPoint),HI(B.y,pe.translate,pe.scale,pe.originPoint)}var sv=0.999999999999,iv=1.0000000000001;function cv(B,ce,pe,we=!1){let Te=pe.length;if(!Te)return;ce.x=ce.y=1;let Fe,Le;for(let Be=0;Be<Te;Be++){Fe=pe[Be],Le=Fe.projectionDelta;let{visualElement:ot}=Fe.options;if(ot&&ot.props.style&&ot.props.style.display==="contents")continue;if(we&&Fe.options.layoutScroll&&Fe.scroll&&Fe!==Fe.root)Ts(B.x,-Fe.scroll.offset.x),Ts(B.y,-Fe.scroll.offset.y);if(Le)ce.x*=Le.x.scale,ce.y*=Le.y.scale,_I(B,Le);if(we&&Js(Fe.latestValues))Jl(B,Fe.latestValues,Fe.layout?.layoutBox)}if(ce.x<iv&&ce.x>sv)ce.x=1;if(ce.y<iv&&ce.y>sv)ce.y=1}function Ts(B,ce){B.min+=ce,B.max+=ce}function fv(B,ce,pe,we,Te=0.5){let Fe=Ia(B.min,B.max,Te);HI(B,ce,pe,Fe,we)}function lv(B,ce){if(typeof B==="string")return parseFloat(B)/100*(ce.max-ce.min);return B}function Jl(B,ce,pe){let we=pe??B;fv(B.x,lv(ce.x,we.x),ce.scaleX,ce.scale,ce.originX),fv(B.y,lv(ce.y,we.y),ce.scaleY,ce.scale,ce.originY)}function kd(B,ce){return Yl(OI(B.getBoundingClientRect(),ce))}function WI(B,ce,pe){let we=kd(B,pe),{scroll:Te}=ce;if(Te)Ts(we.x,Te.offset.x),Ts(we.y,Te.offset.y);return we}var bF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vF=Us.length;function uv(B,ce,pe){let we="",Te=!0;for(let Le=0;Le<vF;Le++){let Be=Us[Le],ot=B[Be];if(ot===void 0)continue;let nt=!0;if(typeof ot==="number")nt=ot===(Be.startsWith("scale")?1:0);else{let vt=parseFloat(ot);nt=Be.startsWith("scale")?vt===1:vt===0}if(!nt||pe){let vt=Gl(ot,tf[Be]);if(!nt){Te=!1;let St=bF[Be]||Be;we+=`${St}(${vt}) `}if(pe)ce[Be]=vt}}let Fe=B.pathRotation;if(Fe)Te=!1,we+=`rotate(${Gl(Fe,tf.pathRotation)}) `;if(we=we.trim(),pe)we=pe(ce,Te?"":we);else if(Te)we="none";return we}function nf(B,ce,pe){let{style:we,vars:Te,transformOrigin:Fe}=B,Le=!1,Be=!1;for(let ot in ce){let nt=ce[ot];if(Cs.has(ot)){Le=!0;continue}else if(qu(ot)){Te[ot]=nt;continue}else{let vt=Gl(nt,tf[ot]);if(ot.startsWith("origin"))Be=!0,Fe[ot]=vt;else we[ot]=vt}}if(!ce.transform){if(Le||pe)we.transform=uv(ce,B.transform,pe);else if(we.transform)we.transform="none"}if(Be){let{originX:ot="50%",originY:nt="50%",originZ:vt=0}=Fe;we.transformOrigin=`${ot} ${nt} ${vt}`}}function Rd(B,{style:ce,vars:pe},we,Te){let Fe=B.style,Le;for(Le in ce)Fe[Le]=ce[Le];Te?.applyProjectionStyles(Fe,we);for(Le in pe)Fe.setProperty(Le,pe[Le])}function dv(B,ce){if(ce.max===ce.min)return 0;return B/(ce.max-ce.min)*100}var Gf={correct:(B,ce)=>{if(!ce.target)return B;if(typeof B==="string")if(ia.test(B))B=parseFloat(B);else return B;let pe=dv(B,ce.target.x),we=dv(B,ce.target.y);return`${pe}% ${we}%`}};var pv={correct:(B,{treeScale:ce,projectionDelta:pe})=>{let we=B,Te=on.parse(B);if(Te.length>5)return we;let Fe=on.createTransformer(B),Le=typeof Te[0]!=="number"?1:0,Be=pe.x.scale*ce.x,ot=pe.y.scale*ce.y;Te[0+Le]/=Be,Te[1+Le]/=ot;let nt=Ia(Be,ot,0.5);if(typeof Te[2+Le]==="number")Te[2+Le]/=nt;if(typeof Te[3+Le]==="number")Te[3+Le]/=nt;return Fe(Te)}};var ec={borderRadius:{...Gf,applyTo:[...Ul]},borderTopLeftRadius:Gf,borderTopRightRadius:Gf,borderBottomLeftRadius:Gf,borderBottomRightRadius:Gf,boxShadow:pv};function tc(B,{layout:ce,layoutId:pe}){return Cs.has(B)||B.startsWith("origin")||(ce||pe!==void 0)&&(!!ec[B]||B==="opacity")}function sf(B,ce,pe){let we=B.style,Te=ce?.style,Fe={};if(!we)return Fe;for(let Le in we)if(Ra(we[Le])||Te&&Ra(Te[Le])||tc(Le,B)||pe?.getValue(Le)?.liveStyle!==void 0)Fe[Le]=we[Le];return Fe}function SF(B){return window.getComputedStyle(B)}class Md extends Ql{constructor(){super(...arguments);this.type="html",this.renderInstance=Rd}mount(B){es(Boolean(B.style),"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(B)}readValueFromInstance(B,ce){if(Cs.has(ce))return this.projection?.isProjecting?Ju(ce):I1(B,ce);else{let pe=SF(B),we=(qu(ce)?pe.getPropertyValue(ce):pe[ce])||0;return typeof we==="string"?we.trim():we}}measureInstanceViewportBox(B,{transformPagePoint:ce}){return kd(B,ce)}build(B,ce,pe){nf(B,ce,pe.transformTemplate)}scrapeMotionValuesFromProps(B,ce,pe){return sf(B,ce,pe)}}var CF={offset:"stroke-dashoffset",array:"stroke-dasharray"},wF={offset:"strokeDashoffset",array:"strokeDasharray"};function mv(B,ce,pe=1,we=0,Te=!0){B.pathLength=1;let Fe=Te?CF:wF;B[Fe.offset]=`${-we}`,B[Fe.array]=`${ce} ${pe}`}var TF=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function oc(B,{attrX:ce,attrY:pe,attrScale:we,pathLength:Te,pathSpacing:Fe=1,pathOffset:Le=0,...Be},ot,nt,vt){if(nf(B,Be,nt),ot){if(B.style.viewBox)B.attrs.viewBox=B.style.viewBox;return}B.attrs=B.style,B.style={};let{attrs:St,style:wt}=B;if(St.transform)wt.transform=St.transform,delete St.transform;if(wt.transform||St.transformOrigin)wt.transformOrigin=St.transformOrigin??"50% 50%",delete St.transformOrigin;if(wt.transform)wt.transformBox=vt?.transformBox??"fill-box",delete St.transformBox;for(let Do of TF)if(St[Do]!==void 0)wt[Do]=St[Do],delete St[Do];if(ce!==void 0)St.x=ce;if(pe!==void 0)St.y=pe;if(we!==void 0)St.scale=we;if(Te!==void 0)mv(St,Te,Fe,Le,!1)}var Pd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var rc=(B)=>typeof B==="string"&&B.toLowerCase()==="svg";function xv(B,ce,pe,we){Rd(B,ce,void 0,we);for(let Te in ce.attrs)B.setAttribute(!Pd.has(Te)?Wf(Te):Te,ce.attrs[Te])}function ac(B,ce,pe){let we=sf(B,ce,pe);for(let Te in B)if(Ra(B[Te])||Ra(ce[Te])){let Fe=Us.indexOf(Te)!==-1?"attr"+Te.charAt(0).toUpperCase()+Te.substring(1):Te;we[Fe]=B[Te]}return we}class Fd extends Ql{constructor(){super(...arguments);this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Va}getBaseTargetFromProps(B,ce){return B[ce]}readValueFromInstance(B,ce){if(Cs.has(ce)){let pe=dd(ce);return pe?pe.default||0:0}return ce=!Pd.has(ce)?Wf(ce):ce,B.getAttribute(ce)}scrapeMotionValuesFromProps(B,ce,pe){return ac(B,ce,pe)}build(B,ce,pe){oc(B,ce,this.isSVGTag,pe.transformTemplate,pe.style)}renderInstance(B,ce,pe,we){xv(B,ce,pe,we)}mount(B){this.isSVGTag=rc(B.tagName),super.mount(B)}}var kF=jl.length;function zI(B){if(!B)return;if(!B.isControllingVariants){let pe=B.parent?zI(B.parent)||{}:{};if(B.props.initial!==void 0)pe.initial=B.props.initial;return pe}let ce={};for(let pe=0;pe<kF;pe++){let we=jl[pe],Te=B.props[we];if(Gs(Te)||Te===!1)ce[we]=Te}return ce}function qI(B,ce){if(!Array.isArray(ce))return!1;let pe=ce.length;if(pe!==B.length)return!1;for(let we=0;we<pe;we++)if(ce[we]!==B[we])return!1;return!0}var RF=[...vd].reverse(),MF=vd.length;function PF(B){return(ce)=>Promise.all(ce.map(({animation:pe,options:we})=>_1(B,pe,we)))}function UI(B){let ce=PF(B),pe=Iv(),we=!0,Te=!1,Fe=(nt)=>(vt,St)=>{let wt=ms(B,St,nt==="exit"?B.presenceContext?.custom:void 0);if(wt){let{transition:Do,transitionEnd:eo,...Ir}=wt;vt={...vt,...Ir,...eo}}return vt};function Le(nt){ce=nt(B)}function Be(nt){let{props:vt}=B,St=zI(B.parent)||{},wt=[],Do=new Set,eo={},Ir=1/0;for(let Jr=0;Jr<MF;Jr++){let ta=RF[Jr],oa=pe[ta],Qr=vt[ta]!==void 0?vt[ta]:St[ta],sa=Gs(Qr),ua=ta===nt?oa.isActive:null;if(ua===!1)Ir=Jr;let ca=Qr===St[ta]&&Qr!==vt[ta]&&sa;if(ca&&(we||Te)&&B.manuallyAnimateOnMount)ca=!1;if(oa.protectedKeys={...eo},!oa.isActive&&ua===null||!Qr&&!oa.prevProp||Zs(Qr)||typeof Qr==="boolean")continue;if(ta==="exit"&&oa.isActive&&ua!==!0){if(oa.prevResolvedValues)eo={...eo,...oa.prevResolvedValues};continue}let ea=hv(oa.prevProp,Qr),ma=ea||ta===nt&&oa.isActive&&!ca&&sa||Jr>Ir&&sa,da=!1,ga=Array.isArray(Qr)?Qr:[Qr],va=ga.reduce(Fe(ta),{});if(ua===!1)va={};let{prevResolvedValues:La={}}=oa,_a={...La,...va},Aa=(ka)=>{if(ma=!0,Do.has(ka))da=!0,Do.delete(ka);oa.needsAnimating[ka]=!0;let pa=B.getValue(ka);if(pa)pa.liveStyle=!1};for(let ka in _a){let pa=va[ka],na=La[ka];if(eo.hasOwnProperty(ka))continue;let Ua=!1;if(_l(pa)&&_l(na))Ua=!qI(pa,na)||ea;else Ua=pa!==na;if(Ua)if(pa!==void 0&&pa!==null)Aa(ka);else Do.add(ka);else if(pa!==void 0&&Do.has(ka))Aa(ka);else oa.protectedKeys[ka]=!0}if(oa.prevProp=Qr,oa.prevResolvedValues=va,oa.isActive)eo={...eo,...va};if((we||Te)&&B.blockInitialAnimation)ma=!1;let Ca=ca&&ea;if(ma&&(!Ca||da))wt.push(...ga.map((ka)=>{let pa={type:ta};if(typeof ka==="string"&&(we||Te)&&!Ca&&B.manuallyAnimateOnMount&&B.parent){let{parent:na}=B,Ua=ms(na,ka);if(na.enteringChildren&&Ua){let{delayChildren:cs}=Ua.transition||{};pa.delay=sd(na.enteringChildren,B,cs)}}return{animation:ka,options:pa}}))}if(Do.size){let Jr={};if(typeof vt.initial!=="boolean"){let ta=ms(B,Array.isArray(vt.initial)?vt.initial[0]:vt.initial);if(ta&&ta.transition)Jr.transition=ta.transition}Do.forEach((ta)=>{let oa=B.getBaseTarget(ta),Qr=B.getValue(ta);if(Qr)Qr.liveStyle=!0;Jr[ta]=oa??null}),wt.push({animation:Jr})}let wr=Boolean(wt.length);if(we&&(vt.initial===!1||vt.initial===vt.animate)&&!B.manuallyAnimateOnMount)wr=!1;return we=!1,Te=!1,wr?ce(wt):Promise.resolve()}function ot(nt,vt){if(pe[nt].isActive===vt)return Promise.resolve();B.variantChildren?.forEach((wt)=>wt.animationState?.setActive(nt,vt)),pe[nt].isActive=vt;let St=Be(nt);for(let wt in pe)pe[wt].protectedKeys={};return St}return{animateChanges:Be,setActive:ot,setAnimateFunction:Le,getState:()=>pe,reset:()=>{pe=Iv(),Te=!0}}}function hv(B,ce){if(typeof ce==="string")return ce!==B;else if(Array.isArray(ce))return!qI(ce,B);return!1}function ff(B=!1){return{isActive:B,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iv(){return{animate:ff(!0),whileInView:ff(),whileHover:ff(),whileTap:ff(),whileDrag:ff(),whileFocus:ff(),exit:ff()}}function Dd(B,ce){B.min=ce.min,B.max=ce.max}function ks(B,ce){Dd(B.x,ce.x),Dd(B.y,ce.y)}function GI(B,ce){B.translate=ce.translate,B.scale=ce.scale,B.originPoint=ce.originPoint,B.origin=ce.origin}var gv=0.0001,FF=1-gv,DF=1+gv,yv=0.01,LF=0-yv,AF=0+yv;function Ya(B){return B.max-B.min}function $I(B,ce,pe){return Math.abs(B-ce)<=pe}function jI(B,ce,pe,we=0.5){if(B.origin=we,B.originPoint=Ia(ce.min,ce.max,B.origin),B.scale=Ya(pe)/Ya(ce),B.translate=Ia(pe.min,pe.max,B.origin)-B.originPoint,B.scale>=FF&&B.scale<=DF||isNaN(B.scale))B.scale=1;if(B.translate>=LF&&B.translate<=AF||isNaN(B.translate))B.translate=0}function lf(B,ce,pe,we){jI(B.x,ce.x,pe.x,we?we.originX:void 0),jI(B.y,ce.y,pe.y,we?we.originY:void 0)}function XI(B,ce,pe,we=0){let Te=we?Ia(pe.min,pe.max,we):pe.min;B.min=Te+ce.min,B.max=B.min+Ya(ce)}function QI(B,ce,pe,we){XI(B.x,ce.x,pe.x,we?.x),XI(B.y,ce.y,pe.y,we?.y)}function KI(B,ce,pe,we=0){let Te=we?Ia(pe.min,pe.max,we):pe.min;B.min=ce.min-Te,B.max=B.min+Ya(ce)}function jf(B,ce,pe,we){KI(B.x,ce.x,pe.x,we?.x),KI(B.y,ce.y,pe.y,we?.y)}function bv(B,ce,pe,we,Te){if(B-=ce,B=Zl(B,1/pe,we),Te!==void 0)B=Zl(B,1/Te,we);return B}function BF(B,ce=0,pe=1,we=0.5,Te,Fe=B,Le=B){if(ts.test(ce))ce=parseFloat(ce),ce=Ia(Le.min,Le.max,ce/100)-Le.min;if(typeof ce!=="number")return;let Be=Ia(Fe.min,Fe.max,we);if(B===Fe)Be-=ce;B.min=bv(B.min,ce,pe,Be,Te),B.max=bv(B.max,ce,pe,Be,Te)}function vv(B,ce,[pe,we,Te],Fe,Le){BF(B,ce[pe],ce[we],ce[Te],ce.scale,Fe,Le)}var EF=["x","scaleX","originX"],OF=["y","scaleY","originY"];function YI(B,ce,pe,we){vv(B.x,ce,EF,pe?pe.x:void 0,we?we.x:void 0),vv(B.y,ce,OF,pe?pe.y:void 0,we?we.y:void 0)}function Sv(B){return B.translate===0&&B.scale===1}function ZI(B){return Sv(B.x)&&Sv(B.y)}function Cv(B,ce){return B.min===ce.min&&B.max===ce.max}function Tv(B,ce){return Cv(B.x,ce.x)&&Cv(B.y,ce.y)}function wv(B,ce){return Math.round(B.min)===Math.round(ce.min)&&Math.round(B.max)===Math.round(ce.max)}function JI(B,ce){return wv(B.x,ce.x)&&wv(B.y,ce.y)}function eh(B){return Ya(B.x)/Ya(B.y)}function th(B,ce){return B.translate===ce.translate&&B.scale===ce.scale&&B.originPoint===ce.originPoint}function xs(B){return[B("x"),B("y")]}function kv(B,ce,pe){let we="",Te=B.x.translate/ce.x,Fe=B.y.translate/ce.y,Le=pe?.z||0;if(Te||Fe||Le)we=`translate3d(${Te}px, ${Fe}px, ${Le}px) `;if(ce.x!==1||ce.y!==1)we+=`scale(${1/ce.x}, ${1/ce.y}) `;if(pe){let{transformPerspective:nt,rotate:vt,pathRotation:St,rotateX:wt,rotateY:Do,skewX:eo,skewY:Ir}=pe;if(nt)we=`perspective(${nt}px) ${we}`;if(vt)we+=`rotate(${vt}deg) `;if(St)we+=`rotate(${St}deg) `;if(wt)we+=`rotateX(${wt}deg) `;if(Do)we+=`rotateY(${Do}deg) `;if(eo)we+=`skewX(${eo}deg) `;if(Ir)we+=`skewY(${Ir}deg) `}let Be=B.x.scale*ce.x,ot=B.y.scale*ce.y;if(Be!==1||ot!==1)we+=`scale(${Be}, ${ot})`;return we||"none"}var NF=Ul.length,Rv=(B)=>typeof B==="string"?parseFloat(B):B,Mv=(B)=>typeof B==="number"||ia.test(B);function Fv(B,ce,pe,we,Te,Fe){if(Te)B.opacity=Ia(0,pe.opacity??1,VF(we)),B.opacityExit=Ia(ce.opacity??1,0,HF(we));else if(Fe)B.opacity=Ia(ce.opacity??1,pe.opacity??1,we);for(let Le=0;Le<NF;Le++){let Be=Ul[Le],ot=Pv(ce,Be),nt=Pv(pe,Be);if(ot===void 0&&nt===void 0)continue;if(ot||(ot=0),nt||(nt=0),ot===0||nt===0||Mv(ot)===Mv(nt)){if(B[Be]=Math.max(Ia(Rv(ot),Rv(nt),we),0),ts.test(nt)||ts.test(ot))B[Be]+="%"}else B[Be]=nt}if(ce.rotate||pe.rotate)B.rotate=Ia(ce.rotate||0,pe.rotate||0,we)}function Pv(B,ce){return B[ce]!==void 0?B[ce]:B.borderRadius}var VF=Dv(0,0.5,Ml),HF=Dv(0.5,0.95,Wa);function Dv(B,ce,pe){return(we)=>{if(we<B)return 0;if(we>ce)return 1;return pe(Ws(B,ce,we))}}function Lv(B,ce,pe){let we=Ra(B)?B:As(B);return we.start(Ji("",we,ce,pe)),we.animation}function js(B,ce,pe,we={passive:!0}){return B.addEventListener(ce,pe,we),()=>B.removeEventListener(ce,pe,we)}var Av=(B,ce)=>B.depth-ce.depth;class oh{constructor(){this.children=[],this.isDirty=!1}add(B){ji(this.children,B),this.isDirty=!0}remove(B){yi(this.children,B),this.isDirty=!0}forEach(B){this.isDirty&&this.children.sort(Av),this.isDirty=!1,this.children.forEach(B)}}function Bv(B,ce){let pe=za.now(),we=({timestamp:Te})=>{let Fe=Te-pe;if(Fe>=ce)ls(we),B(Fe-ce)};return w.setup(we,!0),()=>ls(we)}function cf(B){return Ra(B)?B.get():B}class rh{constructor(){this.members=[]}add(B){ji(this.members,B);for(let ce=this.members.length-1;ce>=0;ce--){let pe=this.members[ce];if(pe===B||pe===this.lead||pe===this.prevLead)continue;let we=pe.instance;if((!we||we.isConnected===!1)&&!pe.snapshot)yi(this.members,pe),pe.unmount()}B.scheduleRender()}remove(B){if(yi(this.members,B),B===this.prevLead)this.prevLead=void 0;if(B===this.lead){let ce=this.members[this.members.length-1];if(ce)this.promote(ce)}}relegate(B){for(let ce=this.members.indexOf(B)-1;ce>=0;ce--){let pe=this.members[ce];if(pe.isPresent!==!1&&pe.instance?.isConnected!==!1)return this.promote(pe),!0}return!1}promote(B,ce){let pe=this.lead;if(B===pe)return;if(this.prevLead=pe,this.lead=B,B.show(),pe){pe.updateSnapshot(),B.scheduleRender();let{layoutDependency:we}=pe.options,{layoutDependency:Te}=B.options;if(we===void 0||we!==Te){if(B.resumeFrom=pe,ce)pe.preserveOpacity=!0;if(pe.snapshot)B.snapshot=pe.snapshot,B.snapshot.latestValues=pe.animationValues||pe.latestValues;if(B.root?.isUpdating)B.isLayoutDirty=!0}if(B.options.crossfade===!1)pe.hide()}}exitAnimationComplete(){this.members.forEach((B)=>{B.options.onExitComplete?.(),B.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach((B)=>B.instance&&B.scheduleRender(!1))}removeLeadSnapshot(){if(this.lead?.snapshot)this.lead.snapshot=void 0}}var uf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var df={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ah=["","X","Y","Z"],_F=1000,WF=0;function nh(B,ce,pe,we){let{latestValues:Te}=ce;if(Te[B]){if(pe[B]=Te[B],ce.setStaticValue(B,0),we)we[B]=0}}function qv(B){if(B.hasCheckedOptimisedAppear=!0,B.root===B)return;let{visualElement:ce}=B.options;if(!ce)return;let pe=fd(ce);if(window.MotionHasOptimisedAnimation(pe,"transform")){let{layout:Te,layoutId:Fe}=B.options;window.MotionCancelOptimisedAnimation(pe,"transform",w,!(Te||Fe))}let{parent:we}=B;if(we&&!we.hasCheckedOptimisedAppear)qv(we)}function Ld({attachResizeListener:B,defaultParent:ce,measureScroll:pe,checkIsScrollRoot:we,resetTransform:Te}){return class{constructor(Le={},Be=ce?.()){this.id=WF++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{if(this.isUpdating)this.isUpdating=!1,this.clearAllSnapshots()},this.updateProjection=()=>{if(this.projectionUpdateScheduled=!1,af.value)df.nodes=df.calculatedTargetDeltas=df.calculatedProjections=0;if(this.nodes.forEach(UF),this.nodes.forEach(QF),this.nodes.forEach(YF),this.nodes.forEach(GF),af.addProjectionMetrics)af.addProjectionMetrics(df)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=Le,this.root=Be?Be.root||Be:this,this.path=Be?[...Be.path,Be]:[],this.parent=Be,this.depth=Be?Be.depth+1:0;for(let ot=0;ot<this.path.length;ot++)this.path[ot].shouldResetTransform=!0;if(this.root===this)this.nodes=new oh}addEventListener(Le,Be){if(!this.eventHandlers.has(Le))this.eventHandlers.set(Le,new bi);return this.eventHandlers.get(Le).add(Be)}notifyListeners(Le,...Be){let ot=this.eventHandlers.get(Le);ot&&ot.notify(...Be)}hasListeners(Le){return this.eventHandlers.has(Le)}mount(Le){if(this.instance)return;this.isSVG=qf(Le)&&!Z1(Le),this.instance=Le;let{layoutId:Be,layout:ot,visualElement:nt}=this.options;if(nt&&!nt.current)nt.mount(Le);if(this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(ot||Be))this.isLayoutDirty=!0;if(B){let vt,St=0,wt=()=>this.root.updateBlockedByResize=!1;w.read(()=>{St=window.innerWidth}),B(Le,()=>{let Do=window.innerWidth;if(Do===St)return;if(St=Do,this.root.updateBlockedByResize=!0,vt&&vt(),vt=Bv(wt,250),uf.hasAnimatedSinceResize)uf.hasAnimatedSinceResize=!1,this.nodes.forEach(Nv)})}if(Be)this.root.registerSharedNode(Be,this);if(this.options.animate!==!1&&nt&&(Be||ot))this.addEventListener("didUpdate",({delta:vt,hasLayoutChanged:St,hasRelativeLayoutChanged:wt,layout:Do})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let eo=this.options.transition||nt.getDefaultTransition()||o5,{onLayoutAnimationStart:Ir,onLayoutAnimationComplete:wr}=nt.getProps(),Jr=!this.targetLayout||!JI(this.targetLayout,Do),ta=!St&&wt;if(this.options.layoutRoot||this.resumeFrom||ta||St&&(Jr||!this.currentAnimation)){if(this.resumeFrom)this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0;let oa={...Hf(eo,"layout"),onPlay:Ir,onComplete:wr};if(nt.shouldReduceMotion||this.options.layoutRoot)oa.delay=0,oa.type=!1;this.startAnimation(oa),this.setAnimationOrigin(vt,ta,oa.path)}else{if(!St)Nv(this);if(this.isLead()&&this.options.onExitComplete)this.options.onExitComplete()}this.targetLayout=Do})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let Le=this.getStack();Le&&Le.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ls(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){if(this.isUpdateBlocked())return;this.isUpdating=!0,this.nodes&&this.nodes.forEach(ZF),this.animationId++}getTransformTemplate(){let{visualElement:Le}=this.options;return Le&&Le.getProps().transformTemplate}willUpdate(Le=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear)qv(this);if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let vt=0;vt<this.path.length;vt++){let St=this.path[vt];if(St.shouldResetTransform=!0,typeof St.latestValues.x==="string"||typeof St.latestValues.y==="string")St.isLayoutDirty=!0;if(St.updateScroll("snapshot"),St.options.layoutRoot)St.willUpdate(!1)}let{layoutId:Be,layout:ot}=this.options;if(Be===void 0&&!ot)return;let nt=this.getTransformTemplate();this.prevTransformTemplateValue=nt?nt(this.latestValues,""):void 0,this.updateSnapshot(),Le&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let ot=this.updateBlockedByResize;if(this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),ot)this.nodes.forEach(XF);this.nodes.forEach(Ev);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ov);return}if(this.animationCommitId=this.animationId,!this.isUpdating)this.nodes.forEach(Ov);else this.isUpdating=!1,this.nodes.forEach(KF),this.nodes.forEach($F),this.nodes.forEach(zF),this.nodes.forEach(qF);this.clearAllSnapshots();let Be=za.now();ja.delta=Ja(0,16.666666666666668,Be-ja.timestamp),ja.timestamp=Be,ja.isProcessing=!0,Al.update.process(ja),Al.preRender.process(ja),Al.render.process(ja),ja.isProcessing=!1}didUpdate(){if(!this.updateScheduled)this.updateScheduled=!0,of.read(this.scheduleUpdate)}clearAllSnapshots(){this.nodes.forEach(jF),this.sharedNodes.forEach(JF)}scheduleUpdateProjection(){if(!this.projectionUpdateScheduled)this.projectionUpdateScheduled=!0,w.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){w.postRender(()=>{if(this.isLayoutDirty)this.root.didUpdate();else this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;if(this.snapshot=this.measure(),this.snapshot&&!Ya(this.snapshot.measuredBox.x)&&!Ya(this.snapshot.measuredBox.y))this.snapshot=void 0}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let ot=0;ot<this.path.length;ot++)this.path[ot].updateScroll();let Le=this.layout;if(this.layout=this.measure(!1),this.layoutVersion++,!this.layoutCorrected)this.layoutCorrected=Va();this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:Be}=this.options;Be&&Be.notify("LayoutMeasure",this.layout.layoutBox,Le?Le.layoutBox:void 0)}updateScroll(Le="measure"){let Be=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===Le)Be=!1;if(Be&&this.instance){let ot=we(this.instance);this.scroll={animationId:this.root.animationId,phase:Le,isRoot:ot,offset:pe(this.instance),wasRoot:this.scroll?this.scroll.isRoot:ot}}}resetTransform(){if(!Te)return;let Le=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,Be=this.projectionDelta&&!ZI(this.projectionDelta),ot=this.getTransformTemplate(),nt=ot?ot(this.latestValues,""):void 0,vt=nt!==this.prevTransformTemplateValue;if(Le&&this.instance&&(Be||Js(this.latestValues)||vt))Te(this.instance,nt),this.shouldResetTransform=!1,this.scheduleRender()}measure(Le=!0){let Be=this.measurePageBox(),ot=this.removeElementScroll(Be);if(Le)ot=this.removeTransform(ot);return r5(ot),{animationId:this.root.animationId,measuredBox:Be,layoutBox:ot,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:Le}=this.options;if(!Le)return Va();let Be=Le.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(a5))){let{scroll:nt}=this.root;if(nt)Ts(Be.x,nt.offset.x),Ts(Be.y,nt.offset.y)}return Be}removeElementScroll(Le){let Be=Va();if(ks(Be,Le),this.scroll?.wasRoot)return Be;for(let ot=0;ot<this.path.length;ot++){let nt=this.path[ot],{scroll:vt,options:St}=nt;if(nt!==this.root&&vt&&St.layoutScroll){if(vt.wasRoot)ks(Be,Le);Ts(Be.x,vt.offset.x),Ts(Be.y,vt.offset.y)}}return Be}applyTransform(Le,Be=!1,ot){let nt=ot||Va();ks(nt,Le);for(let vt=0;vt<this.path.length;vt++){let St=this.path[vt];if(!Be&&St.options.layoutScroll&&St.scroll&&St!==St.root)Ts(nt.x,-St.scroll.offset.x),Ts(nt.y,-St.scroll.offset.y);if(!Js(St.latestValues))continue;Jl(nt,St.latestValues,St.layout?.layoutBox)}if(Js(this.latestValues))Jl(nt,this.latestValues,this.layout?.layoutBox);return nt}removeTransform(Le){let Be=Va();ks(Be,Le);for(let ot=0;ot<this.path.length;ot++){let nt=this.path[ot];if(!Js(nt.latestValues))continue;let vt;if(nt.instance)Td(nt.latestValues)&&nt.updateSnapshot(),vt=Va(),ks(vt,nt.measurePageBox());YI(Be,nt.latestValues,nt.snapshot?.layoutBox,vt)}if(Js(this.latestValues))YI(Be,this.latestValues);return Be}setTargetDelta(Le){this.targetDelta=Le,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(Le){this.options={...this.options,...Le,crossfade:Le.crossfade!==void 0?Le.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){if(!this.relativeParent)return;if(this.relativeParent.resolvedRelativeTargetAt!==ja.timestamp)this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(Le=!1){let Be=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=Be.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=Be.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=Be.isSharedProjectionDirty);let ot=Boolean(this.resumingFrom)||this!==Be;if(!(Le||ot&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:vt,layoutId:St}=this.options;if(!this.layout||!(vt||St))return;this.resolvedRelativeTargetAt=ja.timestamp;let wt=this.getClosestProjectingParent();if(wt&&this.linkedParentVersion!==wt.layoutVersion&&!wt.options.layoutRoot)this.removeRelativeTarget();if(!this.targetDelta&&!this.relativeTarget)if(this.options.layoutAnchor!==!1&&wt&&wt.layout)this.createRelativeTarget(wt,this.layout.layoutBox,wt.layout.layoutBox);else this.removeRelativeTarget();if(!this.relativeTarget&&!this.targetDelta)return;if(!this.target)this.target=Va(),this.targetWithTransforms=Va();if(this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)this.forceRelativeParentToResolveTarget(),QI(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0);else if(this.targetDelta){if(Boolean(this.resumingFrom))this.applyTransform(this.layout.layoutBox,!1,this.target);else ks(this.target,this.layout.layoutBox);_I(this.target,this.targetDelta)}else ks(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget)if(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&wt&&Boolean(wt.resumingFrom)===Boolean(this.resumingFrom)&&!wt.options.layoutScroll&&wt.target&&this.animationProgress!==1)this.createRelativeTarget(wt,this.target,wt.target);else this.relativeParent=this.relativeTarget=void 0;if(af.value)df.calculatedTargetDeltas++}getClosestProjectingParent(){if(!this.parent||Td(this.parent.latestValues)||VI(this.parent.latestValues))return;if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(Le,Be,ot){this.relativeParent=Le,this.linkedParentVersion=Le.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Va(),this.relativeTargetOrigin=Va(),jf(this.relativeTargetOrigin,Be,ot,this.options.layoutAnchor||void 0),ks(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let Le=this.getLead(),Be=Boolean(this.resumingFrom)||this!==Le,ot=!0;if(this.isProjectionDirty||this.parent?.isProjectionDirty)ot=!1;if(Be&&(this.isSharedProjectionDirty||this.isTransformDirty))ot=!1;if(this.resolvedRelativeTargetAt===ja.timestamp)ot=!1;if(ot)return;let{layout:nt,layoutId:vt}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),!this.isTreeAnimating)this.targetDelta=this.relativeTarget=void 0;if(!this.layout||!(nt||vt))return;ks(this.layoutCorrected,this.layout.layoutBox);let St=this.treeScale.x,wt=this.treeScale.y;if(cv(this.layoutCorrected,this.treeScale,this.path,Be),Le.layout&&!Le.target&&(this.treeScale.x!==1||this.treeScale.y!==1))Le.target=Le.layout.layoutBox,Le.targetWithTransforms=Va();let{target:Do}=Le;if(!Do){if(this.prevProjectionDelta)this.createProjectionDeltas(),this.scheduleRender();return}if(!this.projectionDelta||!this.prevProjectionDelta)this.createProjectionDeltas();else GI(this.prevProjectionDelta.x,this.projectionDelta.x),GI(this.prevProjectionDelta.y,this.projectionDelta.y);if(lf(this.projectionDelta,this.layoutCorrected,Do,this.latestValues),this.treeScale.x!==St||this.treeScale.y!==wt||!th(this.projectionDelta.x,this.prevProjectionDelta.x)||!th(this.projectionDelta.y,this.prevProjectionDelta.y))this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",Do);if(af.value)df.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(Le=!0){if(this.options.visualElement?.scheduleRender(),Le){let Be=this.getStack();Be&&Be.scheduleRender()}if(this.resumingFrom&&!this.resumingFrom.instance)this.resumingFrom=void 0}createProjectionDeltas(){this.prevProjectionDelta=Ri(),this.projectionDelta=Ri(),this.projectionDeltaWithTransform=Ri()}setAnimationOrigin(Le,Be=!1,ot){let nt=this.snapshot,vt=nt?nt.latestValues:{},St={...this.latestValues},wt=Ri();if(!this.relativeParent||!this.relativeParent.options.layoutRoot)this.relativeTarget=this.relativeTargetOrigin=void 0;this.attemptToResolveRelativeTarget=!Be;let Do=Va(),eo=nt?nt.source:void 0,Ir=this.layout?this.layout.source:void 0,wr=eo!==Ir,Jr=this.getStack(),ta=!Jr||Jr.members.length<=1,oa=Boolean(wr&&!ta&&this.options.crossfade===!0&&!this.path.some(t5));this.animationProgress=0;let Qr,sa=ot?.interpolateProjection(Le);this.mixTargetDelta=(ua)=>{let ca=ua/1000,ea=sa?.(ca);if(ea)wt.x.translate=ea.x,wt.x.scale=Ia(Le.x.scale,1,ca),wt.x.origin=Le.x.origin,wt.x.originPoint=Le.x.originPoint,wt.y.translate=ea.y,wt.y.scale=Ia(Le.y.scale,1,ca),wt.y.origin=Le.y.origin,wt.y.originPoint=Le.y.originPoint;else Vv(wt.x,Le.x,ca),Vv(wt.y,Le.y,ca);if(this.setTargetDelta(wt),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){if(jf(Do,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),e5(this.relativeTarget,this.relativeTargetOrigin,Do,ca),Qr&&Tv(this.relativeTarget,Qr))this.isProjectionDirty=!1;if(!Qr)Qr=Va();ks(Qr,this.relativeTarget)}if(wr)this.animationValues=St,Fv(St,vt,this.latestValues,ca,oa,ta);if(ea&&ea.rotate!==void 0){if(!this.animationValues)this.animationValues=St;this.animationValues.pathRotation=ea.rotate}this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=ca},this.mixTargetDelta(this.options.layoutRoot?1000:0)}startAnimation(Le){if(this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation)ls(this.pendingAnimation),this.pendingAnimation=void 0;this.pendingAnimation=w.update(()=>{if(uf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=As(0)),this.motionValue.jump(0,!1),this.currentAnimation=Lv(this.motionValue,[0,1000],{...Le,velocity:0,isSync:!0,onUpdate:(Be)=>{this.mixTargetDelta(Be),Le.onUpdate&&Le.onUpdate(Be)},onComplete:()=>{Le.onComplete&&Le.onComplete(),this.completeAnimation()}}),this.resumingFrom)this.resumingFrom.currentAnimation=this.currentAnimation;this.pendingAnimation=void 0})}completeAnimation(){if(this.resumingFrom)this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0;let Le=this.getStack();Le&&Le.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){if(this.currentAnimation)this.mixTargetDelta&&this.mixTargetDelta(_F),this.currentAnimation.stop();this.completeAnimation()}applyTransformsToTarget(){let Le=this.getLead(),{targetWithTransforms:Be,target:ot,layout:nt,latestValues:vt}=Le;if(!Be||!ot||!nt)return;if(this!==Le&&this.layout&&nt&&Uv(this.options.animationType,this.layout.layoutBox,nt.layoutBox)){ot=this.target||Va();let St=Ya(this.layout.layoutBox.x);ot.x.min=Le.target.x.min,ot.x.max=ot.x.min+St;let wt=Ya(this.layout.layoutBox.y);ot.y.min=Le.target.y.min,ot.y.max=ot.y.min+wt}ks(Be,ot),Jl(Be,vt),lf(this.projectionDeltaWithTransform,this.layoutCorrected,Be,vt)}registerSharedNode(Le,Be){if(!this.sharedNodes.has(Le))this.sharedNodes.set(Le,new rh);this.sharedNodes.get(Le).add(Be);let nt=Be.options.initialPromotionConfig;Be.promote({transition:nt?nt.transition:void 0,preserveFollowOpacity:nt&&nt.shouldPreserveFollowOpacity?nt.shouldPreserveFollowOpacity(Be):void 0})}isLead(){let Le=this.getStack();return Le?Le.lead===this:!0}getLead(){let{layoutId:Le}=this.options;return Le?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:Le}=this.options;return Le?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:Le}=this.options;if(Le)return this.root.sharedNodes.get(Le)}promote({needsReset:Le,transition:Be,preserveFollowOpacity:ot}={}){let nt=this.getStack();if(nt)nt.promote(this,ot);if(Le)this.projectionDelta=void 0,this.needsReset=!0;if(Be)this.setOptions({transition:Be})}relegate(){let Le=this.getStack();if(Le)return Le.relegate(this);else return!1}resetSkewAndRotation(){let{visualElement:Le}=this.options;if(!Le)return;let Be=!1,{latestValues:ot}=Le;if(ot.z||ot.rotate||ot.rotateX||ot.rotateY||ot.rotateZ||ot.skewX||ot.skewY)Be=!0;if(!Be)return;let nt={};if(ot.z)nh("z",Le,nt,this.animationValues);for(let vt=0;vt<ah.length;vt++)nh(`rotate${ah[vt]}`,Le,nt,this.animationValues),nh(`skew${ah[vt]}`,Le,nt,this.animationValues);Le.render();for(let vt in nt)if(Le.setStaticValue(vt,nt[vt]),this.animationValues)this.animationValues[vt]=nt[vt];Le.scheduleRender()}applyProjectionStyles(Le,Be){if(!this.instance||this.isSVG)return;if(!this.isVisible){Le.visibility="hidden";return}let ot=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,Le.visibility="",Le.opacity="",Le.pointerEvents=cf(Be?.pointerEvents)||"",Le.transform=ot?ot(this.latestValues,""):"none";return}let nt=this.getLead();if(!this.projectionDelta||!this.layout||!nt.target){if(this.options.layoutId)Le.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,Le.pointerEvents=cf(Be?.pointerEvents)||"";if(this.hasProjected&&!Js(this.latestValues))Le.transform=ot?ot({},""):"none",this.hasProjected=!1;return}Le.visibility="";let vt=nt.animationValues||nt.latestValues;this.applyTransformsToTarget();let St=kv(this.projectionDeltaWithTransform,this.treeScale,vt);if(ot)St=ot(vt,St);Le.transform=St;let{x:wt,y:Do}=this.projectionDelta;if(Le.transformOrigin=`${wt.origin*100}% ${Do.origin*100}% 0`,nt.animationValues)Le.opacity=nt===this?vt.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:vt.opacityExit;else Le.opacity=nt===this?vt.opacity!==void 0?vt.opacity:"":vt.opacityExit!==void 0?vt.opacityExit:0;for(let eo in ec){if(vt[eo]===void 0)continue;let{correct:Ir,applyTo:wr,isCSSVariable:Jr}=ec[eo],ta=St==="none"?vt[eo]:Ir(vt[eo],nt);if(wr){let oa=wr.length;for(let Qr=0;Qr<oa;Qr++)Le[wr[Qr]]=ta}else if(Jr)this.options.visualElement.renderState.vars[eo]=ta;else Le[eo]=ta}if(this.options.layoutId)Le.pointerEvents=nt===this?cf(Be?.pointerEvents)||"":"none"}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((Le)=>Le.currentAnimation?.stop()),this.root.nodes.forEach(Ev),this.root.sharedNodes.clear()}}}function zF(B){B.updateLayout()}function qF(B){let ce=B.resumeFrom?.snapshot||B.snapshot;if(B.isLead()&&B.layout&&ce&&B.hasListeners("didUpdate")){let{layoutBox:pe,measuredBox:we}=B.layout,{animationType:Te}=B.options,Fe=ce.source!==B.layout.source;if(Te==="size")xs((vt)=>{let St=Fe?ce.measuredBox[vt]:ce.layoutBox[vt],wt=Ya(St);St.min=pe[vt].min,St.max=St.min+wt});else if(Te==="x"||Te==="y"){let vt=Te==="x"?"y":"x";Dd(Fe?ce.measuredBox[vt]:ce.layoutBox[vt],pe[vt])}else if(Uv(Te,ce.layoutBox,pe))xs((vt)=>{let St=Fe?ce.measuredBox[vt]:ce.layoutBox[vt],wt=Ya(pe[vt]);if(St.max=St.min+wt,B.relativeTarget&&!B.currentAnimation)B.isProjectionDirty=!0,B.relativeTarget[vt].max=B.relativeTarget[vt].min+wt});let Le=Ri();lf(Le,pe,ce.layoutBox);let Be=Ri();if(Fe)lf(Be,B.applyTransform(we,!0),ce.measuredBox);else lf(Be,pe,ce.layoutBox);let ot=!ZI(Le),nt=!1;if(!B.resumeFrom){let vt=B.getClosestProjectingParent();if(vt&&!vt.resumeFrom){let{snapshot:St,layout:wt}=vt;if(St&&wt){let Do=B.options.layoutAnchor||void 0,eo=Va();jf(eo,ce.layoutBox,St.layoutBox,Do);let Ir=Va();if(jf(Ir,pe,wt.layoutBox,Do),!JI(eo,Ir))nt=!0;if(vt.options.layoutRoot)B.relativeTarget=Ir,B.relativeTargetOrigin=eo,B.relativeParent=vt}}}B.notifyListeners("didUpdate",{layout:pe,snapshot:ce,delta:Be,layoutDelta:Le,hasLayoutChanged:ot,hasRelativeLayoutChanged:nt})}else if(B.isLead()){let{onExitComplete:pe}=B.options;pe&&pe()}B.options.transition=void 0}function UF(B){if(af.value)df.nodes++;if(!B.parent)return;if(!B.isProjecting())B.isProjectionDirty=B.parent.isProjectionDirty;B.isSharedProjectionDirty||(B.isSharedProjectionDirty=Boolean(B.isProjectionDirty||B.parent.isProjectionDirty||B.parent.isSharedProjectionDirty)),B.isTransformDirty||(B.isTransformDirty=B.parent.isTransformDirty)}function GF(B){B.isProjectionDirty=B.isSharedProjectionDirty=B.isTransformDirty=!1}function jF(B){B.clearSnapshot()}function Ev(B){B.clearMeasurements()}function XF(B){B.isLayoutDirty=!0,B.updateLayout()}function Ov(B){B.isLayoutDirty=!1}function KF(B){if(B.isAnimationBlocked&&B.layout&&!B.isLayoutDirty)B.snapshot=B.layout,B.isLayoutDirty=!0}function $F(B){let{visualElement:ce}=B.options;if(ce&&ce.getProps().onBeforeLayoutMeasure)ce.notify("BeforeLayoutMeasure");B.resetTransform()}function Nv(B){B.finishAnimation(),B.targetDelta=B.relativeTarget=B.target=void 0,B.isProjectionDirty=!0}function QF(B){B.resolveTargetDelta()}function YF(B){B.calcProjection()}function ZF(B){B.resetSkewAndRotation()}function JF(B){B.removeLeadSnapshot()}function Vv(B,ce,pe){B.translate=Ia(ce.translate,0,pe),B.scale=Ia(ce.scale,1,pe),B.origin=ce.origin,B.originPoint=ce.originPoint}function Hv(B,ce,pe,we){B.min=Ia(ce.min,pe.min,we),B.max=Ia(ce.max,pe.max,we)}function e5(B,ce,pe,we){Hv(B.x,ce.x,pe.x,we),Hv(B.y,ce.y,pe.y,we)}function t5(B){return B.animationValues&&B.animationValues.opacityExit!==void 0}var o5={duration:0.45,ease:[0.4,0,0.1,1]},_v=(B)=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(B),Wv=_v("applewebkit/")&&!_v("chrome/")?Math.round:Wa;function zv(B){B.min=Wv(B.min),B.max=Wv(B.max)}function r5(B){zv(B.x),zv(B.y)}function Uv(B,ce,pe){return B==="position"||B==="preserve-aspect"&&!$I(eh(ce),eh(pe),0.2)}function a5(B){return B!==B.root&&B.scroll?.wasRoot}var Gv=Ld({attachResizeListener:(B,ce)=>js(B,"resize",ce),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Ad={current:void 0},nc=Ld({measureScroll:(B)=>({x:B.scrollLeft,y:B.scrollTop}),defaultParent:()=>{if(!Ad.current){let B=new Gv({});B.mount(window),B.setOptions({layoutScroll:!0}),Ad.current=B}return Ad.current},resetTransform:(B,ce)=>{B.style.transform=ce!==void 0?ce:"none"},checkIsScrollRoot:(B)=>Boolean(window.getComputedStyle(B).position==="fixed")});var jv=e(r(),1),yt=jv.createContext({transformPagePoint:(B)=>B,isStatic:!1,reducedMotion:"never"});var Pi=e(r(),1);function Po(B=!0){let ce=Pi.useContext(Ft);if(ce===null)return[!0,null];let{isPresent:pe,onExitComplete:we,register:Te}=ce,Fe=Pi.useId();Pi.useEffect(()=>{if(B)return Te(Fe)},[B]);let Le=Pi.useCallback(()=>B&&we&&we(Fe),[Fe,we,B]);return!pe&&we?[!1,Le]:[!0]}var Xv=e(r(),1),Bd=Xv.createContext({strict:!1});var Kv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$v=!1;function n5(){if($v)return;let B={};for(let ce in Kv)B[ce]={isEnabled:(pe)=>Kv[ce].some((we)=>!!pe[we])};$l(B),$v=!0}function Ed(){return n5(),BI()}function Qv(B){let ce=Ed();for(let pe in B)ce[pe]={...ce[pe],...B[pe]};$l(ce)}var s5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function sc(B){return B.startsWith("while")||B.startsWith("drag")&&B!=="draggable"||B.startsWith("layout")||B.startsWith("onTap")||B.startsWith("onPan")||B.startsWith("onLayout")||s5.has(B)}var Yv=(B)=>!sc(B);function Jo(B){if(typeof B!=="function")return;Yv=(ce)=>ce.startsWith("on")?!sc(ce):B(ce)}try{let B="@emotion/is-prop-valid";Jo(tn(B).default)}catch{}function Zv(B,ce,pe){let we={};for(let Te in B){if(Te==="values"&&typeof B.values==="object")continue;if(Ra(B[Te]))continue;if(Yv(Te)||pe===!0&&sc(Te)||!ce&&!sc(Te)||B.draggable&&Te.startsWith("onDrag"))we[Te]=B[Te]}return we}var _d=e(t(),1);var Qf=e(r(),1);var Jv=e(r(),1),Fi=Jv.createContext({});var Od=e(r(),1);function eS(B,ce){if(Mi(B)){let{initial:pe,animate:we}=B;return{initial:pe===!1||Gs(pe)?pe:void 0,animate:Gs(we)?we:void 0}}return B.inherit!==!1?ce:{}}function oS(B){let{initial:ce,animate:pe}=eS(B,Od.useContext(Fi));return Od.useMemo(()=>({initial:ce,animate:pe}),[tS(ce),tS(pe)])}function tS(B){return Array.isArray(B)?B.join(" "):B}var $f=e(r(),1);var rS=e(r(),1);var Xf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sh(B,ce,pe){for(let we in ce)if(!Ra(ce[we])&&!tc(we,pe))B[we]=ce[we]}function i5({transformTemplate:B},ce){return rS.useMemo(()=>{let pe=Xf();return nf(pe,ce,B),Object.assign({},pe.vars,pe.style)},[ce])}function f5(B,ce){let pe=B.style||{},we={};return sh(we,pe,B),Object.assign(we,i5(B,ce)),we}function aS(B,ce){let pe={},we=f5(B,ce);if(B.drag&&B.dragListener!==!1)pe.draggable=!1,we.userSelect=we.WebkitUserSelect=we.WebkitTouchCallout="none",we.touchAction=B.drag===!0?"none":`pan-${B.drag==="x"?"y":"x"}`;if(B.tabIndex===void 0&&(B.onTap||B.onTapStart||B.whileTap))pe.tabIndex=0;return pe.style=we,pe}var nS=e(r(),1);var Nd=()=>({...Xf(),attrs:{}});function sS(B,ce,pe,we){let Te=nS.useMemo(()=>{let Fe=Nd();return oc(Fe,ce,rc(we),B.transformTemplate,B.style),{...Fe.attrs,style:{...Fe.style}}},[ce]);if(B.style){let Fe={};sh(Fe,B.style,B),Te.style={...Fe,...Te.style}}return Te}var iS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Kf(B){if(typeof B!=="string"||B.includes("-"))return!1;else if(iS.indexOf(B)>-1||/[A-Z]/u.test(B))return!0;return!1}function fS(B,ce,pe,{latestValues:we},Te,Fe=!1,Le){let ot=(Le??Kf(B)?sS:aS)(ce,we,Te,B),nt=Zv(ce,typeof B==="string",Fe),vt=B!==$f.Fragment?{...nt,...ot,ref:pe}:{},{children:St}=ce,wt=$f.useMemo(()=>Ra(St)?St.get():St,[St]);return $f.createElement(B,{...vt,children:wt})}var ih=e(r(),1);function l5({scrapeMotionValuesFromProps:B,createRenderState:ce},pe,we,Te){return{latestValues:c5(pe,we,Te,B),renderState:ce()}}function c5(B,ce,pe,we){let Te={},Fe=we(B,{});for(let wt in Fe)Te[wt]=cf(Fe[wt]);let{initial:Le,animate:Be}=B,ot=Mi(B),nt=Xl(B);if(ce&&nt&&!ot&&B.inherit!==!1){if(Le===void 0)Le=ce.initial;if(Be===void 0)Be=ce.animate}let vt=pe?pe.initial===!1:!1;vt=vt||Le===!1;let St=vt?Be:Le;if(St&&typeof St!=="boolean"&&!Zs(St)){let wt=Array.isArray(St)?St:[St];for(let Do=0;Do<wt.length;Do++){let eo=ef(B,wt[Do]);if(eo){let{transitionEnd:Ir,transition:wr,...Jr}=eo;for(let ta in Jr){let oa=Jr[ta];if(Array.isArray(oa)){let Qr=vt?oa.length-1:0;oa=oa[Qr]}if(oa!==null)Te[ta]=oa}for(let ta in Ir)Te[ta]=Ir[ta]}}}return Te}var Vd=(B)=>(ce,pe)=>{let we=ih.useContext(Fi),Te=ih.useContext(Ft),Fe=()=>l5(B,ce,we,Te);return pe?Fe():Nt(Fe)};var lS=Vd({scrapeMotionValuesFromProps:sf,createRenderState:Xf});var cS=Vd({scrapeMotionValuesFromProps:ac,createRenderState:Nd});var uS=Symbol.for("motionComponentSymbol");var pf=e(r(),1);function dS(B,ce,pe){let we=pf.useRef(pe);pf.useInsertionEffect(()=>{we.current=pe});let Te=pf.useRef(null);return pf.useCallback((Fe)=>{if(Fe)B.onMount?.(Fe);if(ce)Fe?ce.mount(Fe):ce.unmount();let Le=we.current;if(typeof Le==="function")if(Fe){let Be=Le(Fe);if(typeof Be==="function")Te.current=Be}else if(Te.current)Te.current(),Te.current=null;else Le(Fe);else if(Le)Le.current=Fe},[ce])}var ns=e(r(),1);var pS=e(r(),1),Hd=pS.createContext({});function Di(B){return B&&typeof B==="object"&&Object.prototype.hasOwnProperty.call(B,"current")}function mS(B,ce,pe,we,Te,Fe){let{visualElement:Le}=ns.useContext(Fi),Be=ns.useContext(Bd),ot=ns.useContext(Ft),nt=ns.useContext(yt),{reducedMotion:vt,skipAnimations:St}=nt,wt=ns.useRef(null),Do=ns.useRef(!1);if(we=we||Be.renderer,!wt.current&&we){if(wt.current=we(B,{visualState:ce,parent:Le,props:pe,presenceContext:ot,blockInitialAnimation:ot?ot.initial===!1:!1,reducedMotionConfig:vt,skipAnimations:St,isSVG:Fe}),Do.current&&wt.current)wt.current.manuallyAnimateOnMount=!0}let eo=wt.current,Ir=ns.useContext(Hd);if(eo&&!eo.projection&&Te&&(eo.type==="html"||eo.type==="svg"))u5(wt.current,pe,Te,Ir);let wr=ns.useRef(!1);ns.useInsertionEffect(()=>{if(eo&&wr.current)eo.update(pe,ot)});let Jr=pe[Wl],ta=ns.useRef(Boolean(Jr)&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(Jr)&&window.MotionHasOptimisedAnimation?.(Jr));return Lt(()=>{if(Do.current=!0,!eo)return;if(wr.current=!0,window.MotionIsMounted=!0,eo.updateFeatures(),eo.scheduleRenderMicrotask(),ta.current&&eo.animationState)eo.animationState.animateChanges()}),ns.useEffect(()=>{if(!eo)return;if(!ta.current&&eo.animationState)eo.animationState.animateChanges();if(ta.current)queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Jr)}),ta.current=!1;eo.enteringChildren=void 0}),eo}function u5(B,ce,pe,we){let{layoutId:Te,layout:Fe,drag:Le,dragConstraints:Be,layoutScroll:ot,layoutRoot:nt,layoutAnchor:vt,layoutCrossfade:St}=ce;B.projection=new pe(B.latestValues,ce["data-framer-portal-id"]?void 0:xS(B.parent)),B.projection.setOptions({layoutId:Te,layout:Fe,alwaysMeasureLayout:Boolean(Le)||Be&&Di(Be),visualElement:B,animationType:typeof Fe==="string"?Fe:"both",initialPromotionConfig:we,crossfade:St,layoutScroll:ot,layoutRoot:nt,layoutAnchor:vt})}function xS(B){if(!B)return;return B.options.allowProjection!==!1?B.projection:xS(B.parent)}function Wd(B,{forwardMotionProps:ce=!1,type:pe}={},we,Te){we&&Qv(we);let Fe=pe?pe==="svg":Kf(B),Le=Fe?cS:lS;function Be(nt,vt){let St,wt={...Qf.useContext(yt),...nt,layoutId:d5(nt)},{isStatic:Do}=wt,eo=oS(nt),Ir=Le(nt,Do);if(!Do&&typeof window<"u"){p5(wt,we);let wr=m5(wt);St=wr.MeasureLayout,eo.visualElement=mS(B,Ir,wt,Te,wr.ProjectionNode,Fe)}return _d.jsxs(Fi.Provider,{value:eo,children:[St&&eo.visualElement?_d.jsx(St,{visualElement:eo.visualElement,...wt}):null,fS(B,nt,dS(Ir,eo.visualElement,vt),Ir,Do,ce,Fe)]})}Be.displayName=`motion.${typeof B==="string"?B:`create(${B.displayName??B.name??""})`}`;let ot=Qf.forwardRef(Be);return ot[uS]=B,ot}function d5({layoutId:B}){let ce=Qf.useContext(xt).id;return ce&&B!==void 0?ce+"-"+B:B}function p5(B,ce){let pe=Qf.useContext(Bd).strict}function m5(B){let ce=Ed(),{drag:pe,layout:we}=ce;if(!pe&&!we)return{};let Te={...pe,...we};return{MeasureLayout:pe?.isEnabled(B)||we?.isEnabled(B)?Te.MeasureLayout:void 0,ProjectionNode:Te.ProjectionNode}}function IS(B,ce){if(typeof Proxy>"u")return Wd;let pe=new Map,we=(Fe,Le)=>Wd(Fe,Le,B,ce);return new Proxy((Fe,Le)=>we(Fe,Le),{get:(Fe,Le)=>{if(Le==="create")return we;if(!pe.has(Le))pe.set(Le,Wd(Le,void 0,B,ce));return pe.get(Le)}})}var hS=e(r(),1);var gS=(B,ce)=>ce.isSVG??Kf(B)?new Fd(ce):new Md(ce,{allowProjection:B!==hS.Fragment});class fh extends sn{constructor(B){super(B);B.animationState||(B.animationState=UI(B))}updateAnimationControlsSubscription(){let{animate:B}=this.node.getProps();if(Zs(B))this.unmountControls=B.subscribe(this.node)}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:B}=this.node.getProps(),{animate:ce}=this.node.prevProps||{};if(B!==ce)this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}var x5=0;class lh extends sn{constructor(){super(...arguments);this.id=x5++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:B,onExitComplete:ce}=this.node.presenceContext,{isPresent:pe}=this.node.prevPresenceContext||{};if(!this.node.animationState||B===pe)return;if(B&&pe===!1){if(this.isExitComplete){let{initial:Te,custom:Fe}=this.node.getProps();if(typeof Te==="string"||typeof Te==="object"&&Te!==null&&!Array.isArray(Te)){let Le=ms(this.node,Te,Fe);if(Le){let{transition:Be,transitionEnd:ot,...nt}=Le;for(let vt in nt)this.node.getValue(vt)?.jump(nt[vt])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let we=this.node.animationState.setActive("exit",!B);if(ce&&!B)we.then(()=>{this.isExitComplete=!0,ce(this.id)})}mount(){let{register:B,onExitComplete:ce}=this.node.presenceContext||{};if(ce)ce(this.id);if(B)this.unmount=B(this.id)}unmount(){}}var yS={animation:{Feature:fh},exit:{Feature:lh}};function ei(B){return{point:{x:B.pageX,y:B.pageY}}}var bS=(B)=>(ce)=>rf(ce)&&B(ce,ei(ce));function Li(B,ce,pe,we){return js(B,ce,bS(pe),we)}var zd=({current:B})=>B?B.ownerDocument.defaultView:null;var vS=(B,ce)=>Math.abs(B-ce);function SS(B,ce){let pe=vS(B.x,ce.x),we=vS(B.y,ce.y);return Math.sqrt(pe**2+we**2)}var CS=new Set(["auto","scroll"]);class ic{constructor(B,ce,{transformPagePoint:pe,contextWindow:we=window,dragSnapToOrigin:Te=!1,distanceThreshold:Fe=3,element:Le}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=(Do)=>{this.handleScroll(Do.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;if(this.lastRawMoveEventInfo)this.lastMoveEventInfo=qd(this.lastRawMoveEventInfo,this.transformPagePoint);let Do=ch(this.lastMoveEventInfo,this.history),eo=this.startEvent!==null,Ir=SS(Do.offset,{x:0,y:0})>=this.distanceThreshold;if(!eo&&!Ir)return;let{point:wr}=Do,{timestamp:Jr}=ja;this.history.push({...wr,timestamp:Jr});let{onStart:ta,onMove:oa}=this.handlers;if(!eo)ta&&ta(this.lastMoveEvent,Do),this.startEvent=this.lastMoveEvent;oa&&oa(this.lastMoveEvent,Do)},this.handlePointerMove=(Do,eo)=>{this.lastMoveEvent=Do,this.lastRawMoveEventInfo=eo,this.lastMoveEventInfo=qd(eo,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(Do,eo)=>{this.end();let{onEnd:Ir,onSessionEnd:wr,resumeAnimation:Jr}=this.handlers;if(this.dragSnapToOrigin||!this.startEvent)Jr&&Jr();if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let ta=ch(Do.type==="pointercancel"?this.lastMoveEventInfo:qd(eo,this.transformPagePoint),this.history);if(this.startEvent&&Ir)Ir(Do,ta);wr&&wr(Do,ta)},!rf(B))return;this.dragSnapToOrigin=Te,this.handlers=ce,this.transformPagePoint=pe,this.distanceThreshold=Fe,this.contextWindow=we||window;let Be=ei(B),ot=qd(Be,this.transformPagePoint),{point:nt}=ot,{timestamp:vt}=ja;this.history=[{...nt,timestamp:vt}];let{onSessionStart:St}=ce;St&&St(B,ch(ot,this.history));let wt={passive:!0,capture:!0};if(this.removeListeners=Ls(Li(this.contextWindow,"pointermove",this.handlePointerMove,wt),Li(this.contextWindow,"pointerup",this.handlePointerUp,wt),Li(this.contextWindow,"pointercancel",this.handlePointerUp,wt)),Le)this.startScrollTracking(Le)}startScrollTracking(B){let ce=B.parentElement;while(ce){let pe=getComputedStyle(ce);if(CS.has(pe.overflowX)||CS.has(pe.overflowY))this.scrollPositions.set(ce,{x:ce.scrollLeft,y:ce.scrollTop});ce=ce.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(B){let ce=this.scrollPositions.get(B);if(!ce)return;let pe=B===window,we=pe?{x:window.scrollX,y:window.scrollY}:{x:B.scrollLeft,y:B.scrollTop},Te={x:we.x-ce.x,y:we.y-ce.y};if(Te.x===0&&Te.y===0)return;if(pe){if(this.lastMoveEventInfo)this.lastMoveEventInfo.point.x+=Te.x,this.lastMoveEventInfo.point.y+=Te.y}else if(this.history.length>0)this.history[0].x-=Te.x,this.history[0].y-=Te.y;this.scrollPositions.set(B,we),w.update(this.updatePoint,!0)}updateHandlers(B){this.handlers=B}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ls(this.updatePoint)}}function qd(B,ce){return ce?{point:ce(B.point)}:B}function wS(B,ce){return{x:B.x-ce.x,y:B.y-ce.y}}function ch({point:B},ce){return{point:B,delta:wS(B,TS(ce)),offset:wS(B,I5(ce)),velocity:h5(ce,0.1)}}function I5(B){return B[0]}function TS(B){return B[B.length-1]}function h5(B,ce){if(B.length<2)return{x:0,y:0};let pe=B.length-1,we=null,Te=TS(B);while(pe>=0){if(we=B[pe],Te.timestamp-we.timestamp>$a(ce))break;pe--}if(!we)return{x:0,y:0};if(we===B[0]&&B.length>2&&Te.timestamp-we.timestamp>$a(ce)*2)we=B[1];let Fe=nn(Te.timestamp-we.timestamp);if(Fe===0)return{x:0,y:0};let Le={x:(Te.x-we.x)/Fe,y:(Te.y-we.y)/Fe};if(Le.x===1/0)Le.x=0;if(Le.y===1/0)Le.y=0;return Le}function FS(B,{min:ce,max:pe},we){if(ce!==void 0&&B<ce)B=we?Ia(ce,B,we.min):Math.max(B,ce);else if(pe!==void 0&&B>pe)B=we?Ia(pe,B,we.max):Math.min(B,pe);return B}function kS(B,ce,pe){return{min:ce!==void 0?B.min+ce:void 0,max:pe!==void 0?B.max+pe-(B.max-B.min):void 0}}function DS(B,{top:ce,left:pe,bottom:we,right:Te}){return{x:kS(B.x,pe,Te),y:kS(B.y,ce,we)}}function RS(B,ce){let pe=ce.min-B.min,we=ce.max-B.max;if(ce.max-ce.min<B.max-B.min)[pe,we]=[we,pe];return{min:pe,max:we}}function LS(B,ce){return{x:RS(B.x,ce.x),y:RS(B.y,ce.y)}}function AS(B,ce){let pe=0.5,we=Ya(B),Te=Ya(ce);if(Te>we)pe=Ws(ce.min,ce.max-we,B.min);else if(we>Te)pe=Ws(B.min,B.max-Te,ce.min);return Ja(0,1,pe)}function BS(B,ce){let pe={};if(ce.min!==void 0)pe.min=ce.min-B.min;if(ce.max!==void 0)pe.max=ce.max-B.min;return pe}var Ud=0.35;function ES(B=Ud){if(B===!1)B=0;else if(B===!0)B=Ud;return{x:MS(B,"left","right"),y:MS(B,"top","bottom")}}function MS(B,ce,pe){return{min:PS(B,ce),max:PS(B,pe)}}function PS(B,ce){return typeof B==="number"?B:B[ce]||0}var g5=new WeakMap;class uh{constructor(B){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Va(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=B}start(B,{snapToCursor:ce=!1,distanceThreshold:pe}={}){let{presenceContext:we}=this.visualElement;if(we&&we.isPresent===!1)return;let Te=(vt)=>{if(ce)this.snapToCursor(ei(vt).point);this.stopAnimation()},Fe=(vt,St)=>{let{drag:wt,dragPropagation:Do,onDragStart:eo}=this.getProps();if(wt&&!Do){if(this.openDragLock)this.openDragLock();if(this.openDragLock=TI(wt),!this.openDragLock)return}if(this.latestPointerEvent=vt,this.latestPanInfo=St,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection)this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0;if(xs((wr)=>{let Jr=this.getAxisMotionValue(wr).get()||0;if(ts.test(Jr)){let{projection:ta}=this.visualElement;if(ta&&ta.layout){let oa=ta.layout.layoutBox[wr];if(oa)Jr=Ya(oa)*(parseFloat(Jr)/100)}}this.originPoint[wr]=Jr}),eo)w.update(()=>eo(vt,St),!1,!0);_f(this.visualElement,"transform");let{animationState:Ir}=this.visualElement;Ir&&Ir.setActive("whileDrag",!0)},Le=(vt,St)=>{this.latestPointerEvent=vt,this.latestPanInfo=St;let{dragPropagation:wt,dragDirectionLock:Do,onDirectionLock:eo,onDrag:Ir}=this.getProps();if(!wt&&!this.openDragLock)return;let{offset:wr}=St;if(Do&&this.currentDirection===null){if(this.currentDirection=b5(wr),this.currentDirection!==null)eo&&eo(this.currentDirection);return}if(this.updateAxis("x",St.point,wr),this.updateAxis("y",St.point,wr),this.visualElement.render(),Ir)w.update(()=>Ir(vt,St),!1,!0)},Be=(vt,St)=>{this.latestPointerEvent=vt,this.latestPanInfo=St,this.stop(vt,St),this.latestPointerEvent=null,this.latestPanInfo=null},ot=()=>{let{dragSnapToOrigin:vt}=this.getProps();if(vt||this.constraints)this.startAnimation({x:0,y:0})},{dragSnapToOrigin:nt}=this.getProps();this.panSession=new ic(B,{onSessionStart:Te,onStart:Fe,onMove:Le,onSessionEnd:Be,resumeAnimation:ot},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:nt,distanceThreshold:pe,contextWindow:zd(this.visualElement),element:this.visualElement.current})}stop(B,ce){let pe=B||this.latestPointerEvent,we=ce||this.latestPanInfo,Te=this.isDragging;if(this.cancel(),!Te||!we||!pe)return;let{velocity:Fe}=we;this.startAnimation(Fe);let{onDragEnd:Le}=this.getProps();if(Le)w.postRender(()=>Le(pe,we))}cancel(){this.isDragging=!1;let{projection:B,animationState:ce}=this.visualElement;if(B)B.isAnimationBlocked=!1;this.endPanSession();let{dragPropagation:pe}=this.getProps();if(!pe&&this.openDragLock)this.openDragLock(),this.openDragLock=null;ce&&ce.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(B,ce,pe){let{drag:we}=this.getProps();if(!pe||!Gd(B,we,this.currentDirection))return;let Te=this.getAxisMotionValue(B),Fe=this.originPoint[B]+pe[B];if(this.constraints&&this.constraints[B])Fe=FS(Fe,this.constraints[B],this.elastic[B]);Te.set(Fe)}resolveConstraints(){let{dragConstraints:B,dragElastic:ce}=this.getProps(),pe=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,we=this.constraints;if(B&&Di(B)){if(!this.constraints)this.constraints=this.resolveRefConstraints()}else if(B&&pe)this.constraints=DS(pe.layoutBox,B);else this.constraints=!1;if(this.elastic=ES(ce),we!==this.constraints&&!Di(B)&&pe&&this.constraints&&!this.hasMutatedConstraints)xs((Te)=>{if(this.constraints!==!1&&this.getAxisMotionValue(Te))this.constraints[Te]=BS(pe.layoutBox[Te],this.constraints[Te])})}resolveRefConstraints(){let{dragConstraints:B,onMeasureDragConstraints:ce}=this.getProps();if(!B||!Di(B))return!1;let pe=B.current;es(pe!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:we}=this.visualElement;if(!we||!we.layout)return!1;if(we.root)we.root.scroll=void 0,we.root.updateScroll();let Te=WI(pe,we.root,this.visualElement.getTransformPagePoint()),Fe=LS(we.layout.layoutBox,Te);if(ce){let Le=ce(EI(Fe));if(this.hasMutatedConstraints=!!Le,Le)Fe=Yl(Le)}return Fe}startAnimation(B){let{drag:ce,dragMomentum:pe,dragElastic:we,dragTransition:Te,dragSnapToOrigin:Fe,onDragTransitionEnd:Le}=this.getProps(),Be=this.constraints||{},ot=xs((nt)=>{if(!Gd(nt,ce,this.currentDirection))return;let vt=Be&&Be[nt]||{};if(Fe===!0||Fe===nt)vt={min:0,max:0};let St=we?200:1e6,wt=we?40:1e7,Do={type:"inertia",velocity:pe?B[nt]:0,bounceStiffness:St,bounceDamping:wt,timeConstant:750,restDelta:1,restSpeed:10,...Te,...vt};return this.startAxisValueAnimation(nt,Do)});return Promise.all(ot).then(Le)}startAxisValueAnimation(B,ce){let pe=this.getAxisMotionValue(B);return _f(this.visualElement,B),pe.start(Ji(B,pe,0,ce,this.visualElement,!1))}stopAnimation(){xs((B)=>this.getAxisMotionValue(B).stop())}getAxisMotionValue(B){let ce=`_drag${B.toUpperCase()}`,we=this.visualElement.getProps()[ce];return we?we:this.visualElement.getValue(B,this.visualElement.latestValues[B]??0)}snapToCursor(B){xs((ce)=>{let{drag:pe}=this.getProps();if(!Gd(ce,pe,this.currentDirection))return;let{projection:we}=this.visualElement,Te=this.getAxisMotionValue(ce);if(we&&we.layout){let{min:Fe,max:Le}=we.layout.layoutBox[ce],Be=Te.get()||0;Te.set(B[ce]-Ia(Fe,Le,0.5)+Be)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:B,dragConstraints:ce}=this.getProps(),{projection:pe}=this.visualElement;if(!Di(ce)||!pe||!this.constraints)return;this.stopAnimation();let we={x:0,y:0};xs((Fe)=>{let Le=this.getAxisMotionValue(Fe);if(Le&&this.constraints!==!1){let Be=Le.get();we[Fe]=AS({min:Be,max:Be},this.constraints[Fe])}});let{transformTemplate:Te}=this.visualElement.getProps();this.visualElement.current.style.transform=Te?Te({},""):"none",pe.root&&pe.root.updateScroll(),pe.updateLayout(),this.constraints=!1,this.resolveConstraints(),xs((Fe)=>{if(!Gd(Fe,B,null))return;let Le=this.getAxisMotionValue(Fe),{min:Be,max:ot}=this.constraints[Fe];Le.set(Ia(Be,ot,we[Fe]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;g5.set(this.visualElement,this);let B=this.visualElement.current,ce=Li(B,"pointerdown",(ot)=>{let{drag:nt,dragListener:vt=!0}=this.getProps(),St=ot.target,wt=St!==B&&PI(St);if(nt&&vt&&!wt)this.start(ot)}),pe,we=()=>{let{dragConstraints:ot}=this.getProps();if(Di(ot)&&ot.current){if(this.constraints=this.resolveRefConstraints(),!pe)pe=y5(B,ot.current,()=>this.scalePositionWithinConstraints())}},{projection:Te}=this.visualElement,Fe=Te.addEventListener("measure",we);if(Te&&!Te.layout)Te.root&&Te.root.updateScroll(),Te.updateLayout();w.read(we);let Le=js(window,"resize",()=>this.scalePositionWithinConstraints()),Be=Te.addEventListener("didUpdate",({delta:ot,hasLayoutChanged:nt})=>{if(this.isDragging&&nt)xs((vt)=>{let St=this.getAxisMotionValue(vt);if(!St)return;this.originPoint[vt]+=ot[vt].translate,St.set(St.get()+ot[vt].translate)}),this.visualElement.render()});return()=>{Le(),ce(),Fe(),Be&&Be(),pe&&pe()}}getProps(){let B=this.visualElement.getProps(),{drag:ce=!1,dragDirectionLock:pe=!1,dragPropagation:we=!1,dragConstraints:Te=!1,dragElastic:Fe=Ud,dragMomentum:Le=!0}=B;return{...B,drag:ce,dragDirectionLock:pe,dragPropagation:we,dragConstraints:Te,dragElastic:Fe,dragMomentum:Le}}}function OS(B){let ce=!0;return()=>{if(ce){ce=!1;return}B()}}function y5(B,ce,pe){let we=bd(B,OS(pe)),Te=bd(ce,OS(pe));return()=>{we(),Te()}}function Gd(B,ce,pe){return(ce===!0||ce===B)&&(pe===null||pe===B)}function b5(B,ce=10){let pe=null;if(Math.abs(B.y)>ce)pe="y";else if(Math.abs(B.x)>ce)pe="x";return pe}class dh extends sn{constructor(B){super(B);this.removeGroupControls=Wa,this.removeListeners=Wa,this.controls=new uh(B)}mount(){let{dragControls:B}=this.node.getProps();if(B)this.removeGroupControls=B.subscribe(this.controls);this.removeListeners=this.controls.addListeners()||Wa}update(){let{dragControls:B}=this.node.getProps(),{dragControls:ce}=this.node.prevProps||{};if(B!==ce){if(this.removeGroupControls(),B)this.removeGroupControls=B.subscribe(this.controls)}}unmount(){if(this.removeGroupControls(),this.removeListeners(),!this.controls.isDragging)this.controls.endPanSession()}}var ph=(B)=>(ce,pe)=>{if(B)w.update(()=>B(ce,pe),!1,!0)};class mh extends sn{constructor(){super(...arguments);this.removePointerDownListener=Wa}onPointerDown(B){this.session=new ic(B,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zd(this.node)})}createPanHandlers(){let{onPanSessionStart:B,onPanStart:ce,onPan:pe,onPanEnd:we}=this.node.getProps();return{onSessionStart:ph(B),onStart:ph(ce),onMove:ph(pe),onEnd:(Te,Fe)=>{if(delete this.session,we)w.postRender(()=>we(Te,Fe))}}}mount(){this.removePointerDownListener=Li(this.node.current,"pointerdown",(B)=>this.onPointerDown(B))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var NS=e(t(),1);var fc=e(r(),1);var xh=!1;class VS extends fc.Component{componentDidMount(){let{visualElement:B,layoutGroup:ce,switchLayoutGroup:pe,layoutId:we}=this.props,{projection:Te}=B;if(Te){if(ce.group)ce.group.add(Te);if(pe&&pe.register&&we)pe.register(Te);if(xh)Te.root.didUpdate();Te.addEventListener("animationComplete",()=>{this.safeToRemove()}),Te.setOptions({...Te.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})}uf.hasEverUpdated=!0}getSnapshotBeforeUpdate(B){let{layoutDependency:ce,visualElement:pe,drag:we,isPresent:Te}=this.props,{projection:Fe}=pe;if(!Fe)return null;if(Fe.isPresent=Te,B.layoutDependency!==ce)Fe.setOptions({...Fe.options,layoutDependency:ce});if(xh=!0,we||B.layoutDependency!==ce||ce===void 0||B.isPresent!==Te)Fe.willUpdate();else this.safeToRemove();if(B.isPresent!==Te){if(Te)Fe.promote();else if(!Fe.relegate())w.postRender(()=>{let Le=Fe.getStack();if(!Le||!Le.members.length)this.safeToRemove()})}return null}componentDidUpdate(){let{visualElement:B,layoutAnchor:ce}=this.props,{projection:pe}=B;if(pe)pe.options.layoutAnchor=ce,pe.root.didUpdate(),of.postRender(()=>{if(!pe.currentAnimation&&pe.isLead())this.safeToRemove()})}componentWillUnmount(){let{visualElement:B,layoutGroup:ce,switchLayoutGroup:pe}=this.props,{projection:we}=B;if(xh=!0,we){if(we.scheduleCheckAfterUnmount(),ce&&ce.group)ce.group.remove(we);if(pe&&pe.deregister)pe.deregister(we)}}safeToRemove(){let{safeToRemove:B}=this.props;B&&B()}render(){return null}}function jd(B){let[ce,pe]=Po(),we=fc.useContext(xt);return NS.jsx(VS,{...B,layoutGroup:we,switchLayoutGroup:fc.useContext(Hd),isPresent:ce,safeToRemove:pe})}var HS={pan:{Feature:mh},drag:{Feature:dh,ProjectionNode:nc,MeasureLayout:jd}};function _S(B,ce,pe){let{props:we}=B;if(B.animationState&&we.whileHover)B.animationState.setActive("whileHover",pe==="Start");let Te="onHover"+pe,Fe=we[Te];if(Fe)w.postRender(()=>Fe(ce,ei(ce)))}class Ih extends sn{mount(){let{current:B}=this.node;if(!B)return;this.unmount=kI(B,(ce,pe)=>(_S(this.node,pe,"Start"),(we)=>_S(this.node,we,"End")))}unmount(){}}class hh extends sn{constructor(){super(...arguments);this.isActive=!1}onFocus(){let B=!1;try{B=this.node.current.matches(":focus-visible")}catch(ce){B=!0}if(!B||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",!0),this.isActive=!0}onBlur(){if(!this.isActive||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",!1),this.isActive=!1}mount(){this.unmount=Ls(js(this.node.current,"focus",()=>this.onFocus()),js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function WS(B,ce,pe){let{props:we}=B;if(B.current instanceof HTMLButtonElement&&B.current.disabled)return;if(B.animationState&&we.whileTap)B.animationState.setActive("whileTap",pe==="Start");let Te="onTap"+(pe==="End"?"":pe),Fe=we[Te];if(Fe)w.postRender(()=>Fe(ce,ei(ce)))}class gh extends sn{mount(){let{current:B}=this.node;if(!B)return;let{globalTapTarget:ce,propagate:pe}=this.node.props;this.unmount=DI(B,(we,Te)=>(WS(this.node,Te,"Start"),(Fe,{success:Le})=>WS(this.node,Fe,Le?"End":"Cancel")),{useGlobalTarget:ce,stopPropagation:pe?.tap===!1})}unmount(){}}var bh=new WeakMap,yh=new WeakMap,v5=(B)=>{let ce=bh.get(B.target);ce&&ce(B)},S5=(B)=>{B.forEach(v5)};function C5({root:B,...ce}){let pe=B||document;if(!yh.has(pe))yh.set(pe,{});let we=yh.get(pe),Te=JSON.stringify(ce);if(!we[Te])we[Te]=new IntersectionObserver(S5,{root:B,...ce});return we[Te]}function zS(B,ce,pe){let we=C5(ce);return bh.set(B,pe),we.observe(B),()=>{bh.delete(B),we.unobserve(B)}}var w5={some:0,all:1};class vh extends sn{constructor(){super(...arguments);this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:B={}}=this.node.getProps(),{root:ce,margin:pe,amount:we="some",once:Te}=B,Fe={root:ce?ce.current:void 0,rootMargin:pe,threshold:typeof we==="number"?we:w5[we]},Le=(Be)=>{let{isIntersecting:ot}=Be;if(this.isInView===ot)return;if(this.isInView=ot,Te&&!ot&&this.hasEnteredView)return;else if(ot)this.hasEnteredView=!0;if(this.node.animationState)this.node.animationState.setActive("whileInView",ot);let{onViewportEnter:nt,onViewportLeave:vt}=this.node.getProps(),St=ot?nt:vt;St&&St(Be)};this.stopObserver=zS(this.node.current,Fe,Le)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:B,prevProps:ce}=this.node;if(["amount","margin","root"].some(T5(B,ce)))this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function T5({viewport:B={}},{viewport:ce={}}={}){return(pe)=>B[pe]!==ce[pe]}var qS={inView:{Feature:vh},tap:{Feature:gh},focus:{Feature:hh},hover:{Feature:Ih}};var US={layout:{ProjectionNode:nc,MeasureLayout:jd}};var GS={...yS,...qS,...HS,...US};var Sh=IS(GS,gS);var N=Sh;var Ha=e(t(),1);function Un(B){return Ha.jsx(Zr,{title:"Could not check your agent",...B,children:"Could not check this workspace’s agent. Try again."})}function Wn({workspaceId:B}){let[,ce]=Z(),pe=To();return Ha.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[Ha.jsx(dm,{size:56,stroke:0.5,className:"text-muted-foreground","aria-hidden":!0}),Ha.jsx("h1",{className:"font-medium",children:"The workspace folder is missing"}),Ha.jsx(s,{variant:"secondary",disabled:pe.isPending,onClick:()=>pe.mutate(B,{onSuccess:()=>ce(ne())}),children:pe.isPending?"Deleting workspace…":"Delete workspace"}),pe.error&&Ha.jsx("p",{role:"alert",className:"text-sm text-destructive",children:pe.error.message})]})}function $n({harness:B,availability:ce,...pe}){let we=ce.status==="login-required";return Ha.jsxs(Zr,{title:we?"Connect your agent":"Your agent is unavailable",harness:B,...pe,children:[ce.reason,we&&Ha.jsxs(Ha.Fragment,{children:[Ha.jsx("br",{}),Ha.jsx("br",{}),"Complete sign-in in your agent’s terminal, then try again."]})]})}function vr(){return Ha.jsx("div",{className:"flex flex-1 items-center justify-center",children:Ha.jsx(Y,{className:"size-6 text-muted-foreground",stroke:1.5})})}function Eo({error:B,retrying:ce,onRetry:pe}){let[,we]=Z(),Te=B instanceof Ao&&B.status===404;return Ha.jsx(Zr,{title:Te?"Workspace not found or you don’t have access":"Couldn’t open workspace",retrying:!Te&&ce,onRetry:Te?()=>we(ne()):pe,actionLabel:Te?"Back to home":"Try again",children:Te?void 0:B.message})}function Zr({title:B,harness:ce,children:pe,retrying:we,onRetry:Te,actionLabel:Fe="Try again"}){return Ha.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:Ha.jsxs("div",{className:"flex w-full max-w-md flex-col gap-6",children:[ce&&Ha.jsx("img",{src:ke[ce],alt:"",className:"size-10 self-center"}),Ha.jsx("h1",{className:"text-center text-xl font-medium",children:B}),Ha.jsxs("div",{role:"alert",className:"flex flex-col items-center gap-4",children:[pe&&Ha.jsx("p",{className:"text-sm wrap-anywhere whitespace-pre-wrap text-muted-foreground",children:pe}),Ha.jsx(s,{variant:"secondary",disabled:we,onClick:Te,children:Fe})]})]})})}var jS=e(t(),1);function Ro({mode:B,children:ce}){return jS.jsx("div",{"data-slot":"workspace-pane",className:n("@container/workspace relative flex h-full min-h-0 min-w-0 flex-1 flex-col-reverse overflow-hidden bg-background shadow-md transition-[border-radius,background-color] duration-100 ease-out motion-reduce:transition-none",B==="split"&&"rounded-xl"),children:ce})}var Xd=e(t(),1);function bt({setupRequired:B=!1,children:ce}){return Xd.jsx("div",{className:"relative flex h-full min-h-0 flex-1 flex-col font-sans text-foreground",children:B?Xd.jsx(Ro,{mode:"fullscreen",children:Xd.jsx(gr,{"aria-label":"Workspace setup",children:ce})}):ce})}var Rs=e(r(),1);var Qo={id:"_moi_views",config:{colSpan:4,rowSpan:1},defaultPosition:{x:0,y:0}},Ch=[Qo],R5=new Set(Ch.map((B)=>B.id));function rt(B){return R5.has(B)}function Vn(B){return[...Ch,...B]}function XS(){return Ch.map((B)=>({i:B.id,...B.defaultPosition}))}function en(B){if(!Array.isArray(B))return[];return[...new Set(B.filter((ce)=>ht(ce)&&ce!=="overview"))]}function KS(){return{version:2,widgetGrid:XS()}}var Yf=e(t(),1),wh=Rs.createContext(null);function b(){let B=Rs.useContext(wh);if(!B)throw Error("useWorkspaceLayoutCtx must be used within <WorkspaceLayoutProvider>");return B}function jn(){return Rs.useContext(wh)?.layout.theme}function $S(B){let{cwd:ce,name:pe,harness:we,agentId:Te,apiBase:Fe,isRemote:Le,...Be}=B;return Be}function Gn({id:B,children:ce}){let pe=d(),we=Ob(B),Te=Nb(B),Fe=me(B),Le=z(Te.mutate),Be=Rs.useRef(null),ot=Rs.useRef(null),nt=Rs.useCallback((St)=>{let wt=l.layout(B),Do=pe.getQueryData(wt);if(!Do)return;pe.cancelQueries({queryKey:wt});let eo={...Do,...St};if(pe.setQueryData(wt,eo),ot.current=$S(eo),Be.current)clearTimeout(Be.current);Be.current=setTimeout(()=>{Be.current=null;let Ir=ot.current;if(ot.current=null,Ir)Le.current(Ir)},600)},[B,pe,Le]),vt=Rs.useMemo(()=>({layout:we.data?$S(we.data):KS(),setLayout:nt,name:we.data?.name??null,cwd:we.data?.cwd??null,harness:we.data?we.data.harness??"claude-code":null,workspaceId:B,apiBase:we.data?.apiBase??"",isRemote:we.data?.isRemote??!1,isLoading:we.isLoading}),[we.data,we.isLoading,nt,B]);return Yf.jsx(wh,{value:vt,children:we.isPending||Fe.isPending?Yf.jsx(bt,{children:Yf.jsx(vr,{})}):we.isError&&!we.data||Fe.isError&&!Fe.data?Yf.jsx(bt,{setupRequired:!0,children:Yf.jsx(Eo,{error:we.error??Fe.error,retrying:we.isFetching||Fe.isFetching,onRetry:()=>{we.refetch(),Fe.refetch()}})}):ce})}
|
|
5
|
-
export{t,d,Oo,k,it,R,oo,nr,no,Ht,oe,No,Z,ln,Lo,ir,st,cn,Ct,D,fe,I,kt,L,i,f,Me,We,a,ge,q,J,v,$e,y,E,Ve,Ut,un,Cr,io,dn,so,Pe,ue,kr,Ee,Tt,ao,se,g,x,de,De,Q,F,at,Pt,Tr,O,u,T,Pr,Er,Rr,Fo,lo,lt,Wt,ae,Bo,zo,Kn,qn,Et,Ar,_r,je,Mr,Rt,co,pn,$t,Ho,Dr,Ge,Or,At,Vt,sr,Re,ct,jt,uo,Uo,ar,lr,po,fn,mn,ut,Oe,fo,be,re,mo,ee,c,Ke,Ne,qe,j,hn,ho,gn,cr,xn,_t,Se,Wo,Mt,Xe,W,dt,Ye,X,ur,$o,Vo,yn,bn,Xn,Gt,Nr,jo,Yn,Zn,Jn,Lr,vn,wn,Sn,Fr,p,go,pt,Go,Kt,dr,Ko,n,Ze,m,Ae,s,o,Br,pr,zr,qt,Hr,G,Ur,Wr,fr,ft,$r,K,P,In,Xt,Vr,Cn,mr,xo,Ie,yo,A,kn,le,qo,Tn,_,Pn,z,Xo,te,jr,En,Yo,me,xe,mt,bo,Je,Rn,An,_n,Gr,Yt,ht,Zt,V,hr,Qe,gr,Y,vo,wo,Kr,Mn,xr,Dt,qr,Xr,Zo,So,et,Ce,Io,ke,tt,yr,Yr,Dn,On,gt,ve,Ot,_e,Nn,Ln,Fn,br,Co,Bn,ko,zn,Hn,To,xt,Nt,Lt,Ft,w,Jt,Qt,yt,Po,Jo,N,Un,Wn,$n,vr,Eo,Zr,Ro,bt,Qo,rt,Vn,en,b,jn,Gn};
|