@lunora/studio 1.0.0-alpha.38 → 1.0.0-alpha.381
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/LICENSE.md +201 -104
- package/README.md +7 -7
- package/dist/index.d.mts +1647 -0
- package/dist/index.d.ts +1039 -809
- package/dist/index.mjs +1 -0
- package/dist/mount.d.mts +23 -0
- package/dist/mount.d.ts +13 -11
- package/dist/mount.mjs +1 -0
- package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ApiTab.mjs +1 -0
- package/dist/packem_chunks/AuditPanel.mjs +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ExportImportPanel.mjs +10 -0
- package/dist/packem_chunks/FileBrowser.mjs +4 -0
- package/dist/packem_chunks/FunctionRunner.mjs +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
- package/dist/packem_chunks/HealthPanel.mjs +1 -0
- package/dist/packem_chunks/InsightsPanel.mjs +1 -0
- package/dist/packem_chunks/LogsPanel.mjs +1 -0
- package/dist/packem_chunks/MailPanel.mjs +2 -0
- package/dist/packem_chunks/MetricsPanel.mjs +1 -0
- package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
- package/dist/packem_chunks/PitrPanel.mjs +1 -0
- package/dist/packem_chunks/SchemaViewer.mjs +1 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
- package/dist/packem_chunks/SettingsPanel.mjs +1 -0
- package/dist/packem_chunks/SqlEditorPanel.mjs +26 -0
- package/dist/packem_chunks/TableEditor.mjs +1 -0
- package/dist/packem_chunks/agents-panel.mjs +1 -0
- package/dist/packem_chunks/ai-knowledge.mjs +1 -0
- package/dist/packem_chunks/ai-usage-panel.mjs +1 -0
- package/dist/packem_chunks/analytics-panel.mjs +1 -0
- package/dist/packem_chunks/architecture-panel.mjs +1 -0
- package/dist/packem_chunks/assistant-panel.mjs +3 -0
- package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
- package/dist/packem_chunks/auth-config-panel.mjs +1 -0
- package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
- package/dist/packem_chunks/containers-panel.mjs +1 -0
- package/dist/packem_chunks/dashboards-panel.mjs +1 -0
- package/dist/packem_chunks/evals-panel.mjs +1 -0
- package/dist/packem_chunks/fanout-panel.mjs +1 -0
- package/dist/packem_chunks/flags-panel.mjs +1 -0
- package/dist/packem_chunks/issues-panel.mjs +1 -0
- package/dist/packem_chunks/kv-browser.mjs +1 -0
- package/dist/packem_chunks/log-drains-panel.mjs +4 -0
- package/dist/packem_chunks/migrations-route.mjs +1 -0
- package/dist/packem_chunks/organizations-panel.mjs +1 -0
- package/dist/packem_chunks/payments-panel.mjs +1 -0
- package/dist/packem_chunks/permissions-panel.mjs +1 -0
- package/dist/packem_chunks/privacy-requests-panel.mjs +1 -0
- package/dist/packem_chunks/queues-panel.mjs +1 -0
- package/dist/packem_chunks/reactors-panel.mjs +1 -0
- package/dist/packem_chunks/rls-panel.mjs +1 -0
- package/dist/packem_chunks/schedule-panel.mjs +1 -0
- package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
- package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
- package/dist/packem_chunks/sync-client-panel.mjs +1 -0
- package/dist/packem_chunks/theme-indicator.mjs +1 -0
- package/dist/packem_chunks/traces-panel.mjs +1 -0
- package/dist/packem_chunks/users-panel.mjs +1 -0
- package/dist/packem_chunks/vector-browser.mjs +1 -0
- package/dist/packem_chunks/workflows-panel.mjs +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-DAHZ35kM.mjs +1 -0
- package/dist/packem_shared/ApiDocsPanel-sEDqUNQq.mjs +2 -0
- package/dist/packem_shared/ApiReferencePanel-CQxU1Ocx.mjs +1 -0
- package/dist/packem_shared/CommandPalette-BZCHLpst.mjs +1 -0
- package/dist/packem_shared/ConfirmButton-CIXYF6Mg.mjs +1 -0
- package/dist/packem_shared/ConnectionBadge-BfcoN-VE.mjs +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-B9kGlqXE.mjs +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BQ3jRT74.mjs +1 -0
- package/dist/packem_shared/DataBrowser-CkVOu6py.mjs +4 -0
- package/dist/packem_shared/DataFilters--ocFTVT2.mjs +1 -0
- package/dist/packem_shared/ErrorBoundary-BWNF98VF.mjs +1 -0
- package/dist/packem_shared/GlobalDataBrowser-l2ECwXCm.mjs +1 -0
- package/dist/packem_shared/HomePanel-c7as4tvl.mjs +1 -0
- package/dist/packem_shared/MigrationsPanel-BQol4Un1.mjs +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-BFDG91tn.mjs +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.mjs +1 -0
- package/dist/packem_shared/ScheduledJobs-Du8ZGL7v.mjs +1 -0
- package/dist/packem_shared/ShardInput-CoySruKZ.mjs +1 -0
- package/dist/packem_shared/Studio-BmbkaUrx.mjs +1 -0
- package/dist/packem_shared/StudioApp-CsyDnrg2.mjs +1 -0
- package/dist/packem_shared/StudioI18nProvider-CGXCPnQn.mjs +1 -0
- package/dist/packem_shared/advisor-view-gtf_DhUU.mjs +5 -0
- package/dist/packem_shared/aggregateMetrics-DKFJc-o5.mjs +1 -0
- package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
- package/dist/packem_shared/app.d-DpxFQ0qO.d.mts +374 -0
- package/dist/packem_shared/app.d-DpxFQ0qO.d.ts +374 -0
- package/dist/packem_shared/assistant-provider-Dw0roZh3.mjs +1 -0
- package/dist/packem_shared/assistant-reason-D6EwMCxT.mjs +1 -0
- package/dist/packem_shared/auth-pager-DW77WeZw.mjs +1 -0
- package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
- package/dist/packem_shared/bar-chart-BCsEIQoQ.mjs +6 -0
- package/dist/packem_shared/browser-storage-BH1MxLZs.mjs +1 -0
- package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
- package/dist/packem_shared/card-By2O8ULa.mjs +1 -0
- package/dist/packem_shared/cf-links-BPy1pJRO.mjs +1 -0
- package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
- package/dist/packem_shared/control-button-BOZ5K-FC.mjs +1 -0
- package/dist/packem_shared/data-grid-B5m1OosL.mjs +1 -0
- package/dist/packem_shared/data-view-params-C-_G-biH.mjs +1 -0
- package/dist/packem_shared/diagram-export-panel-Vdt-DZnO.mjs +2 -0
- package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
- package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
- package/dist/packem_shared/error-alert-3AR_-s_s.mjs +6 -0
- package/dist/packem_shared/grid-features-Drvfswwy.mjs +6 -0
- package/dist/packem_shared/grid-pagination-DY2erU65.mjs +1 -0
- package/dist/packem_shared/home-panel-TpxiaHgB.mjs +3 -0
- package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
- package/dist/packem_shared/internal-hIuTpSbx.mjs +2 -0
- package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
- package/dist/packem_shared/live-status-D1GasNsH.mjs +1 -0
- package/dist/packem_shared/log-fields-CV-9O0nh.mjs +8 -0
- package/dist/packem_shared/log-line-CYJQf6P-.mjs +1 -0
- package/dist/packem_shared/metrics-format-1sNGG47R.mjs +1 -0
- package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
- package/dist/packem_shared/operation-console-provider-DoloEvon.mjs +1 -0
- package/dist/packem_shared/recording-client-z4CBi0y8.mjs +1 -0
- package/dist/packem_shared/reference-view-DENugPcj.mjs +13 -0
- package/dist/packem_shared/schema-diagram-CtVPhOGj.mjs +2 -0
- package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
- package/dist/packem_shared/select-DPyS18Vy.mjs +2 -0
- package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
- package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
- package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
- package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
- package/dist/packem_shared/sql-result-table-DCwooMGW.mjs +1 -0
- package/dist/packem_shared/stat-card-BAv73QtB.mjs +1 -0
- package/dist/packem_shared/storage-tier-C2mKwYRj.mjs +1 -0
- package/dist/packem_shared/studio-DZlpp4Vx.mjs +2 -0
- package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
- package/dist/packem_shared/table-list-sidebar-Bfmg04MD.mjs +1 -0
- package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
- package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
- package/dist/packem_shared/use-admin-query-CaOm4JS3.mjs +1 -0
- package/dist/packem_shared/use-admin-spec-CK7mk3Ui.mjs +1 -0
- package/dist/packem_shared/use-assistant-rpc-AKu8hvPm.mjs +1 -0
- package/dist/packem_shared/use-async-submit-D0r7-m2J.mjs +1 -0
- package/dist/packem_shared/use-auth-config-DameIc6y.mjs +1 -0
- package/dist/packem_shared/use-mirrored-ref-CVDf2z1M.mjs +1 -0
- package/dist/packem_shared/use-open-trace-BJKMJjeS.mjs +1 -0
- package/dist/packem_shared/use-shard-key-BsP3o5wT.mjs +1 -0
- package/dist/packem_shared/use-studio-client-DCA50tF2.mjs +1 -0
- package/dist/packem_shared/useDebounced-DVeQ5-oW.mjs +1 -0
- package/dist/packem_shared/utils-bhneXptQ.mjs +1 -0
- package/dist/packem_shared/virtual-rect-D_j7aLxX.mjs +1 -0
- package/dist/standalone/chunk-274SZA4F.js +1 -0
- package/dist/standalone/chunk-2DKLUTH2.js +1 -0
- package/dist/standalone/chunk-2KREOMPV.js +1 -0
- package/dist/standalone/chunk-2KTN53PK.js +1 -0
- package/dist/standalone/chunk-2NUCBQFU.js +1 -0
- package/dist/standalone/chunk-2VGEYQJ5.js +1 -0
- package/dist/standalone/chunk-337EJGCU.js +1 -0
- package/dist/standalone/chunk-3NYU3CCO.js +1 -0
- package/dist/standalone/chunk-3QNDJXLL.js +1 -0
- package/dist/standalone/chunk-4AG356VE.js +1 -0
- package/dist/standalone/chunk-4E6DQHFK.js +1 -0
- package/dist/standalone/chunk-4KPATTV6.js +1 -0
- package/dist/standalone/chunk-4SY2N2RS.js +1 -0
- package/dist/standalone/chunk-4TGALJHR.js +1 -0
- package/dist/standalone/chunk-4W7SB3SF.js +1 -0
- package/dist/standalone/chunk-4YEGXH2V.js +1 -0
- package/dist/standalone/chunk-5MIJ3KEK.js +1 -0
- package/dist/standalone/chunk-5NPU6VPX.js +1 -0
- package/dist/standalone/chunk-5PEAXTYQ.js +1 -0
- package/dist/standalone/chunk-5QK3ZHNZ.js +1 -0
- package/dist/standalone/chunk-66IUCD6W.js +1 -0
- package/dist/standalone/chunk-76D454G5.js +1 -0
- package/dist/standalone/chunk-7MQQPZQC.js +1 -0
- package/dist/standalone/chunk-7VZFX5O4.js +1 -0
- package/dist/standalone/chunk-7WGZSDRS.js +2 -0
- package/dist/standalone/chunk-A2LKDNNA.js +1 -0
- package/dist/standalone/chunk-A4F3YMBV.js +1 -0
- package/dist/standalone/chunk-A6TVTNKO.js +1 -0
- package/dist/standalone/chunk-ADABTCDI.js +1 -0
- package/dist/standalone/chunk-AE3ABYCE.js +1 -0
- package/dist/standalone/chunk-AFLNQEZ5.js +1 -0
- package/dist/standalone/chunk-AQ6LY5RO.js +14 -0
- package/dist/standalone/chunk-AWFFXR6S.js +1 -0
- package/dist/standalone/chunk-AY4DPAPO.js +1 -0
- package/dist/standalone/chunk-CL3JOU6F.js +1 -0
- package/dist/standalone/chunk-CVSIFPI5.js +1 -0
- package/dist/standalone/chunk-D2LGOQ32.js +1 -0
- package/dist/standalone/chunk-DA2CAFXI.js +1 -0
- package/dist/standalone/chunk-DELDS72W.js +1 -0
- package/dist/standalone/chunk-DJPK4PZV.js +1 -0
- package/dist/standalone/chunk-DRHZZ7IN.js +1 -0
- package/dist/standalone/chunk-DWKKQ75U.js +59 -0
- package/dist/standalone/chunk-EDL46BPM.js +1 -0
- package/dist/standalone/chunk-ELWBGGS7.js +2 -0
- package/dist/standalone/chunk-EOFWXI3T.js +1 -0
- package/dist/standalone/chunk-EVUVQB4Q.js +1 -0
- package/dist/standalone/chunk-F2DVDJV6.js +1 -0
- package/dist/standalone/chunk-FKOAI6VV.js +1 -0
- package/dist/standalone/chunk-FPODRWDZ.js +1 -0
- package/dist/standalone/chunk-FWM5Z6CH.js +1 -0
- package/dist/standalone/chunk-GCYQOJYI.js +1 -0
- package/dist/standalone/chunk-GDAZWXQW.js +1 -0
- package/dist/standalone/chunk-H6VTIXVB.js +1 -0
- package/dist/standalone/chunk-HBEZGCPB.js +1 -0
- package/dist/standalone/chunk-I626YY7T.js +4 -0
- package/dist/standalone/chunk-I7PUGF3D.js +1 -0
- package/dist/standalone/chunk-IMM6HPPD.js +1 -0
- package/dist/standalone/chunk-IQ5CIBXJ.js +1 -0
- package/dist/standalone/chunk-JELTLAEP.js +8 -0
- package/dist/standalone/chunk-JNWK5MJC.js +1 -0
- package/dist/standalone/chunk-JQBZDS6X.js +6 -0
- package/dist/standalone/chunk-JXUU3BD2.js +1 -0
- package/dist/standalone/chunk-K7GU4AIX.js +1 -0
- package/dist/standalone/chunk-KQVY73EU.js +7 -0
- package/dist/standalone/chunk-KVQ2GMJR.js +1 -0
- package/dist/standalone/chunk-KXUK7CSR.js +1 -0
- package/dist/standalone/chunk-L27FKJTG.js +1 -0
- package/dist/standalone/chunk-LHQFTCOS.js +1 -0
- package/dist/standalone/chunk-LJLNIVUA.js +8 -0
- package/dist/standalone/chunk-LMCBMC2V.js +1 -0
- package/dist/standalone/chunk-LYNQHGQ4.js +1 -0
- package/dist/standalone/chunk-LYVYUTQY.js +1 -0
- package/dist/standalone/chunk-MGYRQPAY.js +1 -0
- package/dist/standalone/chunk-MHZNDDGI.js +1 -0
- package/dist/standalone/chunk-MICDQTTJ.js +1 -0
- package/dist/standalone/chunk-ML6YSDEQ.js +4 -0
- package/dist/standalone/chunk-MNXXIISC.js +1 -0
- package/dist/standalone/chunk-MTBY4GXM.js +1 -0
- package/dist/standalone/chunk-MULFKWTQ.js +1 -0
- package/dist/standalone/chunk-N7FOBAV3.js +1 -0
- package/dist/standalone/chunk-NDIEUO4N.js +1 -0
- package/dist/standalone/chunk-NPZG7XK5.js +1 -0
- package/dist/standalone/chunk-NQ727GVM.js +1 -0
- package/dist/standalone/chunk-NYLSD5LR.js +1 -0
- package/dist/standalone/chunk-O4SDDSDL.js +1 -0
- package/dist/standalone/chunk-O5QATFN3.js +159 -0
- package/dist/standalone/chunk-O65QTRXU.js +1 -0
- package/dist/standalone/chunk-ODEIAS3V.js +1 -0
- package/dist/standalone/chunk-OJO6ERJ4.js +1 -0
- package/dist/standalone/chunk-OOUGGYHQ.js +1 -0
- package/dist/standalone/chunk-OR4RO6V4.js +1 -0
- package/dist/standalone/chunk-OVPS52RO.js +3 -0
- package/dist/standalone/chunk-OWRWDDJT.js +1 -0
- package/dist/standalone/chunk-OZID3UYF.js +1 -0
- package/dist/standalone/chunk-PDBW6GTJ.js +1 -0
- package/dist/standalone/chunk-Q7KRCKCE.js +1 -0
- package/dist/standalone/chunk-QCG2G6IF.js +1 -0
- package/dist/standalone/chunk-QF743FSL.js +1 -0
- package/dist/standalone/chunk-QHVUXMRV.js +1 -0
- package/dist/standalone/chunk-QLZGKBOW.js +1 -0
- package/dist/standalone/chunk-QOK2UU3L.js +1 -0
- package/dist/standalone/chunk-R3RIZDUS.js +1 -0
- package/dist/standalone/chunk-R6NJ4ER6.js +1 -0
- package/dist/standalone/chunk-RAJ327CY.js +1 -0
- package/dist/standalone/chunk-RIAOZECW.js +1 -0
- package/dist/standalone/chunk-RK3HQKPW.js +1 -0
- package/dist/standalone/chunk-RPRNYCFT.js +1 -0
- package/dist/standalone/chunk-SADHW6WJ.js +5 -0
- package/dist/standalone/chunk-SBQT2ZSX.js +1 -0
- package/dist/standalone/chunk-SCTYLLJT.js +1 -0
- package/dist/standalone/chunk-T7UKRA6J.js +1 -0
- package/dist/standalone/chunk-UAXX2RXT.js +1 -0
- package/dist/standalone/chunk-UFFUDDK7.js +1 -0
- package/dist/standalone/chunk-UOFMFYZ7.js +6 -0
- package/dist/standalone/chunk-UUOEHNMP.js +31 -0
- package/dist/standalone/chunk-V4JKKAAZ.js +3 -0
- package/dist/standalone/chunk-VGKDC2OQ.js +1 -0
- package/dist/standalone/chunk-VJQP4ARP.js +33 -0
- package/dist/standalone/chunk-VTTS5L36.js +1 -0
- package/dist/standalone/chunk-W3WGVJNJ.js +1 -0
- package/dist/standalone/chunk-W7CLOQOU.js +1 -0
- package/dist/standalone/chunk-WDR3BJ2C.js +1 -0
- package/dist/standalone/chunk-WONKLAKW.js +3 -0
- package/dist/standalone/chunk-WU2ST74V.js +1 -0
- package/dist/standalone/chunk-WVURFBJS.js +1 -0
- package/dist/standalone/chunk-X474JV2D.js +1 -0
- package/dist/standalone/chunk-XBHRAFJA.js +1 -0
- package/dist/standalone/chunk-XEIJUQ4B.js +1 -0
- package/dist/standalone/chunk-XOLTLG4I.js +5 -0
- package/dist/standalone/chunk-XSFGXEYO.js +1 -0
- package/dist/standalone/{chunk-BJGBHGK3.js → chunk-Y2YLTUMD.js} +1 -1
- package/dist/standalone/chunk-Y6OVSHPH.js +1 -0
- package/dist/standalone/chunk-YL5ZAR3P.js +1 -0
- package/dist/standalone/chunk-YNCZVYCO.js +1 -0
- package/dist/standalone/chunk-YTLKHICM.js +1 -0
- package/dist/standalone/chunk-YYJGL32M.js +1 -0
- package/dist/standalone/chunk-Z4BLDRDD.js +10 -0
- package/dist/standalone/chunk-ZBLG4UAV.js +1 -0
- package/dist/standalone/chunk-ZHZHI6KX.js +1 -0
- package/dist/standalone/chunk-ZPQBVYNN.js +1 -0
- package/dist/standalone/chunk-ZPQFM3A7.js +1 -0
- package/dist/standalone/chunk-ZZ6ZCOD4.js +1 -0
- package/dist/standalone/chunk-ZZA6VQDG.js +1 -0
- package/dist/standalone/studio.js +9 -214
- package/dist/styles.css +2 -2
- package/package.json +28 -23
- package/dist/index.js +0 -41
- package/dist/mount.js +0 -27
- package/dist/packem_chunks/ApiTab.js +0 -251
- package/dist/packem_chunks/AuditPanel.js +0 -200
- package/dist/packem_chunks/ExportImportPanel.js +0 -198
- package/dist/packem_chunks/FileBrowser.js +0 -2932
- package/dist/packem_chunks/FunctionRunner.js +0 -343
- package/dist/packem_chunks/FunctionStatsPanel.js +0 -377
- package/dist/packem_chunks/HealthPanel.js +0 -648
- package/dist/packem_chunks/InsightsPanel.js +0 -462
- package/dist/packem_chunks/LogsPanel.js +0 -827
- package/dist/packem_chunks/MailPanel.js +0 -353
- package/dist/packem_chunks/MetricsPanel.js +0 -1344
- package/dist/packem_chunks/MigrationsPanel.js +0 -239
- package/dist/packem_chunks/PitrPanel.js +0 -252
- package/dist/packem_chunks/SchemaViewer.js +0 -2513
- package/dist/packem_chunks/SecurityAdvisorPanel.js +0 -95
- package/dist/packem_chunks/SettingsPanel.js +0 -391
- package/dist/packem_chunks/SqlEditorPanel.js +0 -2323
- package/dist/packem_chunks/TableEditor.js +0 -313
- package/dist/packem_chunks/analytics-panel.js +0 -261
- package/dist/packem_chunks/auth-config-panel.js +0 -365
- package/dist/packem_chunks/auth-sessions-panel.js +0 -175
- package/dist/packem_chunks/containers-panel.js +0 -247
- package/dist/packem_chunks/dashboards-panel.js +0 -780
- package/dist/packem_chunks/fanout-panel.js +0 -482
- package/dist/packem_chunks/flags-panel.js +0 -176
- package/dist/packem_chunks/kv-browser.js +0 -1896
- package/dist/packem_chunks/log-drains-panel.js +0 -273
- package/dist/packem_chunks/organizations-panel.js +0 -3178
- package/dist/packem_chunks/payments-panel.js +0 -186
- package/dist/packem_chunks/permissions-panel.js +0 -805
- package/dist/packem_chunks/queues-panel.js +0 -1052
- package/dist/packem_chunks/rls-panel.js +0 -315
- package/dist/packem_chunks/schedule-panel.js +0 -831
- package/dist/packem_chunks/sparkline.js +0 -79
- package/dist/packem_chunks/storage-rules-panel.js +0 -140
- package/dist/packem_chunks/subscriptions-panel.js +0 -238
- package/dist/packem_chunks/users-panel.js +0 -1731
- package/dist/packem_chunks/vector-browser.js +0 -281
- package/dist/packem_chunks/workflows-panel.js +0 -562
- package/dist/packem_shared/ADMIN_FUNCTIONS-BHHJi3Gb.js +0 -52
- package/dist/packem_shared/ApiDocsPanel-D4CJf2ad.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-Co_wpRF2.js +0 -230
- package/dist/packem_shared/CommandPalette-BUPpbpMc.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-BeVNxSVm.js +0 -4493
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/GlobalDataBrowser-ErfvIs1S.js +0 -289
- package/dist/packem_shared/HomePanel-D9MQk8I7.js +0 -14
- package/dist/packem_shared/OpenRpcReferencePanel-DLWzrIx9.js +0 -192
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-ClaNpZsg.js +0 -262
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/Studio-C48P1K5W.js +0 -16
- package/dist/packem_shared/StudioApp-Cqh-SYm2.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/advisor-view-D3-U4kRR.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/alert-CdAET2K_.js +0 -68
- package/dist/packem_shared/app.d-CNLRTrWw.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-DSwcWIRy.js +0 -3246
- package/dist/packem_shared/browser-storage-tLOxkIHd.js +0 -185
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-BZfRdxSE.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-Jz8FqQ2C.js +0 -183
- package/dist/packem_shared/data-view-params-Cd6yRVbv.js +0 -96
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/error-alert-BBT6D22d.js +0 -114
- package/dist/packem_shared/grid-features-CUr8Z1_O.js +0 -745
- package/dist/packem_shared/home-panel-CoGxi-oj.js +0 -1639
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-DTsYVn-g.js +0 -97
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/modal-shell-hyaJvIJ6.js +0 -100
- package/dist/packem_shared/reference-view-CSKyUyPl.js +0 -2141
- package/dist/packem_shared/scroll-area-DLhcy-ml.js +0 -93
- package/dist/packem_shared/select-UkNYCT3s.js +0 -273
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/skeleton-CGhL0p20.js +0 -45
- package/dist/packem_shared/sparkline-BnA1kC9X.js +0 -93
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-CPHA_-3I.js +0 -4015
- package/dist/packem_shared/table-DsCa9Qp9.js +0 -246
- package/dist/packem_shared/table-list-sidebar-B5psdSV1.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-admin-query-BHPKmPuj.js +0 -106
- package/dist/packem_shared/use-async-submit-BWMDwRa4.js +0 -91
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
- package/dist/standalone/chunk-2F4VYKM6.js +0 -1
- package/dist/standalone/chunk-2GFAOIC3.js +0 -8
- package/dist/standalone/chunk-2K47A3P6.js +0 -1
- package/dist/standalone/chunk-2NGUNNGW.js +0 -1
- package/dist/standalone/chunk-2SAZ5BZ5.js +0 -4
- package/dist/standalone/chunk-2SE7II7A.js +0 -1
- package/dist/standalone/chunk-34OQUHSV.js +0 -1
- package/dist/standalone/chunk-3CJW6NWG.js +0 -4
- package/dist/standalone/chunk-3DBG4RIV.js +0 -1
- package/dist/standalone/chunk-3OA7PECS.js +0 -6
- package/dist/standalone/chunk-3UFZCRWL.js +0 -1
- package/dist/standalone/chunk-4FL3EDN5.js +0 -2
- package/dist/standalone/chunk-4JOKDSPU.js +0 -1
- package/dist/standalone/chunk-4QHKBC77.js +0 -1
- package/dist/standalone/chunk-5OIBXYZM.js +0 -1
- package/dist/standalone/chunk-6GFEVKJP.js +0 -1
- package/dist/standalone/chunk-7FF76BYY.js +0 -1
- package/dist/standalone/chunk-7TJJXVSE.js +0 -1
- package/dist/standalone/chunk-7YXOPTWI.js +0 -1
- package/dist/standalone/chunk-AHILM3ZP.js +0 -1
- package/dist/standalone/chunk-AJIUI7DD.js +0 -1
- package/dist/standalone/chunk-AJKR6PY7.js +0 -1
- package/dist/standalone/chunk-BOXSWNXZ.js +0 -1
- package/dist/standalone/chunk-CKSHCYGC.js +0 -2
- package/dist/standalone/chunk-DC72CQY4.js +0 -76
- package/dist/standalone/chunk-DWDILV2E.js +0 -1
- package/dist/standalone/chunk-FA3CCTXK.js +0 -1
- package/dist/standalone/chunk-FCSPAJW4.js +0 -1
- package/dist/standalone/chunk-GLUNBZRI.js +0 -1
- package/dist/standalone/chunk-GM4NPF3W.js +0 -1
- package/dist/standalone/chunk-GMSGZDDH.js +0 -13
- package/dist/standalone/chunk-GTM65MVX.js +0 -1
- package/dist/standalone/chunk-HLZ4YLRK.js +0 -1
- package/dist/standalone/chunk-HV7G6DFP.js +0 -5
- package/dist/standalone/chunk-I3VXCZZL.js +0 -1
- package/dist/standalone/chunk-IJPFHUJK.js +0 -2
- package/dist/standalone/chunk-IQ466Q6W.js +0 -1
- package/dist/standalone/chunk-IU6GTBPD.js +0 -1
- package/dist/standalone/chunk-IXDH4GL5.js +0 -1
- package/dist/standalone/chunk-J6J54MBP.js +0 -1
- package/dist/standalone/chunk-JSEXCW5Q.js +0 -1
- package/dist/standalone/chunk-JTTVXBLU.js +0 -1
- package/dist/standalone/chunk-K3GNLVYK.js +0 -1
- package/dist/standalone/chunk-KEGAWN6Y.js +0 -1
- package/dist/standalone/chunk-KJJ3WM6H.js +0 -4
- package/dist/standalone/chunk-KQTCLPLO.js +0 -4
- package/dist/standalone/chunk-KSKXW5PX.js +0 -1
- package/dist/standalone/chunk-KZ6INM5M.js +0 -1
- package/dist/standalone/chunk-L7SK4ZZD.js +0 -1
- package/dist/standalone/chunk-LAK5VSPI.js +0 -1
- package/dist/standalone/chunk-LEHGGJP2.js +0 -1
- package/dist/standalone/chunk-LNZIB2MD.js +0 -1
- package/dist/standalone/chunk-MZ756AFF.js +0 -1
- package/dist/standalone/chunk-N7G5I47W.js +0 -1
- package/dist/standalone/chunk-NV6RHG5L.js +0 -1
- package/dist/standalone/chunk-O3I57FXK.js +0 -1
- package/dist/standalone/chunk-O3NAGRTR.js +0 -1
- package/dist/standalone/chunk-OES45DFG.js +0 -13
- package/dist/standalone/chunk-OIC7EJWI.js +0 -1
- package/dist/standalone/chunk-OLE2AYTD.js +0 -1
- package/dist/standalone/chunk-P3ZMBPCY.js +0 -1
- package/dist/standalone/chunk-P5JW7HKP.js +0 -1
- package/dist/standalone/chunk-PVZI3CXP.js +0 -19
- package/dist/standalone/chunk-PZ7HD5T2.js +0 -1
- package/dist/standalone/chunk-Q3PTSVVU.js +0 -3
- package/dist/standalone/chunk-Q52CHOSY.js +0 -1
- package/dist/standalone/chunk-QAFAJBAW.js +0 -1
- package/dist/standalone/chunk-QBAT52GB.js +0 -1
- package/dist/standalone/chunk-QKQABJBE.js +0 -1
- package/dist/standalone/chunk-R5OQZYSW.js +0 -4
- package/dist/standalone/chunk-RRCPZMC2.js +0 -22
- package/dist/standalone/chunk-SE2TQAHJ.js +0 -1
- package/dist/standalone/chunk-SEU5V7I6.js +0 -1
- package/dist/standalone/chunk-SG3ALJJU.js +0 -1
- package/dist/standalone/chunk-TAD43CG5.js +0 -1
- package/dist/standalone/chunk-TBMYIZIO.js +0 -1
- package/dist/standalone/chunk-TDL7NEWA.js +0 -1
- package/dist/standalone/chunk-TI7SE33D.js +0 -1
- package/dist/standalone/chunk-TQ36RWOP.js +0 -1
- package/dist/standalone/chunk-UK64ZSUW.js +0 -1
- package/dist/standalone/chunk-VFJPO4UO.js +0 -1
- package/dist/standalone/chunk-VLXV72QE.js +0 -1
- package/dist/standalone/chunk-VON7JUPG.js +0 -1
- package/dist/standalone/chunk-WI7GWFEG.js +0 -1
- package/dist/standalone/chunk-WXPWVBIY.js +0 -1
- package/dist/standalone/chunk-X7RPB4K4.js +0 -1
- package/dist/standalone/chunk-XFSUINL3.js +0 -1
- package/dist/standalone/chunk-XGUOXHX4.js +0 -1
- package/dist/standalone/chunk-XNJNSCLM.js +0 -1
- package/dist/standalone/chunk-Y2ZPNDL7.js +0 -4
- package/dist/standalone/chunk-YAECF5LW.js +0 -1
- package/dist/standalone/chunk-ZHVTQ37P.js +0 -1
- package/dist/standalone/chunk-ZIGWVHCS.js +0 -1
- package/dist/standalone/chunk-ZL4E2WVF.js +0 -1
- package/dist/standalone/chunk-ZPP2KOR4.js +0 -1
- package/dist/standalone/chunk-ZPUO7FNI.js +0 -1
- package/dist/standalone/chunk-ZYRGPDZB.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Q,b as Dn}from"./chunk-ADABTCDI.js";import{a as r,d as Y}from"./chunk-5PEAXTYQ.js";var En=Y(Q(),1),Uo=(0,En.createContext)({});var Rn=Y(Q(),1);function Wo(t){let e=(0,Rn.useRef)(null);return e.current===null&&(e.current=t()),e.current}r(Wo,"useConstant");var Ko=Y(Q(),1);var Ln=typeof window<"u";var yi=Ln?Ko.useLayoutEffect:Ko.useEffect;var In=Y(Q(),1),ge=(0,In.createContext)(null);function Zt(t,e){t.indexOf(e)===-1&&t.push(e)}r(Zt,"addUniqueItem");function Ut(t,e){let o=t.indexOf(e);o>-1&&t.splice(o,1)}r(Ut,"removeItem");var q=r((t,e,o)=>o>e?e:o<t?t:o,"clamp");var Z={};var Jt=r(t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),"isNumericalString");var Ye=r(t=>typeof t=="object"&&t!==null,"isObject");var Qt=r(t=>/^0[^.\s]+$/u.test(t),"isZeroValueString");function xi(t){let e;return()=>(e===void 0&&(e=t()),e)}r(xi,"memo");var J=r(t=>t,"noop");var vt=r((...t)=>t.reduce((e,o)=>i=>o(e(i))),"pipe");var pt=r((t,e,o)=>{let i=e-t;return i?(o-t)/i:1},"progress");var Mt=class{static{r(this,"SubscriptionManager")}constructor(){this.subscriptions=[]}add(e){return Zt(this.subscriptions,e),()=>this.remove(e)}remove(e){Ut(this.subscriptions,e)}notify(e,o,i){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,o,i);else for(let a=0;a<n;a++){let s=this.subscriptions[a];s&&s(e,o,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var ot=r(t=>t*1e3,"secondsToMilliseconds"),tt=r(t=>t/1e3,"millisecondsToSeconds");var Xe=r((t,e)=>e?t*(1e3/e):0,"velocityPerSecond");var vi=r((t,e,o)=>t*(3*(1-t)*((1-t)*e+t*o)+t*t),"calcBezier");function Wt(t,e,o,i){return t===e&&o===i?J:n=>{let a=0,s=1,l=n;for(let c=0;;c++){l>=a&&l<=s||(l=(a+s)/2);let u=vi(l,t,o)-n;if(u*u<1e-28||c===40)break;u>0?s=l:a=l,l-=u*1e-7/(vi(l+1e-7,t,o)-n-u)}return vi(l,e,i)}}r(Wt,"cubicBezier");var zo=r(t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,"mirrorEasing");var Ho=r(t=>e=>1-t(1-e),"reverseEasing");var _o=Wt(.33,1.53,.69,.99),ye=Ho(_o),qe=zo(ye);var Ze=r(t=>t>=1?1:(t*=2)<1?.5*ye(t):.5*(2-Math.pow(2,-10*(t-1))),"anticipate");var Je=r(t=>1-Math.sin(Math.acos(t)),"circIn"),Qe=Ho(Je),to=zo(Je);var Ti=Wt(.42,0,1,1),Si=Wt(0,0,.58,1),xe=Wt(.42,0,.58,1);var Vi=r(t=>Array.isArray(t)&&typeof t[0]!="number","isEasingArray");var te=r(t=>Array.isArray(t)&&typeof t[0]=="number","isBezierDefinition");var Pc={linear:J,easeIn:Ti,easeInOut:xe,easeOut:Si,circIn:Je,circInOut:to,circOut:Qe,backIn:ye,backInOut:qe,backOut:_o,anticipate:Ze},Ac=r(t=>typeof t=="string","isValidEasing"),$o=r(t=>{if(te(t)){typeof process<"u";let[e,o,i,n]=t;return Wt(e,o,i,n)}else if(Ac(t))return typeof process<"u",Pc[t];return t},"easingDefinitionToFunction");var _={delta:0,timestamp:0,isProcessing:!1};var Yo;function wc(){Yo=void 0}r(wc,"clearTime");var N={now:r(()=>(Yo===void 0&&N.set(_.isProcessing||Z.useManualTiming?_.timestamp:performance.now()),Yo),"now"),set:r(t=>{Yo=t,queueMicrotask(wc)},"set")};var Ct=r(t=>Math.round(t*1e5)/1e5,"sanitize");var kn=r(t=>e=>typeof e=="string"&&e.startsWith(t),"checkStringStartsWith"),Xo=kn("--"),Mc=kn("var(--"),Kt=r(t=>Mc(t)?Cc.test(t.split("/*")[0].trim()):!1,"isCSSVariableToken"),Cc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function qo(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}r(qo,"containsCSSVariable");var Dt={test:r(t=>typeof t=="number","test"),parse:parseFloat,transform:r(t=>t,"transform")},Rt={...Dt,transform:r(t=>q(0,1,t),"transform")},eo={...Dt,default:1};var ve=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bn(t){return t==null}r(Bn,"isNullish");var On=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Te=r((t,e)=>o=>!!(typeof o=="string"&&On.test(o)&&o.startsWith(t)||e&&!Bn(o)&&Object.prototype.hasOwnProperty.call(o,e)),"isColorString"),Zo=r((t,e,o)=>i=>{if(typeof i!="string")return i;let[n,a,s,l]=i.match(ve);return{[t]:parseFloat(n),[e]:parseFloat(a),[o]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},"splitColor");var Dc=r(t=>q(0,255,t),"clampRgbUnit"),bi={...Dt,transform:r(t=>Math.round(Dc(t)),"transform")},Et={test:Te("rgb","red"),parse:Zo("red","green","blue"),transform:r(({red:t,green:e,blue:o,alpha:i=1})=>"rgba("+bi.transform(t)+", "+bi.transform(e)+", "+bi.transform(o)+", "+Ct(Rt.transform(i))+")","transform")};var Jo=r((t,e,o)=>{let i=t.substring(1+e*o,1+(e+1)*o);return o>1?i:i+i},"channel");function Ec(t){let e=t.length>5?2:1,o=Jo(t,3,e);return{red:parseInt(Jo(t,0,e),16),green:parseInt(Jo(t,1,e),16),blue:parseInt(Jo(t,2,e),16),alpha:o?parseInt(o,16)/255:1}}r(Ec,"parseHex");var oo={test:Te("#"),parse:Ec,transform:Et.transform};var ro=r(t=>({test:r(e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,"test"),parse:parseFloat,transform:r(e=>`${e}${t}`,"transform")}),"createUnitType"),Vt=ro("deg"),lt=ro("%"),V=ro("px"),Fn=ro("vh"),Nn=ro("vw"),Pi={...lt,parse:r(t=>lt.parse(t)/100,"parse"),transform:r(t=>lt.transform(t*100),"transform")};var zt={test:Te("hsl","hue"),parse:Zo("hue","saturation","lightness"),transform:r(({hue:t,saturation:e,lightness:o,alpha:i=1})=>"hsla("+Math.round(t)+", "+lt.transform(Ct(e))+", "+lt.transform(Ct(o))+", "+Ct(Rt.transform(i))+")","transform")};var X={test:r(t=>Et.test(t)||oo.test(t)||zt.test(t),"test"),parse:r(t=>Et.test(t)?Et.parse(t):zt.test(t)?zt.parse(t):oo.parse(t),"parse"),transform:r(t=>typeof t=="string"?t:t.hasOwnProperty("red")?Et.transform(t):zt.transform(t),"transform"),getAnimatableNone:r(t=>{let e=X.parse(t);return e.alpha=0,X.transform(e)},"getAnimatableNone")};var jn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var Un=new RegExp(ve.source),Wn=new RegExp(jn.source,"i");function Rc(t){return isNaN(t)&&typeof t=="string"&&(Un.test(t)||Wn.test(t))}r(Rc,"test");var Kn="number",zn="color",Lc="var",Ic="var(",Gn="${}",kc=/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+)(?![a-z]*\()/giu;function Hn(t){let e=t.toString();return Un.test(e)||Wn.test(e)}r(Hn,"hasComplexValues");function Se(t){let e=t.toString(),o=[],i={color:[],number:[],var:[]},n=[],a=0,l=e.replace(kc,c=>(X.test(c)?(i.color.push(a),n.push(zn),o.push(X.parse(c))):c.startsWith(Ic)?(i.var.push(a),n.push(Lc),o.push(c)):(i.number.push(a),n.push(Kn),o.push(parseFloat(c))),++a,Gn)).split(Gn);return{values:o,split:l,indexes:i,types:n}}r(Se,"analyseComplexValue");function Bc(t){return Se(t).values}r(Bc,"parseComplexValue");function Qo({split:t,types:e}){let o=t.length;return i=>{let n="";for(let a=0;a<o;a++)if(n+=t[a],i[a]!==void 0){let s=e[a];s===Kn?n+=Ct(i[a]):s===zn?n+=X.transform(i[a]):n+=i[a]}return n}}r(Qo,"buildTransformer");function Oc(t){return Qo(Se(t))}r(Oc,"createTransformer");var Fc=r(t=>typeof t=="number"?0:X.test(t)?X.getAnimatableNone(t):t,"convertNumbersToZero"),Nc=r((t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Fc(t),"convertToZero");function jc(t){let e=Se(t);return Qo(e)(e.values.map((i,n)=>Nc(i,e.split[n])))}r(jc,"getAnimatableNone");var rt={test:Rc,parse:Bc,createTransformer:Oc,getAnimatableNone:jc};function Ai(t,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(e-t)*6*o:o<1/2?e:o<2/3?t+(e-t)*(2/3-o)*6:t}r(Ai,"hueToRgb");function _n({hue:t,saturation:e,lightness:o,alpha:i}){t/=360,e/=100,o/=100;let n=0,a=0,s=0;if(!e)n=a=s=o;else{let l=o<.5?o*(1+e):o+e-o*e,c=2*o-l;n=Ai(c,l,t+1/3),a=Ai(c,l,t),s=Ai(c,l,t-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}r(_n,"hslaToRgba");function Ve(t,e){return o=>o>0?e:t}r(Ve,"mixImmediate");var k=r((t,e,o)=>t+(e-t)*o,"mixNumber");var wi=r((t,e,o)=>{let i=t*t,n=o*(e*e-i)+i;return n<0?0:Math.sqrt(n)},"mixLinearColor"),Gc=[oo,Et,zt],Uc=r(t=>Gc.find(e=>e.test(t)),"getColorType");function $n(t){let e=Uc(t);if(!e)return!1;let o=e.parse(t);return e===zt&&(o=_n(o)),o}r($n,"asRGBA");var Mi=r((t,e)=>{let o=$n(t),i=$n(e);if(!o||!i)return Ve(t,e);let n={...o};return a=>(n.red=wi(o.red,i.red,a),n.green=wi(o.green,i.green,a),n.blue=wi(o.blue,i.blue,a),n.alpha=k(o.alpha,i.alpha,a),Et.transform(n))},"mixColor");var tr=new Set(["none","hidden"]);function Yn(t,e){return tr.has(t)?o=>o<=0?t:e:o=>o>=1?e:t}r(Yn,"mixVisibility");function Wc(t,e){return o=>k(t,e,o)}r(Wc,"mixNumber");function er(t){return typeof t=="number"?Wc:typeof t=="string"?Kt(t)?Ve:X.test(t)?Mi:Hc:Array.isArray(t)?Xn:typeof t=="object"?X.test(t)?Mi:Kc:Ve}r(er,"getMixer");function Xn(t,e){let o=[...t],i=o.length,n=t.map((a,s)=>er(a)(a,e[s]));return a=>{for(let s=0;s<i;s++)o[s]=n[s](a);return o}}r(Xn,"mixArray");function Kc(t,e){let o={...t,...e},i={};for(let n in o)t[n]!==void 0&&e[n]!==void 0&&(i[n]=er(t[n])(t[n],e[n]));return n=>{for(let a in i)o[a]=i[a](n);return o}}r(Kc,"mixObject");function zc(t,e){let o=[],i={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let a=e.types[n],s=t.indexes[a][i[a]],l=t.values[s]??0;o[n]=l,i[a]++}return o}r(zc,"matchOrder");var Hc=r((t,e)=>{let o=Se(t),i=Se(e);return o.indexes.var.length===i.indexes.var.length&&o.indexes.color.length===i.indexes.color.length&&o.indexes.number.length>=i.indexes.number.length?tr.has(t)&&!i.values.length||tr.has(e)&&!o.values.length?Yn(t,e):vt(Xn(zc(o,i),i.values),Qo(i)):Ve(t,e)},"mixComplex");var qn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function _c(t,e){let o=qn.exec(t);if(!o)return;let i=qn.exec(e);if(!i||o[2]!==i[2])return;let n=o[2],a=parseFloat(o[1]),s=parseFloat(i[1]);return l=>Ct(k(a,s,l))+n}r(_c,"mixUnit");function be(t,e,o){if(typeof t=="number"&&typeof e=="number"&&typeof o=="number")return k(t,e,o);if(typeof t=="string"&&typeof e=="string"){let n=_c(t,e);if(n)return n}return er(t)(t,e)}r(be,"mix");var io=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Zn(t){let e=new Set,o=new Set,i=!1,n=!1,a,s=new Set,l={delta:0,timestamp:0,isProcessing:!1};function c(m){s.has(m)&&(o.add(m),t()),(a=m)(l)}r(c,"triggerCallback");let u={schedule:r((m,f=!1,p=!1)=>{let h=p&&i,d=h?e:o;return f&&s.add(m),h&&m!==a&&d.delete(m),d.add(m),m},"schedule"),cancel:r(m=>{o.delete(m),s.delete(m)},"cancel"),process:r(m=>{if(l=m,i){n=!0;return}i=!0;let f=e;e=o,o=f,e.forEach(c),e.clear(),a=void 0,i=!1,n&&(n=!1,u.process(m))},"process")};return u}r(Zn,"createRenderStep");var $c=40;function or(t,e,o={delta:0,timestamp:0,isProcessing:!1}){let i=!1,n=!0,a=r(()=>i=!0,"flagRunNextFrame"),s=io.reduce((M,E)=>(M[E]=Zn(a),M),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:m,update:f,preRender:p,render:h,postRender:d}=s,y=r(()=>{let M=Z.useManualTiming,E=M?o.timestamp:performance.now();i=!1,M||(o.delta=n?1e3/60:Math.max(Math.min(E-o.timestamp,$c),1)),o.timestamp=E,o.isProcessing=!0,l.process(o),c.process(o),u.process(o),m.process(o),f.process(o),p.process(o),h.process(o),d.process(o),o.isProcessing=!1,i&&e&&(n=!1,t(y))},"processBatch"),g=r(()=>{i=!0,n=!0,o.isProcessing||t(y)},"wake");return{schedule:io.reduce((M,E)=>{let F=s[E];return M[E]=(W,x=!1,w=!1)=>(i||g(),F.schedule(W,x,w)),M},{}),cancel:r(M=>{for(let E=0;E<io.length;E++)s[io[E]].cancel(M)},"cancel"),state:o,steps:s}}r(or,"createRenderBatcher");var{schedule:I,cancel:ct,steps:no}=or(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0,_);var rr=r(t=>{let e=r(({timestamp:o})=>t(o),"passTimestamp");return{start:r((o=!0)=>I.update(e,o),"start"),stop:r(()=>ct(e),"stop"),now:r(()=>_.isProcessing?_.timestamp:N.now(),"now")}},"frameloopDriver");var ir=r((t,e,o=10)=>{let i="",n=Math.max(Math.round(e/o),2);for(let a=0;a<n;a++)i+=Math.round(t(a/(n-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},"generateLinearEasing");function Pe(t,e=50,o=2e4,i){let n=0,a=t.next(n);for(i?.push(a.value);!a.done&&n<o;)n+=e,a=t.next(n),i?.push(a.value);return n>=o?1/0:n}r(Pe,"calcGeneratorDuration");function Jn(t,e=100,o){let{keyframes:i,velocity:n}=t,a=i&&i[i.length-1]-i[0],s=o({...t,velocity:n&&a?n*e/a:n,keyframes:[0,e]}),l=Math.min(Pe(s),2e4);return{type:"keyframes",ease:r(c=>s.next(l*c).value/e,"ease"),duration:tt(l)}}r(Jn,"createGeneratorEasing");var Qn=100,ts=10,Yc=1,Xc=800,rs=.3,qc=.3,Zc=.01,Jc=2,Qc=.005,tu=.5,eu=.01,ou=10,es=.05,is=r(t=>t<0?1/Math.max(1+t,es):Math.max(1-t,es),"bounceToDampingRatio");function ns(t,e){if(!(t>1))return 1;let o=Math.sqrt(t*t-1),i=t-o,n=t+o,a=2*o*Math.exp(-e)*(1+e);return ss(s=>n*Math.exp(-i*s)-i*Math.exp(-n*s)-a,s=>Math.exp(-n*s)-Math.exp(-i*s),e)/e}r(ns,"overdampedFreqScale");function Ri(t,e){return t*Math.sqrt(1-e*e)}r(Ri,"calcAngularFreq");var ru=12;function ss(t,e,o){let i=o;for(let n=1;n<ru;n++)i=i-t(i)/e(i);return i}r(ss,"approximateRoot");var Di=.001;function iu({duration:t=Xc,bounce:e=rs}){let o,i,n=is(e);t=q(eu,ou,tt(t)),n<1?(o=r(u=>{let m=u*n,f=m*t,p=Ri(u,n),h=Math.exp(-f);return Di-m/p*h},"envelope"),i=r(u=>{let f=u*n*t,p=n*n*u*u*t,h=Math.exp(-f),d=Ri(u*u,n);return(-o(u)+Di>0?-1:1)*-p*h/d},"derivative")):(o=r(u=>{let m=Math.exp(-u*t),f=u*t+1;return-Di+m*f},"envelope"),i=r(u=>{let m=Math.exp(-u*t),f=-u*(t*t);return m*f},"derivative"));let a=5/t,s=ss(o,i,a),l=s*ns(n,s*t),c=l*l;return{stiffness:c,damping:n*2*Math.sqrt(c),duration:ot(t)}}r(iu,"findSpring");var Li=r((t,e)=>(e?t>=0:t>0)&&t<1/0,"isValidPhysics");function Ei(t,e){if(Li(t,e))return t}r(Ei,"resolvePhysics");function nu(t){let e=Ei(t.stiffness),o=Ei(t.damping,!0),i=Ei(t.mass),n={...t,stiffness:e??Qn,damping:o??ts,mass:i??Yc,isResolvedFromDuration:!1,isTimeDefined:(e??o??i)===void 0&&(t.duration!==void 0||t.bounce!==void 0)};if(n.isTimeDefined){if(t.visualDuration){let a=is(t.bounce||0),s=2*Math.PI/(t.visualDuration*1.2)*ns(a,2*Math.PI/1.2);n.stiffness=s*s,n.damping=2*a*Math.sqrt(n.stiffness)}else Object.assign(n,iu(n)),n.isResolvedFromDuration=!0;(!Li(n.stiffness)||!Li(n.damping,!0))&&(n.stiffness=Qn,n.damping=ts)}return n}r(nu,"getSpringOptions");function os(t=qc,e=rs){let o=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,i=o.keyframes[0],n=o.keyframes[o.keyframes.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:c,duration:u,isResolvedFromDuration:m,isTimeDefined:f}=nu({...o}),p=r(x=>f?0:-tt(x),"inheritVelocity"),h=l/(2*Math.sqrt(s*c)),d=tt(Math.sqrt(s/c)),y=h*d,g={target:n,delta:n-i,velocity:p(o.velocity||0)||0,restSpeed:0,restDelta:0},P=r(()=>{let x=Math.abs(g.delta)<5;g.restSpeed=o.restSpeed||(x?Zc:Jc),g.restDelta=o.restDelta||(x?Qc:tu)},"setRestThresholds");P();let S,M,E;if(h<1){let x=Ri(d,h),w={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};E=r(()=>{w.A=(g.velocity+y*g.delta)/x,w.sinC=y*w.A+g.delta*x,w.cosC=y*g.delta-w.A*x},"update");let H=r(K=>{K!==w.t&&(w.t=K,w.env=Math.exp(-y*K),w.sin=Math.sin(x*K),w.cos=Math.cos(x*K))},"sample");S=r(K=>(H(K),g.target-w.env*(w.A*w.sin+g.delta*w.cos)),"resolveSpring"),M=r(K=>(H(K),w.env*(w.sinC*w.sin+w.cosC*w.cos)),"resolveVelocity")}else if(h===1){S=r(w=>g.target-Math.exp(-d*w)*(g.delta+(g.velocity+d*g.delta)*w),"resolveSpring");let x={C:0};E=r(()=>{x.C=g.velocity+d*g.delta},"update"),M=r(w=>Math.exp(-d*w)*(d*x.C*w-g.velocity),"resolveVelocity")}else{let x=d*Math.sqrt(h*h-1),w=y-x,H=y+x,K=x<1||f?1/0:300/x,xt=r((st,z)=>Math.exp(z>K?(y-st)*K-y*z:-st*z),"decayAt"),et={S:0,F:0};E=r(()=>{let st=(g.velocity+y*g.delta)/x;et.S=(g.delta+st)/2,et.F=(g.delta-st)/2},"update"),S=r(st=>g.target-et.S*xt(w,st)-et.F*xt(H,st),"resolveSpring"),M=r(st=>w*et.S*xt(w,st)+H*et.F*xt(H,st),"resolveVelocity")}E();let F=m&&u||null,W={calculatedDuration:F,retarget:r((x,w)=>{g.target=x[x.length-1],g.delta=g.target-x[0],g.velocity=p(w),o.restSpeed&&o.restDelta||P(),W.calculatedDuration=F,a.done=!1,E()},"retarget"),velocity:r(x=>ot(M(x)),"velocity"),next:r(x=>{let w=S(x);if(m)a.done=x>=u;else{let H=ot(M(x));a.done=Math.abs(H)<=g.restSpeed&&Math.abs(g.target-w)<=g.restDelta}return a.value=a.done?g.target:w,a},"next"),toString:r(()=>{let x=Math.min(Pe(W),2e4),w=ir(H=>W.next(x*H).value,x,30);return x+"ms "+w},"toString"),toTransition:r(()=>{},"toTransition")};return W}r(os,"springGenerator");var nr=Object.assign(os,{applyToOptions:r(t=>{let e=Jn(t,100,os);return t.ease=e.ease,t.duration=ot(e.duration),t.type="keyframes",t},"applyToOptions")});function Ae({keyframes:t,velocity:e=0,power:o=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:m}){let f=t[0],p={done:!1,value:f},h=r(x=>x<l||x>c,"isOutOfBounds"),d=r(x=>l===void 0?c:c===void 0||Math.abs(l-x)<Math.abs(c-x)?l:c,"nearestBoundary"),y=o*e,g=f+y,P=s?s(g):g;P!==g&&(y=P-f);let S=r(x=>-y*Math.exp(-x/i),"calcDelta"),M=r(x=>{let w=S(x);p.done=Math.abs(w)<=u,p.value=p.done?P:x?P+w:f},"applyFriction"),E,F,W=r(x=>{h(p.value)&&(E=x,F=nr({keyframes:[p.value,d(p.value)],velocity:-S(x)/i*1e3,damping:n,stiffness:a,restDelta:u,restSpeed:m}))},"checkCatchBoundary");return W(0),{calculatedDuration:null,next:r(x=>{let w=!1;return!F&&E===void 0&&(w=!0,M(x),W(x)),E!==void 0&&x>=E?F.next(x-E):(!w&&M(x),p)},"next")}}r(Ae,"inertia");function su(t,e,o){let i=[],n=Z.mix||be,a=t.length-1;for(let s=0;s<a;s++){let l=o?.(t[s],t[s+1])||n(t[s],t[s+1]);if(e){let c=Array.isArray(e)?e[s]||J:e;l=vt(c,l)}i.push(l)}return i}r(su,"createMixers");function as(t,e,{clamp:o=!0,ease:i,mixer:n}={}){let a=t.length;if(a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=su(e,i,n),c=l.length,u=r(m=>{if(s&&m<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(m<t[f+1]);f++);let p=pt(t[f],t[f+1],m);return l[f](p)},"interpolator");return o?m=>u(q(t[0],t[a-1],m)):u}r(as,"interpolate");function ls(t,e){let o=t[t.length-1];for(let i=1;i<=e;i++){let n=pt(0,e,i);t.push(k(o,1,n))}}r(ls,"fillOffset");function so(t){let e=[0];return ls(e,t.length-1),e}r(so,"defaultOffset");function cs(t,e){return t.map(o=>o*e)}r(cs,"convertOffsetToTimes");function au(t,e){return t.map(()=>e||xe).splice(0,t.length-1)}r(au,"defaultEasing");function bt({duration:t=300,keyframes:e,times:o,ease:i="easeInOut",mixer:n}){let a=typeof e[0]=="number"?void 0:n,s=Vi(i)?i.map($o):$o(i)||xe,l={done:!1,value:e[0]};if(!a&&e.length===2&&!Array.isArray(s)&&(!o||o.length!==2||o[0]===0&&o[1]===1)){let[m,f]=e,p=m===f?void 0:(Z.mix||be)(m,f);return{calculatedDuration:t,next:r(h=>(l.value=p?p(s(t>0?q(0,1,h/t):1)):f,l.done=h>=t,l),"next")}}let c=cs(o&&o.length===e.length?o:so(e),t),u=as(c,e,{ease:Array.isArray(s)?s:au(e,s),mixer:a});return{calculatedDuration:t,next:r(m=>(l.value=u(m),l.done=m>=t,l),"next")}}r(bt,"keyframes");var lu=5;function cu(t,e,o){let i=Math.max(e-lu,0);return Xe(o-t(i),e-i)}r(cu,"getGeneratorVelocity");function us(t,e,o=0){return e<=0?o:t.velocity?t.velocity(e):cu(i=>t.next(i).value,e,t.next(e).value)}r(us,"calcGeneratorVelocity");var uu=r(t=>t!==null,"isNotNull");function Lt(t,{repeat:e,repeatType:o="loop"},i,n=1){let a=t.filter(uu),l=n<0||e&&o!=="loop"&&e%2===1?0:a.length-1;return!l||i===void 0?a[l]:i}r(Lt,"getFinalKeyframe");var mu={decay:Ae,inertia:Ae,tween:bt,keyframes:bt,spring:nr};function sr(t){typeof t.type=="string"&&(t.type=mu[t.type])}r(sr,"replaceTransitionType");var fu=40,ar=r((t,e)=>e-t>fu&&!Z.useManualTiming?e:t,"resolveStartTime");function ms(t,e){return{kind:t,animation:e,timestamp:N.now(),frameTimestamp:_.timestamp,frameIsProcessing:_.isProcessing}}r(ms,"baseRecord");function lr(t,e,o){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...ms("animation-start",t),options:o?{...e,...o}:e})}catch{}}r(lr,"notifyAnimationStart");function fs(t,e){let o=globalThis.__MOTION_INSPECT__;if(o)try{o({...ms("layout-animation-start",t),node:e})}catch{}}r(fs,"notifyLayoutAnimationStart");var Ht=class{static{r(this,"WithPromise")}constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,o){return this.finished.then(e,o)}};var pu=r(t=>t/100,"percentToProgress"),cr=r(t=>Math.round(t*1e4)/1e4,"round"),Pt=class extends Ht{static{r(this,"JSAnimation")}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:o}=this.options;o&&o.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),lr(this,this.options)}initAnimation(){let{options:e}=this;sr(e);let{type:o=bt,repeat:i=0,repeatDelay:n=0,repeatType:a,velocity:s=0}=e,{keyframes:l}=e,c=o||bt;this.mixKeyframes=void 0,c!==bt&&typeof l[0]!="number"&&(this.mixKeyframes=vt(pu,e.mixer?.(l[0],l[1])||be(l[0],l[1])),l=[0,100]);let u=c(l===e.keyframes?e:{...e,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=Pe(u));let{calculatedDuration:m}=u;this.calculatedDuration=m,this.resolvedDuration=m+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,o=!1){let{generator:i,totalDuration:n,calculatedDuration:a}=this;if(this.startTime===null)return i.next(0);let{delay:s=0,keyframes:l,type:c,onUpdate:u,finalKeyframe:m}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=ar(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),o?this.currentTime=e:this.updateTime(e);let f=this.currentTime-s*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?f<0:f>n;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let h=this.generate(this.currentTime,p),{done:d}=h;p||(d=this.playbackSpeed>=0?a<1/0?this.currentTime>=n:d:this.currentTime<=0);let y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&d);return y&&c!==Ae&&(h.value=Lt(l,this.options,m,this.speed)),u&&u(h.value),y&&this.finish(),h}at(e){return this.holdTime??cr((e-this.startTime)*this.playbackSpeed)}sampleAt(e,o){let{options:i,totalDuration:n}=this,a=this.at(e)-(i.delay||0);return a>=n&&i.type!==Ae?Lt(i.keyframes,i,o?void 0:i.finalKeyframe):this.generate(Math.max(a,0),a<0).value}generate(e,o){let{generator:i,totalDuration:n,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:l}=this,{keyframes:c,repeat:u,repeatType:m,repeatDelay:f}=this.options,p=e,h=i;if(u){let y=Math.min(e,n)/l,g=Math.floor(y),P=y%1;!P&&y>=1&&(P=1),P===1&&g--,g=Math.min(g,u+1),g%2&&(m==="reverse"?(P=1-P,f&&(P-=f/l)):m==="mirror"&&(h=s)),p=q(0,1,P)*l}let d;return o?(this.delayState.value=c[0],d=this.delayState):d=h.next(p),a&&!o&&(d.value=a(d.value)),d}get duration(){return tt(this.calculatedDuration)}get iterationDuration(){return this.duration+tt(this.options.delay??0)}get time(){return tt(this.currentTime)}set time(e){e=ot(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(){return us(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let o=this.playbackSpeed!==e;o&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,o&&this.driver&&(this.time=tt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=rr,startTime:o}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=o??(this.pendingStartTime=i)),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(N.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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}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)}};var hu=new Set(["brightness","contrast","saturate","opacity"]);function du(t){let[e,o]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[i]=o.match(ve)||[];if(!i)return t;let n=o.replace(i,""),a=hu.has(e)?1:0;return i!==o&&(a*=100),e+"("+a+n+")"}r(du,"applyDefaultFilter");var gu=/\b([a-z-]*)\(.*?\)/gu,ao={...rt,getAnimatableNone:r(t=>{let e=t.match(gu);return e?e.map(du).join(" "):t},"getAnimatableNone")};var lo={...rt,getAnimatableNone:r(t=>{let e=rt.parse(t);return rt.createTransformer(t)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))},"getAnimatableNone")};var Ii={...Dt,transform:Math.round};var ur={rotate:Vt,pathRotation:Vt,rotateX:Vt,rotateY:Vt,rotateZ:Vt,scale:eo,scaleX:eo,scaleY:eo,scaleZ:eo,skew:Vt,skewX:Vt,skewY:Vt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Rt,originX:Pi,originY:Pi,originZ:V};var we={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...ur,zIndex:Ii,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Ii};var yu={...we,color:X,backgroundColor:X,outlineColor:X,fill:X,stroke:X,borderColor:X,borderTopColor:X,borderRightColor:X,borderBottomColor:X,borderLeftColor:X,filter:ao,WebkitFilter:ao,mask:lo,WebkitMask:lo},mr=r(t=>yu[t],"getDefaultValueType");var xu=new Set([ao,lo]);function Me(t,e){let o=mr(t);return xu.has(o)||(o=rt),o.getAnimatableNone?o.getAnimatableNone(e):void 0}r(Me,"getAnimatableNone");function ps(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}r(ps,"fillWildcards");var ee=r(t=>t*180/Math.PI,"radToDeg"),ki=r(t=>{let e=ee(Math.atan2(t[1],t[0]));return Bi(e)},"rotate"),vu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:r(()=>1,"scaleZ"),scale:r(t=>(Math.abs(t[0])+Math.abs(t[3]))/2,"scale"),rotate:ki,rotateZ:ki,skewX:r(t=>ee(Math.atan(t[1])),"skewX"),skewY:r(t=>ee(Math.atan(t[2])),"skewY"),skew:r(t=>(Math.abs(t[1])+Math.abs(t[2]))/2,"skew")},Bi=r(t=>(t=t%360,t<0&&(t+=360),t),"rebaseAngle"),hs=ki,ds=r(t=>Math.hypot(t[0],t[1]),"scaleX"),gs=r(t=>Math.hypot(t[4],t[5]),"scaleY"),Tu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ds,scaleY:gs,scaleZ:r(t=>Math.hypot(t[8],t[9],t[10]),"scaleZ"),scale:r(t=>(ds(t)+gs(t))/2,"scale"),rotateX:r(t=>Bi(ee(Math.atan2(t[6],t[5]))),"rotateX"),rotateY:r(t=>Bi(ee(Math.atan2(-t[2],t[0]))),"rotateY"),rotateZ:hs,rotate:hs,skewX:r(t=>ee(Math.atan(t[4])),"skewX"),skewY:r(t=>ee(Math.atan(t[1])),"skewY"),skew:r(t=>(Math.abs(t[1])+Math.abs(t[4]))/2,"skew")};function oe(t){return t.includes("scale")?1:0}r(oe,"defaultTransformValue");function fr(t,e){if(!t||t==="none")return oe(e);let o=t.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!o)return oe(e);let i=(o[1]?Tu:vu)[e],n=o[2].split(",").map(a=>parseFloat(a));return typeof i=="function"?i(n):n[i]}r(fr,"parseValueFromTransform");var ys=r((t,e)=>{let{transform:o="none"}=getComputedStyle(t);return fr(o,e)},"readTransformValue");var ut=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mt=new Set([...ut,"pathRotation"]);var Oi=r(t=>t===Dt||t===V,"isNumOrPxType"),Su=new Set(["x","y","z"]),Vu=ut.filter(t=>!Su.has(t));function Ss(t){let e=[];return Vu.forEach(o=>{let i=t.getValue(o);if(i!==void 0){let n=i.get(),a=o.startsWith("scale")?1:0;if(n===a)return;e.push([o,n]),i.set(a)}}),e}r(Ss,"removeNonTranslationalTransform");var Vs=new Set(["bottom","right"]);function xs(t,e,o,i,n,a){let s=parseFloat(t);if(!isNaN(s))return s;let{min:l,max:c}=e()[o],u=c-l;return a==="border-box"?u:u-parseFloat(i)-parseFloat(n)}r(xs,"measureDimension");var vs=r(({transform:t})=>fr(t,"x"),"transformX"),Ts=r(({transform:t})=>fr(t,"y"),"transformY"),pr={width:r(({width:t,paddingLeft:e="0",paddingRight:o="0",boxSizing:i},n)=>xs(t,n,"x",e,o,i),"width"),height:r(({height:t,paddingTop:e="0",paddingBottom:o="0",boxSizing:i},n)=>xs(t,n,"y",e,o,i),"height"),top:r(({top:t})=>parseFloat(t),"top"),left:r(({left:t})=>parseFloat(t),"left"),bottom:r(({top:t},e)=>{let{y:o}=e();return parseFloat(t)+(o.max-o.min)},"bottom"),right:r(({left:t},e)=>{let{x:o}=e();return parseFloat(t)+(o.max-o.min)},"right"),x:vs,y:Ts,translateX:vs,translateY:Ts};var re=new Set,Fi=!1,Ni=!1,ji=!1;function bs(){if(Ni){let t=[],e=new Set,o=new Set;re.forEach(n=>{n.needsMeasurement&&(t.push(n),e.add(n.element),Vs.has(n.name)&&o.add(n.element))});let i=new Map;o.forEach(n=>{let a=Ss(n);a.length&&(i.set(n,a),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();let a=i.get(n);a&&a.forEach(([s,l])=>{n.getValue(s)?.set(l)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ni=!1,Fi=!1,re.forEach(t=>t.complete(ji)),re.clear()}r(bs,"measureAllKeyframes");function Ps(){re.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ni=!0)})}r(Ps,"readAllKeyframes");function As(){ji=!0,Ps(),bs(),ji=!1}r(As,"flushKeyframeResolvers");function bu(t,e,o){if(typeof t=="string"){if(Jt(t)||Qt(t))return parseFloat(t);if(!rt.test(t)&&rt.test(o))return Me(e,o)}return t??void 0}r(bu,"readOrigin");var _t=class{static{r(this,"KeyframeResolver")}constructor(e,o,i,n,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=o,this.name=i,this.motionValue=n,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(re.add(this),Fi||(Fi=!0,I.read(Ps),I.resolveKeyframes(bs))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:o,element:i,motionValue:n}=this;if(e[0]===null){let a=n?.get(),s=e[e.length-1];if(a!==void 0)e[0]=a;else if(i&&o){let l=bu(i.readValue(o,s),o,s);l!==void 0&&(e[0]=l)}e[0]===void 0&&(e[0]=s),n&&a===void 0&&n.set(e[0])}ps(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),re.delete(this)}cancel(){this.state==="scheduled"&&(re.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var ws=r(t=>t.startsWith("--"),"isCSSVar");function hr(t,e,o){ws(e)?t.style.setProperty(e,o):t.style[e]=o}r(hr,"setStyle");var Ms={};function dr(t,e){let o=xi(t);return()=>Ms[e]??o()}r(dr,"memoSupports");var Cs=dr(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var Ce=dr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var It=r(([t,e,o,i])=>`cubic-bezier(${t}, ${e}, ${o}, ${i})`,"cubicBezierAsString");var co={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:It([0,.65,.55,1]),circOut:It([.55,0,1,.45]),backIn:It([.31,.01,.66,-.59]),backOut:It([.33,1.53,.69,.99])};function Gi(t,e){if(t)return typeof t=="function"?Ce()?ir(t,e):"ease-out":te(t)?It(t):Array.isArray(t)?t.map(o=>Gi(o,e)||co.easeOut):co[t]}r(Gi,"mapEasingToNativeEasing");function Ds(t,e,o,{delay:i=0,duration:n=300,repeat:a=0,repeatType:s="loop",ease:l="easeOut",times:c}={},u=void 0){let m={[e]:o};c&&(m.offset=c);let f=Gi(l,n);Array.isArray(f)&&(m.easing=f);let p={delay:i,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),t.animate(m,p)}r(Ds,"startWaapiAnimation");function gr(t){return typeof t=="function"&&"applyToOptions"in t}r(gr,"isGenerator");function Es({type:t,...e}){return gr(t)&&Ce()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}r(Es,"applyGeneratorOptions");var De=class extends Ht{static{r(this,"NativeAnimation")}constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:o,name:i,keyframes:n,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=e,typeof process<"u";let u=Es(e);this.animation=Ds(o,i,n,u,a),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let m=Lt(n,this.options,l,this.speed);this.updateMotionValue?.(m),hr(o,i,m),this.animation.cancel()}c?.(),this.notifyFinished()},lr(this,e,u)}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(){this.isStopped||(this.isStopped=!0,!(this.state==="idle"||this.finishedTime!==null)&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,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 tt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+tt(e)}get time(){return tt(Number(this.animation.currentTime)||0)}set time(e){let o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(e),o&&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?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:o,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Cs()?(this.animation.timeline=e,o?.(this.animation),J):i(this)}};var Rs={anticipate:Ze,backInOut:qe,circInOut:to};function Pu(t){return t in Rs}r(Pu,"isUnsupportedEase");function Ls(t){typeof t.ease=="string"&&Pu(t.ease)&&(t.ease=Rs[t.ease])}r(Ls,"replaceStringEasing");var uo=10,yr=class extends De{static{r(this,"NativeAnimationExtended")}constructor(e){Ls(e),sr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state==="running"?(N.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:o,onUpdate:i,onComplete:n,onPlay:a,onStop:s,element:l,...c}=this.options;this.sampler=new Pt({...c,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e==="running"||e==="paused")return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:o,element:i,name:n}=this.options;if(!o)return;if(e!==void 0){o.set(e);return}let{speed:a}=this,s=this.elapsed(),l=this.state==="running"&&a?q(0,uo,s):0,c=this.sample(s);i&&n&&hr(i,n,c),o.setWithVelocity(this.sample(s-l*Math.sign(a)),c,l/Math.abs(a||1))}};var Ui=r((t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(rt.test(t)||t==="0")&&!t.startsWith("url(")),"isAnimatable");function Au(t){let e=t[0];if(t.length===1)return!0;for(let o=0;o<t.length;o++)if(t[o]!==e)return!0}r(Au,"hasKeyframesChanged");function Is(t,e,o,i){let n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;let a=t[t.length-1],s=Ui(n,e),l=Ui(a,e);return!s||!l?!1:Au(t)||(o==="spring"||gr(o))&&i}r(Is,"canAnimate");function mo(t){t.duration=0,t.type="keyframes"}r(mo,"makeAnimationInstant");var fo=new Set(["opacity","clipPath","filter","transform"]);var wu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ks(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&wu.test(t[e]))return!0;return!1}r(ks,"hasBrowserOnlyColors");var xr=r(({mixer:t,keyframes:e})=>t&&typeof e[0]!="number"&&e.some((o,i)=>i&&t(e[i-1],o)),"needsMixer");var Bs=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Wi=r(()=>!Z.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate"),"supportsWaapi");function Os(t){let{motionValue:e,name:o,repeatDelay:i,repeatType:n,damping:a,type:s,keyframes:l}=t;if(!o||!(fo.has(o)||Bs.has(o)))return!1;let c=e?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:m}=e.owner.getProps();return Wi()&&(fo.has(o)||Bs.has(o)&&ks(l))&&(o!=="transform"||!m)&&!u&&!i&&n!=="mirror"&&a!==0&&s!=="inertia"&&!xr(t)}r(Os,"supportsBrowserAnimation");var po=r((t,e)=>e&&typeof t=="number"?e.transform(t):t,"getValueAsType");var Mu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cu=ut.length,Fs={},vr=r((t,e,o=po(e,ur[t]))=>(Fs[t]||(Fs[t]=(Mu[t]||t)+"("))+o+")","transformFunction"),Tr=r((t,e)=>(typeof e=="number"?e:parseFloat(e))===(t.startsWith("scale")?1:0),"isDefaultTransform");function Ns(t,e,o){let i="";for(let a=0;a<Cu;a++){let s=ut[a],l=t[s];if(l===void 0)continue;let c=o&&(e[s]=po(l,we[s]));Tr(s,l)||(i+=vr(s,l,c||void 0)+" ")}let n=t.pathRotation;return n&&(i+=vr("rotate",n)),i=i.trim(),o?o(e,i):i||"none"}r(Ns,"buildTransform");var kt=new WeakMap;var Du=200,Ws=.001,Eu=.1,Ru=.001,Lu=100,Iu=r(t=>/^(linear|ease(In|Out|InOut))$/.test(t),"isNativeEasing"),js=r((t,e)=>Math.abs(t-e)<=Ws,"isNear"),Ki=r((t,e)=>t-e,"byTime"),Gs=r((t,e,o)=>so(Array(o+1)).map(i=>k(t,e,i)),"spread"),Sr=r(t=>t.motionValue.owner,"getOwner"),Vr=r(t=>kt.get(t),"getGroup"),Us=r(({state:t})=>t==="idle"||t==="finished","hasEnded"),Ee=r((t,e)=>t.latestValues?t.latestValues[e]:t.getValue(e)?.get(),"read"),Ks=r(({name:t,motionValue:e})=>t&&ut.includes(t)&&e?.owner?.current instanceof HTMLElement&&Wi()&&Ce(),"canGroupTransform");function ku(t){let e=Sr(t),{onUpdate:o,transformTemplate:i}=e.getProps();return!t.isHandoff&&!o&&!t.hasOnUpdate&&!i&&t.type!=="inertia"&&(Ee(e,"transform")||"none")==="none"&&!Ee(e,"pathRotation")&&!e.projection?.isProjecting()&&!xr(t)}r(ku,"canAccelerateTransform");var br=class extends Pt{static{r(this,"TransformAnimation")}constructor(e){let o=Sr(e).current,{driver:i=rr}=e,n,a=ku(e);e.driver=l=>{let c=i(l);return{js:c,now:c.now,start:r((u=!0)=>{let m=Vr(o);!m||m.isJS?c.start(u):m.schedule(!1,!u)},"start"),stop:r(()=>{c.stop();let u=Vr(o);u&&!u.isFinishing&&u.release(n)},"stop")}},super(e),n=this,this.canAccelerate=a;let{stop:s}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),s()}}get group(){return Vr(Sr(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:o,totalDuration:i}=this,{delay:n=0,repeatType:a}=this.options;return this.holdTime!==null?[1/0,0]:i===1/0?[e+n/o,this.resolvedDuration*(a==="loop"?1:2)/o||1]:[e+(n+i)/o,0]}isAccelerated(){let{group:e,state:o}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(o==="running"||o==="paused")}liveValue(){return this.isAccelerated()?this.sampleAt(N.now()):void 0}tween(){let{keyframes:e,type:o,ease:i,times:n,repeat:a,delay:s=0}=this.options,l=te(i)?It(i):Iu(i)&&co[i];if(l&&!a&&!n&&e.length===2&&o===bt&&this.holdTime===null){let c=this.startTime+s/this.speed;return[c,c+this.resolvedDuration/this.speed,l]}}boundaries(e,o){let{startTime:i,speed:n,resolvedDuration:a,options:s}=this,{delay:l=0,repeat:c=0,repeatDelay:u=0,repeatType:m,times:f,keyframes:p,type:h}=s,d=(h||bt)===bt?f||so(p):[0,1],y=i+l/n,g=[];if(this.holdTime!==null||!(a>0))return g;for(let P=Math.max(0,Math.floor((e-y)*n/a));P<=c;P++){let S=y+P*a/n;if(S>o)break;for(let M of d){let E=S+(P%2&&m&&m!=="loop"?1-M:M)*(a-u)/n;E>e&&E<o&&g.push(E)}}return g}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=N.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-uo,!0),this.sampleAt(e,!0),uo)}play(){this.isStopped||((this.group||Bu(Sr(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(N.now())}get time(){return this.isAccelerated()?tt(q(0,this.totalDuration,this.at(N.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function Bu(t){let e=t.current,o=new Set,i=new Map,n={},a=[],s=new Map,l=[],c=!1,u=!1,m=!1,f=!1,p=-1/0,h=r(b=>{for(let v of o)if(v.name===b)return!0},"has"),d=r((b,v)=>{let A={};for(let T of b===void 0?ut:a){let D=i.get(T),B=b===void 0?Ee(t,T):D?D.sampleAt(v>b&&!D.timing()[1]?v:b):n[T];B!==void 0&&(A[T]=B)}return A},"valuesAt"),y=r((b,v)=>{let A="";for(let T in b){let D=b[T];(!v||!Tr(T,D))&&(A+=vr(T,D)+" ")}return(v?A.trim():A)||"none"},"toTransform"),g=r((b,v)=>y(d(b,v)),"compose"),P=r((b=d())=>{e.style.transform=y(b,!0)},"commit"),S=r((b=!0)=>{b&&P(),l.forEach(({animation:v})=>v.cancel()),l=[]},"stop"),M=r((b,v)=>new Animation(new KeyframeEffect(e,b,v)),"create"),E=r((b,v,A=1/0)=>{let T={animation:b,offset:v,end:A};b.startTime=N.now()+v,A<1/0&&(b.onfinish=()=>{T.isDone=!0,l.some(D=>D.end===1/0)&&(b.cancel(),l=l.filter(D=>D!==T)),z.schedule(!1)}),b.oncancel=()=>l.includes(T)&&z.demote(),l.push(T)},"add"),F=r((b,v,A)=>{let T=r((B,R)=>Math.abs(b(R)-b(B)),"change"),D=T(v,A);for(;A-v>.01;){let B=(v+A)/2;T(v,B)>T(B,A)?A=B:v=B}return T(v,A)>D/2?[v,A]:[]},"jumpAt"),W=r((b,v,A,T)=>{let D=Math.min(Du,Math.max(2,Math.ceil((A-v)/uo)));if(T.length*4>D)return;let B=Gs(v,A,D).concat(T).sort(Ki),R=r(O=>pt(v,A,O),"position"),j,C;for(let O of b){let at=O.numberAt(v),Gt=B.map(wt=>O.numberAt(wt)-at),Mn=Gt[Gt.length-1],$e=Gt.some(wt=>Math.abs(wt)*Ws>Math.abs(Mn))?0:Mn,Cn=Gt.map(wt=>$e?wt/$e:wt);if($e&&!j)j=Cn,C=r(wt=>(O.numberAt(wt)-at)/$e,"progressAt");else if(Cn.some((wt,bc)=>!js(wt,$e&&j[bc])))return}if(!j||j.every((O,at)=>js(O,R(B[at]))))return"linear";let L=[],G=r((O,at=C(O))=>L.push(cr(at)+" "+cr(R(O)*100)+"%"),"point");return j.forEach((O,at)=>{at&&Math.abs(O-j[at-1])>.2&&F(C,B[at-1],B[at]).forEach(Gt=>G(Gt)),G(B[at],O)}),"linear("+L+")"},"getEasing"),x=r((b,v,A,T)=>{let D=[v],B=r((L,G)=>b.every(O=>!(Math.abs(O.numberAt((L+G)/2)-(O.numberAt(L)+O.numberAt(G))/2)>(O.name.startsWith("scale")?Ru:Eu))),"isStraight"),R=r((L,G,O)=>{if(G-L<1||B(L,G))D.push(G);else if(O<4)R(L,(L+G)/2,O+1),R((L+G)/2,G,O+1);else{for(let at of b)D.push(...F(Gt=>at.numberAt(Gt),L,G));D.push(G)}},"split"),j=Gs(v,A,Math.ceil((A-v)/100));for(let L of T)j.push(L,Math.min(L+.01,A));let C=v;for(let L of j.sort(Ki))L>C&&R(C,L,0),C=L;return D.sort(Ki)},"sample"),w=r(b=>{let v;for(let A of b){let T=A.tween();if(!T||v?.some((D,B)=>B<2?Math.abs(T[B]-D)>1:T[B]!==D))return;v=T}return v},"getTween"),H=r((b,v,A,T,D={fill:"both"},B)=>{let R=b.flatMap(O=>O.boundaries(v,A)),j=T||W(b,v,A,R),C=j?[v,A]:x(b,v,A,R),L=C.map(O=>g(O,B)),G={transform:L};return j||(G.offset=C.map(O=>pt(v,A,O))),L.every(O=>O===L[0])&&(P(d(v,B)),G=null),M(G,{...D,duration:A-v,easing:j||"linear"})},"run"),K=r(b=>{let v=b,A=0,T=0,D=[],B=[],R=new Set;i.clear(),s=new Map;for(let C of o){i.set(C.name,C);let[L,G]=C.timing(),O=L===1/0;if(s.set(C,[C.at(b),C.speed,O]),O){C.sync();continue}if(C.speed<0)return;if(G){if(A){let at=(L-T)/G;if(Math.abs(G-A)>1||Math.abs(at-Math.round(at))*A>1)return}else A=G,T=L;B.push(C)}else R.add(L);D.push(C),v=Math.max(v,L)}n={},a=ut.filter(C=>{if(i.has(C))return!0;let L=n[C]=Ee(t,C);return L!==void 0&&!Tr(C,L)}),S(!1);let j=!A&&w(D);try{if(j&&j[1]>b){let[C,L,G]=j;E(H(D,C,L,G),C-b,L-C)}else v>b&&(E(H(D,b,v),0,v-b),R.forEach(C=>C<v-1&&E(M(null,{duration:C-b}),0,C-b)));if(A){let C=T+Math.floor((v-T)/A)*A;E(H(B,C,C+A,void 0,{iterations:1/0,iterationStart:(v-C)/A,fill:"forwards"},v),v-b)}}catch{return}return l.length||S(),!0},"animate"),xt=r(b=>{let v,A=0;for(let T of o){let D=s.get(T);if(!D)return!1;let[B,R,j]=D,C=T.at(b),L=T.timing()[0]===1/0;if(j){if(L&&C===B)continue;return!1}let G=(C-B)/R,O=L?0:T.speed/R;if(v===void 0)v=G,A=O;else if(Math.abs(G-v)>1||O!==A)return!1}if(v===void 0)return!0;if(!l.length)return!1;for(let{offset:T,end:D,isDone:B}of l){let R=v-T;if(D<1/0&&(B?R<D-1:R<0||R>=D))return!1}for(let{animation:T,offset:D,isDone:B}of l){if(B)continue;let R=v-D;A&&T.updatePlaybackRate&&T.playState==="running"&&Math.abs(Number(T.currentTime)-R)<20?T.playbackRate!==A&&T.updatePlaybackRate(A):A?(T.playbackRate=A,T.startTime=b-R/A):(T.startTime=null,T.currentTime=R)}return!0},"retime"),et=r(()=>o.size?!1:(m=!0,Vr(e)===z&&kt.delete(e),z.isJS||S(),!0),"end"),st=r(()=>{let b=N.now();if(z.isJS||(z.isFinishing=!0,o.forEach(T=>{let[D,B]=T.timing();T.state==="running"&&T.speed>0&&!B&&D<=b+1&&(T.complete(),n[T.name]=Ee(t,T.name),s.has(T)||(c=!0))}),z.isFinishing=!1),u=!1,m||(o.forEach(T=>Us(T)&&o.delete(T)),et()))return;for(let T of o)if(!T.canAccelerate)return z.demote(!0);z.isJS&&(z.isJS=!1,c=!0,o.forEach(T=>T.js?.stop()));let v=c,A=f;if(c=f=!1,v||!xt(b)){if(A){if(b-p<Lu)return z.demote();p=b}if(!K(b))return z.demote()}},"build"),z={tracks:o,isJS:!1,isFinishing:!1,schedule(b,v){m||(c||(c=b),f||(f=!!v),u||(u=!0,_.isProcessing?I.render(st,!1,!0):queueMicrotask(st)))},release(b){Us(b)&&o.delete(b),et()||z.schedule(!0)},check(){if(!z.isJS){for(let b in n)if(Ee(t,b)!==n[b]&&!h(b))return z.schedule(!0,!0)}},demote(b){if(!(z.isJS||m))return o.forEach(v=>{v.isAccelerated()&&v.sync(),b||(v.canAccelerate=!1)}),z.isJS=!0,s=new Map,S(),o.forEach(v=>v.state==="running"&&v.js?.start()),!0}};return kt.set(e,z),z}r(Bu,"createGroup");var Pr=class extends Ht{static{r(this,"AsyncMotionValueAnimation")}constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();let{keyframes:o,name:i,motionValue:n,element:a}=e,s=e;s.autoplay??(s.autoplay=!0),s.delay??(s.delay=0),s.type??(s.type="keyframes"),s.repeat??(s.repeat=0),s.repeatDelay??(s.repeatDelay=0),s.repeatType??(s.repeatType="loop");let l=a?.KeyframeResolver||_t;this.keyframeResolver=new l(o,(c,u,m)=>this.onKeyframesResolved(c,u,s,!m),i,n,a),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,o,i,n){this.keyframeResolver=void 0;let{name:a,type:s,velocity:l,delay:c,isHandoff:u,onUpdate:m}=i;this.resolvedAt=N.now();let f=Is(e,a,s,l);f||((Z.instantAnimations||!c)&&m?.(Lt(e,i,o)),e[0]=e[e.length-1],mo(i),i.repeat=0);let{onComplete:p}=i;i.finalKeyframe=o,i.keyframes=e,i.onComplete=()=>{p?.(),this.notifyFinished()};let h=f&&!u&&Os(i),d=!h&&Ks(i);n&&(h||d||this.resolvedAt!==this.createdAt)&&(i.startTime??(i.startTime=ar(this.createdAt,this.resolvedAt)));let y;if(h){i.element=i.motionValue?.owner?.current;try{y=new yr(i)}catch{y=new Pt(i)}}else d?y=new br(i):y=new Pt(i);this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this._animation.finished:super.finished}then(e,o){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),As()),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?.cancel(),this.keyframeResolver?.cancel()}};function Ar(t,e,o,i=0,n=1){let a=Array.from(t).sort((u,m)=>u.sortNodePosition(m)).indexOf(e),s=t.size,l=(s-1)*i;return typeof o=="function"?o(a,s):n===1?a*i:l-a*i}r(Ar,"calcChildStagger");var zs=30,Ou=r(t=>!isNaN(parseFloat(t)),"isFloat"),Fu={current:void 0},zi=class{static{r(this,"MotionValue")}constructor(e,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{let n=N.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.dirty(),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=o.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ou(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,o){var i;return e==="change"?this.onChangeSubscribe(o):((i=this.events)[e]||(i[e]=new Mt)).add(o)}onChangeSubscribe(e){let{events:o}=this;return!o.change&&!this.changeSubscriber?this.changeSubscriber=e:(o.change||(o.change=new Mt,o.change.add(this.changeSubscriber),this.changeSubscriber=void 0),o.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:o.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){I.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,o){this.passiveEffect=e,this.stopPassiveEffect=o}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,o,i){this.set(o),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,o=!0){o&&(this.updatedAt=N.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:o}=this;o?o(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||(this.dependents=new Set)).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){Fu.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zs)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,zs);return Xe(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(e){return this.stop(),new Promise(o=>{this.hasAnimated=!0;let i=!1,n;n=e(()=>{i=!0,this.events.animationComplete?.notify(),this.animation===n&&(this.animation=void 0),o()}),i||(this.animation=n),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function At(t,e){return new zi(t,e)}r(At,"motionValue");function wr(t,e){if(t?.inherit&&e){let{inherit:o,...i}=t;return{...e,...i}}return t}r(wr,"resolveTransition");function Re(t,e){let o=t?.[e]??t?.default??t;return o!==t?wr(o,t):o}r(Re,"getValueTransition");var Nu={type:"spring",stiffness:500,damping:25,restSpeed:10},ju=r(t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),"criticallyDampedSpring"),Gu={type:"keyframes",duration:.8},Uu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hs=r((t,{keyframes:e})=>e.length>2?Gu:mt.has(t)?t.startsWith("scale")?ju(e[1]):Nu:Uu,"getDefaultTransition");var Wu=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","out","mixer"]);function _s(t){for(let e in t)if(!Wu.has(e))return!0;return!1}r(_s,"isTransitionDefined");var Le=r((t,e,o,i={},n,a)=>s=>{let l=Re(i,t)||{},c=l.delay||i.delay||0,{elapsed:u=0}=i;u=u-ot(c);let m={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:r(p=>{e.set(p),l.onUpdate&&l.onUpdate(p)},"onUpdate"),onComplete:r(()=>{s(),l.onComplete&&l.onComplete()},"onComplete"),name:t,motionValue:e,element:a?void 0:n,hasOnUpdate:!!l.onUpdate};_s(l)||Object.assign(m,Hs(t,m)),m.duration&&(m.duration=ot(m.duration)),m.repeatDelay&&(m.repeatDelay=ot(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let f=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(mo(m),m.delay===0&&(f=!0)),(Z.instantAnimations||Z.skipAnimations||n?.shouldSkipAnimations||l.skipAnimations)&&(f=!0,mo(m),m.delay=0),m.allowFlatten=!l.type&&!l.ease,f&&!a&&e.get()!==void 0){let p=Lt(m.keyframes,l);if(p!==void 0){I.update(()=>{m.onUpdate(p),m.onComplete()});return}}return l.isSync?new Pt(m):new Pr(m)},"animateMotionValue");var Ku=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zu(t){let e=Ku.exec(t);if(!e)return[,];let[,o,i,n]=e;return[`--${o??i}`,n]}r(zu,"parseCSSVariable");function ho(t,e,o=1){let[i,n]=zu(t);if(!i)return;let a=window.getComputedStyle(e).getPropertyValue(i);if(a){let s=a.trim();return Jt(s)?parseFloat(s):s}return Kt(n)?ho(n,e,o+1):n}r(ho,"getVariableValue");function Hu(t){let e=[{},{}];return t?.values.forEach((o,i)=>{e[0][i]=o.get(),e[1][i]=o.getVelocity()}),e}r(Hu,"getValueState");function go(t,e,o,i){let n=r(a=>typeof a=="function"?a(o!==void 0?o:t.custom,...Hu(i)):a,"resolveFunction");return e=n(e),typeof e=="string"&&(e=t.variants&&t.variants[e]),n(e)}r(go,"resolveVariantFromProps");function ht(t,e,o){return go(t.getProps(),e,o,t)}r(ht,"resolveVariant");var Mr=r((t,e)=>e==="exit"?t.presenceContext?.custom:void 0,"getTypeCustom");var Cr=new Set(["width","height","top","left","right","bottom",...ut]);var $s=r(t=>Array.isArray(t),"isKeyframesTarget");function _u(t,e,o){t.hasValue(e)?t.getValue(e).set(o):t.addValue(e,At(o))}r(_u,"setMotionValue");function $u(t){return $s(t)?t[t.length-1]||0:t}r($u,"resolveFinalValueInKeyframes");function Ys(t,e){let o=ht(t,e),{transitionEnd:i={},transition:n={},...a}=o||{};a={...a,...i};for(let s in a){let l=$u(a[s]);_u(t,s,l)}}r(Ys,"setTarget");var U=r(t=>!!(t&&t.getVelocity),"isMotionValue");function Xs(t){return!!(U(t)&&t.add)}r(Xs,"isWillChangeMotionValue");function yo(t,e){let o=t.getValue("willChange");if(Xs(o))return o.add(e);if(!o&&Z.WillChange){let i=new Z.WillChange("auto");t.addValue("willChange",i),i.add(e)}}r(yo,"addValueToWillChange");var xo="data-framer-appear-id";function Dr(t){return t.props[xo]}r(Dr,"getOptimisedAppearId");var Yu=typeof window<"u";function Xu({protectedKeys:t,needsAnimating:e},o){let i=o in t&&!e[o];return e[o]=!1,i}r(Xu,"shouldBlockAnimation");function Er(t,e,{delay:o=0,transitionOverride:i,type:n}={}){let{transition:a,transitionEnd:s,...l}=e,c=t.getDefaultTransition();a=a?wr(a,c):c;let u=a?.reduceMotion,m=a?.skipAnimations;i&&(a=i);let f=[],p=n&&t.animationState?.getState()[n],h=a?.path;h&&(h.animateValues?h.animateValues(d=>t.getValue(d,t.latestValues[d]??0),l,a,o,f):h.animateVisualElement?.(t,l,a,o,f));for(let d in l){let y=t.getValue(d,t.latestValues[d]??null),g=l[d];if(g===void 0||p&&Xu(p,d))continue;let P={delay:o,...Re(p?.out[d]||a||{},d)};m&&(P.skipAnimations=!0);let S=y.get();if(S!==void 0&&!y.isAnimating()&&!Array.isArray(g)&&g===S&&!P.velocity){I.update(()=>y.set(g));continue}let M=!1;if(Yu&&window.MotionHandoffAnimation){let W=Dr(t);if(W){let x=window.MotionHandoffAnimation(W,d,I);x!==null&&(P.startTime=x,M=!0)}}yo(t,d);let E=u??t.shouldReduceMotion;y.start(Le(d,y,g,E&&Cr.has(d)?{type:!1}:P,t,M));let F=y.animation;F&&f.push(F)}if(s){let d=r(()=>I.update(()=>{s&&Ys(t,s)}),"applyTransitionEnd");f.length?Promise.all(f).then(d):d()}return f}r(Er,"animateTarget");function Rr(t,e,o={}){let i=ht(t,e,Mr(t,o.type)),n=o.transitionOverride||(i?.transition??(t.getDefaultTransition()||{})),a=r(()=>Promise.all(i?Er(t,i,o):[]),"getAnimation"),s=r((c=0)=>{let{variantChildren:u}=t,{delayChildren:m=0,staggerChildren:f,staggerDirection:p}=n,h=[];return u?.forEach(d=>{d.notify("AnimationStart",e),h.push(Rr(d,e,{...o,delay:c+(typeof m=="function"?0:m)+Ar(u,d,m,f,p)}).then(()=>d.notify("AnimationComplete",e)))}),Promise.all(h)},"getChildAnimations"),{when:l}=n;return l?l==="beforeChildren"?a().then(()=>s()):s().then(a):Promise.all([a(),s(o.delay)])}r(Rr,"animateVariant");function qs(t,e,o={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(n=>Rr(t,n,o))):typeof e=="string"?Rr(t,e,o):Promise.all(Er(t,ht(t,e,o.custom),o))).then(()=>{t.notify("AnimationComplete",e)})}r(qs,"animateVisualElement");var Zs={test:r(t=>t==="auto","test"),parse:r(t=>t,"parse")};var Js=r(t=>e=>e.test(t),"testValueType");var qu=[Dt,V,lt,Vt,Nn,Fn,Zs],Hi=r(t=>qu.find(Js(t)),"findDimensionValueType");function Qs(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Qt(t):!0}r(Qs,"isNone");var Zu=new Set(["auto","none","0"]);function ta(t,e,o){let i=0,n;for(;i<t.length&&!n;){let a=t[i];typeof a=="string"&&!Zu.has(a)&&Hn(a)&&(n=t[i]),i++}if(n&&o)for(let a of e)t[a]!==n&&(t[a]=Me(o,n))}r(ta,"makeNoneKeyframesAnimatable");var Lr=class extends _t{static{r(this,"DOMKeyframesResolver")}constructor(){super(...arguments),this.isAsync=!0}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:o,motionValue:i}=this,n=e[0]??i?.get();if(!o?.current||n===void 0)return!1;for(let a=0;a<e.length;a++)if(qo(a?e[a]:n))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:o,name:i}=this;if(!o?.current)return;super.readKeyframes();for(let m=0;m<e.length;m++){let f=e[m];if(typeof f=="string"&&(f=f.trim(),Kt(f))){let p=ho(f,o.current);p!==void 0&&(e[m]=p),m===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Cr.has(i)||e.length!==2)return;let[n,a]=e;if(typeof n=="number"&&typeof a=="number")return;let s=Hi(n),l=Hi(a),c=qo(n),u=qo(a);if(c!==u&&pr[i]){this.needsMeasurement=!0;return}if(s!==l)if(Oi(s)&&Oi(l))for(let m=0;m<e.length;m++){let f=e[m];typeof f=="string"&&(e[m]=parseFloat(f))}else pr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:o}=this,i=[];for(let n=0;n<e.length;n++)(e[n]===null||Qs(e[n]))&&i.push(n);i.length&&ta(e,i,o)}measure(){let{element:e,name:o}=this;return pr[o](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:o,name:i}=this;if(!e?.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),o[0]=this.measuredOrigin;let n=o[o.length-1];n!==void 0&&this.motionValue?.jump(n,!1)}measureEndState(){let{element:e,unresolvedKeyframes:o}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=o.length-1,n=o[i];o[i]=this.measure(),n!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=n),this.resolveNoneKeyframes()}};var vo=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function ea(t){return Ye(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}r(ea,"isHTMLElement");function Ie(t){return Ye(t)&&"ownerSVGElement"in t}r(Ie,"isSVGElement");var To={};function ke(t){return To.current?.add(t),t}r(ke,"addToScope");var Be=r(t=>To.current?To.current.bind(t):t,"bindToScope");function Ir(t,e,o){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=e?e.current:To.current?.root||document,n=o?.[t]??i.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(i=>i!=null)}r(Ir,"resolveElements");function kr(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}r(kr,"camelToDash");function ie(t,e,o){let{style:i,vars:n,transformOrigin:a}=t,s=!1,l=!1;for(let c in e){let u=e[c];if(mt.has(c)){s=!0;continue}else if(Xo(c)){n[c]=u;continue}else{let m=po(u,we[c]);c.startsWith("origin")?(l=!0,a[c]=m):i[c]=m}}if(e.transform||(s||o?i.transform=Ns(e,t.transform,o):i.transform&&(i.transform="none")),l){let{originX:c="50%",originY:u="50%",originZ:m=0}=a;i.transformOrigin=`${c} ${u} ${m}`}}r(ie,"buildHTMLStyles");var Ju={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qu={offset:"strokeDashoffset",array:"strokeDasharray"};function oa(t,e,o=1,i=0,n=!0){t.pathLength=1;let a=n?Ju:Qu;t[a.offset]=`${-i}`,t[a.array]=`${e} ${o}`}r(oa,"buildSVGPath");var _i=["transform","opacity","clipPath","filter","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function So(t,{attrX:e,attrY:o,attrScale:i,pathLength:n,pathSpacing:a=1,pathOffset:s=0,...l},c,u,m){if(ie(t,l,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:p}=t;for(let h of _i)f[h]!==void 0&&(p[h]=f[h],delete f[h]);(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=m?.transformBox??"fill-box",delete f.transformBox),e!==void 0&&(f.x=e),o!==void 0&&(f.y=o),i!==void 0&&(f.scale=i),n!==void 0&&oa(f,n,a,s,!1)}r(So,"buildSVGAttrs");function Br({top:t,left:e,right:o,bottom:i}){return{x:{min:e,max:o},y:{min:t,max:i}}}r(Br,"convertBoundingBoxToBox");function ra({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}r(ra,"convertBoxToBoundingBox");function ia(t,e){if(!e)return t;let o=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:o.y,left:o.x,bottom:i.y,right:i.x}}r(ia,"transformBoxPoints");function $i(t){return t===void 0||t===1}r($i,"isIdentityScale");function Or({scale:t,scaleX:e,scaleY:o}){return!$i(t)||!$i(e)||!$i(o)}r(Or,"hasScale");var Bt=["rotate","rotateX","rotateY","rotateZ","skewX","skewY"];function Ot(t){return Or(t)||Xi(t)||Yi(t)}r(Ot,"hasTransform");function Yi(t){return t.z||t.rotate||t.rotateX||t.rotateY||t.rotateZ||t.skewX||t.skewY}r(Yi,"hasDistortingTransform");function Xi(t){return na(t.x)||na(t.y)}r(Xi,"has2DTranslate");function na(t){return t&&t!=="0%"}r(na,"is2DTranslate");function Vo(t,e,o){let i=t-o,n=e*i;return o+n}r(Vo,"scalePoint");function sa(t,e,o,i,n){return n!==void 0&&(t=Vo(t,n,i)),Vo(t,o,i)+e}r(sa,"applyPointDelta");function qi(t,e=0,o=1,i,n){t.min=sa(t.min,e,o,i,n),t.max=sa(t.max,e,o,i,n)}r(qi,"applyAxisDelta");function Zi(t,{x:e,y:o}){qi(t.x,e.translate,e.scale,e.originPoint),qi(t.y,o.translate,o.scale,o.originPoint)}r(Zi,"applyBoxDelta");var aa=.999999999999,la=1.0000000000001;function ma(t,e,o,i=!1){let n=o.length;if(!n)return;e.x=e.y=1;let a,s;for(let l=0;l<n;l++)a=o[l],s=a.projectionDelta,a.options.visualElement?.props.style?.display!=="contents"&&(i===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(dt(t.x,-a.scroll.offset.x),dt(t.y,-a.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,Zi(t,s)),i&&(i.path?.[l]||i)!==a&&Ot(a.latestValues)&&bo(t,a.latestValues,a.layout?.layoutBox));e.x<la&&e.x>aa&&(e.x=1),e.y<la&&e.y>aa&&(e.y=1)}r(ma,"applyTreeDeltas");function dt(t,e){t.min+=e,t.max+=e}r(dt,"translateAxis");function ca(t,e,o,i,n=.5){let a=k(t.min,t.max,n);qi(t,e,o,a,i)}r(ca,"transformAxis");function ua(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}r(ua,"resolveAxisTranslate");function bo(t,e,o){let i=o??t;ca(t.x,ua(e.x,i.x),e.scaleX,e.scale,e.originX),ca(t.y,ua(e.y,i.y),e.scaleY,e.scale,e.originY)}r(bo,"transformBox");function Ji(t,e){return Br(ia(t.getBoundingClientRect(),e))}r(Ji,"measureViewportBox");function fa(t,e,o){let i=Ji(t,o),{scroll:n}=e;return n&&(dt(i.x,n.offset.x),dt(i.y,n.offset.y)),i}r(fa,"measurePageBox");var pa=r(()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),"measureDocumentScroll");var{schedule:ne,cancel:tm}=or(queueMicrotask,!1);function ha(t,e,o){let i=U(t)?t:At(t);return i.start(Le("",i,e,o)),i.animation}r(ha,"animateSingleValue");var se={};var Po={value:null,addProjectionMetrics:null,countProjection:void 0};function da(t,e){let o=N.now();t=Be(t);let i=r(({timestamp:n})=>{let a=n-o;a>=e&&(ct(i),t(a-e))},"checkElapsed");return I.setup(i,!0),ke(()=>ct(i))}r(da,"delay");function ga(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}r(ga,"isRefObject");function ya(t){return Ie(t)&&t.tagName==="svg"}r(ya,"isSVGSVGElement");function ae(t){return U(t)?t.get():t}r(ae,"resolveMotionValue");var Qi=r(t=>typeof t=="number"?t:parseFloat(t),"asNumber");var em=vo.length,xa=r(t=>typeof t=="number"||V.test(t),"isPx");function Ta(t,e,o,i,n,a){n?(t.opacity=k(0,o.opacity??1,om(i)),t.opacityExit=k(e.opacity??1,0,rm(i))):a&&(t.opacity=k(e.opacity??1,o.opacity??1,i));for(let s=0;s<em;s++){let l=vo[s],c=va(e,l),u=va(o,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||xa(c)===xa(u)?(t[l]=Math.max(k(Qi(c),Qi(u),i),0),(lt.test(u)||lt.test(c))&&(t[l]+="%")):t[l]=u}for(let s=0;s<Bt.length;s++){let l=Bt[s];(e[l]||o[l])&&(t[l]=k(e[l]||0,o[l]||0,i))}}r(Ta,"mixValues");function va(t,e){return t[e]!==void 0?t[e]:t.borderRadius}r(va,"getRadius");var om=Sa(0,.5,Qe),rm=Sa(.5,.95,J);function Sa(t,e,o){return i=>i<t?0:i>e?1:o(pt(t,e,i))}r(Sa,"compress");function Fr(t,e){t.min=e.min,t.max=e.max}r(Fr,"copyAxisInto");function Tt(t,e){Fr(t.x,e.x),Fr(t.y,e.y)}r(Tt,"copyBoxInto");function tn(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}r(tn,"copyAxisDeltaInto");var Aa=1e-4,im=1-Aa,nm=1+Aa,wa=.01,sm=0-wa,am=0+wa;function nt(t){return t.max-t.min}r(nt,"calcLength");function Ma(t,e,o){return Math.abs(t-e)<=o}r(Ma,"isNear");function Va(t,e,o,i=.5){t.origin=i,t.originPoint=k(e.min,e.max,t.origin),t.scale=nt(o)/nt(e),t.translate=k(o.min,o.max,t.origin)-t.originPoint,(t.scale>=im&&t.scale<=nm||isNaN(t.scale))&&(t.scale=1),(t.translate>=sm&&t.translate<=am||isNaN(t.translate))&&(t.translate=0)}r(Va,"calcAxisDelta");function Ao(t,e,o,i){Va(t.x,e.x,o.x,i?.originX),Va(t.y,e.y,o.y,i?.originY)}r(Ao,"calcBoxDelta");function ba(t,e,o,i=0){let n=i?k(o.min,o.max,i):o.min;t.min=n+e.min,t.max=t.min+nt(e)}r(ba,"calcRelativeAxis");function Ca(t,e,o,i){ba(t.x,e.x,o.x,i?.x),ba(t.y,e.y,o.y,i?.y)}r(Ca,"calcRelativeBox");function Pa(t,e,o,i=0){let n=i?k(o.min,o.max,i):o.min;t.min=e.min-n,t.max=t.min+nt(e)}r(Pa,"calcRelativeAxisPosition");function wo(t,e,o,i){Pa(t.x,e.x,o.x,i?.x),Pa(t.y,e.y,o.y,i?.y)}r(wo,"calcRelativePosition");function Da(t,e,o,i,n){return t-=e,t=Vo(t,1/o,i),n!==void 0&&(t=Vo(t,1/n,i)),t}r(Da,"removePointDelta");function lm(t,e=0,o=1,i=.5,n,a=t,s=t){if(lt.test(e)&&(e=parseFloat(e),e=k(s.min,s.max,e/100)-s.min),typeof e!="number")return;let l=k(a.min,a.max,i);t===a&&(l-=e),t.min=Da(t.min,e,o,l,n),t.max=Da(t.max,e,o,l,n)}r(lm,"removeAxisDelta");function Ea(t,e,[o,i,n],a,s){lm(t,e[o],e[i],e[n],e.scale,a,s)}r(Ea,"removeAxisTransforms");var cm=["x","scaleX","originX"],um=["y","scaleY","originY"];function en(t,e,o,i){Ea(t.x,e,cm,o?.x,i?.x),Ea(t.y,e,um,o?.y,i?.y)}r(en,"removeBoxTransforms");var Ra=r(t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),"userAgentContains"),La=Ra("applewebkit/")&&!Ra("chrome/")?Math.round:J;function Ia(t){t.min=La(t.min),t.max=La(t.max)}r(Ia,"roundAxis");function ka(t){Ia(t.x),Ia(t.y)}r(ka,"roundBox");var Ba=r(()=>({translate:0,scale:1,origin:0,originPoint:0}),"createAxisDelta"),le=r(()=>({x:Ba(),y:Ba()}),"createDelta"),Oa=r(()=>({min:0,max:0}),"createAxis"),$=r(()=>({x:Oa(),y:Oa()}),"createBox");function Fa(t){return t.translate===0&&t.scale===1}r(Fa,"isAxisDeltaZero");function on(t){return Fa(t.x)&&Fa(t.y)}r(on,"isDeltaZero");function Na(t,e){return t.min===e.min&&t.max===e.max}r(Na,"axisEquals");function Ga(t,e){return Na(t.x,e.x)&&Na(t.y,e.y)}r(Ga,"boxEquals");function ja(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}r(ja,"axisEqualsRounded");function rn(t,e){return ja(t.x,e.x)&&ja(t.y,e.y)}r(rn,"boxEqualsRounded");function nn(t){return nt(t.x)/nt(t.y)}r(nn,"aspectRatio");function sn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}r(sn,"axisDeltaEquals");var Nr=class{static{r(this,"NodeStack")}constructor(){this.members=[]}add(e){Zt(this.members,e);for(let o=this.members.length-1;o>=0;o--){let i=this.members[o];if(i===e||i===this.lead||i===this.prevLead)continue;let n=i.instance;(!n||n.isConnected===!1)&&!i.snapshot&&(Ut(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(Ut(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(e){for(let o=this.members.indexOf(e)-1;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1&&i.instance?.isConnected!==!1)return this.promote(i),!0}return!1}promote(e,o){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:a}=e.options;(n===void 0||n!==a)&&(e.resumeFrom=i,o&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.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)}};function Ua(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}r(Ua,"pixelsToPercent");var Oe={correct:r((t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;let o=Ua(t,e.target.x),i=Ua(t,e.target.y);return`${o}% ${i}%`},"correct")};var Wa={correct:r((t,{treeScale:e,projectionDelta:o})=>{let i=t,n=rt.parse(t);if(n.length>5)return i;let a=rt.createTransformer(t),s=typeof n[0]!="number"?1:0,l=o.x.scale*e.x,c=o.y.scale*e.y;n[0+s]/=l,n[1+s]/=c;let u=k(l,c,.5);return typeof n[2+s]=="number"&&(n[2+s]/=u),typeof n[3+s]=="number"&&(n[3+s]/=u),a(n)},"correct")};var Ka={borderRadius:Object.assign({},Oe,{applyTo:vo.slice()}),borderTopLeftRadius:Oe,borderTopRightRadius:Oe,borderBottomLeftRadius:Oe,borderBottomRightRadius:Oe,boxShadow:Wa};function za(t,e,o){let i="",n=t.x.translate/e.x,a=t.y.translate/e.y,s=o?.z||0;if((n||a||s)&&(i=`translate3d(${n}px, ${a}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),o){let{transformPerspective:u}=o;u&&(i=`perspective(${u}px) ${i}`);for(let m=0;m<Bt.length;m++){let f=Bt[m],p=o[f];p&&(i+=`${f}(${p}deg) `),!m&&o.pathRotation&&(i+=`rotate(${o.pathRotation}deg) `)}}let l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(i+=`scale(${l}, ${c})`),i||"none"}r(za,"buildProjectionTransform");function gt(t){return[t("x"),t("y")]}r(gt,"eachAxis");var Ha=r((t,e)=>t.depth-e.depth,"compareByDepth");var jr=class{static{r(this,"FlatTree")}constructor(){this.children=[],this.isDirty=!1}add(e){Zt(this.children,e),this.isDirty=!0}remove(e){Ut(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ha),this.isDirty=!1,this.children.forEach(e)}};var ce={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var _a=["z","skew","skewZ"],mm=1e3,fm=0;function $a(t,e,o,i){let{latestValues:n}=e;n[t]&&(o[t]=n[t],e.setStaticValue(t,0),i&&(i[t]=0))}r($a,"resetDistortingTransform");var an=r(t=>t.instance&&kt.get(t.instance)?.demote()&&t.resetSkewAndRotation(),"demoteTransforms");function tl(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let o=Dr(e);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:n,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(o,"transform",I,!(n||a))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&tl(i)}r(tl,"cancelTreeOptimisedTransformAnimations");function el(t){if(t)return t.options.allowProjection!==!1?t.projection:el(t.parent)}r(el,"getClosestProjectingNode");function Gr({attachResizeListener:t,defaultParent:e,measureScroll:o,checkIsScrollRoot:i,resetTransform:n}){return Object.assign(se,{...Ka,...se}),class{static{r(this,"ProjectionNode")}static create(s,l,c){let{layoutId:u,layout:m,drag:f,dragConstraints:p,layoutScroll:h,layoutRoot:d,layoutAnchor:y,layoutCrossfade:g}=l,P=s.projection=new this(s.latestValues,l["data-framer-portal-id"]?void 0:el(s.parent));P.setOptions({layoutId:u,layout:m,alwaysMeasureLayout:!!f||p&&ga(p),visualElement:s,animationType:typeof m=="string"?m:"both",initialPromotionConfig:c,crossfade:g,layoutScroll:h,layoutRoot:d,layoutAnchor:y});let S=P.getStack()?.lead;S&&!P.root.isUpdateBlocked()&&(S.willUpdate(),S.scheduleCheckAfterUnmount())}constructor(s={},l=e?.()){this.id=fm++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(dm),this.nodes.forEach(bm),this.nodes.forEach(Pm),this.nodes.forEach(gm),Po.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new jr)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Mt),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){this.eventHandlers.get(s)?.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Ie(s)&&!ya(s),this.instance=s;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),t){let m,f=0,p=r(()=>this.root.updateBlockedByResize=!1,"resizeUnblockUpdate");I.read(()=>{f=window.innerWidth}),t(s,()=>{let h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,m?.(),m=da(p,250),ce.hasAnimatedSinceResize&&(ce.hasAnimatedSinceResize=!1,this.nodes.forEach(qa)))})}l&&this.root.registerSharedNode(l,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:s,layout:l,visualElement:c,animate:u}=this.options;!this.instance||this.hasLayoutListener||u===!1||!c||!(s||l)||(this.hasLayoutListener=!0,this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let d=this.options.transition||c.getDefaultTransition()||Cm,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),P=!this.targetLayout||!rn(this.targetLayout,h),S=!f&&p;if(this.options.layoutRoot||this.resumeFrom||S||f&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let M={...Re(d,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(m,S,M.path)}else f||qa(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=h}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,ct(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(Am),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&tl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;an(this),this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){let f=this.path[m];f.shouldResetTransform=!0,an(f),(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1),f.isAnimationBlocked&&(f.dragSnapshot||(f.dragSnapshot=f.measure()),this.dragAncestor=f)}let{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(xm),this.nodes.forEach(Ya);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Xa);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Tm),this.nodes.forEach(Sm),this.nodes.forEach(Vm),this.nodes.forEach(pm),this.nodes.forEach(hm)):this.nodes.forEach(Xa),this.clearAllSnapshots();let l=N.now();_.delta=q(0,1e3/60,l-_.timestamp),_.timestamp=l,_.isProcessing=!0,no.update.process(_),no.preRender.process(_),no.render.process(_),_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ne.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ym),this.sharedNodes.forEach((s,l)=>s.members.length?s.removeLeadSnapshot():this.sharedNodes.delete(l))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!nt(this.snapshot.measuredBox.x)&&!nt(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=$()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:l}=this.options;l?.notify("LayoutMeasure",this.layout.layoutBox,s?.layoutBox)}updateScroll(s="measure"){let{scroll:l,instance:c}=this,{animationId:u}=this.root;if(this.options.layoutScroll&&c&&!(l&&l.animationId===u&&l.phase===s)){let m=i(c);this.scroll={animationId:u,phase:s,isRoot:m,offset:o(c),wasRoot:l?l.isRoot:m}}}resetTransform(){if(!n)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;s&&an(this);let l=this.projectionDelta&&!on(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,m=u!==this.prevTransformTemplateValue;s&&this.instance&&(l||Ot(this.latestValues)||m)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let l=this.measurePageBox(),c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),ka(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return $();let l=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Dm))){let{scroll:u}=this.root;u&&(dt(l.x,u.offset.x),dt(l.y,u.offset.y))}return l}removeElementScroll(s){let l=$();if(Tt(l,s),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){let u=this.path[c],{scroll:m,options:f}=u;u!==this.root&&m&&f.layoutScroll&&(m.wasRoot&&Tt(l,s),dt(l.x,m.offset.x),dt(l.y,m.offset.y))}return l}applyTransform(s,l=!1,c,u,m=0){let f=c||$();Tt(f,s);for(let p=m;p<this.path.length;p++){let h=this.path[p];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(dt(f.x,-h.scroll.offset.x),dt(f.y,-h.scroll.offset.y)),Ot(h.latestValues)&&bo(f,h.latestValues,h.layout?.layoutBox)}return!u&&Ot(this.latestValues)&&bo(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(s){let l=$();Tt(l,s);for(let c=0;c<this.path.length;c++){let u=this.path[c];if(!Ot(u.latestValues))continue;let m;u.instance&&(Or(u.latestValues)&&u.updateSnapshot(),m=$(),Tt(m,u.measurePageBox())),en(l,u.latestValues,u.snapshot?.layoutBox,m)}return Ot(this.latestValues)&&en(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0},this.addLayoutListener()}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!==_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:m,layoutId:f}=this.options;if(!this.layout||!(m||f))return;this.resolvedRelativeTargetAt=_.timestamp;let p=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ca(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):Tt(this.target,this.layout.layoutBox),Zi(this.target,this.targetDelta)):Tt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&p&&(!p.resumingFrom==!this.resumingFrom||p.options.layoutRoot&&!p.resumingFrom)&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0),Po.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||Or(this.parent.latestValues)||Xi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,l,c){this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),wo(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),Tt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let s=this.getLead(),l=!!this.resumingFrom||this!==s,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===_.timestamp&&(c=!1),c)return;let{layout:u,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||m))return;Tt(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,p=this.treeScale.y;ma(this.layoutCorrected,this.treeScale,this.path,l&&(s.relativeTarget&&!s.relativeParent.resumingFrom?s.relativeParent:!0)),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=$());let{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tn(this.prevProjectionDelta.x,this.projectionDelta.x),tn(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!sn(this.projectionDelta.x,this.prevProjectionDelta.x)||!sn(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),Po.countProjection?.(2)}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){this.options.visualElement?.scheduleRender(),s&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=le(),this.projectionDelta=le(),this.projectionDeltaWithTransform=le()}setAnimationOrigin(s,l=!1,c){let u=this.snapshot,m=u?u.latestValues:{},f={...this.latestValues},p=le();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;let h=$(),d=u?.source!==this.layout?.source,y=this.getStack(),g=!y||y.members.length<=1,P=!!(d&&!g&&this.options.crossfade===!0&&!this.path.some(Mm));this.animationProgress=0;let S,M=c?.interpolateProjection(s);this.mixTargetDelta=E=>{let F=E/1e3,W=M?.(F);Za(p.x,s.x,F),Za(p.y,s.y,F),W&&(p.x.translate=W.x,p.y.translate=W.y),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wo(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),wm(this.relativeTarget,this.relativeTargetOrigin,h,F),S&&Ga(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=$()),Tt(S,this.relativeTarget)),d&&(this.animationValues=f,Ta(f,m,this.latestValues,F,P,g)),W?.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=W.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{ce.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=At(0)),this.motionValue.jump(0,!1),this.currentAnimation=ha(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:r(l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},"onUpdate"),onComplete:r(()=>{s.onComplete&&s.onComplete(),this.completeAnimation()},"onComplete")}),fs(this.currentAnimation,this),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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(mm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:l,layout:c,latestValues:u}=s,{target:m}=s;if(!(!l||!m||!c)){if(this!==s&&this.layout&&c&&ol(this.options.animationType,this.layout.layoutBox,c.layoutBox)){let{layoutBox:f}=this.layout,p=m;m=this.target||$(),Qa(m.x,p.x,f.x),Qa(m.y,p.y,f.y)}Tt(l,m),bo(l,u),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Nr),this.sharedNodes.get(s).add(l);let u=l.options.initialPromotionConfig;l.promote({transition:u?.transition,preserveFollowOpacity:u?.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:c}={}){this.getStack()?.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let{latestValues:l}=s;if(!Yi(l))return;let c={};for(let u=0;u<_a.length;u++)$a(_a[u],s,c,this.animationValues);for(let u=0;u<Bt.length;u++)$a(Bt[u],s,c,this.animationValues);s.render();for(let u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}applyProjectionStyles(s,l){if(!this.instance||this.isSVG)return;let c=this.getLead();if(!this.isVisible&&c!==this){s.visibility="hidden";return}let u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=ae(l?.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none";return}if(!this.projectionDelta||!this.layout||!c.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,s.visibility="",s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=ae(l?.pointerEvents)||""),this.hasProjected&&!Ot(this.latestValues)&&(s.transform=u?u({},""):"none",this.hasProjected=!1);return}s.visibility="";let m=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=za(this.projectionDeltaWithTransform,this.treeScale,m);u&&(f=u(m,f)),s.transform=f;let{x:p,y:h}=this.projectionDelta;s.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,c.animationValues?s.opacity=c===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:s.opacity=c===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let d in se){if(m[d]===void 0)continue;let{correct:y,applyTo:g,isCSSVariable:P}=se[d],S=f==="none"?m[d]:y(m[d],c);if(g){let M=g.length;for(let E=0;E<M;E++)s[g[E]]=S}else P?this.options.visualElement.renderState.vars[d]=S:s[d]=S}this.options.layoutId&&(s.pointerEvents=c===this?ae(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(Ya),this.root.sharedNodes.clear()}}}r(Gr,"createProjectionNode");function pm(t){t.updateLayout(),vm(t)}r(pm,"updateLayout");function hm(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:i}=t.layout,{animationType:n}=t.options,a=e.source!==t.layout.source,s=r((h,d)=>{if(n==="size")gt(y=>{let g=nt(h[y]);h[y].min=d[y].min,h[y].max=h[y].min+g});else if(n==="x"||n==="y"){let y=n==="x"?"y":"x";Fr(h[y],d[y])}else ol(n,e.layoutBox,o)&>(y=>{let g=nt(d[y]);h[y].max=h[y].min+g,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+g)})},"resizeSnapshot"),l=a?e.measuredBox:e.layoutBox;s(l,o);let c=le();Ao(c,o,e.layoutBox);let u=le();Ao(u,a?t.applyTransform(i,!0):o,l);let m=!on(c),f=!1,p=t.getClosestProjectingParent();if((!t.resumeFrom||p?.options.layoutRoot&&t.resumeFrom.path.includes(p))&&p&&!p.resumeFrom){let{snapshot:h,layout:d}=p;if(h&&d){let y=t.options.layoutAnchor||void 0,g=$();wo(g,a?t.resumeFrom.applyTransform(e.layoutBox,!0,void 0,!0,p.depth+1):e.layoutBox,h.layoutBox,y);let P=$();wo(P,o,d.layoutBox,y),a&&s(g,P),rn(g,P)||(f=!0),p.options.layoutRoot&&(t.relativeTarget=P,t.relativeTargetOrigin=g,t.relativeParent=p)}}t.notifyListeners("didUpdate",{layout:o,snapshot:e,delta:u,layoutDelta:c,hasLayoutChanged:m,hasRelativeLayoutChanged:f})}else t.isLead()&&t.options.onExitComplete?.();t.options.transition=void 0}r(hm,"notifyLayoutUpdate");function dm(t){Po.countProjection?.(0),t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}r(dm,"propagateDirtyNodes");function gm(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}r(gm,"cleanDirtyNodes");function ym(t){t.clearSnapshot()}r(ym,"clearSnapshot");function Ya(t){t.clearMeasurements()}r(Ya,"clearMeasurements");function xm(t){t.isLayoutDirty=!0,t.updateLayout()}r(xm,"forceLayoutMeasure");function Xa(t){t.isLayoutDirty=!1}r(Xa,"clearIsLayoutDirty");function vm(t){let{snapshot:e,dragAncestor:o}=t,i=o?.isAnimationBlocked&&o.layout;if(!e||!i||t.resumeFrom||t.isAnimationBlocked)return;let n=o.dragSnapshot;gt(a=>dt(e.layoutBox[a],i.layoutBox[a].min-n.layoutBox[a].min))}r(vm,"followDraggedAncestor");function Tm(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.dragSnapshot||t.layout,t.isLayoutDirty=!0)}r(Tm,"ensureDraggedNodesSnapshotted");function Sm(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}r(Sm,"syncRelativeLayout");function Vm(t){let{visualElement:e}=t.options;e?.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}r(Vm,"resetTransformStyle");function qa(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}r(qa,"finishAnimation");function bm(t){t.resolveTargetDelta()}r(bm,"resolveTargetDelta");function Pm(t){t.calcProjection()}r(Pm,"calcProjection");function Am(t){t.resetSkewAndRotation()}r(Am,"resetSkewAndRotation");function Za(t,e,o){t.translate=k(e.translate,0,o),t.scale=k(e.scale,1,o),t.origin=e.origin,t.originPoint=e.originPoint}r(Za,"mixAxisDeltaLinear");function Ja(t,e,o,i){t.min=k(e.min,o.min,i),t.max=k(e.max,o.max,i)}r(Ja,"mixAxis");function wm(t,e,o,i){Ja(t.x,e.x,o.x,i),Ja(t.y,e.y,o.y,i)}r(wm,"mixBox");function Mm(t){return t.animationValues?.opacityExit!==void 0}r(Mm,"hasOpacityCrossfade");var Cm={duration:.45,ease:[.4,0,.1,1]};function Qa(t,e,o){t.max=nt(o)+(t.min=e.min)}r(Qa,"alignAxis");function ol(t,e,o){return t==="position"||t==="preserve-aspect"&&!Ma(nn(e),nn(o),.2)}r(ol,"shouldAnimatePositionOnly");function Dm(t){return t!==t.root&&t.scroll?.wasRoot}r(Dm,"checkNodeWasScrollRoot");function yt(t,e,o,i={passive:!0}){return t.addEventListener(e,o,i),()=>t.removeEventListener(e,o,i)}r(yt,"addDomEvent");var rl=Gr({attachResizeListener:r((t,e)=>yt(t,"resize",e),"attachResizeListener"),measureScroll:pa,checkIsScrollRoot:r(()=>!0,"checkIsScrollRoot")});var ue={current:void 0};var Mo=Gr({measureScroll:r(t=>({x:t.scrollLeft,y:t.scrollTop}),"measureScroll"),defaultParent:r(()=>{if(!ue.current){let t=new rl({});t.mount(window),t.setOptions({layoutScroll:!0}),ue.current=t}return ue.current},"defaultParent"),resetTransform:r((t,e)=>{t.style.transform=e!==void 0?e:"none"},"resetTransform"),checkIsScrollRoot:r(t=>window.getComputedStyle(t).position==="fixed","checkIsScrollRoot")});var il=new WeakMap;function Ft(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}r(Ft,"isAnimationControls");function Nt(t){return typeof t=="string"||Array.isArray(t)}r(Nt,"isVariantLabel");var me=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ur=["initial"].concat(me);function $t(t){if(Ft(t.animate))return!0;for(let e=0;e<Ur.length;e++)if(Nt(t[Ur[e]]))return!0;return!1}r($t,"isControllingVariants");function Co(t){return!!($t(t)||t.variants)}r(Co,"isVariantNode");function nl(t,e,o){for(let i in e){let n=e[i],a=o[i];if(U(n))t.addValue(i,n);else if(U(a))t.addValue(i,At(n,{owner:t}));else if(a!==n)if(t.hasValue(i)){let s=t.getValue(i);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{let s=t.getStaticValue(i);t.addValue(i,At(s!==void 0?s:n,{owner:t}))}}for(let i in o)e[i]===void 0&&t.removeValue(i);return e}r(nl,"updateMotionValuesFromProps");var Yt={current:null},fe={current:!1};var Em=typeof window<"u";function Do(){if(fe.current=!0,!!Em)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=r(()=>Yt.current=t.matches,"setReducedMotionPreferences");t.addEventListener("change",e),e()}else Yt.current=!1}r(Do,"initPrefersReducedMotion");var sl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Wr={};function Ro(t){Wr=t}r(Ro,"setFeatureDefinitions");function ln(){return Wr}r(ln,"getFeatureDefinitions");var Eo=class{static{r(this,"VisualElement")}scrapeMotionValuesFromProps(e,o,i){return{}}constructor({parent:e,props:o,presenceContext:i,reducedMotionConfig:n,skipAnimations:a,blockInitialAnimation:s,visualState:l},c={}){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=_t,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 h=N.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,I.render(this.render,!1,!0))};let{latestValues:u,renderState:m}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=o.initial?{...u}:{},this.renderState=m,this.parent=e,this.props=o,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=a,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=$t(o),this.isVariantNode=Co(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(o,{},this);for(let h in p){let d=p[h];u[h]!==void 0&&U(d)&&d.set(u[h])}}mount(e){if(this.hasBeenMounted&&!this.presenceContext?.keepValuesOnRemount)for(let o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];if(this.current=e,il.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let o=this;do o=o.props.inherit!==!1&&o.parent;while(o&&!o.isVariantNode);if(o){let{variantChildren:i}=o;i.add(this),this.removeFromVariantTree=()=>i.delete(this)}}this.values.forEach((o,i)=>this.bindToMotionValue(i,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(fe.current||Do(),this.shouldReduceMotion=Yt.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),ct(this.notifyUpdate),ct(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let o=this.features[e];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||(this.enteringChildren=new Set)).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,o){if(this.valueSubscriptions.get(e)?.(),o.accelerate&&fo.has(e)&&this.current instanceof HTMLElement){let{factory:s,keyframes:l,times:c,ease:u,duration:m}=o.accelerate,f=new De({element:this.current,name:e,keyframes:l,times:c,ease:u,duration:ot(m)}),p=s(f);this.valueSubscriptions.set(e,()=>{p(),f.cancel()});return}let i=mt.has(e);i&&this.onBindTransform&&this.onBindTransform();let n=o.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&I.preRender(this.notifyUpdate),i&&(this.projection&&(this.projection.isTransformDirty=!0),kt.get(this.current)?.check()),this.scheduleRender()}),a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,o)),this.valueSubscriptions.set(e,()=>{n(),a?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Wr){let o=Wr[e];if(!o)continue;let{isEnabled:i,Feature:n}=o;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,o){this.latestValues[e]=o}update(e,o){let{transformTemplate:i,onUpdate:n}=this.props;(e.transformTemplate||i)&&this.scheduleRender(),(e.transformTemplate&&!i||e.onUpdate&&!n)&&kt.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<sl.length;a++){let s=sl[a];this.propEventSubscriptions[s]?.(),delete this.propEventSubscriptions[s];let l="on"+s,c=e[l];c&&(this.propEventSubscriptions[s]=this.on(s,c))}this.prevMotionValues=nl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,o){let i=this.values.get(e);if(o!==i){i&&this.removeValue(e),this.bindToMotionValue(e,o),this.values.set(e,o);let n=o.get();n!==void 0&&(this.latestValues[e]=n)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,o){let i=this.props.values?.[e];return i||(i=this.values.get(e),i===void 0&&o!==void 0&&(i=At(o??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,i)),i)}readValue(e,o){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Jt(i)||Qt(i))?i=parseFloat(i):typeof i!="number"&&!rt.test(i)&&rt.test(o)&&(i=Me(e,o)),this.setBaseTarget(e,U(i)?i.get():i)),U(i)?i.get():i}setBaseTarget(e,o){this.baseTarget[e]=o}on(e,o){return(this.events[e]||(this.events[e]=new Mt)).add(o)}notify(e,...o){this.events[e]?.notify(...o)}scheduleRenderMicrotask(){ne.render(this.render)}};var Fe=class extends Eo{static{r(this,"DOMVisualElement")}constructor(){super(...arguments),this.KeyframeResolver=Lr}sortInstanceNodePosition(e,o){return e.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(e,o){let i=e.style;return i?i[o]:void 0}removeValueFromRenderState(e,{vars:o,style:i}){delete o[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;U(e)&&(this.childSubscription=e.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};function Kr(t,{style:e,vars:o},i,n){let a=t.style,s;for(s in e)a[s]=e[s];n?.applyProjectionStyles(a,i);for(s in o)a.setProperty(s,o[s])}r(Kr,"renderHTML");function Lo(t,{layout:e,layoutId:o}){return mt.has(t)||t.startsWith("origin")||(e||o!==void 0)&&(!!se[t]||t==="opacity")}r(Lo,"isForcedMotionValue");function pe(t,e,o){let i=t.style,n=e?.style,a={};if(!i)return a;for(let s in i)(U(i[s])||n&&U(n[s])||Lo(s,t)||o?.getValue(s)?.liveStyle!==void 0)&&(a[s]=i[s]);return a}r(pe,"scrapeMotionValuesFromProps");function Rm(t){return window.getComputedStyle(t)}r(Rm,"getComputedStyle");var Io=class extends Fe{static{r(this,"HTMLVisualElement")}constructor(){super(...arguments),this.type="html",this.renderInstance=Kr}mount(e){super.mount(e)}readValueFromInstance(e,o){if(mt.has(o))return this.projection?.isProjecting?oe(o):ys(e,o);{let i=Rm(e),n=(Xo(o)?i.getPropertyValue(o):i[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:o}){return Ji(e,o)}build(e,o,i){ie(e,o,i.transformTemplate)}scrapeMotionValuesFromProps(e,o,i){return pe(e,o,i)}};var Ne=r(t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,"isPrimaryPointer");function je(t){return{point:{x:t.pageX,y:t.pageY}}}r(je,"extractEventInfo");var cn=r(t=>e=>Ne(e)&&t(e,je(e)),"addPointerInfo");function jt(t,e,o,i){return yt(t,e,cn(o),i)}r(jt,"addPointerEvent");var zr=new WeakMap,Hr,al=r((t,e,o)=>(i,n)=>n&&n[0]?n[0][t+"Size"]:Ie(i)&&"getBBox"in i?i.getBBox()[e]:i[o],"getSize"),Lm=al("inline","width","offsetWidth"),Im=al("block","height","offsetHeight");function km({target:t,borderBoxSize:e}){zr.get(t)?.forEach(o=>{o(t,{get width(){return Lm(t,e)},get height(){return Im(t,e)}})})}r(km,"notifyTarget");function Bm(t){t.forEach(km)}r(Bm,"notifyAll");function Om(){typeof ResizeObserver>"u"||(Hr=new ResizeObserver(Bm))}r(Om,"createResizeObserver");function ll(t,e){Hr||Om();let o=Ir(t);return o.forEach(i=>{let n=zr.get(i);n||(n=new Set,zr.set(i,n)),n.add(e),Hr?.observe(i)}),()=>{o.forEach(i=>{let n=zr.get(i);n?.delete(e),n?.size||Hr?.unobserve(i)})}}r(ll,"resizeElement");var _r=new Set,Ge;function Fm(){Ge=r(()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};_r.forEach(e=>e(t))},"windowResizeHandler"),window.addEventListener("resize",Ge)}r(Fm,"createWindowResizeHandler");function cl(t){return _r.add(t),Ge||Fm(),()=>{_r.delete(t),!_r.size&&typeof Ge=="function"&&(window.removeEventListener("resize",Ge),Ge=void 0)}}r(cl,"resizeWindow");function un(t,e){return ke(typeof t=="function"?cl(t):ll(t,e))}r(un,"resize");var ul=r((t,e)=>Math.abs(t-e),"distance");function ml(t,e){let o=ul(t.x,e.x),i=ul(t.y,e.y);return Math.sqrt(o**2+i**2)}r(ml,"distance2D");var fl=new Set(["auto","scroll"]),he=class{static{r(this,"PanSession")}constructor(e,o,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=$r(this.lastRawMoveEventInfo,this.transformPagePoint));let h=fn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,y=ml(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!y)return;let{point:g}=h;this.history.push({...g,timestamp:N.now()});let{onStart:P,onMove:S}=this.handlers;d||(P?.(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S?.(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.handleScroll(window),this.lastMoveEvent=h,this.lastRawMoveEventInfo=d,this.lastMoveEventInfo=$r(d,this.transformPagePoint),this.hasPendingMove=!0,I.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:y,onSessionEnd:g,resumeAnimation:P}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&P?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let S=fn(h.type==="pointercancel"?this.lastMoveEventInfo:$r(d,this.transformPagePoint),this.history);this.startEvent&&y?.(h,S),g?.(h,S)},!Ne(e))return;this.dragSnapToOrigin=a,this.handlers=o,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let c=je(e),u=$r(c,this.transformPagePoint),{point:m}=u;this.history=[{...m,timestamp:N.now()}];let{onSessionStart:f}=o;f&&f(e,fn(u,this.history));let p={passive:!0,capture:!0};this.removeListeners=vt(jt(this.contextWindow,"pointermove",this.handlePointerMove,p),jt(this.contextWindow,"pointerup",this.handlePointerUp,p),jt(this.contextWindow,"pointercancel",this.handlePointerUp,p)),l&&this.startScrollTracking(l)}startScrollTracking(e){let o=e.parentElement;for(;o;){let i=getComputedStyle(o);(fl.has(i.overflowX)||fl.has(i.overflowY))&&this.scrollPositions.set(o,mn(o)),o=o.parentElement}this.scrollPositions.set(window,mn(window)),this.removeScrollListeners=vt(yt(window,"scroll",this.onElementScroll,{capture:!0}),yt(window,"scroll",this.onWindowScroll,{}))}handleScroll(e){let o=this.scrollPositions.get(e);if(!o)return;let i=e===window,n=mn(e),a={x:n.x-o.x,y:n.y-o.y};a.x===0&&a.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,n),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),ct(this.updatePoint)}},mn=r(t=>t===window?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},"getScroll");function $r(t,e){return e?{point:e(t.point)}:t}r($r,"transformPoint");function pl(t,e){return{x:t.x-e.x,y:t.y-e.y}}r(pl,"subtractPoint");function fn({point:t},e){return{point:t,delta:pl(t,hl(e)),offset:pl(t,Nm(e)),velocity:jm(e,.1)}}r(fn,"getPanInfo");function Nm(t){return t[0]}r(Nm,"startDevicePoint");function hl(t){return t[t.length-1]}r(hl,"lastDevicePoint");function jm(t,e){if(t.length<2)return{x:0,y:0};let o=t.length-1,i=null,n=hl(t);for(;o>=0&&(i=t[o],!(n.timestamp-i.timestamp>ot(e)));)o--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>ot(e)*2&&(i=t[1]);let a=tt(n.timestamp-i.timestamp);if(a===0)return{x:0,y:0};let s={x:(n.x-i.x)/a,y:(n.y-i.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}r(jm,"getVelocity");var Gm=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dl(t){return Gm.has(t.tagName)||t.isContentEditable===!0}r(dl,"isElementKeyboardAccessible");var Um=new Set(["INPUT","SELECT","TEXTAREA"]);function gl(t){return Um.has(t.tagName)||t.isContentEditable===!0}r(gl,"isElementTextInput");var St={x:!1,y:!1};function Yr(){return St.x||St.y}r(Yr,"isDragActive");function yl(t){return t==="x"||t==="y"?St[t]?null:(St[t]=!0,()=>{St[t]=!1}):St.x||St.y?null:(St.x=St.y=!0,()=>{St.x=St.y=!1})}r(yl,"setDragLock");function Vl(t,{min:e,max:o},i){return e!==void 0&&t<e?t=i?k(e,t,i.min):Math.max(t,e):o!==void 0&&t>o&&(t=i?k(o,t,i.max):Math.min(t,o)),t}r(Vl,"applyConstraints");function xl(t,e,o){return{min:e!==void 0?t.min+e:void 0,max:o!==void 0?t.max+o-(t.max-t.min):void 0}}r(xl,"calcRelativeAxisConstraints");function bl(t,{top:e,left:o,bottom:i,right:n}){return{x:xl(t.x,o,n),y:xl(t.y,e,i)}}r(bl,"calcRelativeConstraints");function vl(t,e){let o=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([o,i]=[i,o]),{min:o,max:i}}r(vl,"calcViewportAxisConstraints");function Pl(t,e){return{x:vl(t.x,e.x),y:vl(t.y,e.y)}}r(Pl,"calcViewportConstraints");function Al(t,e){let o=.5,i=nt(t),n=nt(e);return n>i?o=pt(e.min,e.max-i,t.min):i>n&&(o=pt(t.min,t.max-n,e.min)),q(0,1,o)}r(Al,"calcOrigin");function wl(t,e){let o={};return e.min!==void 0&&(o.min=e.min-t.min),e.max!==void 0&&(o.max=e.max-t.min),o}r(wl,"rebaseAxisConstraints");var Xr=.35;function Ml(t=Xr){return t===!1?t=0:t===!0&&(t=Xr),{x:Tl(t,"left","right"),y:Tl(t,"top","bottom")}}r(Ml,"resolveDragElastic");function Tl(t,e,o){return{min:Sl(t,e),max:Sl(t,o)}}r(Tl,"resolveAxisElastic");function Sl(t,e){return typeof t=="number"?t:t[e]||0}r(Sl,"resolvePointElastic");function Cl(t){let e="";for(let o of t.path){o.scroll=void 0,o.updateScroll();let{scroll:i}=o;o!==t.root&&i&&(e+=i.offset.x+","+i.offset.y+",")}return e}r(Cl,"measureScroll");var Rl=new WeakMap,Bo=class{static{r(this,"VisualElementDragControls")}constructor(e,o=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=o}start(e,{snapToCursor:o=!1,distanceThreshold:i}={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let n=r(m=>{o&&this.snapToCursor(m),this.stopAnimation()},"onSessionStart"),a=r((m,f)=>{let{drag:p,dragConstraints:h,dragPropagation:d,onDragStart:y}=this.getProps();if(p&&!d&&(this.openDragLock?.(),this.openDragLock=yl(p),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:g}=this.visualElement;g&&(g.isAnimationBlocked=!0,g.target=void 0),gt(P=>{let S=this.getAxisMotionValue(P).get()||0;if(Kt(S)&&(S=ho(S,this.visualElement.current)||0),V.test(S))S=parseFloat(S);else if(lt.test(S)){let M=g?.layout?.layoutBox[P];M&&(S=nt(M)*(parseFloat(S)/100))}this.originPoint[P]=S}),this.point=typeof h=="function"&&h(this),y&&I.update(()=>y(m,f),!1,!0),yo(this.visualElement,"transform"),this.visualElement.animationState?.setActive("whileDrag",!0)},"onStart"),s=r((m,f)=>{this.latestPointerEvent=m,this.latestPanInfo=f;let{dragPropagation:p,dragDirectionLock:h,onDirectionLock:d,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:g}=f;if(h&&this.currentDirection===null){if(this.currentDirection=Km(g),this.currentDirection===null)return;d&&d(this.currentDirection)}this.updateAxis("x",g),this.updateAxis("y",g),this.point&&this.point.move(),this.visualElement.render(),y&&I.update(()=>y(m,f),!1,!0)},"onMove"),l=r((m,f)=>{this.latestPointerEvent=m,this.latestPanInfo=f,this.stop(m,f),this.latestPointerEvent=null,this.latestPanInfo=null},"onSessionEnd"),c=r(()=>{let{dragSnapToOrigin:m}=this.getProps();(m||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},"resumeAnimation"),{dragSnapToOrigin:u}=this.getProps();this.panSession=new he(e,{onSessionStart:n,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,o,i){let n=e||this.latestPointerEvent,a=o||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!n)return;let{velocity:l}=a;this.startAnimation(l,i);let{onDragEnd:c}=this.getProps();c&&I.postRender(()=>c(n,a))}cancel(){this.isDragging=!1;let{projection:e,animationState:o}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o?.setActive("whileDrag",!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,o){let{drag:i}=this.readProps();if(!o||!Ue(e,i,this.currentDirection))return;let n=this.getAxisMotionValue(e),a=this.originPoint[e]+o[e],s=this.constraints&&this.constraints[e];s&&(a=Vl(a,s,this.elastic[e])),this.point?this.point[e]=a:n.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:o}=this.getProps(),{projection:i}=this.visualElement,n=i&&(i.layout||i.measure(!1)),a=this.constraints;ko(e)?(!this.constraints||this.scroll!==Cl(i))&&(this.constraints=this.resolveRefConstraints()):e&&n&&typeof e=="object"?this.constraints=bl(n.layoutBox,e):this.constraints=!1,this.elastic=Ml(o),a!==this.constraints&&!ko(e)&&n&&this.constraints&&!this.hasMutatedConstraints&>(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=wl(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:o}=this.getProps();if(!ko(e))return!1;let i=Dl(e),{projection:n}=this.visualElement;if(!n||!n.layout)return!1;this.scroll=Cl(n);let a=fa(i,n.root,this.visualElement.getTransformPagePoint()),s=Pl(n.layout.layoutBox,n.removeElementScroll(a));if(o){let l=o(ra(s));this.hasMutatedConstraints=!!l,l&&(s=Br(l))}return s}startAnimation(e,o){let{drag:i,dragMomentum:n,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u={bounceStiffness:a?200:1e6,bounceDamping:a?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s},m=r(h=>n&&!(this.point&&l)&&Ue(h,o||i,this.currentDirection)?e[h]:0,"axisVelocity");if(this.point&&!l)return this.point.release({x:m("x"),y:m("y")},u).then(c);let f=this.constraints||{},p=gt(h=>{if(!Ue(h,o||i,this.currentDirection))return;let d=f[h]||{};(l===!0||l===h)&&(d={min:0,max:0});let y={type:"inertia",velocity:m(h),...u,...d};return this.startAxisValueAnimation(h,y)});return Promise.all(p).then(c)}startAxisValueAnimation(e,o){let i=this.getAxisMotionValue(e);return yo(this.visualElement,e),i.start(Le(e,i,0,o,this.visualElement,!1))}stopAnimation(){gt(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let o=`_drag${e.toUpperCase()}`,n=this.readProps()[o];return n||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:o}){let{drag:i}=this.getProps(),n={x:e,y:o},a=this.visualElement.getTransformPagePoint()?.(n)||n,s=this.visualElement.measureViewportBox();gt(l=>{if(!Ue(l,i,this.currentDirection))return;let c=this.getAxisMotionValue(l),{min:u,max:m}=s[l];c.set((c.get()||0)+a[l]-k(u,m,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:o}=this.getProps(),{projection:i}=this.visualElement;if(!ko(o)||!i||!this.constraints)return;this.stopAnimation();let n=this.constraints,a={x:0,y:0};gt(l=>{let c=this.getAxisMotionValue(l).get();a[l]=Al({min:c,max:c},n[l])});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root?.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),gt(l=>{let c=this.getAxisMotionValue(l);if(!Ue(l,e,null)||!c.get())return;let{min:u,max:m}=this.constraints[l];c.set(k(u,m,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Rl.set(this.visualElement,this);let e=this.visualElement.current,o=jt(e,"pointerdown",u=>{let{drag:m,dragListener:f=!0}=this.getProps(),p=u.target,h=p!==e&&gl(p);m&&f&&!h&&this.start(u)}),i,n=r(()=>{let{dragConstraints:u}=this.getProps(),m=ko(u)&&Dl(u);m&&(this.constraints=this.resolveRefConstraints(),i||(i=Wm(e,m,()=>this.scalePositionWithinConstraints())))},"measureDragConstraints"),{projection:a}=this.visualElement,s=a.addEventListener("measure",n);a.layout||(a.root?.updateScroll(),a.updateLayout()),I.read(n);let l=yt(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:m})=>{this.isDragging&&m&&(gt(f=>{if(!Ue(f,this.getProps().drag,this.currentDirection))return;let p=this.getAxisMotionValue(f);this.originPoint[f]+=u[f].translate,p.set(p.get()+u[f].translate)}),this.visualElement.render())}));return()=>{l(),o(),s(),c(),i?.()}}getProps(){let e=this.readProps(),{dragElastic:o=Xr,dragMomentum:i=!0}=e;return{...e,dragElastic:o,dragMomentum:i}}};function ko(t){return!!t&&typeof t=="object"&&("current"in t||"nodeType"in t)}r(ko,"isElementConstraints");var Dl=r(t=>"current"in t?t.current:t,"resolveConstraintsElement");function El(t){let e=!0;return()=>{if(e){e=!1;return}t()}}r(El,"skipFirstCall");function Wm(t,e,o){let i=un(t,El(o)),n=un(e,El(o));return()=>{i(),n()}}r(Wm,"startResizeObservers");function Ue(t,e,o){return(e===!0||e===t)&&(o===null||o===t)}r(Ue,"shouldDrag");function Km(t,e=10){let o=null;return Math.abs(t.y)>e?o="y":Math.abs(t.x)>e&&(o="x"),o}r(Km,"getCurrentDirection");function qr(t,e){let o=Ir(t),i=new AbortController,n={passive:!0,...e,signal:i.signal},a=ke(()=>i.abort());return[o,n,a]}r(qr,"setupGesture");function zm(t){return!(t.pointerType==="touch"||Yr())}r(zm,"isValidHover");function pn(t,e,o={}){e=Be(e);let[i,n,a]=qr(t,o);return i.forEach(s=>{let l=!1,c=!1,u,m=r(()=>{s.removeEventListener("pointerleave",d)},"removePointerLeave"),f=r(g=>{u&&(u(g),u=void 0),m()},"endHover"),p=r(g=>{l=!1,window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),c&&(c=!1,f(g))},"onPointerUp"),h=r(()=>{l=!0,window.addEventListener("pointerup",p,n),window.addEventListener("pointercancel",p,n)},"onPointerDown"),d=r(g=>{if(g.pointerType!=="touch"){if(l){c=!0;return}f(g)}},"onPointerLeave"),y=r(g=>{if(!zm(g))return;c=!1;let P=e(s,g);typeof P=="function"&&(u=P,s.addEventListener("pointerleave",d,n))},"onPointerEnter");s.addEventListener("pointerenter",y,n),s.addEventListener("pointerdown",h,n)}),a}r(pn,"hover");var hn=r((t,e)=>e?t===e?!0:hn(t,e.parentElement):!1,"isNodeOrChild");var We=new WeakSet;function Ll(t){return e=>{e.key==="Enter"&&t(e)}}r(Ll,"filterEvents");function dn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}r(dn,"firePointerEvent");var Il=r((t,e)=>{let o=!1,i=Ll(()=>{We.has(t)||(o=!0,dn(t,"down"))}),n=Ll(()=>{o&&(o=!1,dn(t,"up"))});t.addEventListener("keydown",i,e),t.addEventListener("keyup",n,e),t.addEventListener("blur",()=>{t.removeEventListener("keydown",i),t.removeEventListener("keyup",n),o&&dn(t,"cancel")},{...e,once:!0})},"enableKeyboardPress");function kl(t){return Ne(t)&&!Yr()}r(kl,"isValidPressEvent");var Bl=new WeakSet;function gn(t,e,o={}){e=Be(e);let[i,n,a]=qr(t,o),s=r(l=>{let c=l.currentTarget;if(!kl(l)||Bl.has(l))return;We.add(c),o.stopPropagation&&Bl.add(l);let u=e(c,l),m={...n,capture:!0},f=r((d,y)=>{window.removeEventListener("pointerup",p,m),window.removeEventListener("pointercancel",h,m),We.has(c)&&We.delete(c),kl(d)&&typeof u=="function"&&u(d,{success:y})},"onPointerEnd"),p=r(d=>{f(d,c===window||c===document||o.useGlobalTarget||hn(c,d.target))},"onPointerUp"),h=r(d=>{f(d,!1)},"onPointerCancel");window.addEventListener("pointerup",p,m),window.addEventListener("pointercancel",h,m)},"startPress");return i.forEach(l=>{(o.useGlobalTarget?window:l).addEventListener("pointerdown",s,n),ea(l)&&(l.addEventListener("focus",()=>Il(l,n),n),!dl(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}r(gn,"press");var it=class{static{r(this,"Feature")}constructor(e){this.isMounted=!1,this.node=e}update(){}};var Zr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var Oo=r(t=>typeof t=="string"&&t.toLowerCase()==="svg","isSVGTag");function Ol(t,e,o,i){Kr(t,e,void 0,i);for(let n in e.attrs)t.setAttribute(Zr.has(n)?n:kr(n),e.attrs[n])}r(Ol,"renderSVG");function Fo(t,e,o){let i=pe(t,e,o);for(let n in t)if(n!=="children"&&(U(t[n])||U(e[n]))){let a=ut.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[a]=t[n]}return i}r(Fo,"scrapeMotionValuesFromProps");var No=class extends Fe{static{r(this,"SVGVisualElement")}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,o){return mt.has(o)?super.getBaseTargetFromProps(e,o)??oe(o):e[o]}getDefaultValue(e){return mt.has(e)?this.latestValues[e]??oe(e):void 0}readValueFromInstance(e,o){if(mt.has(o)){let i=mr(o);return i&&i.default||0}if(_i.includes(o)){let n=getComputedStyle(e)[o];if(typeof n=="string"&&n)return n.trim()}return o=Zr.has(o)?o:kr(o),e.getAttribute(o)}scrapeMotionValuesFromProps(e,o,i){return Fo(e,o,i)}build(e,o,i){So(e,o,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,o,i,n){Ol(e,o,i,n)}mount(e){this.isSVGTag=Oo(e.tagName),super.mount(e)}};function yn(t,e){if(!Array.isArray(e))return!1;let o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i++)if(e[i]!==t[i])return!1;return!0}r(yn,"shallowCompare");var Hm=[...me].reverse(),Fl=r(t=>t?.out===!0?t:t?.out,"getOutTransition");function xn(t){let e=r(l=>Promise.all(l.map(({animation:c,options:u})=>qs(t,c,u))),"animate"),o=Nl(),i=!0,n=!1;function a(l){let{props:c,parent:u,manuallyAnimateOnMount:m}=t,{initial:f}=c,p=i||n,h=[],d=r((F=f)=>typeof F!="boolean"&&ht(t,Array.isArray(F)?F[0]:F,t.presenceContext?.custom)||void 0,"resolveInitial"),y=new Map,g={},P=1/0,S=t;do S=S.props.inherit!==!1&&S.parent;while(S&&!S.isControllingVariants);let M=p&&Fl(d(f??(S&&S.props.initial))?.transition);if(Hm.forEach((F,W)=>{let x=o[F],w=c[F],H=S&&S.props[F],K=w!==void 0?w:Nt(H)||H===!1?H:void 0,xt=Nt(K),et=F===l?x.isActive:null,st=xt&&w===void 0&&!(p&&m);if(x.protectedKeys={...g},!x.isActive&&et===null||!K&&!x.prevProp||Ft(K)||typeof K=="boolean")return;if(et===!1&&(P=W),F==="exit"&&x.isActive&&et!==!0){g={...g,...x.prevResolvedValues};return}let z=jl(x.prevProp,K),b=z||xt&&(et&&!st||W>P),v=!1,A=Array.isArray(K)?K:[K],T={},D;if(et!==!1)for(let R of A){let{transition:j,transitionEnd:C,...L}=ht(t,R,Mr(t,F))||{};T={...T,...L,...C},D=Fl(j)||D}let{prevResolvedValues:B}=x;for(let R in{...B,...T}){if(R in g)continue;let j=T[R],C=B[R],L=Array.isArray(j)&&Array.isArray(C)?!yn(j,C)||z:j!==C,G;if(L&&j==null)y.has(R)||y.set(R,x.prevOut);else if(L||j!==void 0&&y.has(R)){b=!0,G=y.get(R)||M,y.delete(R)&&(v=!0),x.needsAnimating[R]=!0;let O=t.getValue(R);O&&(O.liveStyle=!1)}else x.protectedKeys[R]=!0;x.out[R]=G}if(x.prevProp=K,x.prevResolvedValues=T,x.prevOut=D,x.isActive&&(g={...g,...T}),b&&(!(st&&z)||v))for(let R of A){let j={type:F};if(typeof R=="string"&&p&&m&&u?.enteringChildren){let C=ht(u,R)?.transition?.delayChildren;j.delay=Ar(u.enteringChildren,t,C)}h.push({animation:R,options:j})}}),y.size){let F={},W=d(),x=W?.transition;y.forEach((w,H)=>{w&&(x={...x||t.getDefaultTransition(),[H]:w});let K=t.getValue(H);K&&(K.liveStyle=!0);let xt=W&&!Array.isArray(f)?W[H]:void 0,et=t.getBaseTargetFromProps(c,H);F[H]=(xt!==void 0?xt:et!==void 0&&!U(et)?et:t.initialValues[H]===void 0?t.baseTarget[H]:void 0)??null}),x&&(F.transition=x),h.push({animation:F})}let E=p&&t.blockInitialAnimation||i&&!m&&(c.initial===!1||c.initial===c.animate);return i=n=!1,!E&&h.length?e(h):Promise.resolve()}r(a,"animateChanges");function s(l,c){if(o[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(m=>m.animationState?.setActive(l,c)),o[l].isActive=c;let u=a(l);for(let m in o)o[m].protectedKeys={};return u}return r(s,"setActive"),{animateChanges:a,setActive:s,setAnimateFunction:r(l=>{e=l(t)},"setAnimateFunction"),getState:r(()=>o,"getState"),reset:r(()=>{o=Nl(),n=!0},"reset")}}r(xn,"createAnimationState");function jl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!yn(e,t):!1}r(jl,"checkVariantsDidChange");function Nl(){let t={};for(let e of me)t[e]={isActive:e==="animate",protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return t}r(Nl,"createState");var Gl=Y(Q(),1);var Jr=(0,Gl.createContext)({transformPagePoint:r(t=>t,"transformPagePoint"),isStatic:!1,reducedMotion:"never"});var Xt=Y(Q(),1);function Ul(t=!0){let e=(0,Xt.useContext)(ge);if(e===null)return[!0,null];let{isPresent:o,onExitComplete:i,register:n}=e,a=(0,Xt.useId)();(0,Xt.useEffect)(()=>{if(t)return n(a)},[t]);let s=(0,Xt.useCallback)(()=>t&&i&&i(a),[a,i,t]);return!o&&i?[!1,s]:[!0]}r(Ul,"usePresence");var Wl=Y(Q(),1),Qr=(0,Wl.createContext)({strict:!1});var Kl={animation:["variants",...me],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"]},zl=!1;function _m(){if(zl)return;let t={};for(let e in Kl)t[e]={isEnabled:r(o=>Kl[e].some(i=>!!o[i]),"isEnabled")};Ro(t),zl=!0}r(_m,"initFeatureDefinitions");function ti(){return _m(),ln()}r(ti,"getInitializedFeatureDefinitions");function Hl(t){let e=ti();for(let o in t)e[o]={...e[o],...t[o]};Ro(e)}r(Hl,"loadFeatures");var ni=Y(Dn(),1);var _e=Y(Q(),1);var _l=Y(Q(),1),qt=(0,_l.createContext)({});var ei=Y(Q(),1);function $l(t,e){if($t(t)){let{initial:o,animate:i}=t;return{initial:o===!1||Nt(o)?o:void 0,animate:Nt(i)?i:void 0}}return t.inherit!==!1?e:{}}r($l,"getCurrentTreeVariants");function Xl(t){let{initial:e,animate:o}=$l(t,(0,ei.useContext)(qt));return(0,ei.useMemo)(()=>({initial:e,animate:o}),[Yl(e),Yl(o)])}r(Xl,"useCreateMotionContext");function Yl(t){return Array.isArray(t)?t.join(" "):t}r(Yl,"variantLabelsAsDependency");var He=Y(Q(),1);var ql=Y(Q(),1);var Ke=r(()=>({style:{},transform:{},transformOrigin:{},vars:{}}),"createHtmlRenderState");function vn(t,e,o){for(let i in e)!U(e[i])&&!Lo(i,o)&&(t[i]=e[i])}r(vn,"copyRawValuesOnly");function $m({transformTemplate:t},e){return(0,ql.useMemo)(()=>{let o=Ke();return ie(o,e,t),Object.assign({},o.vars,o.style)},[e])}r($m,"useInitialMotionValues");function Ym(t,e){let o=t.style||{},i={};return vn(i,o,t),Object.assign(i,$m(t,e)),i}r(Ym,"useStyle");function Zl(t,e){let o={},i=Ym(t,e);return t.drag&&t.dragListener!==!1&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=i,o}r(Zl,"useHTMLProps");var Jl=Y(Q(),1);var oi=r(()=>({...Ke(),attrs:{}}),"createSvgRenderState");function Ql(t,e,o,i){let n=(0,Jl.useMemo)(()=>{let a=oi();return So(a,e,Oo(i),t.transformTemplate,t.style),{...a.attrs,style:{...a.style}}},[e]);if(t.style){let a={};return vn(a,t.style,t),{...n,style:{...a,...n.style}}}return n}r(Ql,"useSVGProps");var Xm=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function jo(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Xm.has(t)}r(jo,"isValidMotionProp");function qm(t,e){return t.startsWith("on")?!jo(t):e?.(t)??!jo(t)}r(qm,"shouldForward");function tc(t,e,o,i){let n={};for(let a in t)a==="values"&&typeof t.values=="object"||U(t[a])||(qm(a,i)||o===!0&&jo(a)||!e&&!jo(a)||t.draggable&&a.startsWith("onDrag"))&&(n[a]=t[a]);return n}r(tc,"filterProps");var ec=["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 ze(t){return typeof t!="string"||t.includes("-")?!1:!!(ec.indexOf(t)>-1||/[A-Z]/u.test(t))}r(ze,"isSVGComponent");function oc(t,e,o,{latestValues:i},n,a=!1,s,l){let u=(s??ze(t)?Ql:Zl)(e,i,n,t),m=tc(e,typeof t=="string",a,l),f=t!==He.Fragment?{...m,...u,ref:o}:{},{children:p}=e,h=(0,He.useMemo)(()=>U(p)?p.get():p,[p]);return(0,He.createElement)(t,{...f,children:h})}r(oc,"useRender");var Tn=Y(Q(),1);function Zm({scrapeMotionValuesFromProps:t,createRenderState:e},o,i,n){return{latestValues:Jm(o,i,n,t),renderState:e()}}r(Zm,"makeState");function Jm(t,e,o,i){let n={},a=i(t,{});for(let p in a)n[p]=ae(a[p]);let{initial:s,animate:l}=t,c=$t(t),u=Co(t);e&&u&&!c&&t.inherit!==!1&&(s===void 0&&(s=e.initial),l===void 0&&(l=e.animate));let m=o?o.initial===!1:!1;m=m||s===!1;let f=m?l:s;if(f&&typeof f!="boolean"&&!Ft(f)){let p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){let d=go(t,p[h]);if(d){let{transitionEnd:y,transition:g,...P}=d;for(let S in P){let M=P[S];if(Array.isArray(M)){let E=m?M.length-1:0;M=M[E]}M!==null&&(n[S]=M)}for(let S in y)n[S]=y[S]}}}return n}r(Jm,"makeLatestValues");var ri=r(t=>(e,o)=>{let i=(0,Tn.useContext)(qt),n=(0,Tn.useContext)(ge),a=r(()=>Zm(t,e,i,n),"make");return o?a():Wo(a)},"makeUseVisualState");var rc=ri({scrapeMotionValuesFromProps:pe,createRenderState:Ke});var ic=ri({scrapeMotionValuesFromProps:Fo,createRenderState:oi});var nc=Symbol.for("motionComponentSymbol");var de=Y(Q(),1);function sc(t,e,o){let i=(0,de.useRef)(o);(0,de.useInsertionEffect)(()=>{i.current=o});let n=(0,de.useRef)(null);return(0,de.useCallback)(a=>{a&&t.onMount?.(a),e&&(a?e.mount(a):e.unmount());let s=i.current;if(typeof s=="function")if(a){let l=s(a);typeof l=="function"&&(n.current=l)}else n.current?(n.current(),n.current=null):s(a);else s&&(s.current=a)},[e])}r(sc,"useMotionRef");var ft=Y(Q(),1);var ac=Y(Q(),1),ii=(0,ac.createContext)({});function lc(t,e,o,i,n,a){let{visualElement:s}=(0,ft.useContext)(qt),l=(0,ft.useContext)(Qr),c=(0,ft.useContext)(ge),u=(0,ft.useContext)(Jr),m=u.reducedMotion,f=u.skipAnimations,p=(0,ft.useRef)(null),h=(0,ft.useRef)(!1);i=i||l.renderer,!p.current&&i&&(p.current=i(t,{visualState:e,parent:s,props:o,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:m,skipAnimations:f,isSVG:a}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let d=p.current,y=(0,ft.useContext)(ii);d&&!d.projection&&n&&(d.type==="html"||d.type==="svg")&&n.create(d,o,y),(0,ft.useInsertionEffect)(()=>{d&&d.props!==o&&d.update(o,c)});let g=o[xo],P=(0,ft.useRef)(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return yi(()=>{!h.current||!d||(d.animationState?.animateChanges(),d.enteringChildren=void 0)},[]),yi(()=>{h.current=!0,d&&(window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),P.current&&d.animationState&&d.animationState.animateChanges())}),(0,ft.useEffect)(()=>{d&&(!P.current&&d.animationState&&d.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),P.current=!1),d.enteringChildren=void 0)}),d}r(lc,"useVisualElement");function si(t,{forwardMotionProps:e=!1,type:o}={},i,n){i&&Hl(i);let a=o?o==="svg":ze(t),s=a?ic:rc;function l(u,m){let f,p=Qm(u);Wo(()=>!!ue.current?.sharedNodes.get(p)?.lead&&u.initial)&&(u={...u,initial:!1});let h={...(0,_e.useContext)(Jr),...u,layoutId:p},{isStatic:d,isValidProp:y}=h,g=Xl(u),P=s(u,d);if(!d&&typeof window<"u"){tf(h,i);let S=ef(h);g.visualElement=lc(t,P,h,n,S.ProjectionNode,a),(S.isEnabled||g.visualElement?.projection?.options.layoutId)&&(f=S.MeasureLayout)}return(0,ni.jsxs)(qt.Provider,{value:g,children:[f&&g.visualElement?(0,ni.jsx)(f,{visualElement:g.visualElement,...h}):null,oc(t,u,sc(P,g.visualElement,m),P,d,e,a,y)]})}r(l,"MotionDOMComponent"),l.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let c=(0,_e.forwardRef)(l);return c[nc]=t,c}r(si,"createMotionComponent");function Qm({layoutId:t}){let e=(0,_e.useContext)(Uo).id;return e&&t!==void 0?e+"-"+t:t}r(Qm,"useLayoutId");function tf(t,e){let o=(0,_e.useContext)(Qr).strict}r(tf,"useStrictMode");function ef(t){let e=ti(),{drag:o,layout:i}=e;if(!o&&!i)return{};let n={...o,...i};return{MeasureLayout:n.MeasureLayout,isEnabled:o?.isEnabled(t)||i?.isEnabled(t),ProjectionNode:n.ProjectionNode}}r(ef,"getProjectionFunctionality");function cc(t,e){if(typeof Proxy>"u")return si;let o=new Map,i=r((a,s)=>si(a,s,t,e),"factory"),n=r((a,s)=>i(a,s),"deprecatedFactoryFunction");return new Proxy(n,{get:r((a,s)=>s==="create"?i:(o.has(s)||o.set(s,si(s,void 0,t,e)),o.get(s)),"get")})}r(cc,"createMotionProxy");var uc=Y(Q(),1);var mc=r((t,e)=>e.isSVG??ze(t)?new No(e):new Io(e,{allowProjection:t!==uc.Fragment}),"createDomVisualElement");var ai=class extends it{static{r(this,"AnimationFeature")}constructor(e){super(e),e.animationState||(e.animationState=xn(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ft(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var of=0,li=class extends it{static{r(this,"ExitAnimationFeature")}constructor(){super(...arguments),this.id=of++}update(){let{presenceContext:e,prevPresenceContext:o,animationState:i}=this.node;if(!e||!i)return;let{isPresent:n,onExitComplete:a}=e,s=o?.isPresent;if(n===s)return;if(n&&s===!1){if(this.exit===!0){let{initial:c}=this.node.getProps();if(c&&!Array.isArray(c)){let{transition:u,transitionEnd:m,...f}=ht(this.node,c)||{};for(let p in f)this.node.getValue(p)?.jump(f[p])}this.node.blockInitialAnimation=!1,i.reset(),i.animateChanges()}else i.setActive("exit",!1);this.exit=void 0;return}let l=this.exit=i.setActive("exit",!n);a&&!n&&l.then(()=>{this.exit===l&&(this.exit=!0,a(this.id))})}mount(){let{register:e,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}};var fc={animation:{Feature:ai},exit:{Feature:li}};var ci=class extends it{static{r(this,"DragGesture")}constructor(e){super(e),this.removeGroupControls=J,this.removeListeners=J,this.controls=new Bo(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}update(){let{dragControls:e,drag:o}=this.node.getProps(),{dragControls:i,drag:n}=this.node.prevProps||{};e!==i&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),n&&!o&&this.controls.stop(void 0,void 0,n)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var Sn=r(t=>(e,o)=>{t&&I.update(()=>t(e,o),!1,!0)},"asyncHandler"),ui=class extends it{static{r(this,"PanGesture")}constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(e){this.session=new he(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:o,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:Sn(e),onStart:Sn(o),onMove:Sn(i),onEnd:r((a,s)=>{delete this.session,n&&I.postRender(()=>n(a,s))},"onEnd")}}mount(){this.removePointerDownListener=jt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}};var dc=Y(Dn(),1);var Go=Y(Q(),1);var Vn=!1,pc=r(({layout:t,layoutDependency:e,layoutAnchor:o})=>({layout:t,layoutDependency:e,layoutAnchor:o,animationType:typeof t=="string"?t:"both"}),"layoutOptions"),hc=r((t,e)=>{let{snapshot:o}=t,i=t.getStack();i?.remove(t);let n=i?.lead;if(i?.prevLead===t&&n.resumeFrom===t&&(n.resumeFrom=n.currentAnimation=t.resumingFrom=void 0),t.options.layoutId=e,!e){t.needsShow=!0;return}return t.root.registerSharedNode(e,t),()=>{let{resumeFrom:a}=t;a?.isPresent!==!1&&t.getStack().members.includes(a)&&(a.hide(),t.resumeFrom=void 0,t.snapshot=o)}},"switchLayoutId"),bn=class extends Go.Component{static{r(this,"MeasureLayoutWithContext")}componentDidMount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:i,layoutId:n}=this.props,{projection:a}=e;a&&(o.group?.add(a),n&&i?.register?.(a),Vn&&a.root.didUpdate(),a.options.layoutId!==n&&hc(a,n)?.(),a.addEventListener("animationComplete",()=>this.safeToRemove()),a.setOptions({...a.options,...pc(this.props),onExitComplete:r(()=>this.safeToRemove(),"onExitComplete")})),ce.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:o,layoutId:i,visualElement:n,drag:a,isPresent:s}=this.props,{projection:l}=n;return l&&(l.isPresent=s,this.takeOver=e.layoutId!==i?(l.willUpdate(),hc(l,i)):void 0,l.setOptions({...l.options,...pc(this.props)}),Vn=!0,a||e.layoutDependency!==o||o===void 0||e.isPresent!==s?l.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?l.promote():l.relegate()||I.postRender(()=>{l.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),ne.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:i}=this.props,{projection:n}=e;Vn=!0,n&&(n.scheduleCheckAfterUnmount(),o.group?.remove(n),i?.deregister?.(n))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function mi(t){let[e,o]=Ul(),i=(0,Go.useContext)(Uo);return(0,dc.jsx)(bn,{...t,layoutGroup:i,switchLayoutGroup:(0,Go.useContext)(ii),isPresent:e,safeToRemove:o})}r(mi,"MeasureLayout");var gc={pan:{Feature:ui},drag:{Feature:ci,ProjectionNode:Mo,MeasureLayout:mi}};function fi(t,e,o,i){let{props:n}=t,a="while"+o;t.animationState&&n[a]&&t.animationState.setActive(a,i==="Start");let s=n["on"+o+i];s&&I.postRender(()=>s(e,je(e)))}r(fi,"handleGestureEvent");var pi=class extends it{static{r(this,"HoverGesture")}mount(){let{current:e}=this.node;e&&(this.unmount=pn(e,(o,i)=>(fi(this.node,i,"Hover","Start"),n=>fi(this.node,n,"Hover","End"))))}unmount(){}};var hi=class extends it{static{r(this,"FocusGesture")}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=vt(yt(this.node.current,"focus",()=>this.onFocus()),yt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function yc(t,e,o){t.current instanceof HTMLButtonElement&&t.current.disabled||fi(t,e,"Tap",o)}r(yc,"handlePressEvent");var di=class extends it{static{r(this,"PressGesture")}mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:o,propagate:i}=this.node.props;this.unmount=gn(e,(n,a)=>(yc(this.node,a,"Start"),(s,{success:l})=>yc(this.node,s,l?"":"Cancel")),{useGlobalTarget:o,stopPropagation:i?.tap===!1})}unmount(){}};var An=new WeakMap,Pn=new WeakMap,rf=r(t=>{let e=An.get(t.target);e&&e(t)},"fireObserverCallback"),nf=r(t=>{t.forEach(rf)},"fireAllObserverCallbacks");function sf({root:t,...e}){let o=t||document;Pn.has(o)||Pn.set(o,{});let i=Pn.get(o),n=JSON.stringify(e);return i[n]||(i[n]=new IntersectionObserver(nf,{root:t,...e})),i[n]}r(sf,"initIntersectionObserver");function xc(t,e,o){let i=sf(e);return An.set(t,o),i.observe(t),()=>{An.delete(t),i.unobserve(t)}}r(xc,"observeIntersection");var af={some:0,all:1},gi=class extends it{static{r(this,"InViewFeature")}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:o,margin:i,amount:n="some",once:a}=e,s={root:o?o.current:void 0,rootMargin:i,threshold:typeof n=="number"?n:af[n]},l=r(c=>{let{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:m,onViewportLeave:f}=this.node.getProps(),p=u?m:f;p&&p(c)},"onIntersectionUpdate");this.stopObserver=xc(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:o}=this.node;["amount","margin","root"].some(lf(e,o))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function lf({viewport:t={}},{viewport:e={}}={}){return o=>t[o]!==e[o]}r(lf,"hasViewportOptionChanged");var vc={inView:{Feature:gi},tap:{Feature:di},focus:{Feature:hi},hover:{Feature:pi}};var Tc={layout:{ProjectionNode:Mo,MeasureLayout:mi}};var Sc=Object.assign({},fc,vc,gc,Tc);var wn=cc(Sc,mc);var Vc=Y(Q(),1);function cf(){!fe.current&&Do();let[t]=(0,Vc.useState)(Yt.current);return t}r(cf,"useReducedMotion");var KR=wn;export{cf as a,KR as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s="https://dash.cloudflare.com/?to=/:account",a=`${s}/workers-and-pages/observability`,r=`${s}/workers-and-pages`,o=`${s}/r2`,e=`${s}/workers/d1`,t=`${s}/workers/durable-objects`;export{a,r as b,o as c,e as d,t as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-EDL46BPM.js";import{i as j}from"./chunk-V4JKKAAZ.js";import{B as b}from"./chunk-VJQP4ARP.js";import{a as $}from"./chunk-A6TVTNKO.js";import{a as w,b as A}from"./chunk-ADABTCDI.js";import{a as m,d as S}from"./chunk-5PEAXTYQ.js";var y=S($(),1),h=S(w(),1);var a=S(A(),1);var z=m(i=>{let t=(0,y.c)(21),{id:f,onChange:g,testId:e,value:v}=i,s=b(),u=(0,h.useId)(),[d]=(0,h.useState)(F),c;t[0]!==g?(c=m(C=>{g(C.target.value)},"d"),t[0]=g,t[1]=c):c=t[1];let I=c,o;t[2]!==s?(o=s("Shard key"),t[2]=s,t[3]=o):o=t[3];let x=d.length>0?u:void 0,r;t[4]!==s?(r=s("shard key (optional)"),t[4]=s,t[5]=r):r=t[5];let l;t[6]!==f||t[7]!==I||t[8]!==o||t[9]!==x||t[10]!==r||t[11]!==e||t[12]!==v?(l=(0,a.jsx)(j,{"aria-label":o,className:"h-8 w-48","data-testid":e,id:f,list:x,onChange:I,placeholder:r,value:v}),t[6]=f,t[7]=I,t[8]=o,t[9]=x,t[10]=r,t[11]=e,t[12]=v,t[13]=l):l=t[13];let n;t[14]!==u||t[15]!==d||t[16]!==e?(n=d.length>0&&(0,a.jsx)("datalist",{"data-testid":`${e}-recents`,id:u,children:d.map(N)}),t[14]=u,t[15]=d,t[16]=e,t[17]=n):n=t[17];let p;return t[18]!==l||t[19]!==n?(p=(0,a.jsxs)(a.Fragment,{children:[l,n]}),t[18]=l,t[19]=n,t[20]=p):p=t[20],p},"A");function F(){return k()}m(F,"$");function N(i){return(0,a.jsx)("option",{"aria-label":i,value:i},i)}m(N,"w");export{z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-5PEAXTYQ.js";var u=i(r=>{let a=0,e=0,o=0,c=0,t=0,n=0,l=0;for(let{metrics:s}of r){if(s===null){t+=1;continue}c+=1,a+=s.requests,e+=s.errors,o+=s.databaseSize??0,s.cache&&(n+=s.cache.hits,l+=s.cache.hits+s.cache.misses)}return{failed:t,hitRate:l===0?null:n/l,reachable:c,totalDatabaseSize:o,totalErrors:e,totalRequests:a}},"i"),h=i((r,a)=>{let e=new Set,o=[];for(let c of["",r.trim(),...a])e.has(c)||(e.add(c),o.push(c));return o},"u"),f=i(r=>{let a=r,e=[],o=0;for(let t of a.functions??[])t.calls>0&&(e.push({avg:t.totalDurationMs/t.calls,calls:t.calls}),o+=t.calls);e.sort((t,n)=>t.avg-n.avg);let c=i(t=>{let n=Math.ceil(t/100*o),l=0;for(let s of e)if(l+=s.calls,l>=n)return s.avg;return e.at(-1)?.avg??0},"c");return{p90:c(90),p95:c(95)}},"h"),g=i(r=>r.map(a=>({...a,avgDurationMs:a.execCount>0?a.totalDurationMs/a.execCount:0})),"f");export{u as a,h as b,f as c,g as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as D}from"./chunk-QCG2G6IF.js";import{a as L}from"./chunk-NQ727GVM.js";import{b as S}from"./chunk-F2DVDJV6.js";import"./chunk-L27FKJTG.js";import{a as T,b as k,c as A,d as g,e as c,f as l}from"./chunk-4TGALJHR.js";import"./chunk-EOFWXI3T.js";import{a as C}from"./chunk-LYVYUTQY.js";import{c as w}from"./chunk-YL5ZAR3P.js";import{a as I,e as $}from"./chunk-ZZ6ZCOD4.js";import"./chunk-KQVY73EU.js";import"./chunk-ZPQBVYNN.js";import{B as b}from"./chunk-VJQP4ARP.js";import"./chunk-PDBW6GTJ.js";import{a as _}from"./chunk-A6TVTNKO.js";import{b as j}from"./chunk-ADABTCDI.js";import{a as f,d as y}from"./chunk-5PEAXTYQ.js";var O=y(_(),1);var t=y(j(),1);var E="container:",M={error:"error",sleep:"sleeping",start:"running",stop:"stopped"},B=f(e=>{let n=e.indexOf(":");if(n===-1)return{event:e.trim()};let r=e.slice(n+1).trim(),a=e.slice(0,n).trim();return r===""?{event:a}:{detail:r,event:a}},"B"),P=f(e=>{let n=new Map;for(let r of e){let a=r.functionPath??"";if(!a.startsWith(E))continue;let i=a.slice(E.length);if(i==="")continue;let s=JSON.stringify([i,r.instance??""]),o=n.get(s);if(o!==void 0&&o.timestamp>=r.timestamp)continue;let{detail:p,event:d}=B(r.message);n.set(s,{detail:p,event:d,exitCode:r.exitCode,instance:r.instance,level:r.level,name:i,state:M[d]??"unknown",timestamp:r.timestamp})}return[...n.values()].toSorted((r,a)=>r.name.localeCompare(a.name)||(r.instance??"").localeCompare(a.instance??""))},"D"),W={error:"destructive",running:"success",sleeping:"info",stopped:"outline",unknown:"secondary"},q=f(e=>{let{entries:n}=e??{};return Array.isArray(n)?n:[]},"P"),V=f(()=>{let e=(0,O.c)(19),n=b(),r,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},a={live:!0,shardKey:""},e[0]=r,e[1]=a):(r=e[0],a=e[1]);let{data:i,error:s,liveError:o}=w(C.getLogs,r,a),p=i!==void 0,d;if(e[2]!==i||e[3]!==s||e[4]!==o||e[5]!==p||e[6]!==n){let N=P(q(i)),x;e[8]!==s?(x=s!==null&&(0,t.jsx)("p",{className:"text-sm text-destructive","data-testid":"containers-error",role:"alert",children:s}),e[8]=s,e[9]=x):x=e[9];let m;e[10]!==n?(m=n("Cloudflare Containers are observed from their lifecycle log stream. This shows the current state per instance \u2014 ports and health checks aren't carried in that stream."),e[10]=n,e[11]=m):m=e[11];let u;e[12]!==m?(u=(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:m}),e[12]=m,e[13]=u):u=e[13];let h;e[14]!==o?(h=(0,t.jsx)(D,{message:o,prefix:"containers"}),e[14]=o,e[15]=h):h=e[15];let v;e[16]!==u||e[17]!==h?(v=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[u,h]}),e[16]=u,e[17]=h,e[18]=v):v=e[18],d=(0,t.jsxs)("div",{className:"flex flex-col gap-6","data-testid":"lunora-containers-panel",children:[x,v,p&&N.length===0?(0,t.jsx)(L,{description:n("No container lifecycle activity yet. Instances declared with defineContainer show up here once they start, sleep, stop, or error."),testId:"containers-empty",title:n("No container activity")}):(0,t.jsx)(I,{className:"overflow-hidden py-0",children:(0,t.jsx)($,{className:"px-0",children:(0,t.jsxs)(T,{"data-testid":"containers-table",children:[(0,t.jsx)(k,{children:(0,t.jsxs)(g,{children:[(0,t.jsx)(c,{children:n("Container")}),(0,t.jsx)(c,{children:n("Instance")}),(0,t.jsx)(c,{children:n("State")}),(0,t.jsx)(c,{children:n("Last event")}),(0,t.jsx)(c,{children:n("Detail")}),(0,t.jsx)(c,{children:n("Exit")}),(0,t.jsx)(c,{children:n("When")})]})}),(0,t.jsx)(A,{children:N.map(F)})]})})})]}),e[2]=i,e[3]=s,e[4]=o,e[5]=p,e[6]=n,e[7]=d}else d=e[7];return d},"q");function F(e){return(0,t.jsxs)(g,{"data-testid":`containers-row-${e.name}${e.instance===void 0?"":`-${e.instance}`}`,children:[(0,t.jsx)(l,{className:"font-mono text-xs",children:e.name}),(0,t.jsx)(l,{className:"max-w-40 truncate font-mono text-xs text-muted-foreground",title:e.instance,children:e.instance??"\u2014"}),(0,t.jsx)(l,{children:(0,t.jsx)(S,{variant:W[e.state],children:e.state})}),(0,t.jsx)(l,{className:"font-mono text-xs text-muted-foreground",children:e.event}),(0,t.jsx)(l,{className:"max-w-64 truncate text-xs text-muted-foreground",title:e.detail,children:e.detail??"\u2014"}),(0,t.jsx)(l,{className:"font-mono text-xs tabular-nums text-muted-foreground",children:e.exitCode??"\u2014"}),(0,t.jsx)(l,{className:"text-xs tabular-nums text-muted-foreground",children:new Date(e.timestamp).toLocaleString()})]},`${e.name}/${e.instance??""}`)}f(F,"j");export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as z}from"./chunk-MICDQTTJ.js";import{a as _}from"./chunk-NQ727GVM.js";import{b as x}from"./chunk-F2DVDJV6.js";import"./chunk-L27FKJTG.js";import{a as B,b as E,c as L,d as S,e as i,f as s}from"./chunk-4TGALJHR.js";import{b as W}from"./chunk-YL5ZAR3P.js";import{a as A,e as q}from"./chunk-ZZ6ZCOD4.js";import{n as O}from"./chunk-KQVY73EU.js";import"./chunk-ZPQBVYNN.js";import{B as H}from"./chunk-VJQP4ARP.js";import"./chunk-PDBW6GTJ.js";import{a as $}from"./chunk-A6TVTNKO.js";import{b as D}from"./chunk-ADABTCDI.js";import{a as R,d as M}from"./chunk-5PEAXTYQ.js";var I=M($(),1);var n=M(D(),1);var F=2e3,G=new Set(["open"]),ie=R(Q=>{let e=(0,I.c)(41),{read:y}=Q,t=H(),j=O(),v;e[0]!==j||e[1]!==y?(v=R(()=>Promise.resolve(y?y():j.debug()),"T"),e[0]=j,e[1]=y,e[2]=v):v=e[2];let V=v,K=y?"injected":"live",b;e[3]!==K?(b=["lunora-studio","sync-client-debug",K],e[3]=K,e[4]=b):b=e[4];let{data:c,poll:Y}=W(b,V);if(z(Y,!0,F),!c){let r;e[5]!==t?(r=t("Reading the sync client's state\u2026"),e[5]=t,e[6]=r):r=e[6];let g;e[7]!==t?(g=t("Sync client"),e[7]=t,e[8]=g):g=e[8];let T;return e[9]!==r||e[10]!==g?(T=(0,n.jsx)(A,{children:(0,n.jsx)(q,{children:(0,n.jsx)(_,{description:r,title:g})})}),e[9]=r,e[10]=g,e[11]=T):T=e[11],T}let{pendingWrites:k,shards:N,subscriptions:w}=c,l;e[12]!==t?(l=t("This Studio session's sync client"),e[12]=t,e[13]=l):l=e[13];let a;e[14]!==l?(a=(0,n.jsx)("span",{className:"text-sm font-medium",children:l}),e[14]=l,e[15]=a):a=e[15];let P=c.connectionStatus==="connected"?"default":"secondary",o;e[16]!==c.connectionStatus||e[17]!==P?(o=(0,n.jsx)(x,{variant:P,children:c.connectionStatus}),e[16]=c.connectionStatus,e[17]=P,e[18]=o):o=e[18];let d;e[19]!==k||e[20]!==t?(d=k>0?(0,n.jsx)(x,{variant:"secondary",children:t("{count} pending writes",{count:k})}):null,e[19]=k,e[20]=t,e[21]=d):d=e[21];let h;e[22]!==a||e[23]!==o||e[24]!==d?(h=(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[a,o,d]}),e[22]=a,e[23]=o,e[24]=d,e[25]=h):h=e[25];let u;e[26]!==t?(u=t("Reads client.debug() for the client running in this page \u2014 not your application's client. Call client.debug() in your app to diagnose a specific stuck overlay there."),e[26]=t,e[27]=u):u=e[27];let m;e[28]!==u?(m=(0,n.jsx)("p",{className:"text-muted-foreground text-xs",children:u}),e[28]=u,e[29]=m):m=e[29];let p;e[30]!==N||e[31]!==t?(p=N.length===0?(0,n.jsx)(_,{description:t("No shard connection has been opened yet."),title:t("No shards")}):(0,n.jsxs)(B,{children:[(0,n.jsx)(E,{children:(0,n.jsxs)(S,{children:[(0,n.jsx)(i,{children:t("Shard")}),(0,n.jsx)(i,{children:t("Socket")}),(0,n.jsx)(i,{children:t("Confirmed watermark")})]})}),(0,n.jsx)(L,{children:N.map(r=>(0,n.jsxs)(S,{children:[(0,n.jsx)(s,{children:r.shardKey??t("(default)")}),(0,n.jsx)(s,{children:(0,n.jsx)(x,{variant:G.has(r.wsState)?"default":"secondary",children:r.wsState})}),(0,n.jsx)(s,{children:r.confirmedMutationWatermark})]},r.shardKey??"__default__"))})]}),e[30]=N,e[31]=t,e[32]=p):p=e[32];let f;e[33]!==w||e[34]!==t?(f=w.length===0?(0,n.jsx)(_,{description:t("This client holds no live queries or shapes."),title:t("No subscriptions")}):(0,n.jsxs)(B,{children:[(0,n.jsx)(E,{children:(0,n.jsxs)(S,{children:[(0,n.jsx)(i,{children:t("Subscription")}),(0,n.jsx)(i,{children:t("Kind")}),(0,n.jsx)(i,{children:t("Acked")}),(0,n.jsx)(i,{children:t("Cursor")}),(0,n.jsx)(i,{children:t("Pending overlays")})]})}),(0,n.jsx)(L,{children:w.map(r=>(0,n.jsxs)(S,{children:[(0,n.jsx)(s,{className:"font-mono text-xs",children:r.functionPath}),(0,n.jsx)(s,{children:r.kind}),(0,n.jsx)(s,{children:(0,n.jsx)(x,{variant:r.acked?"default":"secondary",children:r.acked?t("yes"):t("no")})}),(0,n.jsx)(s,{children:r.serverCursor??"\u2014"}),(0,n.jsx)(s,{children:r.pendingOptimisticLayers})]},r.id))})]}),e[33]=w,e[34]=t,e[35]=f):f=e[35];let C;return e[36]!==m||e[37]!==p||e[38]!==f||e[39]!==h?(C=(0,n.jsx)(A,{children:(0,n.jsxs)(q,{className:"flex flex-col gap-4",children:[h,m,p,f]})}),e[36]=m,e[37]=p,e[38]=f,e[39]=h,e[40]=C):C=e[40],C},"ie");export{ie as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as T}from"./chunk-JQBZDS6X.js";import{a as k,b as I,c as $,d as l,e as c,f as a}from"./chunk-4TGALJHR.js";import{b}from"./chunk-MNXXIISC.js";import{a as N,e as w}from"./chunk-ZZ6ZCOD4.js";import{B as v,x as y}from"./chunk-VJQP4ARP.js";import{a as C,b as S}from"./chunk-ADABTCDI.js";import{a as i,d as x}from"./chunk-5PEAXTYQ.js";var A=x(C(),1);var e=x(S(),1);var O={ERROR:"error",INFO:"info",WARN:"warning"},M=i(t=>{let s=typeof t.metadata.table=="string"?t.metadata.table:void 0;return{description:`${t.detail} ${t.remediation}`,entity:s,issueType:t.title,key:t.cacheKey,level:O[t.level]}},"J"),W=["error","warning","info"],j={error:"bg-destructive",info:"bg-info",warning:"bg-warning"},D=i((t,s)=>({error:t("Errors"),info:t("Info"),warning:t("Warnings")})[s],"O"),H=i((t,s,o)=>({error:t("{count} errors",{count:o}),info:t("{count} suggestions",{count:o}),warning:t("{count} warnings",{count:o})})[s],"S"),L=i((t,s)=>({error:t("No errors detected"),info:t("No suggestions"),warning:t("No warnings detected")})[s],"D"),z=i(t=>{let s={error:0,info:0,warning:0};for(let o of t??[])s[o.level]+=1;return s},"H"),P=i(({error:t=null,errorSource:s,rows:o,shardKey:p,testId:d,toolbar:f})=>{let n=v(),m=b(),g=m!==void 0&&!m.unavailable,[u,E]=(0,A.useState)("error"),K=z(o),h=(o??[]).filter(r=>r.level===u),R=i(r=>{E(r.currentTarget.dataset.level)},"y");return(0,e.jsxs)("div",{className:"flex flex-col gap-3","data-testid":d,children:[(0,e.jsx)("div",{className:"flex border-b border-border",role:"tablist",children:W.map(r=>(0,e.jsxs)("button",{"aria-selected":u===r,className:"flex min-w-32 flex-col gap-0.5 border-b-2 border-transparent px-4 py-2 text-start outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 aria-selected:border-foreground","data-level":r,"data-testid":`${d}-tab-${r}`,onClick:R,role:"tab",type:"button",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-sm font-medium text-foreground",children:[(0,e.jsx)("span",{"aria-hidden":"true",className:y("size-2 rounded-sm",j[r])}),D(n,r)]}),(0,e.jsx)("span",{className:"ps-4 text-xs text-muted-foreground",children:H(n,r,K[r])})]},r))}),f!==void 0&&(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:f}),t!==null&&(0,e.jsx)(T,{error:s??t,shardKey:p,testId:`${d}-error`}),(0,e.jsx)(N,{className:"overflow-hidden py-0",children:(0,e.jsx)(w,{className:"px-0",children:(0,e.jsxs)(k,{children:[(0,e.jsx)(I,{children:(0,e.jsxs)(l,{children:[(0,e.jsx)(c,{children:n("Issue type")}),(0,e.jsx)(c,{children:n("Entity/item")}),(0,e.jsx)(c,{children:n("Description")})]})}),(0,e.jsx)($,{children:h.length===0?(0,e.jsx)(l,{children:(0,e.jsxs)(a,{className:"h-40 text-center align-middle text-muted-foreground",colSpan:3,"data-testid":`${d}-empty`,children:[(0,e.jsx)("span",{className:"block text-sm font-medium text-foreground",children:L(n,u)}),(0,e.jsx)("span",{className:"block text-sm",children:n("Nothing to report for this deployment.")})]})}):h.map(r=>(0,e.jsxs)(l,{children:[(0,e.jsx)(a,{className:"font-medium text-foreground",children:r.issueType}),(0,e.jsx)(a,{className:"font-mono text-xs text-muted-foreground",children:r.entity??"\u2014"}),(0,e.jsxs)(a,{className:"text-muted-foreground",children:[(0,e.jsx)("span",{children:r.description}),(r.action!==void 0||g)&&(0,e.jsxs)("span",{className:"mt-1.5 flex flex-wrap items-center gap-1.5",children:[r.action,g&&(0,e.jsx)("button",{className:"text-xs underline outline-none focus-visible:ring-1 focus-visible:ring-ring","data-testid":"advisor-ask-assistant",onClick:i(()=>{m.openAssistant({ask:n(`The Lunora advisor reported: {finding}.
|
|
2
|
+
|
|
3
|
+
{description}
|
|
4
|
+
|
|
5
|
+
What does this mean for my app, and how should I fix it?`,{description:r.description,finding:r.entity===void 0?r.issueType:n("{issueType} on {entity}",{entity:r.entity,issueType:r.issueType})}),shardKey:p,suggestions:[n("How do I verify this is fixed?")],title:r.issueType})},"onClick"),type:"button",children:n("Ask the assistant")})]})]})]},r.key))})]})})})]})},"K");export{M as a,P as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as O,c as D}from"./chunk-MHZNDDGI.js";import{a as F}from"./chunk-QCG2G6IF.js";import{a as j}from"./chunk-2KTN53PK.js";import{a as V}from"./chunk-RAJ327CY.js";import"./chunk-EDL46BPM.js";import"./chunk-4KPATTV6.js";import{i as K}from"./chunk-V4JKKAAZ.js";import"./chunk-4SY2N2RS.js";import"./chunk-4AG356VE.js";import"./chunk-OZID3UYF.js";import{a as T}from"./chunk-NQ727GVM.js";import{b as k}from"./chunk-F2DVDJV6.js";import"./chunk-L27FKJTG.js";import{a as z}from"./chunk-JQBZDS6X.js";import"./chunk-4YEGXH2V.js";import{a as A,b as q,c as B,d as p,e as d,f as l}from"./chunk-4TGALJHR.js";import"./chunk-FPODRWDZ.js";import"./chunk-MNXXIISC.js";import"./chunk-EOFWXI3T.js";import{a as I}from"./chunk-LYVYUTQY.js";import{c as L}from"./chunk-YL5ZAR3P.js";import{a as M,e as R}from"./chunk-ZZ6ZCOD4.js";import"./chunk-KQVY73EU.js";import"./chunk-ZPQBVYNN.js";import{B as E,p as b,w as C}from"./chunk-VJQP4ARP.js";import"./chunk-PDBW6GTJ.js";import"./chunk-A6TVTNKO.js";import{a as ee,b as te}from"./chunk-ADABTCDI.js";import{a as i,d as y}from"./chunk-5PEAXTYQ.js";var s=y(ee(),1);var e=y(te(),1);var re=i(o=>o===void 0?"":JSON.stringify(o,b),"te"),ae=41,J=480,H=5,ie=i((o,t)=>O(o,n=>{t(n.height>0?n:{height:J,width:n.width})}),"ae"),Ne=i(({initialShardKey:o})=>{let t=E(),{queryShardKey:n,setShardKey:P,shardKey:U}=j(o),[m,W]=(0,s.useState)(""),{data:f,error:g,errorSource:Z,isLoading:_,liveError:G}=L(I.getAuditLog,{},{live:!0,shardKey:n}),c=(0,s.useMemo)(()=>f?.entries??[],[f]),h=(0,s.useMemo)(()=>{let a=m.trim().toLowerCase();return a===""?c:c.filter(r=>r.op.toLowerCase().includes(a)||(r.table??"").toLowerCase().includes(a)||(r.id??"").toLowerCase().includes(a))},[c,m]),x=(0,s.useRef)(null),v=D({count:h.length,estimateSize:i(()=>ae,"estimateSize"),getScrollElement:i(()=>x.current,"getScrollElement"),initialRect:{height:J,width:800},observeElementRect:ie,overscan:8}),u=v.getVirtualItems(),Q=v.getTotalSize(),N=u[0]?.start??0,w=Q-(u.at(-1)?.end??0),X={height:N},Y={height:w},$=i(a=>{W(a.target.value)},"k");return(0,e.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lunora-audit",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)(V,{onChange:P,testId:"au-shard-input",value:U}),(0,e.jsx)(F,{message:G,prefix:"au"}),(0,e.jsx)(K,{"aria-label":t("Filter audit log"),className:"h-8 w-48","data-testid":"au-search",onChange:$,placeholder:t("filter op, table, id"),value:m})]}),g!==null&&(0,e.jsx)(z,{error:Z,shardKey:n,testId:"au-error"}),g===null&&!_&&h.length===0&&(0,e.jsx)(T,{description:t("State-changing admin operations are recorded here."),icon:(0,e.jsx)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,e.jsx)("path",{d:"M8 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2h-2M9 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V3Zm-1 9h8m-8 4h5"})}),testId:"au-empty",title:t("No audit entries.")}),h.length>0&&(0,e.jsx)(M,{className:"overflow-hidden py-0",children:(0,e.jsx)(R,{className:"max-h-[30rem] overflow-auto px-0",ref:x,children:(0,e.jsxs)(A,{"data-testid":"au-table",children:[(0,e.jsx)(q,{children:(0,e.jsxs)(p,{children:[(0,e.jsx)(d,{children:t("time")}),(0,e.jsx)(d,{children:t("op")}),(0,e.jsx)(d,{children:t("table")}),(0,e.jsx)(d,{children:t("id")}),(0,e.jsx)(d,{children:t("detail")})]})}),(0,e.jsxs)(B,{children:[N>0&&(0,e.jsx)("tr",{"aria-hidden":"true",children:(0,e.jsx)("td",{colSpan:H,style:X})}),u.map(a=>{let r=h[a.index],S=re(r.detail);return(0,e.jsxs)(p,{"data-testid":"au-row",children:[(0,e.jsx)(l,{className:"text-muted-foreground tabular-nums",children:C(r.ts,"\u2014")}),(0,e.jsx)(l,{children:(0,e.jsx)(k,{variant:"secondary",children:r.op})}),(0,e.jsx)(l,{className:"font-medium",children:r.table??(0,e.jsx)("span",{className:"text-muted-foreground",children:"\u2014"})}),(0,e.jsx)(l,{className:"max-w-[20ch] truncate font-mono text-xs",children:r.id??(0,e.jsx)("span",{className:"text-muted-foreground",children:"\u2014"})}),(0,e.jsx)(l,{className:"max-w-[32ch] truncate font-mono text-xs text-muted-foreground",title:S||void 0,children:S||(0,e.jsx)("span",{className:"text-muted-foreground",children:"\u2014"})})]},r.seq)}),w>0&&(0,e.jsx)("tr",{"aria-hidden":"true",children:(0,e.jsx)("td",{colSpan:H,style:Y})})]})]})})})]})},"we");export{Ne as AuditPanel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as I,f as B,u as U,v as M}from"./chunk-OZID3UYF.js";import{b as O,c as E,d as S}from"./chunk-L27FKJTG.js";import{a as w}from"./chunk-ADABTCDI.js";import{a as s,d as k}from"./chunk-5PEAXTYQ.js";var f=k(w(),1);var g=k(w(),1);var z=g.createContext(void 0);function W(o=!1){let t=g.useContext(z);if(t===void 0&&!o)throw new Error(S(16));return t}s(W,"useCompositeRootContext");var H=k(w(),1);function A(o){let{focusableWhenDisabled:t,disabled:r,composite:l=!1,tabIndex:n=0,isNativeButton:u}=o,d=l&&t!==!1,b=l&&t===!1;return{props:H.useMemo(()=>{let a={onKeyDown(p){r&&t&&p.key!=="Tab"&&p.preventDefault()}};return l||(a.tabIndex=n,!u&&r&&(a.tabIndex=t?n:-1)),(u&&(t||d)||!u&&r)&&(a["aria-disabled"]=r),u&&(!t||b)&&(a.disabled=r),a},[l,r,t,d,b,u,n])}}s(A,"useFocusableWhenDisabled");function h(o,t,{detail:r=0}={}){o.dispatchEvent(new(I(o)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}s(h,"dispatchClickWithModifiers");function le(o={}){let{disabled:t=!1,focusableWhenDisabled:r,tabIndex:l=0,native:n=!0,composite:u}=o,d=f.useRef(null),b=W(!0),i=u??b!==void 0,{props:a}=A({focusableWhenDisabled:r,disabled:t,composite:i,tabIndex:l,isNativeButton:n}),p=f.useCallback(()=>{let c=d.current;K(c)&&i&&t&&a.disabled===void 0&&c.disabled&&(c.disabled=!1)},[t,a.disabled,i]);M(p,[p]);let F=f.useCallback((c={})=>{let{onClick:x,onMouseDown:C,onKeyUp:V,onKeyDown:_,onPointerDown:$,...v}=c;return O({onClick(e){if(t){e.preventDefault();return}x?.(e)},onMouseDown(e){t||C?.(e)},onKeyDown(e){if(t||(E(e),_?.(e),e.baseUIHandlerPrevented))return;let R=e.target===e.currentTarget,m=e.currentTarget,P=K(m),N=!n&&G(m),j=R&&(n?P:!N),T=e.key==="Enter",y=e.key===" ",D=m.getAttribute("role"),q=D?.startsWith("menuitem")||D==="option"||D==="gridcell";if(R&&i&&y){if(e.defaultPrevented&&q)return;e.preventDefault(),(!n||P)&&(e.preventBaseUIHandler(),h(m,e));return}if(!j||n||!y&&!T){R&&N&&y&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),T&&(e.preventBaseUIHandler(),h(m,e)))},onKeyUp(e){if(!t){if(E(e),V?.(e),e.target===e.currentTarget&&n&&i&&K(e.currentTarget)&&e.key===" "){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!n&&!i&&!e.defaultPrevented&&e.key===" "&&(e.preventBaseUIHandler(),h(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}$?.(e)}},n?{type:"button"}:{role:"button"},a,v)},[t,a,i,n]),L=U(c=>{d.current=c,p()});return{getButtonProps:F,buttonRef:L}}s(le,"useButton");function K(o){return B(o)&&o.tagName==="BUTTON"}s(K,"isButtonElement");function G(o){return B(o)&&o.tagName==="A"&&!!o.href}s(G,"isValidLinkElement");export{W as a,h as b,le as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as S,b as m}from"./chunk-ADABTCDI.js";import{a as n,d as E}from"./chunk-5PEAXTYQ.js";function u(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}n(u,"clamp");var p=1;function x(t,e){return Math.max(0,t-e)}n(x,"getMaxScrollOffset");function A(t,e){if(e<=0)return 0;let r=u(t,0,e),l=r,c=e-r,a=l<=p,i=c<=p;return a&&i?l<=c?0:e:a?0:i?e:r}n(A,"normalizeScrollOffset");var f=E(m(),1),o="base-ui-disable-scrollbar",R={className:o,getElement(t){return(0,f.jsx)("style",{nonce:t,href:o,precedence:"base-ui:low",children:`.${o}{scrollbar-width:none}.${o}::-webkit-scrollbar{display:none}`})}};var s=E(S(),1);var b=s.createContext(void 0),C={disableStyleElements:!1};function y(){return s.useContext(b)??C}n(y,"useCSPContext");export{u as a,p as b,x as c,A as d,R as e,y as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-5PEAXTYQ.js";var d=[{headings:["Vocabulary","The mental model","The components","Request lifecycle","The data tiers","Compute tiers","The consistency model","The real-time engine"],id:"architecture",summary:"The full picture \u2014 topology, request lifecycle, the data tiers, the consistency model, and the design decisions behind them.",title:"Architecture"},{headings:["Choose Lunora when","Choose something else when","Against each alternative","Check these before you commit"],id:"choosing-lunora",summary:"A decision guide for choosing Lunora over Convex, Supabase, Firebase, Appwrite, or raw Cloudflare, including the cases where Lunora is the\u2026",title:"Is Lunora the right backend?"},{headings:["How telemetry reaches the cloud","Traces","Issues","Logs","Metrics","Scoped ingest keys","Bring your own OpenTelemetry","Retention and redaction"],id:"cloud/monitoring",summary:"The Lunora cloud is a managed OpenTelemetry backend + control plane \u2014 deploy to it and your traces, logs, metrics, and AI generations flow\u2026",title:"Monitoring"},{headings:["When to use an action vs a mutation","ActionCtx","Calling queries and mutations from an action","Scheduling follow-up work"],id:"concepts/actions",summary:"Non-deterministic functions for external APIs and side effects \u2014 the action builder and its ActionCtx.",title:"Actions"},{headings:["Keep your session authority","Declare ownership once","Call Lunora from your own Worker","Dev proxy: two silent failures","Run both engines during the migration","Test it without a worker","When something is stuck"],id:"concepts/adopt-in-an-existing-app",summary:"Add Lunora to a working product that already has its own auth, Worker, and data layer \u2014 without rewriting either.",title:"Adopt in an existing app"},{headings:["Static lints","Runtime lints","Running advisors"],id:"concepts/advisors",summary:"Splinter-style lints that catch schema, performance, and security problems \u2014 many before you deploy.",title:"Advisors"},{headings:["Agent skills","Agent mode","The docs server","The local server","The MCP server","Keeping generated types honest"],id:"concepts/ai-tooling",summary:"Teach Claude Code, Cursor, and Copilot how to use Lunora \u2014 agent skills, agent-aware dev mode, the docs server, and the MCP server.",title:"AI coding agents"},{headings:["What lands in your project","Wire it up","The cards","Enabling the optional flows","Password rules","Username availability","Being an OAuth provider","Avatar and logo uploads"],id:"concepts/auth-ui",summary:"Copy-in sign-in, settings, and organization screens for React, Vue, Svelte, Solid, and Angular \u2014 the code lands in your project and you\u2026",title:"Auth UI"},{headings:["ctx.auth inside functions","@lunora/auth on the server","Routing /api/auth/*","The client side","Feeding row-level security","See also"],id:"concepts/authentication",summary:"How ctx.auth threads the signed-in user through queries, mutations, and actions \u2014 and feeds row-level security.",title:"Authentication"},{headings:["Point-in-time recovery","Snapshot backups","Export and import","Streaming data out continuously","Practising a restore"],id:"concepts/backups",summary:"Snapshot a deployment, recover a shard to any moment in the last 30 days, and move data in and out as NDJSON.",title:"Backups, export & import"},{headings:["Schema first","Reads","Writes","Inputs and safety","Scaling","Lean on Advisors"],id:"concepts/best-practices",summary:"The opinionated idioms that keep a Lunora app fast, safe, and reactive.",title:"Best practices"},{headings:["Enabling Workers Cache","Declarative cache headers on httpRoute","Programmatic cache purging","Why only HTTP actions?","Memoizing an expensive action result","Scaffolding cache-aware routes","Best practices"],id:"concepts/caching",summary:"Edge caching with Cloudflare Workers Cache \u2014 declarative headers on HTTP routes and programmatic cache purging from actions.",title:"Caching"},{headings:["The short version","Rows or events?","Live topics, whispers and rooms","Streams","Write a row, then tell the page","Things to know before you rely on a live topic"],id:"concepts/choosing-a-data-channel",summary:"Live query, stream, live topic, whisper, room or socket? Which one to use for which job.",title:"Choosing a data channel"},{headings:["Declaring it","What _commitSeq guarantees","Refreshed on every write","Three things it is not","When to reach for it"],id:"concepts/commit-ordering",summary:"Declare .commitOrdered() so every row carries _commitSeq \u2014 a per-shard sequence that orders commits, and the cursor a changefeed can page\u2026",title:"Commit ordering"},{headings:["Defining one","Installing one","What the namespace guarantees","What a component does NOT get","In the architecture view","Migrations","See also"],id:"concepts/components",summary:"Package backend features \u2014 tables, functions, and context \u2014 as an installable unit that cannot collide with the app that installs it.",title:"Components"},{headings:["Constraint kinds","Unique","Non-null","Foreign-key integrity","Error codes"],id:"concepts/constraints",summary:"Unique, non-null and foreign-key integrity declared on the schema and enforced at write time.",title:"Constraints"},{headings:["What it pins","Pinning auth and voice","Pinning mail","Set it once: changing it strands data","Runbook: moving an app to a new jurisdiction"],id:"concepts/data-residency",summary:"Pin Durable Objects to a Cloudflare jurisdiction with .jurisdiction(), and the export\u2192import runbook for moving regions.",title:"Data residency"},{headings:["The type table","Numbers, bigints, and dates","Optional versus null","Values that JSON cannot carry","Size limits","Types outside the schema"],id:"concepts/data-types",summary:"The value types a Lunora document can hold, how each is stored, and which ones need the wire codec to survive JSON.",title:"Data types"},{headings:["Start with lunora doctor","Catch it before it runs","The error overlay","Structured logging with ctx.log","The Studio","Find the slow or failing function","Watch production","Debugging authentication"],id:"concepts/debugging",summary:"The tools to reach for when something is broken \u2014 doctor, the error overlay, ctx.log, the Studio, insights, and live logs.",title:"Debugging"},{headings:["How ids are minted","Typing a reference with v.id","Reading and following ids","Validating an id that came from outside","Ids in exports and imports"],id:"concepts/document-ids",summary:"Every row carries an _id and a _creationTime \u2014 how they are minted, how v.id types a reference, and what an id does and does not guarantee.",title:"Document IDs"},{headings:["Locally: .dev.vars","In production: secrets and vars","Accessing env inside your app","The rule: never commit secrets"],id:"concepts/environment-variables",summary:"Configure secrets and vars \u2014 .dev.vars locally, wrangler secrets in production, env bindings inside functions.",title:"Environment variables"},{headings:["Multiple environments","Linking a checkout to a deployment","Preview deployments","Moving traffic between versions","Build once, deploy many","Custom domains","Trying a deploy without an account","Who changed what"],id:"concepts/environments",summary:"Running staging next to production, deploying an isolated environment, checking pull requests with a dry run, an isolated preview per pull\u2026",title:"Environments & releases"},{headings:["Throwing from a handler","Expected vs. unexpected","Reading error state on the client","Optimistic updates roll back on rejection","See also"],id:"concepts/error-handling",summary:"Throwing inside handlers, how errors travel to the client, and reading error state without losing optimistic safety.",title:"Error handling"},{headings:["What reaches your tracker","Wire it once, to both halves","Sentry","PostHog","Datadog, Axiom, Better Stack, and the rest","Source maps","Privacy"],id:"concepts/error-tracking",summary:"Send Lunora's failed calls and error logs to Sentry, PostHog, Datadog, or any error tracker, with the thrown error's real stack and\u2026",title:"Error tracking"},{headings:["External provider or @lunora/auth","The resolver","Client: hand over the token, refresh it","WebSockets and live queries","RLS with org claims","Memoization and revocation","Composing with @lunora/auth or Cloudflare Access","Walkthrough: Clerk"],id:"concepts/external-auth",summary:"Use Clerk, WorkOS AuthKit, Auth0, Supabase or any OIDC JWT issuer as your identity provider \u2014 verify its token at the Worker and feed\u2026",title:"External auth"},{headings:["Which contexts expose what","Uploading","Serving files","Named buckets","Deleting","See also"],id:"concepts/file-storage",summary:"Typed R2 buckets exposed as ctx.storage \u2014 uploading, serving via signed URLs, and deleting files from your functions.",title:"File storage"},{headings:["Where the work happens","Choosing between them","When a bare filter is fine","How the advisors catch this","Composing","Inside an object column"],id:"concepts/filtering",summary:".filter() is a JavaScript predicate applied after rows are loaded \u2014 when to use it, and when to reach for an index instead.",title:"Filtering"},{headings:["The three context types","Surfaces on every ctx","ctx field matrix","Add-on surfaces (codegen-wired)"],id:"concepts/function-context",summary:"The ctx object passed to every query, mutation, and action \u2014 and what each kind is allowed to do with it.",title:"Function context"},{headings:["api.ts and internal.ts: function references","server.ts: typed helpers","dataModel.ts: Id and Doc","Importing the generated code","lunora/* vs @lunora/* imports","Linting and formatting","Regenerating"],id:"concepts/generated-code",summary:"What @lunora/codegen emits from your schema.ts, and how api / Id / Doc keep server and client in sync.",title:"Generated code"},{headings:["Declaring a point column and a geo index",'"Places near me": near(point, radiusMeters)',"Bounding box: within(box)","Single-shard scope","How the Advisors catch geo mistakes"],id:"concepts/geospatial",summary:'Store lat/lng points with v.geoPoint, index them with .geoIndex, and answer "places near me" and bounding-box reads with withGeoIndex.',title:"Geospatial"},{headings:["httpAction","HttpActionCtx","Typed routes with httpRoute","How routes mount in the worker"],id:"concepts/http-endpoints",summary:"Public HTTP routes with httpAction and the Hono-based httpRouter.",title:"HTTP endpoints"},{headings:["Declaring an index","Querying with withIndex","Why every filtered read should hit an index","How the Advisors catch unindexed reads","Checking a read with explain","Aggregate indexes"],id:"concepts/indexes",summary:"Declare B-tree indexes on tables and query them with withIndex \u2014 every filtered read should hit one.",title:"Indexes"},{headings:["Calling internal functions","Internal functions and scheduling"],id:"concepts/internal-functions",summary:"internalQuery / internalMutation / internalAction \u2014 server-only functions never exposed to the client.",title:"Internal functions"},{headings:["Declare the stream","Publish","Follow a topic in the browser","Authorization","Where delivery stops","Platform support","React Native"],id:"concepts/live-streams",summary:"Publish events to named topics from the server and follow many of them over one SSE connection.",title:"Live topic streams"},{headings:["Turn CDC on first","Why the DO topology fits","Shapes \u2014 partial replication","The poke diff protocol","Custom mutators \u2014 optimistic, server-authoritative","The client store","Cross-shard joins \u2014 the one limit"],id:"concepts/local-first",summary:"Shapes, the poke diff protocol, and custom mutators \u2014 the Zero-class sync engine.",title:"Local-first sync"},{headings:["Strategies","Roles and bypass","What's masked, what isn't","Sensitive arguments","Tooling","See also"],id:"concepts/masking",summary:"Column-level redaction on the read path \u2014 the companion to row-level security.",title:"Data masking"},{headings:["The lifetime","Rebuilding: onShardInit","What .memory() buys, and what it does not","Restrictions","Choosing between .memory() and .ttl()"],id:"concepts/memory-tables",summary:"Declare .memory() for state the shard rebuilds rather than remembers \u2014 presence, cursors, live counters \u2014 and onShardInit to bring it back\u2026",title:"Memory tables"},{headings:["Attaching middleware","Augmenting ctx","Composing concerns"],id:"concepts/middleware",summary:"Compose cross-cutting concerns \u2014 auth checks, rate limiting, logging \u2014 and augment ctx for downstream handlers.",title:"Middleware"},{headings:["The deploy gate tells you when you need one","Schema migrations (global tables)","Data migrations (sharded tables)","Inspecting run-state in the Studio","One-off data edits without a deploy","Resetting local state"],id:"concepts/migrations",summary:"Schema-change SQL for global tables and online, resumable data migrations.",title:"Migrations"},{headings:["Queues and topics","What you get","Table ownership","Installed components"],id:"concepts/modules",summary:"Group lunora/ folders into modules and get a module catalog and an architecture diagram from codegen.",title:"Modules"},{headings:["Running as one node in a dev graph","Deploying from external IaC","Consuming the generated API from a sibling package","Calling the backend from a sibling Worker"],id:"concepts/monorepos-and-iac",summary:"Running the Lunora worker as one node in a larger dev graph, deploying it from Terraform/Pulumi/Alchemy, and consuming its generated API\u2026",title:"Monorepos and external IaC"},{headings:["The output is pinned to your CLI version","Wiring it into your project","What you get, and what you don't","Conformance"],id:"concepts/non-js-sdks",summary:"Generate a typed, self-contained Lunora client for Python, Go, Ruby, Rust, Swift, Java, Kotlin or Dart/Flutter \u2014 vendored into your\u2026",title:"Non-JS SDKs"},{headings:["Configure defineNotify","VAPID / FCM config via .dev.vars","Native devices (Android and iOS)","Register a browser push subscription","Send from an action","Queue-backed fan-out"],id:"concepts/notifications",summary:"Configure defineNotify in lunora/notify.ts for Web Push + FCM, register browser subscriptions, and send via ctx.notify / ctx.push from an\u2026",title:"Push notifications"},{headings:["Sinks","Structured logging with ctx.log","Tracing sub-operations with ctx.trace","Database telemetry (ctx.db and ctx.sql)","Trace sampling","Source maps","Application metrics with ctx.metrics","Container telemetry"],id:"concepts/observability",summary:"Ship Lunora's logs, traces, and metrics to any OTLP collector \u2014 the otlpSink worker option, ctx.log/ctx.trace/ctx.metrics, the zero-config\u2026",title:"Observability"},{headings:["Mutations are serialized, not retried","Where conflicts still happen","Handling a conflict on the client","Diagnosing a persistent conflict","Atomicity across shards",".global() tables"],id:"concepts/occ",summary:"Why mutations in one shard are serialized rather than retried, where optimistic-concurrency conflicts still arise, and what atomicity\u2026",title:"OCC & atomicity"},{headings:["Passing the adapters explicitly","What gets persisted","Surviving a breaking deploy","Multiple tabs","Sync status","Connection status UI","Boot with no network (the app shell)","The reconciliation model"],id:"concepts/offline-first",summary:"Persist reads and writes to disk so the app boots, renders, and accepts edits with no network.",title:"Offline-first"},{headings:["PaginationOptions","PaginationResult","Paging through a query","Ordering rows that hold NULL","Paging a findMany","Load more / infinite lists on the client",'Total count ("42 of 1,203")'],id:"concepts/pagination",summary:"Keyset pagination with .paginate(options) \u2014 page through a query and build an infinite list on the client.",title:"Pagination"},{headings:["ctx.db","ctx.auth","ctx.scheduler"],id:"concepts/queries-mutations",summary:"query / mutation / action \u2014 what each is for and how ctx is shaped.",title:"Queries & mutations"},{headings:["How this differs from a trigger","The convergence contract","What the handler receives","Execution and identity","Reads that should not wake you","Watching them work"],id:"concepts/reactors",summary:"Declare onQueryChange to run server logic when a query's result changes \u2014 the actor pattern, with no client on the other end and nothing\u2026",title:"Reactors (server-side reactivity)"},{headings:["Where a shard is created","Replica reads","Sockets near the client"],id:"concepts/read-replicas",summary:"Serve one-shot queries from a copy of the shard in the caller's region, pin where a shard is created, and terminate sockets near the client.",title:"Read replicas & placement"},{headings:["Hibernation","How an update reaches a subscriber","Reconnect","When WebSockets are blocked","Durable streams","Whispers (ephemeral peer messages)","Why no MQTT / Pub/Sub"],id:"concepts/realtime",summary:"How subscriptions, deltas, and hibernation fit together.",title:"Real-time"},{headings:["Using items","The manifest","Validation","Building the catalog","Distributing"],id:"concepts/registry-items",summary:"Package a reusable capability \u2014 schema, functions, bindings and env vars \u2014 as a registry item others install with one command.",title:"Authoring registry items"},{headings:["A worked example","The edge set","Directions","Depth, limit and score","Cycles and paging","It is an ordinary read","Fusing the graph into retrieval","From an AI agent"],id:"concepts/relation-graph",summary:"Traverse the foreign-key graph your schema already declares with ctx.db.related \u2014 depth-bounded, cycle-safe, scored by proximity, and\u2026",title:"Relation graph"},{headings:["The descriptors","Many-to-many","Index your foreign keys","Querying across a relation","Writing through a relation","Relations vs the relation graph"],id:"concepts/relations",summary:"Modeling many-to-one, one-to-many and many-to-many relationships with the one / many relation descriptors, foreign-key columns, join\u2026",title:"Relations"},{headings:["Default-closed","URLs and methods","Arguments","Choosing a shard","Authentication","Rate limiting","Caching","OpenAPI"],id:"concepts/rest-api",summary:"Publish a query, mutation, or action as a plain REST endpoint with .expose({ rest: true }) \u2014 default-closed, routed through the procedure\u2026",title:"Public REST API"},{headings:["Policies","Permissions and roles","Relation predicates","What's covered, what isn't","Testing policies","See also"],id:"concepts/rls",summary:"Server-side authorization that decides which rows a procedure can read or write.",title:"Row-level security"},{headings:["Node compatibility","Where the constraints bite","Bundling","The worker entry","Build once, deploy many"],id:"concepts/runtime",summary:"Everything runs on the Workers runtime \u2014 what that means for Node APIs, dependencies, and the 64 MiB bundle you have to fit into.",title:"Runtime & bundling"},{headings:["Deferring a function","Recurring jobs (Cron Triggers)","How dispatch works","See also"],id:"concepts/scheduling",summary:"Defer follow-up work with ctx.scheduler.runAfter / runAt, and run recurring jobs via Cron Triggers.",title:"Scheduling"},{headings:["Validators","Tier modifiers","Indexes"],id:"concepts/schema",summary:"Declarative tables, validators, indexes and sharding.",title:"Schema"},{headings:["Declaring a search index","Language","Running a search query","Matching rules","Filter fields","Relevance ordering, .take(n) and pagination","Limits","Backfill and staged"],id:"concepts/search",summary:"Declare a search index on a table and run relevance-ordered full-text queries.",title:"Full-text search"},{headings:["The HTTP edge","Auth, cookies, and secrets","Protecting public procedures","Securing sharded access","Advisor catalog","Config-time validation"],id:"concepts/security",summary:"Lunora's secure-by-default posture \u2014 the protections you get for free, how to opt out, and the advisor lints that catch the gaps.",title:"Security"},{headings:["From an SSR loader","From a script","From the terminal","From Python","From any language, over HTTP","Writing a new SDK"],id:"concepts/server-clients",summary:"Calling a Lunora deployment without a live subscription \u2014 from SSR loaders, scripts, other languages, or plain HTTP.",title:"Server-side & non-reactive clients"},{headings:["Declare a service","Call it from an action","What Lunora wires","Test an action that calls one","Make the service private","Smart Placement","Platforms","Migrating from URLs and HMAC"],id:"concepts/services",summary:"Call sibling Cloudflare Workers from actions over typed service bindings, run them in one dev session, and deploy them before the app.",title:"Services"},{headings:["When to shard","Migrating a populated table","What stays in the root DO","Going global","Cross-shard reads","The shard registry","Securing shard access"],id:"concepts/sharding",summary:"Default __root__ DO, opt-in .shardBy(), and .global() escape hatch.",title:"Sharding"},{headings:["The one caveat that matters","The read surface","_scheduled_functions","_storage"],id:"concepts/system-tables",summary:"Read pending scheduled jobs and stored file metadata through ctx.db.system \u2014 a read-only, eventually consistent view outside the mutation\u2026",title:"System tables"},{headings:["Install","Configure","Write a test","Run in CI"],id:"concepts/testing-ai-features",summary:"Drive a Lunora app's AI flows in a real browser with the e2e runner, and judge non-deterministic model output with natural-language\u2026",title:"Testing AI features end to end"},{headings:["The in-memory harness","Asserting reactive results","Mail-catcher helpers (E2E)","Running in CI"],id:"concepts/testing",summary:"Unit-test queries, mutations, and actions in memory with lunoraTest \u2014 no worker, no network.",title:"Testing"},{headings:["Declaring a TTL","Sweep semantics: coarse, batched, bounded","Not on .global() tables","Interaction with soft delete","How the Advisors catch TTL mistakes"],id:"concepts/ttl",summary:"Declare a table-level .ttl() so a DO alarm sweep auto-deletes expired rows \u2014 sessions, OTPs, and other ephemeral data.",title:"TTL & auto-expiry"},{headings:["Where types come from","Do not restate what is inferred","Reach for Doc and Id","Pin the client contract with .output()","Optional versus null in types","Bringing your own validators","Project configuration","Keeping types honest in CI"],id:"concepts/typescript",summary:"Getting the most out of Lunora's end-to-end types \u2014 where types come from, what to annotate, and what to let inference do.",title:"TypeScript"},{headings:["Job 1: column types in defineTable","Job 2: argument and return validation","Return-type inference to the client","Common validators","Coming from zod","ValidationError"],id:"concepts/validation",summary:"The v.* validators that type your columns and parse query / mutation / action inputs and outputs end to end.",title:"Validation"},{headings:["Declaring an index","Automatic write sync","ctx.vectors","RAG with @lunora/ai","Binding & config wiring"],id:"concepts/vector-search",summary:"Typed Vectorize indexes on ctx.vectors \u2014 automatic write sync, similarity search, and RAG with embeddings.",title:"Vector search"},{headings:["The specification","Conformance fixtures","SDKs built on it"],id:"concepts/wire-protocol",summary:"The language-independent Lunora client\u2194server wire protocol and the golden fixtures every SDK is tested against.",title:"Wire protocol"},{headings:["Idle and small apps: the free plan","Past the free plan: Workers Paid","Which meters grow with your app","Choosing where the cost lands"],id:"cost",summary:"What a self-hosted Lunora app costs on Cloudflare, what the free plan covers, and which meters grow with traffic.",title:"What Lunora costs to run"},{headings:["wrangler.jsonc","lunora.config.ts","Secrets","Containers","Deploy","Durable Object class limit","Worker size","Streaming logs"],id:"deployment",summary:"Wrangler bindings, secrets, and the deploy flow.",title:"Deployment"},{headings:["Redacted codes","Build-time errors","Throwing your own","Error codes"],id:"errors",summary:"Every well-known Lunora error code \u2014 its HTTP status, what it means, and what to do about it.",title:"Errors & warnings reference"},{headings:["Branching on one","The same number, in the document","Where the numbers come from","From your own code"],id:"exit-codes",summary:"The exit code every lunora command terminates with \u2014 what each number means, and how it is derived from the error catalog.",title:"CLI exit codes"},{headings:["Is Lunora open source?","Can I run Lunora on my own Cloudflare account?","Is Lunora production-ready?","Does Lunora run on Cloudflare's free plan?","Can one app scale past a single Durable Object?","How do I move an existing app to Lunora?"],id:"faq",summary:"Short answers to the questions people ask before adopting Lunora, with links to the pages that go deeper.",title:"FAQ"},{headings:["Install","Provide the client","Live queries","Mutations","Connection status","Reactive loaders"],id:"frameworks/angular",summary:"Use Lunora with Angular \u2014 provideLunora in your app config, signal-based liveQuery, imperative mutate, and a connectionStatus signal.",title:"Angular"},{headings:["Install","Exports","The integration","Single-worker composition with withLunora","Reactive-loader server helpers","Deploy"],id:"frameworks/astro",summary:"Compose Astro's @astrojs/cloudflare worker with Lunora realtime, plus reactive-loader server helpers for .astro frontmatter.",title:"Astro"},{headings:["One worker, two dispatch flows","Mount Lunora inside your framework","The per-framework matrix","Client adapters","Scaffolding","Vite composition"],id:"frameworks/bring-your-framework",summary:"Compose any meta-framework's SSR with Lunora realtime in one Cloudflare Worker.",title:"Bring your framework"},{headings:["One worker, two dispatch flows","Class A: Lunora owns the worker entry","Class B: the framework owns the CF adapter","Class C: SPA / SSR-less","Wrangler reconciliation"],id:"frameworks/deploy",summary:"One worker, one deploy \u2014 how a composed Lunora + meta-framework app ships to Cloudflare.",title:"Deploy your framework"},{headings:["Why two workers","Wiring them together","Client and server entry points","Loading data in a Server Component","Providing the client","Developing","Deploying"],id:"frameworks/nextjs",summary:"Run Lunora alongside Next.js on Cloudflare with the two-worker split \u2014 RSC loaders that hydrate into live subscriptions.",title:"Next.js"},{headings:["Install","Setup","How it works","Provide the client","Reactive loaders","Feature flags","Verify before deploy","Alternative: two-worker split"],id:"frameworks/nuxt",summary:"Run Lunora and Nuxt as one Cloudflare Worker \u2014 the @lunora/nuxt module mounts /_lunora/** into Nitro, plus reactive-loader server helpers.",title:"Nuxt"},{headings:["Scaffold a new app","Install","Create the client","Provide it","Live queries and mutations","HTTP streams","Local-first (shapes, custom mutators, TanStack DB)","Authentication (better-auth + Expo)"],id:"frameworks/react-native",summary:"Use Lunora in a React Native / Expo app \u2014 the same live hooks, plus an AsyncStorage-backed client and a better-auth Expo bridge.",title:"React Native / Expo"},{headings:["Install","Provide the client","Live queries","Mutations","Auth","Reactive loaders","One worker, one deploy"],id:"frameworks/react",summary:"Use Lunora with React \u2014 a provider, live useQuery/useMutation hooks, and the SSR-seed \u2192 live reactive-loader handoff.",title:"React"},{headings:["The problem with static loaders","The handoff","Why there's no flash","Identity continuity (SSR \u2192 client)","Sharding carries through","Status"],id:"frameworks/reactive-loaders",summary:"Your loaders are live \u2014 SSR data that hydrates into a real-time subscription with no flash.",title:"Reactive loaders"},{headings:["Install","Solid 1.x and Solid 2.0","Provide the client","Live queries","Mutations","Reactive loaders"],id:"frameworks/solid",summary:"Use Lunora with SolidJS \u2014 a provider, live createQuery/createMutation primitives, and the SSR-seed \u2192 live reactive-loader handoff.",title:"Solid"},{headings:["Install","Provide the client","Live queries","Mutations","Reactive loaders","One worker, one deploy"],id:"frameworks/svelte",summary:"Use Lunora with Svelte 5 / SvelteKit \u2014 context-provided client, live query/mutation stores, and the SSR-seed \u2192 live reactive-loader handoff.",title:"Svelte"},{headings:["What you're proving","1. Scaffold","2. Dev","3. Prove SSR preload (curl the raw HTML)","4. Prove the live subscription attaches","5. Prove live update (two tabs)","Identity check (optional, with auth)",'What "pass" looks like'],id:"frameworks/verify-live-loaders",summary:"How to actually prove live loaders work \u2014 scaffold, SSR-curl the preloaded value, two-tab live update.",title:"Manual end-to-end verification"},{headings:["Install","Provide the client","Live queries","Mutations","Reactive loaders","Worker composition"],id:"frameworks/vue",summary:"Use Lunora with Vue 3 \u2014 a client plugin, live useQuery/useMutation composables, and the server-side rendering (SSR) seed to live\u2026",title:"Vue"},{headings:["Requirements"],id:"getting-started",summary:"Scaffold a Lunora app and run the dev loop in under a minute.",title:"Getting started"},{headings:["Durable Objects","Statement limits (Durable Objects **and** D1)","Transaction limits","D1","R2","Workers","Worker startup (error 10021)","Queues"],id:"limits",summary:"Cloudflare ceilings you should keep in your head.",title:"Limits"},{headings:["Two translations, not one","Schema: transposing the relation graph","Procedures: the shape deltas","Writes: .returning() does not survive","Components decompose by hand"],id:"migrating/from-a-convex-toolkit",summary:"The second translation step a Drizzle-style schema DSL and a tRPC-style procedure builder add on top of the raw Convex mapping.",title:"Migrating from a Convex toolkit"},{headings:["Bump strategy","Breaking changes already landed","Recommended (non-breaking) follow-ups","See also"],id:"migrating/from-alpha",summary:"How a 1.0.0-alpha.* app moves to stable \u2014 dependency bumps plus every breaking change already landed on the road to 1.0.",title:"Upgrading from alpha to 1.0"},{headings:["At a glance","Schema","Queries, mutations, actions","React","Auth","Scheduler","File storage","Subscriptions"],id:"migrating/from-convex",summary:"Side-by-side mapping \u2014 schema, queries, mutations, actions, React hooks.",title:"Migrating from Convex"},{headings:["At a glance","Schema","Reads: onSnapshot \u2192 useQuery","Writes: setDoc \u2192 mutation","Cloud Functions \u2192 actions","Auth","File storage","Scheduled work"],id:"migrating/from-firebase",summary:"Side-by-side mapping \u2014 Firestore, Cloud Functions, Auth, Storage, and real-time listeners.",title:"Migrating from Firebase"},{headings:["At a glance","Schema","Reads: supabase.from(...).select() \u2192 useQuery","Writes: .insert() \u2192 mutation","Row-level security","Edge Functions \u2192 actions","Auth","File storage"],id:"migrating/from-supabase",summary:"Side-by-side mapping \u2014 Postgres tables, RLS, Edge Functions, Auth, Storage, and Realtime.",title:"Migrating from Supabase"},{headings:["No arbitrary external SQL or ad-hoc cross-dataset joins","RPC-first, not REST-first","Cross-shard writes are eventual, not atomic","No data warehouse hosting in the framework","No managed control plane as a hard dependency","Also deliberately absent","See also"],id:"non-goals",summary:"The things Lunora deliberately does not do \u2014 each with the reason it's a boundary and the escape hatch when you need past it.",title:"Design boundaries"},{headings:["Why Lunora","Self-host, or use Lunora Cloud","How Lunora compares","Where it's rough","What ships in the alpha","Start building"],id:"overview",summary:"The Convex-style real-time backend that runs on your own Cloudflare account \u2014 typed end to end, live by default, ~$0 at idle.",title:"Overview"},{headings:["Bindings and wrangler config","Secrets","LUNORA_ADMIN_TOKEN and the admin plane","Rate limiting and abuse","Auth and row-level security","Migrations","Observability","Health and readiness endpoint"],id:"production-checklist",summary:"Everything to verify before a Lunora app takes real traffic \u2014 bindings, secrets, admin tokens, rate limits, RLS, migrations, observability.",title:"Production checklist"},{headings:["Pick a starting point","Adding Lunora to an app you already have","What you get either way","Next steps"],id:"quickstarts",summary:"Every starting point Lunora scaffolds \u2014 pick your framework, run one command, and get a live backend wired to it.",title:"Quickstarts"},{headings:["1. See where you stand","2. Create the usage alerts","3. Add the budget alert by hand","4. Check delivery","In CI"],id:"runaway-bill",summary:"Set Cloudflare usage alerts well above normal with `lunora cloudflare alerts`, add the budget alert the API cannot, and check what\u2026",title:"Protect yourself from a runaway bill"},{headings:["Why startup grows with the app","Measure it locally","The fix: load function modules on demand","Keep heavy packages off the startup path"],id:"startup-cpu-limit",summary:'Why a large app fails to deploy with "Script startup exceeded CPU time limit", how to measure it, and how lazy function loading and\u2026',title:"Worker startup CPU limit (error 10021)"},{headings:["1. Scaffold","2. Model the data","3. Generate the migration","4. Write the query","5. Write the mutation","6. Wire the React app","7. Run the dev loop","8. Deploy"],id:"tutorial/realtime-chat",summary:"End-to-end Lunora walkthrough \u2014 schema, query, mutation, subscription, React, sharding.",title:"Build a real-time chat app in 15 minutes"},{headings:["Know when to act","Step 1: shard the messages","Step 2: put identities in a global table","Step 3: keep fan-out off the hot path","Step 4: lock down shard access","Step 5: migrate the data you already have","Checking your work","What you learned"],id:"tutorial/scaling",summary:"Take the chat app from one Durable Object to many \u2014 shard by channel, put identities in a global table, and keep cross-shard reads off the\u2026",title:"Tutorial: scaling the chat app"},{headings:["Release channels","What SemVer means here","Stability tiers",'What "experimental" means',"See also"],id:"versioning",summary:"What SemVer means for Lunora packages \u2014 release channels, stability tiers, and the experimental surface.",title:"Versioning & stability"}],l="https://lunora.sh/docs/",u=4,m=3,g=200,p=4,y=3,f=2,w=1,v=r(t=>t.slice(0,g).toLowerCase().split(/[^a-z0-9.]+/u).filter(a=>a.length>=m),"w"),b=r((t,a)=>{let i=t.id.toLowerCase(),e=t.title.toLowerCase(),s=t.summary.toLowerCase(),c=t.headings.map(n=>n.toLowerCase()),o=0;for(let n of a)i.includes(n)&&(o+=p),e.includes(n)&&(o+=y),c.some(h=>h.includes(n))&&(o+=f),s.includes(n)&&(o+=w);return o},"v"),k=r(t=>{let a=v(typeof t=="string"?t:""),i=a.length===0?[]:d.map(e=>({candidate:e,rank:b(e,a)})).filter(e=>e.rank>0).sort((e,s)=>s.rank-e.rank).slice(0,u).map(e=>({...e.candidate,url:`${l}${e.candidate.id}`}));return{entries:i.length===0?d.map(e=>e.id):i}},"b"),S=r(t=>{let{entries:a}=k(t);return a.every(i=>typeof i=="string")?[`Documentation pages under ${l}: ${a.join(", ")}`]:a.map(i=>{let e=i;return`${e.title} (${e.url}): ${e.summary} Sections: ${e.headings.join(", ")}`})},"k");export{S as knowledgeExcerpts};
|