@vellumai/web 0.12.6 → 0.12.7-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (431) hide show
  1. package/dist/assets/{a2a-invite-BfDyIsBX.js → a2a-invite-CYkZ2bwB.js} +1 -1
  2. package/dist/assets/{about-page-BigOjgfp.js → about-page-CDf8_c83.js} +1 -1
  3. package/dist/assets/{account-page-DbP0iNWg.js → account-page-DYgu7ene.js} +1 -1
  4. package/dist/assets/{account-shell-CkJWoTHP.js → account-shell-Cxi1v479.js} +1 -1
  5. package/dist/assets/{acp-run-detail-panel-DNMcOAkY.js → acp-run-detail-panel--S5Mrgwf.js} +3 -3
  6. package/dist/assets/activation-list-route-fUUXXrqq.js +1 -0
  7. package/dist/assets/{activity-redirect-page-CTGWJZqK.js → activity-redirect-page-Dday27zi.js} +1 -1
  8. package/dist/assets/activity-steps-panel-BnCTZLXH.js +1 -0
  9. package/dist/assets/{add-credits-modal-DRBFth5G.js → add-credits-modal-BPRQXrJL.js} +1 -1
  10. package/dist/assets/add-credits-modal-htqAQMX6.js +1 -0
  11. package/dist/assets/ai-page-BmPw_Cbb.js +1 -0
  12. package/dist/assets/all-chats-page-route-XyYPy--V.js +1 -0
  13. package/dist/assets/android-billing-handoff-CvgyuFs9.js +1 -0
  14. package/dist/assets/{animated-stat-square-B-JargN6.js → animated-stat-square-gKVZj83m.js} +1 -1
  15. package/dist/assets/{api-key-screen-jvDwbC50.js → api-key-screen-B3eNGHTQ.js} +1 -1
  16. package/dist/assets/app-CjOgiHzq.css +1 -0
  17. package/dist/assets/app-KRIEMzuO.js +399 -0
  18. package/dist/assets/{app-info-VAqkCXW3.js → app-info-BS5SWiPy.js} +1 -1
  19. package/dist/assets/archive-redirect-page-B_JVRF8z.js +1 -0
  20. package/dist/assets/assistant-handle-modal-cqAXFvU4.js +1 -0
  21. package/dist/assets/assistant-inbox-page-route-BmMCSNYC.js +8 -0
  22. package/dist/assets/assistant-status-panel-5KKU97Nr.js +1 -0
  23. package/dist/assets/auth-store-CUfwxB8-.js +1 -0
  24. package/dist/assets/{auth-welcome-screen-Bng5AnvV.js → auth-welcome-screen-CK9ayr5r.js} +1 -1
  25. package/dist/assets/avatar-bundled-components-BQa_U1xg.js +1 -0
  26. package/dist/assets/avatar-random-B0PlMwfP.js +2 -0
  27. package/dist/assets/{await-org-header-settled-P4ncwaMI.js → await-org-header-settled-DCrUbt__.js} +1 -1
  28. package/dist/assets/{background-task-detail-panel-BcllAg3N.js → background-task-detail-panel-ByZEhdsg.js} +1 -1
  29. package/dist/assets/billing-page-CYKuyCF5.js +3 -0
  30. package/dist/assets/{billing-redirect-page-DBSdrzJ7.js → billing-redirect-page-t6TNZq6q.js} +1 -1
  31. package/dist/assets/{bookmarks-page-BQyOw7IR.js → bookmarks-page-DkomjdJQ.js} +1 -1
  32. package/dist/assets/{bundle-confirm-page-BE0p_xZi.js → bundle-confirm-page-BRqor1bF.js} +1 -1
  33. package/dist/assets/channel-transcript-panel-BZPmdLEj.js +1 -0
  34. package/dist/assets/{channels-BchiOW8d.js → channels-BMnoL5SH.js} +1 -1
  35. package/dist/assets/{channels--GWixc4A.js → channels-CsbKXJZc.js} +1 -1
  36. package/dist/assets/{channels-BJA5o10X.js → channels-Cz7YAOIH.js} +1 -1
  37. package/dist/assets/channels-page-route-CtttpYll.js +1 -0
  38. package/dist/assets/{channels-BWlMRtuu.js → channels-vNXfvsPT.js} +1 -1
  39. package/dist/assets/chat-BE3uio8d.js +5 -0
  40. package/dist/assets/chat-BgW0N2Gb.js +5 -0
  41. package/dist/assets/{chat-CEpFDraT.js → chat-DSN9cMJf.js} +3 -3
  42. package/dist/assets/chat-bnp2gG3L.js +5 -0
  43. package/dist/assets/chat-info-panel-DQumRkcF.js +1 -0
  44. package/dist/assets/checkout-continuation-DDjhky4Y.js +1 -0
  45. package/dist/assets/{checkout-page-_P1Km-Pk.js → checkout-page-CDYYh4ze.js} +1 -1
  46. package/dist/assets/checkout-return-target-B6Qnd5vl.js +1 -0
  47. package/dist/assets/{command-palette-BMTSC06x.js → command-palette-BUFKVA4Z.js} +1 -1
  48. package/dist/assets/command-palette-CYJg3gK4.js +1 -0
  49. package/dist/assets/{command-palette-window-page-BlD7b2cA.js → command-palette-window-page-C0dY_FbH.js} +1 -1
  50. package/dist/assets/{community-page-dezChmB7.js → community-page-DDVVXFKB.js} +1 -1
  51. package/dist/assets/{companion-accent-C8bpme2H.js → companion-accent-obJ7TDkU.js} +1 -1
  52. package/dist/assets/{companion-dock-zones-page-B4iVErZw.js → companion-dock-zones-page-CUZsYl_W.js} +1 -1
  53. package/dist/assets/{companion-layout-DdDcoKuc.js → companion-layout-Cl8T5Bfs.js} +1 -1
  54. package/dist/assets/{companion-popover-BYFhyUGI.js → companion-popover-Duq3If7x.js} +1 -1
  55. package/dist/assets/{companion-popover-page-CvizjjZk.js → companion-popover-page-8OaaN-qP.js} +1 -1
  56. package/dist/assets/companion-surface-DzxGavvE.js +1 -0
  57. package/dist/assets/companion-surface-page-BI1DVG0L.js +1 -0
  58. package/dist/assets/{companion-tour-entry-2hR1vArn.js → companion-tour-entry-D35urSvp.js} +1 -1
  59. package/dist/assets/{companion-watch-frame-page-LUmlRewI.js → companion-watch-frame-page-chC7gmAI.js} +1 -1
  60. package/dist/assets/connect-page-Cx7ACmXt.js +1 -0
  61. package/dist/assets/{consent-controls-DZEtlgAi.js → consent-controls-B8KluMR-.js} +1 -1
  62. package/dist/assets/contacts-gateway-DJQtU5it.js +1 -0
  63. package/dist/assets/contacts-page-route-g0cBfSRU.js +1 -0
  64. package/dist/assets/{copy-button-ZsDy0Kvk.js → copy-button-Bwu12tAq.js} +1 -1
  65. package/dist/assets/{credential-entry-page-BeKm3_yM.js → credential-entry-page-CrMmjA4m.js} +1 -1
  66. package/dist/assets/credentials-page-DXegpKuT.js +1 -0
  67. package/dist/assets/csv-preview-BUNDraKQ.js +1 -0
  68. package/dist/assets/danger-zone-redirect-page-Dju7UyCP.js +1 -0
  69. package/dist/assets/debug-page-Cu82bP9V.js +4 -0
  70. package/dist/assets/deploy-dialogs-B1_w7Ez-.js +1 -0
  71. package/dist/assets/deploy-dialogs-CKv9kQor.js +1 -0
  72. package/dist/assets/{desktop-preview-content-CoZvaRAg.js → desktop-preview-content-BwMNHlWb.js} +2 -2
  73. package/dist/assets/{desktop-status-ZiDkY3z1.js → desktop-status-CCzewHXe.js} +1 -1
  74. package/dist/assets/{desktop-viewer-zD3tun-C.js → desktop-viewer-DBH1IT5s.js} +2 -2
  75. package/dist/assets/{detail-card-WMdjzPA_.js → detail-card-C53pHjsM.js} +1 -1
  76. package/dist/assets/{detail-panel-stop-button-CPVsXUuy.js → detail-panel-stop-button-t_VDZYtt.js} +1 -1
  77. package/dist/assets/{detail-primitives-CAZf545a.js → detail-primitives-BHVQRcGw.js} +1 -1
  78. package/dist/assets/developer-page-CKcDBScK.js +1 -0
  79. package/dist/assets/devices-redirect-page-BEyGhbmn.js +1 -0
  80. package/dist/assets/{dictation-overlay-page-Cs5bufLA.js → dictation-overlay-page-DpanSK5-.js} +1 -1
  81. package/dist/assets/document-load-B5HpKq-W.js +1 -0
  82. package/dist/assets/document-load-DHdbQvKt.js +1 -0
  83. package/dist/assets/document-viewer-page-4Z_VnjKZ.js +1 -0
  84. package/dist/assets/emails-page-DyrcXFet.js +1 -0
  85. package/dist/assets/esm-5n5jSt3e.js +2 -0
  86. package/dist/assets/esm-B5HvNA2f.js +1 -0
  87. package/dist/assets/esm-BVAuvmyr.js +2 -0
  88. package/dist/assets/esm-CIgMNIdz.js +1 -0
  89. package/dist/assets/{esm-DkYJty3x.js → esm-COgrn4oo.js} +2 -2
  90. package/dist/assets/esm-CvOYazPQ.js +2 -0
  91. package/dist/assets/{esm-C36uAXi_.js → esm-DFoZ6rpj.js} +1 -1
  92. package/dist/assets/{esm-QFyB0c3C.js → esm-DPwp_tyY.js} +1 -1
  93. package/dist/assets/esm-DetZupO7.js +2 -0
  94. package/dist/assets/esm-DpDUzGbk.js +2 -0
  95. package/dist/assets/{file-diff-view-5WOLjbDI.js → file-diff-view-DqA1_0h3.js} +1 -1
  96. package/dist/assets/{file-view-mode-D6Wxo-FH.js → file-view-mode-DPofWJnz.js} +1 -1
  97. package/dist/assets/general-page-B5G4H9NJ.js +2 -0
  98. package/dist/assets/hatching-screen-C5fid3Mi.js +1 -0
  99. package/dist/assets/{hosting-screen-CQosTH53.js → hosting-screen-BTxmBl_3.js} +1 -1
  100. package/dist/assets/identity-page-route-DSyT39Yq.js +7 -0
  101. package/dist/assets/inspect-page-WDA56TDM.js +8 -0
  102. package/dist/assets/integrations-page-7jff5YRS.js +1 -0
  103. package/dist/assets/{intelligence-layout-CAtJ8qJB.js → intelligence-layout-DOOxr8TM.js} +1 -1
  104. package/dist/assets/intelligence-layout-slots-store-BvTIV21o.js +1 -0
  105. package/dist/assets/keyboard-shortcuts-redirect-page-0f4iR9cK.js +1 -0
  106. package/dist/assets/{latest-assistant-text-CU1nEv57.js → latest-assistant-text-C5TlzsjF.js} +3 -3
  107. package/dist/assets/library-detail-page-CXu1dzI8.js +1 -0
  108. package/dist/assets/library-page-BdtUHlv5.js +1 -0
  109. package/dist/assets/local-mode-C-1-fXwg.js +1 -0
  110. package/dist/assets/login-page-BYz-IJwG.js +1 -0
  111. package/dist/assets/logout-page-CA2Gb3fM.js +1 -0
  112. package/dist/assets/{logs-layout-C1WQAyKd.js → logs-layout-BgviygkY.js} +1 -1
  113. package/dist/assets/markdown-preview-CBXcCZg7.js +1 -0
  114. package/dist/assets/{media-preview-DxyJX5PI.js → media-preview-CTjI28Y4.js} +1 -1
  115. package/dist/assets/memory-page-route-Od3Muhow.js +2 -0
  116. package/dist/assets/memory-router-playground-page-D8do5kDw.js +1 -0
  117. package/dist/assets/message-files-panel-CnyA6dJL.js +1 -0
  118. package/dist/assets/mutation-error--JEZBa3Q.js +1 -0
  119. package/dist/assets/native-attachment-pickers-BAxJDXTk.js +1 -0
  120. package/dist/assets/native-file-BlJDG-CS.js +1 -0
  121. package/dist/assets/{notifications-page-DRBXLm8k.js → notifications-page-CICwZV_j.js} +1 -1
  122. package/dist/assets/{oauth-complete-page-DgpDdc3q.js → oauth-complete-page-HYAqM-h3.js} +1 -1
  123. package/dist/assets/{oauth-popup-complete-page-v6Kq8SKs.js → oauth-popup-complete-page-0Nnhyx6m.js} +1 -1
  124. package/dist/assets/paired-platform-identity-BN7Zkoo1.js +1 -0
  125. package/dist/assets/{pairing-page-Oj52Prdb.js → pairing-page-CbPjyGMx.js} +1 -1
  126. package/dist/assets/password-reset-page-j1R5YVAm.js +1 -0
  127. package/dist/assets/{pdf-file-preview-BhDsUdwQ.js → pdf-file-preview-CfJUarVV.js} +1 -1
  128. package/dist/assets/{peeking-eyes-iRqQZ7E9.js → peeking-eyes-C3X1d6Jj.js} +1 -1
  129. package/dist/assets/{permission-guide-page-C72w2Kmj.js → permission-guide-page-DgNjuyxd.js} +1 -1
  130. package/dist/assets/{permission-setup-CJJV_COn.js → permission-setup-C4VdQwwz.js} +1 -1
  131. package/dist/assets/personality-page-BEzNdxON.js +1 -0
  132. package/dist/assets/personality-page-ILl8FXFu.js +1 -0
  133. package/dist/assets/personality-sliders-PxNPuK2H.js +1 -0
  134. package/dist/assets/plans-page-CI3FmLNs.js +1 -0
  135. package/dist/assets/{platform-loopback-page-BmFqgelr.js → platform-loopback-page-DM2A9sb6.js} +1 -1
  136. package/dist/assets/plugin-detail-page-Cj6u283V.js +1 -0
  137. package/dist/assets/{plugins-page-BuHZ0XlZ.js → plugins-page-D7_NjR08.js} +1 -1
  138. package/dist/assets/plugins-surface-ClVSBf-s.js +1 -0
  139. package/dist/assets/{preview-error-DycCFOOO.js → preview-error-B2MuMDf7.js} +1 -1
  140. package/dist/assets/privacy-page-B2g1Pqqs.js +1 -0
  141. package/dist/assets/{privacy-screen-BNyV1Jpv.js → privacy-screen-BnqXrWj-.js} +1 -1
  142. package/dist/assets/profile-card-BJ45rF7O.js +1 -0
  143. package/dist/assets/{provider-callback-page-BiI5YuU7.js → provider-callback-page-CNNhqRdO.js} +1 -1
  144. package/dist/assets/{provider-key-mKVB6Qhq.js → provider-key-CqD-hAxF.js} +1 -1
  145. package/dist/assets/{provider-signup-page-Dj_CGQAF.js → provider-signup-page-BEBgiI0J.js} +1 -1
  146. package/dist/assets/{provisioning-targets-CHlEOzsV.js → provisioning-targets-CihW-82c.js} +1 -1
  147. package/dist/assets/{quick-input-page-jYydiJfm.js → quick-input-page-ZC5y6AKn.js} +1 -1
  148. package/dist/assets/{referral-modal-DgZAlouF.js → referral-modal-B5zxNJBt.js} +1 -1
  149. package/dist/assets/referral-modal-BUgtMC2a.js +1 -0
  150. package/dist/assets/{rehype-katex-BK-AtgSM.js → rehype-katex-DWUGzNKD.js} +1 -1
  151. package/dist/assets/{research-mock-page-CDpXk7ca.js → research-mock-page-B3giO94y.js} +1 -1
  152. package/dist/assets/research-onboarding-route-Dim74aoQ.js +50 -0
  153. package/dist/assets/review-terms-screen-CIYiUq4M.js +1 -0
  154. package/dist/assets/routes-zhZ8T_Wu.js +1 -0
  155. package/dist/assets/schedules-J3G9N-px.js +1 -0
  156. package/dist/assets/schedules-page-Cnl8mEzJ.js +1 -0
  157. package/dist/assets/security-redirect-page-BEtWQiAG.js +1 -0
  158. package/dist/assets/select-assistant-screen-BHvcUbOb.js +1 -0
  159. package/dist/assets/{self-hosted-servers-B-57ZNA3.js → self-hosted-servers-Bn0mvFIm.js} +1 -1
  160. package/dist/assets/service-form-controls-DaeZPEiA.js +1 -0
  161. package/dist/assets/{setting-row-BuBlxds2.js → setting-row-DPTW9jvI.js} +1 -1
  162. package/dist/assets/settings-Bh67VJVe.js +3 -0
  163. package/dist/assets/settings-ClEDqshB.js +3 -0
  164. package/dist/assets/settings-DDU54LDK.js +3 -0
  165. package/dist/assets/settings-k5uhZfPH.js +3 -0
  166. package/dist/assets/{settings-layout-B_sC3oOX.js → settings-layout-DEmxtBd4.js} +1 -1
  167. package/dist/assets/share-feedback-modal-C2fAj8NH.js +1 -0
  168. package/dist/assets/share-feedback-modal-Du_F68zS.js +2 -0
  169. package/dist/assets/{sidebar-tree-BLMAqL8a.js → sidebar-tree-D43H3cb8.js} +1 -1
  170. package/dist/assets/{signup-page-CF6CvKYm.js → signup-page-BiV-Kq2O.js} +1 -1
  171. package/dist/assets/{signup-shell-BUn2lHTO.js → signup-shell-BbFj5txC.js} +1 -1
  172. package/dist/assets/{skill-detail-page-B7oLoGRE.js → skill-detail-page-CNTwONYG.js} +2 -2
  173. package/dist/assets/skill-detail-panel-Duoeqpk6.js +1 -0
  174. package/dist/assets/{skill-removal-dialog-DwT8ZoB9.js → skill-removal-dialog-DcbMCW1X.js} +1 -1
  175. package/dist/assets/{skills-page-hxGLH0Yi.js → skills-page-DeEyocII.js} +1 -1
  176. package/dist/assets/sounds-page-CYqyUiLI.js +1 -0
  177. package/dist/assets/{start-screen-DfzPyvUq.js → start-screen-C4ocEh6e.js} +1 -1
  178. package/dist/assets/step-detail-header-C0_Bji0I.js +1 -0
  179. package/dist/assets/stt-language-picker-modal-Dw_dzvcQ.js +1 -0
  180. package/dist/assets/subagent-detail-panel-DqFckc_d.js +1 -0
  181. package/dist/assets/superpowers-page-kjcwHwaR.js +1 -0
  182. package/dist/assets/system-events-page-C0Nrrv_n.js +1 -0
  183. package/dist/assets/system-events-redirect-page-DR4dTzmZ.js +1 -0
  184. package/dist/assets/{tabular-grid-DkyI1XY2.js → tabular-grid-9asraGxC.js} +1 -1
  185. package/dist/assets/{teleport-gateway-client-C3wmILxC.js → teleport-gateway-client-B8e53i-5.js} +1 -1
  186. package/dist/assets/{text-preview-BGQO4VRv.js → text-preview-C6jKP_-h.js} +1 -1
  187. package/dist/assets/{theme-stage-page-9l6G0GQD.js → theme-stage-page-BCd5ZTdW.js} +1 -1
  188. package/dist/assets/{tiptap-document-editor-6J6u0gMB.js → tiptap-document-editor-BCrbYYDo.js} +2 -2
  189. package/dist/assets/tool-detail-panel-BM_9qtZ-.js +1 -0
  190. package/dist/assets/tool-detail-panel-nu-dK5jf.js +16 -0
  191. package/dist/assets/{trait-cycle-row-C76P92r3.js → trait-cycle-row-CPRGog-6.js} +1 -1
  192. package/dist/assets/upgrade-cancel-page-BiU2HQZG.js +1 -0
  193. package/dist/assets/{upgrade-success-page-Ba_xpT9b.js → upgrade-success-page-BCvxSNPT.js} +1 -1
  194. package/dist/assets/{usage-redirect-page-C7pPUdxP.js → usage-redirect-page-A2FxznAL.js} +1 -1
  195. package/dist/assets/use-app-delete-Bd9ibG9z.js +1 -0
  196. package/dist/assets/use-assistant-identity-details-BPVOfzxy.js +1 -0
  197. package/dist/assets/use-channel-trust-floors-BkkxL6wd.js +1 -0
  198. package/dist/assets/use-checkout-dismiss-refresh-DYmiO0wT.js +1 -0
  199. package/dist/assets/use-edge-swipe-back-B2Kt4500.js +1 -0
  200. package/dist/assets/{use-hotkey-recorder-BKycBMhe.js → use-hotkey-recorder-Dngc9P3v.js} +1 -1
  201. package/dist/assets/use-invite-link-dialog-Dqkj_T4s.js +1 -0
  202. package/dist/assets/use-plugins-list-DJlgCfb-.js +1 -0
  203. package/dist/assets/use-return-to-short-circuit-CrgMpIk2.js +1 -0
  204. package/dist/assets/use-side-list-room-CttXRA29.js +1 -0
  205. package/dist/assets/use-skill-actions-BhUkfXmL.js +1 -0
  206. package/dist/assets/use-skill-detail-files-JWSwpirW.js +1 -0
  207. package/dist/assets/use-supports-credentials-settings-fg3eXgQy.js +1 -0
  208. package/dist/assets/{use-truncated-blob-text-_V8QhH9C.js → use-truncated-blob-text-D6z6oSIj.js} +1 -1
  209. package/dist/assets/{vendor-CtXGFqsu.js → vendor-DLH51Vjf.js} +2 -2
  210. package/dist/assets/voice-page-CN-XVbya.js +1 -0
  211. package/dist/assets/{wake-detail-panel-PQ5V9JtN.js → wake-detail-panel-BN6Np2AU.js} +1 -1
  212. package/dist/assets/{weather-forecast-display-BWS4MRRa.js → weather-forecast-display-Dg7Tug8o.js} +1 -1
  213. package/dist/assets/{web-BU0sfQyP.js → web-BlKAJber.js} +1 -1
  214. package/dist/assets/{web-Dquk8c_k.js → web-BmoVVmPZ.js} +1 -1
  215. package/dist/assets/{web-CDVPrpFB.js → web-C2Y5uOI1.js} +1 -1
  216. package/dist/assets/{web-p-hu75zv.js → web-CAi9YePi.js} +1 -1
  217. package/dist/assets/{web-pSzr3FCR.js → web-D0qh5Vlp.js} +1 -1
  218. package/dist/assets/{web-DWItvNqs.js → web-D5UHHnMG.js} +1 -1
  219. package/dist/assets/{web-TuWeBEQx.js → web-DZvE04fg.js} +1 -1
  220. package/dist/assets/{web-C16o07pr.js → web-Xy5dhNHF.js} +1 -1
  221. package/dist/assets/{web-BoNmnum3.js → web-vcW3se1t.js} +1 -1
  222. package/dist/assets/welcome-screen-B1WHzW0q.js +1 -0
  223. package/dist/assets/{workflow-detail-panel-N8CV0RrQ.js → workflow-detail-panel-Bo3bUe-w.js} +1 -1
  224. package/dist/assets/workspace-page-yTSdnWq3.js +1 -0
  225. package/dist/assets/{xlsx-preview-DaCmEr4c.js → xlsx-preview-C7vk2tgm.js} +1 -1
  226. package/dist/index.html +3 -3
  227. package/package.json +1 -1
  228. package/dist/assets/activation-list-route-BbPqJODX.js +0 -1
  229. package/dist/assets/activity-steps-panel-Dz34WmYH.js +0 -1
  230. package/dist/assets/add-credits-modal-BtnHnN8V.js +0 -1
  231. package/dist/assets/ai-page-beQly0My.js +0 -1
  232. package/dist/assets/all-chats-page-route-DlZUO9J_.js +0 -1
  233. package/dist/assets/android-billing-handoff-CRfjXp7l.js +0 -1
  234. package/dist/assets/app-CgzFhQCl.css +0 -2
  235. package/dist/assets/app-DbJUeBix.js +0 -399
  236. package/dist/assets/archive-redirect-page-DZMdx89H.js +0 -1
  237. package/dist/assets/assistant-handle-modal-C2RftL0v.js +0 -1
  238. package/dist/assets/assistant-inbox-page-route-DLSz1vYi.js +0 -8
  239. package/dist/assets/assistant-status-panel-BJpCnYoq.js +0 -1
  240. package/dist/assets/auth-store-Cd-d1a4K.js +0 -1
  241. package/dist/assets/avatar-bundled-components-DqGPWIMe.js +0 -1
  242. package/dist/assets/avatar-random-CVuabfEZ.js +0 -2
  243. package/dist/assets/billing-page-D54LLGz1.js +0 -3
  244. package/dist/assets/channel-transcript-panel-BdL4iejZ.js +0 -1
  245. package/dist/assets/channels-page-route-BseMMdHV.js +0 -1
  246. package/dist/assets/chat-CNEHL_2K.js +0 -5
  247. package/dist/assets/chat-CuQXJv8T.js +0 -5
  248. package/dist/assets/chat-DwF2xsIA.js +0 -5
  249. package/dist/assets/chat-info-panel-C6px8Mlo.js +0 -1
  250. package/dist/assets/checkout-continuation-BniC3jRe.js +0 -1
  251. package/dist/assets/checkout-return-target-B3XAFuN6.js +0 -1
  252. package/dist/assets/command-palette-BgqisOfz.js +0 -1
  253. package/dist/assets/companion-surface-CjiszIMu.js +0 -1
  254. package/dist/assets/companion-surface-page-BIpW__dy.js +0 -1
  255. package/dist/assets/connect-page-uRvPpjMP.js +0 -1
  256. package/dist/assets/contacts-gateway-DI64mVLV.js +0 -1
  257. package/dist/assets/contacts-page-route-C_UApZGi.js +0 -1
  258. package/dist/assets/credentials-page-CLjmeZw3.js +0 -1
  259. package/dist/assets/csv-preview-C2fmutVQ.js +0 -1
  260. package/dist/assets/danger-zone-redirect-page-D5Xk_8UY.js +0 -1
  261. package/dist/assets/debug-page-tQ4hqmdO.js +0 -4
  262. package/dist/assets/deploy-dialogs-BW3wFOZ-.js +0 -1
  263. package/dist/assets/deploy-dialogs-Hu5UmFuB.js +0 -1
  264. package/dist/assets/developer-page-DpSngWHa.js +0 -1
  265. package/dist/assets/devices-redirect-page-BUydOv62.js +0 -1
  266. package/dist/assets/document-load-CXdi-UrD.js +0 -1
  267. package/dist/assets/document-load-Dyyzd-te.js +0 -1
  268. package/dist/assets/document-viewer-page-R3nFa-RR.js +0 -1
  269. package/dist/assets/emails-page-BUZyXttB.js +0 -1
  270. package/dist/assets/esm-0cCjd2Tc.js +0 -1
  271. package/dist/assets/esm-847YkHgO.js +0 -2
  272. package/dist/assets/esm-DDfhkiLX.js +0 -2
  273. package/dist/assets/esm-DOZyWh-f.js +0 -1
  274. package/dist/assets/esm-Dt_lJd5g.js +0 -2
  275. package/dist/assets/esm-Du04ea0U.js +0 -2
  276. package/dist/assets/esm-UvF3iiaC.js +0 -2
  277. package/dist/assets/general-page-BgczK5kM.js +0 -2
  278. package/dist/assets/hatching-screen-DUME_h4W.js +0 -1
  279. package/dist/assets/identity-page-route-CnUbEnOj.js +0 -7
  280. package/dist/assets/inspect-page-B4pwuqL9.js +0 -8
  281. package/dist/assets/integrations-page-DfV4AIUY.js +0 -1
  282. package/dist/assets/intelligence-layout-slots-store-DSIw2NvD.js +0 -1
  283. package/dist/assets/keyboard-shortcuts-redirect-page-eiKQBBin.js +0 -1
  284. package/dist/assets/library-detail-page-D5TQdRPW.js +0 -1
  285. package/dist/assets/library-page-CQHRf1us.js +0 -1
  286. package/dist/assets/local-mode-glOMwWKw.js +0 -1
  287. package/dist/assets/login-page-nEJ8VtCM.js +0 -1
  288. package/dist/assets/logout-page-CRexidth.js +0 -1
  289. package/dist/assets/markdown-preview-FMAKqNG5.js +0 -1
  290. package/dist/assets/memory-page-route-Bt8cmhxi.js +0 -2
  291. package/dist/assets/memory-router-playground-page-B5SPYr3X.js +0 -1
  292. package/dist/assets/message-files-panel-DM2OHYKS.js +0 -1
  293. package/dist/assets/mutation-error-DsmwzTdH.js +0 -1
  294. package/dist/assets/native-attachment-pickers-Caaw_YOU.js +0 -1
  295. package/dist/assets/native-file-DICtaDdr.js +0 -1
  296. package/dist/assets/paired-platform-identity-u4Q-YPGw.js +0 -1
  297. package/dist/assets/password-reset-page-D3ksp7Ej.js +0 -1
  298. package/dist/assets/personality-page-CvTaj6nv.js +0 -1
  299. package/dist/assets/personality-page-smzeVdLh.js +0 -1
  300. package/dist/assets/personality-sliders-B9dseUZv.js +0 -1
  301. package/dist/assets/plans-page-CdJnxa9Q.js +0 -1
  302. package/dist/assets/plugin-detail-page-CFGniBM4.js +0 -1
  303. package/dist/assets/plugins-surface-CYlZGgus.js +0 -1
  304. package/dist/assets/privacy-page-BTNM3CXN.js +0 -1
  305. package/dist/assets/profile-card-CCv7LkYu.js +0 -1
  306. package/dist/assets/referral-modal-CfWPpnvV.js +0 -1
  307. package/dist/assets/research-onboarding-route-Se5ksePw.js +0 -50
  308. package/dist/assets/review-terms-screen-Cy9FX3yC.js +0 -1
  309. package/dist/assets/routes-Df2libs9.js +0 -1
  310. package/dist/assets/schedules-page-O2ueZz6n.js +0 -1
  311. package/dist/assets/schedules-rvMiqGp0.js +0 -1
  312. package/dist/assets/security-redirect-page-B00kAvrV.js +0 -1
  313. package/dist/assets/select-assistant-screen-GuXyFlAh.js +0 -1
  314. package/dist/assets/service-form-controls-DZJcQaNO.js +0 -1
  315. package/dist/assets/settings-38aC28YN.js +0 -3
  316. package/dist/assets/settings-CQGJaYP0.js +0 -3
  317. package/dist/assets/settings-DR1qapnv.js +0 -3
  318. package/dist/assets/settings-ZA3mMzpB.js +0 -3
  319. package/dist/assets/share-feedback-modal-Dg6x94HR.js +0 -2
  320. package/dist/assets/share-feedback-modal-n7ZgtNxB.js +0 -1
  321. package/dist/assets/skill-detail-panel-BgTf3-Jj.js +0 -1
  322. package/dist/assets/sounds-page-C1u9YUVJ.js +0 -1
  323. package/dist/assets/step-detail-header-CdUCWAlu.js +0 -1
  324. package/dist/assets/stt-language-picker-modal-0IKnLGpu.js +0 -1
  325. package/dist/assets/subagent-detail-panel-CtkJH9-r.js +0 -1
  326. package/dist/assets/superpowers-page-C0V-BVj9.js +0 -1
  327. package/dist/assets/system-events-page-B13dkMsH.js +0 -1
  328. package/dist/assets/system-events-redirect-page-ayoYsUNU.js +0 -1
  329. package/dist/assets/tool-detail-panel-B267q93W.js +0 -1
  330. package/dist/assets/tool-detail-panel-D29OCtjo.js +0 -16
  331. package/dist/assets/upgrade-cancel-page-CsIYnmSq.js +0 -1
  332. package/dist/assets/use-app-delete-2je5dBpX.js +0 -1
  333. package/dist/assets/use-assistant-identity-details-S74x7sbE.js +0 -1
  334. package/dist/assets/use-channel-trust-floors-fBDQnvgz.js +0 -1
  335. package/dist/assets/use-checkout-dismiss-refresh-DB31reZx.js +0 -1
  336. package/dist/assets/use-edge-swipe-back-DeHKMrh8.js +0 -1
  337. package/dist/assets/use-invite-link-dialog-BdHG4b3u.js +0 -1
  338. package/dist/assets/use-plugins-list-B9d39t5k.js +0 -1
  339. package/dist/assets/use-return-to-short-circuit-D82kSfEB.js +0 -1
  340. package/dist/assets/use-side-list-room-CMVDwjej.js +0 -1
  341. package/dist/assets/use-skill-actions-BkSsu_a-.js +0 -1
  342. package/dist/assets/use-skill-detail-files-DRDxliP2.js +0 -1
  343. package/dist/assets/use-supports-credentials-settings-DXa8eid1.js +0 -1
  344. package/dist/assets/use-transcript-message-by-id-DVnOyFfP.js +0 -1
  345. package/dist/assets/voice-page-DoYjxDlf.js +0 -1
  346. package/dist/assets/welcome-screen-BKY6SHne.js +0 -1
  347. package/dist/assets/workspace-page-B7cCk3SZ.js +0 -1
  348. /package/dist/assets/{account-CVApvI7o.js → account-BkxBMG9Z.js} +0 -0
  349. /package/dist/assets/{account-B3E3GZS-.js → account-D5JdUO7K.js} +0 -0
  350. /package/dist/assets/{account-D0m_JAIR.js → account-DYG79724.js} +0 -0
  351. /package/dist/assets/{account-CLm397yy.js → account-OIF2BHH7.js} +0 -0
  352. /package/dist/assets/{activation-C60mWyf6.js → activation-C91KPzrh.js} +0 -0
  353. /package/dist/assets/{activation-CaYos65l.js → activation-Dd7eAIHs.js} +0 -0
  354. /package/dist/assets/{activation-Bu-fuIiq.js → activation-ReimSfhn.js} +0 -0
  355. /package/dist/assets/{activation-tasks-B4NxNrfp.js → activation-tasks-D4dorV2v.js} +0 -0
  356. /package/dist/assets/{activation-tasks-U9EJp50S.js → activation-tasks-efxGWsFw.js} +0 -0
  357. /package/dist/assets/{activation-nBeJqOMa.js → activation-tasks-rViOqW7C.js} +0 -0
  358. /package/dist/assets/{activation-tasks-6iX4PrEF.js → activation-tasks-wtMwJ0EV.js} +0 -0
  359. /package/dist/assets/{activation-tasks-D057dozu.js → activation-yoBQ36AY.js} +0 -0
  360. /package/dist/assets/{app-types-BwhjauA5.js → app-types-BoY_FOAH.js} +0 -0
  361. /package/dist/assets/{assistant-inbox-BjveeFJS.js → assistant-inbox-CAvCHzi9.js} +0 -0
  362. /package/dist/assets/{assistant-inbox-Bc1eriLy.js → assistant-inbox-CQdSXLLi.js} +0 -0
  363. /package/dist/assets/{assistant-inbox-CjlA9ExA.js → assistant-inbox-DslyrhIn.js} +0 -0
  364. /package/dist/assets/{assistant-inbox-DZEctkiU.js → assistant-inbox-qWeVmA1L.js} +0 -0
  365. /package/dist/assets/{build.umd-BQNORWVu.js → build.umd-B0ATW5UM.js} +0 -0
  366. /package/dist/assets/{common-ChZ93He5.js → common-BdQfnACd.js} +0 -0
  367. /package/dist/assets/{common-CEc9vBVX.js → common-IoqtSg0p.js} +0 -0
  368. /package/dist/assets/{common-BdBfuvvS.js → common-LOT1T5DR.js} +0 -0
  369. /package/dist/assets/{common-rEaGXFG5.js → common-kmi6H4cg.js} +0 -0
  370. /package/dist/assets/{contacts-BcjP6yTq.js → contacts-BTmOfEVL.js} +0 -0
  371. /package/dist/assets/{contacts-DwPTzNNu.js → contacts-Cxz-DyYF.js} +0 -0
  372. /package/dist/assets/{contacts-B-21ZJz4.js → contacts-DgC-8PHB.js} +0 -0
  373. /package/dist/assets/{contacts-atF1S3IK.js → contacts-mijLgegD.js} +0 -0
  374. /package/dist/assets/{credential-requests-AF-aeT3D.js → credential-requests-CmFaXPwz.js} +0 -0
  375. /package/dist/assets/{credential-requests-CwIA8bBS.js → credential-requests-D3J3i5oa.js} +0 -0
  376. /package/dist/assets/{credential-requests-Z5RDxt8x.js → credential-requests-gl4lfjL4.js} +0 -0
  377. /package/dist/assets/{credential-requests-D1YLTxiK.js → credential-requests-h908NRpv.js} +0 -0
  378. /package/dist/assets/{definitions-DOIX6IPo.js → definitions-BUCExH-9.js} +0 -0
  379. /package/dist/assets/{definitions-Bqz3c8F6.js → definitions-DpZNNWA7.js} +0 -0
  380. /package/dist/assets/{emoji-catalog-data-D-oHOciZ.js → emoji-catalog-data-DsyEWO16.js} +0 -0
  381. /package/dist/assets/{format-countdown-CKjTHR6g.js → format-countdown-l7vj-IPm.js} +0 -0
  382. /package/dist/assets/{home-fLFytpjt.js → home-BI-fzzA0.js} +0 -0
  383. /package/dist/assets/{home-BDUOreXL.js → home-BZGFmZ0D.js} +0 -0
  384. /package/dist/assets/{home-X7gNxY7e.js → home-CM9kRnjx.js} +0 -0
  385. /package/dist/assets/{home-BEjkPdJp.js → home-D4Knhe9B.js} +0 -0
  386. /package/dist/assets/{intelligence-BKIKiC6a.js → intelligence-B6UWzaf0.js} +0 -0
  387. /package/dist/assets/{intelligence-D0sceUjd.js → intelligence-DFW_P1Fv.js} +0 -0
  388. /package/dist/assets/{intelligence-o-AgAY1a.js → intelligence-DXMdwG0t.js} +0 -0
  389. /package/dist/assets/{intelligence-o7hrm5QU.js → intelligence-DaVJutXG.js} +0 -0
  390. /package/dist/assets/{is-record-CK45KBF3.js → is-record-CNwRuI6a.js} +0 -0
  391. /package/dist/assets/{jszip.min-CIl5Kasi.js → jszip.min-CDIVkZfG.js} +0 -0
  392. /package/dist/assets/{library-Brgq-pg5.js → library-CFGvGWZt.js} +0 -0
  393. /package/dist/assets/{library-krizTG8k.js → library-CmSFUt9r.js} +0 -0
  394. /package/dist/assets/{library-DJAyleXO.js → library-D26ezl8B.js} +0 -0
  395. /package/dist/assets/{library-DK6yQdzq.js → library-Dv9w5D8Z.js} +0 -0
  396. /package/dist/assets/{link-click-CwW3QboU.js → link-click-CR9uUEsb.js} +0 -0
  397. /package/dist/assets/{logs-C624PZU8.js → logs-5jFWrQRx.js} +0 -0
  398. /package/dist/assets/{logs-B3TILfBZ.js → logs-BJTGRcSn.js} +0 -0
  399. /package/dist/assets/{logs-DnaZo1ZU.js → logs-BPrpYBp7.js} +0 -0
  400. /package/dist/assets/{logs-bAA3pNiA.js → logs-BpX8Zuzb.js} +0 -0
  401. /package/dist/assets/{machine-sizes-qp9khCYo.js → machine-sizes-srbag24Q.js} +0 -0
  402. /package/dist/assets/{onboarding-CA1t3Q0f.js → onboarding-B9_JitSg.js} +0 -0
  403. /package/dist/assets/{onboarding-DL5ANbiB.js → onboarding-BrS1fcVE.js} +0 -0
  404. /package/dist/assets/{onboarding-GlX-XQi6.js → onboarding-Cx2yoeE5.js} +0 -0
  405. /package/dist/assets/{onboarding-BLyQ4pX7.js → onboarding-cBGAfB74.js} +0 -0
  406. /package/dist/assets/{onboarding-step-layout-DT_fRQ60.js → onboarding-step-layout-BsqZaEHR.js} +0 -0
  407. /package/dist/assets/{pdf-DnNSb9Ol.js → pdf-_tTrkaWt.js} +0 -0
  408. /package/dist/assets/{plugin-attribution-DdvqPkqM.js → plugin-attribution-RBBRvghI.js} +0 -0
  409. /package/dist/assets/{radio-card-nav-DU8rXs6_.js → radio-card-nav-Br8358Zh.js} +0 -0
  410. /package/dist/assets/{remote-web-BY-kioTR.js → remote-web-42kFkA33.js} +0 -0
  411. /package/dist/assets/{remote-web-D9gnRZew.js → remote-web-CFPdQIeJ.js} +0 -0
  412. /package/dist/assets/{remote-web-0oU_5nC3.js → remote-web-DFX945w2.js} +0 -0
  413. /package/dist/assets/{remote-web-DHdTNXdY.js → remote-web-DkzrBzGi.js} +0 -0
  414. /package/dist/assets/{schedules-BFWqVQQr.js → schedules-Bk7XGnqS.js} +0 -0
  415. /package/dist/assets/{schedules-B-eoXB0u.js → schedules-CGU7CKaM.js} +0 -0
  416. /package/dist/assets/{schedules-jmj6ULCh.js → schedules-J687h0Fh.js} +0 -0
  417. /package/dist/assets/{schedules-CxUabbOG.js → schedules-JnprnWDo.js} +0 -0
  418. /package/dist/assets/{skill-icon-CyV-a6U0.js → skill-icon-CWKAcXVy.js} +0 -0
  419. /package/dist/assets/{terminal-Dl9KkSzg.js → terminal-BV6xg9ZA.js} +0 -0
  420. /package/dist/assets/{terminal-BQY82QZm.js → terminal-BjOF3LBT.js} +0 -0
  421. /package/dist/assets/{terminal-BUWeG_vt.js → terminal-CYHsl1AH.js} +0 -0
  422. /package/dist/assets/{terminal-CAR3C4xs.js → terminal-Cxm0NKaj.js} +0 -0
  423. /package/dist/assets/{usage-window-DN8fvMZe.js → usage-window-DJWFtBw1.js} +0 -0
  424. /package/dist/assets/{use-async-read-D7JsXrwa.js → use-async-read-DcRLxtMN.js} +0 -0
  425. /package/dist/assets/{use-debounced-value-B3D7seCE.js → use-debounced-value-CiNn3pzA.js} +0 -0
  426. /package/dist/assets/{workspace-CNtNlLWm.js → workspace-Bcvg2VfS.js} +0 -0
  427. /package/dist/assets/{workspace-Bnpq8Dqv.js → workspace-BscXtFFU.js} +0 -0
  428. /package/dist/assets/{workspace-C9vNSPtQ.js → workspace-C-huZiu_.js} +0 -0
  429. /package/dist/assets/{workspace-u8O2g3J6.js → workspace-P8HaFDdu.js} +0 -0
  430. /package/dist/assets/{xterm-DVw0Odgw.js → xterm-Pyzkt_-B.js} +0 -0
  431. /package/dist/assets/{xterm-addon-fit-BQeaKmRy.js → xterm-addon-fit-HaY_WHvm.js} +0 -0
@@ -118,7 +118,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
118
118
  Try polyfilling it using "@formatjs/intl-pluralrules"
119
119
  `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new E2(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...j2(a.value,t,n,r,i,u-(c.offset||0)));continue}}return k2(s)}function M2(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function N2(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=M2(e[r],t[r]),n),{...e}):e}function P2(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function F2(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:v0((...e)=>new Intl.NumberFormat(...e),{cache:P2(e.number),strategy:k0.variadic}),getDateTimeFormat:v0((...e)=>new Intl.DateTimeFormat(...e),{cache:P2(e.dateTime),strategy:k0.variadic}),getPluralRules:v0((...e)=>new Intl.PluralRules(...e),{cache:P2(e.pluralRules),strategy:k0.variadic})}}var I2=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>j2(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=N2(e.formats,r),this.formatters=i&&i.formatters||F2(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=w2}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}};function L2(e,t){return H2(e)||V2(e,t)||z2(e,t)||R2()}function R2(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
120
120
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z2(e,t){if(e){if(typeof e==`string`)return B2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B2(e,t)}}function B2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function V2(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function H2(e){if(Array.isArray(e))return e}function U2(e){"@babel/helpers - typeof";return U2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},U2(e)}function W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?W2(Object(n),!0).forEach(function(t){K2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q2(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function J2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y2(e,t,n){return t&&J2(e.prototype,t),n&&J2(e,n),e}function X2(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var Z2=function(){function e(t){q2(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return Y2(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=_0(r,t,this.options||{},X2()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=I2,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?G2(G2({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=p0(this.mem,s));try{return c||(c=new I2(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&f0(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||U2(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=L2(r[n],2),a=i[0],o=i[1];typeof o==`string`?t[a]=o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):t[a]=o}return t}}]),e}();Z2.type=`i18nFormat`;var Q2;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(Q2||={});var $2=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},hse=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,gse=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?hse(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new $2(`"${e}" plugin is not implemented on ${c}`,Q2.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}else throw new $2(`"${e}.${t}()" is not implemented on ${c}`,Q2.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,`name`,{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{g({eventName:e,callbackId:await n},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=$2,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},e4=(e=>e.Capacitor=gse(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),t4=e4.registerPlugin,n4=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new e4.Exception(e,Q2.Unimplemented)}unavailable(e=`not available`){return new e4.Exception(e,Q2.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},r4=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),i4=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),_se=class extends n4{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=i4(n).trim(),r=i4(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=r4(e.key),n=r4(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};t4(`CapacitorCookies`,{web:()=>new _se});var vse=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),yse=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},bse=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,a4=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=yse(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else (r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},xse=class extends n4{async request(e){let t=a4(e,e.webFetchExtra),n=bse(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await vse(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};t4(`CapacitorHttp`,{web:()=>new xse});var Sse;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(Sse||={});var Cse;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(Cse||={});var wse=class extends n4{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};t4(`SystemBars`,{web:()=>new wse});function o4(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var s4=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return s4(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return s4(t)(e)}}}},Tse=(e,t)=>(n,r,i)=>{let a={storage:o4(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return s4(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p};function Ese(e){let t={};if(typeof e.type==`string`&&(t.type=e.type),typeof e.level==`string`&&(t.level=Ha(e.level)),typeof e.event_id==`string`&&(t.event_id=e.event_id),typeof e.category==`string`&&(t.category=e.category),typeof e.message==`string`&&(t.message=e.message),typeof e.data==`object`&&e.data!==null&&(t.data=e.data),typeof e.timestamp==`string`){let n=Date.parse(e.timestamp)/1e3;isNaN(n)||(t.timestamp=n)}return t}var c4=u;function Dse(){return c4.WEBVIEW_SERVER_URL}function Ose(){return c4.CAP_SPOTLIGHT_URL}function kse(e){return{attachStacktrace:e.attachStacktrace,attachThreads:e.attachThreads,debug:e.debug,dist:e.dist,dsn:e.dsn,enabled:e.enabled,enableNdkScopeSync:e.enableNdkScopeSync,enableWatchdogTerminationTracking:e.enableWatchdogTerminationTracking,environment:e.environment,maxBreadcrumbs:e.maxBreadcrumbs,release:e.release,sampleRate:e.sampleRate,sendClientReports:e.sendClientReports,sendDefaultPii:e.sendDefaultPii,sessionTrackingIntervalMillis:e.sessionTrackingIntervalMillis,tracesSampleRate:e.tracesSampleRate,enableCaptureFailedRequests:e.enableCaptureFailedRequests,...e.strictTraceContinuation!==void 0&&{strictTraceContinuation:e.strictTraceContinuation},...e.orgId!==void 0&&{orgId:e.orgId},...Ase(e),...jse(e),...Mse()}}function Ase(e){return e4.getPlatform()===`ios`?{enableAppHangTracking:e.enableAppHangTracking,appHangTimeoutInterval:e.appHangTimeoutInterval}:{}}function jse(e){if(e.enableLogs&&e4.getPlatform()===`android`)return{enableLogs:!0}}function Mse(){let e=Ose();if(e)return{sidecarUrl:e}}var l4=t4(`SentryCapacitor`),Nse=`value`;function u4(e){let t=Ut()?.getOptions(),n=rr(e,t?.normalizeDepth,t?.normalizeMaxBreadth);return typeof n!=`object`||!n?{[Nse]:n}:n}function d4(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}var f4=[],Pse=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;for(let e=0;e<64;++e)f4[e]=Pse[e];function Fse(e){return f4[e>>18&63]+f4[e>>12&63]+f4[e>>6&63]+f4[e&63]}function Ise(e,t,n){let r,i=[];for(let a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(Fse(r));return i.join(``)}function Lse(e){let t,n=e.length,r=n%3,i=[],a=16383;for(let t=0,o=n-r;t<o;t+=a)i.push(Ise(e,t,t+a>o?o:t+a));return r===1?(t=e[n-1],i.push(`${f4[t>>2]+f4[t<<4&63]}==`)):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(`${f4[t>>10]+f4[t>>4&63]+f4[t<<2&63]}=`)),i.join(``)}var p4={async sendEnvelope(e){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;let[t,n]=e,r=d4(JSON.stringify(t));r.push(10);for(let e of n){let[t,n]=this._processItem(e),i,a=[];typeof n==`string`?(i=`text/plain`,a=d4(n)):n instanceof Uint8Array?(i=typeof t.content_type==`string`?t.content_type:`application/octet-stream`,a=[...n]):(i=typeof t.content_type==`string`?t.content_type:`application/json`,a=d4(JSON.stringify(n))),t.content_type=i,t.length=a.length;let o=JSON.stringify(t);r.push(...d4(o)),r.push(10),r=r.concat(a),r.push(10)}let i=200;return await l4.captureEnvelope({envelope:Lse(r)}).then(e=>e,e=>{D.error(`Failed to capture Envelope: `,e),i=500}),{statusCode:i}},async initNativeSdk(e){if(!e.dsn)return D.warn(`Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized.`),this.enableNative=!1,!1;if(!e.enableNative)return e.enableNativeNagger&&D.warn(`Note: Native Sentry SDK is disabled.`),this.enableNative=!1,!1;if(!this.isNativeClientAvailable())throw this._NativeClientError;let t=kse(e);return l4.initNativeSdk({options:t})},async fetchNativeDeviceContexts(){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;return l4.fetchNativeDeviceContexts()},async fetchNativeLogAttributes(){if(!this.enableNative)throw this._DisabledNativeError;if(!this.isNativeClientAvailable())throw this._NativeClientError;return l4.fetchNativeLogAttributes()},async fetchNativeRelease(){if(!this.enableNative)throw this._DisabledNativeError;return l4.fetchNativeRelease()},async fetchNativeSdkInfo(){if(!this.enableNative)throw this._DisabledNativeError;return l4.fetchNativeSdkInfo()},crash(){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;l4.crash()}},setUser(e){if(!this.enableNative)return;if(!this.isNativeClientAvailable())throw this._NativeClientError;let t=null,n=null;if(e){let{id:r,ip_address:i,email:a,username:o,...s}=e;t=this._serializeObject({email:a,id:r,ip_address:i,username:o},!0),n=this._serializeObject(s,!0)}l4.setUser({defaultUserKeys:t,otherUserKeys:n})},setTag(e,t){if(!this.enableNative)return;if(!this.isNativeClientAvailable())throw this._NativeClientError;let n=typeof t==`string`?t:JSON.stringify(t);l4.setTag({key:e,value:n})},setExtra(e,t){if(!this.enableNative)return;if(!this.isNativeClientAvailable())throw this._NativeClientError;let n=typeof t==`string`?t:JSON.stringify(t);l4.setExtra({key:e,value:n})},addBreadcrumb(e){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;l4.addBreadcrumb({...e,level:e.level?this._processLevel(e.level):void 0,data:e.data?u4(e.data):void 0})}},clearBreadcrumbs(){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;l4.clearBreadcrumbs()}},closeNativeSdk(){if(!this.enableNative)return D.log(this._DisabledNativeError),Promise.resolve();if(!this.isNativeClientAvailable())throw this._NativeClientError;return l4.closeNativeSdk().then(()=>{this.enableNative=!1})},setContext(e,t){if(this.enableNative){if(!this.isNativeClientAvailable())throw this._NativeClientError;this.platform===`android`?this.setExtra(e,t):l4.setContext({key:e,value:t===null?null:this._serializeObject(t)})}},pauseAppHangTracking(){if(this.enableNative)if(this.isNativeClientAvailable())this.platform===`ios`?l4.pauseAppHangTracking():D.warn(`PauseAppHangTracking ${this._IosOnlyMessage}`);else throw this._NativeClientError},resumeAppHangTracking(){if(this.enableNative)if(this.isNativeClientAvailable())this.platform===`ios`?l4.resumeAppHangTracking():D.warn(`ResumeAppHangTracking ${this._IosOnlyMessage}`);else throw this._NativeClientError},_processItem(e){if(p4.platform===`android`){let[t,n]=e;if(t.type==`event`||t.type==`transaction`){let e=this._processLevels(n);return`message`in e&&(e.message={message:e.message}),[t,e]}}return e},_serializeObject(e,t){let n={};return Object.keys(e).forEach(r=>{let i=e[r];(t!==!0||i!==void 0)&&(n[r]=typeof i==`string`?i:JSON.stringify(i))}),n},_processLevels(e){return{...e,level:e.level?this._processLevel(e.level):void 0,breadcrumbs:e.breadcrumbs?.map(e=>({...e,level:e.level?this._processLevel(e.level):void 0}))}},_processLevel(e){return e==`log`?`debug`:e==`critical`?`fatal`:e},isModuleLoaded(){return!!l4},isNativeClientAvailable(){return this.isModuleLoaded()&&e4.isPluginAvailable(`SentryCapacitor`)},_DisabledNativeError:Error(`Native is disabled`),_NativeClientError:Error(`Native Client is not available, can't start on native.`),_IosOnlyMessage:`is only supported on iOS.`,enableNative:!0,platform:e4.getPlatform()},Rse=`DeviceContext`,zse=()=>({name:Rse,processEvent:Bse});async function Bse(e,t,n){try{let t=await p4.fetchNativeDeviceContexts();if(e.contexts={...t.contexts,...e.contexts},`user`in t){let n=t.user;e.user||={...n}}let r=Array.isArray(t.breadcrumbs)?t.breadcrumbs.map(Ese):void 0;if(r){let t=n?.getOptions().maxBreadcrumbs??100;e.breadcrumbs=r.concat(e.breadcrumbs||[]).sort((e,t)=>(e.timestamp??0)-(t.timestamp??0)).slice(-t)}}catch(e){D.log(`Failed to get device context from native: ${e}`)}return e}var Vse=`EventOrigin`,Hse=()=>({name:Vse,preprocessEvent:Use});async function Use(e){return e.tags=e.tags??{},e.tags[`event.origin`]=`javascript`,e.tags[`event.environment`]=`javascript`,e}var Wse=`LogEnricher`,Gse=()=>({name:Wse,setup(e){Kse().then(()=>{e.on(`beforeCaptureLog`,e=>{qse(e)})},e=>{D.log(e)})}}),m4=void 0;function h4(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}async function Kse(){try{let e=await p4.fetchNativeLogAttributes();m4={...e?.contexts?.device&&{brand:e.contexts.device?.brand,model:e.contexts.device?.model,family:e.contexts.device?.family},...e?.contexts?.os&&{os:e.contexts.os.name,version:e.contexts.os.version},...e?.release&&{release:e.release}}}catch(e){return Promise.reject(`[LOGS]: Failed to prepare attributes from Native Layer: ${e}`)}return Promise.resolve()}function qse(e){if(m4===void 0)return;let t=e.attributes??{};h4(t,`device.brand`,m4.brand),h4(t,`device.model`,m4.model),h4(t,`device.family`,m4.family),h4(t,`os.name`,m4.os),h4(t,`os.version`,m4.version),h4(t,`sentry.release`,m4.release),e.attributes=t}var Jse=`Release`,Yse=()=>({name:Jse,processEvent:Xse});async function Xse(e,t,n){let r=n.getOptions();if(typeof r?.release==`string`&&(e.release=r.release),typeof r?.dist==`string`&&(e.dist=r.dist),e.release&&e.dist)return e;try{let t=await p4.fetchNativeRelease();t&&(e.release||=`${t.id}@${t.version}+${t.build}`,e.dist||=`${t.build}`)}catch{}return e}var Zse=()=>ao({iteratee:Qse});function Qse(e){if(e.filename){let t=/^https?:\/\//.test(e.filename),n=Dse();n?e.filename=e.filename.replace(n,``):e.filename=e.filename.replace(/^https?:\/\/localhost(:\d+)?/,``).replace(/^capacitor:\/\/localhost(:\d+)?/,``),e.filename=e.filename.replace(/^ng:\/\//,``),e.filename===`[native code]`||e.filename===`native`?e.in_app=!1:(t||(e.filename=`app://${e.filename.startsWith(`/`)?e.filename:`/${e.filename}`}`),e.in_app=!0)}return e}var g4=`4.1.0`,$se=`SdkInfo`,_4=null,v4=void 0,ece=()=>({name:$se,processEvent:tce,setup(e){v4=e.getOptions().sendDefaultPii,v4&&e.on(`beforeSendEvent`,(e=>{e.user?.ip_address===`{{auto}}`&&delete e.user.ip_address}))}});async function tce(e){if(p4.platform===`ios`&&_4===null)try{_4=await p4.fetchNativeSdkInfo()}catch{D.warn(`[SdkInfo] Native SDK Info retrieval failed...something could be wrong with your Sentry installation.`)}e.platform=e.platform||`javascript`;let t=e.sdk||{};return t.packages=[...t.packages||[],..._4&&[_4]||[],{name:`npm:@sentry/capacitor`,version:g4}],t.settings={infer_ip:v4?`auto`:`never`,...t.settings},e.sdk=t,e}var nce=`SentryNativeLog`,y4;async function rce(e,t,n){let r=await l4.addListener(nce,e);n()?await r.remove():(t(r),D.log(`Native log listener set up successfully.`))}function ice(e){if(y4)return;let t=e4.getPlatform();if(t!==`ios`&&t!==`android`){D.log(`Native log listener is only supported on iOS and Android.`);return}let n,r=!1;y4=()=>{r=!0,y4=void 0,n?.remove()},rce(e,e=>{n=e},()=>r).catch(e=>{D.warn(`Failed to set up native log listener:`,e),y4=void 0})}function ace(){y4?.()}function oce(e){let t=`[Native] [${e.component}] ${e.message}`;switch(e.level.toLowerCase()){case`fatal`:case`error`:D.error(t);break;case`warning`:D.warn(t);break;default:D.log(t);break}}function b4(e,t,n){He(e,t,n)}function x4(e,t){let n=Ge(e[t]);n&&(e[t]=n)}var S4=new WeakMap;function C4(e){S4.has(e)||(S4.set(e,!0),b4(e,`setUser`,t=>n=>(p4.setUser(n),t.call(e,n))),b4(e,`setTag`,t=>(n,r)=>(p4.setTag(n,r),t.call(e,n,r))),b4(e,`setTags`,t=>n=>(Object.keys(n).forEach(e=>{p4.setTag(e,n[e])}),t.call(e,n))),b4(e,`setExtras`,t=>n=>(Object.keys(n).forEach(e=>{p4.setExtra(e,n[e])}),t.call(e,n))),b4(e,`setExtra`,t=>(n,r)=>(p4.setExtra(n,r),t.call(e,n,r))),b4(e,`addBreadcrumb`,t=>(n,r)=>{let i={...n,level:n.level||`info`,data:n.data?u4(n.data):void 0};t.call(e,i,r);let a=e.getLastBreadcrumb();return a&&p4.addBreadcrumb(a),e}),b4(e,`clearBreadcrumbs`,t=>()=>(p4.clearBreadcrumbs(),t.call(e))),b4(e,`setContext`,t=>(n,r)=>(p4.setContext(n,r),t.call(e,n,r))))}function w4(e){S4.has(e)&&(S4.delete(e),x4(e,`clearBreadcrumbs`),x4(e,`setContext`),x4(e,`setExtra`),x4(e,`setExtras`),x4(e,`setTags`),x4(e,`setTag`),x4(e,`setUser`),x4(e,`addBreadcrumb`))}function sce(e,t){e.enableNative&&(e.transport=t,w4(Vt()),w4(Bt()))}function cce(){var e;let t=Ut();if(t){let n=t.getOptions();if(!n._metadata?.sdk)return;let r=n._metadata.sdk;r.name=`${r.name}.capacitor`,r.version=g4,(e=r.packages)==null||e.push({name:`sentry.javascript.capacitor`,version:`4.1.0`}),n._metadata.sdk=r}}function lce(e,t,n,r){p4.initNativeSdk(t).then(()=>{t.debug&&ice(t.onNativeLog??oce),n(e)}).catch(t=>{console.error(`Native Sentry SDK failed to initialize. Using Sentry JavaScript SDK without native integraiton.
121
- `,{error:t}),sce(e,r),n(e)}).finally(()=>{cce()})}function uce(e){let t=[];return t.push(Zse()),t.push(Yse()),t.push(Hse()),t.push(ece()),e.enableNative?(t.push(zse()),t.push(Gse())):t.push(Ss()),t.push(Da(),Ea(),ms(),ps(),vs(),za(),Wa()),e.enableAutoSessionTracking&&!e.enableNative&&t.push(gs()),t}var dce=()=>{let e=f(),t=e.__SENTRY__=e.__SENTRY__||{};(t[d]=t[`10.52.0`]||{}).encodePolyfill=fce},fce=e=>new Uint8Array(d4(e)),pce=class{constructor(e={}){this._buffer=zi(e.bufferSize||30)}send(e){return this._buffer.add(()=>p4.sendEnvelope(e))}flush(e){return this._buffer.drain(e)}};function mce(e={}){return new pce(e)}function hce(e,t={}){return typeof e==`function`?(...n)=>{try{return e(...n)}catch(r){return D.error(t.loggerMessage?t.loggerMessage:`The ${e.name} callback threw an error`,r),n[0]}}:e}var gce=()=>typeof TextEncoder<`u`;function _ce(e,t=As){let n={enableAutoSessionTracking:!0,enableWatchdogTerminationTracking:!0,enableCaptureFailedRequests:!1,...e};n.siblingOptions&&delete n.siblingOptions,n.enabled===!1||p4.platform===`web`?(n.enableNative=!1,n.enableNativeNagger=!1):(n.enableNativeNagger??=!0,n.enableNative??=!0),n.enableNative&&!e.transport&&p4.platform!==`web`&&(n.transport=e.transport||mce,n.transportOptions={...e.transportOptions??{},bufferSize:30}),gce()||dce(),n.enableNative&&(C4(Vt()),C4(Bt()));let r={...e.siblingOptions?.vueOptions,...e.siblingOptions?.nuxtClientOptions,...n,integrations:hce(e.integrations,{loggerMessage:`The integrations threw an error`}),enableMetrics:n._experiments?.enableMetrics,beforeSendMetric:n._experiments?.beforeSendMetric};r.defaultIntegrations=e.defaultIntegrations===void 0?uce(n):e.defaultIntegrations,lce(r,{...n,enableAutoSessionTracking:p4.platform!==`web`&&n.enableAutoSessionTracking},t,e.transport)}async function vce(){ace();try{let e=Ut();e&&(await e.close(),await p4.closeNativeSdk())}catch{D.error(`Failed to close the SDK`)}}var T4;(function(e){e[e.Sunday=1]=`Sunday`,e[e.Monday=2]=`Monday`,e[e.Tuesday=3]=`Tuesday`,e[e.Wednesday=4]=`Wednesday`,e[e.Thursday=5]=`Thursday`,e[e.Friday=6]=`Friday`,e[e.Saturday=7]=`Saturday`})(T4||={});var yce=t4(`LocalNotifications`,{web:()=>s(()=>import(`./web-BU0sfQyP.js`).then(e=>new e.LocalNotificationsWeb),[])}),bce=t4(`Network`,{web:()=>s(()=>import(`./web-Dquk8c_k.js`).then(e=>new e.NetworkWeb),[])}),E4=(0,M.createContext)({});function D4(e){let t=(0,M.useRef)(null);return t.current===null&&(t.current=e()),t.current}var O4=typeof window<`u`?M.useLayoutEffect:M.useEffect,k4=(0,M.createContext)(null);function A4(e,t){e.indexOf(t)===-1&&e.push(t)}function j4(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M4=(e,t,n)=>n>t?t:n<e?e:n,N4={},P4=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),F4=e=>typeof e==`object`&&!!e,I4=e=>/^0[^.\s]+$/u.test(e);function L4(e){let t;return()=>(t===void 0&&(t=e()),t)}var R4=e=>e,z4=(...e)=>e.reduce((e,t)=>n=>t(e(n))),B4=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},V4=class{constructor(){this.subscriptions=[]}add(e){return A4(this.subscriptions,e),()=>j4(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},H4=e=>e*1e3,U4=e=>e/1e3,W4=(e,t)=>t?1e3/t*e:0,xce=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},G4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sce=1e-7,Cce=12;function wce(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=G4(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Sce&&++s<Cce);return o}function K4(e,t,n,r){if(e===t&&n===r)return R4;let i=t=>wce(t,0,1,e,n);return e=>e===0||e===1?e:G4(i(e),t,r)}var q4=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J4=e=>t=>1-e(1-t),Y4=K4(.33,1.53,.69,.99),X4=J4(Y4),Z4=q4(X4),Q4=e=>e>=1?1:(e*=2)<1?.5*X4(e):.5*(2-2**(-10*(e-1))),$4=e=>1-Math.sin(Math.acos(e)),e3=J4($4),t3=q4($4),Tce=K4(.42,0,1,1),Ece=K4(0,0,.58,1),n3=K4(.42,0,.58,1),r3=e=>Array.isArray(e)&&typeof e[0]!=`number`;function i3(e,t){return r3(e)?e[xce(0,e.length,t)]:e}var a3=e=>Array.isArray(e)&&typeof e[0]==`number`,o3={linear:R4,easeIn:Tce,easeInOut:n3,easeOut:Ece,circIn:$4,circInOut:t3,circOut:e3,backIn:X4,backInOut:Z4,backOut:Y4,anticipate:Q4},Dce=e=>typeof e==`string`,s3=e=>{if(a3(e)){e.length;let[t,n,r,i]=e;return K4(t,n,r,i)}else if(Dce(e))return o3[e],`${e}`,o3[e];return e},c3=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Oce(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var kce=40;function l3(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=c3.reduce((e,t)=>(e[t]=Oce(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N4.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,kce),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:c3.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<c3.length;t++)o[c3[t]].cancel(e)},state:i,steps:o}}var{schedule:u3,cancel:d3,state:f3,steps:p3}=l3(typeof requestAnimationFrame<`u`?requestAnimationFrame:R4,!0),m3;function Ace(){m3=void 0}var h3={now:()=>(m3===void 0&&h3.set(f3.isProcessing||N4.useManualTiming?f3.timestamp:performance.now()),m3),set:e=>{m3=e,queueMicrotask(Ace)}},g3=e=>t=>typeof t==`string`&&t.startsWith(e),_3=g3(`--`),jce=g3(`var(--`),v3=e=>jce(e)?Mce.test(e.split(`/*`)[0].trim()):!1,Mce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function y3(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var b3={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},x3={...b3,transform:e=>M4(0,1,e)},S3={...b3,default:1},C3=e=>Math.round(e*1e5)/1e5,w3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nce(e){return e==null}var Pce=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T3=(e,t)=>n=>!!(typeof n==`string`&&Pce.test(n)&&n.startsWith(e)||t&&!Nce(n)&&Object.prototype.hasOwnProperty.call(n,t)),E3=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(w3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Fce=e=>M4(0,255,e),D3={...b3,transform:e=>Math.round(Fce(e))},O3={test:T3(`rgb`,`red`),parse:E3(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+D3.transform(e)+`, `+D3.transform(t)+`, `+D3.transform(n)+`, `+C3(x3.transform(r))+`)`};function Ice(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var k3={test:T3(`#`),parse:Ice,transform:O3.transform},A3=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j3=A3(`deg`),M3=A3(`%`),$=A3(`px`),Lce=A3(`vh`),Rce=A3(`vw`),N3={...M3,parse:e=>M3.parse(e)/100,transform:e=>M3.transform(e*100)},P3={test:T3(`hsl`,`hue`),parse:E3(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+M3.transform(C3(t))+`, `+M3.transform(C3(n))+`, `+C3(x3.transform(r))+`)`},F3={test:e=>O3.test(e)||k3.test(e)||P3.test(e),parse:e=>O3.test(e)?O3.parse(e):P3.test(e)?P3.parse(e):k3.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?O3.transform(e):P3.transform(e),getAnimatableNone:e=>{let t=F3.parse(e);return t.alpha=0,F3.transform(t)}},zce=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bce(e){return isNaN(e)&&typeof e==`string`&&(e.match(w3)?.length||0)+(e.match(zce)?.length||0)>0}var I3=`number`,L3=`color`,Vce=`var`,Hce=`var(`,R3="${}",Uce=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function z3(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Uce,e=>(F3.test(e)?(r.color.push(a),i.push(L3),n.push(F3.parse(e))):e.startsWith(Hce)?(r.var.push(a),i.push(Vce),n.push(e)):(r.number.push(a),i.push(I3),n.push(parseFloat(e))),++a,R3)).split(R3),indexes:r,types:i}}function Wce(e){return z3(e).values}function B3({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===I3?i+=C3(r[a]):e===L3?i+=F3.transform(r[a]):i+=r[a]}return i}}function Gce(e){return B3(z3(e))}var Kce=e=>typeof e==`number`?0:F3.test(e)?F3.getAnimatableNone(e):e,qce=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Kce(e);function Jce(e){let t=z3(e);return B3(t)(t.values.map((e,n)=>qce(e,t.split[n])))}var V3={test:Bce,parse:Wce,createTransformer:Gce,getAnimatableNone:Jce};function H3(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yce({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=H3(s,r,e+1/3),a=H3(s,r,e),o=H3(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function U3(e,t){return n=>n>0?t:e}var W3=(e,t,n)=>e+(t-e)*n,G3=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xce=[k3,O3,P3],Zce=e=>Xce.find(t=>t.test(e));function K3(e){let t=Zce(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===P3&&(n=Yce(n)),n}var q3=(e,t)=>{let n=K3(e),r=K3(t);if(!n||!r)return U3(e,t);let i={...n};return e=>(i.red=G3(n.red,r.red,e),i.green=G3(n.green,r.green,e),i.blue=G3(n.blue,r.blue,e),i.alpha=W3(n.alpha,r.alpha,e),O3.transform(i))},J3=new Set([`none`,`hidden`]);function Qce(e,t){return J3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $ce(e,t){return n=>W3(e,t,n)}function Y3(e){return typeof e==`number`?$ce:typeof e==`string`?v3(e)?U3:F3.test(e)?q3:nle:Array.isArray(e)?X3:typeof e==`object`?F3.test(e)?q3:ele:U3}function X3(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Y3(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ele(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Y3(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function tle(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var nle=(e,t)=>{let n=V3.createTransformer(t),r=z3(e),i=z3(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?J3.has(e)&&!i.values.length||J3.has(t)&&!r.values.length?Qce(e,t):z4(X3(tle(r,i),i.values),n):(`${e}${t}`,U3(e,t))};function Z3(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?W3(e,t,n):Y3(e)(e,t)}var rle=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>u3.update(t,e),stop:()=>d3(t),now:()=>f3.isProcessing?f3.timestamp:h3.now()}},Q3=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},$3=2e4;function e6(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function t6(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(e6(r),$3);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:U4(i)}}var n6={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function r6(e,t){return e*Math.sqrt(1-t*t)}var ile=12;function ale(e,t,n){let r=n;for(let n=1;n<ile;n++)r-=e(r)/t(r);return r}var i6=.001;function ole({duration:e=n6.duration,bounce:t=n6.bounce,velocity:n=n6.velocity,mass:r=n6.mass}){let i,a;n6.maxDuration;let o=1-t;o=M4(n6.minDamping,n6.maxDamping,o),e=M4(n6.minDuration,n6.maxDuration,U4(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=r6(t,o),c=Math.exp(-i);return i6-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=r6(t**2,o);return(-i(t)+i6>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-i6+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ale(i,a,s);if(e=H4(e),isNaN(c))return{stiffness:n6.stiffness,damping:n6.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var sle=[`duration`,`bounce`],cle=[`stiffness`,`damping`,`mass`];function a6(e,t){return t.some(t=>e[t]!==void 0)}function lle(e){let t={velocity:n6.velocity,stiffness:n6.stiffness,damping:n6.damping,mass:n6.mass,isResolvedFromDuration:!1,...e};if(!a6(e,cle)&&a6(e,sle))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M4(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:n6.mass,stiffness:i,damping:a}}else{let n=ole({...e,velocity:0});t={...t,...n,mass:n6.mass},t.isResolvedFromDuration=!0}return t}function o6(e=n6.visualDuration,t=n6.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=lle({...n,velocity:-U4(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=U4(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?n6.restSpeed.granular:n6.restSpeed.default,i||=v?n6.restDelta.granular:n6.restDelta.default;let y,b,x,S,C,w;if(h<1)x=r6(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>H4(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=H4(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=H4(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(e6(T),$3),t=Q3(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}o6.applyToOptions=e=>{let t=t6(e,100,o6);return e.ease=t.ease,e.duration=H4(t.duration),e.type=`keyframes`,e};var ule=5;function s6(e,t,n){let r=Math.max(t-ule,0);return W4(n-e(r),t-r)}function c6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=o6({keyframes:[f.value,m(f.value)],velocity:s6(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function dle(e,t,n){let r=[],i=n||N4.mix||Z3,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=z4(Array.isArray(t)?t[n]||R4:t,a)),r.push(a)}return r}function l6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=dle(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=B4(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M4(e[0],e[a-1],t)):l}function u6(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=B4(0,t,r);e.push(W3(n,1,i))}}function d6(e){let t=[0];return u6(t,e.length-1),t}function fle(e,t){return e.map(e=>e*t)}function ple(e,t){return e.map(()=>t||n3).splice(0,e.length-1)}function f6({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=r3(r)?r.map(s3):s3(r),a={done:!1,value:t[0]},o=l6(fle(n&&n.length===t.length?n:d6(t),e),t,{ease:Array.isArray(i)?i:ple(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var mle=e=>e!==null;function p6(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(mle),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var hle={decay:c6,inertia:c6,tween:f6,keyframes:f6,spring:o6};function m6(e){typeof e.type==`string`&&(e.type=hle[e.type])}var h6=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},gle=e=>e/100,g6=class extends h6{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==h3.now()&&this.tick(h3.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;m6(e);let{type:t=f6,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||f6;s!==f6&&typeof o[0]!=`number`&&(this.mixKeyframes=z4(gle,Z3(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=e6(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=M4(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==c6&&(b.value=p6(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return U4(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U4(e)}get time(){return U4(this.currentTime)}set time(e){e=H4(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return s6(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(h3.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=U4(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=rle,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(h3.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function _le(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var _6=e=>e*180/Math.PI,v6=e=>y6(_6(Math.atan2(e[1],e[0]))),vle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:v6,rotateZ:v6,skewX:e=>_6(Math.atan(e[1])),skewY:e=>_6(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},y6=e=>(e%=360,e<0&&(e+=360),e),b6=v6,x6=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),S6=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:x6,scaleY:S6,scale:e=>(x6(e)+S6(e))/2,rotateX:e=>y6(_6(Math.atan2(e[6],e[5]))),rotateY:e=>y6(_6(Math.atan2(-e[2],e[0]))),rotateZ:b6,rotate:b6,skewX:e=>_6(Math.atan(e[4])),skewY:e=>_6(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function C6(e){return+!!e.includes(`scale`)}function w6(e,t){if(!e||e===`none`)return C6(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=yle,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vle,i=t}if(!i)return C6(t);let a=r[t],o=i[1].split(`,`).map(xle);return typeof a==`function`?a(o):o[a]}var ble=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return w6(n,t)};function xle(e){return parseFloat(e.trim())}var T6=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],E6=new Set([...T6,`pathRotation`]),D6=e=>e===b3||e===$,Sle=new Set([`x`,`y`,`z`]),Cle=T6.filter(e=>!Sle.has(e));function wle(e){let t=[];return Cle.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var O6={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>w6(t,`x`),y:(e,{transform:t})=>w6(t,`y`)};O6.translateX=O6.x,O6.translateY=O6.y;var k6=new Set,A6=!1,j6=!1,M6=!1;function N6(){if(j6){let e=Array.from(k6).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=wle(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}j6=!1,A6=!1,k6.forEach(e=>e.complete(M6)),k6.clear()}function P6(){k6.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(j6=!0)})}function Tle(){M6=!0,P6(),N6(),M6=!1}var F6=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(k6.add(this),A6||(A6=!0,u3.read(P6),u3.resolveKeyframes(N6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}_le(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),k6.delete(this)}cancel(){this.state===`scheduled`&&(k6.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ele=e=>e.startsWith(`--`);function I6(e,t,n){Ele(t)?e.style.setProperty(t,n):e.style[t]=n}var Dle={};function L6(e,t){let n=L4(e);return()=>Dle[t]??n()}var Ole=L6(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),R6=L6(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),z6=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,B6={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:z6([0,.65,.55,1]),circOut:z6([.55,0,1,.45]),backIn:z6([.31,.01,.66,-.59]),backOut:z6([.33,1.53,.69,.99])};function V6(e,t){if(e)return typeof e==`function`?R6()?Q3(e,t):`ease-out`:a3(e)?z6(e):Array.isArray(e)?e.map(e=>V6(e,t)||B6.easeOut):B6[e]}function kle(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=V6(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function H6(e){return typeof e==`function`&&`applyToOptions`in e}function Ale({type:e,...t}){return H6(e)&&R6()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var U6=class extends h6{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ale(e);this.animation=kle(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=p6(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),I6(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return U4(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U4(e)}get time(){return U4(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H4(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ole()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),R4):r(this)}},W6={anticipate:Q4,backInOut:Z4,circInOut:t3};function jle(e){return e in W6}function Mle(e){typeof e.ease==`string`&&jle(e.ease)&&(e.ease=W6[e.ease])}var G6=10,Nle=class extends U6{constructor(e){Mle(e),m6(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new g6({...a,autoplay:!1}),s=Math.max(G6,h3.now()-this.startTime),c=M4(0,G6,s-G6),l=o.sample(s).value,{name:u}=this.options;i&&u&&I6(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},K6=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V3.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ple(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Fle(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=K6(i,t),s=K6(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Ple(e)||(n===`spring`||H6(n))&&r}function q6(e){e.duration=0,e.type=`keyframes`}var J6=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ile=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lle(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ile.test(e[t]))return!0;return!1}var Rle=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zle=L4(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ble(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return zle()&&n&&(J6.has(n)||Rle.has(n)&&Lle(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vle=40,Hle=class extends h6{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=h3.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||F6;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=h3.now();let u=!0;Fle(e,i,a,o)||(u=!1,(N4.instantAnimations||!s)&&l?.(p6(e,n,t)),e[0]=e[e.length-1],q6(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vle?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ble(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Nle({...d,element:p})}catch{m=new g6(d)}else m=new g6(d);m.finished.then(()=>{this.notifyFinished()}).catch(R4),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Tle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Ule=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Y6(this.animations,`duration`)}get iterationDuration(){return Y6(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Y6(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Wle=class extends Ule{then(e,t){return this.finished.finally(e).then(()=>{})}};function X6(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Z6=30,Gle=e=>!isNaN(parseFloat(e)),Q6={current:void 0},Kle=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=h3.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=h3.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gle(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new V4);let n=this.events[e].add(t);return e===`change`?()=>{n(),u3.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Q6.current&&Q6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=h3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Z6)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Z6);return W4(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function $6(e,t){return new Kle(e,t)}function e8(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function t8(e,t){let n=e?.[t]??e?.default??e;return n===e?n:e8(n,e)}var qle={type:`spring`,stiffness:500,damping:25,restSpeed:10},Jle=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yle={type:`keyframes`,duration:.8},Xle={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Zle=(e,{keyframes:t})=>t.length>2?Yle:E6.has(e)?e.startsWith(`scale`)?Jle(t[1]):qle:Xle,Qle=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function $le(e){for(let t in e)if(!Qle.has(t))return!0;return!1}var n8=(e,t,n,r={},i,a)=>o=>{let s=t8(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=H4(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};$le(s)||Object.assign(u,Zle(e,u)),u.duration&&=H4(u.duration),u.repeatDelay&&=H4(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(q6(u),u.delay===0&&(d=!0)),(N4.instantAnimations||N4.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,q6(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=p6(u.keyframes,s);if(e!==void 0){u3.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new g6(u):new Hle(u)},eue=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tue(e){let t=eue.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function r8(e,t,n=1){`${e}`;let[r,i]=tue(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return P4(e)?parseFloat(e):e}return v3(i)?r8(i,t,n+1):i}function i8(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a8(e,t,n,r){if(typeof t==`function`){let[i,a]=i8(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=i8(r);t=t(n===void 0?e.custom:n,i,a)}return t}function o8(e,t,n){let r=e.getProps();return a8(r,t,n===void 0?r.custom:n,e)}var s8=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...T6]),c8=e=>Array.isArray(e);function nue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$6(n))}function rue(e){return c8(e)?e[e.length-1]||0:e}function l8(e,t){let{transitionEnd:n={},transition:r={},...i}=o8(e,t)||{};i={...i,...n};for(let t in i)nue(e,t,rue(i[t]))}var u8=e=>!!(e&&e.getVelocity);function iue(e){return!!(u8(e)&&e.add)}function d8(e,t){let n=e.getValue(`willChange`);if(iue(n))return n.add(t);if(!n&&N4.WillChange){let n=new N4.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function f8(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var p8=`data-`+f8(`framerAppearId`);function m8(e){return e.props[p8]}function aue({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function h8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?e8(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&aue(f,t))continue;let o={delay:n,...t8(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){u3.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=m8(e);if(n){let e=window.MotionHandoffAnimation(n,t,u3);e!==null&&(o.startTime=e,p=!0)}}d8(e,t);let m=l??e.shouldReduceMotion;r.start(n8(t,r,i,m&&s8.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>u3.update(()=>{o&&l8(e,o)});d.length?Promise.all(d).then(t):t()}return d}function g8(e,t,n={}){let r=o8(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(h8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return oue(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function oue(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(g8(c,t,{...o,delay:n+(typeof r==`function`?0:r)+X6(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function _8(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>g8(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=g8(e,t,n);else{let i=typeof t==`function`?o8(e,t,n.custom):t;r=Promise.all(h8(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var sue={test:e=>e===`auto`,parse:e=>e},v8=e=>t=>t.test(e),y8=[b3,$,M3,j3,Rce,Lce,sue],b8=e=>y8.find(v8(e));function cue(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||I4(e)}var lue=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function uue(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(w3)||[];if(!r)return e;let i=n.replace(r,``),a=+!!lue.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var due=/\b([a-z-]*)\(.*?\)/gu,x8={...V3,getAnimatableNone:e=>{let t=e.match(due);return t?t.map(uue).join(` `):e}},S8={...V3,getAnimatableNone:e=>{let t=V3.parse(e);return V3.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},C8={...b3,transform:Math.round},w8={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:j3,pathRotation:j3,rotateX:j3,rotateY:j3,rotateZ:j3,scale:S3,scaleX:S3,scaleY:S3,scaleZ:S3,skew:j3,skewX:j3,skewY:j3,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:x3,originX:N3,originY:N3,originZ:$,zIndex:C8,fillOpacity:x3,strokeOpacity:x3,numOctaves:C8},fue={...w8,color:F3,backgroundColor:F3,outlineColor:F3,fill:F3,stroke:F3,borderColor:F3,borderTopColor:F3,borderRightColor:F3,borderBottomColor:F3,borderLeftColor:F3,filter:x8,WebkitFilter:x8,mask:S8,WebkitMask:S8},T8=e=>fue[e],pue=new Set([x8,S8]);function E8(e,t){let n=T8(e);return pue.has(n)||(n=V3),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var mue=new Set([`auto`,`none`,`0`]);function hue(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!mue.has(t)&&z3(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=E8(n,i)}var gue=class extends F6{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),v3(r))){let i=r8(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!s8.has(n)||e.length!==2)return;let[r,i]=e,a=b8(r),o=b8(i);if(y3(r)!==y3(i)&&O6[n]){this.needsMeasurement=!0;return}if(a!==o)if(D6(a)&&D6(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else O6[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||cue(e[t]))&&n.push(t);n.length&&hue(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=O6[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=O6[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},D8=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function O8(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var k8=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function A8(e){return F4(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:j8,cancel:_ue}=l3(queueMicrotask,!1),M8={x:!1,y:!1};function N8(){return M8.x||M8.y}function vue(e){return e===`x`||e===`y`?M8[e]?null:(M8[e]=!0,()=>{M8[e]=!1}):M8.x||M8.y?null:(M8.x=M8.y=!0,()=>{M8.x=M8.y=!1})}function P8(e,t){let n=O8(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function yue(e){return!(e.pointerType===`touch`||N8())}function bue(e,t,n={}){let[r,i,a]=P8(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!yue(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var F8=(e,t)=>t?e===t?!0:F8(e,t.parentElement):!1,I8=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,xue=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Sue(e){return xue.has(e.tagName)||e.isContentEditable===!0}var Cue=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function wue(e){return Cue.has(e.tagName)||e.isContentEditable===!0}var L8=new WeakSet;function R8(e){return t=>{t.key===`Enter`&&e(t)}}function z8(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Tue=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=R8(()=>{if(L8.has(n))return;z8(n,`down`);let e=R8(()=>{z8(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>z8(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function B8(e){return I8(e)&&!N8()}var V8=new WeakSet;function Eue(e,t,n={}){let[r,i,a]=P8(e,n),o=e=>{let r=e.currentTarget;if(!B8(e)||V8.has(e))return;L8.add(r),n.stopPropagation&&V8.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),L8.has(r)&&L8.delete(r),B8(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||F8(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),A8(e)&&(e.addEventListener(`focus`,e=>Tue(e,i)),!Sue(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function H8(e){return F4(e)&&`ownerSVGElement`in e}var U8=new WeakMap,W8,G8=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:H8(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Due=G8(`inline`,`width`,`offsetWidth`),Oue=G8(`block`,`height`,`offsetHeight`);function kue({target:e,borderBoxSize:t}){U8.get(e)?.forEach(n=>{n(e,{get width(){return Due(e,t)},get height(){return Oue(e,t)}})})}function Aue(e){e.forEach(kue)}function jue(){typeof ResizeObserver>`u`||(W8=new ResizeObserver(Aue))}function Mue(e,t){W8||jue();let n=O8(e);return n.forEach(e=>{let n=U8.get(e);n||(n=new Set,U8.set(e,n)),n.add(t),W8?.observe(e)}),()=>{n.forEach(e=>{let n=U8.get(e);n?.delete(t),n?.size||W8?.unobserve(e)})}}var K8=new Set,q8;function Nue(){q8=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};K8.forEach(t=>t(e))},window.addEventListener(`resize`,q8)}function Pue(e){return K8.add(e),q8||Nue(),()=>{K8.delete(e),!K8.size&&typeof q8==`function`&&(window.removeEventListener(`resize`,q8),q8=void 0)}}function J8(e,t){return typeof e==`function`?Pue(e):Mue(e,t)}var Y8={value:null,addProjectionMetrics:null};function X8(e){return H8(e)&&e.tagName===`svg`}function Fue(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=l6(i,a,o);return t?s(r):s}function Iue(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=Q8(e.get()),r=Q8(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new g6({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(Z8(e,s)),u3.postRender(u)},c),u8(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Z8(t,s),!1)):e.set(Z8(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function Z8(e,t){return t?e+t:e}function Q8(e){return typeof e==`number`?e:parseFloat(e)}var Lue=[...y8,F3,V3],Rue=e=>Lue.find(v8(e)),$8=()=>({translate:0,scale:1,origin:0,originPoint:0}),e5=()=>({x:$8(),y:$8()}),t5=()=>({min:0,max:0}),n5=()=>({x:t5(),y:t5()}),r5=new WeakMap;function i5(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function a5(e){return typeof e==`string`||Array.isArray(e)}var o5=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],s5=[`initial`,...o5];function c5(e){return i5(e.animate)||s5.some(t=>a5(e[t]))}function l5(e){return!!(c5(e)||e.variants)}function zue(e,t,n){for(let r in t){let i=t[r],a=n[r];if(u8(i))e.addValue(r,i);else if(u8(a))e.addValue(r,$6(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,$6(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var u5={current:null},d5={current:!1},Bue=typeof window<`u`;function f5(){if(d5.current=!0,Bue)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>u5.current=e.matches;e.addEventListener(`change`,t),t()}else u5.current=!1}var p5=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],m5={};function h5(e){m5=e}function Vue(){return m5}var g5=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=F6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=h3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,u3.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=c5(t),this.isVariantNode=l5(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&u8(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,r5.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(d5.current||f5(),this.shouldReduceMotion=u5.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),d3(this.notifyUpdate),d3(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&J6.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new U6({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:H4(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=E6.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&u3.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in m5){let t=m5[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n5()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<p5.length;t++){let n=p5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=zue(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=$6(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(P4(n)||I4(n))?n=parseFloat(n):!Rue(n)&&V3.test(t)&&(n=E8(e,t)),this.setBaseTarget(e,u8(n)?n.get():n)),u8(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=a8(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!u8(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new V4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){j8.render(this.render)}},_5=class extends g5{constructor(){super(...arguments),this.KeyframeResolver=gue}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;u8(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},v5=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function y5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Uue(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function b5(e){return e===void 0||e===1}function x5({scale:e,scaleX:t,scaleY:n}){return!b5(e)||!b5(t)||!b5(n)}function S5(e){return x5(e)||C5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function C5(e){return w5(e.x)||w5(e.y)}function w5(e){return e&&e!==`0%`}function T5(e,t,n){return n+t*(e-n)}function E5(e,t,n,r,i){return i!==void 0&&(e=T5(e,i,r)),T5(e,n,r)+t}function D5(e,t=0,n=1,r,i){e.min=E5(e.min,t,n,r,i),e.max=E5(e.max,t,n,r,i)}function O5(e,{x:t,y:n}){D5(e.x,t.translate,t.scale,t.originPoint),D5(e.y,n.translate,n.scale,n.originPoint)}var k5=.999999999999,A5=1.0000000000001;function Wue(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(j5(e.x,-a.scroll.offset.x),j5(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,O5(e,o)),r&&S5(a.latestValues)&&P5(e,a.latestValues,a.layout?.layoutBox))}t.x<A5&&t.x>k5&&(t.x=1),t.y<A5&&t.y>k5&&(t.y=1)}function j5(e,t){e.min+=t,e.max+=t}function M5(e,t,n,r,i=.5){D5(e,t,n,W3(e.min,e.max,i),r)}function N5(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function P5(e,t,n){let r=n??e;M5(e.x,N5(t.x,r.x),t.scaleX,t.scale,t.originX),M5(e.y,N5(t.y,r.y),t.scaleY,t.scale,t.originY)}function F5(e,t){return y5(Uue(e.getBoundingClientRect(),t))}function Gue(e,t,n){let r=F5(e,n),{scroll:i}=t;return i&&(j5(r.x,i.offset.x),j5(r.y,i.offset.y)),r}var Kue={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},que=T6.length;function Jue(e,t,n){let r=``,i=!0;for(let a=0;a<que;a++){let o=T6[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=k8(s,w8[o]);if(!c){i=!1;let t=Kue[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${k8(a,w8.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function I5(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(E6.has(e)){o=!0;continue}else if(_3(e)){i[e]=n;continue}else{let t=k8(n,w8[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Jue(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function L5(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function R5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var z5={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${R5(e,t.target.x)}% ${R5(e,t.target.y)}%`}},Yue={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V3.parse(e);if(i.length>5)return r;let a=V3.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=W3(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},B5={borderRadius:{...z5,applyTo:[...D8]},borderTopLeftRadius:z5,borderTopRightRadius:z5,borderBottomLeftRadius:z5,borderBottomRightRadius:z5,boxShadow:Yue};function V5(e,{layout:t,layoutId:n}){return E6.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!B5[e]||e===`opacity`)}function H5(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(u8(r[t])||i&&u8(i[t])||V5(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Xue(e){return window.getComputedStyle(e)}var U5=class extends _5{constructor(){super(...arguments),this.type=`html`,this.renderInstance=L5}readValueFromInstance(e,t){if(E6.has(t))return this.projection?.isProjecting?C6(t):ble(e,t);{let n=Xue(e),r=(_3(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return F5(e,t)}build(e,t,n){I5(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return H5(e,t,n)}};function Zue(e,t){return e in t}var Que=class extends g5{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Zue(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return n5()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},$ue={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ede={offset:`strokeDashoffset`,array:`strokeDasharray`};function tde(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?$ue:ede;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var nde=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function W5(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(I5(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of nde)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&tde(d,i,a,o,!1)}var G5=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`]),K5=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function rde(e,t,n,r){L5(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(G5.has(n)?n:f8(n),t.attrs[n])}function q5(e,t,n){let r=H5(e,t,n);for(let n in e)if(u8(e[n])||u8(t[n])){let t=T6.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var J5=class extends _5{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=n5}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(E6.has(t)){let e=T8(t);return e&&e.default||0}return t=G5.has(t)?t:f8(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return q5(e,t,n)}build(e,t,n){W5(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){rde(e,t,n,r)}mount(e){this.isSVGTag=K5(e.tagName),super.mount(e)}},ide=s5.length;function Y5(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Y5(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ide;n++){let r=s5[n],i=e.props[r];(a5(i)||i===!1)&&(t[r]=i)}return t}function X5(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ade=[...o5].reverse(),ode=o5.length;function sde(e){return t=>Promise.all(t.map(({animation:t,options:n})=>_8(e,t,n)))}function cde(e){let t=sde(e),n=Q5(),r=!0,i=!1,a=t=>(n,r)=>{let i=o8(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Y5(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<ode;t++){let p=ade[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=a5(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||i5(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=lde(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=c8(t)&&c8(n)?!X5(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=o8(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=X6(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=o8(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Q5(),i=!0}}}function lde(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!X5(t,e):!1}function Z5(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Q5(){return{animate:Z5(!0),whileInView:Z5(),whileHover:Z5(),whileTap:Z5(),whileDrag:Z5(),whileFocus:Z5(),exit:Z5()}}function $5(e,t){e.min=t.min,e.max=t.max}function e7(e,t){$5(e.x,t.x),$5(e.y,t.y)}function t7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var n7=1e-4,ude=1-n7,dde=1+n7,r7=.01,fde=0-r7,pde=0+r7;function i7(e){return e.max-e.min}function mde(e,t,n){return Math.abs(e-t)<=n}function a7(e,t,n,r=.5){e.origin=r,e.originPoint=W3(t.min,t.max,e.origin),e.scale=i7(n)/i7(t),e.translate=W3(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ude&&e.scale<=dde||isNaN(e.scale))&&(e.scale=1),(e.translate>=fde&&e.translate<=pde||isNaN(e.translate))&&(e.translate=0)}function o7(e,t,n,r){a7(e.x,t.x,n.x,r?r.originX:void 0),a7(e.y,t.y,n.y,r?r.originY:void 0)}function s7(e,t,n,r=0){e.min=(r?W3(n.min,n.max,r):n.min)+t.min,e.max=e.min+i7(t)}function hde(e,t,n,r){s7(e.x,t.x,n.x,r?.x),s7(e.y,t.y,n.y,r?.y)}function c7(e,t,n,r=0){let i=r?W3(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+i7(t)}function l7(e,t,n,r){c7(e.x,t.x,n.x,r?.x),c7(e.y,t.y,n.y,r?.y)}function u7(e,t,n,r,i){return e-=t,e=T5(e,1/n,r),i!==void 0&&(e=T5(e,1/i,r)),e}function gde(e,t=0,n=1,r=.5,i,a=e,o=e){if(M3.test(t)&&(t=parseFloat(t),t=W3(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=W3(a.min,a.max,r);e===a&&(s-=t),e.min=u7(e.min,t,n,s,i),e.max=u7(e.max,t,n,s,i)}function d7(e,t,[n,r,i],a,o){gde(e,t[n],t[r],t[i],t.scale,a,o)}var _de=[`x`,`scaleX`,`originX`],vde=[`y`,`scaleY`,`originY`];function f7(e,t,n,r){d7(e.x,t,_de,n?n.x:void 0,r?r.x:void 0),d7(e.y,t,vde,n?n.y:void 0,r?r.y:void 0)}function p7(e){return e.translate===0&&e.scale===1}function m7(e){return p7(e.x)&&p7(e.y)}function h7(e,t){return e.min===t.min&&e.max===t.max}function yde(e,t){return h7(e.x,t.x)&&h7(e.y,t.y)}function g7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _7(e,t){return g7(e.x,t.x)&&g7(e.y,t.y)}function v7(e){return i7(e.x)/i7(e.y)}function y7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function b7(e){return[e(`x`),e(`y`)]}function bde(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var xde=D8.length,x7=e=>typeof e==`string`?parseFloat(e):e,S7=e=>typeof e==`number`||$.test(e);function Sde(e,t,n,r,i,a){i?(e.opacity=W3(0,n.opacity??1,Cde(r)),e.opacityExit=W3(t.opacity??1,0,wde(r))):a&&(e.opacity=W3(t.opacity??1,n.opacity??1,r));for(let i=0;i<xde;i++){let a=D8[i],o=C7(t,a),s=C7(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||S7(o)===S7(s)?(e[a]=Math.max(W3(x7(o),x7(s),r),0),(M3.test(s)||M3.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=W3(t.rotate||0,n.rotate||0,r))}function C7(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Cde=w7(0,.5,e3),wde=w7(.5,.95,R4);function w7(e,t,n){return r=>r<e?0:r>t?1:n(B4(e,t,r))}function T7(e,t,n){let r=u8(e)?e:$6(e);return r.start(n8(``,r,t,n)),r.animation}function E7(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Tde=(e,t)=>e.depth-t.depth,Ede=class{constructor(){this.children=[],this.isDirty=!1}add(e){A4(this.children,e),this.isDirty=!0}remove(e){j4(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tde),this.isDirty=!1,this.children.forEach(e)}};function Dde(e,t){let n=h3.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(d3(r),e(a-t))};return u3.setup(r,!0),()=>d3(r)}function D7(e){return u8(e)?e.get():e}var Ode=class{constructor(){this.members=[]}add(e){A4(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(j4(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(j4(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},O7={hasAnimatedSinceResize:!0,hasEverUpdated:!1},k7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},A7=[``,`X`,`Y`,`Z`],kde=1e3,Ade=0;function j7(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function M7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=m8(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,u3,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&M7(r)}function N7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ade++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Y8.value&&(k7.nodes=k7.calculatedTargetDeltas=k7.calculatedProjections=0),this.nodes.forEach(Nde),this.nodes.forEach(zde),this.nodes.forEach(Bde),this.nodes.forEach(Pde),Y8.addProjectionMetrics&&Y8.addProjectionMetrics(k7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ede)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new V4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=H8(t)&&!X8(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;u3.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Dde(i,250),O7.hasAnimatedSinceResize&&(O7.hasAnimatedSinceResize=!1,this.nodes.forEach(I7)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Gde,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!_7(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t8(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||I7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),d3(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vde),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&M7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ide),this.nodes.forEach(P7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(F7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Lde),this.nodes.forEach(Rde),this.nodes.forEach(jde),this.nodes.forEach(Mde)):this.nodes.forEach(F7),this.clearAllSnapshots();let e=h3.now();f3.delta=M4(0,1e3/60,e-f3.timestamp),f3.timestamp=e,f3.isProcessing=!0,p3.update.process(f3),p3.preRender.process(f3),p3.render.process(f3),f3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,j8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fde),this.sharedNodes.forEach(Hde)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,u3.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){u3.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!i7(this.snapshot.measuredBox.x)&&!i7(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=n5(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!m7(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||S5(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Kde(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return n5();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qde))){let{scroll:e}=this.root;e&&(j5(t.x,e.offset.x),j5(t.y,e.offset.y))}return t}removeElementScroll(e){let t=n5();if(e7(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&e7(t,e),j5(t.x,i.offset.x),j5(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||n5();e7(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(j5(r.x,-n.scroll.offset.x),j5(r.y,-n.scroll.offset.y)),S5(n.latestValues)&&P5(r,n.latestValues,n.layout?.layoutBox)}return S5(this.latestValues)&&P5(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=n5();e7(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!S5(n.latestValues))continue;let r;n.instance&&(x5(n.latestValues)&&n.updateSnapshot(),r=n5(),e7(r,n.measurePageBox())),f7(t,n.latestValues,n.snapshot?.layoutBox,r)}return S5(this.latestValues)&&f7(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==f3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=f3.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=n5(),this.targetWithTransforms=n5()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hde(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):e7(this.target,this.layout.layoutBox),O5(this.target,this.targetDelta)):e7(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Y8.value&&k7.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||x5(this.parent.latestValues)||C5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n5(),this.relativeTargetOrigin=n5(),l7(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),e7(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===f3.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;e7(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Wue(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=n5());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(t7(this.prevProjectionDelta.x,this.projectionDelta.x),t7(this.prevProjectionDelta.y,this.projectionDelta.y)),o7(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!y7(this.projectionDelta.x,this.prevProjectionDelta.x)||!y7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Y8.value&&k7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e5(),this.projectionDelta=e5(),this.projectionDeltaWithTransform=e5()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=e5();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=n5(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Wde));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=W3(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=W3(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(L7(o.x,e.x,n),L7(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(l7(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ude(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&yde(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=n5(),e7(f,this.relativeTarget)),c&&(this.animationValues=a,Sde(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(d3(this.pendingAnimation),void 0),this.pendingAnimation=u3.update(()=>{O7.hasAnimatedSinceResize=!0,this.motionValue||=$6(0),this.motionValue.jump(0,!1),this.currentAnimation=T7(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kde),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&H7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n5();let t=i7(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=i7(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}e7(t,n),P5(t,i),o7(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ode),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&j7(`z`,e,r,this.animationValues);for(let t=0;t<A7.length;t++)j7(`rotate${A7[t]}`,e,r,this.animationValues),j7(`skew${A7[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=D7(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=D7(t?.pointerEvents)||``),this.hasProjected&&!S5(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=bde(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in B5){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=B5[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?D7(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(P7),this.root.sharedNodes.clear()}}}function jde(e){e.updateLayout()}function Mde(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)b7(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=i7(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;$5(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else H7(i,t.layoutBox,n)&&b7(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=i7(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=e5();o7(o,n,t.layoutBox);let s=e5();a?o7(s,e.applyTransform(r,!0),t.measuredBox):o7(s,n,t.layoutBox);let c=!m7(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=n5();l7(s,t.layoutBox,i.layoutBox,o);let c=n5();l7(c,n,a.layoutBox,o),_7(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Nde(e){Y8.value&&k7.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Pde(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fde(e){e.clearSnapshot()}function P7(e){e.clearMeasurements()}function Ide(e){e.isLayoutDirty=!0,e.updateLayout()}function F7(e){e.isLayoutDirty=!1}function Lde(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Rde(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function I7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zde(e){e.resolveTargetDelta()}function Bde(e){e.calcProjection()}function Vde(e){e.resetSkewAndRotation()}function Hde(e){e.removeLeadSnapshot()}function L7(e,t,n){e.translate=W3(t.translate,0,n),e.scale=W3(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function R7(e,t,n,r){e.min=W3(t.min,n.min,r),e.max=W3(t.max,n.max,r)}function Ude(e,t,n,r){R7(e.x,t.x,n.x,r),R7(e.y,t.y,n.y,r)}function Wde(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Gde={duration:.45,ease:[.4,0,.1,1]},z7=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B7=z7(`applewebkit/`)&&!z7(`chrome/`)?Math.round:R4;function V7(e){e.min=B7(e.min),e.max=B7(e.max)}function Kde(e){V7(e.x),V7(e.y)}function H7(e,t,n){return e===`position`||e===`preserve-aspect`&&!mde(v7(t),v7(n),.2)}function qde(e){return e!==e.root&&e.scroll?.wasRoot}var Jde=N7({attachResizeListener:(e,t)=>E7(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),U7={current:void 0},W7=N7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!U7.current){let e=new Jde({});e.mount(window),e.setOptions({layoutScroll:!0}),U7.current=e}return U7.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),G7=(0,M.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function K7(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Yde(...e){return t=>{let n=!1,r=e.map(e=>{let r=K7(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():K7(e[t],null)}}}}function Xde(...e){return M.useCallback(Yde(...e),e)}var Zde=class extends M.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(A8(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=A8(e)&&e.offsetWidth||0,r=A8(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Qde({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,M.useId)(),s=(0,M.useRef)(null),c=(0,M.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,M.useContext)(G7),u=Xde(s,e.props?.ref??e?.ref);return(0,M.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
121
+ `,{error:t}),sce(e,r),n(e)}).finally(()=>{cce()})}function uce(e){let t=[];return t.push(Zse()),t.push(Yse()),t.push(Hse()),t.push(ece()),e.enableNative?(t.push(zse()),t.push(Gse())):t.push(Ss()),t.push(Da(),Ea(),ms(),ps(),vs(),za(),Wa()),e.enableAutoSessionTracking&&!e.enableNative&&t.push(gs()),t}var dce=()=>{let e=f(),t=e.__SENTRY__=e.__SENTRY__||{};(t[d]=t[`10.52.0`]||{}).encodePolyfill=fce},fce=e=>new Uint8Array(d4(e)),pce=class{constructor(e={}){this._buffer=zi(e.bufferSize||30)}send(e){return this._buffer.add(()=>p4.sendEnvelope(e))}flush(e){return this._buffer.drain(e)}};function mce(e={}){return new pce(e)}function hce(e,t={}){return typeof e==`function`?(...n)=>{try{return e(...n)}catch(r){return D.error(t.loggerMessage?t.loggerMessage:`The ${e.name} callback threw an error`,r),n[0]}}:e}var gce=()=>typeof TextEncoder<`u`;function _ce(e,t=As){let n={enableAutoSessionTracking:!0,enableWatchdogTerminationTracking:!0,enableCaptureFailedRequests:!1,...e};n.siblingOptions&&delete n.siblingOptions,n.enabled===!1||p4.platform===`web`?(n.enableNative=!1,n.enableNativeNagger=!1):(n.enableNativeNagger??=!0,n.enableNative??=!0),n.enableNative&&!e.transport&&p4.platform!==`web`&&(n.transport=e.transport||mce,n.transportOptions={...e.transportOptions??{},bufferSize:30}),gce()||dce(),n.enableNative&&(C4(Vt()),C4(Bt()));let r={...e.siblingOptions?.vueOptions,...e.siblingOptions?.nuxtClientOptions,...n,integrations:hce(e.integrations,{loggerMessage:`The integrations threw an error`}),enableMetrics:n._experiments?.enableMetrics,beforeSendMetric:n._experiments?.beforeSendMetric};r.defaultIntegrations=e.defaultIntegrations===void 0?uce(n):e.defaultIntegrations,lce(r,{...n,enableAutoSessionTracking:p4.platform!==`web`&&n.enableAutoSessionTracking},t,e.transport)}async function vce(){ace();try{let e=Ut();e&&(await e.close(),await p4.closeNativeSdk())}catch{D.error(`Failed to close the SDK`)}}var T4;(function(e){e[e.Sunday=1]=`Sunday`,e[e.Monday=2]=`Monday`,e[e.Tuesday=3]=`Tuesday`,e[e.Wednesday=4]=`Wednesday`,e[e.Thursday=5]=`Thursday`,e[e.Friday=6]=`Friday`,e[e.Saturday=7]=`Saturday`})(T4||={});var yce=t4(`LocalNotifications`,{web:()=>s(()=>import(`./web-BlKAJber.js`).then(e=>new e.LocalNotificationsWeb),[])}),bce=t4(`Network`,{web:()=>s(()=>import(`./web-BmoVVmPZ.js`).then(e=>new e.NetworkWeb),[])}),E4=(0,M.createContext)({});function D4(e){let t=(0,M.useRef)(null);return t.current===null&&(t.current=e()),t.current}var O4=typeof window<`u`?M.useLayoutEffect:M.useEffect,k4=(0,M.createContext)(null);function A4(e,t){e.indexOf(t)===-1&&e.push(t)}function j4(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M4=(e,t,n)=>n>t?t:n<e?e:n,N4={},P4=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),F4=e=>typeof e==`object`&&!!e,I4=e=>/^0[^.\s]+$/u.test(e);function L4(e){let t;return()=>(t===void 0&&(t=e()),t)}var R4=e=>e,z4=(...e)=>e.reduce((e,t)=>n=>t(e(n))),B4=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},V4=class{constructor(){this.subscriptions=[]}add(e){return A4(this.subscriptions,e),()=>j4(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},H4=e=>e*1e3,U4=e=>e/1e3,W4=(e,t)=>t?1e3/t*e:0,xce=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},G4=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sce=1e-7,Cce=12;function wce(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=G4(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Sce&&++s<Cce);return o}function K4(e,t,n,r){if(e===t&&n===r)return R4;let i=t=>wce(t,0,1,e,n);return e=>e===0||e===1?e:G4(i(e),t,r)}var q4=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J4=e=>t=>1-e(1-t),Y4=K4(.33,1.53,.69,.99),X4=J4(Y4),Z4=q4(X4),Q4=e=>e>=1?1:(e*=2)<1?.5*X4(e):.5*(2-2**(-10*(e-1))),$4=e=>1-Math.sin(Math.acos(e)),e3=J4($4),t3=q4($4),Tce=K4(.42,0,1,1),Ece=K4(0,0,.58,1),n3=K4(.42,0,.58,1),r3=e=>Array.isArray(e)&&typeof e[0]!=`number`;function i3(e,t){return r3(e)?e[xce(0,e.length,t)]:e}var a3=e=>Array.isArray(e)&&typeof e[0]==`number`,o3={linear:R4,easeIn:Tce,easeInOut:n3,easeOut:Ece,circIn:$4,circInOut:t3,circOut:e3,backIn:X4,backInOut:Z4,backOut:Y4,anticipate:Q4},Dce=e=>typeof e==`string`,s3=e=>{if(a3(e)){e.length;let[t,n,r,i]=e;return K4(t,n,r,i)}else if(Dce(e))return o3[e],`${e}`,o3[e];return e},c3=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Oce(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var kce=40;function l3(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=c3.reduce((e,t)=>(e[t]=Oce(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N4.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,kce),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:c3.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<c3.length;t++)o[c3[t]].cancel(e)},state:i,steps:o}}var{schedule:u3,cancel:d3,state:f3,steps:p3}=l3(typeof requestAnimationFrame<`u`?requestAnimationFrame:R4,!0),m3;function Ace(){m3=void 0}var h3={now:()=>(m3===void 0&&h3.set(f3.isProcessing||N4.useManualTiming?f3.timestamp:performance.now()),m3),set:e=>{m3=e,queueMicrotask(Ace)}},g3=e=>t=>typeof t==`string`&&t.startsWith(e),_3=g3(`--`),jce=g3(`var(--`),v3=e=>jce(e)?Mce.test(e.split(`/*`)[0].trim()):!1,Mce=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function y3(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var b3={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},x3={...b3,transform:e=>M4(0,1,e)},S3={...b3,default:1},C3=e=>Math.round(e*1e5)/1e5,w3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nce(e){return e==null}var Pce=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T3=(e,t)=>n=>!!(typeof n==`string`&&Pce.test(n)&&n.startsWith(e)||t&&!Nce(n)&&Object.prototype.hasOwnProperty.call(n,t)),E3=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(w3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Fce=e=>M4(0,255,e),D3={...b3,transform:e=>Math.round(Fce(e))},O3={test:T3(`rgb`,`red`),parse:E3(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+D3.transform(e)+`, `+D3.transform(t)+`, `+D3.transform(n)+`, `+C3(x3.transform(r))+`)`};function Ice(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var k3={test:T3(`#`),parse:Ice,transform:O3.transform},A3=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),j3=A3(`deg`),M3=A3(`%`),$=A3(`px`),Lce=A3(`vh`),Rce=A3(`vw`),N3={...M3,parse:e=>M3.parse(e)/100,transform:e=>M3.transform(e*100)},P3={test:T3(`hsl`,`hue`),parse:E3(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+M3.transform(C3(t))+`, `+M3.transform(C3(n))+`, `+C3(x3.transform(r))+`)`},F3={test:e=>O3.test(e)||k3.test(e)||P3.test(e),parse:e=>O3.test(e)?O3.parse(e):P3.test(e)?P3.parse(e):k3.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?O3.transform(e):P3.transform(e),getAnimatableNone:e=>{let t=F3.parse(e);return t.alpha=0,F3.transform(t)}},zce=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bce(e){return isNaN(e)&&typeof e==`string`&&(e.match(w3)?.length||0)+(e.match(zce)?.length||0)>0}var I3=`number`,L3=`color`,Vce=`var`,Hce=`var(`,R3="${}",Uce=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function z3(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Uce,e=>(F3.test(e)?(r.color.push(a),i.push(L3),n.push(F3.parse(e))):e.startsWith(Hce)?(r.var.push(a),i.push(Vce),n.push(e)):(r.number.push(a),i.push(I3),n.push(parseFloat(e))),++a,R3)).split(R3),indexes:r,types:i}}function Wce(e){return z3(e).values}function B3({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===I3?i+=C3(r[a]):e===L3?i+=F3.transform(r[a]):i+=r[a]}return i}}function Gce(e){return B3(z3(e))}var Kce=e=>typeof e==`number`?0:F3.test(e)?F3.getAnimatableNone(e):e,qce=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Kce(e);function Jce(e){let t=z3(e);return B3(t)(t.values.map((e,n)=>qce(e,t.split[n])))}var V3={test:Bce,parse:Wce,createTransformer:Gce,getAnimatableNone:Jce};function H3(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yce({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=H3(s,r,e+1/3),a=H3(s,r,e),o=H3(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function U3(e,t){return n=>n>0?t:e}var W3=(e,t,n)=>e+(t-e)*n,G3=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xce=[k3,O3,P3],Zce=e=>Xce.find(t=>t.test(e));function K3(e){let t=Zce(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===P3&&(n=Yce(n)),n}var q3=(e,t)=>{let n=K3(e),r=K3(t);if(!n||!r)return U3(e,t);let i={...n};return e=>(i.red=G3(n.red,r.red,e),i.green=G3(n.green,r.green,e),i.blue=G3(n.blue,r.blue,e),i.alpha=W3(n.alpha,r.alpha,e),O3.transform(i))},J3=new Set([`none`,`hidden`]);function Qce(e,t){return J3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $ce(e,t){return n=>W3(e,t,n)}function Y3(e){return typeof e==`number`?$ce:typeof e==`string`?v3(e)?U3:F3.test(e)?q3:nle:Array.isArray(e)?X3:typeof e==`object`?F3.test(e)?q3:ele:U3}function X3(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Y3(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ele(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Y3(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function tle(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var nle=(e,t)=>{let n=V3.createTransformer(t),r=z3(e),i=z3(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?J3.has(e)&&!i.values.length||J3.has(t)&&!r.values.length?Qce(e,t):z4(X3(tle(r,i),i.values),n):(`${e}${t}`,U3(e,t))};function Z3(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?W3(e,t,n):Y3(e)(e,t)}var rle=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>u3.update(t,e),stop:()=>d3(t),now:()=>f3.isProcessing?f3.timestamp:h3.now()}},Q3=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},$3=2e4;function e6(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function t6(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(e6(r),$3);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:U4(i)}}var n6={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function r6(e,t){return e*Math.sqrt(1-t*t)}var ile=12;function ale(e,t,n){let r=n;for(let n=1;n<ile;n++)r-=e(r)/t(r);return r}var i6=.001;function ole({duration:e=n6.duration,bounce:t=n6.bounce,velocity:n=n6.velocity,mass:r=n6.mass}){let i,a;n6.maxDuration;let o=1-t;o=M4(n6.minDamping,n6.maxDamping,o),e=M4(n6.minDuration,n6.maxDuration,U4(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=r6(t,o),c=Math.exp(-i);return i6-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=r6(t**2,o);return(-i(t)+i6>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-i6+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ale(i,a,s);if(e=H4(e),isNaN(c))return{stiffness:n6.stiffness,damping:n6.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var sle=[`duration`,`bounce`],cle=[`stiffness`,`damping`,`mass`];function a6(e,t){return t.some(t=>e[t]!==void 0)}function lle(e){let t={velocity:n6.velocity,stiffness:n6.stiffness,damping:n6.damping,mass:n6.mass,isResolvedFromDuration:!1,...e};if(!a6(e,cle)&&a6(e,sle))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M4(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:n6.mass,stiffness:i,damping:a}}else{let n=ole({...e,velocity:0});t={...t,...n,mass:n6.mass},t.isResolvedFromDuration=!0}return t}function o6(e=n6.visualDuration,t=n6.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=lle({...n,velocity:-U4(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=U4(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?n6.restSpeed.granular:n6.restSpeed.default,i||=v?n6.restDelta.granular:n6.restDelta.default;let y,b,x,S,C,w;if(h<1)x=r6(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>H4(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=H4(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=H4(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(e6(T),$3),t=Q3(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}o6.applyToOptions=e=>{let t=t6(e,100,o6);return e.ease=t.ease,e.duration=H4(t.duration),e.type=`keyframes`,e};var ule=5;function s6(e,t,n){let r=Math.max(t-ule,0);return W4(n-e(r),t-r)}function c6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=o6({keyframes:[f.value,m(f.value)],velocity:s6(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function dle(e,t,n){let r=[],i=n||N4.mix||Z3,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=z4(Array.isArray(t)?t[n]||R4:t,a)),r.push(a)}return r}function l6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=dle(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=B4(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M4(e[0],e[a-1],t)):l}function u6(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=B4(0,t,r);e.push(W3(n,1,i))}}function d6(e){let t=[0];return u6(t,e.length-1),t}function fle(e,t){return e.map(e=>e*t)}function ple(e,t){return e.map(()=>t||n3).splice(0,e.length-1)}function f6({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=r3(r)?r.map(s3):s3(r),a={done:!1,value:t[0]},o=l6(fle(n&&n.length===t.length?n:d6(t),e),t,{ease:Array.isArray(i)?i:ple(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var mle=e=>e!==null;function p6(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(mle),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var hle={decay:c6,inertia:c6,tween:f6,keyframes:f6,spring:o6};function m6(e){typeof e.type==`string`&&(e.type=hle[e.type])}var h6=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},gle=e=>e/100,g6=class extends h6{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==h3.now()&&this.tick(h3.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;m6(e);let{type:t=f6,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||f6;s!==f6&&typeof o[0]!=`number`&&(this.mixKeyframes=z4(gle,Z3(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=e6(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=M4(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==c6&&(b.value=p6(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return U4(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U4(e)}get time(){return U4(this.currentTime)}set time(e){e=H4(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return s6(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(h3.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=U4(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=rle,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(h3.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function _le(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var _6=e=>e*180/Math.PI,v6=e=>y6(_6(Math.atan2(e[1],e[0]))),vle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:v6,rotateZ:v6,skewX:e=>_6(Math.atan(e[1])),skewY:e=>_6(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},y6=e=>(e%=360,e<0&&(e+=360),e),b6=v6,x6=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),S6=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),yle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:x6,scaleY:S6,scale:e=>(x6(e)+S6(e))/2,rotateX:e=>y6(_6(Math.atan2(e[6],e[5]))),rotateY:e=>y6(_6(Math.atan2(-e[2],e[0]))),rotateZ:b6,rotate:b6,skewX:e=>_6(Math.atan(e[4])),skewY:e=>_6(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function C6(e){return+!!e.includes(`scale`)}function w6(e,t){if(!e||e===`none`)return C6(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=yle,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=vle,i=t}if(!i)return C6(t);let a=r[t],o=i[1].split(`,`).map(xle);return typeof a==`function`?a(o):o[a]}var ble=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return w6(n,t)};function xle(e){return parseFloat(e.trim())}var T6=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],E6=new Set([...T6,`pathRotation`]),D6=e=>e===b3||e===$,Sle=new Set([`x`,`y`,`z`]),Cle=T6.filter(e=>!Sle.has(e));function wle(e){let t=[];return Cle.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var O6={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>w6(t,`x`),y:(e,{transform:t})=>w6(t,`y`)};O6.translateX=O6.x,O6.translateY=O6.y;var k6=new Set,A6=!1,j6=!1,M6=!1;function N6(){if(j6){let e=Array.from(k6).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=wle(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}j6=!1,A6=!1,k6.forEach(e=>e.complete(M6)),k6.clear()}function P6(){k6.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(j6=!0)})}function Tle(){M6=!0,P6(),N6(),M6=!1}var F6=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(k6.add(this),A6||(A6=!0,u3.read(P6),u3.resolveKeyframes(N6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}_le(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),k6.delete(this)}cancel(){this.state===`scheduled`&&(k6.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Ele=e=>e.startsWith(`--`);function I6(e,t,n){Ele(t)?e.style.setProperty(t,n):e.style[t]=n}var Dle={};function L6(e,t){let n=L4(e);return()=>Dle[t]??n()}var Ole=L6(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),R6=L6(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),z6=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,B6={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:z6([0,.65,.55,1]),circOut:z6([.55,0,1,.45]),backIn:z6([.31,.01,.66,-.59]),backOut:z6([.33,1.53,.69,.99])};function V6(e,t){if(e)return typeof e==`function`?R6()?Q3(e,t):`ease-out`:a3(e)?z6(e):Array.isArray(e)?e.map(e=>V6(e,t)||B6.easeOut):B6[e]}function kle(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=V6(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function H6(e){return typeof e==`function`&&`applyToOptions`in e}function Ale({type:e,...t}){return H6(e)&&R6()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var U6=class extends h6{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Ale(e);this.animation=kle(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=p6(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),I6(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return U4(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U4(e)}get time(){return U4(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H4(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ole()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),R4):r(this)}},W6={anticipate:Q4,backInOut:Z4,circInOut:t3};function jle(e){return e in W6}function Mle(e){typeof e.ease==`string`&&jle(e.ease)&&(e.ease=W6[e.ease])}var G6=10,Nle=class extends U6{constructor(e){Mle(e),m6(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new g6({...a,autoplay:!1}),s=Math.max(G6,h3.now()-this.startTime),c=M4(0,G6,s-G6),l=o.sample(s).value,{name:u}=this.options;i&&u&&I6(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},K6=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V3.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ple(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Fle(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=K6(i,t),s=K6(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Ple(e)||(n===`spring`||H6(n))&&r}function q6(e){e.duration=0,e.type=`keyframes`}var J6=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ile=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lle(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ile.test(e[t]))return!0;return!1}var Rle=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zle=L4(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ble(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return zle()&&n&&(J6.has(n)||Rle.has(n)&&Lle(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vle=40,Hle=class extends h6{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=h3.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||F6;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=h3.now();let u=!0;Fle(e,i,a,o)||(u=!1,(N4.instantAnimations||!s)&&l?.(p6(e,n,t)),e[0]=e[e.length-1],q6(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vle?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ble(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Nle({...d,element:p})}catch{m=new g6(d)}else m=new g6(d);m.finished.then(()=>{this.notifyFinished()}).catch(R4),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Tle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Ule=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Y6(this.animations,`duration`)}get iterationDuration(){return Y6(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Y6(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Wle=class extends Ule{then(e,t){return this.finished.finally(e).then(()=>{})}};function X6(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Z6=30,Gle=e=>!isNaN(parseFloat(e)),Q6={current:void 0},Kle=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=h3.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=h3.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gle(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new V4);let n=this.events[e].add(t);return e===`change`?()=>{n(),u3.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Q6.current&&Q6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=h3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Z6)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Z6);return W4(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function $6(e,t){return new Kle(e,t)}function e8(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function t8(e,t){let n=e?.[t]??e?.default??e;return n===e?n:e8(n,e)}var qle={type:`spring`,stiffness:500,damping:25,restSpeed:10},Jle=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yle={type:`keyframes`,duration:.8},Xle={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Zle=(e,{keyframes:t})=>t.length>2?Yle:E6.has(e)?e.startsWith(`scale`)?Jle(t[1]):qle:Xle,Qle=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function $le(e){for(let t in e)if(!Qle.has(t))return!0;return!1}var n8=(e,t,n,r={},i,a)=>o=>{let s=t8(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=H4(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};$le(s)||Object.assign(u,Zle(e,u)),u.duration&&=H4(u.duration),u.repeatDelay&&=H4(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(q6(u),u.delay===0&&(d=!0)),(N4.instantAnimations||N4.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,q6(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=p6(u.keyframes,s);if(e!==void 0){u3.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new g6(u):new Hle(u)},eue=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tue(e){let t=eue.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function r8(e,t,n=1){`${e}`;let[r,i]=tue(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return P4(e)?parseFloat(e):e}return v3(i)?r8(i,t,n+1):i}function i8(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a8(e,t,n,r){if(typeof t==`function`){let[i,a]=i8(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=i8(r);t=t(n===void 0?e.custom:n,i,a)}return t}function o8(e,t,n){let r=e.getProps();return a8(r,t,n===void 0?r.custom:n,e)}var s8=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...T6]),c8=e=>Array.isArray(e);function nue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$6(n))}function rue(e){return c8(e)?e[e.length-1]||0:e}function l8(e,t){let{transitionEnd:n={},transition:r={},...i}=o8(e,t)||{};i={...i,...n};for(let t in i)nue(e,t,rue(i[t]))}var u8=e=>!!(e&&e.getVelocity);function iue(e){return!!(u8(e)&&e.add)}function d8(e,t){let n=e.getValue(`willChange`);if(iue(n))return n.add(t);if(!n&&N4.WillChange){let n=new N4.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function f8(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var p8=`data-`+f8(`framerAppearId`);function m8(e){return e.props[p8]}function aue({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function h8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?e8(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&aue(f,t))continue;let o={delay:n,...t8(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){u3.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=m8(e);if(n){let e=window.MotionHandoffAnimation(n,t,u3);e!==null&&(o.startTime=e,p=!0)}}d8(e,t);let m=l??e.shouldReduceMotion;r.start(n8(t,r,i,m&&s8.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>u3.update(()=>{o&&l8(e,o)});d.length?Promise.all(d).then(t):t()}return d}function g8(e,t,n={}){let r=o8(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(h8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return oue(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function oue(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(g8(c,t,{...o,delay:n+(typeof r==`function`?0:r)+X6(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function _8(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>g8(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=g8(e,t,n);else{let i=typeof t==`function`?o8(e,t,n.custom):t;r=Promise.all(h8(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var sue={test:e=>e===`auto`,parse:e=>e},v8=e=>t=>t.test(e),y8=[b3,$,M3,j3,Rce,Lce,sue],b8=e=>y8.find(v8(e));function cue(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||I4(e)}var lue=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function uue(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(w3)||[];if(!r)return e;let i=n.replace(r,``),a=+!!lue.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var due=/\b([a-z-]*)\(.*?\)/gu,x8={...V3,getAnimatableNone:e=>{let t=e.match(due);return t?t.map(uue).join(` `):e}},S8={...V3,getAnimatableNone:e=>{let t=V3.parse(e);return V3.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},C8={...b3,transform:Math.round},w8={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,inset:$,insetBlock:$,insetBlockStart:$,insetBlockEnd:$,insetInline:$,insetInlineStart:$,insetInlineEnd:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,paddingBlock:$,paddingBlockStart:$,paddingBlockEnd:$,paddingInline:$,paddingInlineStart:$,paddingInlineEnd:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,marginBlock:$,marginBlockStart:$,marginBlockEnd:$,marginInline:$,marginInlineStart:$,marginInlineEnd:$,fontSize:$,backgroundPositionX:$,backgroundPositionY:$,rotate:j3,pathRotation:j3,rotateX:j3,rotateY:j3,rotateZ:j3,scale:S3,scaleX:S3,scaleY:S3,scaleZ:S3,skew:j3,skewX:j3,skewY:j3,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:x3,originX:N3,originY:N3,originZ:$,zIndex:C8,fillOpacity:x3,strokeOpacity:x3,numOctaves:C8},fue={...w8,color:F3,backgroundColor:F3,outlineColor:F3,fill:F3,stroke:F3,borderColor:F3,borderTopColor:F3,borderRightColor:F3,borderBottomColor:F3,borderLeftColor:F3,filter:x8,WebkitFilter:x8,mask:S8,WebkitMask:S8},T8=e=>fue[e],pue=new Set([x8,S8]);function E8(e,t){let n=T8(e);return pue.has(n)||(n=V3),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var mue=new Set([`auto`,`none`,`0`]);function hue(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!mue.has(t)&&z3(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=E8(n,i)}var gue=class extends F6{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),v3(r))){let i=r8(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!s8.has(n)||e.length!==2)return;let[r,i]=e,a=b8(r),o=b8(i);if(y3(r)!==y3(i)&&O6[n]){this.needsMeasurement=!0;return}if(a!==o)if(D6(a)&&D6(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else O6[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||cue(e[t]))&&n.push(t);n.length&&hue(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=O6[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=O6[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},D8=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function O8(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var k8=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function A8(e){return F4(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:j8,cancel:_ue}=l3(queueMicrotask,!1),M8={x:!1,y:!1};function N8(){return M8.x||M8.y}function vue(e){return e===`x`||e===`y`?M8[e]?null:(M8[e]=!0,()=>{M8[e]=!1}):M8.x||M8.y?null:(M8.x=M8.y=!0,()=>{M8.x=M8.y=!1})}function P8(e,t){let n=O8(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function yue(e){return!(e.pointerType===`touch`||N8())}function bue(e,t,n={}){let[r,i,a]=P8(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!yue(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var F8=(e,t)=>t?e===t?!0:F8(e,t.parentElement):!1,I8=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,xue=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Sue(e){return xue.has(e.tagName)||e.isContentEditable===!0}var Cue=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function wue(e){return Cue.has(e.tagName)||e.isContentEditable===!0}var L8=new WeakSet;function R8(e){return t=>{t.key===`Enter`&&e(t)}}function z8(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Tue=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=R8(()=>{if(L8.has(n))return;z8(n,`down`);let e=R8(()=>{z8(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>z8(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function B8(e){return I8(e)&&!N8()}var V8=new WeakSet;function Eue(e,t,n={}){let[r,i,a]=P8(e,n),o=e=>{let r=e.currentTarget;if(!B8(e)||V8.has(e))return;L8.add(r),n.stopPropagation&&V8.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),L8.has(r)&&L8.delete(r),B8(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||F8(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),A8(e)&&(e.addEventListener(`focus`,e=>Tue(e,i)),!Sue(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function H8(e){return F4(e)&&`ownerSVGElement`in e}var U8=new WeakMap,W8,G8=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:H8(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Due=G8(`inline`,`width`,`offsetWidth`),Oue=G8(`block`,`height`,`offsetHeight`);function kue({target:e,borderBoxSize:t}){U8.get(e)?.forEach(n=>{n(e,{get width(){return Due(e,t)},get height(){return Oue(e,t)}})})}function Aue(e){e.forEach(kue)}function jue(){typeof ResizeObserver>`u`||(W8=new ResizeObserver(Aue))}function Mue(e,t){W8||jue();let n=O8(e);return n.forEach(e=>{let n=U8.get(e);n||(n=new Set,U8.set(e,n)),n.add(t),W8?.observe(e)}),()=>{n.forEach(e=>{let n=U8.get(e);n?.delete(t),n?.size||W8?.unobserve(e)})}}var K8=new Set,q8;function Nue(){q8=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};K8.forEach(t=>t(e))},window.addEventListener(`resize`,q8)}function Pue(e){return K8.add(e),q8||Nue(),()=>{K8.delete(e),!K8.size&&typeof q8==`function`&&(window.removeEventListener(`resize`,q8),q8=void 0)}}function J8(e,t){return typeof e==`function`?Pue(e):Mue(e,t)}var Y8={value:null,addProjectionMetrics:null};function X8(e){return H8(e)&&e.tagName===`svg`}function Fue(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=l6(i,a,o);return t?s(r):s}function Iue(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=Q8(e.get()),r=Q8(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new g6({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(Z8(e,s)),u3.postRender(u)},c),u8(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Z8(t,s),!1)):e.set(Z8(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function Z8(e,t){return t?e+t:e}function Q8(e){return typeof e==`number`?e:parseFloat(e)}var Lue=[...y8,F3,V3],Rue=e=>Lue.find(v8(e)),$8=()=>({translate:0,scale:1,origin:0,originPoint:0}),e5=()=>({x:$8(),y:$8()}),t5=()=>({min:0,max:0}),n5=()=>({x:t5(),y:t5()}),r5=new WeakMap;function i5(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function a5(e){return typeof e==`string`||Array.isArray(e)}var o5=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],s5=[`initial`,...o5];function c5(e){return i5(e.animate)||s5.some(t=>a5(e[t]))}function l5(e){return!!(c5(e)||e.variants)}function zue(e,t,n){for(let r in t){let i=t[r],a=n[r];if(u8(i))e.addValue(r,i);else if(u8(a))e.addValue(r,$6(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,$6(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var u5={current:null},d5={current:!1},Bue=typeof window<`u`;function f5(){if(d5.current=!0,Bue)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>u5.current=e.matches;e.addEventListener(`change`,t),t()}else u5.current=!1}var p5=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],m5={};function h5(e){m5=e}function Vue(){return m5}var g5=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=F6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=h3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,u3.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=c5(t),this.isVariantNode=l5(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&u8(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,r5.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(d5.current||f5(),this.shouldReduceMotion=u5.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),d3(this.notifyUpdate),d3(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&J6.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new U6({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:H4(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=E6.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&u3.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in m5){let t=m5[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n5()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<p5.length;t++){let n=p5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=zue(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=$6(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(P4(n)||I4(n))?n=parseFloat(n):!Rue(n)&&V3.test(t)&&(n=E8(e,t)),this.setBaseTarget(e,u8(n)?n.get():n)),u8(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=a8(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!u8(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new V4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){j8.render(this.render)}},_5=class extends g5{constructor(){super(...arguments),this.KeyframeResolver=gue}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;u8(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},v5=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function y5({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Uue(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function b5(e){return e===void 0||e===1}function x5({scale:e,scaleX:t,scaleY:n}){return!b5(e)||!b5(t)||!b5(n)}function S5(e){return x5(e)||C5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function C5(e){return w5(e.x)||w5(e.y)}function w5(e){return e&&e!==`0%`}function T5(e,t,n){return n+t*(e-n)}function E5(e,t,n,r,i){return i!==void 0&&(e=T5(e,i,r)),T5(e,n,r)+t}function D5(e,t=0,n=1,r,i){e.min=E5(e.min,t,n,r,i),e.max=E5(e.max,t,n,r,i)}function O5(e,{x:t,y:n}){D5(e.x,t.translate,t.scale,t.originPoint),D5(e.y,n.translate,n.scale,n.originPoint)}var k5=.999999999999,A5=1.0000000000001;function Wue(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(j5(e.x,-a.scroll.offset.x),j5(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,O5(e,o)),r&&S5(a.latestValues)&&P5(e,a.latestValues,a.layout?.layoutBox))}t.x<A5&&t.x>k5&&(t.x=1),t.y<A5&&t.y>k5&&(t.y=1)}function j5(e,t){e.min+=t,e.max+=t}function M5(e,t,n,r,i=.5){D5(e,t,n,W3(e.min,e.max,i),r)}function N5(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function P5(e,t,n){let r=n??e;M5(e.x,N5(t.x,r.x),t.scaleX,t.scale,t.originX),M5(e.y,N5(t.y,r.y),t.scaleY,t.scale,t.originY)}function F5(e,t){return y5(Uue(e.getBoundingClientRect(),t))}function Gue(e,t,n){let r=F5(e,n),{scroll:i}=t;return i&&(j5(r.x,i.offset.x),j5(r.y,i.offset.y)),r}var Kue={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},que=T6.length;function Jue(e,t,n){let r=``,i=!0;for(let a=0;a<que;a++){let o=T6[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=k8(s,w8[o]);if(!c){i=!1;let t=Kue[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${k8(a,w8.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function I5(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(E6.has(e)){o=!0;continue}else if(_3(e)){i[e]=n;continue}else{let t=k8(n,w8[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Jue(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function L5(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function R5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var z5={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if($.test(e))e=parseFloat(e);else return e;return`${R5(e,t.target.x)}% ${R5(e,t.target.y)}%`}},Yue={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V3.parse(e);if(i.length>5)return r;let a=V3.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=W3(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},B5={borderRadius:{...z5,applyTo:[...D8]},borderTopLeftRadius:z5,borderTopRightRadius:z5,borderBottomLeftRadius:z5,borderBottomRightRadius:z5,boxShadow:Yue};function V5(e,{layout:t,layoutId:n}){return E6.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!B5[e]||e===`opacity`)}function H5(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(u8(r[t])||i&&u8(i[t])||V5(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Xue(e){return window.getComputedStyle(e)}var U5=class extends _5{constructor(){super(...arguments),this.type=`html`,this.renderInstance=L5}readValueFromInstance(e,t){if(E6.has(t))return this.projection?.isProjecting?C6(t):ble(e,t);{let n=Xue(e),r=(_3(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return F5(e,t)}build(e,t,n){I5(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return H5(e,t,n)}};function Zue(e,t){return e in t}var Que=class extends g5{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Zue(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return n5()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},$ue={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ede={offset:`strokeDashoffset`,array:`strokeDasharray`};function tde(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?$ue:ede;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var nde=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function W5(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(I5(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of nde)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&tde(d,i,a,o,!1)}var G5=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`]),K5=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function rde(e,t,n,r){L5(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(G5.has(n)?n:f8(n),t.attrs[n])}function q5(e,t,n){let r=H5(e,t,n);for(let n in e)if(u8(e[n])||u8(t[n])){let t=T6.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var J5=class extends _5{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=n5}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(E6.has(t)){let e=T8(t);return e&&e.default||0}return t=G5.has(t)?t:f8(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return q5(e,t,n)}build(e,t,n){W5(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){rde(e,t,n,r)}mount(e){this.isSVGTag=K5(e.tagName),super.mount(e)}},ide=s5.length;function Y5(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Y5(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ide;n++){let r=s5[n],i=e.props[r];(a5(i)||i===!1)&&(t[r]=i)}return t}function X5(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ade=[...o5].reverse(),ode=o5.length;function sde(e){return t=>Promise.all(t.map(({animation:t,options:n})=>_8(e,t,n)))}function cde(e){let t=sde(e),n=Q5(),r=!0,i=!1,a=t=>(n,r)=>{let i=o8(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Y5(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<ode;t++){let p=ade[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=a5(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||i5(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=lde(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=c8(t)&&c8(n)?!X5(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=o8(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=X6(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=o8(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Q5(),i=!0}}}function lde(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!X5(t,e):!1}function Z5(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Q5(){return{animate:Z5(!0),whileInView:Z5(),whileHover:Z5(),whileTap:Z5(),whileDrag:Z5(),whileFocus:Z5(),exit:Z5()}}function $5(e,t){e.min=t.min,e.max=t.max}function e7(e,t){$5(e.x,t.x),$5(e.y,t.y)}function t7(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var n7=1e-4,ude=1-n7,dde=1+n7,r7=.01,fde=0-r7,pde=0+r7;function i7(e){return e.max-e.min}function mde(e,t,n){return Math.abs(e-t)<=n}function a7(e,t,n,r=.5){e.origin=r,e.originPoint=W3(t.min,t.max,e.origin),e.scale=i7(n)/i7(t),e.translate=W3(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ude&&e.scale<=dde||isNaN(e.scale))&&(e.scale=1),(e.translate>=fde&&e.translate<=pde||isNaN(e.translate))&&(e.translate=0)}function o7(e,t,n,r){a7(e.x,t.x,n.x,r?r.originX:void 0),a7(e.y,t.y,n.y,r?r.originY:void 0)}function s7(e,t,n,r=0){e.min=(r?W3(n.min,n.max,r):n.min)+t.min,e.max=e.min+i7(t)}function hde(e,t,n,r){s7(e.x,t.x,n.x,r?.x),s7(e.y,t.y,n.y,r?.y)}function c7(e,t,n,r=0){let i=r?W3(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+i7(t)}function l7(e,t,n,r){c7(e.x,t.x,n.x,r?.x),c7(e.y,t.y,n.y,r?.y)}function u7(e,t,n,r,i){return e-=t,e=T5(e,1/n,r),i!==void 0&&(e=T5(e,1/i,r)),e}function gde(e,t=0,n=1,r=.5,i,a=e,o=e){if(M3.test(t)&&(t=parseFloat(t),t=W3(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=W3(a.min,a.max,r);e===a&&(s-=t),e.min=u7(e.min,t,n,s,i),e.max=u7(e.max,t,n,s,i)}function d7(e,t,[n,r,i],a,o){gde(e,t[n],t[r],t[i],t.scale,a,o)}var _de=[`x`,`scaleX`,`originX`],vde=[`y`,`scaleY`,`originY`];function f7(e,t,n,r){d7(e.x,t,_de,n?n.x:void 0,r?r.x:void 0),d7(e.y,t,vde,n?n.y:void 0,r?r.y:void 0)}function p7(e){return e.translate===0&&e.scale===1}function m7(e){return p7(e.x)&&p7(e.y)}function h7(e,t){return e.min===t.min&&e.max===t.max}function yde(e,t){return h7(e.x,t.x)&&h7(e.y,t.y)}function g7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _7(e,t){return g7(e.x,t.x)&&g7(e.y,t.y)}function v7(e){return i7(e.x)/i7(e.y)}function y7(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function b7(e){return[e(`x`),e(`y`)]}function bde(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var xde=D8.length,x7=e=>typeof e==`string`?parseFloat(e):e,S7=e=>typeof e==`number`||$.test(e);function Sde(e,t,n,r,i,a){i?(e.opacity=W3(0,n.opacity??1,Cde(r)),e.opacityExit=W3(t.opacity??1,0,wde(r))):a&&(e.opacity=W3(t.opacity??1,n.opacity??1,r));for(let i=0;i<xde;i++){let a=D8[i],o=C7(t,a),s=C7(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||S7(o)===S7(s)?(e[a]=Math.max(W3(x7(o),x7(s),r),0),(M3.test(s)||M3.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=W3(t.rotate||0,n.rotate||0,r))}function C7(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Cde=w7(0,.5,e3),wde=w7(.5,.95,R4);function w7(e,t,n){return r=>r<e?0:r>t?1:n(B4(e,t,r))}function T7(e,t,n){let r=u8(e)?e:$6(e);return r.start(n8(``,r,t,n)),r.animation}function E7(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Tde=(e,t)=>e.depth-t.depth,Ede=class{constructor(){this.children=[],this.isDirty=!1}add(e){A4(this.children,e),this.isDirty=!0}remove(e){j4(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tde),this.isDirty=!1,this.children.forEach(e)}};function Dde(e,t){let n=h3.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(d3(r),e(a-t))};return u3.setup(r,!0),()=>d3(r)}function D7(e){return u8(e)?e.get():e}var Ode=class{constructor(){this.members=[]}add(e){A4(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(j4(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(j4(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},O7={hasAnimatedSinceResize:!0,hasEverUpdated:!1},k7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},A7=[``,`X`,`Y`,`Z`],kde=1e3,Ade=0;function j7(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function M7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=m8(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,u3,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&M7(r)}function N7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ade++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Y8.value&&(k7.nodes=k7.calculatedTargetDeltas=k7.calculatedProjections=0),this.nodes.forEach(Nde),this.nodes.forEach(zde),this.nodes.forEach(Bde),this.nodes.forEach(Pde),Y8.addProjectionMetrics&&Y8.addProjectionMetrics(k7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ede)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new V4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=H8(t)&&!X8(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;u3.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Dde(i,250),O7.hasAnimatedSinceResize&&(O7.hasAnimatedSinceResize=!1,this.nodes.forEach(I7)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Gde,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!_7(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t8(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||I7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),d3(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Vde),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&M7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Ide),this.nodes.forEach(P7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(F7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Lde),this.nodes.forEach(Rde),this.nodes.forEach(jde),this.nodes.forEach(Mde)):this.nodes.forEach(F7),this.clearAllSnapshots();let e=h3.now();f3.delta=M4(0,1e3/60,e-f3.timestamp),f3.timestamp=e,f3.isProcessing=!0,p3.update.process(f3),p3.preRender.process(f3),p3.render.process(f3),f3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,j8.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fde),this.sharedNodes.forEach(Hde)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,u3.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){u3.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!i7(this.snapshot.measuredBox.x)&&!i7(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=n5(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!m7(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||S5(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Kde(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return n5();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qde))){let{scroll:e}=this.root;e&&(j5(t.x,e.offset.x),j5(t.y,e.offset.y))}return t}removeElementScroll(e){let t=n5();if(e7(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&e7(t,e),j5(t.x,i.offset.x),j5(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||n5();e7(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(j5(r.x,-n.scroll.offset.x),j5(r.y,-n.scroll.offset.y)),S5(n.latestValues)&&P5(r,n.latestValues,n.layout?.layoutBox)}return S5(this.latestValues)&&P5(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=n5();e7(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!S5(n.latestValues))continue;let r;n.instance&&(x5(n.latestValues)&&n.updateSnapshot(),r=n5(),e7(r,n.measurePageBox())),f7(t,n.latestValues,n.snapshot?.layoutBox,r)}return S5(this.latestValues)&&f7(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==f3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=f3.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=n5(),this.targetWithTransforms=n5()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hde(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):e7(this.target,this.layout.layoutBox),O5(this.target,this.targetDelta)):e7(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Y8.value&&k7.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||x5(this.parent.latestValues)||C5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n5(),this.relativeTargetOrigin=n5(),l7(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),e7(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===f3.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;e7(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Wue(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=n5());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(t7(this.prevProjectionDelta.x,this.projectionDelta.x),t7(this.prevProjectionDelta.y,this.projectionDelta.y)),o7(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!y7(this.projectionDelta.x,this.prevProjectionDelta.x)||!y7(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Y8.value&&k7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e5(),this.projectionDelta=e5(),this.projectionDeltaWithTransform=e5()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=e5();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=n5(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Wde));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=W3(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=W3(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(L7(o.x,e.x,n),L7(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(l7(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ude(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&yde(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=n5(),e7(f,this.relativeTarget)),c&&(this.animationValues=a,Sde(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(d3(this.pendingAnimation),void 0),this.pendingAnimation=u3.update(()=>{O7.hasAnimatedSinceResize=!0,this.motionValue||=$6(0),this.motionValue.jump(0,!1),this.currentAnimation=T7(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kde),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&H7(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n5();let t=i7(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=i7(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}e7(t,n),P5(t,i),o7(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ode),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&j7(`z`,e,r,this.animationValues);for(let t=0;t<A7.length;t++)j7(`rotate${A7[t]}`,e,r,this.animationValues),j7(`skew${A7[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=D7(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=D7(t?.pointerEvents)||``),this.hasProjected&&!S5(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=bde(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in B5){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=B5[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?D7(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(P7),this.root.sharedNodes.clear()}}}function jde(e){e.updateLayout()}function Mde(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)b7(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=i7(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;$5(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else H7(i,t.layoutBox,n)&&b7(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=i7(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=e5();o7(o,n,t.layoutBox);let s=e5();a?o7(s,e.applyTransform(r,!0),t.measuredBox):o7(s,n,t.layoutBox);let c=!m7(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=n5();l7(s,t.layoutBox,i.layoutBox,o);let c=n5();l7(c,n,a.layoutBox,o),_7(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Nde(e){Y8.value&&k7.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Pde(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fde(e){e.clearSnapshot()}function P7(e){e.clearMeasurements()}function Ide(e){e.isLayoutDirty=!0,e.updateLayout()}function F7(e){e.isLayoutDirty=!1}function Lde(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Rde(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function I7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zde(e){e.resolveTargetDelta()}function Bde(e){e.calcProjection()}function Vde(e){e.resetSkewAndRotation()}function Hde(e){e.removeLeadSnapshot()}function L7(e,t,n){e.translate=W3(t.translate,0,n),e.scale=W3(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function R7(e,t,n,r){e.min=W3(t.min,n.min,r),e.max=W3(t.max,n.max,r)}function Ude(e,t,n,r){R7(e.x,t.x,n.x,r),R7(e.y,t.y,n.y,r)}function Wde(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Gde={duration:.45,ease:[.4,0,.1,1]},z7=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),B7=z7(`applewebkit/`)&&!z7(`chrome/`)?Math.round:R4;function V7(e){e.min=B7(e.min),e.max=B7(e.max)}function Kde(e){V7(e.x),V7(e.y)}function H7(e,t,n){return e===`position`||e===`preserve-aspect`&&!mde(v7(t),v7(n),.2)}function qde(e){return e!==e.root&&e.scroll?.wasRoot}var Jde=N7({attachResizeListener:(e,t)=>E7(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),U7={current:void 0},W7=N7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!U7.current){let e=new Jde({});e.mount(window),e.setOptions({layoutScroll:!0}),U7.current=e}return U7.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),G7=(0,M.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function K7(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Yde(...e){return t=>{let n=!1,r=e.map(e=>{let r=K7(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():K7(e[t],null)}}}}function Xde(...e){return M.useCallback(Yde(...e),e)}var Zde=class extends M.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(A8(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=A8(e)&&e.offsetWidth||0,r=A8(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Qde({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,M.useId)(),s=(0,M.useRef)(null),c=(0,M.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,M.useContext)(G7),u=Xde(s,e.props?.ref??e?.ref);return(0,M.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
122
122
  [data-motion-pop-id="${o}"] {
123
123
  position: absolute !important;
124
124
  width: ${e}px !important;
@@ -126,4 +126,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
126
126
  ${_}px !important;
127
127
  ${v}px !important;
128
128
  }
129
- `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,N.jsx)(Zde,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:M.cloneElement(e,{ref:u})})}var $de=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=D4(efe),d=(0,M.useId)(),f=(0,M.useRef)(n),p=(0,M.useRef)(r);O4(()=>{f.current=n,p.current=r});let m=!0,h=(0,M.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,M.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),M.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,N.jsx)(Qde,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,N.jsx)(k4.Provider,{value:h,children:e})};function efe(){return new Map}function q7(e=!0){let t=(0,M.useContext)(k4);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,M.useId)();(0,M.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,M.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function tfe(){return nfe((0,M.useContext)(k4))}function nfe(e){return e===null?!0:e.isPresent}var J7=e=>e.key||``;function Y7(e){let t=[];return M.Children.forEach(e,e=>{(0,M.isValidElement)(e)&&t.push(e)}),t}var rfe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=q7(o),f=(0,M.useMemo)(()=>Y7(e),[e]),p=o&&!u?[]:f.map(J7),m=(0,M.useRef)(!0),h=(0,M.useRef)(f),g=D4(()=>new Map),_=(0,M.useRef)(new Set),[v,y]=(0,M.useState)(f),[b,x]=(0,M.useState)(f);O4(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=J7(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=J7(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Y7(e)),y(f),null}let{forceRender:C}=(0,M.useContext)(E4);return(0,N.jsx)(N.Fragment,{children:b.map(e=>{let v=J7(e),y=o&&!u?!1:f===b||p.includes(v);return(0,N.jsx)($de,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},X7=(0,M.createContext)({strict:!1}),Z7={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Q7=!1;function ife(){if(Q7)return;let e={};for(let t in Z7)e[t]={isEnabled:e=>Z7[t].some(t=>!!e[t])};h5(e),Q7=!0}function $7(){return ife(),Vue()}function afe(e){let t=$7();for(let n in e)t[n]={...t[n],...e[n]};h5(t)}var ofe=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function e9(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ofe.has(e)}var sfe=r({default:()=>t9}),t9,cfe=t((()=>{throw t9={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),n9=e=>!e9(e);function lfe(e){typeof e==`function`&&(n9=t=>t.startsWith(`on`)?!e9(t):e(t))}try{lfe((cfe(),e(sfe)).default)}catch{}function ufe(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||u8(e[i])||(n9(i)||n===!0&&e9(i)||!t&&!e9(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var r9=(0,M.createContext)({});function dfe(e,t){if(c5(e)){let{initial:t,animate:n}=e;return{initial:t===!1||a5(t)?t:void 0,animate:a5(n)?n:void 0}}return e.inherit===!1?{}:t}function ffe(e){let{initial:t,animate:n}=dfe(e,(0,M.useContext)(r9));return(0,M.useMemo)(()=>({initial:t,animate:n}),[i9(t),i9(n)])}function i9(e){return Array.isArray(e)?e.join(` `):e}var a9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o9(e,t,n){for(let r in t)!u8(t[r])&&!V5(r,n)&&(e[r]=t[r])}function pfe({transformTemplate:e},t){return(0,M.useMemo)(()=>{let n=a9();return I5(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mfe(e,t){let n=e.style||{},r={};return o9(r,n,e),Object.assign(r,pfe(e,t)),r}function hfe(e,t){let n={},r=mfe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var s9=()=>({...a9(),attrs:{}});function gfe(e,t,n,r){let i=(0,M.useMemo)(()=>{let n=s9();return W5(n,t,K5(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};o9(t,e.style,e),i.style={...t,...i.style}}return i}var _fe=[`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 c9(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(_fe.indexOf(e)>-1||/[A-Z]/u.test(e))}function vfe(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??c9(e)?gfe:hfe)(t,r,i,e),c=ufe(t,typeof e==`string`,a),l=e===M.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,M.useMemo)(()=>u8(u)?u.get():u,[u]);return(0,M.createElement)(e,{...l,children:d})}function yfe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:bfe(n,r,i,e),renderState:t()}}function bfe(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=D7(a[e]);let{initial:o,animate:s}=e,c=c5(e),l=l5(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!i5(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=a8(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var l9=e=>(t,n)=>{let r=(0,M.useContext)(r9),i=(0,M.useContext)(k4),a=()=>yfe(e,t,r,i);return n?a():D4(a)},xfe=l9({scrapeMotionValuesFromProps:H5,createRenderState:a9}),Sfe=l9({scrapeMotionValuesFromProps:q5,createRenderState:s9}),Cfe=Symbol.for(`motionComponentSymbol`);function wfe(e,t,n){let r=(0,M.useRef)(n);(0,M.useInsertionEffect)(()=>{r.current=n});let i=(0,M.useRef)(null);return(0,M.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var u9=(0,M.createContext)({});function d9(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Tfe(e,t,n,r,i,a){let{visualElement:o}=(0,M.useContext)(r9),s=(0,M.useContext)(X7),c=(0,M.useContext)(k4),l=(0,M.useContext)(G7),u=l.reducedMotion,d=l.skipAnimations,f=(0,M.useRef)(null),p=(0,M.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,M.useContext)(u9);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Efe(f.current,n,i,h);let g=(0,M.useRef)(!1);(0,M.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[p8],v=(0,M.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return O4(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,M.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Efe(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:f9(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&d9(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function f9(e){if(e)return e.options.allowProjection===!1?f9(e.parent):e.projection}function p9(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&afe(r);let a=n?n===`svg`:c9(e),o=a?Sfe:xfe;function s(n,s){let c,l={...(0,M.useContext)(G7),...n,layoutId:Dfe(n)},{isStatic:u}=l,d=ffe(n),f=o(n,u);if(!u&&typeof window<`u`){Ofe(l,r);let t=kfe(l);c=t.MeasureLayout,d.visualElement=Tfe(e,f,l,i,t.ProjectionNode,a)}return(0,N.jsxs)(r9.Provider,{value:d,children:[c&&d.visualElement?(0,N.jsx)(c,{visualElement:d.visualElement,...l}):null,vfe(e,n,wfe(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,M.forwardRef)(s);return c[Cfe]=e,c}function Dfe({layoutId:e}){let t=(0,M.useContext)(E4).id;return t&&e!==void 0?t+`-`+e:e}function Ofe(e,t){(0,M.useContext)(X7).strict}function kfe(e){let{drag:t,layout:n}=$7();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Afe(e,t){if(typeof Proxy>`u`)return p9;let n=new Map,r=(n,r)=>p9(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,p9(a,void 0,e,t)),n.get(a))})}var jfe=(e,t)=>t.isSVG??c9(e)?new J5(t):new U5(t,{allowProjection:e!==M.Fragment}),Mfe=class extends v5{constructor(e){super(e),e.animationState||=cde(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i5(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Nfe=0,Pfe={animation:{Feature:Mfe},exit:{Feature:class extends v5{constructor(){super(...arguments),this.id=Nfe++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=o8(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function m9(e){return{point:{x:e.pageX,y:e.pageY}}}var Ffe=e=>t=>I8(t)&&e(t,m9(t));function h9(e,t,n,r){return E7(e,t,Ffe(n),r)}var g9=({current:e})=>e?e.ownerDocument.defaultView:null,_9=(e,t)=>Math.abs(e-t);function Ife(e,t){let n=_9(e.x,t.x),r=_9(e.y,t.y);return Math.sqrt(n**2+r**2)}var v9=new Set([`auto`,`scroll`]),y9=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=b9(this.lastRawMoveEventInfo,this.transformPagePoint));let e=S9(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Ife(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=f3;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=b9(t,this.transformPagePoint),u3.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=S9(e.type===`pointercancel`?this.lastMoveEventInfo:b9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!I8(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=b9(m9(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=f3;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,S9(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=z4(h9(this.contextWindow,`pointermove`,this.handlePointerMove,d),h9(this.contextWindow,`pointerup`,this.handlePointerUp,d),h9(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(v9.has(e.overflowX)||v9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),u3.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),d3(this.updatePoint)}};function b9(e,t){return t?{point:t(e.point)}:e}function x9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function S9({point:e},t){return{point:e,delta:x9(e,C9(t)),offset:x9(e,Lfe(t)),velocity:Rfe(t,.1)}}function Lfe(e){return e[0]}function C9(e){return e[e.length-1]}function Rfe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=C9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>H4(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>H4(t)*2&&(r=e[1]);let a=U4(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function zfe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W3(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W3(n,e,r.max):Math.min(e,n)),e}function w9(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Bfe(e,{top:t,left:n,bottom:r,right:i}){return{x:w9(e.x,n,i),y:w9(e.y,t,r)}}function T9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Vfe(e,t){return{x:T9(e.x,t.x),y:T9(e.y,t.y)}}function Hfe(e,t){let n=.5,r=i7(e),i=i7(t);return i>r?n=B4(t.min,t.max-r,e.min):r>i&&(n=B4(e.min,e.max-i,t.min)),M4(0,1,n)}function Ufe(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var E9=.35;function Wfe(e=E9){return e===!1?e=0:e===!0&&(e=E9),{x:D9(e,`left`,`right`),y:D9(e,`top`,`bottom`)}}function D9(e,t,n){return{min:O9(e,t),max:O9(e,n)}}function O9(e,t){return typeof e==`number`?e:e[t]||0}var Gfe=new WeakMap,Kfe=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n5(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(m9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vue(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),b7(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M3.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=i7(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&u3.update(()=>i(e,t),!1,!0),d8(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Jfe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&u3.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new y9(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:g9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&u3.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!A9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=zfe(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&d9(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Bfe(n.layoutBox,e):this.constraints=!1,this.elastic=Wfe(t),r!==this.constraints&&!d9(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&b7(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ufe(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!d9(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Gue(n,r.root,this.visualElement.getTransformPagePoint()),a=Vfe(r.layout.layoutBox,i);if(t){let e=t(Hue(a));this.hasMutatedConstraints=!!e,e&&(a=y5(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=b7(o=>{if(!A9(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return d8(this.visualElement,e),n.start(n8(e,n,0,t,this.visualElement,!1))}stopAnimation(){b7(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){b7(t=>{let{drag:n}=this.getProps();if(!A9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-W3(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!d9(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};b7(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Hfe({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),b7(t=>{if(!A9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(W3(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Gfe.set(this.visualElement,this);let e=this.visualElement.current,t=h9(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&wue(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();d9(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=qfe(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),u3.read(r);let o=E7(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(b7(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=E9,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function k9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function qfe(e,t,n){let r=J8(e,k9(n)),i=J8(t,k9(n));return()=>{r(),i()}}function A9(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jfe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Yfe=class extends v5{constructor(e){super(e),this.removeGroupControls=R4,this.removeListeners=R4,this.controls=new Kfe(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R4}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},j9=e=>(t,n)=>{e&&u3.update(()=>e(t,n),!1,!0)},Xfe=class extends v5{constructor(){super(...arguments),this.removePointerDownListener=R4}onPointerDown(e){this.session=new y9(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:j9(e),onStart:j9(t),onMove:j9(n),onEnd:(e,t)=>{delete this.session,r&&u3.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h9(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},M9=!1,Zfe=class extends M.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),M9&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),O7.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),M9=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||u3.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),j8.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;M9=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function N9(e){let[t,n]=q7(),r=(0,M.useContext)(E4);return(0,N.jsx)(Zfe,{...e,layoutGroup:r,switchLayoutGroup:(0,M.useContext)(u9),isPresent:t,safeToRemove:n})}var Qfe={pan:{Feature:Xfe},drag:{Feature:Yfe,ProjectionNode:W7,MeasureLayout:N9}};function P9(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&u3.postRender(()=>i(t,m9(t)))}var $fe=class extends v5{mount(){let{current:e}=this.node;e&&(this.unmount=bue(e,(e,t)=>(P9(this.node,t,`Start`),e=>P9(this.node,e,`End`))))}unmount(){}},epe=class extends v5{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=z4(E7(this.node.current,`focus`,()=>this.onFocus()),E7(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function F9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&u3.postRender(()=>i(t,m9(t)))}var tpe=class extends v5{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Eue(e,(e,t)=>(F9(this.node,t,`Start`),(e,{success:t})=>F9(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},I9=new WeakMap,L9=new WeakMap,npe=e=>{let t=I9.get(e.target);t&&t(e)},rpe=e=>{e.forEach(npe)};function ipe({root:e,...t}){let n=e||document;L9.has(n)||L9.set(n,{});let r=L9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rpe,{root:e,...t})),r[i]}function ape(e,t,n){let r=ipe(t);return I9.set(e,n),r.observe(e),()=>{I9.delete(e),r.unobserve(e)}}var ope={some:0,all:1},spe=class extends v5{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ope[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ape(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(cpe(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function cpe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var lpe={inView:{Feature:spe},tap:{Feature:tpe},focus:{Feature:epe},hover:{Feature:$fe}},upe={layout:{ProjectionNode:W7,MeasureLayout:N9}},dpe=Afe({...Pfe,...lpe,...Qfe,...upe},jfe);function R9(e){let t=D4(()=>$6(e)),{isStatic:n}=(0,M.useContext)(G7);if(n){let[,n]=(0,M.useState)(e);(0,M.useEffect)(()=>t.on(`change`,n),[])}return t}function z9(e,t){let n=R9(t()),r=()=>n.set(t());return r(),O4(()=>{let t=()=>u3.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),d3(r)}}),n}function fpe(e){Q6.current=[],e();let t=z9(Q6.current,e);return Q6.current=void 0,t}function B9(e,t,n,r){if(typeof e==`function`)return fpe(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return ppe(e,t,n,r);let i=typeof t==`function`?t:Fue(t,n,r),a=Array.isArray(e)?V9(e,i):V9([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function V9(e,t){let n=D4(()=>[]);return z9(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function ppe(e,t,n,r){let i=D4(()=>Object.keys(n)),a=D4(()=>({}));for(let o of i)a[o]=B9(e,t,n[o],r);return a}function mpe(e,t={}){let{isStatic:n}=(0,M.useContext)(G7),r=()=>u8(e)?e.get():e;if(n)return B9(r);let i=R9(r());return(0,M.useInsertionEffect)(()=>Iue(i,e,t),[i,JSON.stringify(t)]),i}function hpe(e,t={}){return mpe(e,{type:`spring`,...t})}function gpe(){!d5.current&&f5();let[e]=(0,M.useState)(u5.current);return e}function _pe(e){e.values.forEach(e=>e.stop())}function H9(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&l8(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{H9(e,t)})})}function vpe(e,t){if(Array.isArray(t))return H9(e,t);if(typeof t==`string`)return H9(e,[t]);l8(e,t)}function ype(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(_8(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{vpe(e,t)})},stop(){e.forEach(e=>{_pe(e)})},mount(){return()=>{t.stop()}}};return t}function U9(e){return typeof e==`object`&&!Array.isArray(e)}function W9(e,t,n,r){return e==null?[]:typeof e==`string`&&U9(t)?O8(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function bpe(e,t,n){return e*(t+1)+n*t}function G9(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function xpe(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(j4(e,i),r--)}}function Spe(e,t,n,r,i,a){xpe(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:W3(i,a,r[o]),easing:i3(n,o)})}function Cpe(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function wpe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Tpe=`easeInOut`,K9=20;function Epe(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,G9(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=G9(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Dpe(e),{delay:l=0,times:u=d6(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=H6(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Ape(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=H4(b));let r=t6(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&u6(u,T),c.length===1&&c.unshift(null),m&&`${m}${K9}`,m&&m<K9){let e=b>0?_/b:0;b=bpe(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?J4(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:i3(f,e-1))}Cpe(u,m,e)}let E=w+b;Spe(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(u8(p)){let e=q9(p,s);_(m,h,J9(`default`,e))}else{let e=W9(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=q9(r,s);for(let e in m)_(m[e],Ope(h,e),J9(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(wpe);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(B4(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Tpe)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function q9(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function J9(e,t){return t[e]||(t[e]=[]),t[e]}function Dpe(e){return Array.isArray(e)?e:[e]}function Ope(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var kpe=e=>typeof e==`number`,Ape=e=>e.every(kpe);function jpe(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=H8(e)&&!X8(e)?new J5(t):new U5(t);n.mount(e),r5.set(e,n)}function Mpe(e){let t=new Que({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),r5.set(e,t)}function Npe(e,t){return u8(e)||typeof e==`number`||typeof e==`string`&&!U9(t)}function Y9(e,t,n,r){let i=[];if(Npe(e,t))i.push(T7(e,U9(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=W9(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?jpe:Mpe;r5.has(r)||s(r);let c=r5.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...h8(c,{...t,transition:l},{}))}}return i}function Ppe(e,t,n){let r=[];return Epe(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=$6(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:o6}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Y9(n,e,t))}),r}function Fpe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Ipe(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Fpe(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Ppe(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Y9(e,i,{...c,...r},t)}let l=new Wle(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{j4(t.animations,l)})),l}return i}var Lpe=Ipe();function Rpe(){let e=D4(ype);return O4(e.mount,[]),e}var zpe=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Bpe=()=>new zpe;function Vpe(){return D4(Bpe)}var Hpe=t4(`CameraPreview`,{web:()=>s(()=>import(`./web-BoNmnum3.js`).then(e=>new e.CameraPreviewWeb),[])}),X9=e=>Symbol.iterator in e,Z9=e=>`entries`in e,Q9=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Upe=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Wpe(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:X9(e)&&X9(t)?Z9(e)&&Z9(t)?Q9(e,t):Upe(e,t):Q9({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Gpe(e){let t=M.useRef(void 0);return n=>{let r=e(n);return Wpe(t.current,r)?t.current:t.current=r}}var $9=`/assistant/assets/pdf.worker.min-Dr1KORA9.mjs`;export{uK as $,_l as $n,nx as $t,i1 as A,$ne as An,cw as At,TQ as B,une as Bn,ew as Bt,a4 as C,Ug as Cn,OD as Ct,a0 as D,Og as Dn,aw as Dt,l0 as E,Ag as En,HD as Et,gQ as F,Jp as Fn,$C as Ft,HZ as G,Hl as Gn,ES as Gt,wQ as H,Wp as Hn,eC as Ht,SQ as I,lne as In,lw as It,_K as J,Pl as Jn,Yx as Jt,DQ as K,zl as Kn,gS as Kt,mQ as L,Yp as Ln,uw as Lt,c$ as M,Yne as Mn,tw as Mt,s$ as N,Xne as Nn,ow as Nt,r0 as O,zg as On,nw as Ot,FQ as P,Zne as Pn,sw as Pt,sK as Q,vl as Qn,ax as Qt,kQ as R,Gp as Rn,fw as Rt,n4 as S,Sg as Sn,JD as St,Z2 as T,Vg as Tn,wD as Tt,o$ as U,Kp as Un,lS as Ut,uQ as V,Up as Vn,hC as Vt,NQ as W,bd as Wn,vS as Wt,lK as X,bl as Xn,Xx as Xt,dK as Y,xl as Yn,Jx as Yt,cK as Z,yl as Zn,Yb as Zt,vce as _,Fy as _n,Ut as _r,bD as _t,Rpe as a,Ere as an,bc as ar,yL as at,Tse as b,Ly as bn,KD as bt,hpe as c,jy as cn,$s as cr,Qj as ct,dpe as d,Py as dn,Ms as dr,Vj as dt,Tb as en,hl as er,OW as et,rfe as f,ky as fn,Ca as fr,Cj as ft,T4 as g,Ty as gn,Vr as gr,nA as gt,yce as h,Ny as hn,Mee as hr,OA as ht,Vpe as i,Dre as in,wc as ir,VL as it,a1 as j,Qne as jn,rw as jt,e0 as k,wg as kn,iw as kt,B9 as l,Oy as ln,nc as lr,$j as lt,bce as m,My as mn,Aee as mr,RA as mt,Gpe as n,db as nn,tl as nr,QB as nt,Lpe as o,ub as on,yc as or,eL as ot,tfe as p,Dy as pn,mi as pr,LA as pt,vQ as q,Al as qn,Zx as qt,Hpe as r,Ore as rn,$c as rr,BB as rt,gpe as s,fb as sn,hc as sr,nM as st,$9 as t,Db as tn,nl as tr,WW as tt,R9 as u,Ay as un,Rs as ur,Lj as ut,_ce as v,Iy as vn,zt as vr,AD as vt,t4 as w,Pg as wn,SD as wt,e4 as x,Ey as xn,XD as xt,o4 as y,Ry as yn,TD as yt,LQ as z,qp as zn,dw as zt};
129
+ `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,N.jsx)(Zde,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:M.cloneElement(e,{ref:u})})}var $de=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=D4(efe),d=(0,M.useId)(),f=(0,M.useRef)(n),p=(0,M.useRef)(r);O4(()=>{f.current=n,p.current=r});let m=!0,h=(0,M.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,M.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),M.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,N.jsx)(Qde,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,N.jsx)(k4.Provider,{value:h,children:e})};function efe(){return new Map}function q7(e=!0){let t=(0,M.useContext)(k4);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,M.useId)();(0,M.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,M.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function tfe(){return nfe((0,M.useContext)(k4))}function nfe(e){return e===null?!0:e.isPresent}var J7=e=>e.key||``;function Y7(e){let t=[];return M.Children.forEach(e,e=>{(0,M.isValidElement)(e)&&t.push(e)}),t}var rfe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=q7(o),f=(0,M.useMemo)(()=>Y7(e),[e]),p=o&&!u?[]:f.map(J7),m=(0,M.useRef)(!0),h=(0,M.useRef)(f),g=D4(()=>new Map),_=(0,M.useRef)(new Set),[v,y]=(0,M.useState)(f),[b,x]=(0,M.useState)(f);O4(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=J7(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=J7(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Y7(e)),y(f),null}let{forceRender:C}=(0,M.useContext)(E4);return(0,N.jsx)(N.Fragment,{children:b.map(e=>{let v=J7(e),y=o&&!u?!1:f===b||p.includes(v);return(0,N.jsx)($de,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},X7=(0,M.createContext)({strict:!1}),Z7={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Q7=!1;function ife(){if(Q7)return;let e={};for(let t in Z7)e[t]={isEnabled:e=>Z7[t].some(t=>!!e[t])};h5(e),Q7=!0}function $7(){return ife(),Vue()}function afe(e){let t=$7();for(let n in e)t[n]={...t[n],...e[n]};h5(t)}var ofe=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function e9(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ofe.has(e)}var sfe=r({default:()=>t9}),t9,cfe=t((()=>{throw t9={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),n9=e=>!e9(e);function lfe(e){typeof e==`function`&&(n9=t=>t.startsWith(`on`)?!e9(t):e(t))}try{lfe((cfe(),e(sfe)).default)}catch{}function ufe(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||u8(e[i])||(n9(i)||n===!0&&e9(i)||!t&&!e9(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var r9=(0,M.createContext)({});function dfe(e,t){if(c5(e)){let{initial:t,animate:n}=e;return{initial:t===!1||a5(t)?t:void 0,animate:a5(n)?n:void 0}}return e.inherit===!1?{}:t}function ffe(e){let{initial:t,animate:n}=dfe(e,(0,M.useContext)(r9));return(0,M.useMemo)(()=>({initial:t,animate:n}),[i9(t),i9(n)])}function i9(e){return Array.isArray(e)?e.join(` `):e}var a9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o9(e,t,n){for(let r in t)!u8(t[r])&&!V5(r,n)&&(e[r]=t[r])}function pfe({transformTemplate:e},t){return(0,M.useMemo)(()=>{let n=a9();return I5(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mfe(e,t){let n=e.style||{},r={};return o9(r,n,e),Object.assign(r,pfe(e,t)),r}function hfe(e,t){let n={},r=mfe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var s9=()=>({...a9(),attrs:{}});function gfe(e,t,n,r){let i=(0,M.useMemo)(()=>{let n=s9();return W5(n,t,K5(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};o9(t,e.style,e),i.style={...t,...i.style}}return i}var _fe=[`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 c9(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(_fe.indexOf(e)>-1||/[A-Z]/u.test(e))}function vfe(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??c9(e)?gfe:hfe)(t,r,i,e),c=ufe(t,typeof e==`string`,a),l=e===M.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,M.useMemo)(()=>u8(u)?u.get():u,[u]);return(0,M.createElement)(e,{...l,children:d})}function yfe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:bfe(n,r,i,e),renderState:t()}}function bfe(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=D7(a[e]);let{initial:o,animate:s}=e,c=c5(e),l=l5(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!i5(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=a8(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var l9=e=>(t,n)=>{let r=(0,M.useContext)(r9),i=(0,M.useContext)(k4),a=()=>yfe(e,t,r,i);return n?a():D4(a)},xfe=l9({scrapeMotionValuesFromProps:H5,createRenderState:a9}),Sfe=l9({scrapeMotionValuesFromProps:q5,createRenderState:s9}),Cfe=Symbol.for(`motionComponentSymbol`);function wfe(e,t,n){let r=(0,M.useRef)(n);(0,M.useInsertionEffect)(()=>{r.current=n});let i=(0,M.useRef)(null);return(0,M.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var u9=(0,M.createContext)({});function d9(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Tfe(e,t,n,r,i,a){let{visualElement:o}=(0,M.useContext)(r9),s=(0,M.useContext)(X7),c=(0,M.useContext)(k4),l=(0,M.useContext)(G7),u=l.reducedMotion,d=l.skipAnimations,f=(0,M.useRef)(null),p=(0,M.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,M.useContext)(u9);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Efe(f.current,n,i,h);let g=(0,M.useRef)(!1);(0,M.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[p8],v=(0,M.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return O4(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,M.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Efe(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:f9(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&d9(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function f9(e){if(e)return e.options.allowProjection===!1?f9(e.parent):e.projection}function p9(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&afe(r);let a=n?n===`svg`:c9(e),o=a?Sfe:xfe;function s(n,s){let c,l={...(0,M.useContext)(G7),...n,layoutId:Dfe(n)},{isStatic:u}=l,d=ffe(n),f=o(n,u);if(!u&&typeof window<`u`){Ofe(l,r);let t=kfe(l);c=t.MeasureLayout,d.visualElement=Tfe(e,f,l,i,t.ProjectionNode,a)}return(0,N.jsxs)(r9.Provider,{value:d,children:[c&&d.visualElement?(0,N.jsx)(c,{visualElement:d.visualElement,...l}):null,vfe(e,n,wfe(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,M.forwardRef)(s);return c[Cfe]=e,c}function Dfe({layoutId:e}){let t=(0,M.useContext)(E4).id;return t&&e!==void 0?t+`-`+e:e}function Ofe(e,t){(0,M.useContext)(X7).strict}function kfe(e){let{drag:t,layout:n}=$7();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Afe(e,t){if(typeof Proxy>`u`)return p9;let n=new Map,r=(n,r)=>p9(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,p9(a,void 0,e,t)),n.get(a))})}var jfe=(e,t)=>t.isSVG??c9(e)?new J5(t):new U5(t,{allowProjection:e!==M.Fragment}),Mfe=class extends v5{constructor(e){super(e),e.animationState||=cde(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();i5(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Nfe=0,Pfe={animation:{Feature:Mfe},exit:{Feature:class extends v5{constructor(){super(...arguments),this.id=Nfe++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=o8(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function m9(e){return{point:{x:e.pageX,y:e.pageY}}}var Ffe=e=>t=>I8(t)&&e(t,m9(t));function h9(e,t,n,r){return E7(e,t,Ffe(n),r)}var g9=({current:e})=>e?e.ownerDocument.defaultView:null,_9=(e,t)=>Math.abs(e-t);function Ife(e,t){let n=_9(e.x,t.x),r=_9(e.y,t.y);return Math.sqrt(n**2+r**2)}var v9=new Set([`auto`,`scroll`]),y9=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=b9(this.lastRawMoveEventInfo,this.transformPagePoint));let e=S9(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Ife(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=f3;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=b9(t,this.transformPagePoint),u3.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=S9(e.type===`pointercancel`?this.lastMoveEventInfo:b9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!I8(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=b9(m9(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=f3;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,S9(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=z4(h9(this.contextWindow,`pointermove`,this.handlePointerMove,d),h9(this.contextWindow,`pointerup`,this.handlePointerUp,d),h9(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(v9.has(e.overflowX)||v9.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),u3.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),d3(this.updatePoint)}};function b9(e,t){return t?{point:t(e.point)}:e}function x9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function S9({point:e},t){return{point:e,delta:x9(e,C9(t)),offset:x9(e,Lfe(t)),velocity:Rfe(t,.1)}}function Lfe(e){return e[0]}function C9(e){return e[e.length-1]}function Rfe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=C9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>H4(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>H4(t)*2&&(r=e[1]);let a=U4(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function zfe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?W3(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?W3(n,e,r.max):Math.min(e,n)),e}function w9(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Bfe(e,{top:t,left:n,bottom:r,right:i}){return{x:w9(e.x,n,i),y:w9(e.y,t,r)}}function T9(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Vfe(e,t){return{x:T9(e.x,t.x),y:T9(e.y,t.y)}}function Hfe(e,t){let n=.5,r=i7(e),i=i7(t);return i>r?n=B4(t.min,t.max-r,e.min):r>i&&(n=B4(e.min,e.max-i,t.min)),M4(0,1,n)}function Ufe(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var E9=.35;function Wfe(e=E9){return e===!1?e=0:e===!0&&(e=E9),{x:D9(e,`left`,`right`),y:D9(e,`top`,`bottom`)}}function D9(e,t,n){return{min:O9(e,t),max:O9(e,n)}}function O9(e,t){return typeof e==`number`?e:e[t]||0}var Gfe=new WeakMap,Kfe=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n5(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(m9(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vue(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),b7(e=>{let t=this.getAxisMotionValue(e).get()||0;if(M3.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=i7(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&u3.update(()=>i(e,t),!1,!0),d8(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Jfe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&u3.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new y9(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:g9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&u3.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!A9(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=zfe(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&d9(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Bfe(n.layoutBox,e):this.constraints=!1,this.elastic=Wfe(t),r!==this.constraints&&!d9(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&b7(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ufe(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!d9(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Gue(n,r.root,this.visualElement.getTransformPagePoint()),a=Vfe(r.layout.layoutBox,i);if(t){let e=t(Hue(a));this.hasMutatedConstraints=!!e,e&&(a=y5(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=b7(o=>{if(!A9(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return d8(this.visualElement,e),n.start(n8(e,n,0,t,this.visualElement,!1))}stopAnimation(){b7(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){b7(t=>{let{drag:n}=this.getProps();if(!A9(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-W3(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!d9(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};b7(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Hfe({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),b7(t=>{if(!A9(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(W3(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Gfe.set(this.visualElement,this);let e=this.visualElement.current,t=h9(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&wue(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();d9(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=qfe(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),u3.read(r);let o=E7(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(b7(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=E9,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function k9(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function qfe(e,t,n){let r=J8(e,k9(n)),i=J8(t,k9(n));return()=>{r(),i()}}function A9(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Jfe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Yfe=class extends v5{constructor(e){super(e),this.removeGroupControls=R4,this.removeListeners=R4,this.controls=new Kfe(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R4}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},j9=e=>(t,n)=>{e&&u3.update(()=>e(t,n),!1,!0)},Xfe=class extends v5{constructor(){super(...arguments),this.removePointerDownListener=R4}onPointerDown(e){this.session=new y9(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:j9(e),onStart:j9(t),onMove:j9(n),onEnd:(e,t)=>{delete this.session,r&&u3.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=h9(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},M9=!1,Zfe=class extends M.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),M9&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),O7.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),M9=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||u3.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),j8.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;M9=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function N9(e){let[t,n]=q7(),r=(0,M.useContext)(E4);return(0,N.jsx)(Zfe,{...e,layoutGroup:r,switchLayoutGroup:(0,M.useContext)(u9),isPresent:t,safeToRemove:n})}var Qfe={pan:{Feature:Xfe},drag:{Feature:Yfe,ProjectionNode:W7,MeasureLayout:N9}};function P9(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&u3.postRender(()=>i(t,m9(t)))}var $fe=class extends v5{mount(){let{current:e}=this.node;e&&(this.unmount=bue(e,(e,t)=>(P9(this.node,t,`Start`),e=>P9(this.node,e,`End`))))}unmount(){}},epe=class extends v5{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=z4(E7(this.node.current,`focus`,()=>this.onFocus()),E7(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function F9(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&u3.postRender(()=>i(t,m9(t)))}var tpe=class extends v5{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Eue(e,(e,t)=>(F9(this.node,t,`Start`),(e,{success:t})=>F9(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},I9=new WeakMap,L9=new WeakMap,npe=e=>{let t=I9.get(e.target);t&&t(e)},rpe=e=>{e.forEach(npe)};function ipe({root:e,...t}){let n=e||document;L9.has(n)||L9.set(n,{});let r=L9.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rpe,{root:e,...t})),r[i]}function ape(e,t,n){let r=ipe(t);return I9.set(e,n),r.observe(e),()=>{I9.delete(e),r.unobserve(e)}}var ope={some:0,all:1},spe=class extends v5{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ope[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=ape(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(cpe(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function cpe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var lpe={inView:{Feature:spe},tap:{Feature:tpe},focus:{Feature:epe},hover:{Feature:$fe}},upe={layout:{ProjectionNode:W7,MeasureLayout:N9}},dpe=Afe({...Pfe,...lpe,...Qfe,...upe},jfe);function R9(e){let t=D4(()=>$6(e)),{isStatic:n}=(0,M.useContext)(G7);if(n){let[,n]=(0,M.useState)(e);(0,M.useEffect)(()=>t.on(`change`,n),[])}return t}function z9(e,t){let n=R9(t()),r=()=>n.set(t());return r(),O4(()=>{let t=()=>u3.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),d3(r)}}),n}function fpe(e){Q6.current=[],e();let t=z9(Q6.current,e);return Q6.current=void 0,t}function B9(e,t,n,r){if(typeof e==`function`)return fpe(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return ppe(e,t,n,r);let i=typeof t==`function`?t:Fue(t,n,r),a=Array.isArray(e)?V9(e,i):V9([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function V9(e,t){let n=D4(()=>[]);return z9(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function ppe(e,t,n,r){let i=D4(()=>Object.keys(n)),a=D4(()=>({}));for(let o of i)a[o]=B9(e,t,n[o],r);return a}function mpe(e,t={}){let{isStatic:n}=(0,M.useContext)(G7),r=()=>u8(e)?e.get():e;if(n)return B9(r);let i=R9(r());return(0,M.useInsertionEffect)(()=>Iue(i,e,t),[i,JSON.stringify(t)]),i}function hpe(e,t={}){return mpe(e,{type:`spring`,...t})}function gpe(){!d5.current&&f5();let[e]=(0,M.useState)(u5.current);return e}function _pe(e){e.values.forEach(e=>e.stop())}function H9(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&l8(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{H9(e,t)})})}function vpe(e,t){if(Array.isArray(t))return H9(e,t);if(typeof t==`string`)return H9(e,[t]);l8(e,t)}function ype(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(_8(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{vpe(e,t)})},stop(){e.forEach(e=>{_pe(e)})},mount(){return()=>{t.stop()}}};return t}function U9(e){return typeof e==`object`&&!Array.isArray(e)}function W9(e,t,n,r){return e==null?[]:typeof e==`string`&&U9(t)?O8(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function bpe(e,t,n){return e*(t+1)+n*t}function G9(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function xpe(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(j4(e,i),r--)}}function Spe(e,t,n,r,i,a){xpe(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:W3(i,a,r[o]),easing:i3(n,o)})}function Cpe(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function wpe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Tpe=`easeInOut`,K9=20;function Epe(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,G9(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=G9(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Dpe(e),{delay:l=0,times:u=d6(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=H6(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Ape(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=H4(b));let r=t6(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&u6(u,T),c.length===1&&c.unshift(null),m&&`${m}${K9}`,m&&m<K9){let e=b>0?_/b:0;b=bpe(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?J4(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:i3(f,e-1))}Cpe(u,m,e)}let E=w+b;Spe(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(u8(p)){let e=q9(p,s);_(m,h,J9(`default`,e))}else{let e=W9(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=q9(r,s);for(let e in m)_(m[e],Ope(h,e),J9(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(wpe);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(B4(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Tpe)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function q9(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function J9(e,t){return t[e]||(t[e]=[]),t[e]}function Dpe(e){return Array.isArray(e)?e:[e]}function Ope(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var kpe=e=>typeof e==`number`,Ape=e=>e.every(kpe);function jpe(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=H8(e)&&!X8(e)?new J5(t):new U5(t);n.mount(e),r5.set(e,n)}function Mpe(e){let t=new Que({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),r5.set(e,t)}function Npe(e,t){return u8(e)||typeof e==`number`||typeof e==`string`&&!U9(t)}function Y9(e,t,n,r){let i=[];if(Npe(e,t))i.push(T7(e,U9(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=W9(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?jpe:Mpe;r5.has(r)||s(r);let c=r5.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...h8(c,{...t,transition:l},{}))}}return i}function Ppe(e,t,n){let r=[];return Epe(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=$6(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:o6}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Y9(n,e,t))}),r}function Fpe(e){return Array.isArray(e)&&e.some(Array.isArray)}function Ipe(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),Fpe(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Ppe(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Y9(e,i,{...c,...r},t)}let l=new Wle(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{j4(t.animations,l)})),l}return i}var Lpe=Ipe();function Rpe(){let e=D4(ype);return O4(e.mount,[]),e}var zpe=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Bpe=()=>new zpe;function Vpe(){return D4(Bpe)}var Hpe=t4(`CameraPreview`,{web:()=>s(()=>import(`./web-vcW3se1t.js`).then(e=>new e.CameraPreviewWeb),[])}),X9=e=>Symbol.iterator in e,Z9=e=>`entries`in e,Q9=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},Upe=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function Wpe(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:X9(e)&&X9(t)?Z9(e)&&Z9(t)?Q9(e,t):Upe(e,t):Q9({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Gpe(e){let t=M.useRef(void 0);return n=>{let r=e(n);return Wpe(t.current,r)?t.current:t.current=r}}var $9=`/assistant/assets/pdf.worker.min-Dr1KORA9.mjs`;export{uK as $,_l as $n,nx as $t,i1 as A,$ne as An,cw as At,TQ as B,une as Bn,ew as Bt,a4 as C,Ug as Cn,OD as Ct,a0 as D,Og as Dn,aw as Dt,l0 as E,Ag as En,HD as Et,gQ as F,Jp as Fn,$C as Ft,HZ as G,Hl as Gn,ES as Gt,wQ as H,Wp as Hn,eC as Ht,SQ as I,lne as In,lw as It,_K as J,Pl as Jn,Yx as Jt,DQ as K,zl as Kn,gS as Kt,mQ as L,Yp as Ln,uw as Lt,c$ as M,Yne as Mn,tw as Mt,s$ as N,Xne as Nn,ow as Nt,r0 as O,zg as On,nw as Ot,FQ as P,Zne as Pn,sw as Pt,sK as Q,vl as Qn,ax as Qt,kQ as R,Gp as Rn,fw as Rt,n4 as S,Sg as Sn,JD as St,Z2 as T,Vg as Tn,wD as Tt,o$ as U,Kp as Un,lS as Ut,uQ as V,Up as Vn,hC as Vt,NQ as W,bd as Wn,vS as Wt,lK as X,bl as Xn,Xx as Xt,dK as Y,xl as Yn,Jx as Yt,cK as Z,yl as Zn,Yb as Zt,vce as _,Fy as _n,Ut as _r,bD as _t,Rpe as a,Ere as an,bc as ar,yL as at,Tse as b,Ly as bn,KD as bt,hpe as c,jy as cn,$s as cr,Qj as ct,dpe as d,Py as dn,Ms as dr,Vj as dt,Tb as en,hl as er,OW as et,rfe as f,ky as fn,Ca as fr,Cj as ft,T4 as g,Ty as gn,Vr as gr,nA as gt,yce as h,Ny as hn,Mee as hr,OA as ht,Vpe as i,Dre as in,wc as ir,VL as it,a1 as j,Qne as jn,rw as jt,e0 as k,wg as kn,iw as kt,B9 as l,Oy as ln,nc as lr,$j as lt,bce as m,My as mn,Aee as mr,RA as mt,Gpe as n,db as nn,tl as nr,QB as nt,Lpe as o,ub as on,yc as or,eL as ot,tfe as p,Dy as pn,mi as pr,LA as pt,vQ as q,Al as qn,Zx as qt,Hpe as r,Ore as rn,$c as rr,BB as rt,gpe as s,fb as sn,hc as sr,nM as st,$9 as t,Db as tn,nl as tr,WW as tt,R9 as u,Ay as un,Rs as ur,Lj as ut,_ce as v,Iy as vn,zt as vr,AD as vt,t4 as w,Pg as wn,SD as wt,e4 as x,Ey as xn,XD as xt,o4 as y,Ry as yn,TD as yt,LQ as z,qp as zn,dw as zt};