@vellumai/web 0.10.0 → 0.10.1-dev.202606240317.ea25efe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AnimatePresence-iz8Br0FI.js +9 -0
- package/dist/assets/{BundleConfirmPage-CkXUMWg6.js → BundleConfirmPage-BTA9TT5I.js} +1 -1
- package/dist/assets/{Combination-DmnhUZru.js → Combination-CDqVzelh.js} +1 -1
- package/dist/assets/{about-page-Bue2vNnY.js → about-page-hM0QvIhh.js} +1 -1
- package/dist/assets/account-page-Cx2lJXxC.js +1 -0
- package/dist/assets/{account-shell-oWV1wIYb.js → account-shell-f2__fVz3.js} +1 -1
- package/dist/assets/add-credits-modal-BUsfAHJ_.js +1 -0
- package/dist/assets/advanced-page-CLH8n_ah.js +1 -0
- package/dist/assets/ai-page-Cn_cV6V8.js +1 -0
- package/dist/assets/api-Czc-KUSC.js +1 -0
- package/dist/assets/{api-key-screen-CUKjlF2C.js → api-key-screen-BrNqyzXk.js} +1 -1
- package/dist/assets/{archive-BCoY55bM.js → archive-BFILUl9x.js} +1 -1
- package/dist/assets/{archive-page-YsBlmevd.js → archive-page-CXYY6Q_U.js} +1 -1
- package/dist/assets/arrow-left-CP-EhDNF.js +1 -0
- package/dist/assets/arrow-up-nBfZxfhi.js +1 -0
- package/dist/assets/assistant-api-BKBoHcTV.js +1 -0
- package/dist/assets/assistant-feature-flag-store-I7i0GajG.js +6 -0
- package/dist/assets/assistant-identity-store-ADxStqSC.js +1 -0
- package/dist/assets/assistant-status-panel-Br-1lrig.js +1 -0
- package/dist/assets/auth-store-Kzt5s89H.js +7 -0
- package/dist/assets/ban-BpBuRCKI.js +1 -0
- package/dist/assets/{bell-CSP2EUlP.js → bell-DB1SrBre.js} +1 -1
- package/dist/assets/billing-page-Bo-xyUQs.js +3 -0
- package/dist/assets/{bookmark-Cj14Qikr.js → bookmark-C3S-p0MQ.js} +1 -1
- package/dist/assets/{bookmarks-page-DRcIBBva.js → bookmarks-page-CDwnxXMW.js} +1 -1
- package/dist/assets/brain-Bs6LnfHO.js +1 -0
- package/dist/assets/browser-DKUVpLgv.js +2 -0
- package/dist/assets/{bug-BIPj7Nbx.js → bug-DDcuQ3au.js} +1 -1
- package/dist/assets/build-state-S7lbvs8e.js +1 -0
- package/dist/assets/{cable-R_YO6j5x.js → cable-DeiZJhx5.js} +1 -1
- package/dist/assets/{calendar-Dm2Jn-zV.js → calendar-DS3F8MRx.js} +1 -1
- package/dist/assets/{capture-error-B0wqOYKY.js → capture-error-BaKOqBjF.js} +1 -1
- package/dist/assets/check-BCNZ91b3.js +1 -0
- package/dist/assets/{checkbox-Dc9gjmAy.js → checkbox-ChtGq7OI.js} +1 -1
- package/dist/assets/chevron-left-BSPjMq8L.js +1 -0
- package/dist/assets/chevron-right-CWG30kI8.js +1 -0
- package/dist/assets/{chevron-up-Ck7_ou16.js → chevron-up-vUqVm-q3.js} +1 -1
- package/dist/assets/{circle-alert-C5TvMkJV.js → circle-alert-CIThYDGJ.js} +1 -1
- package/dist/assets/circle-check-Cfl8Yl_j.js +1 -0
- package/dist/assets/{client-feature-flag-store-ivPVcKfH.js → client-feature-flag-store-CdYzowYI.js} +1 -1
- package/dist/assets/{cloud-off-DJomNBuZ.js → cloud-off-fMC5iwVY.js} +1 -1
- package/dist/assets/code-BhoMjTYO.js +1 -0
- package/dist/assets/{command-palette-BXEAR93M.js → command-palette-C0fZKt7u.js} +1 -1
- package/dist/assets/command-palette-window-page-CoRyh3xQ.js +1 -0
- package/dist/assets/community-page-CA6aOqsR.js +1 -0
- package/dist/assets/confirm-dialog-SpCsmAdG.js +1 -0
- package/dist/assets/{connect-page-Bvs0EgCJ.js → connect-page-DU6NxOLI.js} +1 -1
- package/dist/assets/consent-controls-DB7KsbmQ.js +1 -0
- package/dist/assets/{contacts-gateway-Cf32jSYa.js → contacts-gateway-BZXHatqg.js} +1 -1
- package/dist/assets/contacts-page-route-B3ET8MOp.js +1 -0
- package/dist/assets/{conversation-queries-Dt4RoWIo.js → conversation-queries-C_dW4Y1z.js} +1 -1
- package/dist/assets/{conversation-store-BSxi0r0X.js → conversation-store-nVJwhymp.js} +1 -1
- package/dist/assets/{cpu-CT8bAyOk.js → cpu-D1r7PLan.js} +1 -1
- package/dist/assets/{credit-card-XOxZwKz-.js → credit-card-BwN95biV.js} +1 -1
- package/dist/assets/{danger-zone-redirect-page-5H-AuIvi.js → danger-zone-redirect-page-CH1zY0d7.js} +1 -1
- package/dist/assets/debug-page-DqRKzdW7.js +2 -0
- package/dist/assets/{deploy-dialogs-BtpYB7B8.js → deploy-dialogs-UMP37sKQ.js} +1 -1
- package/dist/assets/{detail-card-CLwQ17AA.js → detail-card-BnPZuM3e.js} +1 -1
- package/dist/assets/developer-page-DRMQxjGi.js +1 -0
- package/dist/assets/devices-page-DOkGnwME.js +1 -0
- package/dist/assets/diagnostics-D5xXiLo-.js +1 -0
- package/dist/assets/dictation-overlay-page-DQFFYUvf.js +1 -0
- package/dist/assets/{dist-DhhV5jI1.js → dist-cZPU9ZZL.js} +1 -1
- package/dist/assets/document-viewer-page-BTw2xmWO.js +1 -0
- package/dist/assets/{domain-field-yW8B9mxj.js → domain-field-CNW1t3OC.js} +1 -1
- package/dist/assets/earn-credits-modal-B6MtM4Yc.js +1 -0
- package/dist/assets/emails-page-BSGFwndC.js +1 -0
- package/dist/assets/{environment-store-Ck7wXCrL.js → environment-store-C_XwUYTL.js} +1 -1
- package/dist/assets/esm-5V2_V7Ao.js +1 -0
- package/dist/assets/{esm-DkmmS1Rg.js → esm-CJjEymow.js} +2 -2
- package/dist/assets/esm-CYrzAUNH.js +2 -0
- package/dist/assets/esm-ClC_4zcn.js +2 -0
- package/dist/assets/esm-CxEFp02j.js +2 -0
- package/dist/assets/esm-_pMRHia8.js +2 -0
- package/dist/assets/{external-link-B3skagqt.js → external-link-RJkZLlff.js} +1 -1
- package/dist/assets/{feature-flag-catalog-DEr38CMM.js → feature-flag-catalog-DBTdmHXz.js} +1 -1
- package/dist/assets/file-editor-BqUEZUnO.js +1 -0
- package/dist/assets/file-text-ClqzuFsu.js +1 -0
- package/dist/assets/general-page-B0YxmWex.js +1 -0
- package/dist/assets/{globe-BV8ouh66.js → globe-atPvTfX9.js} +1 -1
- package/dist/assets/google-logo-C0Ye7zqf.js +1 -0
- package/dist/assets/{hard-drive-C6sJQKXL.js → hard-drive-CxwXPeeK.js} +1 -1
- package/dist/assets/hatching-screen-Bk5JJ8rb.js +1 -0
- package/dist/assets/home-page-route-CHdXG1Bd.js +1 -0
- package/dist/assets/{hosting-screen-dPfTLCnv.js → hosting-screen-CQ5LsLb-.js} +1 -1
- package/dist/assets/identity-page-route-DAwe5dsh.js +1 -0
- package/dist/assets/index-1kam3Nv0.js +133 -0
- package/dist/assets/index-CK8rkjpV.css +2 -0
- package/dist/assets/{octagon-x-DV9qasaC.js → info-BGLlcyt6.js} +1 -1
- package/dist/assets/{info-BJtskZc-.js → info-DKfsKkAk.js} +1 -1
- package/dist/assets/{inspect-page-2cNMjT4e.js → inspect-page-B_pMSzmg.js} +5 -5
- package/dist/assets/install-CsydOTUH.js +1 -0
- package/dist/assets/integrations-page-Cbv8GW70.js +1 -0
- package/dist/assets/{intelligence-layout-CjDxFKQO.js → intelligence-layout-CV48tXos.js} +1 -1
- package/dist/assets/{keyboard-shortcuts-page-DIhG1FK_.js → keyboard-shortcuts-page-CklGHii8.js} +1 -1
- package/dist/assets/lib-Ck-V6pPR.js +14 -0
- package/dist/assets/library-detail-page-DItbJu-P.js +1 -0
- package/dist/assets/library-page-OWWbhrOx.js +1 -0
- package/dist/assets/{link-2-BedDg97D.js → link-2-DAUpNv36.js} +1 -1
- package/dist/assets/loader-circle-BU6b8vrp.js +1 -0
- package/dist/assets/local-mode-BD2zqd9I.js +39 -0
- package/dist/assets/{log-in-DOSWwTiS.js → log-in-F2ivXAeS.js} +1 -1
- package/dist/assets/{login-flow-BMwbZfKA.js → login-flow-DKWdYx_7.js} +1 -1
- package/dist/assets/login-page-CfYM4pWw.js +1 -0
- package/dist/assets/{logout-page-DI7i4Hok.js → logout-page-B7QWzXdA.js} +1 -1
- package/dist/assets/{logs-layout-BEMQQY7S.js → logs-layout-DxX2hgBr.js} +1 -1
- package/dist/assets/mcp-page-DpQdvCb1.js +1 -0
- package/dist/assets/{memory-router-playground-page-JdkTEwPy.js → memory-router-playground-page-Bw-oeVwo.js} +1 -1
- package/dist/assets/{menu-BvyV91Np.js → menu-CdoNX1qx.js} +1 -1
- package/dist/assets/messages-D7FVEZ7g.js +13 -0
- package/dist/assets/{metric-card-B3EBP9m4.js → metric-card-J-OmNSo1.js} +1 -1
- package/dist/assets/{minimize-2-CwIqAxPY.js → minimize-2-Ps3BPNpX.js} +1 -1
- package/dist/assets/{mobile-sidebar-drawer-DuJUmy0b.js → mobile-sidebar-drawer-D5XpaFeM.js} +1 -1
- package/dist/assets/{modal-DX6UN7b0.js → modal-CHuPOsJJ.js} +1 -1
- package/dist/assets/monitor-AzR2uZb7.js +1 -0
- package/dist/assets/{moon-C0wLM1iN.js → moon-shagZJqX.js} +1 -1
- package/dist/assets/mutation-error-CYNKNnwE.js +1 -0
- package/dist/assets/{native-file-CbhjzPxL.js → native-file-CI0ZuErz.js} +2 -2
- package/dist/assets/notice-CynJKEow.js +1 -0
- package/dist/assets/notifications-page-C7v4_Bxr.js +1 -0
- package/dist/assets/{oauth-complete-page-R_1ODIIi.js → oauth-complete-page-CEdWsQvk.js} +1 -1
- package/dist/assets/{oauth-popup-complete-page-YECuZtPs.js → oauth-popup-complete-page-Bc-7vFDX.js} +1 -1
- package/dist/assets/{page-shell-C0oiLAoY.js → page-shell-R_mNcK6L.js} +1 -1
- package/dist/assets/{pairing-page-BtaFWq0w.js → pairing-page-CVhK9MpO.js} +1 -1
- package/dist/assets/{panel-item-BFOUNXY1.js → panel-item-BLQE_l-g.js} +1 -1
- package/dist/assets/{password-reset-page-Cf5SQHDV.js → password-reset-page-hjygW6Hh.js} +1 -1
- package/dist/assets/{pencil-lwgMCqyH.js → pencil-CKTX3v1w.js} +1 -1
- package/dist/assets/platform-loopback-page-DsuxvvII.js +1 -0
- package/dist/assets/{plugin-detail-page-D6Gve0qx.js → plugin-detail-page-Yu4RIWNW.js} +1 -1
- package/dist/assets/{plugins-page-DA-JrehF.js → plugins-page-BmOy4NND.js} +1 -1
- package/dist/assets/{popover-PnyzuDx3.js → popover-BsF65jZY.js} +1 -1
- package/dist/assets/prechat-CHU0E2N5.js +1 -0
- package/dist/assets/prechat-route-CAyzg9nr.js +1 -0
- package/dist/assets/{prefs-Mrqh1A7Y.js → prefs-CYFTgRU_.js} +1 -1
- package/dist/assets/privacy-page-Kl2fNB44.js +1 -0
- package/dist/assets/{privacy-screen-ccjT4S0F.js → privacy-screen-BcZWvKU-.js} +1 -1
- package/dist/assets/{provider-callback-page-BS-DqV_M.js → provider-callback-page-KpACbH1Q.js} +1 -1
- package/dist/assets/{provider-key-DH6JmPXt.js → provider-key-DLsM5EJF.js} +1 -1
- package/dist/assets/{provider-signup-page-Beuafn_s.js → provider-signup-page-DNYVhuNa.js} +1 -1
- package/dist/assets/proxy-BMd4CkvC.js +1 -0
- package/dist/assets/{quick-input-page-0PEcj6WT.js → quick-input-page-DtwHX4te.js} +1 -1
- package/dist/assets/react-query.gen-B0Od5MEZ.js +1 -0
- package/dist/assets/{react-query.gen-DdB0sQgj.js → react-query.gen-CoJLbfpu.js} +1 -1
- package/dist/assets/refresh-cw-d--DqlE0.js +1 -0
- package/dist/assets/research-mock-page-DJjJ7-Iu.js +1 -0
- package/dist/assets/research-onboarding-route-qFNy9Ol1.js +42 -0
- package/dist/assets/{resize-errors-tz_Tui32.js → resize-errors-l1gkz4Wc.js} +1 -1
- package/dist/assets/resolved-assistants-store-DLNFVaZL.js +1 -0
- package/dist/assets/return-to-BIv6kmmy.js +1 -0
- package/dist/assets/review-terms-screen-BmHsVmA3.js +1 -0
- package/dist/assets/risk-badge-CJ2eBzL2.js +1 -0
- package/dist/assets/{routes-BKwsRssF.js → routes-DlW6mpdp.js} +1 -1
- package/dist/assets/{save-WZktF4Xe.js → save-BOCvrkQo.js} +1 -1
- package/dist/assets/{schedules-DqkGi2Lm.js → schedules-BCcBhzcW.js} +1 -1
- package/dist/assets/{sdk.gen-Bew9wO5C.js → sdk.gen-BTIMXC7B.js} +1 -1
- package/dist/assets/{sdk.gen-DRL3oRwz.js → sdk.gen-DSjI3deY.js} +1 -1
- package/dist/assets/select-assistant-screen-CdXc-bqY.js +1 -0
- package/dist/assets/{semver-DmouQEQK.js → semver-DpUibCte.js} +1 -1
- package/dist/assets/{setting-row-IILQu7AE.js → setting-row-DuHadCFy.js} +1 -1
- package/dist/assets/settings-layout-DxJgudRT.js +1 -0
- package/dist/assets/share-feedback-modal-B2R38xkX.js +1 -0
- package/dist/assets/sidebar-tree-DBFXJCiL.js +1 -0
- package/dist/assets/signup-page-DEpKwLiS.js +1 -0
- package/dist/assets/{signup-shell-D6LXKfGy.js → signup-shell-BaFbh88c.js} +1 -1
- package/dist/assets/skill-row-DDoJmniT.js +1 -0
- package/dist/assets/skills-page-tnuQgPfw.js +1 -0
- package/dist/assets/{sound-manager-CC2af7bI.js → sound-manager-CgtJRpIg.js} +1 -1
- package/dist/assets/{sounds-page-DE47aZrz.js → sounds-page-DTExjtqI.js} +1 -1
- package/dist/assets/{sparkles-B9QIWdq0.js → sparkles-DzoKZLdI.js} +1 -1
- package/dist/assets/{src-D6Nu2Lol.js → src-BJj2O5XB.js} +3 -3
- package/dist/assets/{step-indicator-dots-BOKv1I4C.js → step-indicator-dots-BOnJGjpI.js} +1 -1
- package/dist/assets/subagent-detail-panel-CLKXSzLl.js +4 -0
- package/dist/assets/subagent-store-B6q-RyW8.js +3 -0
- package/dist/assets/system-events-page-kGmOVPUf.js +1 -0
- package/dist/assets/{system-events-redirect-page-CmooXfba.js → system-events-redirect-page-C5RU4M1q.js} +1 -1
- package/dist/assets/{tag-BadGF3FB.js → tag-CE_o2aao.js} +1 -1
- package/dist/assets/{tiptap-document-editor-DjIQ9tCC.js → tiptap-document-editor-BCX5nvDd.js} +1 -1
- package/dist/assets/toast-CxaZ5f1d.js +1 -0
- package/dist/assets/tool-call-status-DNS6Y_vi.js +1 -0
- package/dist/assets/tool-detail-panel-BV__QHqe.js +2 -0
- package/dist/assets/trace-page-gDvTnfXj.js +1 -0
- package/dist/assets/{triangle-alert-M_S_Pe8C.js → triangle-alert-B3q5kQ4P.js} +1 -1
- package/dist/assets/triangle-alert-DnZC45c-.js +1 -0
- package/dist/assets/{upgrade-cancel-page-D2-xTACq.js → upgrade-cancel-page-BTvZBWe3.js} +1 -1
- package/dist/assets/upgrade-success-page-qyE3QAAg.js +1 -0
- package/dist/assets/usage-page-BCPooT5t.js +1 -0
- package/dist/assets/{usage-window-BO_9IIjX.js → usage-window-dm_mRqGo.js} +1 -1
- package/dist/assets/{use-active-assistant-id-512RohBL.js → use-active-assistant-id-DXjofATQ.js} +1 -1
- package/dist/assets/{use-bus-subscription-RUbeQDfy.js → use-bus-subscription-CKWguMzy.js} +1 -1
- package/dist/assets/use-is-org-ready-kFoGr63U.js +1 -0
- package/dist/assets/{use-onboarding-login-CxXV3Iue.js → use-onboarding-login-Ddww_Use.js} +1 -1
- package/dist/assets/{use-plugin-drift-BUHRYq2W.js → use-plugin-drift-GTZaiGZ9.js} +1 -1
- package/dist/assets/{use-reduced-motion-CXbk4fYO.js → use-reduced-motion-DomgCP7o.js} +1 -1
- package/dist/assets/user-plus-Chk2BJ7O.js +1 -0
- package/dist/assets/utils-eWxz_g-8.js +1 -0
- package/dist/assets/{viewer-store-CInCucV8.js → viewer-store-B89qQmwz.js} +1 -1
- package/dist/assets/{voice-page-VrJ7AZrg.js → voice-page-D4ba1mCL.js} +1 -1
- package/dist/assets/weather-forecast-display-DTeOsjHe.js +1 -0
- package/dist/assets/{web-BcNl6r2T.js → web-B426K90I.js} +1 -1
- package/dist/assets/{web-DKvxfNu_.js → web-BDmMa2Ah.js} +1 -1
- package/dist/assets/{web-BEsXuN9d.js → web-BI7Og_dq.js} +1 -1
- package/dist/assets/{web-CVJTgRoJ.js → web-BjJEIboG.js} +1 -1
- package/dist/assets/{web-BorhjBfF.js → web-BsjDq2-Z.js} +1 -1
- package/dist/assets/{web-4XHemeeJ.js → web-C5TKmyZ7.js} +1 -1
- package/dist/assets/{web-DALQZUJ4.js → web-CkqagAoR.js} +1 -1
- package/dist/assets/{welcome-screen-DVeLGZKg.js → welcome-screen-Cb8vUDQU.js} +1 -1
- package/dist/assets/workflow-detail-panel-F2CoPboC.js +1 -0
- package/dist/assets/workflow-status-B53qU9DS.js +1 -0
- package/dist/assets/workspace-page-CjQibvIG.js +1 -0
- package/dist/assets/x-Cb3jFpZR.js +1 -0
- package/dist/index.html +126 -108
- package/package.json +1 -1
- package/dist/assets/account-page-B5rB7loj.js +0 -1
- package/dist/assets/add-credits-modal-BEX4_5jj.js +0 -1
- package/dist/assets/advanced-page-9RUi4YCF.js +0 -1
- package/dist/assets/ai-page-CZj92XF4.js +0 -1
- package/dist/assets/api-BSHLYsxJ.js +0 -1
- package/dist/assets/arrow-left-DpZuwfUr.js +0 -1
- package/dist/assets/arrow-up-BsbPgGtM.js +0 -1
- package/dist/assets/assistant-api-D7r6RWoh.js +0 -39
- package/dist/assets/assistant-feature-flag-store-D2CUHsmL.js +0 -1
- package/dist/assets/assistant-identity-store-BFaMpt_3.js +0 -1
- package/dist/assets/assistant-status-panel-CMdqv7mF.js +0 -1
- package/dist/assets/auth-store-CrTf0uWL.js +0 -7
- package/dist/assets/ban-BMsomjPu.js +0 -1
- package/dist/assets/billing-page-DgX2YBSA.js +0 -3
- package/dist/assets/build-state-DqzVxR37.js +0 -1
- package/dist/assets/chevron-left-CySeFTW4.js +0 -1
- package/dist/assets/chevron-right-HpmykQ8I.js +0 -1
- package/dist/assets/circle-check-D3yd2el7.js +0 -1
- package/dist/assets/code-CXddtaOh.js +0 -1
- package/dist/assets/command-palette-window-page-5SP_Ft4Y.js +0 -1
- package/dist/assets/community-page-D5-exeNr.js +0 -1
- package/dist/assets/confirm-dialog-DbNUkFt6.js +0 -1
- package/dist/assets/consent-controls-cNdj_gb8.js +0 -1
- package/dist/assets/contacts-page-route-C9T-8Sdr.js +0 -1
- package/dist/assets/debug-page-ClQetFUa.js +0 -2
- package/dist/assets/developer-page-DQs8SZ8K.js +0 -1
- package/dist/assets/devices-page-VsRsz6XP.js +0 -1
- package/dist/assets/dictation-overlay-page-C5HFJIsY.js +0 -1
- package/dist/assets/document-viewer-page-BLBwWqM4.js +0 -1
- package/dist/assets/dollar-sign-Ctayw6dD.js +0 -1
- package/dist/assets/earn-credits-modal-Dig03UD-.js +0 -1
- package/dist/assets/emails-page-D9R72EQW.js +0 -1
- package/dist/assets/esm--X8IY1ec.js +0 -1
- package/dist/assets/esm-Cs-ixW_a.js +0 -2
- package/dist/assets/esm-DxJBeF-2.js +0 -2
- package/dist/assets/esm-JmlvYCir.js +0 -2
- package/dist/assets/esm-LyzWW9Z1.js +0 -2
- package/dist/assets/file-editor-HQXiGdH-.js +0 -1
- package/dist/assets/general-page-CMr5RhNh.js +0 -1
- package/dist/assets/hatching-screen-BAzE4aGD.js +0 -1
- package/dist/assets/home-page-route-JenDSLBl.js +0 -1
- package/dist/assets/identity-page-route-r9ZgIw8g.js +0 -1
- package/dist/assets/index-BiN-6kWM.js +0 -140
- package/dist/assets/index-DIEDlrdu.css +0 -2
- package/dist/assets/install-CHMiF_Hw.js +0 -1
- package/dist/assets/integrations-page-BiLM3QyR.js +0 -1
- package/dist/assets/lib-CQbq3OZw.js +0 -29
- package/dist/assets/library-detail-page-CjeBxuMc.js +0 -1
- package/dist/assets/library-page-BFIPthR_.js +0 -1
- package/dist/assets/loader-circle-CTs38Ovl.js +0 -1
- package/dist/assets/local-mode-9ZkSq1Fr.js +0 -1
- package/dist/assets/login-page-KDH0IZ6y.js +0 -1
- package/dist/assets/mcp-page-B7tUTzT0.js +0 -1
- package/dist/assets/notice-G5Imd5pC.js +0 -1
- package/dist/assets/notifications-page-CmOvbV59.js +0 -1
- package/dist/assets/platform-loopback-page-Wie5xEwr.js +0 -1
- package/dist/assets/prechat-route-BhzvRsw3.js +0 -1
- package/dist/assets/privacy-page-Yex5OJjZ.js +0 -1
- package/dist/assets/proxy-CQsxT9tJ.js +0 -1
- package/dist/assets/research-mock-page-D0-sKBpu.js +0 -1
- package/dist/assets/research-onboarding-route-ZTgUGnrN.js +0 -38
- package/dist/assets/resolved-assistants-store-DMuRxkZC.js +0 -1
- package/dist/assets/return-to-Bc7amvZZ.js +0 -1
- package/dist/assets/review-terms-screen-DLWgKysx.js +0 -1
- package/dist/assets/select-assistant-screen-LNX6PpzR.js +0 -1
- package/dist/assets/settings-layout-BA0suokL.js +0 -1
- package/dist/assets/share-feedback-modal-CFgHvfgR.js +0 -1
- package/dist/assets/sidebar-tree-DALLHIeG.js +0 -1
- package/dist/assets/signup-page-13TRI3CC.js +0 -1
- package/dist/assets/skills-page-DiopOlcy.js +0 -1
- package/dist/assets/subagent-detail-panel-BdPp2LMK.js +0 -4
- package/dist/assets/subagent-status-CaVVlphf.js +0 -1
- package/dist/assets/system-events-page-DcaF2EuX.js +0 -1
- package/dist/assets/toast-DLWkiWW6.js +0 -1
- package/dist/assets/tool-detail-panel-C6uFi3_6.js +0 -2
- package/dist/assets/trace-page-4MU66DDM.js +0 -1
- package/dist/assets/upgrade-success-page-DLjl6978.js +0 -1
- package/dist/assets/usage-page-CCBqWkRU.js +0 -1
- package/dist/assets/use-is-org-ready-BoWiaeMc.js +0 -1
- package/dist/assets/utils-B5-aBe5u.js +0 -1
- package/dist/assets/weather-forecast-display-DKMPxDv5.js +0 -1
- package/dist/assets/workflow-detail-panel-BgDWu3_4.js +0 -1
- package/dist/assets/workspace-page-BlVlfXIt.js +0 -1
- package/dist/assets/x-Dz7msELe.js +0 -1
- /package/dist/assets/{api-errors-CwAGZ-xJ.js → api-errors-B-g6gvNv.js} +0 -0
- /package/dist/assets/{avatar-bundled-components-UfXe4Pfu.js → avatar-bundled-components-DoxUXsZB.js} +0 -0
- /package/dist/assets/{avatar-svg-compositor-Bbqkq_FE.js → avatar-svg-compositor-CZqTxX-j.js} +0 -0
- /package/dist/assets/{build.umd-TjHHwLRY.js → build.umd-C-9hxmJK.js} +0 -0
- /package/dist/assets/{client.gen-CWZrHbc9.js → client.gen-4zzwm6UN.js} +0 -0
- /package/dist/assets/{client.gen-Cuv6iN0E.js → client.gen-BnoNy2w0.js} +0 -0
- /package/dist/assets/{composer-focus-DP3jFn8K.js → composer-focus-BZr63Cvs.js} +0 -0
- /package/dist/assets/{conversation-selection-BMndnV1U.js → conversation-selection-CNu7j2Xb.js} +0 -0
- /package/dist/assets/{create-selectors-ClYkcuKo.js → create-selectors-BE0_e_Ed.js} +0 -0
- /package/dist/assets/{createLucideIcon-DIlBzeWM.js → createLucideIcon-BlMXrA59.js} +0 -0
- /package/dist/assets/{definitions-BqAtozTh.js → definitions--qkv65-s.js} +0 -0
- /package/dist/assets/{dist-D7Zr-ONk.js → dist-BQHdyjQ3.js} +0 -0
- /package/dist/assets/{dist-nMnxT9pm.js → dist-CzyDxYAs.js} +0 -0
- /package/dist/assets/{edit-chat-session-B1tanC3Z.js → edit-chat-session-BYvbyTwd.js} +0 -0
- /package/dist/assets/{effective-timezone-wo2Bhl1P.js → effective-timezone-DAkNzd21.js} +0 -0
- /package/dist/assets/{emoji-catalog-data-B6Q5tPZJ.js → emoji-catalog-data-B_lm6Crq.js} +0 -0
- /package/dist/assets/{event-bus-DntJgYuJ.js → event-bus-CBil9JQT.js} +0 -0
- /package/dist/assets/{format-B12w_G9l.js → format-HKnibeVj.js} +0 -0
- /package/dist/assets/{format-date-B6hTwbOM.js → format-date-DyMQp2_m.js} +0 -0
- /package/dist/assets/{format-file-size-DxhjMSDx.js → format-file-size-DOcXaUaE.js} +0 -0
- /package/dist/assets/{haptics-BtSYrQNK.js → haptics-CKwMH4eq.js} +0 -0
- /package/dist/assets/{impersonate-version-flag-ZdQOgpO3.js → impersonate-version-flag-Caig8rhF.js} +0 -0
- /package/dist/assets/{input-CwdmSRlD.js → input-Ch7OC6ME.js} +0 -0
- /package/dist/assets/{is-electron-BuSDabCt.js → is-electron-C_ZTVhv8.js} +0 -0
- /package/dist/assets/{llm-dimension-Cs4q1Ovq.js → llm-dimension-Dx3xIzPP.js} +0 -0
- /package/dist/assets/{misc-Bo3spjOe.js → misc-CBD9JJCY.js} +0 -0
- /package/dist/assets/{native-deep-link-_WT_7c80.js → native-deep-link-DmJ7Ty6z.js} +0 -0
- /package/dist/assets/{pdf-CMJp1GoR.js → pdf-Bi0PDaJC.js} +0 -0
- /package/dist/assets/{prechat-names-BZIP2Y-H.js → prechat-names-Bo5bdzfH.js} +0 -0
- /package/dist/assets/{progress-bar-BOKTRqXE.js → progress-bar-DFH5aT1D.js} +0 -0
- /package/dist/assets/{public-asset-Dp-i4xhW.js → public-asset-BTisO-cB.js} +0 -0
- /package/dist/assets/{reduced-motion-Do7LyjE6.js → reduced-motion-BZH7waJ6.js} +0 -0
- /package/dist/assets/{shortcut-keys-WNQqv5_X.js → shortcut-keys-vM6sNj7W.js} +0 -0
- /package/dist/assets/{stat-square-B5tBfA4w.js → stat-square-CraPxMcl.js} +0 -0
- /package/dist/assets/{toggle-_vZlLDBV.js → toggle-95p73HGd.js} +0 -0
- /package/dist/assets/{typed-storage-SkUUNYR1.js → typed-storage-Chj38wph.js} +0 -0
- /package/dist/assets/{use-is-mobile-CvT53Qs1.js → use-is-mobile-BF5x8sr8.js} +0 -0
- /package/dist/assets/{x-CaVViVFn.js → x-DE8JhiDZ.js} +0 -0
- /package/dist/assets/{xterm-BJ2bbKsF.js → xterm-BJTDHDUK.js} +0 -0
- /package/dist/assets/{xterm-addon-fit-BJTajn72.js → xterm-addon-fit-Ba7bgpoc.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{n as a}from"./QueryClientProvider-DKhXIxGb.js";import{t as o}from"./useQuery-B45lW1Kk.js";import{t as s}from"./jsx-runtime-CVSDxk6A.js";import{t as c}from"./card-BibIM9x3.js";import{t as l}from"./input-CwdmSRlD.js";import{a as u,f as d,s as f}from"./local-mode-9ZkSq1Fr.js";import{t as p}from"./is-electron-BuSDabCt.js";import{n as m}from"./resolved-assistants-store-DMuRxkZC.js";import{t as h}from"./chevron-left-CySeFTW4.js";import{t as g}from"./loader-circle-CTs38Ovl.js";import{t as _}from"./pencil-lwgMCqyH.js";import{t as v}from"./x-Dz7msELe.js";import{J as y,N as b,a as x,n as S,o as C,q as w}from"./auth-store-CrTf0uWL.js";import{t as T}from"./client.gen-Cuv6iN0E.js";import{a as E}from"./routes-BKwsRssF.js";import{o as D,r as O}from"./prefs-Mrqh1A7Y.js";import{t as k}from"./client-feature-flag-store-ivPVcKfH.js";import{t as A}from"./public-asset-Dp-i4xhW.js";import{Er as ee,F as j,I as M,P as N,Ya as P,_t as te,an as ne,c as re,ct as ie,d as ae,dt as F,fn as oe,ft as I,gt as se,ho as L,in as ce,kn as le,l as ue,lt as R,nn as z,ot as de,rn as B,s as fe,st as pe}from"./index-BiN-6kWM.js";import{c as me,i as he,n as V,o as ge,r as _e,s as ve,t as H}from"./step-indicator-dots-BOKv1I4C.js";import{n as U,r as ye}from"./prechat-names-BZIP2Y-H.js";var W=e(t(),1);async function be(){try{let{data:e,response:t}=await T.get({url:`/v1/onboarding/recipe/`,throwOnError:!1});if(!t?.ok||!e)return null;let n=e;return typeof n.cohort!=`string`||!Array.isArray(n.tasks)||typeof n.tone!=`string`||typeof n.bootstrap_template!=`string`||typeof n.initial_message!=`string`||!Array.isArray(n.skills)||typeof n.skip_prechat!=`boolean`?null:{cohort:n.cohort,tasks:n.tasks,tone:n.tone,bootstrapTemplate:n.bootstrap_template,initialMessage:n.initial_message,skills:n.skills,skipPrechat:n.skip_prechat}}catch{return null}}var G=s(),xe=[{label:`Push notifications`,detail:`stay in the loop even when the browser is closed`},{label:`Biometric login`,detail:`Face ID & Touch ID for instant, secure access`},{label:`Native haptics`,detail:`tactile feedback that feels part of the device`},{label:`Home screen access`,detail:`launch your assistant with a single tap`}];function Se({onComplete:e}){function t(){ue(),fe(),e()}return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col items-center justify-center px-6 pb-40 text-center`,children:[(0,G.jsx)(`div`,{className:`mb-8 flex size-16 items-center justify-center rounded-2xl border`,style:{background:`var(--surface-overlay)`,borderColor:`var(--border-element)`,boxShadow:`0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04)`,animation:`fadeInUp 0.3s ease-out both`},children:(0,G.jsxs)(`svg`,{width:`28`,height:`28`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{color:`var(--content-default)`},"aria-hidden":!0,children:[(0,G.jsx)(`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`3`}),(0,G.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`18.01`})]})}),(0,G.jsx)(`p`,{className:`text-label-small-default mb-3 uppercase tracking-[0.2em]`,style:{color:`var(--content-tertiary)`,animation:`fadeInUp 0.3s ease-out 0.05s both`},children:`One more thing`}),(0,G.jsx)(`h1`,{className:`mb-3 text-3xl font-semibold tracking-tight`,style:{color:`var(--content-default)`,animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`Your assistant, in your pocket.`}),(0,G.jsx)(`p`,{className:`text-body-medium-lighter mb-10 max-w-sm`,style:{color:`var(--content-secondary)`,animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`The iOS app keeps your assistant a tap away — with push notifications, biometric login, and native haptics.`}),(0,G.jsx)(`div`,{className:`mb-10 w-full rounded-xl border px-5 py-4`,style:{background:`var(--surface-overlay)`,borderColor:`var(--border-element)`,animation:`fadeInUp 0.3s ease-out 0.2s both`},children:(0,G.jsx)(`ul`,{className:`space-y-4`,children:xe.map((e,t)=>(0,G.jsxs)(`li`,{className:`flex items-start gap-3`,style:{animation:`fadeInUp 0.3s ease-out ${.25+t*.05}s both`},children:[(0,G.jsx)(`span`,{className:`mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full`,style:{background:`var(--system-positive-weak)`},children:(0,G.jsx)(L,{size:12,style:{color:`var(--system-positive-strong)`}})}),(0,G.jsxs)(`span`,{className:`text-left`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default`,style:{color:`var(--content-default)`},children:e.label}),(0,G.jsxs)(`span`,{className:`text-body-medium-lighter`,style:{color:`var(--content-tertiary)`},children:[` — `,e.detail]})]})]},e.label))})}),(0,G.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.45s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:t,className:`h-11 text-base`,children:`Download on the App Store`}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:e,className:`h-11 text-base`,children:`Continue in browser`})]})]})})}var K=`google`,Ce=[{id:`gmail`,label:`Gmail`,logoSrc:A(`/images/integrations/gmail.svg`)},{id:`google-calendar`,label:`Google Calendar`,logoSrc:A(`/images/integrations/google-calendar.svg`)},{id:`google-drive`,label:`Google Drive`,logoSrc:A(`/images/integrations/google-drive.svg`)}];function we({assistantId:e,assistantName:t,onConnect:r,onSkip:i,onBack:o}){let s=p(),c=a(),l=b(),u=(0,W.useRef)(null),d=(0,W.useRef)(null),f=(0,W.useRef)(null),m=(0,W.useRef)(null),_=(0,W.useRef)(null),v=(0,W.useRef)(null),y=(0,W.useRef)(null),[x,S]=(0,W.useState)(!1),C=(0,W.useCallback)(()=>{d.current=null,S(!1)},[]),w=(0,W.useCallback)(()=>{_.current&&=(window.removeEventListener(`message`,_.current),null),v.current&&=(window.removeEventListener(`storage`,v.current),null)},[]),T=(0,W.useCallback)(()=>{u.current&&!u.current.closed&&u.current.close(),u.current=null,f.current&&=(clearInterval(f.current),null),m.current&&=(clearTimeout(m.current),null)},[]),D=ee();(0,W.useEffect)(()=>()=>{f.current&&clearInterval(f.current),m.current&&clearTimeout(m.current),u.current&&!u.current.closed&&u.current.close(),_.current&&window.removeEventListener(`message`,_.current),v.current&&window.removeEventListener(`storage`,v.current),y.current&&=(y.current(),null)},[]);let O=(0,W.useCallback)(async e=>{try{return(await c.fetchQuery({...le({path:{assistant_id:e}}),staleTime:0})).find(e=>e.provider===K&&e.connected)??null}catch{return null}},[c]),k=(0,W.useCallback)(async()=>{let e=d.current?.platformAssistantId;T(),C(),r((e?await O(e):null)?.scopes_granted??[])},[C,T,O,r]),A=(0,W.useCallback)(e=>{e.type===`vellum:oauth-complete`&&(!d.current||e.requestId!==d.current.requestId||(e.oauthStatus===`connected`?k():(T(),C())))},[C,T,k]),j=(0,W.useCallback)(e=>{let t=d.current;if(!t)return;let n=de(e,window.location.origin,t.requestId);n&&A(n)},[A]),N=(0,W.useCallback)(e=>{let t=d.current;if(!t)return;let n=pe(e,t.requestId);n&&(A(n),window.localStorage.removeItem(R(t.requestId)))},[A]);F((0,W.useCallback)(e=>{let t=d.current;t&&e.requestId===t.requestId&&A({type:`vellum:oauth-complete`,requestId:e.requestId,oauthStatus:e.oauthStatus,oauthProvider:e.oauthProvider,oauthCode:e.oauthCode})},[A]));let P=(0,W.useCallback)(()=>{let t=crypto.randomUUID();if(w(),_.current=j,v.current=N,l){S(!0),(async()=>{let n;try{n=await M(e)}catch{C();return}d.current={requestId:t,platformAssistantId:n},D.mutate({path:{assistant_id:n,provider:K},body:{requested_scopes:[],redirect_after_connect:`${E.account.oauth.popupComplete}?requestId=${t}&native=1`}},{onSuccess(e){se(e.connect_url)},onError(){C()}})})(),window.addEventListener(`message`,j),window.addEventListener(`storage`,N),y.current&&y.current();let n=te(()=>{let e=d.current;if(!e){n(),y.current=null;return}(async()=>{let t=await O(e.platformAssistantId);d.current&&(t?await k():C(),w(),n(),y.current=null)})()});y.current=n;return}let n=window.open(``,`_blank`,`width=500,height=600`);if(n===null){w();return}u.current=n,S(!0),window.addEventListener(`message`,j),window.addEventListener(`storage`,N),f.current=setInterval(()=>{u.current&&u.current.closed&&d.current&&!m.current&&(m.current=setTimeout(async()=>{m.current=null;let e=d.current;if(!e)return;let t=window.localStorage.getItem(R(e.requestId));if(t)try{let n=JSON.parse(t);if(ie(n,e.requestId)){A(n),window.localStorage.removeItem(R(e.requestId)),w();return}}catch{}let n=await O(e.platformAssistantId);d.current&&(n?await k():(T(),C()),w())},1e3))},100),(async()=>{let n;try{n=await M(e)}catch{T(),C(),w();return}d.current={requestId:t,platformAssistantId:n},D.mutate({path:{assistant_id:n,provider:K},body:{requested_scopes:[],redirect_after_connect:`${E.account.oauth.popupComplete}?requestId=${t}`}},{onSuccess(e){u.current&&!u.current.closed?u.current.location.href=e.connect_url:d.current&&(T(),C(),w())},onError(){T(),C(),w()}})})()},[e,C,T,O,A,j,N,k,l,w,D]),ne=t||`your assistant`,re=t||`Your assistant`;return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex w-full max-w-md flex-col items-center ${s?`min-h-full px-8 pt-11 pb-8 electron-prechat-type`:`px-6 pt-12 pb-40`} text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,G.jsx)(`button`,{type:`button`,onClick:o,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(h,{className:`h-4 w-4`})}),(0,G.jsx)(`h1`,{className:`text-center ${s?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,children:`Connect Google`}),(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,G.jsx)(`p`,{className:`mt-4 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`If you use Google, ${ne} can use Gmail, Calendar, and Drive with your permission.`}),(0,G.jsx)(`div`,{className:`mt-6 flex items-stretch justify-center gap-3`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:Ce.map(e=>(0,G.jsxs)(`div`,{className:`flex w-24 flex-col items-center gap-2.5 rounded-2xl bg-[var(--surface-lift)] px-3 pb-3 pt-4`,children:[(0,G.jsx)(`img`,{src:e.logoSrc,alt:``,width:28,height:28,className:`h-7 w-7 object-contain`,loading:`eager`}),(0,G.jsx)(`span`,{className:`text-center text-xs leading-tight text-[var(--content-tertiary)]`,children:e.label})]},e.id))}),(0,G.jsx)(`p`,{className:`mt-8 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.25s both`},children:`${re} will never send email, change calendar events, or edit files without your permission. You can disconnect at any time.`}),(0,G.jsxs)(`div`,{className:`${s?`mt-auto`:`mt-8`} flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.35s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:P,disabled:x||D.isPending,className:`${s?`h-9`:`h-11 text-base`}`,children:x||D.isPending?(0,G.jsxs)(`span`,{className:`flex items-center justify-center gap-2`,children:[(0,G.jsx)(g,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization...`]}):`Connect Google`}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:i,disabled:x||D.isPending,className:`${s?`h-9`:`h-11 text-base`}`,children:`Skip for now`})]})]})})}function Te({userName:e,assistantName:t,selectedGroupId:r,displayedAssistantNames:i,onUserNameChange:a,onAssistantNameChange:o,onGroupChange:s,onBack:c,onComplete:u,onSkip:d}){let f=p();return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex w-full max-w-md flex-col items-center ${f?`min-h-full px-8 pt-11 pb-8 electron-prechat-type`:`px-6 pt-12 pb-40`} text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full items-center ${c?`grid-cols-[auto_1fr_auto]`:``}`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[c?(0,G.jsx)(`button`,{type:`button`,onClick:c,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(h,{className:`h-4 w-4`})}):null,(0,G.jsx)(`h1`,{className:`text-center ${f?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,children:`Let's get to know each other.`}),c?(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`}):null]}),(0,G.jsx)(`p`,{className:`mt-2 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`You can change these any time.`}),(0,G.jsxs)(`div`,{className:`${f?`mt-6`:`mt-8`} flex w-full flex-col ${f?`gap-4`:`gap-6`}`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(l,{label:`Your name`,placeholder:`Your name`,value:e,onChange:e=>a(e.target.value),fullWidth:!0}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(l,{label:`What should I go by?`,placeholder:`Assistant name`,value:t,onChange:e=>o(e.target.value),fullWidth:!0}),(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`A few to try`}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:i.map(e=>{let n=e===t;return(0,G.jsx)(`button`,{type:`button`,onClick:()=>o(e),"aria-pressed":n,className:`cursor-pointer rounded-full border px-3 py-1 text-label-small-default transition-colors ${n?`border-[var(--primary-base)] bg-[var(--primary-base)] text-[var(--content-inset)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] text-[var(--content-secondary)] hover:bg-[var(--surface-base)]`}`,children:e},e)})})]}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-secondary)]`,children:`Pick a vibe`}),(0,G.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:U.map(e=>(0,G.jsx)(Ee,{group:e,isActive:r===e.id,onToggle:()=>s(r===e.id?null:e.id)},e.id))})]})]}),(0,G.jsxs)(`div`,{className:`${f?`mt-auto`:`mt-8`} flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:u,className:`${f?`h-9`:`h-11 text-base`}`,children:`Let's go`}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:d,className:`${f?`h-9`:`h-11 text-base`}`,children:`Skip`})]})]})})}function Ee({group:e,isActive:t,onToggle:n}){return(0,G.jsxs)(`button`,{type:`button`,onClick:n,"aria-pressed":t,"aria-label":`${e.label}, ${e.descriptor}`,className:`flex cursor-pointer flex-col items-start gap-0.5 rounded-lg border p-3 text-left transition-colors ${t?`border-[var(--primary-base)] bg-[var(--primary-base)] text-[var(--content-inset)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default ${t?`text-[var(--content-inset)]`:`text-[var(--content-default)]`}`,children:e.descriptor}),(0,G.jsx)(`span`,{className:`text-body-small-default ${t?`text-[var(--content-inset)] opacity-60`:`text-[var(--content-tertiary)]`}`,children:e.tagline})]})}function De({userName:e,assistantName:t,displayedAssistantNames:r,onUserNameChange:i,onAssistantNameChange:a,onBack:o,onContinue:s,onSkip:c,currentStep:u,totalSteps:d}){return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col px-6 pb-40 text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center pb-4`,style:{paddingTop:`calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 1rem)`,animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[o?(0,G.jsx)(n,{variant:`ghost`,size:`compact`,iconOnly:(0,G.jsx)(h,{}),onClick:o,"aria-label":`Back`}):(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`}),(0,G.jsx)(`div`,{className:`flex justify-center`,children:(0,G.jsx)(H,{current:u,total:d})}),(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center pt-4`,children:[(0,G.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`Let's get to know each other.`}),(0,G.jsx)(`p`,{className:`mt-2 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`You can change these any time.`}),(0,G.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-6`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(l,{label:`Your name`,placeholder:`Your name`,value:e,onChange:e=>i(e.target.value),fullWidth:!0}),(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(l,{label:`What should I go by?`,placeholder:`Assistant name`,value:t,onChange:e=>a(e.target.value),fullWidth:!0}),(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`A few to try`}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:r.map(e=>{let n=e===t;return(0,G.jsx)(`button`,{type:`button`,onClick:()=>a(e),"aria-pressed":n,className:`cursor-pointer rounded-full border px-3 py-1 text-label-small-default transition-colors ${n?`border-[var(--primary-base)] bg-[var(--primary-base)] text-[var(--content-inset)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] text-[var(--content-secondary)] hover:bg-[var(--surface-base)]`}`,children:e},e)})})]})]})]}),(0,G.jsxs)(`div`,{className:`flex w-full flex-col gap-2 pb-4`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:s,className:`h-11 text-base`,children:`Continue`}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:c,className:`h-11 text-base`,children:`Skip`})]})]})})}var Oe=[{id:`chatgpt`,label:`ChatGPT`,logoSrc:A(`/images/prior-assistants/chatgpt.svg`)},{id:`claude`,label:`Claude`,logoSrc:A(`/images/prior-assistants/claude.svg`)},{id:`openclaw`,label:`OpenClaw`,logoSrc:A(`/images/prior-assistants/openclaw.png`)},{id:`hermes`,label:`Hermes`,logoSrc:A(`/images/prior-assistants/hermes.png`)},{id:`manus`,label:`Manus`,logoSrc:A(`/images/prior-assistants/manus.svg`)},{id:`gemini`,label:`Gemini`,logoSrc:A(`/images/prior-assistants/gemini.svg`)},{id:`copilot`,label:`Copilot`,logoSrc:A(`/images/prior-assistants/copilot.svg`)}];function ke({selectedAssistants:e,onChange:t,onBack:r,onContinue:i,onSkip:a}){let o=p(),[s,u]=(0,W.useState)(()=>q(e)),[d,f]=(0,W.useState)(()=>s.length>0),m=(0,W.useRef)(J(e));(0,W.useEffect)(()=>{let t=J(e);if(t===m.current)return;let n=q(e);u(n),f(e=>e||n.length>0),m.current=t},[e]),(0,W.useEffect)(()=>{let n=new Set([...e].filter(e=>!e.startsWith(`other:`))),r=new Set;for(let e of s.split(`,`)){let t=e.trim();t&&(r.has(t)||(r.add(t),n.add(`other:${t}`)))}Ae(n,e)||(m.current=J(n),t(n))},[s]);let g=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)},y=(0,W.useMemo)(()=>{let e=new Set;return s.split(`,`).map(e=>e.trim()).filter(t=>!t||e.has(t)?!1:(e.add(t),!0))},[s]),b=e.size===0?`Continue`:`Continue · ${e.size} selected`;return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col items-center ${o?`min-h-full px-8 pt-11 pb-8 electron-prechat-type`:`px-6 pt-12 pb-40`} text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full items-center grid-cols-[auto_1fr_auto]`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,G.jsx)(`button`,{type:`button`,onClick:r,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(h,{className:`h-4 w-4`})}),(0,G.jsx)(`h1`,{className:`text-center ${o?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,children:`Have you used any of these?`}),(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,G.jsx)(`p`,{className:`${o?`mt-3`:`mt-4`} text-center text-body-medium-lighter text-[var(--content-${o?`secondary`:`tertiary`})]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`If you've built anything with another assistant, I can help you bring it over.`}),(0,G.jsxs)(`div`,{className:`${o?`mt-4`:`mt-8`} grid w-full grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:[Oe.map(t=>(0,G.jsx)(je,{assistant:t,selected:e.has(t.id),onToggle:()=>g(t.id)},t.id)),d?null:(0,G.jsx)(Me,{onClick:()=>f(!0)})]}),d?(0,G.jsx)(c,{padding:`md`,className:`mt-3 w-full border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_8%,transparent)]`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(_,{className:`h-3.5 w-3.5 text-[var(--content-secondary)]`,"aria-hidden":`true`}),(0,G.jsx)(`span`,{className:`text-body-medium-default prechat-md-regular text-[var(--content-default)]`,children:`Something else`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{f(!1),u(``)},"aria-label":`Dismiss custom assistants`,className:`ml-auto inline-flex h-6 w-6 cursor-pointer items-center justify-center rounded-md text-[var(--content-tertiary)] hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(v,{className:`h-3 w-3`,"aria-hidden":`true`})})]}),(0,G.jsx)(l,{"aria-label":`Other assistants`,placeholder:`e.g. Perplexity, Poe, Character.AI...`,value:s,onChange:e=>u(e.target.value),helperText:`Separate multiple assistants with commas`,fullWidth:!0}),y.length>0?(0,G.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:y.map(e=>(0,G.jsx)(`span`,{className:`rounded-full bg-[var(--primary-base)] px-3 py-1 text-label-small-default text-[var(--content-inset)]`,children:e},e))}):null]})}):null,(0,G.jsxs)(`div`,{className:`${o?`mt-auto`:`mt-8`} flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:e.size===0,onClick:i,className:`${o?`h-9`:`h-11 text-base`}`,children:b}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:a,className:`${o?`h-9`:`h-11 text-base`}`,children:`I haven't used any`})]})]})})}function Ae(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function q(e){return[...e].filter(e=>e.startsWith(`other:`)).map(e=>e.slice(6)).sort().join(`, `)}function J(e){return[...e].filter(e=>e.startsWith(`other:`)).sort().join(`|`)}function je({assistant:e,selected:t,onToggle:n}){return(0,G.jsxs)(`button`,{type:`button`,onClick:n,"aria-pressed":t,"aria-label":e.label,className:`relative flex h-[88px] w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border p-2 transition-colors ${t?`border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_10%,transparent)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(Ne,{assistant:e,size:32}),(0,G.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:e.label}),t?(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`absolute right-2 top-2 flex h-4 w-4 items-center justify-center rounded-full bg-[var(--primary-base)]`,children:(0,G.jsx)(L,{className:`h-2.5 w-2.5 text-[var(--content-inset)]`,"aria-hidden":`true`})}):null]})}function Me({onClick:e}){return(0,G.jsxs)(`button`,{type:`button`,onClick:e,"aria-label":`Something else`,className:`flex h-[88px] w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border border-[var(--border-element)] bg-[var(--surface-lift)] p-2 transition-colors hover:bg-[var(--surface-base)]`,children:[(0,G.jsx)(`span`,{className:`flex h-8 w-8 items-center justify-center rounded-full bg-[var(--surface-base)]`,children:(0,G.jsx)(P,{className:`h-4 w-4 text-[var(--content-secondary)]`,"aria-hidden":`true`})}),(0,G.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:`Something else`})]})}function Ne({assistant:e,size:t}){if(e.logoSrc)return e.logoSrcDark?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`flex items-center justify-center dark:hidden`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,G.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})}),(0,G.jsx)(`span`,{className:`hidden items-center justify-center dark:flex`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,G.jsx)(`img`,{src:e.logoSrcDark,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})})]}):(0,G.jsx)(`span`,{className:`flex items-center justify-center`,style:{width:t,height:t},children:(0,G.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})});let n=e.label.slice(0,2).toUpperCase();return(0,G.jsx)(`span`,{className:`flex items-center justify-center rounded-full bg-[var(--surface-base)] text-label-small-default text-[var(--content-default)]`,style:{width:t,height:t},"aria-hidden":`true`,children:n})}function Pe({selectedTasks:e,onChange:t,onBack:r,onContinue:i,onSkip:a}){let o=p(),s=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)};return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${o?`min-h-full px-8 pt-11 pb-8 electron-prechat-type`:`px-6 pt-12 pb-40`} text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,G.jsx)(`button`,{type:`button`,onClick:r,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(h,{className:`h-4 w-4`})}),(0,G.jsx)(`h1`,{className:`text-center ${o?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,children:`What are you working on?`}),(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,G.jsx)(`p`,{className:`${o?`mt-2`:`mt-4`} text-center text-body-medium-lighter text-[var(--content-${o?`secondary`:`tertiary`})]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`Pick the one or two you do most — you can select more if it really is all of it.`}),(0,G.jsx)(`div`,{className:`${o?`mt-6`:`mt-8`} flex w-full flex-col ${o?`gap-1`:`gap-2`}`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:N.map(t=>{let n=j[t.iconKey],r=e.has(t.id);return(0,G.jsxs)(`button`,{type:`button`,onClick:()=>s(t.id),"aria-pressed":r,className:`group flex w-full cursor-pointer items-center ${o?`gap-2 p-3`:`gap-3 px-4 py-3`} rounded-lg border text-left transition-colors ${r?`border-[var(--primary-base)] bg-[var(--primary-base)]/10`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`div`,{className:`flex w-6 shrink-0 items-center justify-center text-[var(--content-secondary)]`,children:n?(0,G.jsx)(n,{className:`h-4 w-4`}):null}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default prechat-md-regular text-[var(--content-default)]`,children:t.label}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:t.sublabel})]}),(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-md ${r?`bg-[var(--primary-base)]`:`border-[1.5px] border-[var(--border-element)]`}`,children:r?(0,G.jsx)(L,{className:`h-3 w-3 text-[var(--content-inset)]`}):null})]},t.id)})}),(0,G.jsxs)(`div`,{className:`${o?`mt-auto`:`mt-8`} flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:e.size===0,onClick:i,className:`${o?`h-9`:`h-11 text-base`}`,children:`Continue`}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:a,className:`${o?`h-9`:`h-11 text-base`}`,children:`I'll set this up later`})]})]})})}var Fe=new Set([`gmail`,`google-calendar`,`google-drive`]),Ie=[{id:`gmail`,label:`Gmail`,logoSrc:A(`/images/integrations/gmail.svg`)},{id:`outlook`,label:`Outlook`,logoSrc:A(`/images/integrations/outlook.png`)},{id:`google-calendar`,label:`Google Calendar`,logoSrc:A(`/images/integrations/google-calendar.svg`)},{id:`slack`,label:`Slack`,logoSrc:A(`/images/integrations/slack.svg`)},{id:`notion`,label:`Notion`,logoSrc:A(`/images/integrations/notion.svg`)},{id:`linear`,label:`Linear`,logoSrc:A(`/images/integrations/linear-light-logo.svg`)},{id:`jira`,label:`Jira`,logoSrc:A(`/images/integrations/jira.svg`)},{id:`github`,label:`GitHub`,logoSrc:A(`/images/integrations/github.svg`),logoSrcDark:A(`/images/integrations/github-dark.svg`)},{id:`figma`,label:`Figma`,logoSrc:A(`/images/integrations/figma.svg`)},{id:`google-drive`,label:`Google Drive`,logoSrc:A(`/images/integrations/google-drive.svg`)},{id:`excel`,label:`Excel`,logoSrc:A(`/images/integrations/excel.svg`)},{id:`apple-notes`,label:`Apple Notes`,logoSrc:A(`/images/integrations/apple-notes.svg`)}];function Le(e){let t=e.map(e=>e.startsWith(`other:`)?e.slice(6):e);return Array.from(new Set(t)).sort()}function Re({selectedTools:e,onChange:t,onBack:r,onContinue:i,onSkip:a}){let o=p(),[s,u]=(0,W.useState)(()=>Y(e)),[d,f]=(0,W.useState)(()=>s.length>0),m=(0,W.useRef)(X(e));(0,W.useEffect)(()=>{let t=X(e);if(t===m.current)return;let n=Y(e);u(n),f(e=>e||n.length>0),m.current=t},[e]),(0,W.useEffect)(()=>{let n=new Set([...e].filter(e=>!e.startsWith(`other:`))),r=new Set;for(let e of s.split(`,`)){let t=e.trim();t&&(r.has(t)||(r.add(t),n.add(`other:${t}`)))}ze(n,e)||(m.current=X(n),t(n))},[s]);let g=n=>{let r=new Set(e);r.has(n)?r.delete(n):r.add(n),t(r)},y=(0,W.useMemo)(()=>{let e=new Set;return s.split(`,`).map(e=>e.trim()).filter(t=>!t||e.has(t)?!1:(e.add(t),!0))},[s]),b=e.size===0?`Continue`:`Continue · ${e.size} selected`;return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex w-full max-w-2xl flex-col items-center ${o?`min-h-full px-8 pt-11 pb-8 electron-prechat-type`:`px-6 pt-12 pb-40`} text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full items-center ${r?`grid-cols-[auto_1fr_auto]`:``}`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[r?(0,G.jsx)(`button`,{type:`button`,onClick:r,"aria-label":`Back`,className:`flex h-8 w-8 cursor-pointer items-center justify-center rounded-md text-[var(--content-secondary)] transition-colors hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(h,{className:`h-4 w-4`})}):null,(0,G.jsx)(`h1`,{className:`text-center ${o?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,children:`What do you use?`}),r?(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`}):null]}),(0,G.jsx)(`p`,{className:`${o?`mt-3`:`mt-4`} text-center text-body-medium-lighter text-[var(--content-${o?`secondary`:`tertiary`})]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`This helps me tailor how I assist you. No connections needed — you can set those up later.`}),(0,G.jsxs)(`div`,{className:`grid w-full gap-2 ${o?`mt-4 grid-cols-4`:`mt-8 grid-cols-2 sm:grid-cols-3 md:grid-cols-4`}`,style:{animation:`fadeInUp 0.3s ease-out 0.2s both`},children:[Ie.map(t=>(0,G.jsx)(Z,{tool:t,selected:e.has(t.id),onToggle:()=>g(t.id),electron:o},t.id)),d?null:(0,G.jsx)(Q,{onClick:()=>f(!0),electron:o})]}),d?(0,G.jsx)(c,{padding:o?`sm`:`md`,className:`mt-3 w-full border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_8%,transparent)]`,children:(0,G.jsxs)(`div`,{className:`flex flex-col ${o?`gap-2`:`gap-3`}`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(_,{className:`h-3.5 w-3.5 text-[var(--content-secondary)]`,"aria-hidden":`true`}),(0,G.jsx)(`span`,{className:`text-body-medium-default prechat-md-regular text-[var(--content-default)]`,children:`Something else`}),(0,G.jsx)(`button`,{type:`button`,onClick:()=>{f(!1),u(``)},"aria-label":`Dismiss custom tools`,className:`ml-auto inline-flex h-6 w-6 cursor-pointer items-center justify-center rounded-md text-[var(--content-tertiary)] hover:bg-[var(--surface-base)]`,children:(0,G.jsx)(v,{className:`h-3 w-3`,"aria-hidden":`true`})})]}),(0,G.jsx)(l,{"aria-label":`Other tools`,placeholder:`e.g. Trello, Basecamp, Asana...`,value:s,onChange:e=>u(e.target.value),helperText:`Separate multiple tools with commas`,fullWidth:!0}),y.length>0?(0,G.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:y.map(e=>(0,G.jsx)(`span`,{className:`rounded-full bg-[var(--primary-base)] px-3 py-1 text-label-small-default text-[var(--content-inset)]`,children:e},e))}):null]})}):null,(0,G.jsxs)(`div`,{className:`${o?`mt-auto`:`mt-8`} flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:e.size===0,onClick:i,className:`${o?`h-9`:`h-11 text-base`}`,children:b}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:a,className:`${o?`h-9`:`h-11 text-base`}`,children:`I'll set this up later`})]})]})})}function ze(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Y(e){return[...e].filter(e=>e.startsWith(`other:`)).map(e=>e.slice(6)).sort().join(`, `)}function X(e){return[...e].filter(e=>e.startsWith(`other:`)).sort().join(`|`)}function Z({tool:e,selected:t,onToggle:n,electron:r}){return(0,G.jsxs)(`button`,{type:`button`,onClick:n,"aria-pressed":t,"aria-label":e.label,className:`relative flex ${r?`h-[72px]`:`h-[88px]`} w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border p-2 transition-colors ${t?`border-[var(--primary-base)] bg-[color-mix(in_srgb,var(--primary-base)_10%,transparent)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)($,{tool:e,size:32}),(0,G.jsx)(`span`,{className:`${r?`w-full truncate`:`line-clamp-2`} text-center text-label-medium-default text-[var(--content-default)]`,children:e.label}),t?(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`absolute right-2 top-2 flex h-4 w-4 items-center justify-center rounded-full bg-[var(--primary-base)]`,children:(0,G.jsx)(L,{className:`h-2.5 w-2.5 text-[var(--content-inset)]`,"aria-hidden":`true`})}):null]})}function Q({onClick:e,electron:t}){return(0,G.jsxs)(`button`,{type:`button`,onClick:e,"aria-label":`Something else`,className:`flex ${t?`min-h-[72px]`:`h-[88px]`} w-full cursor-pointer flex-col items-center justify-center gap-1.5 rounded-lg border border-[var(--border-element)] bg-[var(--surface-lift)] p-2 transition-colors hover:bg-[var(--surface-base)]`,children:[(0,G.jsx)(`span`,{className:`flex h-8 w-8 items-center justify-center rounded-full bg-[var(--surface-base)]`,children:(0,G.jsx)(P,{className:`h-4 w-4 text-[var(--content-secondary)]`,"aria-hidden":`true`})}),(0,G.jsx)(`span`,{className:`line-clamp-2 text-center text-label-medium-default text-[var(--content-default)]`,children:`Something else`})]})}function $({tool:e,size:t}){if(e.logoSrc)return e.logoSrcDark?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`flex items-center justify-center dark:hidden`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,G.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})}),(0,G.jsx)(`span`,{className:`hidden items-center justify-center dark:flex`,style:{width:t,height:t},"aria-hidden":`true`,children:(0,G.jsx)(`img`,{src:e.logoSrcDark,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})})]}):(0,G.jsx)(`span`,{className:`flex items-center justify-center`,style:{width:t,height:t},children:(0,G.jsx)(`img`,{src:e.logoSrc,alt:``,width:t,height:t,className:`max-h-full max-w-full object-contain`,loading:`eager`})});let n=e.label.slice(0,2).toUpperCase();return(0,G.jsx)(`span`,{className:`flex items-center justify-center rounded-full bg-[var(--surface-base)] text-label-small-default text-[var(--content-default)]`,style:{width:t,height:t},"aria-hidden":`true`,children:n})}function Be({selectedGroupId:e,onGroupChange:t,onBack:r,onContinue:i,onSkip:a,currentStep:o,totalSteps:s}){return(0,G.jsx)(I,{showCreatureFooter:!1,children:(0,G.jsxs)(`div`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col px-6 pb-40 text-[var(--content-default)]`,children:[(0,G.jsxs)(`div`,{className:`grid w-full grid-cols-[auto_1fr_auto] items-center pb-4`,style:{paddingTop:`calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + 1rem)`,animation:`fadeInUp 0.3s ease-out 0.1s both`},children:[(0,G.jsx)(n,{variant:`ghost`,size:`compact`,iconOnly:(0,G.jsx)(h,{}),onClick:r,"aria-label":`Back`}),(0,G.jsx)(`div`,{className:`flex justify-center`,children:(0,G.jsx)(H,{current:o,total:s})}),(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`h-8 w-8`})]}),(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center pt-4`,children:[(0,G.jsx)(`h1`,{className:`w-full text-left text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`What's my vibe?`}),(0,G.jsx)(`p`,{className:`mt-2 w-full text-left text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`You can change this any time.`}),(0,G.jsx)(`div`,{className:`mt-8 flex w-full flex-col gap-3`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:U.map(n=>{let r=e===n.id;return(0,G.jsxs)(`button`,{type:`button`,onClick:()=>t(r?null:n.id),"aria-pressed":r,className:`flex cursor-pointer items-center justify-between rounded-xl border px-4 py-4 text-left transition-colors ${r?`border-[var(--content-default)] bg-[var(--surface-lift)]`:`border-[var(--border-element)] bg-[var(--surface-lift)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:n.descriptor}),(0,G.jsx)(`span`,{className:`flex h-5 w-5 items-center justify-center rounded-full border-2 transition-colors ${r?`border-[var(--content-default)]`:`border-[var(--content-disabled)]`}`,children:r&&(0,G.jsx)(`span`,{className:`h-2.5 w-2.5 rounded-full bg-[var(--content-default)]`})})]},n.id)})})]}),(0,G.jsxs)(`div`,{className:`flex w-full flex-col gap-2 pb-4`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,G.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:i,className:`h-11 text-base`,children:`Continue`}),(0,G.jsx)(n,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:a,className:`h-11 text-base`,children:`Skip`})]})]})})}function Ve(e){let[t,n]=(0,W.useState)(()=>(e??``).trim()),r=(0,W.useRef)(!1);return(0,W.useEffect)(()=>{if(r.current)return;let t=(e??``).trim();t&&n(e=>e||t)},[e]),{value:t,onChange:(0,W.useCallback)(e=>{r.current=!0,n(e)},[])}}var He=[`gmail`,`google-calendar`,`google-drive`],Ue=`experiment-activation-flow-2026-06-03`,We=`BOOTSTRAP-ACTIVATION-RAIL.md`;function Ge(e,t,n){return t?.initialMessage?t.initialMessage:n?B(e):z}function Ke(e){let{mode:t,recipe:n}=e,r=e.connectedScopes!==void 0,i;i=t===`native`?{tools:[],tasks:[],tone:e.tone,googleConnected:!1}:t===`paredDown`?{tools:r?[...He]:[],tasks:n?.tasks??[],tone:e.tone,googleConnected:r}:{tools:Le([...e.selectedTools]),tasks:[...e.selectedTasks].sort(),tone:e.tone},n&&(i.cohort=n.cohort,i.bootstrapTemplate=n.bootstrapTemplate,i.skills=n.skills),e.activationFlowEnabled&&(i.cohort=Ue,i.bootstrapTemplate=We);let a=e.userName.trim();a&&(i.userName=a);let o=e.occupation?.trim();o&&(i.occupation=o);let s=e.assistantName.trim();return s&&(i.assistantName=s),t===`paredDown`?r&&(i.googleScopes=e.connectedScopes):t===`control`&&(r?(i.googleConnected=!0,i.googleScopes=e.connectedScopes):e.googleConnected?(i.googleConnected=!0,i.googleScopes=e.googleScopes):i.googleConnected=!1),t===`control`&&e.selectedPriorAssistants.size>0&&(i.priorAssistants=Le([...e.selectedPriorAssistants])),i.initialMessage=Ge(i,e.activationFlowEnabled?null:n,e.selfIntroGreetingEnabled),i}function qe(e){return!e.localMode||e.platformSession===`present`?!0:e.platformSession===`unknown`&&e.hasCachedPlatformAssistant}function Je(e){let{paredDown:t}=e;return[{id:`name`,funnelStep:V.nameVibe,enabled:!0},{id:`taskTone`,funnelStep:V.controlWorkType,enabled:!t},{id:`tools`,funnelStep:V.controlTools,enabled:!t},{id:`priorAssistants`,funnelStep:V.controlPriorAssistants,enabled:!t&&e.canOfferPriorAssistants},{id:`google`,funnelStep:t?V.gmailConnect:V.controlGmailConnect,enabled:e.canOfferGoogleStep&&(t||e.hasGoogleTool)},{id:`iosApp`,funnelStep:V.controlGetApp,enabled:!t&&e.showIOSAppStep}].filter(e=>e.enabled).map(({enabled:e,...t})=>t)}function Ye(){return[{id:`nativeName`,funnelStep:null},{id:`nativeVibe`,funnelStep:null}]}var Xe=`1`;function Ze(e){return e===`nativeVibe`||e===Xe?`nativeVibe`:null}function Qe(e,t){let n=e.findIndex(e=>e.id===t);return n<0?null:e[n+1]?.id??null}function $e(e,t){let n=e.findIndex(e=>e.id===t);return n<=0?null:e[n-1]?.id??null}function et(){let e=r(),t=b(),n=D()&&O();return(0,W.useEffect)(()=>{!n&&!t&&e(E.onboarding.privacy,{replace:!0})},[n,t,e]),t||n}function tt(e,t){let n=e?`prechat_native_screen:${e}`:null,[r,i]=(0,W.useState)(()=>t?`nativeName`:`name`),a=(0,W.useCallback)(e=>{if(n)try{e===null?sessionStorage.removeItem(n):sessionStorage.setItem(n,e)}catch{}},[n]);return(0,W.useLayoutEffect)(()=>{if(n)try{let e=Ze(sessionStorage.getItem(n));e&&i(e)}catch{}},[n]),(0,W.useEffect)(()=>{t&&a(r===`nativeVibe`?`nativeVibe`:null)},[t,r,a]),{currentStep:r,setCurrentStep:i,clearPersistedStep:(0,W.useCallback)(()=>{a(null)},[a])}}var nt=3;function rt(){let e=f();return e?.cloud===`vellum`?e.assistantId:u()[0]?.assistantId??null}function it(){let e=r(),[t]=i(),n=t.get(`preview`)===`true`,a=S.use.user(),s=x(),c=C(),l=a?.id??null,u=a?.firstName??``,f=a?.lastName??``,p=b(),h=m.use.activeAssistantId(),g=d(),_=ae()&&!re(),v=k.use.stringFlags().preChatOnboardingExperiment20260606??`control`,T=(k.use.stringFlags().experimentActivationFlow20260603??`control`)===`variant-a`,D=k.use.selfIntroGreeting(),O=ge(v),A=ve()??O,ee=A===_e.paredDown,j=g?rt():null,M=et(),{currentStep:N,setCurrentStep:P,clearPersistedStep:te}=tt(l,p),ie=S.use.platformSession(),F=y(ie),[I,se]=(0,W.useState)(()=>new Set),[L,le]=(0,W.useState)(()=>new Set),[ue,R]=(0,W.useState)(()=>new Set),{value:z,onChange:de}=Ve(g&&!F?``:u||f),[B,fe]=(0,W.useState)(null),[pe]=(0,W.useState)(()=>ye()),[V,H]=(0,W.useState)(``),[U,xe]=(0,W.useState)(!1),[K,Ce]=(0,W.useState)([]),{data:Ee}=o({...oe(),enabled:!c&&s&&(!g||F)}),{data:Oe,isLoading:Ae}=o({queryKey:[`onboarding-recipe`,l],queryFn:be,enabled:!c&&s&&!p&&!g,staleTime:1/0}),q=Oe??null,J=Ee?.id??h??j,je=qe({localMode:g,platformSession:ie,hasCachedPlatformAssistant:j!==null}),Me=je,Ne=je,Ie=async()=>{await w.checkAssistant(),e(`${E.assistant}?onboarding=1`,{replace:!0})};function Le(e,t=A){n||he(e,{userId:l,variant:me(t)})}let ze=[...I].some(e=>Fe.has(e)),Y=p?Ye():Je({paredDown:ee,canOfferPriorAssistants:Ne,canOfferGoogleStep:n?!1:Me,hasGoogleTool:ze,showIOSAppStep:_});function X(t){if(n){e(-1);return}ne(Ke({mode:p?`native`:ee?`paredDown`:`control`,recipe:p?null:q,selectedTools:I,selectedTasks:L,selectedPriorAssistants:t?.selectedPriorAssistants??ue,tone:B??q?.tone??`grounded`,userName:z,assistantName:V,selfIntroGreetingEnabled:D,activationFlowEnabled:p?void 0:T,googleConnected:U,googleScopes:K,connectedScopes:t?.connectedScopes}));let r=V.trim();r&&ce(r),p?(te(),e(E.onboarding.privacy)):(w.markExpectingFirstMessage(),Ie())}let Z=(e,t)=>{e.funnelStep&&Le(e.funnelStep);let n=Qe(Y,e.id);n?P(n):X(t)},Q=e=>{let t=$e(Y,e.id);t&&P(t)};if(!M||Ae)return null;let $=Y.find(e=>e.id===N)??Y[0];return $?$.id===`nativeName`?(0,G.jsx)(De,{userName:z,assistantName:V,displayedAssistantNames:pe,onUserNameChange:de,onAssistantNameChange:H,onContinue:()=>Z($),onSkip:()=>Z($),currentStep:0,totalSteps:nt}):$.id===`nativeVibe`?(0,G.jsx)(Be,{selectedGroupId:B,onGroupChange:fe,onBack:()=>Q($),onContinue:()=>Z($),onSkip:()=>Z($),currentStep:1,totalSteps:nt}):$.id===`name`?(0,G.jsx)(Te,{userName:z,assistantName:V,selectedGroupId:B,displayedAssistantNames:pe,onUserNameChange:de,onAssistantNameChange:H,onGroupChange:fe,onComplete:()=>Z($),onSkip:()=>Z($)}):$.id===`taskTone`?(0,G.jsx)(Pe,{selectedTasks:L,onChange:le,onBack:()=>Q($),onContinue:()=>Z($),onSkip:()=>Z($)}):$.id===`tools`?(0,G.jsx)(Re,{selectedTools:I,onChange:se,onBack:()=>Q($),onContinue:()=>Z($),onSkip:()=>Z($)}):$.id===`priorAssistants`?(0,G.jsx)(ke,{selectedAssistants:ue,onChange:R,onBack:()=>Q($),onContinue:()=>Z($),onSkip:()=>{let e=new Set;R(e),Z($,{selectedPriorAssistants:e})}}):$.id===`google`?J?(0,G.jsx)(we,{assistantId:J,assistantName:V,onConnect:e=>{xe(!0),Ce(e),Z($,{connectedScopes:e})},onSkip:()=>Z($),onBack:()=>Q($)}):null:$.id===`iosApp`?(0,G.jsx)(Se,{onComplete:()=>Z($)}):null:null}function at(){return(0,G.jsx)(it,{})}export{at as PreChatRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{a as t,n,o as r,r as i,s as a}from"./device-settings-BBwtGKJb.js";import{t as o}from"./react-DJZBPgpf.js";import{O as s,t as c}from"./button-D7s2Q_uG.js";import{n as l}from"./QueryClientProvider-DKhXIxGb.js";import{t as u}from"./useQuery-B45lW1Kk.js";import{t as d}from"./useMutation-Lj4VunQV.js";import{t as f}from"./jsx-runtime-CVSDxk6A.js";import{t as p}from"./cn-DvW5mxZR.js";import{t as m}from"./card-BibIM9x3.js";import{t as h}from"./dropdown-yOV5eJnU.js";import"./src-D6Nu2Lol.js";import{t as g}from"./confirm-dialog-DbNUkFt6.js";import{t as _}from"./notice-G5Imd5pC.js";import{t as v}from"./tag-BadGF3FB.js";import{t as y}from"./input-CwdmSRlD.js";import{t as b}from"./toggle-_vZlLDBV.js";import{n as x}from"./toast-DLWkiWW6.js";import{t as S}from"./chevron-right-HpmykQ8I.js";import{t as C}from"./loader-circle-CTs38Ovl.js";import{t as w}from"./pencil-lwgMCqyH.js";import{t as T}from"./x-Dz7msELe.js";import{n as E,r as D,t as O}from"./api-errors-CwAGZ-xJ.js";import{C as k,D as A,E as ee,N as te,O as ne,T as re,k as ie,n as ae,p as j,r as oe,w as se}from"./auth-store-CrTf0uWL.js";import{t as M}from"./client.gen-Cuv6iN0E.js";import{t as ce}from"./sdk.gen-DRL3oRwz.js";import{a as le,i as ue}from"./routes-BKwsRssF.js";import{t as de}from"./assistant-feature-flag-store-D2CUHsmL.js";import{Bt as fe,D as pe,Ft as me,It as N,Ki as he,O as P,Ot as ge,Pt as _e,Rt as ve,dn as F,g as ye,h as be,k as xe,m as I,mo as Se,na as Ce,p as L,ta as R,un as we,v as Te,zt as Ee}from"./index-BiN-6kWM.js";import{t as z}from"./use-active-assistant-id-512RohBL.js";import{t as B}from"./detail-card-CLwQ17AA.js";import{t as V}from"./setting-row-IILQu7AE.js";var H=e(o(),1),U=[`no_one`,`guardian_only`,`trusted_contacts`,`any_contact`,`strangers`],De=new Set([`platform`,`a2a`]),Oe=new Set([`vellum`,`whatsapp`]);function ke(e){return Oe.has(e)}var Ae={no_one:`No one (kill switch)`,guardian_only:`Guardian only`,trusted_contacts:`Trusted contacts`,any_contact:`Any contact`,strangers:`Strangers`},je={no_one:`Hard-deny every inbound message on this channel.`,guardian_only:`Only messages from the guardian are admitted.`,trusted_contacts:`Admit verified contacts and the guardian; deny everyone else.`,any_contact:`Admit any matched contact (verified or pending) and the guardian.`,strangers:`Admit everyone, including unrecognised senders.`};function Me(e){return typeof e==`string`&&U.includes(e)}function W(e){return De.has(e)}async function Ne(e){let{data:t,error:n,response:r}=await M.get({url:`/v1/assistants/{assistant_id}/channel-admission-policy/`,path:{assistant_id:e},throwOnError:!1});if(E(r,n,`Failed to load channel policies.`),!r.ok)throw new O(r.status,D(n,r,`Failed to load channel policies.`));return(t?.policies??[]).filter(e=>!W(e.channelType)&&!ke(e.channelType)).map(e=>({...e,policy:Me(e.policy)?e.policy:`trusted_contacts`}))}async function Pe(e,t,n,r){if(W(t))throw new O(403,`Channel "${t}" is internal and is not user-configurable.`);let{data:i,error:a,response:o}=await M.put({url:`/v1/assistants/{assistant_id}/channel-admission-policy/{channel_type}`,path:{assistant_id:e,channel_type:t},body:{policy:n,note:r??null},headers:{"Content-Type":`application/json`},throwOnError:!1});if(E(o,a,`Failed to save channel policy.`),!o.ok)throw new O(o.status,D(a,o,`Failed to save channel policy.`));if(!i?.policy)throw new O(500,`Gateway returned no policy in response.`);return i.policy}var G=f(),Fe=U.map(e=>({value:e,label:Ae[e]}));function K(e){return{telegram:`Telegram`,phone:`Phone`,whatsapp:`WhatsApp`,slack:`Slack`,email:`Email`}[e]??e.charAt(0).toUpperCase()+e.slice(1)}function Ie(){let e=z(),[t,n]=(0,H.useState)(null),[r,i]=(0,H.useState)(!0),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null),d=(0,H.useCallback)(async()=>{i(!0),o(null);try{n(await Ne(e))}catch(e){o(e instanceof O?e.message:`Failed to load channel policies.`)}finally{i(!1)}},[e]);(0,H.useEffect)(()=>{d()},[d]);let f=(0,H.useCallback)(async(t,r)=>{c(t),o(null),n(e=>e&&e.map(e=>e.channelType===t?{...e,policy:r}:e));try{let i=await Pe(e,t,r);n(e=>e&&e.map(e=>e.channelType===t?i:e))}catch(e){o(e instanceof O?e.message:`Failed to save channel policy.`),await d()}finally{c(null)}},[e,d]),p=(0,H.useCallback)((e,t)=>{if(t===`no_one`){u({channelType:e,label:K(e)});return}f(e,t)},[f]),_=(0,H.useCallback)(()=>{if(!l)return;let{channelType:e}=l;u(null),f(e,`no_one`)},[l,f]),v=(0,H.useCallback)(()=>{u(null)},[]),y=(0,H.useMemo)(()=>t??[],[t]);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(Ce,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Channel Trust Floors`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Choose who can reach the assistant on each channel. Internal channels are managed automatically and not shown here.`})]})]}),a&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-4 rounded-md border border-[var(--border-negative)] bg-[var(--surface-negative-subtle)] px-3 py-2 text-body-small-default text-[var(--content-negative)]`,children:a}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-3`,"data-testid":`channel-policy-list`,children:[r&&!t&&(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`Loading…`}),!r&&y.length===0&&(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`No client-controllable channels found.`}),y.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,"data-testid":`channel-policy-row-${e.channelType}`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:K(e.channelType)}),(0,G.jsx)(`p`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:je[e.policy]})]}),(0,G.jsx)(`div`,{style:{minWidth:220},children:(0,G.jsx)(h,{value:e.policy,onChange:t=>p(e.channelType,t),options:Fe,disabled:s===e.channelType,"aria-label":`Floor for ${K(e.channelType)}`,"data-testid":`channel-policy-dropdown-${e.channelType}`})})]},e.channelType))]}),(0,G.jsx)(g,{open:l!==null,title:`Block all inbound messages?`,message:l?`Setting ${l.label} to "No one" will hard-deny every inbound message on this channel. You can reverse this at any time.`:``,confirmLabel:`Block all`,destructive:!0,onConfirm:_,onCancel:v})]})}var q=[{id:`accessibility`,type:`system`,sourceKind:`accessibility`,label:`Accessibility`,description:`Allows your assistant to click, type, and control apps on your behalf.`},{id:`screen`,type:`system`,sourceKind:`screen`,label:`Screen Recording`,description:`Allows your assistant to capture screen context during computer-use tasks.`},{id:`microphone`,type:`system`,sourceKind:`microphone`,label:`Microphone`,description:`Allows your assistant to capture audio for voice input and recordings.`},{id:`speechRecognition`,type:`system`,sourceKind:`speechRecognition`,label:`Speech Recognition`,description:`Allows your assistant to transcribe your speech into text on-device.`},{id:`notifications`,type:`system`,sourceKind:`notifications`,label:`Notifications`,description:`Allows your assistant to send macOS alerts for approvals, messages, and task updates.`}],Le=[{id:`notificationBadges`,type:`local`,label:`Notification Badges`,description:`Allows your assistant to show unseen conversation counts on the Dock icon.`}];function Re(){let[e,t]=(0,H.useState)(null);return{pendingKind:e,run:async(e,n)=>{t(e);try{await n()}catch{}finally{t(t=>t===e?null:t)}}}}function ze(){let[e,r]=(0,H.useState)(()=>n(`dockBadgesEnabled`,!0));return(0,H.useEffect)(()=>a(`dockBadgesEnabled`,()=>{r(n(`dockBadgesEnabled`,!0))}),[]),[e,e=>{r(e),t(`dockBadgesEnabled`,e),e||ge(0)}]}function Be({row:e,onToggle:t}){return(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(b,{checked:e.checked,disabled:e.disabled,"aria-label":e.label,onChange:()=>t(e.id)}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>t(e.id),className:p(`block w-full text-left`,e.disabled?`cursor-not-allowed`:`cursor-pointer`),children:[(0,G.jsx)(`span`,{className:`block text-[14px] font-semibold leading-[18px] text-[var(--content-emphasised)]`,children:e.label}),(0,G.jsx)(`span`,{className:`mt-1 block text-[13px] font-medium leading-[18px] text-[var(--content-tertiary)]`,children:e.description})]}),e.error&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:e.error})]})]})}function Ve(){return(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`h-4 w-4 animate-spin rounded-full border-2 border-[var(--border-base)] border-t-[var(--content-tertiary)]`})}function He({compact:e=!1}){let{state:t,loading:n,error:r,supported:i,refresh:a}=fe(),{pendingKind:o,run:s}=Re(),[c,l]=ze(),u=(0,H.useMemo)(()=>{let e=new Map;if(!t)return e;for(let n of q){let r=t[n.sourceKind];r&&e.set(n.id,{meta:n,item:r})}return e},[t]),d=(0,H.useMemo)(()=>{let e=q.map(e=>{let t=u.get(e.id)?.item;return t?{id:e.id,label:e.label,description:e.description,checked:t.status===`granted`,disabled:o===e.id||t.status===`restricted`,...t.error?{error:t.error}:{}}:null}).filter(Boolean),t=Le.map(e=>({id:e.id,label:e.label,description:e.description,checked:c,disabled:o===e.id}));return[...e,...t]},[c,o,u]);if(!i)return null;let f=async(e,t)=>{t.status===`granted`||t.status===`denied`||!t.canRequest?await ve(e.sourceKind):await Ee(e.sourceKind),await a()},p=e=>{let t=u.get(e);if(t){s(e,()=>f(t.meta,t.item));return}e===`notificationBadges`&&s(e,async()=>{l(!c)})};return(0,G.jsxs)(`section`,{className:`w-full rounded-[20px] border border-[var(--border-hover)] bg-[var(--surface-lift)] px-4 pb-3 pt-5`,children:[(0,G.jsx)(`h2`,{className:`text-[18px] font-semibold leading-[22px] text-[var(--content-emphasised)]`,children:`System Permissions`}),n&&d.length===0?(0,G.jsxs)(`div`,{className:`mt-6 flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,G.jsx)(Ve,{}),`Checking permissions...`]}):(0,G.jsx)(`div`,{className:`mt-3 space-y-2`,children:d.map(e=>(0,G.jsx)(Be,{row:e,onToggle:p},e.id))}),r&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-6 rounded-lg border border-[color-mix(in_srgb,var(--system-negative-strong)_25%,transparent)] bg-[var(--system-negative-weak)] p-3 text-body-medium-lighter text-[var(--content-secondary)]`,children:r})]})}function Ue(){let e=N({platformHostedOnly:!0}),t=_e(),n=me(),r=l(),{data:i,isLoading:a,isError:o}=u({...we(),enabled:e===`full`&&t}),s=d({mutationFn:async e=>{let{data:t}=await ce({body:{access_consented:e},throwOnError:!0});return t},onSuccess:e=>{F(r,void 0,e),x.success(e?.access_consented?`Admin data access enabled.`:`Admin data access disabled.`)},onError:()=>{x.error(`Failed to update log access consent.`)}});if(e===`gated`)return null;let c=e===`full`&&n,f=i?.access_consented??!1,p=e!==`full`||!t||a||o||s.isPending;return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Allow admin access to assistant data`}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`Lets Vellum administrators reach privileged data on your assistant pod for debugging — today this means tailing the daily assistant log at`,` `,(0,G.jsx)(`code`,{className:`rounded bg-[var(--surface-base)] px-1.5 font-mono text-[var(--content-secondary)] dark:bg-[var(--surface-lift)] dark:text-[var(--content-default)]`,children:`/workspace/data/logs/assistant-YYYY-MM-DD.log`}),`. Off by default. Turn on temporarily when asking support to investigate an issue, then turn off when you're done.`]}),e===`full`&&o&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:`Failed to load consent setting.`})]}),(0,G.jsx)(`div`,{className:`flex items-center gap-2`,children:e===`disabled`?null:(0,G.jsxs)(G.Fragment,{children:[(s.isPending||c)&&(0,G.jsx)(C,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,G.jsx)(b,{checked:f,disabled:p,onChange:()=>s.mutate(!f)})]})})]}),e===`disabled`&&(0,G.jsx)(Te,{className:`mt-3`,children:`Log in to the Vellum platform to manage admin data access.`})]})}function We(){let e=te(),[t,n]=(0,H.useState)(()=>ee()),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(`Face ID`),[s,c]=(0,H.useState)(!1);if((0,H.useEffect)(()=>{e&&(re().then(i),se().then(o))},[e]),!e||!r)return null;let l=async()=>{c(!0);try{if(t)A(!1),await k(),n(!1);else{let e=ie();e&&await ne(e),A(!0),n(!0)}}finally{c(!1)}};return(0,G.jsx)(B,{title:`Security`,children:(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsxs)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:[`Use `,a,` for sign-in`]}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`When your session expires, verify with `,a,` or your device passcode instead of signing in again.`]})]}),(0,G.jsx)(b,{checked:t,onChange:()=>void l(),disabled:s})]})})}function J(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}var Y=L.map(e=>({value:e.id,label:e.label,icon:(0,G.jsx)(e.icon,{className:`h-3.5 w-3.5`})}));function X(){let e=z(),t=l(),{data:n,isError:r}=u({queryKey:[`thresholds`,e],queryFn:()=>be(e),staleTime:3e4}),[i,a]=(0,H.useState)(`relaxed`),[o,s]=(0,H.useState)(`conservative`),[c,d]=(0,H.useState)(`strict`),[f,p]=(0,H.useState)(!1),g=(0,H.useRef)(!1),[_,v]=(0,H.useState)(!1),y=(0,H.useRef)(null),b=(0,H.useRef)(null);(0,H.useEffect)(()=>{!n||g.current||(a(I(n.interactive).id),s(I(n.autonomous).id),d(I(n.headless).id),v(!0))},[n]),(0,H.useEffect)(()=>()=>{y.current!==null&&(clearTimeout(y.current),y.current=null,b.current?.(),b.current=null)},[]);let x=(0,H.useCallback)((n,r,i)=>{if(!e||!_)return;let a=L.find(e=>e.id===n)?.riskThreshold,o=L.find(e=>e.id===r)?.riskThreshold,s=L.find(e=>e.id===i)?.riskThreshold;!a||!o||!s||ye(e,{interactive:a,autonomous:o,headless:s}).then(()=>{t.invalidateQueries({queryKey:[`thresholds`,e]})}).catch(()=>{})},[e,_,t]),C=(0,H.useCallback)((e,t,n)=>{y.current!==null&&clearTimeout(y.current),b.current=()=>x(e,t,n),y.current=setTimeout(()=>{b.current?.(),y.current=null,b.current=null},500)},[x]),w=(0,H.useCallback)(e=>{g.current=!0,a(e),C(e,o,c)},[o,c,C]),T=(0,H.useCallback)(e=>{g.current=!0,s(e),C(i,e,c)},[i,c,C]),E=(0,H.useCallback)(e=>{g.current=!0,d(e),C(i,o,e)},[i,o,C]),D=L.find(e=>e.id===i),O=L.find(e=>e.id===o),k=L.find(e=>e.id===c),A=!e||!_;return(0,G.jsxs)(m,{children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Risk Tolerance`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Control which actions your assistant can take without asking first. Each action is classified by risk level — your tolerance determines which levels auto-approve.`}),r&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--system-negative-strong)]`,children:`Could not load threshold settings. Check your connection and reload.`}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Conversations`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When you're chatting with your assistant directly.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:i,onChange:w,options:Y,disabled:A})}),D&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:D.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>p(e=>!e),className:`flex items-center gap-1 text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,"aria-expanded":f,children:[f?(0,G.jsx)(Se,{className:`h-4 w-4`}):(0,G.jsx)(S,{className:`h-4 w-4`}),(0,G.jsx)(`span`,{className:`text-body-medium-default`,children:`Advanced`})]}),(0,G.jsxs)(`div`,{className:f?`mt-4 space-y-4`:`hidden`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Background`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When your assistant acts without you — scheduled tasks, background jobs, and external triggers.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:o,onChange:T,options:Y,disabled:A})}),O&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:O.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Headless`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When triggered externally with no interactive client.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:c,onChange:E,options:Y,disabled:A})}),k&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:k.description})]})]})]})]})]})}var Z=e(s(),1),Ge=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`],Ke=[{value:`low`,label:`Low`,description:`Auto-approve without prompting`},{value:`medium`,label:`Medium`,description:`Prompt before executing`},{value:`high`,label:`High`,description:`Always require explicit approval`}];function qe({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let i=(0,H.useRef)(null),[a,o]=(0,H.useState)(t.tool),[s,c]=(0,H.useState)(t.pattern),[l,u]=(0,H.useState)(t.risk),[d,f]=(0,H.useState)(t.description??``),[p,m]=(0,H.useState)(!1),[g,v]=(0,H.useState)(null),b=s.trim(),x=b.length>0&&!p,S=(0,H.useCallback)(async n=>{if(n.preventDefault(),!x)return;let i=d.trim()||`${a} — ${b}`;m(!0),v(null);try{await xe(e,t.id,{risk:l,description:i}),r()}catch(e){v(e instanceof Error?e.message:`Failed to save trust rule.`)}finally{m(!1)}},[e,x,d,t,r,l,a,b]);return(0,Z.createPortal)((0,G.jsx)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rule-form-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,H.useCallback)(e=>{e.key===`Escape`&&n()},[n]),onClick:(0,H.useCallback)(e=>{e.target===i.current&&n()},[n]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[calc(100vh-2rem)] w-full max-w-md flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rule-form-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Edit Trust Rule`}),(0,G.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Close`,className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(T,{className:`h-4 w-4`})})]}),(0,G.jsxs)(`form`,{onSubmit:e=>void S(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[g&&(0,G.jsx)(_,{tone:`error`,children:g}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`trust-rule-tool`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`Tool`}),(0,G.jsx)(`div`,{className:`mt-1`,children:(0,G.jsx)(h,{value:a,onChange:o,disabled:!0,options:Ge.map(e=>({value:e,label:e}))})})]}),(0,G.jsx)(y,{label:`Pattern`,type:`text`,value:s,onChange:e=>c(e.target.value),placeholder:`e.g., git *`,disabled:!0}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:`Risk Level`}),(0,G.jsx)(`div`,{className:`mt-2 flex gap-2`,children:Ke.map(e=>(0,G.jsxs)(`button`,{type:`button`,onClick:()=>u(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${l===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-warning-strong)] bg-[var(--system-warning-weak)] text-[var(--system-warning-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`div`,{children:e.label}),(0,G.jsx)(`div`,{className:`mt-0.5 text-label-medium-default leading-tight opacity-70`,children:e.description})]},e.value))})]}),(0,G.jsx)(y,{label:`Description (optional)`,type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`${a} — ${b||`pattern`}`}),(0,G.jsxs)(`div`,{className:`flex justify-end gap-2 pt-2`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg border border-[var(--border-element)] bg-white px-4 py-2 text-body-medium-default text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)] dark:border-[var(--border-base)] dark:bg-[var(--surface-lift)] dark:hover:bg-[var(--ghost-hover)]`,children:`Cancel`}),(0,G.jsx)(`button`,{type:`submit`,disabled:!x,className:`rounded-lg bg-[var(--system-positive-strong)] px-4 py-2 text-body-medium-default text-white transition-colors hover:bg-[var(--system-positive-strong)] disabled:cursor-not-allowed disabled:opacity-50`,children:p?`Saving…`:`Save`})]})]})]})}),document.body)}function Je(e){return e.origin===`default`&&!e.userModified}function Ye(e,t){let n=new Set,r=[];for(let t of e)n.has(t.id)||(n.add(t.id),r.push(t));for(let e of t)n.has(e.id)||(n.add(e.id),r.push(e));return r.sort((e,t)=>e.tool===t.tool?e.description.localeCompare(t.description):e.tool.localeCompare(t.tool))}function Xe(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ze({assistantId:e,onClose:t}){let n=(0,H.useRef)(null),[r,i]=(0,H.useState)([]),[a,o]=(0,H.useState)(!0),[s,l]=(0,H.useState)(null),[u,d]=(0,H.useState)(null),[f,p]=(0,H.useState)(null),[m,h]=(0,H.useState)(!1),y=(0,H.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([P(e),P(e,{origin:`default`})]);return Ye(t,n)}return P(e)},[e]),x=(0,H.useCallback)(async()=>{o(!0);try{i(await y(m)),l(null)}catch(e){l(e instanceof Error?e.message:`Failed to load trust rules.`)}finally{o(!1)}},[y,m]);(0,H.useEffect)(()=>{let e=!1;return(async()=>{o(!0);try{let t=await y(m);e||(i(t),l(null))}catch(t){e||l(t instanceof Error?t.message:`Failed to load trust rules.`)}finally{e||o(!1)}})(),()=>{e=!0}},[y,m]);let S=(0,H.useCallback)(async()=>{if(f)try{await pe(e,f.id),x()}catch(e){l(e instanceof Error?e.message:`Failed to delete trust rule.`)}finally{p(null)}},[e,f,x]);return(0,Z.createPortal)((0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:n,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rules-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,H.useCallback)(e=>{e.key===`Escape`&&t()},[t]),onClick:(0,H.useCallback)(e=>{e.target===n.current&&t()},[t]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[80vh] w-full max-w-2xl flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rules-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(b,{checked:m,onChange:h,label:`Show all defaults`}),(0,G.jsx)(c,{variant:`outlined`,onClick:t,children:`Done`})]})]}),(0,G.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[s&&(0,G.jsx)(`div`,{className:`mb-3`,children:(0,G.jsx)(_,{tone:`error`,children:s})}),a?(0,G.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Loading…`}):r.length===0?(0,G.jsxs)(`div`,{className:`flex h-48 flex-col items-center justify-center gap-2 px-6 text-[var(--content-tertiary)]`,children:[(0,G.jsx)(R,{className:`h-8 w-8`}),(0,G.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:`No trust rules yet. Rules are created when you classify actions from permission prompts.`})]}):(0,G.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:r.map(e=>{let t=Je(e);return(0,G.jsxs)(`li`,{className:`flex items-start gap-3 py-3`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e.tool}),(0,G.jsx)(v,{tone:Xe(e.risk),children:Q(e.risk)}),e.origin===`default`&&(0,G.jsx)(v,{tone:`neutral`,children:`Default`}),e.userModified&&(0,G.jsx)(v,{tone:`warning`,children:`Modified`})]}),(0,G.jsx)(`div`,{className:`mt-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:e.pattern}),e.description&&(0,G.jsx)(`div`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:e.description})]}),(0,G.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`Edit ${e.tool} rule`,onClick:()=>d(e),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(w,{className:`h-4 w-4`})}),(!t||e.userModified)&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Delete ${e.tool} rule`,onClick:()=>p(e),className:`rounded-lg p-1.5 text-[var(--system-negative-strong)] transition-colors hover:bg-[var(--system-negative-weak)]`,children:(0,G.jsx)(he,{className:`h-4 w-4`})})]})]},e.id)})})]})]})}),u&&(0,G.jsx)(qe,{assistantId:e,existingRule:u,onClose:()=>d(null),onSaved:()=>{d(null),x()}}),(0,G.jsx)(g,{open:f!==null,title:`Delete Trust Rule?`,message:f?`Remove the ${Q(f.risk).toLowerCase()}-risk rule for ${f.tool} matching "${f.pattern}"?`:``,confirmLabel:`Delete`,cancelLabel:`Cancel`,destructive:!0,onConfirm:()=>void S(),onCancel:()=>p(null)})]}),document.body)}function Qe(){let e=z(),[t,n]=(0,H.useState)(!1);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(R,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Manage per-tool rules that control which actions auto-approve and which require your explicit permission.`})]}),(0,G.jsx)(c,{variant:`outlined`,onClick:()=>n(!0),children:`Manage`})]}),t&&(0,G.jsx)(Ze,{assistantId:e,onClose:()=>n(!1)})]})}var $e=[{value:`dontRetain`,label:`Don't retain`},{value:`oneHour`,label:`1 hour`},{value:`oneDay`,label:`1 day`},{value:`sevenDays`,label:`7 days`},{value:`thirtyDays`,label:`30 days`},{value:`ninetyDays`,label:`90 days`},{value:`keepForever`,label:`Keep forever`}],et=`thirtyDays`;function $(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function tt(){let e=N({platformHostedOnly:!0}),t=de.use.channelTrustFloors(),a=oe(),o=a,s=ae.use.user()?.id??null,[c,l]=(0,H.useState)(()=>n(`shareAnalytics`,!0)),[u,d]=(0,H.useState)(()=>n(`shareDiagnostics`,!0)),[f,p]=(0,H.useState)(()=>i(`llmLogRetention`,et));return(0,G.jsxs)(`div`,{className:`space-y-4`,children:[(0,G.jsx)(We,{}),(0,G.jsx)(He,{}),(0,G.jsx)(Qe,{}),t&&(0,G.jsx)(Ie,{}),(0,G.jsx)(X,{}),(0,G.jsx)(B,{title:`Privacy`,subtitle:a?(0,G.jsxs)(G.Fragment,{children:[`View details about what data we collect and how it's used in our`,` `,(0,G.jsx)(`a`,{href:ue(le.docs.legal.privacyPolicy),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`privacy policy`}),`.`]}):void 0,children:(0,G.jsxs)(`div`,{className:`space-y-4`,children:[o&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(V,{label:`Share Analytics`,helperText:`Send aggregated product usage data`,checked:c,onChange:()=>{let e=!c;l(e),j(`share_analytics`,e,{userId:s,hasPlatformSession:a})},variant:`toggle-trailing`}),(0,G.jsx)($,{}),(0,G.jsx)(V,{label:`Share Diagnostics`,helperText:`Send crash reports, conversation traces, and session replay data`,checked:u,onChange:()=>{let e=!u;d(e),j(`share_diagnostics`,e,{userId:s,hasPlatformSession:a})},variant:`toggle-trailing`}),(0,G.jsx)($,{})]}),(0,G.jsx)(Ue,{}),e!==`gated`&&(0,G.jsx)($,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`llm-log-retention`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`LLM Request Log Retention`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(h,{value:f,onChange:e=>{p(e),r(`llmLogRetention`,e)},options:$e})}),(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:`How long to keep LLM request and response logs on this device. These logs record the prompts and completions sent to model providers and are used for debugging. Shorter retention improves privacy; longer retention helps troubleshoot issues.`})]})]})})]})}export{tt as PrivacyPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n,r}from"./chunk-jRWAZmH_.js";import{t as i}from"./react-DJZBPgpf.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{n as o,r as s,t as c}from"./reduced-motion-Do7LyjE6.js";var l=a(),u=n(i(),1),d=(0,u.createContext)({});function f(e){let t=(0,u.useRef)(null);return t.current===null&&(t.current=e()),t.current}var p=typeof window<`u`?u.useLayoutEffect:u.useEffect,m=(0,u.createContext)(null);function h(e,t){e.indexOf(t)===-1&&e.push(t)}function g(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var _=(e,t,n)=>n>t?t:n<e?e:n,v={},y=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),b=e=>typeof e==`object`&&!!e,x=e=>/^0[^.\s]+$/u.test(e);function S(e){let t;return()=>(t===void 0&&(t=e()),t)}var C=e=>e,w=(...e)=>e.reduce((e,t)=>n=>t(e(n))),T=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ee=class{constructor(){this.subscriptions=[]}add(e){return h(this.subscriptions,e),()=>g(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},E=e=>e*1e3,D=e=>e/1e3,te=(e,t)=>t?1e3/t*e:0,ne=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,re=1e-7,ie=12;function ae(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ne(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>re&&++s<ie);return o}function oe(e,t,n,r){if(e===t&&n===r)return C;let i=t=>ae(t,0,1,e,n);return e=>e===0||e===1?e:ne(i(e),t,r)}var se=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ce=e=>t=>1-e(1-t),le=oe(.33,1.53,.69,.99),ue=ce(le),de=se(ue),fe=e=>e>=1?1:(e*=2)<1?.5*ue(e):.5*(2-2**(-10*(e-1))),pe=e=>1-Math.sin(Math.acos(e)),me=ce(pe),he=se(pe),ge=oe(.42,0,1,1),_e=oe(0,0,.58,1),ve=oe(.42,0,.58,1),ye=e=>Array.isArray(e)&&typeof e[0]!=`number`,be=e=>Array.isArray(e)&&typeof e[0]==`number`,xe={linear:C,easeIn:ge,easeInOut:ve,easeOut:_e,circIn:pe,circInOut:he,circOut:me,backIn:ue,backInOut:de,backOut:le,anticipate:fe},Se=e=>typeof e==`string`,Ce=e=>{if(be(e)){e.length;let[t,n,r,i]=e;return oe(t,n,r,i)}else if(Se(e))return xe[e],`${e}`,xe[e];return e},we=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],O={value:null,addProjectionMetrics:null};function Te(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&O.value&&O.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Ee=40;function De(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=we.reduce((e,n)=>(e[n]=Te(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=v.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ee),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:we.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<we.length;t++)o[we[t]].cancel(e)},state:i,steps:o}}var{schedule:k,cancel:A,state:j,steps:Oe}=De(typeof requestAnimationFrame<`u`?requestAnimationFrame:C,!0),ke;function Ae(){ke=void 0}var M={now:()=>(ke===void 0&&M.set(j.isProcessing||v.useManualTiming?j.timestamp:performance.now()),ke),set:e=>{ke=e,queueMicrotask(Ae)}},je={layout:0,mainThread:0,waapi:0},Me=e=>t=>typeof t==`string`&&t.startsWith(e),Ne=Me(`--`),Pe=Me(`var(--`),Fe=e=>Pe(e)?Ie.test(e.split(`/*`)[0].trim()):!1,Ie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Le(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Re={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ze={...Re,transform:e=>_(0,1,e)},Be={...Re,default:1},Ve=e=>Math.round(e*1e5)/1e5,He=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ue(e){return e==null}var We=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ge=(e,t)=>n=>!!(typeof n==`string`&&We.test(n)&&n.startsWith(e)||t&&!Ue(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ke=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(He);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},qe=e=>_(0,255,e),Je={...Re,transform:e=>Math.round(qe(e))},N={test:Ge(`rgb`,`red`),parse:Ke(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Je.transform(e)+`, `+Je.transform(t)+`, `+Je.transform(n)+`, `+Ve(ze.transform(r))+`)`};function Ye(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Xe={test:Ge(`#`),parse:Ye,transform:N.transform},Ze=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),P=Ze(`deg`),F=Ze(`%`),I=Ze(`px`),Qe=Ze(`vh`),$e=Ze(`vw`),et={...F,parse:e=>F.parse(e)/100,transform:e=>F.transform(e*100)},tt={test:Ge(`hsl`,`hue`),parse:Ke(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+F.transform(Ve(t))+`, `+F.transform(Ve(n))+`, `+Ve(ze.transform(r))+`)`},L={test:e=>N.test(e)||Xe.test(e)||tt.test(e),parse:e=>N.test(e)?N.parse(e):tt.test(e)?tt.parse(e):Xe.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?N.transform(e):tt.transform(e),getAnimatableNone:e=>{let t=L.parse(e);return t.alpha=0,L.transform(t)}},nt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rt(e){return isNaN(e)&&typeof e==`string`&&(e.match(He)?.length||0)+(e.match(nt)?.length||0)>0}var it=`number`,at=`color`,ot=`var`,st=`var(`,ct="${}",lt=/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 ut(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(lt,e=>(L.test(e)?(r.color.push(a),i.push(at),n.push(L.parse(e))):e.startsWith(st)?(r.var.push(a),i.push(ot),n.push(e)):(r.number.push(a),i.push(it),n.push(parseFloat(e))),++a,ct)).split(ct),indexes:r,types:i}}function dt(e){return ut(e).values}function ft({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===it?i+=Ve(r[a]):e===at?i+=L.transform(r[a]):i+=r[a]}return i}}function pt(e){return ft(ut(e))}var mt=e=>typeof e==`number`?0:L.test(e)?L.getAnimatableNone(e):e,ht=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:mt(e);function gt(e){let t=ut(e);return ft(t)(t.values.map((e,n)=>ht(e,t.split[n])))}var R={test:rt,parse:dt,createTransformer:pt,getAnimatableNone:gt};function _t(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=_t(s,r,e+1/3),a=_t(s,r,e),o=_t(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function yt(e,t){return n=>n>0?t:e}var z=(e,t,n)=>e+(t-e)*n,bt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},xt=[Xe,N,tt],St=e=>xt.find(t=>t.test(e));function Ct(e){let t=St(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===tt&&(n=vt(n)),n}var wt=(e,t)=>{let n=Ct(e),r=Ct(t);if(!n||!r)return yt(e,t);let i={...n};return e=>(i.red=bt(n.red,r.red,e),i.green=bt(n.green,r.green,e),i.blue=bt(n.blue,r.blue,e),i.alpha=z(n.alpha,r.alpha,e),N.transform(i))},Tt=new Set([`none`,`hidden`]);function Et(e,t){return Tt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Dt(e,t){return n=>z(e,t,n)}function Ot(e){return typeof e==`number`?Dt:typeof e==`string`?Fe(e)?yt:L.test(e)?wt:Mt:Array.isArray(e)?kt:typeof e==`object`?L.test(e)?wt:At:yt}function kt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ot(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function At(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ot(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function jt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Mt=(e,t)=>{let n=R.createTransformer(t),r=ut(e),i=ut(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Tt.has(e)&&!i.values.length||Tt.has(t)&&!r.values.length?Et(e,t):w(kt(jt(r,i),i.values),n):(`${e}${t}`,yt(e,t))};function Nt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?z(e,t,n):Ot(e)(e,t)}var Pt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>A(t),now:()=>j.isProcessing?j.timestamp:M.now()}},Ft=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},It=2e4;function Lt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Rt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Lt(r),It);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:D(i)}}var B={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function zt(e,t){return e*Math.sqrt(1-t*t)}var Bt=12;function Vt(e,t,n){let r=n;for(let n=1;n<Bt;n++)r-=e(r)/t(r);return r}var Ht=.001;function Ut({duration:e=B.duration,bounce:t=B.bounce,velocity:n=B.velocity,mass:r=B.mass}){let i,a;B.maxDuration;let o=1-t;o=_(B.minDamping,B.maxDamping,o),e=_(B.minDuration,B.maxDuration,D(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=zt(t,o),c=Math.exp(-i);return Ht-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=zt(t**2,o);return(-i(t)+Ht>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-Ht+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Vt(i,a,s);if(e=E(e),isNaN(c))return{stiffness:B.stiffness,damping:B.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Wt=[`duration`,`bounce`],Gt=[`stiffness`,`damping`,`mass`];function Kt(e,t){return t.some(t=>e[t]!==void 0)}function qt(e){let t={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...e};if(!Kt(e,Gt)&&Kt(e,Wt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*_(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:B.mass,stiffness:i,damping:a}}else{let n=Ut({...e,velocity:0});t={...t,...n,mass:B.mass},t.isResolvedFromDuration=!0}return t}function Jt(e=B.visualDuration,t=B.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=qt({...n,velocity:-D(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=D(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?B.restSpeed.granular:B.restSpeed.default,i||=v?B.restDelta.granular:B.restDelta.default;let y,b,x,S,C,w;if(h<1)x=zt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>E(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=E(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=E(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Lt(T),It),t=Ft(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Jt.applyToOptions=e=>{let t=Rt(e,100,Jt);return e.ease=t.ease,e.duration=E(t.duration),e.type=`keyframes`,e};var Yt=5;function Xt(e,t,n){let r=Math.max(t-Yt,0);return te(n-e(r),t-r)}function Zt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Jt({keyframes:[f.value,m(f.value)],velocity:Xt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Qt(e,t,n){let r=[],i=n||v.mix||Nt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=w(Array.isArray(t)?t[n]||C:t,a)),r.push(a)}return r}function $t(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Qt(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=T(e[r],e[r+1],n);return s[r](i)};return n?t=>l(_(e[0],e[a-1],t)):l}function en(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=T(0,t,r);e.push(z(n,1,i))}}function tn(e){let t=[0];return en(t,e.length-1),t}function nn(e,t){return e.map(e=>e*t)}function rn(e,t){return e.map(()=>t||ve).splice(0,e.length-1)}function an({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ye(r)?r.map(Ce):Ce(r),a={done:!1,value:t[0]},o=$t(nn(n&&n.length===t.length?n:tn(t),e),t,{ease:Array.isArray(i)?i:rn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var on=e=>e!==null;function sn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(on),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var cn={decay:Zt,inertia:Zt,tween:an,keyframes:an,spring:Jt};function ln(e){typeof e.type==`string`&&(e.type=cn[e.type])}var un=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},dn=e=>e/100,fn=class extends un{constructor(e){super(),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:e}=this.options;e&&e.updatedAt!==M.now()&&this.tick(M.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},je.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;ln(e);let{type:t=an,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||an;s!==an&&typeof o[0]!=`number`&&(this.mixKeyframes=w(dn,Nt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Lt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(b=a)),y=_(0,1,n)*o}let x;v?(this.delayState.value=l[0],x=this.delayState):x=b.next(y),i&&!v&&(x.value=i(x.value));let{done:S}=x;!v&&s!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&p!==Zt&&(x.value=sn(l,this.options,h,this.speed)),m&&m(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return D(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+D(e)}get time(){return D(this.currentTime)}set time(e){e=E(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Xt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(M.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=D(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Pt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(M.now()),this.holdTime=this.currentTime}complete(){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,je.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function pn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var V=e=>e*180/Math.PI,mn=e=>gn(V(Math.atan2(e[1],e[0]))),hn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:mn,rotateZ:mn,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gn=e=>(e%=360,e<0&&(e+=360),e),_n=mn,vn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vn,scaleY:yn,scale:e=>(vn(e)+yn(e))/2,rotateX:e=>gn(V(Math.atan2(e[6],e[5]))),rotateY:e=>gn(V(Math.atan2(-e[2],e[0]))),rotateZ:_n,rotate:_n,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xn(e){return+!!e.includes(`scale`)}function Sn(e,t){if(!e||e===`none`)return xn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=bn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hn,i=t}if(!i)return xn(t);let a=r[t],o=i[1].split(`,`).map(wn);return typeof a==`function`?a(o):o[a]}var Cn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Sn(n,t)};function wn(e){return parseFloat(e.trim())}var Tn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],En=new Set([...Tn,`pathRotation`]),Dn=e=>e===Re||e===I,On=new Set([`x`,`y`,`z`]),kn=Tn.filter(e=>!On.has(e));function An(e){let t=[];return kn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Sn(t,`x`),y:(e,{transform:t})=>Sn(t,`y`)};H.translateX=H.x,H.translateY=H.y;var jn=new Set,Mn=!1,Nn=!1,Pn=!1;function Fn(){if(Nn){let e=Array.from(jn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=An(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Nn=!1,Mn=!1,jn.forEach(e=>e.complete(Pn)),jn.clear()}function In(){jn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nn=!0)})}function Ln(){Pn=!0,In(),Fn(),Pn=!1}var Rn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(jn.add(this),Mn||(Mn=!0,k.read(In),k.resolveKeyframes(Fn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}pn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),jn.delete(this)}cancel(){this.state===`scheduled`&&(jn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},zn=e=>e.startsWith(`--`);function Bn(e,t,n){zn(t)?e.style.setProperty(t,n):e.style[t]=n}var Vn={};function Hn(e,t){let n=S(e);return()=>Vn[t]??n()}var Un=Hn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Wn=Hn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Gn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Kn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Gn([0,.65,.55,1]),circOut:Gn([.55,0,1,.45]),backIn:Gn([.31,.01,.66,-.59]),backOut:Gn([.33,1.53,.69,.99])};function qn(e,t){if(e)return typeof e==`function`?Wn()?Ft(e,t):`ease-out`:be(e)?Gn(e):Array.isArray(e)?e.map(e=>qn(e,t)||Kn.easeOut):Kn[e]}function Jn(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=qn(s,i);Array.isArray(d)&&(u.easing=d),O.value&&je.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return O.value&&p.finished.finally(()=>{je.waapi--}),p}function Yn(e){return typeof e==`function`&&`applyToOptions`in e}function Xn({type:e,...t}){return Yn(e)&&Wn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Zn=class extends un{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Xn(e);this.animation=Jn(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=sn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Bn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(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{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return D(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+D(e)}get time(){return D(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=E(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Un()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),C):r(this)}},Qn={anticipate:fe,backInOut:de,circInOut:he};function $n(e){return e in Qn}function er(e){typeof e.ease==`string`&&$n(e.ease)&&(e.ease=Qn[e.ease])}var tr=10,nr=class extends Zn{constructor(e){er(e),ln(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new fn({...a,autoplay:!1}),s=Math.max(tr,M.now()-this.startTime),c=_(0,tr,s-tr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Bn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},rr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function ir(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ar(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=rr(i,t),s=rr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:ir(e)||(n===`spring`||Yn(n))&&r}function or(e){e.duration=0,e.type=`keyframes`}var sr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),cr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function lr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&cr.test(e[t]))return!0;return!1}var ur=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),dr=S(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function fr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return dr()&&n&&(sr.has(n)||ur.has(n)&&lr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var pr=40,mr=class extends un{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=M.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Rn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=M.now();let u=!0;ar(e,i,a,o)||(u=!1,(v.instantAnimations||!s)&&l?.(sn(e,n,t)),e[0]=e[e.length-1],or(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>pr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&fr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new nr({...d,element:p})}catch{m=new fn(d)}else m=new fn(d);m.finished.then(()=>{this.notifyFinished()}).catch(C),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ln()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function hr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var gr=30,_r=e=>!isNaN(parseFloat(e)),vr={current:void 0},yr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=M.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=M.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_r(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ee);let n=this.events[e].add(t);return e===`change`?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return vr.current&&vr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=M.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>gr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,gr);return te(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function br(e,t){return new yr(e,t)}function xr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Sr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:xr(n,e)}var Cr={type:`spring`,stiffness:500,damping:25,restSpeed:10},wr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tr={type:`keyframes`,duration:.8},Er={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Dr=(e,{keyframes:t})=>t.length>2?Tr:En.has(e)?e.startsWith(`scale`)?wr(t[1]):Cr:Er,Or=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function kr(e){for(let t in e)if(!Or.has(t))return!0;return!1}var Ar=(e,t,n,r={},i,a)=>o=>{let s=Sr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=E(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};kr(s)||Object.assign(u,Dr(e,u)),u.duration&&=E(u.duration),u.repeatDelay&&=E(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(or(u),u.delay===0&&(d=!0)),(v.instantAnimations||v.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,or(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=sn(u.keyframes,s);if(e!==void 0){k.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new fn(u):new mr(u)},jr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Mr(e){let t=jr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Nr(e,t,n=1){`${e}`;let[r,i]=Mr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return y(e)?parseFloat(e):e}return Fe(i)?Nr(i,t,n+1):i}function Pr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Fr(e,t,n,r){if(typeof t==`function`){let[i,a]=Pr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Pr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function U(e,t,n){let r=e.getProps();return Fr(r,t,n===void 0?r.custom:n,e)}var Ir=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Tn]),Lr=e=>Array.isArray(e);function Rr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,br(n))}function zr(e){return Lr(e)?e[e.length-1]||0:e}function Br(e,t){let{transitionEnd:n={},transition:r={},...i}=U(e,t)||{};i={...i,...n};for(let t in i)Rr(e,t,zr(i[t]))}var W=e=>!!(e&&e.getVelocity);function Vr(e){return!!(W(e)&&e.add)}function Hr(e,t){let n=e.getValue(`willChange`);if(Vr(n))return n.add(t);if(!n&&v.WillChange){let n=new v.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ur(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Wr=`data-`+Ur(`framerAppearId`);function Gr(e){return e.props[Wr]}function Kr({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function qr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?xr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Kr(f,t))continue;let o={delay:n,...Sr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Gr(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,p=!0)}}Hr(e,t);let m=l??e.shouldReduceMotion;r.start(Ar(t,r,i,m&&Ir.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>k.update(()=>{o&&Br(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Jr(e,t,n={}){let r=U(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(qr(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Yr(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Yr(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Jr(c,t,{...o,delay:n+(typeof r==`function`?0:r)+hr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Xr(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Jr(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Jr(e,t,n);else{let i=typeof t==`function`?U(e,t,n.custom):t;r=Promise.all(qr(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Zr={test:e=>e===`auto`,parse:e=>e},Qr=e=>t=>t.test(e),$r=[Re,I,F,P,$e,Qe,Zr],ei=e=>$r.find(Qr(e));function ti(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||x(e)}var ni=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ri(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(He)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ni.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ii=/\b([a-z-]*)\(.*?\)/gu,ai={...R,getAnimatableNone:e=>{let t=e.match(ii);return t?t.map(ri).join(` `):e}},oi={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},si={...Re,transform:Math.round},ci={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,top:I,right:I,bottom:I,left:I,inset:I,insetBlock:I,insetBlockStart:I,insetBlockEnd:I,insetInline:I,insetInlineStart:I,insetInlineEnd:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,paddingBlock:I,paddingBlockStart:I,paddingBlockEnd:I,paddingInline:I,paddingInlineStart:I,paddingInlineEnd:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,marginBlock:I,marginBlockStart:I,marginBlockEnd:I,marginInline:I,marginInlineStart:I,marginInlineEnd:I,fontSize:I,backgroundPositionX:I,backgroundPositionY:I,rotate:P,pathRotation:P,rotateX:P,rotateY:P,rotateZ:P,scale:Be,scaleX:Be,scaleY:Be,scaleZ:Be,skew:P,skewX:P,skewY:P,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:ze,originX:et,originY:et,originZ:I,zIndex:si,fillOpacity:ze,strokeOpacity:ze,numOctaves:si},li={...ci,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ai,WebkitFilter:ai,mask:oi,WebkitMask:oi},ui=e=>li[e],di=new Set([ai,oi]);function fi(e,t){let n=ui(e);return di.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var pi=new Set([`auto`,`none`,`0`]);function mi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!pi.has(t)&&ut(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=fi(n,i)}var hi=class extends Rn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Fe(r))){let i=Nr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ir.has(n)||e.length!==2)return;let[r,i]=e,a=ei(r),o=ei(i);if(Le(r)!==Le(i)&&H[n]){this.needsMeasurement=!0;return}if(a!==o)if(Dn(a)&&Dn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else H[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ti(e[t]))&&n.push(t);n.length&&mi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=H[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=H[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function gi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var _i=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function vi(e){return b(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:yi,cancel:bi}=De(queueMicrotask,!1),G={x:!1,y:!1};function xi(){return G.x||G.y}function Si(e){return e===`x`||e===`y`?G[e]?null:(G[e]=!0,()=>{G[e]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function Ci(e,t){let n=gi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function wi(e){return!(e.pointerType===`touch`||xi())}function Ti(e,t,n={}){let[r,i,a]=Ci(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!wi(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ei=(e,t)=>t?e===t?!0:Ei(e,t.parentElement):!1,Di=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Oi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ki(e){return Oi.has(e.tagName)||e.isContentEditable===!0}var Ai=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ji(e){return Ai.has(e.tagName)||e.isContentEditable===!0}var Mi=new WeakSet;function Ni(e){return t=>{t.key===`Enter`&&e(t)}}function Pi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Fi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Ni(()=>{if(Mi.has(n))return;Pi(n,`down`);let e=Ni(()=>{Pi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Pi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ii(e){return Di(e)&&!xi()}var Li=new WeakSet;function Ri(e,t,n={}){let[r,i,a]=Ci(e,n),o=e=>{let r=e.currentTarget;if(!Ii(e)||Li.has(e))return;Mi.add(r),n.stopPropagation&&Li.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),Mi.has(r)&&Mi.delete(r),Ii(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ei(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),vi(e)&&(e.addEventListener(`focus`,e=>Fi(e,i)),!ki(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function zi(e){return b(e)&&`ownerSVGElement`in e}var Bi=new WeakMap,Vi,Hi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:zi(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Ui=Hi(`inline`,`width`,`offsetWidth`),Wi=Hi(`block`,`height`,`offsetHeight`);function Gi({target:e,borderBoxSize:t}){Bi.get(e)?.forEach(n=>{n(e,{get width(){return Ui(e,t)},get height(){return Wi(e,t)}})})}function Ki(e){e.forEach(Gi)}function qi(){typeof ResizeObserver>`u`||(Vi=new ResizeObserver(Ki))}function Ji(e,t){Vi||qi();let n=gi(e);return n.forEach(e=>{let n=Bi.get(e);n||(n=new Set,Bi.set(e,n)),n.add(t),Vi?.observe(e)}),()=>{n.forEach(e=>{let n=Bi.get(e);n?.delete(t),n?.size||Vi?.unobserve(e)})}}var Yi=new Set,Xi;function Zi(){Xi=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Yi.forEach(t=>t(e))},window.addEventListener(`resize`,Xi)}function Qi(e){return Yi.add(e),Xi||Zi(),()=>{Yi.delete(e),!Yi.size&&typeof Xi==`function`&&(window.removeEventListener(`resize`,Xi),Xi=void 0)}}function $i(e,t){return typeof e==`function`?Qi(e):Ji(e,t)}function ea(e){return zi(e)&&e.tagName===`svg`}var ta=[...$r,L,R],na=e=>ta.find(Qr(e)),ra=()=>({translate:0,scale:1,origin:0,originPoint:0}),ia=()=>({x:ra(),y:ra()}),aa=()=>({min:0,max:0}),K=()=>({x:aa(),y:aa()}),oa=new WeakMap;function sa(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function ca(e){return typeof e==`string`||Array.isArray(e)}var la=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ua=[`initial`,...la];function da(e){return sa(e.animate)||ua.some(t=>ca(e[t]))}function fa(e){return!!(da(e)||e.variants)}function pa(e,t,n){for(let r in t){let i=t[r],a=n[r];if(W(i))e.addValue(r,i);else if(W(a))e.addValue(r,br(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,br(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ma=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ha={};function ga(e){ha=e}function _a(){return ha}var va=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Rn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=M.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,k.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=da(t),this.isVariantNode=fa(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&W(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,oa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(o.current||c(),this.shouldReduceMotion=s.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(),A(this.notifyUpdate),A(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&sr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Zn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:E(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=En.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&k.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ha){let t=ha[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ma.length;t++){let n=ma[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=pa(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=br(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(y(n)||x(n))?n=parseFloat(n):!na(n)&&R.test(t)&&(n=fi(e,t)),this.setBaseTarget(e,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Fr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ee),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){yi.render(this.render)}},ya=class extends va{constructor(){super(...arguments),this.KeyframeResolver=hi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;W(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},q=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ba({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Sa(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ca(e){return e===void 0||e===1}function wa({scale:e,scaleX:t,scaleY:n}){return!Ca(e)||!Ca(t)||!Ca(n)}function J(e){return wa(e)||Ta(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ta(e){return Ea(e.x)||Ea(e.y)}function Ea(e){return e&&e!==`0%`}function Da(e,t,n){return n+t*(e-n)}function Oa(e,t,n,r,i){return i!==void 0&&(e=Da(e,i,r)),Da(e,n,r)+t}function ka(e,t=0,n=1,r,i){e.min=Oa(e.min,t,n,r,i),e.max=Oa(e.max,t,n,r,i)}function Aa(e,{x:t,y:n}){ka(e.x,t.translate,t.scale,t.originPoint),ka(e.y,n.translate,n.scale,n.originPoint)}var ja=.999999999999,Ma=1.0000000000001;function Na(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Y(e.x,-a.scroll.offset.x),Y(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Aa(e,o)),r&&J(a.latestValues)&&Ia(e,a.latestValues,a.layout?.layoutBox))}t.x<Ma&&t.x>ja&&(t.x=1),t.y<Ma&&t.y>ja&&(t.y=1)}function Y(e,t){e.min+=t,e.max+=t}function Pa(e,t,n,r,i=.5){ka(e,t,n,z(e.min,e.max,i),r)}function Fa(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ia(e,t,n){let r=n??e;Pa(e.x,Fa(t.x,r.x),t.scaleX,t.scale,t.originX),Pa(e.y,Fa(t.y,r.y),t.scaleY,t.scale,t.originY)}function La(e,t){return ba(Sa(e.getBoundingClientRect(),t))}function Ra(e,t,n){let r=La(e,n),{scroll:i}=t;return i&&(Y(r.x,i.offset.x),Y(r.y,i.offset.y)),r}var za={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ba=Tn.length;function Va(e,t,n){let r=``,i=!0;for(let a=0;a<Ba;a++){let o=Tn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=_i(s,ci[o]);if(!c){i=!1;let t=za[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${_i(a,ci.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Ha(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(En.has(e)){o=!0;continue}else if(Ne(e)){i[e]=n;continue}else{let t=_i(n,ci[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Va(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Ua(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Wa(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ga={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(I.test(e))e=parseFloat(e);else return e;return`${Wa(e,t.target.x)}% ${Wa(e,t.target.y)}%`}},Ka={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=R.parse(e);if(i.length>5)return r;let a=R.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=z(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},qa={borderRadius:{...Ga,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Ga,borderTopRightRadius:Ga,borderBottomLeftRadius:Ga,borderBottomRightRadius:Ga,boxShadow:Ka};function Ja(e,{layout:t,layoutId:n}){return En.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!qa[e]||e===`opacity`)}function Ya(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(W(r[t])||i&&W(i[t])||Ja(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Xa(e){return window.getComputedStyle(e)}var Za=class extends ya{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ua}readValueFromInstance(e,t){if(En.has(t))return this.projection?.isProjecting?xn(t):Cn(e,t);{let n=Xa(e),r=(Ne(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return La(e,t)}build(e,t,n){Ha(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ya(e,t,n)}},Qa={offset:`stroke-dashoffset`,array:`stroke-dasharray`},$a={offset:`strokeDashoffset`,array:`strokeDasharray`};function eo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Qa:$a;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var to=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function no(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Ha(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of to)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&eo(d,i,a,o,!1)}var ro=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`]),io=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ao(e,t,n,r){Ua(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(ro.has(n)?n:Ur(n),t.attrs[n])}function oo(e,t,n){let r=Ya(e,t,n);for(let n in e)if(W(e[n])||W(t[n])){let t=Tn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var so=class extends ya{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(En.has(t)){let e=ui(t);return e&&e.default||0}return t=ro.has(t)?t:Ur(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return oo(e,t,n)}build(e,t,n){no(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ao(e,t,n,r)}mount(e){this.isSVGTag=io(e.tagName),super.mount(e)}},co=ua.length;function lo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&lo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<co;n++){let r=ua[n],i=e.props[r];(ca(i)||i===!1)&&(t[r]=i)}return t}function uo(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var fo=[...la].reverse(),po=la.length;function mo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Xr(e,t,n)))}function ho(e){let t=mo(e),n=_o(),r=!0,i=!1,a=t=>(n,r)=>{let i=U(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=lo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<po;t++){let p=fo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=ca(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||sa(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=go(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},ee=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Lr(t)&&Lr(n)?!uo(t,n)||y:t!==n,r?t==null?u.add(e):ee(e):t!==void 0&&u.has(e)?ee(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let E=v&&y;b&&(!E||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=U(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=hr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=U(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_o(),i=!0}}}function go(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!uo(t,e):!1}function X(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _o(){return{animate:X(!0),whileInView:X(),whileHover:X(),whileTap:X(),whileDrag:X(),whileFocus:X(),exit:X()}}function vo(e,t){e.min=t.min,e.max=t.max}function Z(e,t){vo(e.x,t.x),vo(e.y,t.y)}function yo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var bo=1e-4,xo=1-bo,So=1+bo,Co=.01,wo=0-Co,To=0+Co;function Q(e){return e.max-e.min}function Eo(e,t,n){return Math.abs(e-t)<=n}function Do(e,t,n,r=.5){e.origin=r,e.originPoint=z(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xo&&e.scale<=So||isNaN(e.scale))&&(e.scale=1),(e.translate>=wo&&e.translate<=To||isNaN(e.translate))&&(e.translate=0)}function Oo(e,t,n,r){Do(e.x,t.x,n.x,r?r.originX:void 0),Do(e.y,t.y,n.y,r?r.originY:void 0)}function ko(e,t,n,r=0){e.min=(r?z(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Ao(e,t,n,r){ko(e.x,t.x,n.x,r?.x),ko(e.y,t.y,n.y,r?.y)}function jo(e,t,n,r=0){let i=r?z(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Mo(e,t,n,r){jo(e.x,t.x,n.x,r?.x),jo(e.y,t.y,n.y,r?.y)}function No(e,t,n,r,i){return e-=t,e=Da(e,1/n,r),i!==void 0&&(e=Da(e,1/i,r)),e}function Po(e,t=0,n=1,r=.5,i,a=e,o=e){if(F.test(t)&&(t=parseFloat(t),t=z(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=z(a.min,a.max,r);e===a&&(s-=t),e.min=No(e.min,t,n,s,i),e.max=No(e.max,t,n,s,i)}function Fo(e,t,[n,r,i],a,o){Po(e,t[n],t[r],t[i],t.scale,a,o)}var Io=[`x`,`scaleX`,`originX`],Lo=[`y`,`scaleY`,`originY`];function Ro(e,t,n,r){Fo(e.x,t,Io,n?n.x:void 0,r?r.x:void 0),Fo(e.y,t,Lo,n?n.y:void 0,r?r.y:void 0)}function zo(e){return e.translate===0&&e.scale===1}function Bo(e){return zo(e.x)&&zo(e.y)}function Vo(e,t){return e.min===t.min&&e.max===t.max}function Ho(e,t){return Vo(e.x,t.x)&&Vo(e.y,t.y)}function Uo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wo(e,t){return Uo(e.x,t.x)&&Uo(e.y,t.y)}function Go(e){return Q(e.x)/Q(e.y)}function Ko(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}function qo(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Jo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],Yo=Jo.length,Xo=e=>typeof e==`string`?parseFloat(e):e,Zo=e=>typeof e==`number`||I.test(e);function Qo(e,t,n,r,i,a){i?(e.opacity=z(0,n.opacity??1,es(r)),e.opacityExit=z(t.opacity??1,0,ts(r))):a&&(e.opacity=z(t.opacity??1,n.opacity??1,r));for(let i=0;i<Yo;i++){let a=Jo[i],o=$o(t,a),s=$o(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Zo(o)===Zo(s)?(e[a]=Math.max(z(Xo(o),Xo(s),r),0),(F.test(s)||F.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=z(t.rotate||0,n.rotate||0,r))}function $o(e,t){return e[t]===void 0?e.borderRadius:e[t]}var es=ns(0,.5,me),ts=ns(.5,.95,C);function ns(e,t,n){return r=>r<e?0:r>t?1:n(T(e,t,r))}function rs(e,t,n){let r=W(e)?e:br(e);return r.start(Ar(``,r,t,n)),r.animation}function is(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var as=(e,t)=>e.depth-t.depth,os=class{constructor(){this.children=[],this.isDirty=!1}add(e){h(this.children,e),this.isDirty=!0}remove(e){g(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(as),this.isDirty=!1,this.children.forEach(e)}};function ss(e,t){let n=M.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(A(r),e(a-t))};return k.setup(r,!0),()=>A(r)}function cs(e){return W(e)?e.get():e}var ls=class{constructor(){this.members=[]}add(e){h(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(g(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(g(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},us={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ds={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},fs=[``,`X`,`Y`,`Z`],ps=1e3,ms=0;function hs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Gr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,k,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gs(r)}function _s({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ms++,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=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,O.value&&(ds.nodes=ds.calculatedTargetDeltas=ds.calculatedProjections=0),this.nodes.forEach(bs),this.nodes.forEach(ks),this.nodes.forEach(As),this.nodes.forEach(xs),O.addProjectionMetrics&&O.addProjectionMetrics(ds)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new os)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ee),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=zi(t)&&!ea(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;k.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ss(i,250),us.hasAnimatedSinceResize&&(us.hasAnimatedSinceResize=!1,this.nodes.forEach(Os)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ls,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Wo(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Sr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Os(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),A(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(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(js),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ws),this.nodes.forEach(Cs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ts);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Es),this.nodes.forEach(Ds),this.nodes.forEach(vs),this.nodes.forEach(ys)):this.nodes.forEach(Ts),this.clearAllSnapshots();let e=M.now();j.delta=_(0,1e3/60,e-j.timestamp),j.timestamp=e,j.isProcessing=!0,Oe.update.process(j),Oe.preRender.process(j),Oe.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ss),this.sharedNodes.forEach(Ms)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=K(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Bo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||J(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Vs(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Us))){let{scroll:e}=this.root;e&&(Y(t.x,e.offset.x),Y(t.y,e.offset.y))}return t}removeElementScroll(e){let t=K();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),Y(t.x,i.offset.x),Y(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||K();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Y(r.x,-n.scroll.offset.x),Y(r.y,-n.scroll.offset.y)),J(n.latestValues)&&Ia(r,n.latestValues,n.layout?.layoutBox)}return J(this.latestValues)&&Ia(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=K();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!J(n.latestValues))continue;let r;n.instance&&(wa(n.latestValues)&&n.updateSnapshot(),r=K(),Z(r,n.measurePageBox())),Ro(t,n.latestValues,n.snapshot?.layoutBox,r)}return J(this.latestValues)&&Ro(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}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(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=j.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ao(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),Aa(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),O.value&&ds.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||wa(this.parent.latestValues)||Ta(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),Mo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===j.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Na(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=K());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yo(this.prevProjectionDelta.x,this.projectionDelta.x),yo(this.prevProjectionDelta.y,this.projectionDelta.y)),Oo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ko(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ko(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),O.value&&ds.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ia(),this.projectionDelta=ia(),this.projectionDeltaWithTransform=ia()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=ia();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=K(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Is));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=z(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=z(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Ns(o.x,e.x,n),Ns(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Fs(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ho(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=K(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,Qo(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(A(this.pendingAnimation),void 0),this.pendingAnimation=k.update(()=>{us.hasAnimatedSinceResize=!0,je.layout++,this.motionValue||=br(0),this.motionValue.jump(0,!1),this.currentAnimation=rs(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{je.layout--},onComplete:()=>{je.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ps),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Hs(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||K();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),Ia(t,i),Oo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ls),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&hs(`z`,e,r,this.animationValues);for(let t=0;t<fs.length;t++)hs(`rotate${fs[t]}`,e,r,this.animationValues),hs(`skew${fs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=cs(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=cs(t?.pointerEvents)||``),this.hasProjected&&!J(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=qo(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in qa){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=qa[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?cs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Cs),this.root.sharedNodes.clear()}}}function vs(e){e.updateLayout()}function ys(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;vo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Hs(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=ia();Oo(o,n,t.layoutBox);let s=ia();a?Oo(s,e.applyTransform(r,!0),t.measuredBox):Oo(s,n,t.layoutBox);let c=!Bo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=K();Mo(s,t.layoutBox,i.layoutBox,o);let c=K();Mo(c,n,a.layoutBox,o),Wo(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function bs(e){O.value&&ds.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function xs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ss(e){e.clearSnapshot()}function Cs(e){e.clearMeasurements()}function ws(e){e.isLayoutDirty=!0,e.updateLayout()}function Ts(e){e.isLayoutDirty=!1}function Es(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ds(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Os(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ks(e){e.resolveTargetDelta()}function As(e){e.calcProjection()}function js(e){e.resetSkewAndRotation()}function Ms(e){e.removeLeadSnapshot()}function Ns(e,t,n){e.translate=z(t.translate,0,n),e.scale=z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ps(e,t,n,r){e.min=z(t.min,n.min,r),e.max=z(t.max,n.max,r)}function Fs(e,t,n,r){Ps(e.x,t.x,n.x,r),Ps(e.y,t.y,n.y,r)}function Is(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ls={duration:.45,ease:[.4,0,.1,1]},Rs=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zs=Rs(`applewebkit/`)&&!Rs(`chrome/`)?Math.round:C;function Bs(e){e.min=zs(e.min),e.max=zs(e.max)}function Vs(e){Bs(e.x),Bs(e.y)}function Hs(e,t,n){return e===`position`||e===`preserve-aspect`&&!Eo(Go(t),Go(n),.2)}function Us(e){return e!==e.root&&e.scroll?.wasRoot}var Ws=_s({attachResizeListener:(e,t)=>is(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gs={current:void 0},Ks=_s({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gs.current){let e=new Ws({});e.mount(window),e.setOptions({layoutScroll:!0}),Gs.current=e}return Gs.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),qs=(0,u.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Js(e=!0){let t=(0,u.useContext)(m);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,u.useId)();(0,u.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,u.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Ys=(0,u.createContext)({strict:!1}),Xs={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`]},Zs=!1;function Qs(){if(Zs)return;let e={};for(let t in Xs)e[t]={isEnabled:e=>Xs[t].some(t=>!!e[t])};ga(e),Zs=!0}function $s(){return Qs(),_a()}function ec(e){let t=$s();for(let n in e)t[n]={...t[n],...e[n]};ga(t)}var tc=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`.split(`.`));function nc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||tc.has(e)}var rc=r({default:()=>ic}),ic,ac=t((()=>{throw ic={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),oc=e=>!nc(e);function sc(e){typeof e==`function`&&(oc=t=>t.startsWith(`on`)?!nc(t):e(t))}try{sc((ac(),e(rc)).default)}catch{}function cc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||W(e[i])||(oc(i)||n===!0&&nc(i)||!t&&!nc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var lc=(0,u.createContext)({});function uc(e,t){if(da(e)){let{initial:t,animate:n}=e;return{initial:t===!1||ca(t)?t:void 0,animate:ca(n)?n:void 0}}return e.inherit===!1?{}:t}function dc(e){let{initial:t,animate:n}=uc(e,(0,u.useContext)(lc));return(0,u.useMemo)(()=>({initial:t,animate:n}),[fc(t),fc(n)])}function fc(e){return Array.isArray(e)?e.join(` `):e}var pc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mc(e,t,n){for(let r in t)!W(t[r])&&!Ja(r,n)&&(e[r]=t[r])}function hc({transformTemplate:e},t){return(0,u.useMemo)(()=>{let n=pc();return Ha(n,t,e),Object.assign({},n.vars,n.style)},[t])}function gc(e,t){let n=e.style||{},r={};return mc(r,n,e),Object.assign(r,hc(e,t)),r}function _c(e,t){let n={},r=gc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var vc=()=>({...pc(),attrs:{}});function yc(e,t,n,r){let i=(0,u.useMemo)(()=>{let n=vc();return no(n,t,io(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};mc(t,e.style,e),i.style={...t,...i.style}}return i}var bc=[`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 xc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(bc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??xc(e)?yc:_c)(t,r,i,e),c=cc(t,typeof e==`string`,a),l=e===u.Fragment?{}:{...c,...s,ref:n},{children:d}=t,f=(0,u.useMemo)(()=>W(d)?d.get():d,[d]);return(0,u.createElement)(e,{...l,children:f})}function Cc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:wc(n,r,i,e),renderState:t()}}function wc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=cs(a[e]);let{initial:o,animate:s}=e,c=da(e),l=fa(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!sa(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Fr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Tc=e=>(t,n)=>{let r=(0,u.useContext)(lc),i=(0,u.useContext)(m),a=()=>Cc(e,t,r,i);return n?a():f(a)},Ec=Tc({scrapeMotionValuesFromProps:Ya,createRenderState:pc}),Dc=Tc({scrapeMotionValuesFromProps:oo,createRenderState:vc}),Oc=Symbol.for(`motionComponentSymbol`);function kc(e,t,n){let r=(0,u.useRef)(n);(0,u.useInsertionEffect)(()=>{r.current=n});let i=(0,u.useRef)(null);return(0,u.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Ac=(0,u.createContext)({});function jc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Mc(e,t,n,r,i,a){let{visualElement:o}=(0,u.useContext)(lc),s=(0,u.useContext)(Ys),c=(0,u.useContext)(m),l=(0,u.useContext)(qs),d=l.reducedMotion,f=l.skipAnimations,h=(0,u.useRef)(null),g=(0,u.useRef)(!1);r||=s.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:a}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let _=h.current,v=(0,u.useContext)(Ac);_&&!_.projection&&i&&(_.type===`html`||_.type===`svg`)&&Nc(h.current,n,i,v);let y=(0,u.useRef)(!1);(0,u.useInsertionEffect)(()=>{_&&y.current&&_.update(n,c)});let b=n[Wr],x=(0,u.useRef)(!!b&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return p(()=>{g.current=!0,_&&(y.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),x.current&&_.animationState&&_.animationState.animateChanges())}),(0,u.useEffect)(()=>{_&&(!x.current&&_.animationState&&_.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),!1),_.enteringChildren=void 0)}),_}function Nc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Pc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&jc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Pc(e){if(e)return e.options.allowProjection===!1?Pc(e.parent):e.projection}function Fc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ec(r);let a=n?n===`svg`:xc(e),o=a?Dc:Ec;function s(n,s){let c,d={...(0,u.useContext)(qs),...n,layoutId:Ic(n)},{isStatic:f}=d,p=dc(n),m=o(n,f);if(!f&&typeof window<`u`){Lc(d,r);let t=Rc(d);c=t.MeasureLayout,p.visualElement=Mc(e,m,d,i,t.ProjectionNode,a)}return(0,l.jsxs)(lc.Provider,{value:p,children:[c&&p.visualElement?(0,l.jsx)(c,{visualElement:p.visualElement,...d}):null,Sc(e,n,kc(m,p.visualElement,s),m,f,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,u.forwardRef)(s);return c[Oc]=e,c}function Ic({layoutId:e}){let t=(0,u.useContext)(d).id;return t&&e!==void 0?t+`-`+e:e}function Lc(e,t){(0,u.useContext)(Ys).strict}function Rc(e){let{drag:t,layout:n}=$s();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function zc(e,t){if(typeof Proxy>`u`)return Fc;let n=new Map,r=(n,r)=>Fc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Fc(a,void 0,e,t)),n.get(a))})}var Bc=(e,t)=>t.isSVG??xc(e)?new so(t):new Za(t,{allowProjection:e!==u.Fragment}),Vc=class extends q{constructor(e){super(e),e.animationState||=ho(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();sa(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Hc=0,Uc={animation:{Feature:Vc},exit:{Feature:class extends q{constructor(){super(...arguments),this.id=Hc++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=U(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Wc(e){return{point:{x:e.pageX,y:e.pageY}}}var Gc=e=>t=>Di(t)&&e(t,Wc(t));function Kc(e,t,n,r){return is(e,t,Gc(n),r)}var qc=({current:e})=>e?e.ownerDocument.defaultView:null,Jc=(e,t)=>Math.abs(e-t);function Yc(e,t){let n=Jc(e.x,t.x),r=Jc(e.y,t.y);return Math.sqrt(n**2+r**2)}var Xc=new Set([`auto`,`scroll`]),Zc=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Qc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=el(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Yc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=j;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Qc(t,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=el(e.type===`pointercancel`?this.lastMoveEventInfo:Qc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Di(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Qc(Wc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=j;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,el(s,this.history)),this.removeListeners=w(Kc(this.contextWindow,`pointermove`,this.handlePointerMove),Kc(this.contextWindow,`pointerup`,this.handlePointerUp),Kc(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Xc.has(e.overflowX)||Xc.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),k.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),A(this.updatePoint)}};function Qc(e,t){return t?{point:t(e.point)}:e}function $c(e,t){return{x:e.x-t.x,y:e.y-t.y}}function el({point:e},t){return{point:e,delta:$c(e,nl(t)),offset:$c(e,tl(t)),velocity:rl(t,.1)}}function tl(e){return e[0]}function nl(e){return e[e.length-1]}function rl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>E(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>E(t)*2&&(r=e[1]);let a=D(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function il(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?z(n,e,r.max):Math.min(e,n)),e}function al(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function ol(e,{top:t,left:n,bottom:r,right:i}){return{x:al(e.x,n,i),y:al(e.y,t,r)}}function sl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function cl(e,t){return{x:sl(e.x,t.x),y:sl(e.y,t.y)}}function ll(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=T(t.min,t.max-r,e.min):r>i&&(n=T(e.min,e.max-i,t.min)),_(0,1,n)}function ul(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var dl=.35;function fl(e=dl){return e===!1?e=0:e===!0&&(e=dl),{x:pl(e,`left`,`right`),y:pl(e,`top`,`bottom`)}}function pl(e,t,n){return{min:ml(e,t),max:ml(e,n)}}function ml(e,t){return typeof e==`number`?e:e[t]||0}var hl=new WeakMap,gl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Wc(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Si(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(F.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&k.update(()=>i(e,t),!1,!0),Hr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=bl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&k.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Zc(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:qc(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&k.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!yl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=il(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&jc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=ol(n.layoutBox,e):this.constraints=!1,this.elastic=fl(t),r!==this.constraints&&!jc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=ul(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!jc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ra(n,r.root,this.visualElement.getTransformPagePoint()),a=cl(r.layout.layoutBox,i);if(t){let e=t(xa(a));this.hasMutatedConstraints=!!e,e&&(a=ba(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!yl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Hr(this.visualElement,e),n.start(Ar(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!yl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-z(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!jc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=ll({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!yl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(z(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hl.set(this.visualElement,this);let e=this.visualElement.current,t=Kc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ji(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();jc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=vl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),k.read(r);let o=is(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=dl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function _l(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vl(e,t,n){let r=$i(e,_l(n)),i=$i(t,_l(n));return()=>{r(),i()}}function yl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var xl=class extends q{constructor(e){super(e),this.removeGroupControls=C,this.removeListeners=C,this.controls=new gl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||C}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Sl=e=>(t,n)=>{e&&k.update(()=>e(t,n),!1,!0)},Cl=class extends q{constructor(){super(...arguments),this.removePointerDownListener=C}onPointerDown(e){this.session=new Zc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qc(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Sl(e),onStart:Sl(t),onMove:Sl(n),onEnd:(e,t)=>{delete this.session,r&&k.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Kc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},wl=!1,Tl=class extends u.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),wl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),us.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),wl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||k.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),yi.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;wl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function El(e){let[t,n]=Js(),r=(0,u.useContext)(d);return(0,l.jsx)(Tl,{...e,layoutGroup:r,switchLayoutGroup:(0,u.useContext)(Ac),isPresent:t,safeToRemove:n})}var Dl={pan:{Feature:Cl},drag:{Feature:xl,ProjectionNode:Ks,MeasureLayout:El}};function Ol(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&k.postRender(()=>i(t,Wc(t)))}var kl=class extends q{mount(){let{current:e}=this.node;e&&(this.unmount=Ti(e,(e,t)=>(Ol(this.node,t,`Start`),e=>Ol(this.node,e,`End`))))}unmount(){}},Al=class extends q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=w(is(this.node.current,`focus`,()=>this.onFocus()),is(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function jl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&k.postRender(()=>i(t,Wc(t)))}var Ml=class extends q{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ri(e,(e,t)=>(jl(this.node,t,`Start`),(e,{success:t})=>jl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Nl=new WeakMap,Pl=new WeakMap,Fl=e=>{let t=Nl.get(e.target);t&&t(e)},Il=e=>{e.forEach(Fl)};function Ll({root:e,...t}){let n=e||document;Pl.has(n)||Pl.set(n,{});let r=Pl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Il,{root:e,...t})),r[i]}function Rl(e,t,n){let r=Ll(t);return Nl.set(e,n),r.observe(e),()=>{Nl.delete(e),r.unobserve(e)}}var zl={some:0,all:1},Bl=class extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:zl[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Rl(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Vl(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Vl({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Hl={inView:{Feature:Bl},tap:{Feature:Ml},focus:{Feature:Al},hover:{Feature:kl}},Ul={layout:{ProjectionNode:Ks,MeasureLayout:El}},Wl=zc({...Uc,...Hl,...Dl,...Ul},Bc);export{m as a,d as c,vi as i,Js as n,p as o,qs as r,f as s,Wl as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,r as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{a as o}from"./routes-BKwsRssF.js";import{t as s}from"./client-feature-flag-store-ivPVcKfH.js";import{t as c}from"./conversation-store-BSxi0r0X.js";import{t as l}from"./conversation-selection-BMndnV1U.js";import{pt as u}from"./index-BiN-6kWM.js";var d=e(t(),1),f=a(),p=[{claim:`Software engineer based in Austin, TX`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Product engineer at an early-stage AI startup`,confidence:`confident`,sources:[`https://example.com/team`]},{claim:`Maintains an open-source CLI tool for local LLM evaluation and tooling`,confidence:`confident`,sources:[`https://github.com/example-dev`,`https://example.com/project`]},{claim:`Primarily writes TypeScript and Go`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Came up through a coding bootcamp rather than a CS degree`,confidence:`maybe`,sources:[]}],m=[`Summarize this week's AI model releases for me`,`Draft a technical blog post from your latest notes`,`Build a tracker for competitor product launches`,`Analyze a CSV of metrics and surface the trends`];function h(e){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`}function g(){let e=r(),t=s.use.researchOnboarding(),[a,g]=(0,d.useState)(`results`),[_,v]=(0,d.useState)(()=>new Map),[y,b]=(0,d.useState)(!1),x=p.map((e,t)=>({fact:e,index:t}));return t?(0,f.jsxs)(`div`,{className:`relative h-screen w-screen`,children:[(0,f.jsx)(`div`,{className:`absolute left-1/2 top-3 z-50 flex -translate-x-1/2 gap-1 rounded-full border border-[var(--border-base)] bg-[var(--surface-lift)] p-1`,children:[`loading`,`results`,`empty`].map(e=>(0,f.jsx)(n,{variant:a===e?`primary`:`ghost`,size:`compact`,onClick:()=>g(e),children:e},e))}),(0,f.jsx)(u,{mode:a,loadingContent:(0,f.jsxs)(`div`,{className:`text-[var(--content-secondary)]`,children:[(0,f.jsx)(`p`,{className:`text-lg`,children:`Getting to know you…`}),(0,f.jsx)(`p`,{className:`text-body-medium-lighter`,children:`(mock — the live flow shows the search activity feed here)`})]}),items:x,removals:_,suggestions:m,resultsTitle:`Here's what I know about you. You can remove any that aren't true:`,showDeeperDiveCard:!y,showSuggestions:y,canContinue:!0,resolveFavicon:h,onRemove:e=>v(t=>t.has(e)?t:new Map(t).set(e,null)),onSetReason:(e,t)=>v(n=>new Map(n).set(e,t)),onRestore:e=>v(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n}),onDeeperDive:()=>b(!0),onGoodForNow:()=>b(!0),onSuggestionClick:t=>{let n=l();c.getState().setActiveConversationId(n),e(`${o.conversation(n)}?prompt=${encodeURIComponent(t)}`)},onContinue:()=>e(o.assistant)})]}):(0,f.jsx)(i,{to:o.assistant,replace:!0})}export{g as ResearchMockPage};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,r as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./input-CwdmSRlD.js";import{n as s,q as c}from"./auth-store-CrTf0uWL.js";import{a as l}from"./routes-BKwsRssF.js";import{t as u}from"./client-feature-flag-store-ivPVcKfH.js";import{an as d,ft as f,yt as p}from"./index-BiN-6kWM.js";import{t as m}from"./prechat-names-BZIP2Y-H.js";var h=e(t(),1);function g({firstName:e,lastName:t,occupation:n}){let r=[e.trim(),t.trim()].filter(Boolean).join(` `),i=n.trim();return`${[r?`My name is ${r}.`:``,i?`I work as ${i}.`:``].filter(Boolean).join(` `)||`I'd like you to get to know me before we start working together.`}
|
|
2
|
-
|
|
3
|
-
Before we dive in, get to know me. Search the web for what's publicly known about the person matching my name and role, and infer a handful of things about who I am — what I do, my role, where I'm based, what I'm into, anything that would help you assist me better. Lean on public sources (LinkedIn, company pages, social profiles, articles). It's fine to make reasonable inferences and label them honestly.
|
|
4
|
-
|
|
5
|
-
CRITICAL — your final reply must be ONLY a JSON object. No preamble, no explanation, no prose, nothing before or after it. Do your thinking and searching, then respond with exactly this shape and nothing else:
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
"claims": [
|
|
9
|
-
{ "claim": "Software engineer in Columbus, OH", "confidence": "confident", "sources": ["https://github.com/you"] },
|
|
10
|
-
{ "claim": "You climb outdoors", "confidence": "maybe", "sources": [] },
|
|
11
|
-
{ "claim": "Head of growth at Vellum", "confidence": "guessing", "sources": ["https://example.com/about"] }
|
|
12
|
-
],
|
|
13
|
-
"suggestions": [
|
|
14
|
-
"Build a live dashboard to track your prompt eval runs across models",
|
|
15
|
-
"Set up a weekly monitor that flags new LLM releases every Monday morning",
|
|
16
|
-
"Write a deep-dive doc on your team's current evals setup in the live editor",
|
|
17
|
-
"Connect Linear and auto-triage new bugs into your team's backlog"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
Rules for "claims":
|
|
22
|
-
- AT MOST 5 claims — the strongest, most useful ones only.
|
|
23
|
-
- Each claim must be SHORT: a few words to one brief line. No multi-clause sentences, no em-dash asides, no explanations. Think headline, not bio.
|
|
24
|
-
Good: "Contributed to Chirps (vector-DB security)". Bad: "You've done real work in vector database security — you contributed to Chirps, a tool for scanning vector DBs for sensitive data".
|
|
25
|
-
- Each claim independently true-or-false so I can remove ones that are wrong.
|
|
26
|
-
- Phrase them directly ("You're…", "You climb outdoors", "Head of growth at Vellum").
|
|
27
|
-
- "confidence" is one of: "confident" (well supported by what you found), "maybe" (plausible but unverified), "guessing" (a hunch from limited signal).
|
|
28
|
-
- "sources": 0–3 URLs you actually used as evidence for that specific claim (the pages you read). Use [] for pure inferences.
|
|
29
|
-
|
|
30
|
-
Rules for "suggestions":
|
|
31
|
-
- EXACTLY 4 suggestions. These TEACH me what you can do — each should showcase a DIFFERENT, non-obvious capability that would make me say "wait, you can do that?" Concrete capabilities to draw from: build an interactive app or dashboard (tracker, calculator, visualizer); write a long-form document in a live rich-text editor; set up a heartbeat or scheduled monitor to watch for something on a recurring basis; use integrations to act on Gmail, Google Calendar, Slack, or Linear.
|
|
32
|
-
- Map each suggestion to a different category from the list above so the four suggestions cover distinct capabilities. Avoid generic things like "summarize" or "draft a post" — those are expected. Favor the surprising ones.
|
|
33
|
-
- Use what you learned about me during research to make each suggestion feel specific to me — my role, my stack, my industry. Not "build a tracker" but something grounded in what you actually found. The research phase exists partly to make this possible.
|
|
34
|
-
- Phrase each as a short, inviting action I can click to try right now, starting with a verb. No explanations.
|
|
35
|
-
- Make them feel concrete and immediately runnable, not generic.
|
|
36
|
-
|
|
37
|
-
Don't include anything sensitive or private. If you found very little, lean on "guessing" claims and broadly useful suggestions for my role.
|
|
38
|
-
Output ONLY the JSON object — no code fence, no extra text.`}var _=a();function v({initialFirstName:e=``,initialLastName:t=``,onSubmit:r}){let[i,a]=(0,h.useState)(e),[s,c]=(0,h.useState)(t),[l,u]=(0,h.useState)(``),d=i.trim().length>0&&l.trim().length>0;function p(){d&&r({firstName:i,lastName:s,occupation:l})}return(0,_.jsx)(f,{showCreatureFooter:!1,children:(0,_.jsxs)(`form`,{className:`mx-auto flex min-h-screen w-full max-w-md flex-col px-6 pb-40 text-[var(--content-default)]`,onSubmit:e=>{e.preventDefault(),p()},children:[(0,_.jsxs)(`div`,{className:`flex flex-1 flex-col items-center pt-16`,children:[(0,_.jsx)(`h1`,{className:`text-center text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:`Let's start with you.`}),(0,_.jsx)(`p`,{className:`mt-2 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:{animation:`fadeInUp 0.3s ease-out 0.15s both`},children:`A few details so I can get to know you before we dive in.`}),(0,_.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-6`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:[(0,_.jsx)(o,{label:`First name`,placeholder:`First name`,value:i,onChange:e=>a(e.target.value),autoFocus:!0,fullWidth:!0}),(0,_.jsx)(o,{label:`Last name`,placeholder:`Last name`,value:s,onChange:e=>c(e.target.value),fullWidth:!0}),(0,_.jsx)(o,{label:`What do you do?`,placeholder:`e.g. Product designer at a fintech startup`,value:l,onChange:e=>u(e.target.value),fullWidth:!0})]})]}),(0,_.jsx)(`div`,{className:`flex w-full flex-col gap-2 pb-4`,style:{animation:`fadeInUp 0.3s ease-out 0.3s both`},children:(0,_.jsx)(n,{type:`submit`,variant:`primary`,size:`regular`,fullWidth:!0,disabled:!d,className:`h-11 text-base`,children:`Continue`})})]})})}function y(){let e=r(),t=s.use.user(),n=p.use.enterFocus(),a=p.use.exitFocus(),o=p.use.beginCheckin(),f=u.use.researchOnboarding(),y=u.use.hydrated();(0,h.useEffect)(()=>{a()},[a]);function b({firstName:t,lastName:r,occupation:i}){let a=[t.trim(),r.trim()].filter(Boolean).join(` `),s=t.trim();d({tools:[],tasks:[],tone:m,...a?{userName:a}:{},...i.trim()?{occupation:i.trim()}:{},initialMessage:g({firstName:t,lastName:r,occupation:i}),title:s?`Getting to know ${s}`:`Getting to know you`}),o(a||void 0),n(),c.markExpectingFirstMessage(),c.checkAssistant().finally(()=>{e(`${l.assistant}?onboarding=1`,{replace:!0})})}return f?(0,_.jsx)(v,{initialFirstName:t?.firstName??``,initialLastName:t?.lastName??``,onSubmit:b}):y?(0,_.jsx)(i,{to:l.assistant,replace:!0}):null}export{y as ResearchOnboardingRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./create-selectors-ClYkcuKo.js";import{H as n,U as r,W as i,d as a,f as o,k as s,p as c}from"./local-mode-9ZkSq1Fr.js";function l(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var u=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:r(),assistantsHydrated:!1,setFromLockfile:n=>{e({assistants:n.assistants.map(e=>({id:e.assistantId,name:e.name,hatchedAt:e.hatchedAt,isLocal:a(e),isPlatformHosted:c(e),organizationId:e.organizationId})),assistantsHydrated:!0}),d(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>({id:e.id,name:e.name,hatchedAt:e.created,isLocal:e.is_local,isPlatformHosted:!e.is_local}))}),upsertFromApi:t=>e(e=>{let n={id:t.id,name:t.name,hatchedAt:t.created,isLocal:t.is_local,isPlatformHosted:!t.is_local},r=e.assistants.findIndex(e=>e.id===t.id);if(r>=0){let t=[...e.assistants];return t[r]={...n,organizationId:t[r].organizationId},{assistants:t}}let i=s.getState().lockfile?.assistants.find(e=>e.assistantId===t.id)?.organizationId;return{assistants:[...e.assistants,{...n,organizationId:i}]}}),remove:t=>e(e=>({assistants:e.assistants.filter(e=>e.id!==t)})),clear:()=>e({assistants:[]}),setActiveAssistantId:t=>e({activeAssistantId:t}),setSelectedAssistant:t=>{t==null?n():i(t),e({selectedAssistantId:t})}}));function d(e,t){let{assistants:r,selectedAssistantId:i,assistantsHydrated:a}=e();!a||i==null||r.some(e=>e.id===i)||(n(),t({selectedAssistantId:null}))}var f=t(u);o()&&s.subscribe(e=>{e.lockfile&&e.committed&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&u.setState({selectedAssistantId:r()})});export{f as n,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e,F as t,M as n}from"./local-mode-9ZkSq1Fr.js";var r=`/v1/remote-web/pairing-token`,i=`/v1/remote-web/pairing-challenge`,a=`/v1/guardian/refresh`,o=5,s=5e3,c=`vellum:remote-gateway:refresh-lock`,l=`vellum-remote-gateway-refresh`,u=2e4,d=2e4,f=100,p=0,m=null,h=class extends Error{status;constructor(e,t){super(t),this.name=`RemoteWebPairingError`,this.status=e}};function g(e,...t){for(let n of t){let t=e.get(n)?.trim();if(t)return t}return null}function _(e){let t=new URLSearchParams(e.search),n=e.hash.startsWith(`#`)?e.hash.slice(1):e.hash;if(n){let e=new URLSearchParams(n);for(let[n,r]of e)t.has(n)||t.set(n,r)}return t}function v(e){let t=_(typeof e==`string`?new URL(e,window.location.origin):e);return{deviceCode:g(t,`deviceCode`,`device_code`),userCode:g(t,`userCode`,`user_code`)}}function y(e=window.location){let t=/\/assistant(?:\/|$)/.exec(e.pathname);return t&&t.index>0?e.pathname.slice(0,t.index).replace(/\/+$/,``):``}function b(e,t=window.location){return`${y(t)}${e}`}function x(){return`${window.location.origin}${y()}`}function S(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isFinite(t)?t:0}return e>0xe8d4a51000?e:e*1e3}function C(){return!t()||p<=0?!0:Date.now()>=p-s}function w(e){let t=e;return t?.status===`approved`&&typeof t.accessToken==`string`&&(typeof t.accessTokenExpiresAt==`string`||typeof t.accessTokenExpiresAt==`number`)&&(typeof t.refreshAfter==`string`||typeof t.refreshAfter==`number`)}function T(e){let t=e;return typeof t?.deviceCode==`string`&&typeof t.userCode==`string`&&typeof t.verificationUri==`string`&&typeof t.expiresAt==`string`&&typeof t.expiresInSeconds==`number`&&typeof t.intervalSeconds==`number`}function E(e){return new Promise(t=>setTimeout(t,e))}function D(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);return typeof t.owner!=`string`||typeof t.expiresAt!=`number`?null:{owner:t.owner,expiresAt:t.expiresAt}}catch{return null}}function O(e){try{let t=D();return t&&t.expiresAt>Date.now()?!1:(localStorage.setItem(c,JSON.stringify({owner:e,expiresAt:Date.now()+u})),D()?.owner===e)}catch{return!0}}function k(e){try{D()?.owner===e&&localStorage.removeItem(c)}catch{}}async function A(e){let t=`${Date.now()}:${Math.random().toString(36).slice(2)}`,n=Date.now()+d;for(;!O(t);){if(Date.now()>=n)return e();await E(f)}try{return await e()}finally{k(t)}}async function j(e){let t=typeof navigator<`u`?navigator.locks??null:null;return t?t.request(l,e):A(e)}function M(t){p=S(t.refreshAfter),e({accessToken:t.accessToken,accessTokenExpiresAt:t.accessTokenExpiresAt}),n({url:`${window.location.origin}${y()}`,token:t.accessToken})}async function N(e,t){let n=await fetch(b(r),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({deviceCode:e}),signal:t}),i=await n.json().catch(()=>null);if(n.status===202){let e=i??{};return{status:`pending`,expiresAt:typeof e.expiresAt==`string`?e.expiresAt:``,intervalSeconds:typeof e.intervalSeconds==`number`&&e.intervalSeconds>0?e.intervalSeconds:o}}if(!n.ok)throw new h(n.status,`Pairing token exchange failed: ${n.status}`);if(!w(i))throw new h(502,`Pairing token exchange returned an invalid response`);return i}async function P(e){let t=await fetch(b(i),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({publicBaseUrl:x()}),signal:e}),n=await t.json().catch(()=>null);if(!t.ok)throw new h(t.status,`Pairing challenge creation failed: ${t.status}`);if(!T(n))throw new h(502,`Pairing challenge creation returned an invalid response`);return n}async function F(){if(!C())return!0;let e=await fetch(b(a),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:`{}`});if(!e.ok)return!1;let t=await e.json().catch(()=>null);return w({...t,status:`approved`})?(M({...t,status:`approved`}),!0):!1}async function I(){return C()?(m??=j(F).finally(()=>{m=null}),m):!0}function L(e){return e===`vellum.ai`||e.endsWith(`.vellum.ai`)}var R=/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;function z(e,t){if(!e)return t;if(R.test(e)){try{let t=new URL(e);if(t.protocol===`https:`&&L(t.hostname))return e}catch{}return t}return e.startsWith(`//`)||e.includes(`\\`)||!e.startsWith(`/`)?t:e}export{N as a,y as c,P as i,h as n,v as o,M as r,I as s,z as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./is-electron-BuSDabCt.js";import{f as s,i as c,n as l}from"./auth-store-CrTf0uWL.js";import{t as u}from"./return-to-Bc7amvZZ.js";import{a as d}from"./routes-BKwsRssF.js";import{c as f,d as p,f as m,l as h,s as g,u as _}from"./prefs-Mrqh1A7Y.js";import{Vr as v,ft as y,ta as b}from"./index-BiN-6kWM.js";import{n as x,t as S}from"./consent-controls-cNdj_gb8.js";var C=e(t(),1),w=a();function T(){let e=r(),[t]=i(),a=l.use.user()?.id??null,T=l.use.logout(),E=o(),D=c(),[O,k]=m(),[A,j]=h(),[M,N]=_(),[P,F]=p(),[I]=g(),[L]=f(),[R]=(0,C.useState)(()=>!O),[z]=(0,C.useState)(()=>!A),[B]=(0,C.useState)(()=>!I),[V]=(0,C.useState)(()=>!L),H=!R&&!z&&!B&&!V,U=R||H,W=z||H,G=B||H,K=V||H,q=!H&&!R&&!z,J=H?`Terms & privacy`:q?`Review your privacy preferences`:`Updated terms`,Y=H?`Review your terms and privacy preferences anytime.`:q?`Confirm your privacy preferences to continue.`:`We've updated our terms. Please review and accept to continue.`,X=(0,C.useCallback)(()=>{s({userId:a,tos:O,privacy:A,shareAnalytics:M,shareDiagnostics:P,hasPlatformSession:D}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[A,D,e,t,M,P,O,a]),Z=(0,C.useCallback)(async()=>{await T(),v(d.account.login)},[T]);return(0,w.jsx)(y,{showCreatureFooter:!1,children:(0,w.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${E?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,w.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,w.jsx)(b,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,w.jsx)(`h1`,{className:`mt-5 ${E?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:J}),(0,w.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${E?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:Y}),(G||K)&&(0,w.jsx)(x,{electron:E,showAnalytics:G,showDiagnostics:K,shareAnalytics:M,shareDiagnostics:P,onShareAnalyticsChange:N,onShareDiagnosticsChange:F,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(W||U)&&(0,w.jsx)(S,{electron:E,showPrivacy:W,showTos:U,privacyConsent:A,tosAccepted:O,onPrivacyChange:j,onTosChange:k,className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,w.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${E?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,w.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:U&&!O||W&&!A,onClick:X,className:E?void 0:`h-11 text-base`,children:`Continue`}),(0,w.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:Z,className:E?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{T as ReviewTermsScreen};
|