mage-ai 0.9.57__py3-none-any.whl → 0.9.59__py3-none-any.whl

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.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (696) hide show
  1. mage_ai/ai/constants.py +1 -0
  2. mage_ai/ai/generator.py +7 -0
  3. mage_ai/ai/llm_pipeline_wizard.py +13 -0
  4. mage_ai/ai/openai_client.py +9 -1
  5. mage_ai/api/logging.py +11 -7
  6. mage_ai/api/policies/BlockPolicy.py +1 -0
  7. mage_ai/api/policies/CacheItemPolicy.py +16 -3
  8. mage_ai/api/policies/CommandCenterItemPolicy.py +56 -0
  9. mage_ai/api/policies/CustomTemplatePolicy.py +0 -3
  10. mage_ai/api/policies/GitBranchPolicy.py +8 -1
  11. mage_ai/api/policies/GitFilePolicy.py +1 -0
  12. mage_ai/api/policies/PipelinePolicy.py +2 -0
  13. mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
  14. mage_ai/api/policies/VersionControlBranchPolicy.py +98 -0
  15. mage_ai/api/policies/VersionControlFilePolicy.py +96 -0
  16. mage_ai/api/policies/VersionControlProjectPolicy.py +92 -0
  17. mage_ai/api/policies/VersionControlRemotePolicy.py +94 -0
  18. mage_ai/api/presenters/CommandCenterItemPresenter.py +19 -0
  19. mage_ai/api/presenters/GitBranchPresenter.py +2 -0
  20. mage_ai/api/presenters/GitCustomBranchPresenter.py +1 -0
  21. mage_ai/api/presenters/PipelinePresenter.py +5 -5
  22. mage_ai/api/presenters/PipelineSchedulePresenter.py +4 -0
  23. mage_ai/api/presenters/VersionControlBranchPresenter.py +15 -0
  24. mage_ai/api/presenters/VersionControlFilePresenter.py +15 -0
  25. mage_ai/api/presenters/VersionControlProjectPresenter.py +14 -0
  26. mage_ai/api/presenters/VersionControlRemotePresenter.py +15 -0
  27. mage_ai/api/resources/BlockResource.py +110 -80
  28. mage_ai/api/resources/CacheItemResource.py +88 -0
  29. mage_ai/api/resources/CommandCenterItemResource.py +29 -0
  30. mage_ai/api/resources/FileResource.py +15 -1
  31. mage_ai/api/resources/FolderResource.py +2 -1
  32. mage_ai/api/resources/GitBranchResource.py +183 -108
  33. mage_ai/api/resources/GitCustomBranchResource.py +9 -2
  34. mage_ai/api/resources/GitFileResource.py +26 -13
  35. mage_ai/api/resources/KernelResource.py +9 -1
  36. mage_ai/api/resources/LogResource.py +1 -1
  37. mage_ai/api/resources/OauthResource.py +4 -5
  38. mage_ai/api/resources/PipelineResource.py +71 -38
  39. mage_ai/api/resources/PipelineRunResource.py +7 -2
  40. mage_ai/api/resources/ProjectResource.py +1 -2
  41. mage_ai/api/resources/PullRequestResource.py +12 -3
  42. mage_ai/api/resources/SearchResultResource.py +4 -4
  43. mage_ai/api/resources/VersionControlBranchResource.py +85 -0
  44. mage_ai/api/resources/VersionControlFileResource.py +65 -0
  45. mage_ai/api/resources/VersionControlProjectResource.py +46 -0
  46. mage_ai/api/resources/VersionControlRemoteResource.py +64 -0
  47. mage_ai/authentication/oauth/constants.py +13 -16
  48. mage_ai/authentication/operation_history/models.py +11 -32
  49. mage_ai/authentication/operation_history/utils.py +14 -14
  50. mage_ai/authentication/permissions/constants.py +5 -0
  51. mage_ai/authentication/providers/active_directory.py +2 -2
  52. mage_ai/authentication/providers/bitbucket.py +2 -2
  53. mage_ai/authentication/providers/constants.py +6 -12
  54. mage_ai/authentication/providers/ghe.py +2 -2
  55. mage_ai/authentication/providers/google.py +2 -2
  56. mage_ai/authentication/providers/okta.py +2 -2
  57. mage_ai/cache/base.py +11 -3
  58. mage_ai/cache/block.py +116 -32
  59. mage_ai/cache/block_action_object/__init__.py +52 -43
  60. mage_ai/cache/constants.py +1 -0
  61. mage_ai/cache/dbt/utils.py +31 -10
  62. mage_ai/cache/file.py +114 -0
  63. mage_ai/cache/models.py +2 -0
  64. mage_ai/cache/pipeline.py +34 -8
  65. mage_ai/cache/tag.py +51 -10
  66. mage_ai/cache/utils.py +44 -3
  67. mage_ai/cluster_manager/kubernetes/workload_manager.py +9 -1
  68. mage_ai/command_center/__init__.py +0 -0
  69. mage_ai/command_center/applications/__init__.py +0 -0
  70. mage_ai/command_center/applications/constants.py +96 -0
  71. mage_ai/command_center/applications/factory.py +54 -0
  72. mage_ai/command_center/blocks/__init__.py +0 -0
  73. mage_ai/command_center/blocks/factory.py +39 -0
  74. mage_ai/command_center/blocks/utils.py +127 -0
  75. mage_ai/command_center/constants.py +66 -0
  76. mage_ai/command_center/factory.py +161 -0
  77. mage_ai/command_center/files/__init__.py +0 -0
  78. mage_ai/command_center/files/constants.py +235 -0
  79. mage_ai/command_center/files/factory.py +86 -0
  80. mage_ai/command_center/models.py +442 -0
  81. mage_ai/command_center/pipeline_runs/__init__.py +0 -0
  82. mage_ai/command_center/pipeline_runs/utils.py +141 -0
  83. mage_ai/command_center/pipelines/__init__.py +0 -0
  84. mage_ai/command_center/pipelines/constants.py +118 -0
  85. mage_ai/command_center/pipelines/factory.py +132 -0
  86. mage_ai/command_center/pipelines/utils.py +120 -0
  87. mage_ai/command_center/service.py +45 -0
  88. mage_ai/command_center/settings.py +37 -0
  89. mage_ai/command_center/support/__init__.py +0 -0
  90. mage_ai/command_center/support/constants.py +46 -0
  91. mage_ai/command_center/triggers/__init__.py +0 -0
  92. mage_ai/command_center/triggers/factory.py +49 -0
  93. mage_ai/command_center/triggers/utils.py +463 -0
  94. mage_ai/command_center/utils.py +30 -0
  95. mage_ai/data_preparation/executors/azure_container_instance_executor.py +1 -1
  96. mage_ai/data_preparation/executors/block_executor.py +68 -19
  97. mage_ai/data_preparation/executors/ecs_block_executor.py +2 -2
  98. mage_ai/data_preparation/executors/executor_factory.py +2 -0
  99. mage_ai/data_preparation/executors/gcp_cloud_run_block_executor.py +1 -1
  100. mage_ai/data_preparation/executors/k8s_block_executor.py +2 -2
  101. mage_ai/data_preparation/executors/pyspark_block_executor.py +7 -1
  102. mage_ai/data_preparation/git/__init__.py +29 -11
  103. mage_ai/data_preparation/git/api.py +14 -13
  104. mage_ai/data_preparation/git/clients/base.py +4 -8
  105. mage_ai/data_preparation/git/clients/github.py +1 -0
  106. mage_ai/data_preparation/git/utils.py +5 -7
  107. mage_ai/data_preparation/models/block/__init__.py +556 -329
  108. mage_ai/data_preparation/models/block/content.py +111 -0
  109. mage_ai/data_preparation/models/block/data_integration/mixins.py +1 -0
  110. mage_ai/data_preparation/models/block/dbt/block.py +30 -20
  111. mage_ai/data_preparation/models/block/dbt/block_sql.py +93 -257
  112. mage_ai/data_preparation/models/block/dbt/block_yaml.py +81 -158
  113. mage_ai/data_preparation/models/block/dbt/constants.py +12 -0
  114. mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +23 -10
  115. mage_ai/data_preparation/models/block/dbt/dbt_cli.py +124 -612
  116. mage_ai/data_preparation/models/block/dbt/profiles.py +19 -15
  117. mage_ai/data_preparation/models/block/dbt/project.py +3 -0
  118. mage_ai/data_preparation/models/block/dynamic/constants.py +0 -0
  119. mage_ai/data_preparation/models/block/dynamic/dynamic_child.py +507 -47
  120. mage_ai/data_preparation/models/block/dynamic/utils.py +432 -1
  121. mage_ai/data_preparation/models/block/platform/mixins.py +68 -44
  122. mage_ai/data_preparation/models/block/r/__init__.py +19 -9
  123. mage_ai/data_preparation/models/block/sql/__init__.py +33 -18
  124. mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -1
  125. mage_ai/data_preparation/models/block/utils.py +176 -71
  126. mage_ai/data_preparation/models/constants.py +7 -0
  127. mage_ai/data_preparation/models/file.py +23 -4
  128. mage_ai/data_preparation/models/pipeline.py +20 -8
  129. mage_ai/data_preparation/models/project/__init__.py +12 -7
  130. mage_ai/data_preparation/models/project/constants.py +2 -0
  131. mage_ai/data_preparation/models/triggers/__init__.py +7 -0
  132. mage_ai/data_preparation/models/utils.py +20 -0
  133. mage_ai/data_preparation/models/variable.py +113 -15
  134. mage_ai/data_preparation/shared/utils.py +6 -3
  135. mage_ai/data_preparation/storage/base_storage.py +17 -0
  136. mage_ai/data_preparation/storage/gcs_storage.py +4 -0
  137. mage_ai/data_preparation/storage/local_storage.py +15 -0
  138. mage_ai/data_preparation/storage/s3_storage.py +4 -0
  139. mage_ai/data_preparation/templates/data_exporters/qdrant.py +0 -1
  140. mage_ai/data_preparation/templates/data_loaders/qdrant.py +2 -1
  141. mage_ai/data_preparation/variable_manager.py +1 -0
  142. mage_ai/io/base.py +4 -1
  143. mage_ai/io/bigquery.py +25 -16
  144. mage_ai/io/clickhouse.py +3 -0
  145. mage_ai/io/druid.py +3 -0
  146. mage_ai/io/mongodb.py +1 -1
  147. mage_ai/io/pinot.py +3 -0
  148. mage_ai/io/postgres.py +13 -0
  149. mage_ai/io/snowflake.py +4 -0
  150. mage_ai/io/spark.py +8 -3
  151. mage_ai/io/sql.py +6 -0
  152. mage_ai/orchestration/db/__init__.py +26 -19
  153. mage_ai/orchestration/db/cache.py +4 -3
  154. mage_ai/orchestration/db/models/schedules.py +72 -16
  155. mage_ai/orchestration/db/models/schedules_project_platform.py +2 -3
  156. mage_ai/orchestration/pipeline_scheduler_original.py +19 -11
  157. mage_ai/orchestration/pipeline_scheduler_project_platform.py +20 -11
  158. mage_ai/presenters/interactions/constants.py +1 -0
  159. mage_ai/presenters/interactions/models.py +4 -3
  160. mage_ai/presenters/pages/models/client_pages/pipeline_schedules.py +1 -1
  161. mage_ai/server/constants.py +1 -1
  162. mage_ai/server/frontend_dist/404.html +11 -11
  163. mage_ai/server/frontend_dist/_next/static/PPQxHOmWVJ0iQFzG2rc8m/_buildManifest.js +1 -0
  164. mage_ai/server/frontend_dist/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
  165. mage_ai/server/frontend_dist/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
  166. mage_ai/server/frontend_dist/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
  167. mage_ai/server/frontend_dist/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
  168. mage_ai/server/frontend_dist/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
  169. mage_ai/server/frontend_dist/_next/static/chunks/26-38bc9380422f3900.js +1 -0
  170. mage_ai/server/frontend_dist/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
  171. mage_ai/server/frontend_dist/_next/static/chunks/3366-420721116ea5a665.js +1 -0
  172. mage_ai/server/frontend_dist/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
  173. mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
  174. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
  175. mage_ai/server/frontend_dist/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
  176. mage_ai/server/frontend_dist/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
  177. mage_ai/server/frontend_dist/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
  178. mage_ai/server/frontend_dist/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
  179. mage_ai/server/frontend_dist/_next/static/chunks/{5189.dca121eccea793be.js → 5729.0f2748e9e6dab951.js} +1 -1
  180. mage_ai/server/frontend_dist/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
  181. mage_ai/server/frontend_dist/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
  182. mage_ai/server/frontend_dist/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
  183. mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
  184. mage_ai/server/frontend_dist/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
  185. mage_ai/server/frontend_dist/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
  186. mage_ai/server/frontend_dist/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
  187. mage_ai/server/frontend_dist/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
  188. mage_ai/server/frontend_dist/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
  189. mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
  190. mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
  191. mage_ai/server/frontend_dist/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
  192. mage_ai/server/frontend_dist/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
  193. mage_ai/server/frontend_dist/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
  194. mage_ai/server/frontend_dist/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js +1 -0
  195. mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
  196. mage_ai/server/frontend_dist/_next/static/chunks/9440-54add041c392517f.js +1 -0
  197. mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
  198. mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
  199. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
  200. mage_ai/server/frontend_dist/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
  201. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
  202. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
  203. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
  204. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
  205. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
  206. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-927ebbdc29529765.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
  207. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
  208. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
  209. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
  210. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
  211. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
  212. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
  213. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4f12e989e7809ef9.js +1 -0
  214. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
  215. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/oauth-bd8494f8875c5c97.js → frontend_dist/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
  216. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
  217. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
  218. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
  219. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
  220. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
  221. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
  222. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
  223. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
  224. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
  225. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
  226. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
  227. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
  228. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
  229. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
  230. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
  231. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
  232. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
  233. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
  234. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
  235. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
  236. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
  237. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
  238. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-aa5d871de1f3f7b0.js → [...slug]-5117d3555972484c.js} +1 -1
  239. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
  240. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
  241. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-88d29d1774db67e4.js → [...slug]-fa095aac732368c3.js} +1 -1
  242. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-d8ca763e405cd9d1.js → roles-db6d71f8692a33e7.js} +1 -1
  243. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
  244. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-250dfdf22bfe67e9.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
  245. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
  246. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
  247. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
  248. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
  249. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
  250. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
  251. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
  252. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
  253. mage_ai/server/frontend_dist/_next/static/chunks/{webpack-17c3a8f588f14cfd.js → webpack-efa55343114c8128.js} +1 -1
  254. mage_ai/server/{frontend_dist_base_path_template/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist/_next/static/css/b59541b123fd7191.css} +1 -1
  255. mage_ai/server/frontend_dist/block-layout.html +3 -3
  256. mage_ai/server/frontend_dist/compute.html +11 -11
  257. mage_ai/server/frontend_dist/files.html +11 -11
  258. mage_ai/server/frontend_dist/global-data-products/[...slug].html +11 -11
  259. mage_ai/server/frontend_dist/global-data-products.html +11 -11
  260. mage_ai/server/frontend_dist/global-hooks/[...slug].html +11 -11
  261. mage_ai/server/frontend_dist/global-hooks.html +11 -11
  262. mage_ai/server/frontend_dist/index.html +3 -3
  263. mage_ai/server/frontend_dist/manage/files.html +11 -11
  264. mage_ai/server/frontend_dist/manage/settings.html +11 -11
  265. mage_ai/server/frontend_dist/manage/users/[user].html +11 -11
  266. mage_ai/server/frontend_dist/manage/users/new.html +11 -11
  267. mage_ai/server/frontend_dist/manage/users.html +11 -11
  268. mage_ai/server/frontend_dist/manage.html +11 -11
  269. mage_ai/server/frontend_dist/oauth.html +8 -8
  270. mage_ai/server/frontend_dist/overview.html +11 -11
  271. mage_ai/server/frontend_dist/pipeline-runs.html +11 -11
  272. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +11 -11
  273. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +11 -11
  274. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +11 -11
  275. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
  276. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +11 -11
  277. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +11 -11
  278. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
  279. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +11 -11
  280. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +11 -11
  281. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +11 -11
  282. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +11 -11
  283. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +11 -11
  284. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +11 -11
  285. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +11 -11
  286. mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
  287. mage_ai/server/frontend_dist/pipelines.html +11 -11
  288. mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +11 -11
  289. mage_ai/server/frontend_dist/platform/global-hooks.html +11 -11
  290. mage_ai/server/frontend_dist/settings/account/profile.html +11 -11
  291. mage_ai/server/frontend_dist/settings/platform/preferences.html +11 -11
  292. mage_ai/server/frontend_dist/settings/platform/settings.html +11 -11
  293. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +11 -11
  294. mage_ai/server/frontend_dist/settings/workspace/permissions.html +11 -11
  295. mage_ai/server/frontend_dist/settings/workspace/preferences.html +11 -11
  296. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +11 -11
  297. mage_ai/server/frontend_dist/settings/workspace/roles.html +11 -11
  298. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +11 -11
  299. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +11 -11
  300. mage_ai/server/frontend_dist/settings/workspace/users.html +11 -11
  301. mage_ai/server/frontend_dist/settings.html +3 -3
  302. mage_ai/server/frontend_dist/sign-in.html +40 -41
  303. mage_ai/server/frontend_dist/templates/[...slug].html +11 -11
  304. mage_ai/server/frontend_dist/templates.html +11 -11
  305. mage_ai/server/frontend_dist/terminal.html +11 -11
  306. mage_ai/server/frontend_dist/test.html +3 -3
  307. mage_ai/server/frontend_dist/triggers.html +11 -11
  308. mage_ai/server/frontend_dist/version-control.html +11 -11
  309. mage_ai/server/frontend_dist_base_path_template/404.html +11 -11
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/26-38bc9380422f3900.js +1 -0
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3366-420721116ea5a665.js +1 -0
  318. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
  319. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
  320. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
  321. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
  322. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
  323. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
  324. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
  325. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5189.dca121eccea793be.js → 5729.0f2748e9e6dab951.js} +1 -1
  326. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
  327. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
  328. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
  329. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
  330. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
  331. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
  332. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
  333. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
  334. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
  335. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
  336. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
  337. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
  338. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
  339. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
  340. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js +1 -0
  341. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
  342. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-54add041c392517f.js +1 -0
  343. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
  344. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
  345. mage_ai/server/{frontend_dist/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist_base_path_template/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
  346. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
  347. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
  348. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
  349. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
  350. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
  351. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
  352. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-927ebbdc29529765.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
  353. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
  354. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
  355. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
  356. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
  357. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
  358. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
  359. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4f12e989e7809ef9.js +1 -0
  360. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
  361. mage_ai/server/{frontend_dist/_next/static/chunks/pages/oauth-bd8494f8875c5c97.js → frontend_dist_base_path_template/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
  362. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
  363. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
  364. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
  365. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
  366. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
  367. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
  368. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
  369. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
  370. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
  371. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
  372. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
  373. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
  374. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
  375. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
  376. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
  377. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
  378. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
  379. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
  380. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
  381. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
  382. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
  383. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
  384. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-aa5d871de1f3f7b0.js → [...slug]-5117d3555972484c.js} +1 -1
  385. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
  386. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
  387. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-88d29d1774db67e4.js → [...slug]-fa095aac732368c3.js} +1 -1
  388. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-d8ca763e405cd9d1.js → roles-db6d71f8692a33e7.js} +1 -1
  389. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
  390. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-250dfdf22bfe67e9.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
  391. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
  392. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
  393. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
  394. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
  395. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
  396. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
  397. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
  398. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
  399. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-b55fe1e575d8ac9d.js → webpack-bd35e1c7bd7b5a9a.js} +1 -1
  400. mage_ai/server/{frontend_dist/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist_base_path_template/_next/static/css/b59541b123fd7191.css} +1 -1
  401. mage_ai/server/frontend_dist_base_path_template/_next/static/do4WOsw7lNhouR0mtPTFi/_buildManifest.js +1 -0
  402. mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
  403. mage_ai/server/frontend_dist_base_path_template/compute.html +11 -11
  404. mage_ai/server/frontend_dist_base_path_template/files.html +11 -11
  405. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +11 -11
  406. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +11 -11
  407. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +11 -11
  408. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +11 -11
  409. mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
  410. mage_ai/server/frontend_dist_base_path_template/manage/files.html +11 -11
  411. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +11 -11
  412. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +11 -11
  413. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +11 -11
  414. mage_ai/server/frontend_dist_base_path_template/manage/users.html +11 -11
  415. mage_ai/server/frontend_dist_base_path_template/manage.html +11 -11
  416. mage_ai/server/frontend_dist_base_path_template/oauth.html +8 -8
  417. mage_ai/server/frontend_dist_base_path_template/overview.html +11 -11
  418. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +11 -11
  419. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +11 -11
  420. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +11 -11
  421. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +11 -11
  422. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
  423. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +11 -11
  424. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +11 -11
  425. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
  426. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +11 -11
  427. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +11 -11
  428. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +11 -11
  429. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +11 -11
  430. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +11 -11
  431. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +11 -11
  432. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +11 -11
  433. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
  434. mage_ai/server/frontend_dist_base_path_template/pipelines.html +11 -11
  435. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +11 -11
  436. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +11 -11
  437. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +11 -11
  438. mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +11 -11
  439. mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +11 -11
  440. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +11 -11
  441. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +11 -11
  442. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +11 -11
  443. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +11 -11
  444. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +11 -11
  445. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +11 -11
  446. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +11 -11
  447. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +11 -11
  448. mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
  449. mage_ai/server/frontend_dist_base_path_template/sign-in.html +40 -41
  450. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +11 -11
  451. mage_ai/server/frontend_dist_base_path_template/templates.html +11 -11
  452. mage_ai/server/frontend_dist_base_path_template/terminal.html +11 -11
  453. mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
  454. mage_ai/server/frontend_dist_base_path_template/triggers.html +11 -11
  455. mage_ai/server/frontend_dist_base_path_template/version-control.html +11 -11
  456. mage_ai/server/logger.py +8 -2
  457. mage_ai/server/server.py +18 -1
  458. mage_ai/services/aws/ecs/config.py +3 -3
  459. mage_ai/services/aws/ecs/ecs.py +2 -2
  460. mage_ai/services/search/block_action_objects.py +59 -5
  461. mage_ai/settings/models/configuration_option.py +3 -1
  462. mage_ai/settings/platform/__init__.py +64 -20
  463. mage_ai/settings/platform/utils.py +4 -1
  464. mage_ai/settings/repo.py +5 -4
  465. mage_ai/shared/custom_logger.py +213 -0
  466. mage_ai/shared/environments.py +4 -0
  467. mage_ai/shared/files.py +52 -1
  468. mage_ai/shared/models.py +2 -1
  469. mage_ai/shared/parsers.py +8 -1
  470. mage_ai/shared/path_fixer.py +62 -5
  471. mage_ai/shared/retry.py +4 -0
  472. mage_ai/shared/strings.py +4 -0
  473. mage_ai/tests/api/endpoints/test_blocks.py +101 -1
  474. mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +4 -1
  475. mage_ai/tests/base_test.py +21 -2
  476. mage_ai/tests/cache/test_pipeline_cache.py +11 -8
  477. mage_ai/tests/data_preparation/executors/test_block_executor.py +55 -45
  478. mage_ai/tests/data_preparation/git/test_api.py +4 -4
  479. mage_ai/tests/data_preparation/models/block/dbt/test_block.py +75 -43
  480. mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +329 -320
  481. mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +298 -268
  482. mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +14 -4
  483. mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +14 -11
  484. mage_ai/tests/data_preparation/models/block/dbt/test_profiles.py +2 -2
  485. mage_ai/tests/data_preparation/models/block/dbt/test_project.py +2 -2
  486. mage_ai/tests/data_preparation/models/block/dbt/test_sources.py +2 -2
  487. mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_child_block_factory.py +477 -474
  488. mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +25 -24
  489. mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +16 -25
  490. mage_ai/tests/data_preparation/models/block/test_utils.py +8 -8
  491. mage_ai/tests/data_preparation/models/test_block.py +6 -8
  492. mage_ai/tests/data_preparation/models/test_project.py +10 -5
  493. mage_ai/tests/data_preparation/models/test_variable.py +51 -4
  494. mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +1 -0
  495. mage_ai/version_control/__init__.py +0 -0
  496. mage_ai/version_control/models.py +288 -0
  497. {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/METADATA +49 -47
  498. {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/RECORD +504 -486
  499. mage_ai/server/frontend_dist/_next/static/A7VXVGKgLQCukXcjdysDz/_buildManifest.js +0 -1
  500. mage_ai/server/frontend_dist/_next/static/chunks/1124-09b283a2f26cc576.js +0 -1
  501. mage_ai/server/frontend_dist/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
  502. mage_ai/server/frontend_dist/_next/static/chunks/1235.53172e14801844e5.js +0 -1
  503. mage_ai/server/frontend_dist/_next/static/chunks/1557-724bfc3eabd095f7.js +0 -1
  504. mage_ai/server/frontend_dist/_next/static/chunks/161-33f26e485ddef393.js +0 -1
  505. mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
  506. mage_ai/server/frontend_dist/_next/static/chunks/1821-953efd0da290d25f.js +0 -1
  507. mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
  508. mage_ai/server/frontend_dist/_next/static/chunks/2646-78905b899b68f4eb.js +0 -1
  509. mage_ai/server/frontend_dist/_next/static/chunks/2717-477f64b5e272d5a3.js +0 -1
  510. mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
  511. mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
  512. mage_ai/server/frontend_dist/_next/static/chunks/3004-9fff558eeede3a83.js +0 -1
  513. mage_ai/server/frontend_dist/_next/static/chunks/341-ef0f7b98b7f69802.js +0 -1
  514. mage_ai/server/frontend_dist/_next/static/chunks/3419-b8bd26f5946bec5a.js +0 -1
  515. mage_ai/server/frontend_dist/_next/static/chunks/3437-ce26fc28e114b44e.js +0 -1
  516. mage_ai/server/frontend_dist/_next/static/chunks/3540-9bb48b08f439d0a0.js +0 -1
  517. mage_ai/server/frontend_dist/_next/static/chunks/3745-61b1c63bb56bb670.js +0 -1
  518. mage_ai/server/frontend_dist/_next/static/chunks/3859-ba594d21a1260cd2.js +0 -1
  519. mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
  520. mage_ai/server/frontend_dist/_next/static/chunks/5283-8d1dacb2eeb9e652.js +0 -1
  521. mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
  522. mage_ai/server/frontend_dist/_next/static/chunks/5499-261cfa2410506eb4.js +0 -1
  523. mage_ai/server/frontend_dist/_next/static/chunks/5533-3455832bc3f8429b.js +0 -1
  524. mage_ai/server/frontend_dist/_next/static/chunks/5729-9d8204ab91da631d.js +0 -1
  525. mage_ai/server/frontend_dist/_next/static/chunks/5810-addfa3491ae6b01c.js +0 -1
  526. mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +0 -1
  527. mage_ai/server/frontend_dist/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
  528. mage_ai/server/frontend_dist/_next/static/chunks/6043-728790621ca9014c.js +0 -1
  529. mage_ai/server/frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
  530. mage_ai/server/frontend_dist/_next/static/chunks/6563-5b3b97c9088baf69.js +0 -1
  531. mage_ai/server/frontend_dist/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
  532. mage_ai/server/frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
  533. mage_ai/server/frontend_dist/_next/static/chunks/7022-1c1c93b6222d48f9.js +0 -1
  534. mage_ai/server/frontend_dist/_next/static/chunks/7361-559f4d2eca379217.js +0 -1
  535. mage_ai/server/frontend_dist/_next/static/chunks/7858-26a5a5d04fa3c703.js +0 -1
  536. mage_ai/server/frontend_dist/_next/static/chunks/8146-7fc9ef7d0202e6ab.js +0 -1
  537. mage_ai/server/frontend_dist/_next/static/chunks/8264-68db2a8334ad48f1.js +0 -1
  538. mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
  539. mage_ai/server/frontend_dist/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
  540. mage_ai/server/frontend_dist/_next/static/chunks/8731-82571147875a2d58.js +0 -1
  541. mage_ai/server/frontend_dist/_next/static/chunks/874-d9e1b3c9c00ebac9.js +0 -1
  542. mage_ai/server/frontend_dist/_next/static/chunks/8998-e46ae0a83be32d42.js +0 -1
  543. mage_ai/server/frontend_dist/_next/static/chunks/9264-5df6e4c7b1e85c02.js +0 -1
  544. mage_ai/server/frontend_dist/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
  545. mage_ai/server/frontend_dist/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
  546. mage_ai/server/frontend_dist/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
  547. mage_ai/server/frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
  548. mage_ai/server/frontend_dist/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
  549. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-4c0239ca6203e827.js +0 -1
  550. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-d40babdbf465a7e1.js +0 -1
  551. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +0 -1
  552. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-373217c5de51aeef.js +0 -1
  553. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-0325e76a2f3e08c1.js +0 -1
  554. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +0 -1
  555. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +0 -1
  556. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +0 -1
  557. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +0 -1
  558. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +0 -1
  559. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +0 -1
  560. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +0 -1
  561. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +0 -1
  562. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-5a98e6a531410afb.js +0 -1
  563. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +0 -1
  564. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js +0 -1
  565. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js +0 -1
  566. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js +0 -1
  567. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +0 -1
  568. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-67b0572c84db0940.js +0 -1
  569. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-40201b626ea3a664.js +0 -1
  570. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js +0 -1
  571. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js +0 -1
  572. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js +0 -1
  573. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js +0 -1
  574. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-931a1b3112866a72.js +0 -1
  575. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js +0 -1
  576. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js +0 -1
  577. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-378f8dada7d0c1dd.js +0 -1
  578. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +0 -1
  579. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +0 -1
  580. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +0 -1
  581. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js +0 -1
  582. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +0 -1
  583. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +0 -1
  584. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ce45aad47049d993.js +0 -1
  585. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +0 -1
  586. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-42bd909eb8951040.js +0 -1
  587. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-97c4ce119f7238b5.js +0 -1
  588. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js +0 -1
  589. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +0 -1
  590. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-299a2c8f2dd89cf3.js +0 -1
  591. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fb3f398009a02879.js +0 -1
  592. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +0 -1
  593. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-551b85802515e313.js +0 -1
  594. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +0 -1
  595. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-09b283a2f26cc576.js +0 -1
  596. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
  597. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.53172e14801844e5.js +0 -1
  598. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-724bfc3eabd095f7.js +0 -1
  599. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/161-33f26e485ddef393.js +0 -1
  600. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
  601. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1821-953efd0da290d25f.js +0 -1
  602. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-352ae192b826d896.js +0 -1
  603. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2646-78905b899b68f4eb.js +0 -1
  604. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-477f64b5e272d5a3.js +0 -1
  605. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
  606. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
  607. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-9fff558eeede3a83.js +0 -1
  608. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/341-ef0f7b98b7f69802.js +0 -1
  609. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-b8bd26f5946bec5a.js +0 -1
  610. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-ce26fc28e114b44e.js +0 -1
  611. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3540-9bb48b08f439d0a0.js +0 -1
  612. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-61b1c63bb56bb670.js +0 -1
  613. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3859-ba594d21a1260cd2.js +0 -1
  614. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
  615. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5283-8d1dacb2eeb9e652.js +0 -1
  616. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
  617. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-261cfa2410506eb4.js +0 -1
  618. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5533-3455832bc3f8429b.js +0 -1
  619. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5729-9d8204ab91da631d.js +0 -1
  620. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-addfa3491ae6b01c.js +0 -1
  621. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +0 -1
  622. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
  623. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6043-728790621ca9014c.js +0 -1
  624. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
  625. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6563-5b3b97c9088baf69.js +0 -1
  626. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
  627. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
  628. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-1c1c93b6222d48f9.js +0 -1
  629. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-559f4d2eca379217.js +0 -1
  630. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-26a5a5d04fa3c703.js +0 -1
  631. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-7fc9ef7d0202e6ab.js +0 -1
  632. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-68db2a8334ad48f1.js +0 -1
  633. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
  634. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
  635. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8731-82571147875a2d58.js +0 -1
  636. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/874-d9e1b3c9c00ebac9.js +0 -1
  637. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8998-e46ae0a83be32d42.js +0 -1
  638. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-5df6e4c7b1e85c02.js +0 -1
  639. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
  640. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
  641. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
  642. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
  643. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
  644. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-4c0239ca6203e827.js +0 -1
  645. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-d40babdbf465a7e1.js +0 -1
  646. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +0 -1
  647. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-373217c5de51aeef.js +0 -1
  648. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-0325e76a2f3e08c1.js +0 -1
  649. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +0 -1
  650. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +0 -1
  651. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +0 -1
  652. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +0 -1
  653. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +0 -1
  654. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +0 -1
  655. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +0 -1
  656. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +0 -1
  657. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-5a98e6a531410afb.js +0 -1
  658. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +0 -1
  659. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js +0 -1
  660. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js +0 -1
  661. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js +0 -1
  662. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +0 -1
  663. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-67b0572c84db0940.js +0 -1
  664. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-40201b626ea3a664.js +0 -1
  665. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js +0 -1
  666. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js +0 -1
  667. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js +0 -1
  668. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js +0 -1
  669. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-931a1b3112866a72.js +0 -1
  670. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js +0 -1
  671. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js +0 -1
  672. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-378f8dada7d0c1dd.js +0 -1
  673. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +0 -1
  674. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +0 -1
  675. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +0 -1
  676. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js +0 -1
  677. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +0 -1
  678. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +0 -1
  679. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ce45aad47049d993.js +0 -1
  680. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +0 -1
  681. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-42bd909eb8951040.js +0 -1
  682. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-97c4ce119f7238b5.js +0 -1
  683. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js +0 -1
  684. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +0 -1
  685. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-299a2c8f2dd89cf3.js +0 -1
  686. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fb3f398009a02879.js +0 -1
  687. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +0 -1
  688. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-551b85802515e313.js +0 -1
  689. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +0 -1
  690. mage_ai/server/frontend_dist_base_path_template/_next/static/wSRrM15xnvA8lOWcaque7/_buildManifest.js +0 -1
  691. /mage_ai/server/frontend_dist/_next/static/{A7VXVGKgLQCukXcjdysDz → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
  692. /mage_ai/server/frontend_dist_base_path_template/_next/static/{wSRrM15xnvA8lOWcaque7 → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
  693. {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
  694. {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
  695. {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
  696. {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4434],{3686:function(t,e,n){var o=n(554);Object.defineProperty(e,"__esModule",{value:!0});var i=n(82684),r=n(61287),s=n(59383);function a(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}function l(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var u=a(i),c=l(i);const d=i.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),h=i.createContext({});function p(){return i.useContext(h).visualElement}const m=i.createContext(null),f="undefined"!==typeof document,v=f?i.useLayoutEffect:i.useEffect,g=i.createContext({strict:!1});function y(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function x(t){return"string"===typeof t||Array.isArray(t)}function b(t){return"object"===typeof t&&"function"===typeof t.start}const w=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function E(t){return b(t.animate)||w.some((e=>x(t[e])))}function P(t){return Boolean(E(t)||t.variants)}function T(t){const{initial:e,animate:n}=function(t,e){if(E(t)){const{initial:e,animate:n}=t;return{initial:!1===e||x(e)?e:void 0,animate:x(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,i.useContext(h));return i.useMemo((()=>({initial:e,animate:n})),[A(e),A(n)])}function A(t){return Array.isArray(t)?t.join(" "):t}const S=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),V={measureLayout:S(["layout","layoutId","drag"]),animation:S(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:S(["exit"]),drag:S(["drag","dragControls"]),focus:S(["whileFocus"]),hover:S(["whileHover","onHoverStart","onHoverEnd"]),tap:S(["whileTap","onTap","onTapStart","onTapCancel"]),pan:S(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:S(["whileInView","onViewportEnter","onViewportLeave"])};function C(t){for(const e in t)"projectionNodeConstructor"===e?V.projectionNodeConstructor=t[e]:V[e].Component=t[e]}function M(t){const e=i.useRef(null);return null===e.current&&(e.current=t()),e.current}const R={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let D=1;const k=i.createContext({});class L extends u.default.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const B=i.createContext({}),I=Symbol.for("motionComponentSymbol");function F({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:o,useVisualState:r,Component:s}){t&&C(t);const a=i.forwardRef((function(a,l){const u={...i.useContext(d),...a,layoutId:j(a)},{isStatic:x}=u;let b=null;const w=T(a),E=x?void 0:M((()=>{if(R.hasEverUpdated)return D++})),P=r(a,x);if(!x&&f){w.visualElement=function(t,e,n,o){const r=p(),s=i.useContext(g),a=i.useContext(m),l=i.useContext(d).reducedMotion,u=i.useRef();o=o||s.renderer,!u.current&&o&&(u.current=o(t,{visualState:e,parent:r,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current;return v((()=>{c&&c.render()})),i.useEffect((()=>{c&&c.animationState&&c.animationState.animateChanges()})),v((()=>()=>c&&c.notify("Unmount")),[]),c}(s,P,u,e);const o=i.useContext(g).strict,r=i.useContext(B);w.visualElement&&(b=w.visualElement.loadFeatures(u,o,t,E,n||V.projectionNodeConstructor,r))}return c.createElement(L,{visualElement:w.visualElement,props:u},b,c.createElement(h.Provider,{value:w},o(s,a,E,function(t,e,n){return i.useCallback((o=>{o&&t.mount&&t.mount(o),e&&(o?e.mount(o):e.unmount()),n&&("function"===typeof n?n(o):y(n)&&(n.current=o))}),[e])}(P,w.visualElement,l),P,x,w.visualElement)))}));return a[I]=s,a}function j({layoutId:t}){const e=i.useContext(k).id;return e&&void 0!==t?e+"-"+t:t}function O(t){function e(e,n={}){return F(t(e,n))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const U=["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 N(t){return"string"===typeof t&&!t.includes("-")&&!!(U.indexOf(t)>-1||/[A-Z]/.test(t))}const $={};function z(t){Object.assign($,t)}const Y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],W=new Set(Y);function X(t,{layout:e,layoutId:n}){return W.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!$[t]||"opacity"===t)}const H=t=>!!(null===t||void 0===t?void 0:t.getVelocity),G={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z=(t,e)=>Y.indexOf(t)-Y.indexOf(e);function q({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:o=!0},i,r){let s="";e.sort(Z);for(const a of e)s+=`${G[a]||a}(${t[a]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,i?"":s):o&&i&&(s="none"),s}function K(t){return t.startsWith("--")}const _=(t,e)=>e&&"number"===typeof t?e.transform(t):t,J=(t,e,n)=>Math.min(Math.max(n,t),e),Q={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},tt={...Q,transform:t=>J(0,1,t)},et={...Q,default:1},nt=t=>Math.round(1e5*t)/1e5,ot=/(-)?([\d]*\.?[\d])+/g,it=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rt=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function st(t){return"string"===typeof t}const at=t=>({test:e=>st(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),lt=at("deg"),ut=at("%"),ct=at("px"),dt=at("vh"),ht=at("vw"),pt={...ut,parse:t=>ut.parse(t)/100,transform:t=>ut.transform(100*t)},mt={...Q,transform:Math.round},ft={borderWidth:ct,borderTopWidth:ct,borderRightWidth:ct,borderBottomWidth:ct,borderLeftWidth:ct,borderRadius:ct,radius:ct,borderTopLeftRadius:ct,borderTopRightRadius:ct,borderBottomRightRadius:ct,borderBottomLeftRadius:ct,width:ct,maxWidth:ct,height:ct,maxHeight:ct,size:ct,top:ct,right:ct,bottom:ct,left:ct,padding:ct,paddingTop:ct,paddingRight:ct,paddingBottom:ct,paddingLeft:ct,margin:ct,marginTop:ct,marginRight:ct,marginBottom:ct,marginLeft:ct,rotate:lt,rotateX:lt,rotateY:lt,rotateZ:lt,scale:et,scaleX:et,scaleY:et,scaleZ:et,skew:lt,skewX:lt,skewY:lt,distance:ct,translateX:ct,translateY:ct,translateZ:ct,x:ct,y:ct,z:ct,perspective:ct,transformPerspective:ct,opacity:tt,originX:pt,originY:pt,originZ:ct,zIndex:mt,fillOpacity:tt,strokeOpacity:tt,numOctaves:mt};function vt(t,e,n,o){const{style:i,vars:r,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,d=!0;for(const h in e){const t=e[h];if(K(h)){r[h]=t;continue}const n=ft[h],o=_(t,n);if(W.has(h)){if(u=!0,s[h]=o,a.push(h),!d)continue;t!==(n.default||0)&&(d=!1)}else h.startsWith("origin")?(c=!0,l[h]=o):i[h]=o}if(e.transform||(u||o?i.transform=q(t,n,d,o):i.transform&&(i.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;i.transformOrigin=`${t} ${e} ${n}`}}const gt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function yt(t,e,n){for(const o in e)H(e[o])||X(o,n)||(t[o]=e[o])}function xt(t,e,n){const o={};return yt(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},e,n){return i.useMemo((()=>{const o={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return vt(o,e,{enableHardwareAcceleration:!n},t),Object.assign({},o.vars,o.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(o):o}function bt(t,e,n){const o={},i=xt(t,e,n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=i,o}const wt=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function Et(t){return wt.has(t)}let Pt=t=>!Et(t);function Tt(t){t&&(Pt=e=>e.startsWith("on")?!Et(e):t(e))}try{Tt(n(80626).Z)}catch(Ca){}function At(t,e,n){const o={};for(const i in t)(Pt(i)||!0===n&&Et(i)||!e&&!Et(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}function St(t,e,n){return"string"===typeof t?t:ct.transform(e+n*t)}const Vt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ct={offset:"strokeDashoffset",array:"strokeDasharray"};function Mt(t,{attrX:e,attrY:n,originX:o,originY:i,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...l},u,c,d){if(vt(t,l,u,d),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:m}=t;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(t,e,n){return`${St(e,t.x,t.width)} ${St(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&function(t,e,n=1,o=0,i=!0){t.pathLength=1;const r=i?Vt:Ct;t[r.offset]=ct.transform(-o);const s=ct.transform(e),a=ct.transform(n);t[r.array]=`${s} ${a}`}(h,r,s,a,!1)}const Rt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),Dt=t=>"string"===typeof t&&"svg"===t.toLowerCase();function kt(t,e,n,o){const r=i.useMemo((()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return Mt(n,e,{enableHardwareAcceleration:!1},Dt(o),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};yt(e,t.style,t),r.style={...e,...r.style}}return r}function Lt(t=!1){return(e,n,o,r,{latestValues:s},a)=>{const l=(N(e)?kt:bt)(n,s,a,e),u={...At(n,"string"===typeof e,t),...l,ref:r};return o&&(u["data-projection-id"]=o),i.createElement(e,u)}}const Bt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function It(t,{style:e,vars:n},o,i){Object.assign(t.style,e,i&&i.getProjectionStyles(o));for(const r in n)t.style.setProperty(r,n[r])}const Ft=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"]);function jt(t,e,n,o){It(t,e,void 0,o);for(const i in e.attrs)t.setAttribute(Ft.has(i)?i:Bt(i),e.attrs[i])}function Ot(t){const{style:e}=t,n={};for(const o in e)(H(e[o])||X(o,t))&&(n[o]=e[o]);return n}function Ut(t){const e=Ot(t);for(const n in t)if(H(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function Nt(t,e,n,o={},i={}){return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),e}const $t=t=>Array.isArray(t);function zt(t){const e=H(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Yt=t=>(e,n)=>{const o=i.useContext(h),r=i.useContext(m),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},o,i,r){const s={latestValues:Wt(o,i,r,t),renderState:e()};return n&&(s.mount=t=>n(o,t,s)),s}(t,e,o,r);return n?s():M(s)};function Wt(t,e,n,o){const i={},r=o(t);for(const h in r)i[h]=zt(r[h]);let{initial:s,animate:a}=t;const l=E(t),u=P(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!==typeof d&&!b(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Nt(t,e);if(!n)return;const{transitionEnd:o,transition:r,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(i[t]=e)}for(const t in o)i[t]=o[t]}))}return i}const Xt={useVisualState:Yt({scrapeMotionValuesFromProps:Ut,createRenderState:Rt,onMount:(t,e,{renderState:n,latestValues:o})=>{try{n.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}Mt(n,o,{enableHardwareAcceleration:!1},Dt(e.tagName),t.transformTemplate),jt(e,n)}})},Ht={useVisualState:Yt({scrapeMotionValuesFromProps:Ot,createRenderState:gt})};function Gt(t,{forwardMotionProps:e=!1},n,o,i){return{...N(t)?Xt:Ht,preloadedFeatures:n,useRender:Lt(e),createVisualElement:o,projectionNodeConstructor:i,Component:t}}var Zt;function qt(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}function Kt(t,e,n,o){i.useEffect((()=>{const i=t.current;if(n&&i)return qt(i,e,n,o)}),[t,e,n,o])}function _t(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Jt(t){return!!t.touches}e.AnimationType=void 0,(Zt=e.AnimationType||(e.AnimationType={})).Animate="animate",Zt.Hover="whileHover",Zt.Tap="whileTap",Zt.Drag="whileDrag",Zt.Focus="whileFocus",Zt.InView="whileInView",Zt.Exit="exit";const Qt={pageX:0,pageY:0};function te(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||Qt;return{x:n[e+"X"],y:n[e+"Y"]}}function ee(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function ne(t,e="page"){return{point:Jt(t)?te(t,e):ee(t,e)}}const oe=(t,e=!1)=>{const n=e=>t(e,ne(e));return e?(o=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&o(t)}):n;var o},ie={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},re={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function se(t){return f&&null===window.onpointerdown?t:f&&null===window.ontouchstart?re[t]:f&&null===window.onmousedown?ie[t]:t}function ae(t,e,n,o){return qt(t,se(e),oe(n,"pointerdown"===e),o)}function le(t,e,n,o){return Kt(t,se(e),n&&oe(n,"pointerdown"===e),o)}function ue(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const ce=ue("dragHorizontal"),de=ue("dragVertical");function he(t){let e=!1;if("y"===t)e=de();else if("x"===t)e=ce();else{const t=ce(),n=de();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function pe(){const t=he(!0);return!t||(t(),!1)}function me(t,n,o){return(i,r)=>{_t(i)&&!pe()&&(t.animationState&&t.animationState.setActive(e.AnimationType.Hover,n),o&&o(i,r))}}const fe=(t,e)=>!!e&&(t===e||fe(t,e.parentElement));function ve(t){return i.useEffect((()=>()=>t()),[])}const ge=(t,e)=>n=>e(t(n)),ye=(...t)=>t.reduce(ge);const xe=("undefined"===typeof o||o.env,"production"),be=new Set;function we(t,e,n){t||be.has(e)||(console.warn(e),n&&console.warn(n),be.add(e))}const Ee=new WeakMap,Pe=new WeakMap,Te=t=>{const e=Ee.get(t.target);e&&e(t)},Ae=t=>{t.forEach(Te)};function Se(t,e,n){const o=function({root:t,...e}){const n=t||document;Pe.has(n)||Pe.set(n,{});const o=Pe.get(n),i=JSON.stringify(e);return o[i]||(o[i]=new IntersectionObserver(Ae,{root:t,...e})),o[i]}(e);return Ee.set(t,n),o.observe(t),()=>{Ee.delete(t),o.unobserve(t)}}const Ve={some:0,all:1};function Ce(t,n,o,{root:r,margin:s,amount:a="some",once:l}){i.useEffect((()=>{if(!t||!o.current)return;const i={root:null===r||void 0===r?void 0:r.current,rootMargin:s,threshold:"number"===typeof a?a:Ve[a]};return Se(o.current,i,(t=>{const{isIntersecting:i}=t;if(n.isInView===i)return;if(n.isInView=i,l&&!i&&n.hasEnteredView)return;i&&(n.hasEnteredView=!0),o.animationState&&o.animationState.setActive(e.AnimationType.InView,i);const r=o.getProps(),s=i?r.onViewportEnter:r.onViewportLeave;s&&s(t)}))}),[t,r,s,a])}function Me(t,n,o,{fallback:r=!0}){i.useEffect((()=>{t&&r&&("production"!==xe&&we(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=o.getProps();t&&t(null),o.animationState&&o.animationState.setActive(e.AnimationType.InView,!0)})))}),[t])}const Re=t=>e=>(t(e),null),De={inView:Re((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:r={}}){const s=i.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);r.once&&s.current.hasEnteredView&&(a=!1),("undefined"===typeof IntersectionObserver?Me:Ce)(a,s.current,t,r)})),tap:Re((function({onTap:t,onTapStart:n,onTapCancel:o,whileTap:r,visualElement:s}){const a=t||n||o||r,l=i.useRef(!1),u=i.useRef(null),c={passive:!(n||t||o||f)};function d(){u.current&&u.current(),u.current=null}function h(){return d(),l.current=!1,s.animationState&&s.animationState.setActive(e.AnimationType.Tap,!1),!pe()}function p(e,n){h()&&(fe(s.current,e.target)?t&&t(e,n):o&&o(e,n))}function m(t,e){h()&&o&&o(t,e)}function f(t,o){d(),l.current||(l.current=!0,u.current=ye(ae(window,"pointerup",p,c),ae(window,"pointercancel",m,c)),s.animationState&&s.animationState.setActive(e.AnimationType.Tap,!0),n&&n(t,o))}le(s,"pointerdown",a?f:void 0,c),ve(d)})),focus:Re((function({whileFocus:t,visualElement:n}){const{animationState:o}=n;Kt(n,"focus",t?()=>{o&&o.setActive(e.AnimationType.Focus,!0)}:void 0),Kt(n,"blur",t?()=>{o&&o.setActive(e.AnimationType.Focus,!1)}:void 0)})),hover:Re((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){le(o,"pointerenter",t||n?me(o,!0,t):void 0,{passive:!t}),le(o,"pointerleave",e||n?me(o,!1,e):void 0,{passive:!e})}))};function ke(){const t=i.useContext(m);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,r=i.useId();i.useEffect((()=>o(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}function Le(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}const Be=t=>/^0[^.\s]+$/.test(t),Ie={delta:0,timestamp:0},Fe=1/60*1e3,je="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),Oe="undefined"!==typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(je())),Fe);let Ue=!0,Ne=!1,$e=!1;const ze=["read","update","preRender","render","postRender"],Ye=ze.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],o=0,i=!1,r=!1;const s=new WeakSet,a={schedule:(t,r=!1,a=!1)=>{const l=a&&i,u=l?e:n;return r&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&i&&(o=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(i)r=!0;else{if(i=!0,[e,n]=[n,e],n.length=0,o=e.length,o)for(let n=0;n<o;n++){const o=e[n];o(l),s.has(o)&&(a.schedule(o),t())}i=!1,r&&(r=!1,a.process(l))}}};return a}((()=>Ne=!0)),t)),{}),We=ze.reduce(((t,e)=>{const n=Ye[e];return t[e]=(t,e=!1,o=!1)=>(Ne||qe(),n.schedule(t,e,o)),t}),{}),Xe=ze.reduce(((t,e)=>(t[e]=Ye[e].cancel,t)),{}),He=ze.reduce(((t,e)=>(t[e]=()=>Ye[e].process(Ie),t)),{}),Ge=t=>Ye[t].process(Ie),Ze=t=>{Ne=!1,Ie.delta=Ue?Fe:Math.max(Math.min(t-Ie.timestamp,40),1),Ie.timestamp=t,$e=!0,ze.forEach(Ge),$e=!1,Ne&&(Ue=!1,Oe(Ze))},qe=()=>{Ne=!0,Ue=!0,$e||Oe(Ze)};function Ke(t,e){-1===t.indexOf(e)&&t.push(e)}function _e(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Je{constructor(){this.subscriptions=[]}add(t){return Ke(this.subscriptions,t),()=>_e(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let i=0;i<o;i++){const o=this.subscriptions[i];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Qe(t,e){return e?t*(1e3/e):0}class tn{constructor(t,e={}){var n;this.version="7.9.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Je,this.velocityUpdateSubscribers=new Je,this.renderSubscribers=new Je,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=Ie;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,We.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>We.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qe(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function en(t,e){return new tn(t,e)}const nn=(t,e)=>n=>Boolean(st(n)&&rt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),on=(t,e,n)=>o=>{if(!st(o))return o;const[i,r,s,a]=o.match(ot);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},rn={...Q,transform:t=>Math.round((t=>J(0,255,t))(t))},sn={test:nn("rgb","red"),parse:on("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+rn.transform(t)+", "+rn.transform(e)+", "+rn.transform(n)+", "+nt(tt.transform(o))+")"};const an={test:nn("#"),parse:function(t){let e="",n="",o="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}},transform:sn.transform},ln={test:nn("hsl","hue"),parse:on("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+ut.transform(nt(e))+", "+ut.transform(nt(n))+", "+nt(tt.transform(o))+")"},un={test:t=>sn.test(t)||an.test(t)||ln.test(t),parse:t=>sn.test(t)?sn.parse(t):ln.test(t)?ln.parse(t):an.parse(t),transform:t=>st(t)?t:t.hasOwnProperty("red")?sn.transform(t):ln.transform(t)},cn="${c}",dn="${n}";function hn(t){"number"===typeof t&&(t=`${t}`);const e=[];let n=0,o=0;const i=t.match(it);i&&(n=i.length,t=t.replace(it,cn),e.push(...i.map(un.parse)));const r=t.match(ot);return r&&(o=r.length,t=t.replace(ot,dn),e.push(...r.map(Q.parse))),{values:e,numColors:n,numNumbers:o,tokenised:t}}function pn(t){return hn(t).values}function mn(t){const{values:e,numColors:n,tokenised:o}=hn(t),i=e.length;return t=>{let e=o;for(let o=0;o<i;o++)e=e.replace(o<n?cn:dn,o<n?un.transform(t[o]):nt(t[o]));return e}}const fn=t=>"number"===typeof t?0:t;const vn={test:function(t){var e,n;return isNaN(t)&&st(t)&&((null===(e=t.match(ot))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(it))||void 0===n?void 0:n.length)||0)>0},parse:pn,createTransformer:mn,getAnimatableNone:function(t){const e=pn(t);return mn(t)(e.map(fn))}},gn=new Set(["brightness","contrast","saturate","opacity"]);function yn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(ot)||[];if(!o)return t;const i=n.replace(o,"");let r=gn.has(e)?1:0;return o!==n&&(r*=100),e+"("+r+i+")"}const xn=/([a-z-]*)\(.*?\)/g,bn={...vn,getAnimatableNone:t=>{const e=t.match(xn);return e?e.map(yn).join(" "):t}},wn={...ft,color:un,backgroundColor:un,outlineColor:un,fill:un,stroke:un,borderColor:un,borderTopColor:un,borderRightColor:un,borderBottomColor:un,borderLeftColor:un,filter:bn,WebkitFilter:bn},En=t=>wn[t];function Pn(t,e){var n;let o=En(t);return o!==bn&&(o=vn),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,e)}const Tn=t=>e=>e.test(t),An=[Q,ct,ut,lt,ht,dt,{test:t=>"auto"===t,parse:t=>t}],Sn=t=>An.find(Tn(t)),Vn=[...An,un,vn],Cn=t=>Vn.find(Tn(t));function Mn(t,e,n){const o=t.getProps();return Nt(o,e,void 0!==n?n:o.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function Rn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,en(n))}function Dn(t,e){const n=Mn(t,e);let{transitionEnd:o={},transition:i={},...r}=n?t.makeTargetAnimatable(n,!1):{};r={...r,...o};for(const a in r){Rn(t,a,(s=r[a],$t(s)?s[s.length-1]||0:s))}var s}function kn(t,e){[...e].reverse().forEach((n=>{var o;const i=t.getVariant(n);i&&Dn(t,i),null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{kn(t,e)}))}))}function Ln(t,e,n){var o,i;const r=Object.keys(e).filter((e=>!t.hasValue(e))),s=r.length;if(s)for(let a=0;a<s;a++){const s=r[a],l=e[s];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(o=n[s])&&void 0!==o?o:t.readValue(s))&&void 0!==i?i:e[s]),void 0!==u&&null!==u&&("string"===typeof u&&(/^\-?\d*\.?\d+$/.test(u)||Be(u))?u=parseFloat(u):!Cn(u)&&vn.test(l)&&(u=Pn(s,l)),t.addValue(s,en(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}function Bn(t,e){if(!e)return;return(e[t]||e.default||e).from}function In(t,e,n){var o;const i={};for(const r in t){const t=Bn(r,e);i[r]=void 0!==t?t:null===(o=n.getValue(r))||void 0===o?void 0:o.get()}return i}function Fn(t){return Boolean(H(t)&&t.add)}const jn=(t,e)=>`${t}: ${e}`;function On(t,e){const{MotionAppearAnimations:n}=window,o=jn(t,W.has(e)?"transform":e),i=n&&n.get(o);return i?(We.render((()=>{try{i.cancel(),n.delete(o)}catch(t){}})),i.currentTime||0):0}const Un="framerAppearId",Nn="data-"+Bt(Un),$n=t=>1e3*t,zn={current:!1},Yn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Wn=t=>e=>1-t(1-e),Xn=t=>t*t,Hn=Wn(Xn),Gn=Yn(Xn),Zn=(t,e,n)=>-n*t+n*e+t;function qn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Kn=(t,e,n)=>{const o=t*t;return Math.sqrt(Math.max(0,n*(e*e-o)+o))},_n=[an,sn,ln];function Jn(t){const e=(n=t,_n.find((t=>t.test(n))));var n;r.invariant(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===ln&&(o=function({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,n/=100;let i=0,r=0,s=0;if(e/=100){const o=n<.5?n*(1+e):n+e-n*e,a=2*n-o;i=qn(a,o,t+1/3),r=qn(a,o,t),s=qn(a,o,t-1/3)}else i=r=s=n;return{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*s),alpha:o}}(o)),o}const Qn=(t,e)=>{const n=Jn(t),o=Jn(e),i={...n};return t=>(i.red=Kn(n.red,o.red,t),i.green=Kn(n.green,o.green,t),i.blue=Kn(n.blue,o.blue,t),i.alpha=Zn(n.alpha,o.alpha,t),sn.transform(i))};function to(t,e){return"number"===typeof t?n=>Zn(t,e,n):un.test(t)?Qn(t,e):oo(t,e)}const eo=(t,e)=>{const n=[...t],o=n.length,i=t.map(((t,n)=>to(t,e[n])));return t=>{for(let e=0;e<o;e++)n[e]=i[e](t);return n}},no=(t,e)=>{const n={...t,...e},o={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(o[i]=to(t[i],e[i]));return t=>{for(const e in o)n[e]=o[e](t);return n}},oo=(t,e)=>{const n=vn.createTransformer(e),o=hn(t),i=hn(e);return o.numColors===i.numColors&&o.numNumbers>=i.numNumbers?ye(eo(o.values,i.values),n):(r.warning(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},io=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o},ro=(t,e)=>n=>Zn(t,e,n);function so(t,e,n){const o=[],i=n||("number"===typeof(r=t[0])?ro:"string"===typeof r?un.test(r)?Qn:oo:Array.isArray(r)?eo:"object"===typeof r?no:ro);var r;const s=t.length-1;for(let a=0;a<s;a++){let n=i(t[a],t[a+1]);if(e){const t=Array.isArray(e)?e[a]:e;n=ye(t,n)}o.push(n)}return o}function ao(t,e,{clamp:n=!0,ease:o,mixer:i}={}){const s=t.length;r.invariant(s===e.length,"Both input and output ranges must be the same length"),r.invariant(!o||!Array.isArray(o)||o.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=so(e,o,i),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const o=io(t[n],t[n+1],e);return a[n](o)};return n?e=>u(J(t[0],t[s-1],e)):u}const lo=t=>t,uo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function co(t,e,n,o){if(t===e&&n===o)return lo;const i=e=>function(t,e,n,o,i){let r,s,a=0;do{s=e+(n-e)/2,r=uo(s,o,i)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:uo(i(t),e,o)}const ho=t=>1-Math.sin(Math.acos(t)),po=Wn(ho),mo=Yn(po),fo=(t=1.525)=>e=>e*e*((t+1)*e-t),vo=fo(),go=Wn(vo),yo=Yn(vo),xo=(t=>{const e=fo(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),bo={linear:lo,easeIn:Xn,easeInOut:Gn,easeOut:Hn,circIn:ho,circInOut:mo,circOut:po,backIn:vo,backInOut:yo,backOut:go,anticipate:xo},wo=t=>{if(Array.isArray(t)){r.invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,i]=t;return co(e,n,o,i)}return"string"===typeof t?(r.invariant(void 0!==bo[t],`Invalid easing type '${t}'`),bo[t]):t};function Eo({keyframes:t,ease:e=Gn,times:n,duration:o=300}){t=[...t];const i=Eo[0],r=(t=>Array.isArray(t)&&"number"!==typeof t[0])(e)?e.map(wo):wo(e),s={done:!1,value:i},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===Eo.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),o);function l(){return ao(a,t,{ease:Array.isArray(r)?r:(e=t,n=r,e.map((()=>n||Gn)).splice(0,e.length-1))});var e,n}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{t.reverse(),u=l()}}}const Po=.001;function To({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let i,s;r.warning(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=J(.05,1,a),t=J(.01,10,t/1e3),a<1?(i=e=>{const o=e*a,i=o*t,r=o-n,s=Ao(e,a),l=Math.exp(-i);return Po-r/s*l},s=e=>{const o=e*a*t,r=o*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-o),u=Ao(Math.pow(e,2),a);return(-i(e)+Po>0?-1:1)*((r-s)*l)/u}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let o=n;for(let i=1;i<12;i++)o-=t(o)/e(o);return o}(i,s,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:t}}}function Ao(t,e){return t*Math.sqrt(1-e*e)}const So=["duration","bounce"],Vo=["stiffness","damping","mass"];function Co(t,e){return e.some((e=>void 0!==t[e]))}function Mo({keyframes:t,restSpeed:e=2,restDelta:n=.01,...o}){let i=t[0],r=t[t.length-1];const s={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Co(t,Vo)&&Co(t,So)){const n=To(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(o);let p=Ro,m=c?-c/1e3:0;const f=l/(2*Math.sqrt(a*u));function v(){const t=r-i,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(r-i)/100,.4)),f<1){const n=Ao(e,f);p=o=>{const i=Math.exp(-f*e*o);return r-i*((m+f*e*t)/n*Math.sin(n*o)+t*Math.cos(n*o))}}else if(1===f)p=n=>r-Math.exp(-e*n)*(t+(m+e*t)*n);else{const n=e*Math.sqrt(f*f-1);p=o=>{const i=Math.exp(-f*e*o),s=Math.min(n*o,300);return r-i*((m+f*e*t)*Math.sinh(s)+n*t*Math.cosh(s))/n}}}return v(),{next:t=>{const o=p(t);if(h)s.done=t>=d;else{let i=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);i=Qe(o-p(e),t-e)}else i=0;const a=Math.abs(i)<=e,l=Math.abs(r-o)<=n;s.done=a&&l}return s.value=s.done?r:o,s},flipTarget:()=>{m=-m,[i,r]=[r,i],v()}}}Mo.needsInterpolation=(t,e)=>"string"===typeof t||"string"===typeof e;const Ro=t=>0;const Do={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:o=350,restDelta:i=.5,modifyTarget:r}){const s=t[0],a={done:!1,value:s};let l=n*e;const u=s+l,c=void 0===r?u:r(u);return c!==u&&(l=c-s),{next:t=>{const e=-l*Math.exp(-t/o);return a.done=!(e>i||e<-i),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:Eo,tween:Eo,spring:Mo};function ko(t,e,n=0){return t-e-n}const Lo=t=>{const e=({delta:e})=>t(e);return{start:()=>We.update(e,!0),stop:()=>Xe.update(e)}};function Bo({duration:t,driver:e=Lo,elapsed:n=0,repeat:o=0,repeatType:i="loop",repeatDelay:r=0,keyframes:s,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:d,onUpdate:h,type:p="keyframes",...m}){var f,v;let g,y,x,b=0,w=t,E=!1,P=!0;const T=Do[s.length>2?"keyframes":p],A=s[0],S=s[s.length-1];(null===(v=(f=T).needsInterpolation)||void 0===v?void 0:v.call(f,A,S))&&(x=ao([0,100],[A,S],{clamp:!1}),s=[0,100]);const V=T({...m,duration:t,keyframes:s});function C(){b++,"reverse"===i?(P=b%2===0,n=function(t,e=0,n=0,o=!0){return o?ko(e+-t,e,n):e-(t-e)+n}(n,w,r,P)):(n=ko(n,w,r),"mirror"===i&&V.flipTarget()),E=!1,d&&d()}function M(t){if(P||(t=-t),n+=t,!E){const t=V.next(Math.max(0,n));y=t.value,x&&(y=x(y)),E=P?t.done:n<=0}h&&h(y),E&&(0===b&&(w=void 0!==w?w:n),b<o?function(t,e,n,o){return o?t>=e+n:t<=-n}(n,w,r,P)&&C():(g.stop(),c&&c()))}return a&&(l&&l(),g=e(M),g.start()),{stop:()=>{u&&u(),g.stop()},sample:t=>V.next(Math.max(0,t)).value}}const Io=new Set(["linear","ease-in","ease-out","ease-in-out"]);function Fo(t){if(t)return Array.isArray(t)?(([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`)(t):function(t){const e=Bt(t);return Io.has(e)?e:"ease"}(t)}function jo(t,e,n,{delay:o=0,duration:i,repeat:r=0,repeatType:s="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:o,duration:i,easing:Fo(a),fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"})}function Oo(t,e){const n=performance.now(),o=({timestamp:i})=>{const r=i-n;r>=e&&(Xe.read(o),t(r-e))};return We.read(o,!0),()=>Xe.read(o)}function Uo({keyframes:t,elapsed:e,onUpdate:n,onComplete:o}){const i=()=>(n&&n(t[t.length-1]),o&&o(),()=>{});return e?Oo(i,-e):i()}const No=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),$o=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),zo=()=>({type:"keyframes",ease:"linear",duration:.3}),Yo={type:"keyframes",duration:.8},Wo={x:No,y:No,z:No,rotate:No,rotateX:No,rotateY:No,rotateZ:No,scaleX:$o,scaleY:$o,scale:$o,opacity:zo,backgroundColor:zo,color:zo,default:$o},Xo=(t,{keyframes:e})=>{if(e.length>2)return Yo;return(Wo[t]||Wo.default)(e[1])},Ho=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!vn.test(e)||e.startsWith("url(")));function Go(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Zo(t){return"number"===typeof t?0:Pn("",t)}function qo(t,e){return t[e]||t.default||t}const Ko={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},_o={},Jo={};for(const Ma in Ko)Jo[Ma]=()=>(void 0===_o[Ma]&&(_o[Ma]=Ko[Ma]()),_o[Ma]);const Qo=new Set(["opacity"]),ti=(t,e,n,o={})=>i=>{const s=qo(o,t)||{},a=s.delay||o.delay||0;let{elapsed:l=0}=o;l-=$n(a);const u=function(t,e,n,o){const i=Ho(e,n);let r=void 0!==o.from?o.from:t.get();return"none"===r&&i&&"string"===typeof n?r=Pn(e,n):Go(r)&&"string"===typeof n?r=Zo(n):!Array.isArray(n)&&Go(n)&&"string"===typeof r&&(n=Zo(r)),Array.isArray(n)?(null===n[0]&&(n[0]=r),n):[r,n]}(e,t,n,s),c=u[0],d=u[u.length-1],h=Ho(t,c),p=Ho(t,d);r.warning(h===p,`You are trying to animate ${t} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let m={keyframes:u,velocity:e.getVelocity(),...s,elapsed:l,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(!h||!p||zn.current||!1===s.type)return Uo(m);if("inertia"===s.type){const t=function({keyframes:t,velocity:e=0,min:n,max:o,power:i=.8,timeConstant:r=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:h,onStop:p}){const m=t[0];let f;function v(t){return void 0!==n&&t<n||void 0!==o&&t>o}function g(t){return void 0===n?o:void 0===o||Math.abs(n-t)<Math.abs(o-t)?n:o}function y(t){null===f||void 0===f||f.stop(),f=Bo({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null===d||void 0===d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:h,onStop:p})}function x(t){y({type:"spring",stiffness:s,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t=i*e+m;"undefined"!==typeof u&&(t=u(t));const o=g(t),s=o===n?-1:1;let a,c;const d=t=>{a=c,c=t,e=Qe(t-a,Ie.delta),(1===s&&t>o||-1===s&&t<o)&&x({keyframes:[t,o],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:r,power:i,restDelta:l,modifyTarget:u,onUpdate:v(t)?d:void 0})}return{stop:()=>null===f||void 0===f?void 0:f.stop()}}(m);return()=>t.stop()}(function({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:i,repeat:r,repeatType:s,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length})(s)||(m={...m,...Xo(t,m)}),m.duration&&(m.duration=$n(m.duration)),m.repeatDelay&&(m.repeatDelay=$n(m.repeatDelay));const f=e.owner,v=f&&f.current;if(Jo.waapi()&&Qo.has(t)&&!m.repeatDelay&&"mirror"!==m.repeatType&&0!==m.damping&&"function"!==typeof m.ease&&f&&v instanceof HTMLElement&&!f.getProps().onUpdate)return function(t,e,{onUpdate:n,onComplete:o,...i}){let{keyframes:r,duration:s=.3,elapsed:a=0,ease:l}=i;if("spring"===i.type){const t=Mo(i);let e={done:!1,value:r[0]};const n=[];let o=0;for(;!e.done;)e=t.next(o),n.push(e.value),o+=10;r=n,s=o-10,l="linear"}const u=jo(t.owner.current,e,r,{...i,delay:-a,duration:s,ease:l});return u.onfinish=()=>{t.set(r[r.length-1]),o&&o()},()=>{const{currentTime:e}=u;if(e){const n=Bo(i);t.setWithVelocity(n.sample(e-10),n.sample(e),10)}We.update((()=>u.cancel()))}}(e,t,m);{const t=Bo(m);return()=>t.stop()}};function ei(t,e,n={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>ni(t,e,n)));o=Promise.all(i)}else if("string"===typeof e)o=ni(t,e,n);else{const i="function"===typeof e?Mn(t,e,n.custom):e;o=oi(t,i,n)}return o.then((()=>t.notify("AnimationComplete",e)))}function ni(t,e,n={}){var o;const i=Mn(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>oi(t,i,n):()=>Promise.resolve(),a=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?(o=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,o=0,i=1,r){const s=[],a=(t.variantChildren.size-1)*o,l=1===i?(t=0)=>t*o:(t=0)=>a-t*o;return Array.from(t.variantChildren).sort(ii).forEach(((t,o)=>{s.push(ni(t,e,{...r,delay:n+l(o)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(e)}return Promise.all([s(),a(n.delay)])}function oi(t,e,{delay:n=0,transitionOverride:o,type:i}={}){var r;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");o&&(s=o);const c=[],d=i&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[i]);for(const h in l){const e=t.getValue(h),o=l[h];if(!e||void 0===o||d&&ri(d,h))continue;let i={delay:n,elapsed:0,...s};if(t.shouldReduceMotion&&W.has(h)&&(i={...i,type:!1,delay:0}),!e.hasAnimated){const e=t.getProps()[Nn];e&&(i.elapsed=On(e,h))}let r=e.start(ti(h,e,o,i));Fn(u)&&(u.add(h),r=r.then((()=>u.remove(h)))),c.push(r)}return Promise.all(c).then((()=>{a&&Dn(t,a)}))}function ii(t,e){return t.sortNodePosition(e)}function ri({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,o}const si=[e.AnimationType.Animate,e.AnimationType.InView,e.AnimationType.Focus,e.AnimationType.Hover,e.AnimationType.Tap,e.AnimationType.Drag,e.AnimationType.Exit],ai=[...si].reverse(),li=si.length;function ui(t){let n=function(t){return e=>Promise.all(e.map((({animation:e,options:n})=>ei(t,e,n))))}(t);const o={[e.AnimationType.Animate]:di(!0),[e.AnimationType.InView]:di(),[e.AnimationType.Hover]:di(),[e.AnimationType.Tap]:di(),[e.AnimationType.Drag]:di(),[e.AnimationType.Focus]:di(),[e.AnimationType.Exit]:di()};let i=!0;const r=(e,n)=>{const o=Mn(t,n);if(o){const{transition:t,transitionEnd:n,...i}=o;e={...e,...i,...n}}return e};function s(e,s){const a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},h=1/0;for(let n=0;n<li;n++){const p=ai[n],m=o[p],f=void 0!==a[p]?a[p]:l[p],v=x(f),g=p===s?m.isActive:null;!1===g&&(h=n);let y=f===l[p]&&f!==a[p]&&v;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...d},!m.isActive&&null===g||!f&&!m.prevProp||b(f)||"boolean"===typeof f)continue;const w=ci(m.prevProp,f);let E=w||p===s&&m.isActive&&!y&&v||n>h&&v;const P=Array.isArray(f)?f:[f];let T=P.reduce(r,{});!1===g&&(T={});const{prevResolvedValues:A={}}=m,S={...A,...T},V=t=>{E=!0,c.delete(t),m.needsAnimating[t]=!0};for(const t in S){const e=T[t],n=A[t];d.hasOwnProperty(t)||(e!==n?$t(e)&&$t(n)?!Le(e,n)||w?V(t):m.protectedKeys[t]=!0:void 0!==e?V(t):c.add(t):void 0!==e&&c.has(t)?V(t):m.protectedKeys[t]=!0)}m.prevProp=f,m.prevResolvedValues=T,m.isActive&&(d={...d,...T}),i&&t.blockInitialAnimation&&(E=!1),E&&!y&&u.push(...P.map((t=>({animation:t,options:{type:p,...e}}))))}if(c.size){const e={};c.forEach((n=>{const o=t.getBaseTarget(n);void 0!==o&&(e[n]=o)})),u.push({animation:e})}let p=Boolean(u.length);return i&&!1===a.initial&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,p?n(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n,i){var r;if(o[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach((t=>{var o;return null===(o=t.animationState)||void 0===o?void 0:o.setActive(e,n)})),o[e].isActive=n;const a=s(i,e);for(const t in o)o[t].protectedKeys={};return a},setAnimateFunction:function(e){n=e(t)},getState:()=>o}}function ci(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!Le(e,t)}function di(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const hi={animation:Re((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=ui(t)),b(e)&&i.useEffect((()=>e.subscribe(t)),[e])})),exit:Re((t=>{const{custom:n,visualElement:o}=t,[r,s]=ke(),a=i.useContext(m);i.useEffect((()=>{o.isPresent=r;const t=o.animationState&&o.animationState.setActive(e.AnimationType.Exit,!r,{custom:a&&a.custom||n});t&&!r&&t.then(s)}),[r])}))},pi=(t,e)=>Math.abs(t-e);function mi(t,e){const n=pi(t.x,e.x),o=pi(t.y,e.y);return Math.sqrt(n**2+o**2)}class fi{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=yi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=mi(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:i}=Ie;this.history.push({...o,timestamp:i});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=vi(e,this.transformPagePoint),_t(t)&&0===t.buttons?this.handlePointerUp(t,e):We.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o}=this.handlers,i=yi(vi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),o&&o(t,i)},Jt(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const o=vi(ne(t),this.transformPagePoint),{point:i}=o,{timestamp:r}=Ie;this.history=[{...i,timestamp:r}];const{onSessionStart:s}=e;s&&s(t,yi(o,this.history)),this.removeListeners=ye(ae(window,"pointermove",this.handlePointerMove),ae(window,"pointerup",this.handlePointerUp),ae(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe.update(this.updatePoint)}}function vi(t,e){return e?{point:e(t.point)}:t}function gi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function yi({point:t},e){return{point:t,delta:gi(t,bi(e)),offset:gi(t,xi(e)),velocity:wi(e,.1)}}function xi(t){return t[0]}function bi(t){return t[t.length-1]}function wi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const i=bi(t);for(;n>=0&&(o=t[n],!(i.timestamp-o.timestamp>$n(e)));)n--;if(!o)return{x:0,y:0};const r=(i.timestamp-o.timestamp)/1e3;if(0===r)return{x:0,y:0};const s={x:(i.x-o.x)/r,y:(i.y-o.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ei(t){return t.max-t.min}function Pi(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ti(t,e,n,o=.5){t.origin=o,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=Ei(n)/Ei(e),(Pi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(Pi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ai(t,e,n,o){Ti(t.x,e.x,n.x,null===o||void 0===o?void 0:o.originX),Ti(t.y,e.y,n.y,null===o||void 0===o?void 0:o.originY)}function Si(t,e,n){t.min=n.min+e.min,t.max=t.min+Ei(e)}function Vi(t,e,n){t.min=e.min-n.min,t.max=t.min+Ei(e)}function Ci(t,e,n){Vi(t.x,e.x,n.x),Vi(t.y,e.y,n.y)}function Mi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Ri(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const Di=.35;function ki(t,e,n){return{min:Li(t,e),max:Li(t,n)}}function Li(t,e){return"number"===typeof t?t:t[e]||0}const Bi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ii(t){return[t("x"),t("y")]}function Fi({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function ji(t){return void 0===t||1===t}function Oi({scale:t,scaleX:e,scaleY:n}){return!ji(t)||!ji(e)||!ji(n)}function Ui(t){return Oi(t)||Ni(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Ni(t){return $i(t.x)||$i(t.y)}function $i(t){return t&&"0%"!==t}function zi(t,e,n){return n+e*(t-n)}function Yi(t,e,n,o,i){return void 0!==i&&(t=zi(t,i,o)),zi(t,n,o)+e}function Wi(t,e=0,n=1,o,i){t.min=Yi(t.min,e,n,o,i),t.max=Yi(t.max,e,n,o,i)}function Xi(t,{x:e,y:n}){Wi(t.x,e.translate,e.scale,e.originPoint),Wi(t.y,n.translate,n.scale,n.originPoint)}function Hi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Gi(t,e){t.min=t.min+e,t.max=t.max+e}function Zi(t,e,[n,o,i]){const r=void 0!==e[i]?e[i]:.5,s=Zn(t.min,t.max,r);Wi(t,e[n],e[o],s,e.scale)}const qi=["x","scaleX","originX"],Ki=["y","scaleY","originY"];function _i(t,e){Zi(t.x,e,qi),Zi(t.y,e,Ki)}function Ji(t,e){return Fi(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const Qi=new WeakMap;class tr{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new fi(t,{onSessionStart:t=>{this.stopAnimation(),n&&this.snapToCursor(ne(t,"page").point)},onStart:(t,n)=>{var o;const{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();(!i||r||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=he(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ii((t=>{var e,n;let o=this.getAxisMotionValue(t).get()||0;if(ut.test(o)){const i=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(i){o=Ei(i)*(parseFloat(o)/100)}}this.originPoint[t]=o})),null===s||void 0===s||s(t,n),null===(o=this.visualElement.animationState)||void 0===o||o.setActive(e.AnimationType.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:i,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&(null===i||void 0===i||i(this.currentDirection)));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null===r||void 0===r||r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:i}=this.getProps();null===i||void 0===i||i(t,e)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(e.AnimationType.Drag,!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!er(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:n},o){return void 0!==e&&t<e?t=o?Zn(e,t,o.min):Math.max(t,e):void 0!==n&&t>n&&(t=o?Zn(n,t,o.max):Math.min(t,n)),t}(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&y(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:o,right:i}){return{x:Mi(t.x,n,i),y:Mi(t.y,e,o)}}(n.layoutBox,t),this.elastic=function(t=Di){return!1===t?t=0:!0===t&&(t=Di),{x:ki(t,"left","right"),y:ki(t,"top","bottom")}}(e),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ii((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!y(t))return!1;const n=t.current;r.invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=function(t,e,n){const o=Ji(t,n),{scroll:i}=e;return i&&(Gi(o.x,i.offset.x),Gi(o.y,i.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:Ri(t.x,e.x),y:Ri(t.y,e.y)}}(o.layout.layoutBox,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=Fi(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ii((s=>{if(!er(s,e,this.currentDirection))return;let l=(null===a||void 0===a?void 0:a[s])||{};r&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(ti(t,n,0,e))}stopAnimation(){Ii((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){Ii((e=>{const{drag:n}=this.getProps();if(!er(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[e];i.set(t[e]-Zn(n,r,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!y(n)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ii((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();i[t]=function(t,e){let n=.5;const o=Ei(t),i=Ei(e);return i>o?n=io(e.min,e.max-o,t.min):o>i&&(n=io(t.min,t.max-i,e.min)),J(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ii((t=>{if(!er(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:r}=this.constraints[t];n.set(Zn(o,r,i[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;Qi.set(this.visualElement,this);const e=ae(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),n=()=>{const{dragConstraints:t}=this.getProps();y(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),n();const r=qt(window,"resize",(()=>this.scalePositionWithinConstraints())),s=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Ii((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),e(),i(),null===s||void 0===s||s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=Di,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:s}}}function er(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const nr={pan:Re((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:o,visualElement:r}){const s=t||e||n||o,a=i.useRef(null),{transformPagePoint:l}=i.useContext(d),u={onSessionStart:o,onStart:e,onMove:t,onEnd:(t,e)=>{a.current=null,n&&n(t,e)}};i.useEffect((()=>{null!==a.current&&a.current.updateHandlers(u)})),le(r,"pointerdown",s&&function(t){a.current=new fi(t,u,{transformPagePoint:l})}),ve((()=>a.current&&a.current.end()))})),drag:Re((function(t){const{dragControls:e,visualElement:n}=t,o=M((()=>new tr(n)));i.useEffect((()=>e&&e.subscribe(o)),[o,e]),i.useEffect((()=>o.addListeners()),[o])}))};function or(t){return"string"===typeof t&&t.startsWith("var(--")}const ir=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rr(t,e,n=1){r.invariant(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,i]=function(t){const e=ir.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]}(t);if(!o)return;const s=window.getComputedStyle(e).getPropertyValue(o);return s?s.trim():or(i)?rr(i,e,n+1):i}const sr=new Set(["width","height","top","left","right","bottom","x","y"]),ar=t=>sr.has(t),lr=(t,e)=>{t.set(e,!1),t.set(e)},ur=t=>t===Q||t===ct;var cr;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(cr||(cr={}));const dr=(t,e)=>parseFloat(t.split(", ")[e]),hr=(t,e)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const i=o.match(/^matrix3d\((.+)\)$/);if(i)return dr(i[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?dr(e[1],t):0}},pr=new Set(["x","y","z"]),mr=Y.filter((t=>!pr.has(t)));const fr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:hr(4,13),y:hr(5,14)},vr=(t,e,n={},o={})=>{e={...e},o={...o};const i=Object.keys(e).filter(ar);let s=[],a=!1;const l=[];if(i.forEach((i=>{const u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],d=Sn(c);const h=e[i];let p;if($t(h)){const t=h.length,e=null===h[0]?1:0;c=h[e],d=Sn(c);for(let n=e;n<t;n++)p?r.invariant(Sn(h[n])===p,"All keyframes must be of the same type"):(p=Sn(h[n]),r.invariant(p===d||ur(d)&&ur(p),"Keyframes must be of the same dimension as the current value"))}else p=Sn(h);if(d!==p)if(ur(d)&&ur(p)){const t=u.get();"string"===typeof t&&u.set(parseFloat(t)),"string"===typeof h?e[i]=parseFloat(h):Array.isArray(h)&&p===ct&&(e[i]=h.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===p||void 0===p?void 0:p.transform)&&(0===c||0===h)?0===c?u.set(p.transform(c)):e[i]=d.transform(h):(a||(s=function(t){const e=[];return mr.forEach((n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),l.push(i),o[i]=void 0!==o[i]?o[i]:e[i],lr(u,h))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const o=e.measureViewportBox(),i=e.current,r=getComputedStyle(i),{display:s}=r,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=fr[t](o,r)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const o=e.getValue(n);lr(o,a[n]),t[n]=fr[n](l,r)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),f&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:o}}return{target:e,transitionEnd:o}};function gr(t,e,n,o){return(t=>Object.keys(t).some(ar))(e)?vr(t,e,n,o):{target:e,transitionEnd:o}}const yr=(t,e,n,o)=>{const i=function(t,{...e},n){const o=t.current;if(!(o instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!or(e))return;const n=rr(e,o);n&&t.set(n)}));for(const i in e){const t=e[i];if(!or(t))continue;const r=rr(t,o);r&&(e[i]=r,n&&void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,o);return gr(t,e=i.target,n,o=i.transitionEnd)},xr={current:null},br={current:!1};function wr(){if(br.current=!0,f)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>xr.current=t.matches;t.addListener(e),e()}else xr.current=!1}const Er=Object.keys(V),Pr=Er.length,Tr=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ar{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>We.render(this.render,!1,!0);const{latestValues:r,renderState:s}=o;this.latestValues=r,this.baseTarget={...r},this.initialValues=e.initial?{...r}:{},this.renderState=s,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=E(e),this.isVariantNode=P(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(const u in l){const t=l[u];void 0!==r[u]&&H(t)&&(t.set(r[u],!1),Fn(a)&&a.add(u))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),br.current||wr(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||xr.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Xe.update(this.notifyUpdate),Xe.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,e){const n=W.has(t),o=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&We.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{o(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,a){const l=[];"production"!==xe&&n&&e&&r.invariant(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let r=0;r<Pr;r++){const e=Er[r],{isEnabled:n,Component:o}=V[e];n(t)&&o&&l.push(i.createElement(o,{key:e,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:r,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||r&&y(r),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<Tr.length;e++){const n=Tr[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(t,e,n){const{willChange:o}=e;for(const i in e){const r=e[i],s=n[i];if(H(r))t.addValue(i,r),Fn(o)&&o.add(i);else if(H(s))t.addValue(i,en(r,{owner:t})),Fn(o)&&o.remove(i);else if(s!==r)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(r)}else{const e=t.getStaticValue(i);t.addValue(i,en(void 0!==e?e:r))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const o={};for(let i=0;i<Vr;i++){const t=Sr[i],e=this.props[t];(x(e)||!1===e)&&(o[t]=e)}return o}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=en(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,o="string"===typeof n||"object"===typeof n?null===(e=Nt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==o)return o;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||H(i)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Je),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}const Sr=["initial",...si],Vr=Sr.length;class Cr extends Ar{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:o},i){let r=In(n,t||{},this);if(o&&(e&&(e=o(e)),n&&(n=o(n)),r&&(r=o(r))),i){Ln(this,n,r);const t=yr(this,n,r,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Mr extends Cr{readValueFromInstance(t,e){if(W.has(e)){const t=En(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),i=(K(e)?o.getPropertyValue(e):o[e])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ji(t,e)}build(t,e,n,o){vt(t,e,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return Ot(t)}renderInstance(t,e,n,o){It(t,e,n,o)}}class Rr extends Cr{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return W.has(e)?(null===(n=En(e))||void 0===n?void 0:n.default)||0:(e=Ft.has(e)?e:Bt(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t){return Ut(t)}build(t,e,n,o){Mt(t,e,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,e,n,o){jt(t,e,0,o)}mount(t){this.isSVGTag=Dt(t.tagName),super.mount(t)}}const Dr=(t,e)=>N(t)?new Rr(e,{enableHardwareAcceleration:!1}):new Mr(e,{enableHardwareAcceleration:!0});function kr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Lr={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!ct.test(t))return t;t=parseFloat(t)}return`${kr(t,e.target.x)}% ${kr(t,e.target.y)}%`}},Br="_$css",Ir={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,i=t.includes("var("),r=[];i&&(t=t.replace(ir,(t=>(r.push(t),Br))));const s=vn.parse(t);if(s.length>5)return o;const a=vn.createTransformer(t),l="number"!==typeof s[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;s[0+l]/=u,s[1+l]/=c;const d=Zn(u,c,.5);"number"===typeof s[2+l]&&(s[2+l]/=d),"number"===typeof s[3+l]&&(s[3+l]/=d);let h=a(s);if(i){let t=0;h=h.replace(Br,(()=>{const e=r[t];return t++,e}))}return h}};class Fr extends u.default.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;z(jr),i&&(e.group&&e.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),R.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:i}=this.props,r=n.projection;return r?(r.isPresent=i,o||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||We.postRender((()=>{var t;(null===(t=r.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(o),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;null===t||void 0===t||t()}render(){return null}}const jr={borderRadius:{...Lr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lr,borderTopRightRadius:Lr,borderBottomLeftRadius:Lr,borderBottomRightRadius:Lr,boxShadow:Ir},Or={measureLayout:function(t){const[e,n]=ke(),o=i.useContext(k);return u.default.createElement(Fr,{...t,layoutGroup:o,switchLayoutGroup:i.useContext(B),isPresent:e,safeToRemove:n})}};function Ur(t,e,n={}){const o=H(t)?t:en(t);return o.start(ti("",o,e,n)),{stop:()=>o.stop(),isAnimating:()=>o.isAnimating()}}const Nr=["TopLeft","TopRight","BottomLeft","BottomRight"],$r=Nr.length,zr=t=>"string"===typeof t?parseFloat(t):t,Yr=t=>"number"===typeof t||ct.test(t);function Wr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Xr=Gr(0,.5,po),Hr=Gr(.5,.95,lo);function Gr(t,e,n){return o=>o<t?0:o>e?1:n(io(t,e,o))}function Zr(t,e){t.min=e.min,t.max=e.max}function qr(t,e){Zr(t.x,e.x),Zr(t.y,e.y)}function Kr(t,e,n,o,i){return t=zi(t-=e,1/n,o),void 0!==i&&(t=zi(t,1/i,o)),t}function _r(t,e,[n,o,i],r,s){!function(t,e=0,n=1,o=.5,i,r=t,s=t){ut.test(e)&&(e=parseFloat(e),e=Zn(s.min,s.max,e/100)-s.min);if("number"!==typeof e)return;let a=Zn(r.min,r.max,o);t===r&&(a-=e),t.min=Kr(t.min,e,n,a,i),t.max=Kr(t.max,e,n,a,i)}(t,e[n],e[o],e[i],e.scale,r,s)}const Jr=["x","scaleX","originX"],Qr=["y","scaleY","originY"];function ts(t,e,n,o){_r(t.x,e,Jr,null===n||void 0===n?void 0:n.x,null===o||void 0===o?void 0:o.x),_r(t.y,e,Qr,null===n||void 0===n?void 0:n.y,null===o||void 0===o?void 0:o.y)}function es(t){return 0===t.translate&&1===t.scale}function ns(t){return es(t.x)&&es(t.y)}function os(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function is(t){return Ei(t.x)/Ei(t.y)}class rs{constructor(){this.members=[]}add(t){Ke(this.members,t),t.scheduleRender()}remove(t){if(_e(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let o=e;o>=0;o--){const t=this.members[o];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,e&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&o.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,o,i,r;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(r=null===(o=t.resumingFrom)||void 0===o?void 0:(i=o.options).onExitComplete)||void 0===r||r.call(i)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ss(t,e,n){let o="";const i=t.x.translate/e.x,r=t.y.translate/e.y;if((i||r)&&(o=`translate3d(${i}px, ${r}px, 0) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(o+=`rotate(${t}deg) `),e&&(o+=`rotateX(${e}deg) `),i&&(o+=`rotateY(${i}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(o+=`scale(${s}, ${a})`),o||"none"}const as=(t,e)=>t.depth-e.depth;class ls{constructor(){this.children=[],this.isDirty=!1}add(t){Ke(this.children,t),this.isDirty=!0}remove(t){_e(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(as),this.isDirty=!1,this.children.forEach(t)}}const us=["","X","Y","Z"];let cs=0;function ds({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(t,n={},o=(null===e||void 0===e?void 0:e())){this.id=cs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(ms),this.nodes.forEach(xs),this.nodes.forEach(bs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ls)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Je),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null===n||void 0===n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var o;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:i,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(r||i)&&(this.isLayoutDirty=!0),t){let n;const o=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Oo(o,250),R.hasAnimatedSinceResize&&(R.hasAnimatedSinceResize=!1,this.nodes.forEach(ys))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:o})=>{var i,r,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(r=null!==(i=this.options.transition)&&void 0!==i?i:s.getDefaultTransition())&&void 0!==r?r:Ss,{onLayoutAnimationStart:d,onLayoutAnimationComplete:h}=s.getProps(),p=!this.targetLayout||!os(this.targetLayout,o)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...qo(c,"layout"),onPlay:d,onComplete:h};s.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ys(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=o}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,Xe.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(ws),this.animationId++)}willUpdate(t=!0){var e,n,o;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const t=this.path[a];t.shouldResetTransform=!0,t.updateScroll("snapshot")}const{layoutId:i,layout:r}=this.options;if(void 0===i&&!r)return;const s=null===(o=this.options.visualElement)||void 0===o?void 0:o.getProps().transformTemplate;this.prevTransformTemplateValue=null===s||void 0===s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(vs);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Vs),this.potentialNodes.clear()),this.nodes.forEach(gs),this.nodes.forEach(hs),this.nodes.forEach(ps),this.clearAllSnapshots(),He.update(),He.preRender(),He.render())}clearAllSnapshots(){this.nodes.forEach(fs),this.sharedNodes.forEach(Es)}scheduleUpdateProjection(){We.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){We.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null===e||void 0===e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ns(this.projectionDelta),o=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,r=null===o||void 0===o?void 0:o(this.latestValues,""),s=r!==this.prevTransformTemplateValue;e&&(n||Ui(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var o;return t&&(n=this.removeTransform(n)),Cs((o=n).x),Cs(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Gi(e.x,n.offset.x),Gi(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};qr(e,t);for(let n=0;n<this.path.length;n++){const o=this.path[n],{scroll:i,options:r}=o;if(o!==this.root&&i&&r.layoutScroll){if(i.isRoot){qr(e,t);const{scroll:n}=this.root;n&&(Gi(e.x,-n.offset.x),Gi(e.y,-n.offset.y))}Gi(e.x,i.offset.x),Gi(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};qr(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&_i(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Ui(t.latestValues)&&_i(n,t.latestValues)}return Ui(this.latestValues)&&_i(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};qr(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];if(!t.instance)continue;if(!Ui(t.latestValues))continue;Oi(t.latestValues)&&t.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};qr(i,t.measurePageBox()),ts(n,t.latestValues,null===(e=t.snapshot)||void 0===e?void 0:e.layoutBox,i)}return Ui(this.latestValues)&&ts(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:o}=this.options;if(this.layout&&(n||o)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ci(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),qr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,r,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(i=this.target,r=this.relativeTarget,s=this.relativeParent.target,Si(i.x,r.x,s.x),Si(i.y,r.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):qr(this.target,this.layout.layoutBox),Xi(this.target,this.targetDelta)):qr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ci(this.relativeTargetOrigin,this.target,t.target),qr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Oi(this.parent.latestValues)&&!Ni(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const o=this.getLead(),i=Boolean(this.resumingFrom)||this!==o;let r=!0;if(e&&(r=!1),i&&n&&(r=!1),r)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!a)return;qr(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,o=!1){var i,r;const s=n.length;if(!s)return;let a,l;e.x=e.y=1;for(let u=0;u<s;u++)a=n[u],l=a.projectionDelta,"contents"!==(null===(r=null===(i=a.instance)||void 0===i?void 0:i.style)||void 0===r?void 0:r.display)&&(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&_i(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Xi(t,l)),o&&Ui(a.latestValues)&&_i(t,a.latestValues));e.x=Hi(e.x),e.y=Hi(e.y)}(this.layoutCorrected,this.treeScale,this.path,i);const{target:l}=o;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.treeScale.x,c=this.treeScale.y,d=this.projectionTransform;Ai(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ss(this.projectionDelta,this.treeScale),this.projectionTransform===d&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,o;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(o=this.getStack())||void 0===o||o.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,o;const i=this.snapshot,r=(null===i||void 0===i?void 0:i.latestValues)||{},s={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l={x:{min:0,max:0},y:{min:0,max:0}},u=(null===i||void 0===i?void 0:i.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(o=this.getStack())||void 0===o?void 0:o.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(As));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const o=e/1e3;var i,h,p,m;Ps(a.x,t.x,o),Ps(a.y,t.y,o),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Ci(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,h=this.relativeTargetOrigin,p=l,m=o,Ts(i.x,h.x,p.x,m),Ts(i.y,h.y,p.y,m)),u&&(this.animationValues=s,function(t,e,n,o,i,r){i?(t.opacity=Zn(0,void 0!==n.opacity?n.opacity:1,Xr(o)),t.opacityExit=Zn(void 0!==e.opacity?e.opacity:1,0,Hr(o))):r&&(t.opacity=Zn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let s=0;s<$r;s++){const i=`border${Nr[s]}Radius`;let r=Wr(e,i),a=Wr(n,i);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Yr(r)===Yr(a)?(t[i]=Math.max(Zn(zr(r),zr(a),o),0),(ut.test(a)||ut.test(r))&&(t[i]+="%")):t[i]=a)}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,o))}(s,r,this.latestValues,o,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=o},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Xe.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update((()=>{R.hasAnimatedSinceResize=!0,this.currentAnimation=Ur(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:i}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&Ms(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Ei(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=Ei(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}qr(e,n),_i(e,i),Ai(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){var n,o,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new rs);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(o=e.options.initialPromotionConfig)||void 0===o?void 0:o.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(o,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const o={};for(let i=0;i<us.length;i++){const e="rotate"+us[i];n[e]&&(o[e]=n[e],t.setStaticValue(e,0))}null===t||void 0===t||t.render();for(const i in o)t.setStaticValue(i,o[i]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,o;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=zt(t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=zt(t.pointerEvents)||""),this.hasProjected&&!Ui(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=ss(this.projectionDeltaWithTransform,this.treeScale,a),r&&(i.transform=r(a,i.transform));const{x:l,y:u}=this.projectionDelta;i.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(o=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in $){if(void 0===a[c])continue;const{correct:t,applyTo:e}=$[c],n=t(a[c],s);if(e){const t=e.length;for(let o=0;o<t;o++)i[e[o]]=n}else i[c]=n}return this.options.layoutId&&(i.pointerEvents=s===this?zt(t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(vs),this.root.sharedNodes.clear()}}}function hs(t){t.updateLayout()}function ps(t){var e,n,o;const i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:o}=t.options,r=i.source!==t.layout.source;"size"===o?Ii((t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],o=Ei(n);n.min=e[t].min,n.max=n.min+o})):Ms(o,i.layoutBox,e)&&Ii((t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],o=Ei(e[t]);n.max=n.min+o}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ai(s,e,i.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Ai(a,t.applyTransform(n,!0),i.measuredBox):Ai(a,e,i.layoutBox);const l=!ns(s);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:o}=n;if(t&&o){const n={x:{min:0,max:0},y:{min:0,max:0}};Ci(n,i.layoutBox,t.layoutBox);const r={x:{min:0,max:0},y:{min:0,max:0}};Ci(r,e,o.layoutBox),os(n,r)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(o=(n=t.options).onExitComplete)||void 0===o||o.call(n));t.options.transition=void 0}function ms(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function fs(t){t.clearSnapshot()}function vs(t){t.clearMeasurements()}function gs(t){const{visualElement:e}=t.options;(null===e||void 0===e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ys(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function xs(t){t.resolveTargetDelta()}function bs(t){t.calcProjection()}function ws(t){t.resetRotation()}function Es(t){t.removeLeadSnapshot()}function Ps(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ts(t,e,n,o){t.min=Zn(e.min,n.min,o),t.max=Zn(e.max,n.max,o)}function As(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ss={duration:.45,ease:[.4,0,.1,1]};function Vs(t,e){let n=t.root;for(let i=t.path.length-1;i>=0;i--)if(Boolean(t.path[i].instance)){n=t.path[i];break}const o=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);o&&t.mount(o,!0)}function Cs(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Ms(t,e,n){return"position"===t||"preserve-aspect"===t&&!Pi(is(e),is(n),.2)}const Rs=ds({attachResizeListener:(t,e)=>qt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ds={current:void 0},ks=ds({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ds.current){const t=new Rs(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Ds.current=t}return Ds.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Ls={...hi,...De,...nr,...Or},Bs=O(((t,e)=>Gt(t,e,Ls,Dr,ks)));const Is=O(Gt);function Fs(){const t=i.useRef(!1);return v((()=>(t.current=!0,()=>{t.current=!1})),[]),t}function js(){const t=Fs(),[e,n]=i.useState(0),o=i.useCallback((()=>{t.current&&n(e+1)}),[e]);return[i.useCallback((()=>We.postRender(o)),[o]),e]}class Os extends c.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Us({children:t,isPresent:e}){const n=i.useId(),o=i.useRef(null),r=i.useRef({width:0,height:0,top:0,left:0});return i.useInsertionEffect((()=>{const{width:t,height:i,top:s,left:a}=r.current;if(e||!o.current||!t||!i)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${i}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[e]),c.createElement(Os,{isPresent:e,childRef:o,sizeRef:r},c.cloneElement(t,{ref:o}))}const Ns=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:a})=>{const l=M($s),u=i.useId(),d=i.useMemo((()=>({id:u,initial:e,isPresent:n,custom:r,onExitComplete:t=>{l.set(t,!0);for(const e of l.values())if(!e)return;o&&o()},register:t=>(l.set(t,!1),()=>l.delete(t))})),s?void 0:[n]);return i.useMemo((()=>{l.forEach(((t,e)=>l.set(e,!1)))}),[n]),c.useEffect((()=>{!n&&!l.size&&o&&o()}),[n]),"popLayout"===a&&(t=c.createElement(Us,{isPresent:n},t)),c.createElement(m.Provider,{value:d},t)};function $s(){return new Map}const zs=t=>t.key||"";const Ys=i.createContext(null),Ws=t=>!t.isLayoutDirty&&t.willUpdate(!1);function Xs(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Ws);return{add:o=>{t.add(o),e.set(o,o.addEventListener("willUpdate",n))},remove:o=>{var i;t.delete(o),null===(i=e.get(o))||void 0===i||i(),e.delete(o),n()},dirty:n}}const Hs=t=>!0===t,Gs=({children:t,id:e,inheritId:n,inherit:o=!0})=>{void 0!==n&&(o=n);const r=i.useContext(k),s=i.useContext(Ys),[a,l]=js(),u=i.useRef(null),d=r.id||s;null===u.current&&((t=>Hs(!0===t)||"id"===t)(o)&&d&&(e=e?d+"-"+e:d),u.current={id:e,group:Hs(o)&&r.group||Xs()});const h=i.useMemo((()=>({...u.current,forceRender:a})),[l]);return c.createElement(k.Provider,{value:h},t)};let Zs=0;function qs(t){return"function"===typeof t}const Ks=i.createContext(null);const _s=i.forwardRef((function({children:t,as:e="ul",axis:n="y",onReorder:o,values:s,...a},l){const u=M((()=>Bs(e))),d=[],h=i.useRef(!1);r.invariant(Boolean(s),"Reorder.Group must be provided a values prop");const p={axis:n,registerItem:(t,e)=>{e&&-1===d.findIndex((e=>t===e.value))&&(d.push({value:t,layout:e[n]}),d.sort(Qs))},updateOrder:(t,e,n)=>{if(h.current)return;const i=function(t,e,n,o){if(!o)return t;const i=t.findIndex((t=>t.value===e));if(-1===i)return t;const r=o>0?1:-1,s=t[i+r];if(!s)return t;const a=t[i],l=s.layout,u=Zn(l.min,l.max,.5);return 1===r&&a.layout.max+n>u||-1===r&&a.layout.min+n<u?function([...t],e,n){const o=e<0?t.length+e:e;if(o>=0&&o<t.length){const o=n<0?t.length+n:n,[i]=t.splice(e,1);t.splice(o,0,i)}return t}(t,i,i+r):t}(d,t,e,n);d!==i&&(h.current=!0,o(i.map(Js).filter((t=>-1!==s.indexOf(t)))))}};return i.useEffect((()=>{h.current=!1})),c.createElement(u,{...a,ref:l},c.createElement(Ks.Provider,{value:p},t))}));function Js(t){return t.value}function Qs(t,e){return t.layout.min-e.layout.min}function ta(t){const e=M((()=>en(t))),{isStatic:n}=i.useContext(d);if(n){const[,n]=i.useState(t);i.useEffect((()=>e.onChange(n)),[])}return e}function ea(...t){const e=!Array.isArray(t[0]),n=e?0:-1,o=t[0+n],i=t[1+n],r=t[2+n],s=t[3+n],a=ao(i,r,{mixer:(l=r[0],(t=>"object"===typeof t&&t.mix)(l)?l.mix:void 0),...s});var l;return e?a(o):a}function na(t,e){const n=ta(e()),o=()=>n.set(e());return o(),function(t,e,n){v((()=>{const o=t.map((t=>t.onChange(e)));return()=>{o.forEach((t=>t())),n()}}))}(t,(()=>We.update(o,!1,!0)),(()=>Xe.update(o))),n}function oa(t,e,n,o){const i="function"===typeof e?e:ea(e,n,o);return Array.isArray(t)?ia(t,i):ia([t],(([t])=>i(t)))}function ia(t,e){const n=M((()=>[]));return na(t,(()=>{n.length=0;const o=t.length;for(let e=0;e<o;e++)n[e]=t[e].get();return e(n)}))}function ra(t,e=0){return H(t)?t:ta(e)}const sa={Group:_s,Item:i.forwardRef((function({children:t,style:e={},value:n,as:o="li",onDrag:s,layout:a=!0,...l},u){const d=M((()=>Bs(o))),h=i.useContext(Ks),p={x:ra(e.x),y:ra(e.y)},m=oa([p.x,p.y],(([t,e])=>t||e?1:"unset")),f=i.useRef(null);r.invariant(Boolean(h),"Reorder.Item must be a child of Reorder.Group");const{axis:v,registerItem:g,updateOrder:y}=h;return i.useEffect((()=>{g(n,f.current)}),[h]),c.createElement(d,{drag:v,...l,dragSnapToOrigin:!0,style:{...e,x:p.x,y:p.y,zIndex:m},layout:a,onDrag:(t,e)=>{const{velocity:o}=e;o[v]&&y(n,p[v].get(),o[v]),s&&s(t,e)},onLayoutMeasure:t=>{f.current=t},ref:u},t)}))},aa={renderer:Dr,...hi,...De},la={...aa,...nr,...Or,projectionNodeConstructor:ks};const ua=()=>({scrollX:en(0),scrollY:en(0),scrollXProgress:en(0),scrollYProgress:en(0)});function ca({container:t,target:e,layoutEffect:n=!0,...o}={}){const r=M(ua);return(n?v:i.useEffect)((()=>s.scroll((({x:t,y:e})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(e.current),r.scrollYProgress.set(e.progress)}),{...o,container:(null===t||void 0===t?void 0:t.current)||void 0,target:(null===e||void 0===e?void 0:e.current)||void 0})),[]),r}function da(t){const e=i.useRef(0),{isStatic:n}=i.useContext(d);i.useEffect((()=>{if(n)return;const o=({timestamp:n,delta:o})=>{e.current||(e.current=n),t(n-e.current,o)};return We.update(o,!0),()=>Xe.update(o)}),[t])}class ha extends tn{constructor(){super(...arguments),this.members=[],this.transforms=new Set}add(t){let e;W.has(t)?(this.transforms.add(t),e="transform"):t.startsWith("origin")||K(t)||"willChange"===t||(e=Bt(t)),e&&(Ke(this.members,e),this.update())}remove(t){W.has(t)?(this.transforms.delete(t),this.transforms.size||_e(this.members,"transform")):_e(this.members,Bt(t)),this.update()}update(){this.set(this.members.length?this.members.join(", "):"auto")}}function pa(){!br.current&&wr();const[t]=i.useState(xr.current);return t}function ma(){let t=!1;const e=[],n=new Set,o={subscribe:t=>(n.add(t),()=>{n.delete(t)}),start(o,i){if(t){const t=[];return n.forEach((e=>{t.push(ei(e,o,{transitionOverride:i}))})),Promise.all(t)}return new Promise((t=>{e.push({animation:[o,i],resolve:t})}))},set:e=>(r.invariant(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((t=>{!function(t,e){Array.isArray(e)?kn(t,e):"string"===typeof e?kn(t,[e]):Dn(t,e)}(t,e)}))),stop(){n.forEach((t=>{!function(t){t.values.forEach((t=>t.stop()))}(t)}))},mount:()=>(t=!0,e.forEach((({animation:t,resolve:e})=>{o.start(...t).then(e)})),()=>{t=!1,o.stop()})};return o}function fa(){const t=M(ma);return i.useEffect(t.mount,[]),t}const va=fa,ga=(t,e,n)=>{const o=e-t;return((n-t)%o+o)%o+t};class ya{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach((n=>{n.start(t.nativeEvent||t,e)}))}}const xa=()=>new ya;function ba(t){return null!==t&&"object"===typeof t&&I in t}function wa(){return Ea}function Ea(t){Ds.current&&(Ds.current.isUpdating=!1,Ds.current.blockUpdate(),t&&t())}const Pa=()=>({});class Ta extends Ar{build(){}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return{}}getBaseTargetFromProps(){}readValueFromInstance(t,e,n){return n.initialState[e]||0}sortInstanceNodePosition(){return 0}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n}){return Ln(this,n,In(n,t||{},this)),{transition:t,transitionEnd:e,...n}}}const Aa=Yt({scrapeMotionValuesFromProps:Pa,createRenderState:Pa});const Sa=t=>t>.001?1/t:1e5;let Va=!1;e.AnimatePresence=({children:t,custom:e,initial:n=!0,onExitComplete:o,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:a="sync"})=>{r&&(a="wait",we(!1,"Replace exitBeforeEnter with mode='wait'"));let[l]=js();const u=i.useContext(k).forceRender;u&&(l=u);const d=Fs(),h=function(t){const e=[];return i.Children.forEach(t,(t=>{i.isValidElement(t)&&e.push(t)})),e}(t);let p=h;const m=new Set,f=i.useRef(p),g=i.useRef(new Map).current,y=i.useRef(!0);if(v((()=>{y.current=!1,function(t,e){t.forEach((t=>{const n=zs(t);e.set(n,t)}))}(h,g),f.current=p})),ve((()=>{y.current=!0,g.clear(),m.clear()})),y.current)return c.createElement(c.Fragment,null,p.map((t=>c.createElement(Ns,{key:zs(t),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:s,mode:a},t))));p=[...p];const x=f.current.map(zs),b=h.map(zs),w=x.length;for(let i=0;i<w;i++){const t=x[i];-1===b.indexOf(t)&&m.add(t)}return"wait"===a&&m.size&&(p=[]),m.forEach((t=>{if(-1!==b.indexOf(t))return;const n=g.get(t);if(!n)return;const i=x.indexOf(t);p.splice(i,0,c.createElement(Ns,{key:zs(n),isPresent:!1,onExitComplete:()=>{g.delete(t),m.delete(t);const e=f.current.findIndex((e=>e.key===t));if(f.current.splice(e,1),!m.size){if(f.current=h,!1===d.current)return;l(),o&&o()}},custom:e,presenceAffectsLayout:s,mode:a},n))})),p=p.map((t=>{const e=t.key;return m.has(e)?t:c.createElement(Ns,{key:zs(t),isPresent:!0,presenceAffectsLayout:s,mode:a},t)})),"production"!==xe&&"wait"===a&&p.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),c.createElement(c.Fragment,null,m.size?p:p.map((t=>i.cloneElement(t))))},e.AnimateSharedLayout=({children:t})=>(c.useEffect((()=>{r.warning(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")}),[]),c.createElement(Gs,{id:M((()=>"asl-"+Zs++))},t)),e.DeprecatedLayoutGroupContext=Ys,e.DragControls=ya,e.FlatTree=ls,e.LayoutGroup=Gs,e.LayoutGroupContext=k,e.LazyMotion=function({children:t,features:e,strict:n=!1}){const[,o]=i.useState(!qs(e)),r=i.useRef(void 0);if(!qs(e)){const{renderer:t,...n}=e;r.current=t,C(n)}return i.useEffect((()=>{qs(e)&&e().then((({renderer:t,...e})=>{C(e),r.current=t,o(!0)}))}),[]),c.createElement(g.Provider,{value:{renderer:r.current,strict:n}},t)},e.MotionConfig=function({children:t,isValidProp:e,...n}){e&&Tt(e),(n={...i.useContext(d),...n}).isStatic=M((()=>n.isStatic));const o=i.useMemo((()=>n),[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return c.createElement(d.Provider,{value:o},t)},e.MotionConfigContext=d,e.MotionContext=h,e.MotionValue=tn,e.PresenceContext=m,e.Reorder=sa,e.SwitchLayoutGroupContext=B,e.VisualElement=Ar,e.addPointerEvent=ae,e.addScaleCorrector=z,e.animate=Ur,e.animateVisualElement=ei,e.animationControls=ma,e.animations=hi,e.buildTransform=q,e.calcLength=Ei,e.checkTargetForNewValues=Ln,e.clamp=J,e.createBox=Bi,e.createDomMotionComponent=function(t){return F(Gt(t,{forwardMotionProps:!1},Ls,Dr,ks))},e.createMotionComponent=F,e.delay=Oo,e.distance=pi,e.distance2D=mi,e.domAnimation=aa,e.domMax=la,e.filterProps=At,e.isBrowser=f,e.isDragActive=pe,e.isMotionComponent=ba,e.isMotionValue=H,e.isValidMotionProp=Et,e.m=Is,e.makeUseVisualState=Yt,e.mix=Zn,e.motion=Bs,e.motionValue=en,e.optimizedAppearDataAttribute=Nn,e.pipe=ye,e.resolveMotionValue=zt,e.spring=Mo,e.startOptimizedAppearAnimation=function(t,e,n,o){window.MotionAppearAnimations||(window.MotionAppearAnimations=new Map);const i=t.dataset.framerAppearId,r=jo(t,e,n,o);return i&&r&&window.MotionAppearAnimations.set(jn(i,e),r),r},e.transform=ea,e.unwrapMotionComponent=function(t){if(ba(t))return t[I]},e.useAnimation=va,e.useAnimationControls=fa,e.useAnimationFrame=da,e.useCycle=function(...t){const e=i.useRef(0),[n,o]=i.useState(t[e.current]);return[n,i.useCallback((n=>{e.current="number"!==typeof n?ga(0,t.length,e.current+1):n,o(t[e.current])}),[t.length,...t])]},e.useDeprecatedAnimatedState=function(t){const[e,n]=i.useState(t),o=Aa({},!1),r=M((()=>new Ta({props:{},visualState:o},{initialState:t})));return i.useEffect((()=>(r.mount({}),()=>r.unmount())),[r]),i.useEffect((()=>{r.setProps({onUpdate:t=>{n({...t})}})}),[n,r]),[e,M((()=>t=>ei(r,t)))]},e.useDeprecatedInvertedScale=function(t){let e=ta(1),n=ta(1);const o=p();return r.invariant(!(!t&&!o),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),r.warning(Va,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Va=!0,t?(e=t.scaleX||e,n=t.scaleY||n):o&&(e=o.getValue("scaleX",1),n=o.getValue("scaleY",1)),{scaleX:oa(e,Sa),scaleY:oa(n,Sa)}},e.useDomEvent=Kt,e.useDragControls=function(){return M(xa)},e.useElementScroll=function(t){return we(!1,"useElementScroll is deprecated. Convert to useScroll({ container: ref })."),ca({container:t})},e.useForceUpdate=js,e.useInView=function(t,{root:e,margin:n,amount:o,once:r=!1}={}){const[a,l]=i.useState(!1);return i.useEffect((()=>{if(!t.current||r&&a)return;const i={root:e&&e.current||void 0,margin:n,amount:"some"===o?"any":o};return s.inView(t.current,(()=>(l(!0),r?void 0:()=>l(!1))),i)}),[e,t,n,r]),a},e.useInstantLayoutTransition=wa,e.useInstantTransition=function(){const[t,e]=js(),n=wa();return i.useEffect((()=>{We.postRender((()=>We.postRender((()=>zn.current=!1))))}),[e]),e=>{n((()=>{zn.current=!0,t(),e()}))}},e.useIsPresent=function(){return null===(t=i.useContext(m))||t.isPresent;var t},e.useIsomorphicLayoutEffect=v,e.useMotionTemplate=function(t,...e){const n=t.length;return na(e,(function(){let o="";for(let i=0;i<n;i++){o+=t[i];e[i]&&(o+=e[i].get())}return o}))},e.useMotionValue=ta,e.usePresence=ke,e.useReducedMotion=pa,e.useReducedMotionConfig=function(){const t=pa(),{reducedMotion:e}=i.useContext(d);return"never"!==e&&("always"===e||t)},e.useResetProjection=function(){return c.useCallback((()=>{const t=Ds.current;t&&t.resetTree()}),[])},e.useScroll=ca,e.useSpring=function(t,e={}){const{isStatic:n}=i.useContext(d),o=i.useRef(null),r=ta(H(t)?t.get():t);return i.useMemo((()=>r.attach(((t,i)=>n?i(t):(o.current&&o.current.stop(),o.current=Bo({keyframes:[r.get(),t],velocity:r.getVelocity(),type:"spring",...e,onUpdate:i}),r.get())))),[JSON.stringify(e)]),function(t,e){v((()=>{if(H(t))return e(t.get()),t.onChange(e)}),[t,e])}(t,(t=>r.set(parseFloat(t)))),r},e.useTime=function(){const t=ta(0);return da((e=>t.set(e))),t},e.useTransform=oa,e.useUnmountEffect=ve,e.useVelocity=function(t){const e=ta(t.getVelocity());return i.useEffect((()=>t.velocityUpdateSubscribers.add((t=>{e.set(t)}))),[t]),e},e.useViewportScroll=function(){return we(!1,"useViewportScroll is deprecated. Convert to useScroll()."),ca()},e.useVisualElementContext=p,e.useWillChange=function(){return M((()=>new ha("auto")))},e.wrap=ga,e.wrapHandler=oe}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4434],{3686:function(t,e,n){var o=n(554);Object.defineProperty(e,"__esModule",{value:!0});var i=n(82684),r=n(61287),s=n(59383);function a(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}function l(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var u=a(i),c=l(i);const d=i.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),h=i.createContext({});function p(){return i.useContext(h).visualElement}const m=i.createContext(null),f="undefined"!==typeof document,v=f?i.useLayoutEffect:i.useEffect,g=i.createContext({strict:!1});function y(t){return"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function x(t){return"string"===typeof t||Array.isArray(t)}function b(t){return"object"===typeof t&&"function"===typeof t.start}const w=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function E(t){return b(t.animate)||w.some((e=>x(t[e])))}function P(t){return Boolean(E(t)||t.variants)}function T(t){const{initial:e,animate:n}=function(t,e){if(E(t)){const{initial:e,animate:n}=t;return{initial:!1===e||x(e)?e:void 0,animate:x(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,i.useContext(h));return i.useMemo((()=>({initial:e,animate:n})),[A(e),A(n)])}function A(t){return Array.isArray(t)?t.join(" "):t}const S=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),V={measureLayout:S(["layout","layoutId","drag"]),animation:S(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:S(["exit"]),drag:S(["drag","dragControls"]),focus:S(["whileFocus"]),hover:S(["whileHover","onHoverStart","onHoverEnd"]),tap:S(["whileTap","onTap","onTapStart","onTapCancel"]),pan:S(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:S(["whileInView","onViewportEnter","onViewportLeave"])};function C(t){for(const e in t)"projectionNodeConstructor"===e?V.projectionNodeConstructor=t[e]:V[e].Component=t[e]}function M(t){const e=i.useRef(null);return null===e.current&&(e.current=t()),e.current}const R={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let D=1;const k=i.createContext({});class L extends u.default.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const B=i.createContext({}),I=Symbol.for("motionComponentSymbol");function F({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:n,useRender:o,useVisualState:r,Component:s}){t&&C(t);const a=i.forwardRef((function(a,l){const u={...i.useContext(d),...a,layoutId:j(a)},{isStatic:x}=u;let b=null;const w=T(a),E=x?void 0:M((()=>{if(R.hasEverUpdated)return D++})),P=r(a,x);if(!x&&f){w.visualElement=function(t,e,n,o){const r=p(),s=i.useContext(g),a=i.useContext(m),l=i.useContext(d).reducedMotion,u=i.useRef();o=o||s.renderer,!u.current&&o&&(u.current=o(t,{visualState:e,parent:r,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const c=u.current;return v((()=>{c&&c.render()})),i.useEffect((()=>{c&&c.animationState&&c.animationState.animateChanges()})),v((()=>()=>c&&c.notify("Unmount")),[]),c}(s,P,u,e);const o=i.useContext(g).strict,r=i.useContext(B);w.visualElement&&(b=w.visualElement.loadFeatures(u,o,t,E,n||V.projectionNodeConstructor,r))}return c.createElement(L,{visualElement:w.visualElement,props:u},b,c.createElement(h.Provider,{value:w},o(s,a,E,function(t,e,n){return i.useCallback((o=>{o&&t.mount&&t.mount(o),e&&(o?e.mount(o):e.unmount()),n&&("function"===typeof n?n(o):y(n)&&(n.current=o))}),[e])}(P,w.visualElement,l),P,x,w.visualElement)))}));return a[I]=s,a}function j({layoutId:t}){const e=i.useContext(k).id;return e&&void 0!==t?e+"-"+t:t}function O(t){function e(e,n={}){return F(t(e,n))}if("undefined"===typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const U=["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 N(t){return"string"===typeof t&&!t.includes("-")&&!!(U.indexOf(t)>-1||/[A-Z]/.test(t))}const $={};function z(t){Object.assign($,t)}const Y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],W=new Set(Y);function X(t,{layout:e,layoutId:n}){return W.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!$[t]||"opacity"===t)}const H=t=>!!(null===t||void 0===t?void 0:t.getVelocity),G={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z=(t,e)=>Y.indexOf(t)-Y.indexOf(e);function q({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:o=!0},i,r){let s="";e.sort(Z);for(const a of e)s+=`${G[a]||a}(${t[a]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,i?"":s):o&&i&&(s="none"),s}function K(t){return t.startsWith("--")}const _=(t,e)=>e&&"number"===typeof t?e.transform(t):t,J=(t,e,n)=>Math.min(Math.max(n,t),e),Q={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},tt={...Q,transform:t=>J(0,1,t)},et={...Q,default:1},nt=t=>Math.round(1e5*t)/1e5,ot=/(-)?([\d]*\.?[\d])+/g,it=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rt=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function st(t){return"string"===typeof t}const at=t=>({test:e=>st(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),lt=at("deg"),ut=at("%"),ct=at("px"),dt=at("vh"),ht=at("vw"),pt={...ut,parse:t=>ut.parse(t)/100,transform:t=>ut.transform(100*t)},mt={...Q,transform:Math.round},ft={borderWidth:ct,borderTopWidth:ct,borderRightWidth:ct,borderBottomWidth:ct,borderLeftWidth:ct,borderRadius:ct,radius:ct,borderTopLeftRadius:ct,borderTopRightRadius:ct,borderBottomRightRadius:ct,borderBottomLeftRadius:ct,width:ct,maxWidth:ct,height:ct,maxHeight:ct,size:ct,top:ct,right:ct,bottom:ct,left:ct,padding:ct,paddingTop:ct,paddingRight:ct,paddingBottom:ct,paddingLeft:ct,margin:ct,marginTop:ct,marginRight:ct,marginBottom:ct,marginLeft:ct,rotate:lt,rotateX:lt,rotateY:lt,rotateZ:lt,scale:et,scaleX:et,scaleY:et,scaleZ:et,skew:lt,skewX:lt,skewY:lt,distance:ct,translateX:ct,translateY:ct,translateZ:ct,x:ct,y:ct,z:ct,perspective:ct,transformPerspective:ct,opacity:tt,originX:pt,originY:pt,originZ:ct,zIndex:mt,fillOpacity:tt,strokeOpacity:tt,numOctaves:mt};function vt(t,e,n,o){const{style:i,vars:r,transform:s,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,d=!0;for(const h in e){const t=e[h];if(K(h)){r[h]=t;continue}const n=ft[h],o=_(t,n);if(W.has(h)){if(u=!0,s[h]=o,a.push(h),!d)continue;t!==(n.default||0)&&(d=!1)}else h.startsWith("origin")?(c=!0,l[h]=o):i[h]=o}if(e.transform||(u||o?i.transform=q(t,n,d,o):i.transform&&(i.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;i.transformOrigin=`${t} ${e} ${n}`}}const gt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function yt(t,e,n){for(const o in e)H(e[o])||X(o,n)||(t[o]=e[o])}function xt(t,e,n){const o={};return yt(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},e,n){return i.useMemo((()=>{const o={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return vt(o,e,{enableHardwareAcceleration:!n},t),Object.assign({},o.vars,o.style)}),[e])}(t,e,n)),t.transformValues?t.transformValues(o):o}function bt(t,e,n){const o={},i=xt(t,e,n);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),o.style=i,o}const wt=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function Et(t){return wt.has(t)}let Pt=t=>!Et(t);function Tt(t){t&&(Pt=e=>e.startsWith("on")?!Et(e):t(e))}try{Tt(n(91148).Z)}catch(Ca){}function At(t,e,n){const o={};for(const i in t)(Pt(i)||!0===n&&Et(i)||!e&&!Et(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}function St(t,e,n){return"string"===typeof t?t:ct.transform(e+n*t)}const Vt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ct={offset:"strokeDashoffset",array:"strokeDasharray"};function Mt(t,{attrX:e,attrY:n,originX:o,originY:i,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...l},u,c,d){if(vt(t,l,u,d),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:m}=t;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(t,e,n){return`${St(e,t.x,t.width)} ${St(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&function(t,e,n=1,o=0,i=!0){t.pathLength=1;const r=i?Vt:Ct;t[r.offset]=ct.transform(-o);const s=ct.transform(e),a=ct.transform(n);t[r.array]=`${s} ${a}`}(h,r,s,a,!1)}const Rt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),Dt=t=>"string"===typeof t&&"svg"===t.toLowerCase();function kt(t,e,n,o){const r=i.useMemo((()=>{const n={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return Mt(n,e,{enableHardwareAcceleration:!1},Dt(o),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};yt(e,t.style,t),r.style={...e,...r.style}}return r}function Lt(t=!1){return(e,n,o,r,{latestValues:s},a)=>{const l=(N(e)?kt:bt)(n,s,a,e),u={...At(n,"string"===typeof e,t),...l,ref:r};return o&&(u["data-projection-id"]=o),i.createElement(e,u)}}const Bt=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function It(t,{style:e,vars:n},o,i){Object.assign(t.style,e,i&&i.getProjectionStyles(o));for(const r in n)t.style.setProperty(r,n[r])}const Ft=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"]);function jt(t,e,n,o){It(t,e,void 0,o);for(const i in e.attrs)t.setAttribute(Ft.has(i)?i:Bt(i),e.attrs[i])}function Ot(t){const{style:e}=t,n={};for(const o in e)(H(e[o])||X(o,t))&&(n[o]=e[o]);return n}function Ut(t){const e=Ot(t);for(const n in t)if(H(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e}function Nt(t,e,n,o={},i={}){return"function"===typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),"string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e&&(e=e(void 0!==n?n:t.custom,o,i)),e}const $t=t=>Array.isArray(t);function zt(t){const e=H(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const Yt=t=>(e,n)=>{const o=i.useContext(h),r=i.useContext(m),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},o,i,r){const s={latestValues:Wt(o,i,r,t),renderState:e()};return n&&(s.mount=t=>n(o,t,s)),s}(t,e,o,r);return n?s():M(s)};function Wt(t,e,n,o){const i={},r=o(t);for(const h in r)i[h]=zt(r[h]);let{initial:s,animate:a}=t;const l=E(t),u=P(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const d=c?a:s;if(d&&"boolean"!==typeof d&&!b(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Nt(t,e);if(!n)return;const{transitionEnd:o,transition:r,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(i[t]=e)}for(const t in o)i[t]=o[t]}))}return i}const Xt={useVisualState:Yt({scrapeMotionValuesFromProps:Ut,createRenderState:Rt,onMount:(t,e,{renderState:n,latestValues:o})=>{try{n.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(i){n.dimensions={x:0,y:0,width:0,height:0}}Mt(n,o,{enableHardwareAcceleration:!1},Dt(e.tagName),t.transformTemplate),jt(e,n)}})},Ht={useVisualState:Yt({scrapeMotionValuesFromProps:Ot,createRenderState:gt})};function Gt(t,{forwardMotionProps:e=!1},n,o,i){return{...N(t)?Xt:Ht,preloadedFeatures:n,useRender:Lt(e),createVisualElement:o,projectionNodeConstructor:i,Component:t}}var Zt;function qt(t,e,n,o={passive:!0}){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}function Kt(t,e,n,o){i.useEffect((()=>{const i=t.current;if(n&&i)return qt(i,e,n,o)}),[t,e,n,o])}function _t(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Jt(t){return!!t.touches}e.AnimationType=void 0,(Zt=e.AnimationType||(e.AnimationType={})).Animate="animate",Zt.Hover="whileHover",Zt.Tap="whileTap",Zt.Drag="whileDrag",Zt.Focus="whileFocus",Zt.InView="whileInView",Zt.Exit="exit";const Qt={pageX:0,pageY:0};function te(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||Qt;return{x:n[e+"X"],y:n[e+"Y"]}}function ee(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function ne(t,e="page"){return{point:Jt(t)?te(t,e):ee(t,e)}}const oe=(t,e=!1)=>{const n=e=>t(e,ne(e));return e?(o=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&o(t)}):n;var o},ie={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},re={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function se(t){return f&&null===window.onpointerdown?t:f&&null===window.ontouchstart?re[t]:f&&null===window.onmousedown?ie[t]:t}function ae(t,e,n,o){return qt(t,se(e),oe(n,"pointerdown"===e),o)}function le(t,e,n,o){return Kt(t,se(e),n&&oe(n,"pointerdown"===e),o)}function ue(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const ce=ue("dragHorizontal"),de=ue("dragVertical");function he(t){let e=!1;if("y"===t)e=de();else if("x"===t)e=ce();else{const t=ce(),n=de();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function pe(){const t=he(!0);return!t||(t(),!1)}function me(t,n,o){return(i,r)=>{_t(i)&&!pe()&&(t.animationState&&t.animationState.setActive(e.AnimationType.Hover,n),o&&o(i,r))}}const fe=(t,e)=>!!e&&(t===e||fe(t,e.parentElement));function ve(t){return i.useEffect((()=>()=>t()),[])}const ge=(t,e)=>n=>e(t(n)),ye=(...t)=>t.reduce(ge);const xe=("undefined"===typeof o||o.env,"production"),be=new Set;function we(t,e,n){t||be.has(e)||(console.warn(e),n&&console.warn(n),be.add(e))}const Ee=new WeakMap,Pe=new WeakMap,Te=t=>{const e=Ee.get(t.target);e&&e(t)},Ae=t=>{t.forEach(Te)};function Se(t,e,n){const o=function({root:t,...e}){const n=t||document;Pe.has(n)||Pe.set(n,{});const o=Pe.get(n),i=JSON.stringify(e);return o[i]||(o[i]=new IntersectionObserver(Ae,{root:t,...e})),o[i]}(e);return Ee.set(t,n),o.observe(t),()=>{Ee.delete(t),o.unobserve(t)}}const Ve={some:0,all:1};function Ce(t,n,o,{root:r,margin:s,amount:a="some",once:l}){i.useEffect((()=>{if(!t||!o.current)return;const i={root:null===r||void 0===r?void 0:r.current,rootMargin:s,threshold:"number"===typeof a?a:Ve[a]};return Se(o.current,i,(t=>{const{isIntersecting:i}=t;if(n.isInView===i)return;if(n.isInView=i,l&&!i&&n.hasEnteredView)return;i&&(n.hasEnteredView=!0),o.animationState&&o.animationState.setActive(e.AnimationType.InView,i);const r=o.getProps(),s=i?r.onViewportEnter:r.onViewportLeave;s&&s(t)}))}),[t,r,s,a])}function Me(t,n,o,{fallback:r=!0}){i.useEffect((()=>{t&&r&&("production"!==xe&&we(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame((()=>{n.hasEnteredView=!0;const{onViewportEnter:t}=o.getProps();t&&t(null),o.animationState&&o.animationState.setActive(e.AnimationType.InView,!0)})))}),[t])}const Re=t=>e=>(t(e),null),De={inView:Re((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:r={}}){const s=i.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);r.once&&s.current.hasEnteredView&&(a=!1),("undefined"===typeof IntersectionObserver?Me:Ce)(a,s.current,t,r)})),tap:Re((function({onTap:t,onTapStart:n,onTapCancel:o,whileTap:r,visualElement:s}){const a=t||n||o||r,l=i.useRef(!1),u=i.useRef(null),c={passive:!(n||t||o||f)};function d(){u.current&&u.current(),u.current=null}function h(){return d(),l.current=!1,s.animationState&&s.animationState.setActive(e.AnimationType.Tap,!1),!pe()}function p(e,n){h()&&(fe(s.current,e.target)?t&&t(e,n):o&&o(e,n))}function m(t,e){h()&&o&&o(t,e)}function f(t,o){d(),l.current||(l.current=!0,u.current=ye(ae(window,"pointerup",p,c),ae(window,"pointercancel",m,c)),s.animationState&&s.animationState.setActive(e.AnimationType.Tap,!0),n&&n(t,o))}le(s,"pointerdown",a?f:void 0,c),ve(d)})),focus:Re((function({whileFocus:t,visualElement:n}){const{animationState:o}=n;Kt(n,"focus",t?()=>{o&&o.setActive(e.AnimationType.Focus,!0)}:void 0),Kt(n,"blur",t?()=>{o&&o.setActive(e.AnimationType.Focus,!1)}:void 0)})),hover:Re((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){le(o,"pointerenter",t||n?me(o,!0,t):void 0,{passive:!t}),le(o,"pointerleave",e||n?me(o,!1,e):void 0,{passive:!e})}))};function ke(){const t=i.useContext(m);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,r=i.useId();i.useEffect((()=>o(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}function Le(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}const Be=t=>/^0[^.\s]+$/.test(t),Ie={delta:0,timestamp:0},Fe=1/60*1e3,je="undefined"!==typeof performance?()=>performance.now():()=>Date.now(),Oe="undefined"!==typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(je())),Fe);let Ue=!0,Ne=!1,$e=!1;const ze=["read","update","preRender","render","postRender"],Ye=ze.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],o=0,i=!1,r=!1;const s=new WeakSet,a={schedule:(t,r=!1,a=!1)=>{const l=a&&i,u=l?e:n;return r&&s.add(t),-1===u.indexOf(t)&&(u.push(t),l&&i&&(o=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),s.delete(t)},process:l=>{if(i)r=!0;else{if(i=!0,[e,n]=[n,e],n.length=0,o=e.length,o)for(let n=0;n<o;n++){const o=e[n];o(l),s.has(o)&&(a.schedule(o),t())}i=!1,r&&(r=!1,a.process(l))}}};return a}((()=>Ne=!0)),t)),{}),We=ze.reduce(((t,e)=>{const n=Ye[e];return t[e]=(t,e=!1,o=!1)=>(Ne||qe(),n.schedule(t,e,o)),t}),{}),Xe=ze.reduce(((t,e)=>(t[e]=Ye[e].cancel,t)),{}),He=ze.reduce(((t,e)=>(t[e]=()=>Ye[e].process(Ie),t)),{}),Ge=t=>Ye[t].process(Ie),Ze=t=>{Ne=!1,Ie.delta=Ue?Fe:Math.max(Math.min(t-Ie.timestamp,40),1),Ie.timestamp=t,$e=!0,ze.forEach(Ge),$e=!1,Ne&&(Ue=!1,Oe(Ze))},qe=()=>{Ne=!0,Ue=!0,$e||Oe(Ze)};function Ke(t,e){-1===t.indexOf(e)&&t.push(e)}function _e(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Je{constructor(){this.subscriptions=[]}add(t){return Ke(this.subscriptions,t),()=>_e(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let i=0;i<o;i++){const o=this.subscriptions[i];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Qe(t,e){return e?t*(1e3/e):0}class tn{constructor(t,e={}){var n;this.version="7.9.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Je,this.velocityUpdateSubscribers=new Je,this.renderSubscribers=new Je,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=Ie;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,We.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>We.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Qe(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function en(t,e){return new tn(t,e)}const nn=(t,e)=>n=>Boolean(st(n)&&rt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),on=(t,e,n)=>o=>{if(!st(o))return o;const[i,r,s,a]=o.match(ot);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},rn={...Q,transform:t=>Math.round((t=>J(0,255,t))(t))},sn={test:nn("rgb","red"),parse:on("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+rn.transform(t)+", "+rn.transform(e)+", "+rn.transform(n)+", "+nt(tt.transform(o))+")"};const an={test:nn("#"),parse:function(t){let e="",n="",o="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}},transform:sn.transform},ln={test:nn("hsl","hue"),parse:on("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:o=1})=>"hsla("+Math.round(t)+", "+ut.transform(nt(e))+", "+ut.transform(nt(n))+", "+nt(tt.transform(o))+")"},un={test:t=>sn.test(t)||an.test(t)||ln.test(t),parse:t=>sn.test(t)?sn.parse(t):ln.test(t)?ln.parse(t):an.parse(t),transform:t=>st(t)?t:t.hasOwnProperty("red")?sn.transform(t):ln.transform(t)},cn="${c}",dn="${n}";function hn(t){"number"===typeof t&&(t=`${t}`);const e=[];let n=0,o=0;const i=t.match(it);i&&(n=i.length,t=t.replace(it,cn),e.push(...i.map(un.parse)));const r=t.match(ot);return r&&(o=r.length,t=t.replace(ot,dn),e.push(...r.map(Q.parse))),{values:e,numColors:n,numNumbers:o,tokenised:t}}function pn(t){return hn(t).values}function mn(t){const{values:e,numColors:n,tokenised:o}=hn(t),i=e.length;return t=>{let e=o;for(let o=0;o<i;o++)e=e.replace(o<n?cn:dn,o<n?un.transform(t[o]):nt(t[o]));return e}}const fn=t=>"number"===typeof t?0:t;const vn={test:function(t){var e,n;return isNaN(t)&&st(t)&&((null===(e=t.match(ot))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(it))||void 0===n?void 0:n.length)||0)>0},parse:pn,createTransformer:mn,getAnimatableNone:function(t){const e=pn(t);return mn(t)(e.map(fn))}},gn=new Set(["brightness","contrast","saturate","opacity"]);function yn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(ot)||[];if(!o)return t;const i=n.replace(o,"");let r=gn.has(e)?1:0;return o!==n&&(r*=100),e+"("+r+i+")"}const xn=/([a-z-]*)\(.*?\)/g,bn={...vn,getAnimatableNone:t=>{const e=t.match(xn);return e?e.map(yn).join(" "):t}},wn={...ft,color:un,backgroundColor:un,outlineColor:un,fill:un,stroke:un,borderColor:un,borderTopColor:un,borderRightColor:un,borderBottomColor:un,borderLeftColor:un,filter:bn,WebkitFilter:bn},En=t=>wn[t];function Pn(t,e){var n;let o=En(t);return o!==bn&&(o=vn),null===(n=o.getAnimatableNone)||void 0===n?void 0:n.call(o,e)}const Tn=t=>e=>e.test(t),An=[Q,ct,ut,lt,ht,dt,{test:t=>"auto"===t,parse:t=>t}],Sn=t=>An.find(Tn(t)),Vn=[...An,un,vn],Cn=t=>Vn.find(Tn(t));function Mn(t,e,n){const o=t.getProps();return Nt(o,e,void 0!==n?n:o.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function Rn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,en(n))}function Dn(t,e){const n=Mn(t,e);let{transitionEnd:o={},transition:i={},...r}=n?t.makeTargetAnimatable(n,!1):{};r={...r,...o};for(const a in r){Rn(t,a,(s=r[a],$t(s)?s[s.length-1]||0:s))}var s}function kn(t,e){[...e].reverse().forEach((n=>{var o;const i=t.getVariant(n);i&&Dn(t,i),null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{kn(t,e)}))}))}function Ln(t,e,n){var o,i;const r=Object.keys(e).filter((e=>!t.hasValue(e))),s=r.length;if(s)for(let a=0;a<s;a++){const s=r[a],l=e[s];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(o=n[s])&&void 0!==o?o:t.readValue(s))&&void 0!==i?i:e[s]),void 0!==u&&null!==u&&("string"===typeof u&&(/^\-?\d*\.?\d+$/.test(u)||Be(u))?u=parseFloat(u):!Cn(u)&&vn.test(l)&&(u=Pn(s,l)),t.addValue(s,en(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}function Bn(t,e){if(!e)return;return(e[t]||e.default||e).from}function In(t,e,n){var o;const i={};for(const r in t){const t=Bn(r,e);i[r]=void 0!==t?t:null===(o=n.getValue(r))||void 0===o?void 0:o.get()}return i}function Fn(t){return Boolean(H(t)&&t.add)}const jn=(t,e)=>`${t}: ${e}`;function On(t,e){const{MotionAppearAnimations:n}=window,o=jn(t,W.has(e)?"transform":e),i=n&&n.get(o);return i?(We.render((()=>{try{i.cancel(),n.delete(o)}catch(t){}})),i.currentTime||0):0}const Un="framerAppearId",Nn="data-"+Bt(Un),$n=t=>1e3*t,zn={current:!1},Yn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Wn=t=>e=>1-t(1-e),Xn=t=>t*t,Hn=Wn(Xn),Gn=Yn(Xn),Zn=(t,e,n)=>-n*t+n*e+t;function qn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Kn=(t,e,n)=>{const o=t*t;return Math.sqrt(Math.max(0,n*(e*e-o)+o))},_n=[an,sn,ln];function Jn(t){const e=(n=t,_n.find((t=>t.test(n))));var n;r.invariant(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===ln&&(o=function({hue:t,saturation:e,lightness:n,alpha:o}){t/=360,n/=100;let i=0,r=0,s=0;if(e/=100){const o=n<.5?n*(1+e):n+e-n*e,a=2*n-o;i=qn(a,o,t+1/3),r=qn(a,o,t),s=qn(a,o,t-1/3)}else i=r=s=n;return{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*s),alpha:o}}(o)),o}const Qn=(t,e)=>{const n=Jn(t),o=Jn(e),i={...n};return t=>(i.red=Kn(n.red,o.red,t),i.green=Kn(n.green,o.green,t),i.blue=Kn(n.blue,o.blue,t),i.alpha=Zn(n.alpha,o.alpha,t),sn.transform(i))};function to(t,e){return"number"===typeof t?n=>Zn(t,e,n):un.test(t)?Qn(t,e):oo(t,e)}const eo=(t,e)=>{const n=[...t],o=n.length,i=t.map(((t,n)=>to(t,e[n])));return t=>{for(let e=0;e<o;e++)n[e]=i[e](t);return n}},no=(t,e)=>{const n={...t,...e},o={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(o[i]=to(t[i],e[i]));return t=>{for(const e in o)n[e]=o[e](t);return n}},oo=(t,e)=>{const n=vn.createTransformer(e),o=hn(t),i=hn(e);return o.numColors===i.numColors&&o.numNumbers>=i.numNumbers?ye(eo(o.values,i.values),n):(r.warning(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},io=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o},ro=(t,e)=>n=>Zn(t,e,n);function so(t,e,n){const o=[],i=n||("number"===typeof(r=t[0])?ro:"string"===typeof r?un.test(r)?Qn:oo:Array.isArray(r)?eo:"object"===typeof r?no:ro);var r;const s=t.length-1;for(let a=0;a<s;a++){let n=i(t[a],t[a+1]);if(e){const t=Array.isArray(e)?e[a]:e;n=ye(t,n)}o.push(n)}return o}function ao(t,e,{clamp:n=!0,ease:o,mixer:i}={}){const s=t.length;r.invariant(s===e.length,"Both input and output ranges must be the same length"),r.invariant(!o||!Array.isArray(o)||o.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=so(e,o,i),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const o=io(t[n],t[n+1],e);return a[n](o)};return n?e=>u(J(t[0],t[s-1],e)):u}const lo=t=>t,uo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function co(t,e,n,o){if(t===e&&n===o)return lo;const i=e=>function(t,e,n,o,i){let r,s,a=0;do{s=e+(n-e)/2,r=uo(s,o,i)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:uo(i(t),e,o)}const ho=t=>1-Math.sin(Math.acos(t)),po=Wn(ho),mo=Yn(po),fo=(t=1.525)=>e=>e*e*((t+1)*e-t),vo=fo(),go=Wn(vo),yo=Yn(vo),xo=(t=>{const e=fo(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),bo={linear:lo,easeIn:Xn,easeInOut:Gn,easeOut:Hn,circIn:ho,circInOut:mo,circOut:po,backIn:vo,backInOut:yo,backOut:go,anticipate:xo},wo=t=>{if(Array.isArray(t)){r.invariant(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,i]=t;return co(e,n,o,i)}return"string"===typeof t?(r.invariant(void 0!==bo[t],`Invalid easing type '${t}'`),bo[t]):t};function Eo({keyframes:t,ease:e=Gn,times:n,duration:o=300}){t=[...t];const i=Eo[0],r=(t=>Array.isArray(t)&&"number"!==typeof t[0])(e)?e.map(wo):wo(e),s={done:!1,value:i},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===Eo.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),o);function l(){return ao(a,t,{ease:Array.isArray(r)?r:(e=t,n=r,e.map((()=>n||Gn)).splice(0,e.length-1))});var e,n}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{t.reverse(),u=l()}}}const Po=.001;function To({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let i,s;r.warning(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=J(.05,1,a),t=J(.01,10,t/1e3),a<1?(i=e=>{const o=e*a,i=o*t,r=o-n,s=Ao(e,a),l=Math.exp(-i);return Po-r/s*l},s=e=>{const o=e*a*t,r=o*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-o),u=Ao(Math.pow(e,2),a);return(-i(e)+Po>0?-1:1)*((r-s)*l)/u}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,s=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let o=n;for(let i=1;i<12;i++)o-=t(o)/e(o);return o}(i,s,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:t}}}function Ao(t,e){return t*Math.sqrt(1-e*e)}const So=["duration","bounce"],Vo=["stiffness","damping","mass"];function Co(t,e){return e.some((e=>void 0!==t[e]))}function Mo({keyframes:t,restSpeed:e=2,restDelta:n=.01,...o}){let i=t[0],r=t[t.length-1];const s={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Co(t,Vo)&&Co(t,So)){const n=To(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(o);let p=Ro,m=c?-c/1e3:0;const f=l/(2*Math.sqrt(a*u));function v(){const t=r-i,e=Math.sqrt(a/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(r-i)/100,.4)),f<1){const n=Ao(e,f);p=o=>{const i=Math.exp(-f*e*o);return r-i*((m+f*e*t)/n*Math.sin(n*o)+t*Math.cos(n*o))}}else if(1===f)p=n=>r-Math.exp(-e*n)*(t+(m+e*t)*n);else{const n=e*Math.sqrt(f*f-1);p=o=>{const i=Math.exp(-f*e*o),s=Math.min(n*o,300);return r-i*((m+f*e*t)*Math.sinh(s)+n*t*Math.cosh(s))/n}}}return v(),{next:t=>{const o=p(t);if(h)s.done=t>=d;else{let i=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);i=Qe(o-p(e),t-e)}else i=0;const a=Math.abs(i)<=e,l=Math.abs(r-o)<=n;s.done=a&&l}return s.value=s.done?r:o,s},flipTarget:()=>{m=-m,[i,r]=[r,i],v()}}}Mo.needsInterpolation=(t,e)=>"string"===typeof t||"string"===typeof e;const Ro=t=>0;const Do={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:o=350,restDelta:i=.5,modifyTarget:r}){const s=t[0],a={done:!1,value:s};let l=n*e;const u=s+l,c=void 0===r?u:r(u);return c!==u&&(l=c-s),{next:t=>{const e=-l*Math.exp(-t/o);return a.done=!(e>i||e<-i),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:Eo,tween:Eo,spring:Mo};function ko(t,e,n=0){return t-e-n}const Lo=t=>{const e=({delta:e})=>t(e);return{start:()=>We.update(e,!0),stop:()=>Xe.update(e)}};function Bo({duration:t,driver:e=Lo,elapsed:n=0,repeat:o=0,repeatType:i="loop",repeatDelay:r=0,keyframes:s,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:d,onUpdate:h,type:p="keyframes",...m}){var f,v;let g,y,x,b=0,w=t,E=!1,P=!0;const T=Do[s.length>2?"keyframes":p],A=s[0],S=s[s.length-1];(null===(v=(f=T).needsInterpolation)||void 0===v?void 0:v.call(f,A,S))&&(x=ao([0,100],[A,S],{clamp:!1}),s=[0,100]);const V=T({...m,duration:t,keyframes:s});function C(){b++,"reverse"===i?(P=b%2===0,n=function(t,e=0,n=0,o=!0){return o?ko(e+-t,e,n):e-(t-e)+n}(n,w,r,P)):(n=ko(n,w,r),"mirror"===i&&V.flipTarget()),E=!1,d&&d()}function M(t){if(P||(t=-t),n+=t,!E){const t=V.next(Math.max(0,n));y=t.value,x&&(y=x(y)),E=P?t.done:n<=0}h&&h(y),E&&(0===b&&(w=void 0!==w?w:n),b<o?function(t,e,n,o){return o?t>=e+n:t<=-n}(n,w,r,P)&&C():(g.stop(),c&&c()))}return a&&(l&&l(),g=e(M),g.start()),{stop:()=>{u&&u(),g.stop()},sample:t=>V.next(Math.max(0,t)).value}}const Io=new Set(["linear","ease-in","ease-out","ease-in-out"]);function Fo(t){if(t)return Array.isArray(t)?(([t,e,n,o])=>`cubic-bezier(${t}, ${e}, ${n}, ${o})`)(t):function(t){const e=Bt(t);return Io.has(e)?e:"ease"}(t)}function jo(t,e,n,{delay:o=0,duration:i,repeat:r=0,repeatType:s="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:o,duration:i,easing:Fo(a),fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"})}function Oo(t,e){const n=performance.now(),o=({timestamp:i})=>{const r=i-n;r>=e&&(Xe.read(o),t(r-e))};return We.read(o,!0),()=>Xe.read(o)}function Uo({keyframes:t,elapsed:e,onUpdate:n,onComplete:o}){const i=()=>(n&&n(t[t.length-1]),o&&o(),()=>{});return e?Oo(i,-e):i()}const No=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),$o=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),zo=()=>({type:"keyframes",ease:"linear",duration:.3}),Yo={type:"keyframes",duration:.8},Wo={x:No,y:No,z:No,rotate:No,rotateX:No,rotateY:No,rotateZ:No,scaleX:$o,scaleY:$o,scale:$o,opacity:zo,backgroundColor:zo,color:zo,default:$o},Xo=(t,{keyframes:e})=>{if(e.length>2)return Yo;return(Wo[t]||Wo.default)(e[1])},Ho=(t,e)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!vn.test(e)||e.startsWith("url(")));function Go(t){return 0===t||"string"===typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Zo(t){return"number"===typeof t?0:Pn("",t)}function qo(t,e){return t[e]||t.default||t}const Ko={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},_o={},Jo={};for(const Ma in Ko)Jo[Ma]=()=>(void 0===_o[Ma]&&(_o[Ma]=Ko[Ma]()),_o[Ma]);const Qo=new Set(["opacity"]),ti=(t,e,n,o={})=>i=>{const s=qo(o,t)||{},a=s.delay||o.delay||0;let{elapsed:l=0}=o;l-=$n(a);const u=function(t,e,n,o){const i=Ho(e,n);let r=void 0!==o.from?o.from:t.get();return"none"===r&&i&&"string"===typeof n?r=Pn(e,n):Go(r)&&"string"===typeof n?r=Zo(n):!Array.isArray(n)&&Go(n)&&"string"===typeof r&&(n=Zo(r)),Array.isArray(n)?(null===n[0]&&(n[0]=r),n):[r,n]}(e,t,n,s),c=u[0],d=u[u.length-1],h=Ho(t,c),p=Ho(t,d);r.warning(h===p,`You are trying to animate ${t} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let m={keyframes:u,velocity:e.getVelocity(),...s,elapsed:l,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(!h||!p||zn.current||!1===s.type)return Uo(m);if("inertia"===s.type){const t=function({keyframes:t,velocity:e=0,min:n,max:o,power:i=.8,timeConstant:r=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:h,onStop:p}){const m=t[0];let f;function v(t){return void 0!==n&&t<n||void 0!==o&&t>o}function g(t){return void 0===n?o:void 0===o||Math.abs(n-t)<Math.abs(o-t)?n:o}function y(t){null===f||void 0===f||f.stop(),f=Bo({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null===d||void 0===d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:h,onStop:p})}function x(t){y({type:"spring",stiffness:s,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t=i*e+m;"undefined"!==typeof u&&(t=u(t));const o=g(t),s=o===n?-1:1;let a,c;const d=t=>{a=c,c=t,e=Qe(t-a,Ie.delta),(1===s&&t>o||-1===s&&t<o)&&x({keyframes:[t,o],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:r,power:i,restDelta:l,modifyTarget:u,onUpdate:v(t)?d:void 0})}return{stop:()=>null===f||void 0===f?void 0:f.stop()}}(m);return()=>t.stop()}(function({when:t,delay:e,delayChildren:n,staggerChildren:o,staggerDirection:i,repeat:r,repeatType:s,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length})(s)||(m={...m,...Xo(t,m)}),m.duration&&(m.duration=$n(m.duration)),m.repeatDelay&&(m.repeatDelay=$n(m.repeatDelay));const f=e.owner,v=f&&f.current;if(Jo.waapi()&&Qo.has(t)&&!m.repeatDelay&&"mirror"!==m.repeatType&&0!==m.damping&&"function"!==typeof m.ease&&f&&v instanceof HTMLElement&&!f.getProps().onUpdate)return function(t,e,{onUpdate:n,onComplete:o,...i}){let{keyframes:r,duration:s=.3,elapsed:a=0,ease:l}=i;if("spring"===i.type){const t=Mo(i);let e={done:!1,value:r[0]};const n=[];let o=0;for(;!e.done;)e=t.next(o),n.push(e.value),o+=10;r=n,s=o-10,l="linear"}const u=jo(t.owner.current,e,r,{...i,delay:-a,duration:s,ease:l});return u.onfinish=()=>{t.set(r[r.length-1]),o&&o()},()=>{const{currentTime:e}=u;if(e){const n=Bo(i);t.setWithVelocity(n.sample(e-10),n.sample(e),10)}We.update((()=>u.cancel()))}}(e,t,m);{const t=Bo(m);return()=>t.stop()}};function ei(t,e,n={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>ni(t,e,n)));o=Promise.all(i)}else if("string"===typeof e)o=ni(t,e,n);else{const i="function"===typeof e?Mn(t,e,n.custom):e;o=oi(t,i,n)}return o.then((()=>t.notify("AnimationComplete",e)))}function ni(t,e,n={}){var o;const i=Mn(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>oi(t,i,n):()=>Promise.resolve(),a=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?(o=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,o=0,i=1,r){const s=[],a=(t.variantChildren.size-1)*o,l=1===i?(t=0)=>t*o:(t=0)=>a-t*o;return Array.from(t.variantChildren).sort(ii).forEach(((t,o)=>{s.push(ni(t,e,{...r,delay:n+l(o)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(e)}return Promise.all([s(),a(n.delay)])}function oi(t,e,{delay:n=0,transitionOverride:o,type:i}={}){var r;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");o&&(s=o);const c=[],d=i&&(null===(r=t.animationState)||void 0===r?void 0:r.getState()[i]);for(const h in l){const e=t.getValue(h),o=l[h];if(!e||void 0===o||d&&ri(d,h))continue;let i={delay:n,elapsed:0,...s};if(t.shouldReduceMotion&&W.has(h)&&(i={...i,type:!1,delay:0}),!e.hasAnimated){const e=t.getProps()[Nn];e&&(i.elapsed=On(e,h))}let r=e.start(ti(h,e,o,i));Fn(u)&&(u.add(h),r=r.then((()=>u.remove(h)))),c.push(r)}return Promise.all(c).then((()=>{a&&Dn(t,a)}))}function ii(t,e){return t.sortNodePosition(e)}function ri({protectedKeys:t,needsAnimating:e},n){const o=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,o}const si=[e.AnimationType.Animate,e.AnimationType.InView,e.AnimationType.Focus,e.AnimationType.Hover,e.AnimationType.Tap,e.AnimationType.Drag,e.AnimationType.Exit],ai=[...si].reverse(),li=si.length;function ui(t){let n=function(t){return e=>Promise.all(e.map((({animation:e,options:n})=>ei(t,e,n))))}(t);const o={[e.AnimationType.Animate]:di(!0),[e.AnimationType.InView]:di(),[e.AnimationType.Hover]:di(),[e.AnimationType.Tap]:di(),[e.AnimationType.Drag]:di(),[e.AnimationType.Focus]:di(),[e.AnimationType.Exit]:di()};let i=!0;const r=(e,n)=>{const o=Mn(t,n);if(o){const{transition:t,transitionEnd:n,...i}=o;e={...e,...i,...n}}return e};function s(e,s){const a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},h=1/0;for(let n=0;n<li;n++){const p=ai[n],m=o[p],f=void 0!==a[p]?a[p]:l[p],v=x(f),g=p===s?m.isActive:null;!1===g&&(h=n);let y=f===l[p]&&f!==a[p]&&v;if(y&&i&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...d},!m.isActive&&null===g||!f&&!m.prevProp||b(f)||"boolean"===typeof f)continue;const w=ci(m.prevProp,f);let E=w||p===s&&m.isActive&&!y&&v||n>h&&v;const P=Array.isArray(f)?f:[f];let T=P.reduce(r,{});!1===g&&(T={});const{prevResolvedValues:A={}}=m,S={...A,...T},V=t=>{E=!0,c.delete(t),m.needsAnimating[t]=!0};for(const t in S){const e=T[t],n=A[t];d.hasOwnProperty(t)||(e!==n?$t(e)&&$t(n)?!Le(e,n)||w?V(t):m.protectedKeys[t]=!0:void 0!==e?V(t):c.add(t):void 0!==e&&c.has(t)?V(t):m.protectedKeys[t]=!0)}m.prevProp=f,m.prevResolvedValues=T,m.isActive&&(d={...d,...T}),i&&t.blockInitialAnimation&&(E=!1),E&&!y&&u.push(...P.map((t=>({animation:t,options:{type:p,...e}}))))}if(c.size){const e={};c.forEach((n=>{const o=t.getBaseTarget(n);void 0!==o&&(e[n]=o)})),u.push({animation:e})}let p=Boolean(u.length);return i&&!1===a.initial&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,p?n(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n,i){var r;if(o[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach((t=>{var o;return null===(o=t.animationState)||void 0===o?void 0:o.setActive(e,n)})),o[e].isActive=n;const a=s(i,e);for(const t in o)o[t].protectedKeys={};return a},setAnimateFunction:function(e){n=e(t)},getState:()=>o}}function ci(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!Le(e,t)}function di(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const hi={animation:Re((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=ui(t)),b(e)&&i.useEffect((()=>e.subscribe(t)),[e])})),exit:Re((t=>{const{custom:n,visualElement:o}=t,[r,s]=ke(),a=i.useContext(m);i.useEffect((()=>{o.isPresent=r;const t=o.animationState&&o.animationState.setActive(e.AnimationType.Exit,!r,{custom:a&&a.custom||n});t&&!r&&t.then(s)}),[r])}))},pi=(t,e)=>Math.abs(t-e);function mi(t,e){const n=pi(t.x,e.x),o=pi(t.y,e.y);return Math.sqrt(n**2+o**2)}class fi{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=yi(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=mi(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:i}=Ie;this.history.push({...o,timestamp:i});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=vi(e,this.transformPagePoint),_t(t)&&0===t.buttons?this.handlePointerUp(t,e):We.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o}=this.handlers,i=yi(vi(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),o&&o(t,i)},Jt(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const o=vi(ne(t),this.transformPagePoint),{point:i}=o,{timestamp:r}=Ie;this.history=[{...i,timestamp:r}];const{onSessionStart:s}=e;s&&s(t,yi(o,this.history)),this.removeListeners=ye(ae(window,"pointermove",this.handlePointerMove),ae(window,"pointerup",this.handlePointerUp),ae(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xe.update(this.updatePoint)}}function vi(t,e){return e?{point:e(t.point)}:t}function gi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function yi({point:t},e){return{point:t,delta:gi(t,bi(e)),offset:gi(t,xi(e)),velocity:wi(e,.1)}}function xi(t){return t[0]}function bi(t){return t[t.length-1]}function wi(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const i=bi(t);for(;n>=0&&(o=t[n],!(i.timestamp-o.timestamp>$n(e)));)n--;if(!o)return{x:0,y:0};const r=(i.timestamp-o.timestamp)/1e3;if(0===r)return{x:0,y:0};const s={x:(i.x-o.x)/r,y:(i.y-o.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ei(t){return t.max-t.min}function Pi(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ti(t,e,n,o=.5){t.origin=o,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=Ei(n)/Ei(e),(Pi(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(Pi(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ai(t,e,n,o){Ti(t.x,e.x,n.x,null===o||void 0===o?void 0:o.originX),Ti(t.y,e.y,n.y,null===o||void 0===o?void 0:o.originY)}function Si(t,e,n){t.min=n.min+e.min,t.max=t.min+Ei(e)}function Vi(t,e,n){t.min=e.min-n.min,t.max=t.min+Ei(e)}function Ci(t,e,n){Vi(t.x,e.x,n.x),Vi(t.y,e.y,n.y)}function Mi(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Ri(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const Di=.35;function ki(t,e,n){return{min:Li(t,e),max:Li(t,n)}}function Li(t,e){return"number"===typeof t?t:t[e]||0}const Bi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ii(t){return[t("x"),t("y")]}function Fi({top:t,left:e,right:n,bottom:o}){return{x:{min:e,max:n},y:{min:t,max:o}}}function ji(t){return void 0===t||1===t}function Oi({scale:t,scaleX:e,scaleY:n}){return!ji(t)||!ji(e)||!ji(n)}function Ui(t){return Oi(t)||Ni(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Ni(t){return $i(t.x)||$i(t.y)}function $i(t){return t&&"0%"!==t}function zi(t,e,n){return n+e*(t-n)}function Yi(t,e,n,o,i){return void 0!==i&&(t=zi(t,i,o)),zi(t,n,o)+e}function Wi(t,e=0,n=1,o,i){t.min=Yi(t.min,e,n,o,i),t.max=Yi(t.max,e,n,o,i)}function Xi(t,{x:e,y:n}){Wi(t.x,e.translate,e.scale,e.originPoint),Wi(t.y,n.translate,n.scale,n.originPoint)}function Hi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Gi(t,e){t.min=t.min+e,t.max=t.max+e}function Zi(t,e,[n,o,i]){const r=void 0!==e[i]?e[i]:.5,s=Zn(t.min,t.max,r);Wi(t,e[n],e[o],s,e.scale)}const qi=["x","scaleX","originX"],Ki=["y","scaleY","originY"];function _i(t,e){Zi(t.x,e,qi),Zi(t.y,e,Ki)}function Ji(t,e){return Fi(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const Qi=new WeakMap;class tr{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new fi(t,{onSessionStart:t=>{this.stopAnimation(),n&&this.snapToCursor(ne(t,"page").point)},onStart:(t,n)=>{var o;const{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();(!i||r||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=he(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ii((t=>{var e,n;let o=this.getAxisMotionValue(t).get()||0;if(ut.test(o)){const i=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(i){o=Ei(i)*(parseFloat(o)/100)}}this.originPoint[t]=o})),null===s||void 0===s||s(t,n),null===(o=this.visualElement.animationState)||void 0===o||o.setActive(e.AnimationType.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:i,onDrag:r}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&(null===i||void 0===i||i(this.currentDirection)));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),null===r||void 0===r||r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:i}=this.getProps();null===i||void 0===i||i(t,e)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(e.AnimationType.Drag,!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!er(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:n},o){return void 0!==e&&t<e?t=o?Zn(e,t,o.min):Math.max(t,e):void 0!==n&&t>n&&(t=o?Zn(n,t,o.max):Math.min(t,n)),t}(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&y(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:o,right:i}){return{x:Mi(t.x,n,i),y:Mi(t.y,e,o)}}(n.layoutBox,t),this.elastic=function(t=Di){return!1===t?t=0:!0===t&&(t=Di),{x:ki(t,"left","right"),y:ki(t,"top","bottom")}}(e),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ii((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!y(t))return!1;const n=t.current;r.invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=function(t,e,n){const o=Ji(t,n),{scroll:i}=e;return i&&(Gi(o.x,i.offset.x),Gi(o.y,i.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let s=function(t,e){return{x:Ri(t.x,e.x),y:Ri(t.y,e.y)}}(o.layout.layoutBox,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=Fi(t))}return s}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ii((s=>{if(!er(s,e,this.currentDirection))return;let l=(null===a||void 0===a?void 0:a[s])||{};r&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(ti(t,n,0,e))}stopAnimation(){Ii((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){Ii((e=>{const{drag:n}=this.getProps();if(!er(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[e];i.set(t[e]-Zn(n,r,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!y(n)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ii((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();i[t]=function(t,e){let n=.5;const o=Ei(t),i=Ei(e);return i>o?n=io(e.min,e.max-o,t.min):o>i&&(n=io(t.min,t.max-i,e.min)),J(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Ii((t=>{if(!er(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:r}=this.constraints[t];n.set(Zn(o,r,i[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;Qi.set(this.visualElement,this);const e=ae(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),n=()=>{const{dragConstraints:t}=this.getProps();y(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),n();const r=qt(window,"resize",(()=>this.scalePositionWithinConstraints())),s=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Ii((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),e(),i(),null===s||void 0===s||s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=Di,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:s}}}function er(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const nr={pan:Re((function({onPan:t,onPanStart:e,onPanEnd:n,onPanSessionStart:o,visualElement:r}){const s=t||e||n||o,a=i.useRef(null),{transformPagePoint:l}=i.useContext(d),u={onSessionStart:o,onStart:e,onMove:t,onEnd:(t,e)=>{a.current=null,n&&n(t,e)}};i.useEffect((()=>{null!==a.current&&a.current.updateHandlers(u)})),le(r,"pointerdown",s&&function(t){a.current=new fi(t,u,{transformPagePoint:l})}),ve((()=>a.current&&a.current.end()))})),drag:Re((function(t){const{dragControls:e,visualElement:n}=t,o=M((()=>new tr(n)));i.useEffect((()=>e&&e.subscribe(o)),[o,e]),i.useEffect((()=>o.addListeners()),[o])}))};function or(t){return"string"===typeof t&&t.startsWith("var(--")}const ir=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rr(t,e,n=1){r.invariant(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,i]=function(t){const e=ir.exec(t);if(!e)return[,];const[,n,o]=e;return[n,o]}(t);if(!o)return;const s=window.getComputedStyle(e).getPropertyValue(o);return s?s.trim():or(i)?rr(i,e,n+1):i}const sr=new Set(["width","height","top","left","right","bottom","x","y"]),ar=t=>sr.has(t),lr=(t,e)=>{t.set(e,!1),t.set(e)},ur=t=>t===Q||t===ct;var cr;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(cr||(cr={}));const dr=(t,e)=>parseFloat(t.split(", ")[e]),hr=(t,e)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const i=o.match(/^matrix3d\((.+)\)$/);if(i)return dr(i[1],e);{const e=o.match(/^matrix\((.+)\)$/);return e?dr(e[1],t):0}},pr=new Set(["x","y","z"]),mr=Y.filter((t=>!pr.has(t)));const fr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:hr(4,13),y:hr(5,14)},vr=(t,e,n={},o={})=>{e={...e},o={...o};const i=Object.keys(e).filter(ar);let s=[],a=!1;const l=[];if(i.forEach((i=>{const u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],d=Sn(c);const h=e[i];let p;if($t(h)){const t=h.length,e=null===h[0]?1:0;c=h[e],d=Sn(c);for(let n=e;n<t;n++)p?r.invariant(Sn(h[n])===p,"All keyframes must be of the same type"):(p=Sn(h[n]),r.invariant(p===d||ur(d)&&ur(p),"Keyframes must be of the same dimension as the current value"))}else p=Sn(h);if(d!==p)if(ur(d)&&ur(p)){const t=u.get();"string"===typeof t&&u.set(parseFloat(t)),"string"===typeof h?e[i]=parseFloat(h):Array.isArray(h)&&p===ct&&(e[i]=h.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===p||void 0===p?void 0:p.transform)&&(0===c||0===h)?0===c?u.set(p.transform(c)):e[i]=d.transform(h):(a||(s=function(t){const e=[];return mr.forEach((n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),l.push(i),o[i]=void 0!==o[i]?o[i]:e[i],lr(u,h))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const o=e.measureViewportBox(),i=e.current,r=getComputedStyle(i),{display:s}=r,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=fr[t](o,r)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const o=e.getValue(n);lr(o,a[n]),t[n]=fr[n](l,r)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),f&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:o}}return{target:e,transitionEnd:o}};function gr(t,e,n,o){return(t=>Object.keys(t).some(ar))(e)?vr(t,e,n,o):{target:e,transitionEnd:o}}const yr=(t,e,n,o)=>{const i=function(t,{...e},n){const o=t.current;if(!(o instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!or(e))return;const n=rr(e,o);n&&t.set(n)}));for(const i in e){const t=e[i];if(!or(t))continue;const r=rr(t,o);r&&(e[i]=r,n&&void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,o);return gr(t,e=i.target,n,o=i.transitionEnd)},xr={current:null},br={current:!1};function wr(){if(br.current=!0,f)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>xr.current=t.matches;t.addListener(e),e()}else xr.current=!1}const Er=Object.keys(V),Pr=Er.length,Tr=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ar{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>We.render(this.render,!1,!0);const{latestValues:r,renderState:s}=o;this.latestValues=r,this.baseTarget={...r},this.initialValues=e.initial?{...r}:{},this.renderState=s,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=E(e),this.isVariantNode=P(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(const u in l){const t=l[u];void 0!==r[u]&&H(t)&&(t.set(r[u],!1),Fn(a)&&a.add(u))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),br.current||wr(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||xr.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Xe.update(this.notifyUpdate),Xe.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,e){const n=W.has(t),o=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&We.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{o(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,a){const l=[];"production"!==xe&&n&&e&&r.invariant(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let r=0;r<Pr;r++){const e=Er[r],{isEnabled:n,Component:o}=V[e];n(t)&&o&&l.push(i.createElement(o,{key:e,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:r,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||r&&y(r),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"===typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let e=0;e<Tr.length;e++){const n=Tr[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(t,e,n){const{willChange:o}=e;for(const i in e){const r=e[i],s=n[i];if(H(r))t.addValue(i,r),Fn(o)&&o.add(i);else if(H(s))t.addValue(i,en(r,{owner:t})),Fn(o)&&o.remove(i);else if(s!==r)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(r)}else{const e=t.getStaticValue(i);t.addValue(i,en(void 0!==e?e:r))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const o={};for(let i=0;i<Vr;i++){const t=Sr[i],e=this.props[t];(x(e)||!1===e)&&(o[t]=e)}return o}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.latestValues[t]=e.get(),this.bindToMotionValue(t,e)}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=en(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,o="string"===typeof n||"object"===typeof n?null===(e=Nt(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==o)return o;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||H(i)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Je),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}const Sr=["initial",...si],Vr=Sr.length;class Cr extends Ar{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:o},i){let r=In(n,t||{},this);if(o&&(e&&(e=o(e)),n&&(n=o(n)),r&&(r=o(r))),i){Ln(this,n,r);const t=yr(this,n,r,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Mr extends Cr{readValueFromInstance(t,e){if(W.has(e)){const t=En(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),i=(K(e)?o.getPropertyValue(e):o[e])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return Ji(t,e)}build(t,e,n,o){vt(t,e,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return Ot(t)}renderInstance(t,e,n,o){It(t,e,n,o)}}class Rr extends Cr{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return W.has(e)?(null===(n=En(e))||void 0===n?void 0:n.default)||0:(e=Ft.has(e)?e:Bt(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t){return Ut(t)}build(t,e,n,o){Mt(t,e,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,e,n,o){jt(t,e,0,o)}mount(t){this.isSVGTag=Dt(t.tagName),super.mount(t)}}const Dr=(t,e)=>N(t)?new Rr(e,{enableHardwareAcceleration:!1}):new Mr(e,{enableHardwareAcceleration:!0});function kr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Lr={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!ct.test(t))return t;t=parseFloat(t)}return`${kr(t,e.target.x)}% ${kr(t,e.target.y)}%`}},Br="_$css",Ir={correct:(t,{treeScale:e,projectionDelta:n})=>{const o=t,i=t.includes("var("),r=[];i&&(t=t.replace(ir,(t=>(r.push(t),Br))));const s=vn.parse(t);if(s.length>5)return o;const a=vn.createTransformer(t),l="number"!==typeof s[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;s[0+l]/=u,s[1+l]/=c;const d=Zn(u,c,.5);"number"===typeof s[2+l]&&(s[2+l]/=d),"number"===typeof s[3+l]&&(s[3+l]/=d);let h=a(s);if(i){let t=0;h=h.replace(Br,(()=>{const e=r[t];return t++,e}))}return h}};class Fr extends u.default.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;z(jr),i&&(e.group&&e.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),R.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:i}=this.props,r=n.projection;return r?(r.isPresent=i,o||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||We.postRender((()=>{var t;(null===(t=r.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(o),(null===n||void 0===n?void 0:n.deregister)&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;null===t||void 0===t||t()}render(){return null}}const jr={borderRadius:{...Lr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Lr,borderTopRightRadius:Lr,borderBottomLeftRadius:Lr,borderBottomRightRadius:Lr,boxShadow:Ir},Or={measureLayout:function(t){const[e,n]=ke(),o=i.useContext(k);return u.default.createElement(Fr,{...t,layoutGroup:o,switchLayoutGroup:i.useContext(B),isPresent:e,safeToRemove:n})}};function Ur(t,e,n={}){const o=H(t)?t:en(t);return o.start(ti("",o,e,n)),{stop:()=>o.stop(),isAnimating:()=>o.isAnimating()}}const Nr=["TopLeft","TopRight","BottomLeft","BottomRight"],$r=Nr.length,zr=t=>"string"===typeof t?parseFloat(t):t,Yr=t=>"number"===typeof t||ct.test(t);function Wr(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Xr=Gr(0,.5,po),Hr=Gr(.5,.95,lo);function Gr(t,e,n){return o=>o<t?0:o>e?1:n(io(t,e,o))}function Zr(t,e){t.min=e.min,t.max=e.max}function qr(t,e){Zr(t.x,e.x),Zr(t.y,e.y)}function Kr(t,e,n,o,i){return t=zi(t-=e,1/n,o),void 0!==i&&(t=zi(t,1/i,o)),t}function _r(t,e,[n,o,i],r,s){!function(t,e=0,n=1,o=.5,i,r=t,s=t){ut.test(e)&&(e=parseFloat(e),e=Zn(s.min,s.max,e/100)-s.min);if("number"!==typeof e)return;let a=Zn(r.min,r.max,o);t===r&&(a-=e),t.min=Kr(t.min,e,n,a,i),t.max=Kr(t.max,e,n,a,i)}(t,e[n],e[o],e[i],e.scale,r,s)}const Jr=["x","scaleX","originX"],Qr=["y","scaleY","originY"];function ts(t,e,n,o){_r(t.x,e,Jr,null===n||void 0===n?void 0:n.x,null===o||void 0===o?void 0:o.x),_r(t.y,e,Qr,null===n||void 0===n?void 0:n.y,null===o||void 0===o?void 0:o.y)}function es(t){return 0===t.translate&&1===t.scale}function ns(t){return es(t.x)&&es(t.y)}function os(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function is(t){return Ei(t.x)/Ei(t.y)}class rs{constructor(){this.members=[]}add(t){Ke(this.members,t),t.scheduleRender()}remove(t){if(_e(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let o=e;o>=0;o--){const t=this.members[o];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,e&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&o.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,o,i,r;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(r=null===(o=t.resumingFrom)||void 0===o?void 0:(i=o.options).onExitComplete)||void 0===r||r.call(i)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ss(t,e,n){let o="";const i=t.x.translate/e.x,r=t.y.translate/e.y;if((i||r)&&(o=`translate3d(${i}px, ${r}px, 0) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(o+=`rotate(${t}deg) `),e&&(o+=`rotateX(${e}deg) `),i&&(o+=`rotateY(${i}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(o+=`scale(${s}, ${a})`),o||"none"}const as=(t,e)=>t.depth-e.depth;class ls{constructor(){this.children=[],this.isDirty=!1}add(t){Ke(this.children,t),this.isDirty=!0}remove(t){_e(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(as),this.isDirty=!1,this.children.forEach(t)}}const us=["","X","Y","Z"];let cs=0;function ds({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(t,n={},o=(null===e||void 0===e?void 0:e())){this.id=cs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(ms),this.nodes.forEach(xs),this.nodes.forEach(bs)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ls)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Je),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null===n||void 0===n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var o;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:i,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),null===(o=this.parent)||void 0===o||o.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(r||i)&&(this.isLayoutDirty=!0),t){let n;const o=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Oo(o,250),R.hasAnimatedSinceResize&&(R.hasAnimatedSinceResize=!1,this.nodes.forEach(ys))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:o})=>{var i,r,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(r=null!==(i=this.options.transition)&&void 0!==i?i:s.getDefaultTransition())&&void 0!==r?r:Ss,{onLayoutAnimationStart:d,onLayoutAnimationComplete:h}=s.getProps(),p=!this.targetLayout||!os(this.targetLayout,o)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...qo(c,"layout"),onPlay:d,onComplete:h};s.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ys(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=o}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,Xe.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(ws),this.animationId++)}willUpdate(t=!0){var e,n,o;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){const t=this.path[a];t.shouldResetTransform=!0,t.updateScroll("snapshot")}const{layoutId:i,layout:r}=this.options;if(void 0===i&&!r)return;const s=null===(o=this.options.visualElement)||void 0===o?void 0:o.getProps().transformTemplate;this.prevTransformTemplateValue=null===s||void 0===s?void 0:s(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(vs);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Vs),this.potentialNodes.clear()),this.nodes.forEach(gs),this.nodes.forEach(hs),this.nodes.forEach(ps),this.clearAllSnapshots(),He.update(),He.preRender(),He.render())}clearAllSnapshots(){this.nodes.forEach(fs),this.sharedNodes.forEach(Es)}scheduleUpdateProjection(){We.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){We.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null===e||void 0===e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:o(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!ns(this.projectionDelta),o=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,r=null===o||void 0===o?void 0:o(this.latestValues,""),s=r!==this.prevTransformTemplateValue;e&&(n||Ui(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var o;return t&&(n=this.removeTransform(n)),Cs((o=n).x),Cs(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Gi(e.x,n.offset.x),Gi(e.y,n.offset.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};qr(e,t);for(let n=0;n<this.path.length;n++){const o=this.path[n],{scroll:i,options:r}=o;if(o!==this.root&&i&&r.layoutScroll){if(i.isRoot){qr(e,t);const{scroll:n}=this.root;n&&(Gi(e.x,-n.offset.x),Gi(e.y,-n.offset.y))}Gi(e.x,i.offset.x),Gi(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};qr(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&_i(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Ui(t.latestValues)&&_i(n,t.latestValues)}return Ui(this.latestValues)&&_i(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};qr(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];if(!t.instance)continue;if(!Ui(t.latestValues))continue;Oi(t.latestValues)&&t.updateSnapshot();const i={x:{min:0,max:0},y:{min:0,max:0}};qr(i,t.measurePageBox()),ts(n,t.latestValues,null===(e=t.snapshot)||void 0===e?void 0:e.layoutBox,i)}return Ui(this.latestValues)&&ts(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:o}=this.options;if(this.layout&&(n||o)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ci(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),qr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var i,r,s;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(i=this.target,r=this.relativeTarget,s=this.relativeParent.target,Si(i.x,r.x,s.x),Si(i.y,r.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):qr(this.target,this.layout.layoutBox),Xi(this.target,this.targetDelta)):qr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ci(this.relativeTargetOrigin,this.target,t.target),qr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!Oi(this.parent.latestValues)&&!Ni(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const o=this.getLead(),i=Boolean(this.resumingFrom)||this!==o;let r=!0;if(e&&(r=!1),i&&n&&(r=!1),r)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!a)return;qr(this.layoutCorrected,this.layout.layoutBox),function(t,e,n,o=!1){var i,r;const s=n.length;if(!s)return;let a,l;e.x=e.y=1;for(let u=0;u<s;u++)a=n[u],l=a.projectionDelta,"contents"!==(null===(r=null===(i=a.instance)||void 0===i?void 0:i.style)||void 0===r?void 0:r.display)&&(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&_i(t,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),l&&(e.x*=l.x.scale,e.y*=l.y.scale,Xi(t,l)),o&&Ui(a.latestValues)&&_i(t,a.latestValues));e.x=Hi(e.x),e.y=Hi(e.y)}(this.layoutCorrected,this.treeScale,this.path,i);const{target:l}=o;if(!l)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.treeScale.x,c=this.treeScale.y,d=this.projectionTransform;Ai(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ss(this.projectionDelta,this.treeScale),this.projectionTransform===d&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,o;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(o=this.getStack())||void 0===o||o.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,o;const i=this.snapshot,r=(null===i||void 0===i?void 0:i.latestValues)||{},s={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l={x:{min:0,max:0},y:{min:0,max:0}},u=(null===i||void 0===i?void 0:i.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(o=this.getStack())||void 0===o?void 0:o.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(As));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const o=e/1e3;var i,h,p,m;Ps(a.x,t.x,o),Ps(a.y,t.y,o),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(Ci(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i=this.relativeTarget,h=this.relativeTargetOrigin,p=l,m=o,Ts(i.x,h.x,p.x,m),Ts(i.y,h.y,p.y,m)),u&&(this.animationValues=s,function(t,e,n,o,i,r){i?(t.opacity=Zn(0,void 0!==n.opacity?n.opacity:1,Xr(o)),t.opacityExit=Zn(void 0!==e.opacity?e.opacity:1,0,Hr(o))):r&&(t.opacity=Zn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let s=0;s<$r;s++){const i=`border${Nr[s]}Radius`;let r=Wr(e,i),a=Wr(n,i);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Yr(r)===Yr(a)?(t[i]=Math.max(Zn(zr(r),zr(a),o),0),(ut.test(a)||ut.test(r))&&(t[i]+="%")):t[i]=a)}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,o))}(s,r,this.latestValues,o,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=o},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Xe.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=We.update((()=>{R.hasAnimatedSinceResize=!0,this.currentAnimation=Ur(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:i}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&Ms(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Ei(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=Ei(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}qr(e,n),_i(e,i),Ai(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){var n,o,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new rs);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(o=e.options.initialPromotionConfig)||void 0===o?void 0:o.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(o,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const o={};for(let i=0;i<us.length;i++){const e="rotate"+us[i];n[e]&&(o[e]=n[e],t.setStaticValue(e,0))}null===t||void 0===t||t.render();for(const i in o)t.setStaticValue(i,o[i]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,o;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=zt(t.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=zt(t.pointerEvents)||""),this.hasProjected&&!Ui(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}const a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=ss(this.projectionDeltaWithTransform,this.treeScale,a),r&&(i.transform=r(a,i.transform));const{x:l,y:u}=this.projectionDelta;i.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(o=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in $){if(void 0===a[c])continue;const{correct:t,applyTo:e}=$[c],n=t(a[c],s);if(e){const t=e.length;for(let o=0;o<t;o++)i[e[o]]=n}else i[c]=n}return this.options.layoutId&&(i.pointerEvents=s===this?zt(t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(vs),this.root.sharedNodes.clear()}}}function hs(t){t.updateLayout()}function ps(t){var e,n,o;const i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:o}=t.options,r=i.source!==t.layout.source;"size"===o?Ii((t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],o=Ei(n);n.min=e[t].min,n.max=n.min+o})):Ms(o,i.layoutBox,e)&&Ii((t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],o=Ei(e[t]);n.max=n.min+o}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ai(s,e,i.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Ai(a,t.applyTransform(n,!0),i.measuredBox):Ai(a,e,i.layoutBox);const l=!ns(s);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:o}=n;if(t&&o){const n={x:{min:0,max:0},y:{min:0,max:0}};Ci(n,i.layoutBox,t.layoutBox);const r={x:{min:0,max:0},y:{min:0,max:0}};Ci(r,e,o.layoutBox),os(n,r)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(o=(n=t.options).onExitComplete)||void 0===o||o.call(n));t.options.transition=void 0}function ms(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function fs(t){t.clearSnapshot()}function vs(t){t.clearMeasurements()}function gs(t){const{visualElement:e}=t.options;(null===e||void 0===e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ys(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function xs(t){t.resolveTargetDelta()}function bs(t){t.calcProjection()}function ws(t){t.resetRotation()}function Es(t){t.removeLeadSnapshot()}function Ps(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ts(t,e,n,o){t.min=Zn(e.min,n.min,o),t.max=Zn(e.max,n.max,o)}function As(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ss={duration:.45,ease:[.4,0,.1,1]};function Vs(t,e){let n=t.root;for(let i=t.path.length-1;i>=0;i--)if(Boolean(t.path[i].instance)){n=t.path[i];break}const o=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);o&&t.mount(o,!0)}function Cs(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Ms(t,e,n){return"position"===t||"preserve-aspect"===t&&!Pi(is(e),is(n),.2)}const Rs=ds({attachResizeListener:(t,e)=>qt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ds={current:void 0},ks=ds({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ds.current){const t=new Rs(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Ds.current=t}return Ds.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Ls={...hi,...De,...nr,...Or},Bs=O(((t,e)=>Gt(t,e,Ls,Dr,ks)));const Is=O(Gt);function Fs(){const t=i.useRef(!1);return v((()=>(t.current=!0,()=>{t.current=!1})),[]),t}function js(){const t=Fs(),[e,n]=i.useState(0),o=i.useCallback((()=>{t.current&&n(e+1)}),[e]);return[i.useCallback((()=>We.postRender(o)),[o]),e]}class Os extends c.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Us({children:t,isPresent:e}){const n=i.useId(),o=i.useRef(null),r=i.useRef({width:0,height:0,top:0,left:0});return i.useInsertionEffect((()=>{const{width:t,height:i,top:s,left:a}=r.current;if(e||!o.current||!t||!i)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${i}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[e]),c.createElement(Os,{isPresent:e,childRef:o,sizeRef:r},c.cloneElement(t,{ref:o}))}const Ns=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:s,mode:a})=>{const l=M($s),u=i.useId(),d=i.useMemo((()=>({id:u,initial:e,isPresent:n,custom:r,onExitComplete:t=>{l.set(t,!0);for(const e of l.values())if(!e)return;o&&o()},register:t=>(l.set(t,!1),()=>l.delete(t))})),s?void 0:[n]);return i.useMemo((()=>{l.forEach(((t,e)=>l.set(e,!1)))}),[n]),c.useEffect((()=>{!n&&!l.size&&o&&o()}),[n]),"popLayout"===a&&(t=c.createElement(Us,{isPresent:n},t)),c.createElement(m.Provider,{value:d},t)};function $s(){return new Map}const zs=t=>t.key||"";const Ys=i.createContext(null),Ws=t=>!t.isLayoutDirty&&t.willUpdate(!1);function Xs(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Ws);return{add:o=>{t.add(o),e.set(o,o.addEventListener("willUpdate",n))},remove:o=>{var i;t.delete(o),null===(i=e.get(o))||void 0===i||i(),e.delete(o),n()},dirty:n}}const Hs=t=>!0===t,Gs=({children:t,id:e,inheritId:n,inherit:o=!0})=>{void 0!==n&&(o=n);const r=i.useContext(k),s=i.useContext(Ys),[a,l]=js(),u=i.useRef(null),d=r.id||s;null===u.current&&((t=>Hs(!0===t)||"id"===t)(o)&&d&&(e=e?d+"-"+e:d),u.current={id:e,group:Hs(o)&&r.group||Xs()});const h=i.useMemo((()=>({...u.current,forceRender:a})),[l]);return c.createElement(k.Provider,{value:h},t)};let Zs=0;function qs(t){return"function"===typeof t}const Ks=i.createContext(null);const _s=i.forwardRef((function({children:t,as:e="ul",axis:n="y",onReorder:o,values:s,...a},l){const u=M((()=>Bs(e))),d=[],h=i.useRef(!1);r.invariant(Boolean(s),"Reorder.Group must be provided a values prop");const p={axis:n,registerItem:(t,e)=>{e&&-1===d.findIndex((e=>t===e.value))&&(d.push({value:t,layout:e[n]}),d.sort(Qs))},updateOrder:(t,e,n)=>{if(h.current)return;const i=function(t,e,n,o){if(!o)return t;const i=t.findIndex((t=>t.value===e));if(-1===i)return t;const r=o>0?1:-1,s=t[i+r];if(!s)return t;const a=t[i],l=s.layout,u=Zn(l.min,l.max,.5);return 1===r&&a.layout.max+n>u||-1===r&&a.layout.min+n<u?function([...t],e,n){const o=e<0?t.length+e:e;if(o>=0&&o<t.length){const o=n<0?t.length+n:n,[i]=t.splice(e,1);t.splice(o,0,i)}return t}(t,i,i+r):t}(d,t,e,n);d!==i&&(h.current=!0,o(i.map(Js).filter((t=>-1!==s.indexOf(t)))))}};return i.useEffect((()=>{h.current=!1})),c.createElement(u,{...a,ref:l},c.createElement(Ks.Provider,{value:p},t))}));function Js(t){return t.value}function Qs(t,e){return t.layout.min-e.layout.min}function ta(t){const e=M((()=>en(t))),{isStatic:n}=i.useContext(d);if(n){const[,n]=i.useState(t);i.useEffect((()=>e.onChange(n)),[])}return e}function ea(...t){const e=!Array.isArray(t[0]),n=e?0:-1,o=t[0+n],i=t[1+n],r=t[2+n],s=t[3+n],a=ao(i,r,{mixer:(l=r[0],(t=>"object"===typeof t&&t.mix)(l)?l.mix:void 0),...s});var l;return e?a(o):a}function na(t,e){const n=ta(e()),o=()=>n.set(e());return o(),function(t,e,n){v((()=>{const o=t.map((t=>t.onChange(e)));return()=>{o.forEach((t=>t())),n()}}))}(t,(()=>We.update(o,!1,!0)),(()=>Xe.update(o))),n}function oa(t,e,n,o){const i="function"===typeof e?e:ea(e,n,o);return Array.isArray(t)?ia(t,i):ia([t],(([t])=>i(t)))}function ia(t,e){const n=M((()=>[]));return na(t,(()=>{n.length=0;const o=t.length;for(let e=0;e<o;e++)n[e]=t[e].get();return e(n)}))}function ra(t,e=0){return H(t)?t:ta(e)}const sa={Group:_s,Item:i.forwardRef((function({children:t,style:e={},value:n,as:o="li",onDrag:s,layout:a=!0,...l},u){const d=M((()=>Bs(o))),h=i.useContext(Ks),p={x:ra(e.x),y:ra(e.y)},m=oa([p.x,p.y],(([t,e])=>t||e?1:"unset")),f=i.useRef(null);r.invariant(Boolean(h),"Reorder.Item must be a child of Reorder.Group");const{axis:v,registerItem:g,updateOrder:y}=h;return i.useEffect((()=>{g(n,f.current)}),[h]),c.createElement(d,{drag:v,...l,dragSnapToOrigin:!0,style:{...e,x:p.x,y:p.y,zIndex:m},layout:a,onDrag:(t,e)=>{const{velocity:o}=e;o[v]&&y(n,p[v].get(),o[v]),s&&s(t,e)},onLayoutMeasure:t=>{f.current=t},ref:u},t)}))},aa={renderer:Dr,...hi,...De},la={...aa,...nr,...Or,projectionNodeConstructor:ks};const ua=()=>({scrollX:en(0),scrollY:en(0),scrollXProgress:en(0),scrollYProgress:en(0)});function ca({container:t,target:e,layoutEffect:n=!0,...o}={}){const r=M(ua);return(n?v:i.useEffect)((()=>s.scroll((({x:t,y:e})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(e.current),r.scrollYProgress.set(e.progress)}),{...o,container:(null===t||void 0===t?void 0:t.current)||void 0,target:(null===e||void 0===e?void 0:e.current)||void 0})),[]),r}function da(t){const e=i.useRef(0),{isStatic:n}=i.useContext(d);i.useEffect((()=>{if(n)return;const o=({timestamp:n,delta:o})=>{e.current||(e.current=n),t(n-e.current,o)};return We.update(o,!0),()=>Xe.update(o)}),[t])}class ha extends tn{constructor(){super(...arguments),this.members=[],this.transforms=new Set}add(t){let e;W.has(t)?(this.transforms.add(t),e="transform"):t.startsWith("origin")||K(t)||"willChange"===t||(e=Bt(t)),e&&(Ke(this.members,e),this.update())}remove(t){W.has(t)?(this.transforms.delete(t),this.transforms.size||_e(this.members,"transform")):_e(this.members,Bt(t)),this.update()}update(){this.set(this.members.length?this.members.join(", "):"auto")}}function pa(){!br.current&&wr();const[t]=i.useState(xr.current);return t}function ma(){let t=!1;const e=[],n=new Set,o={subscribe:t=>(n.add(t),()=>{n.delete(t)}),start(o,i){if(t){const t=[];return n.forEach((e=>{t.push(ei(e,o,{transitionOverride:i}))})),Promise.all(t)}return new Promise((t=>{e.push({animation:[o,i],resolve:t})}))},set:e=>(r.invariant(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((t=>{!function(t,e){Array.isArray(e)?kn(t,e):"string"===typeof e?kn(t,[e]):Dn(t,e)}(t,e)}))),stop(){n.forEach((t=>{!function(t){t.values.forEach((t=>t.stop()))}(t)}))},mount:()=>(t=!0,e.forEach((({animation:t,resolve:e})=>{o.start(...t).then(e)})),()=>{t=!1,o.stop()})};return o}function fa(){const t=M(ma);return i.useEffect(t.mount,[]),t}const va=fa,ga=(t,e,n)=>{const o=e-t;return((n-t)%o+o)%o+t};class ya{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,e){this.componentControls.forEach((n=>{n.start(t.nativeEvent||t,e)}))}}const xa=()=>new ya;function ba(t){return null!==t&&"object"===typeof t&&I in t}function wa(){return Ea}function Ea(t){Ds.current&&(Ds.current.isUpdating=!1,Ds.current.blockUpdate(),t&&t())}const Pa=()=>({});class Ta extends Ar{build(){}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return{}}getBaseTargetFromProps(){}readValueFromInstance(t,e,n){return n.initialState[e]||0}sortInstanceNodePosition(){return 0}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n}){return Ln(this,n,In(n,t||{},this)),{transition:t,transitionEnd:e,...n}}}const Aa=Yt({scrapeMotionValuesFromProps:Pa,createRenderState:Pa});const Sa=t=>t>.001?1/t:1e5;let Va=!1;e.AnimatePresence=({children:t,custom:e,initial:n=!0,onExitComplete:o,exitBeforeEnter:r,presenceAffectsLayout:s=!0,mode:a="sync"})=>{r&&(a="wait",we(!1,"Replace exitBeforeEnter with mode='wait'"));let[l]=js();const u=i.useContext(k).forceRender;u&&(l=u);const d=Fs(),h=function(t){const e=[];return i.Children.forEach(t,(t=>{i.isValidElement(t)&&e.push(t)})),e}(t);let p=h;const m=new Set,f=i.useRef(p),g=i.useRef(new Map).current,y=i.useRef(!0);if(v((()=>{y.current=!1,function(t,e){t.forEach((t=>{const n=zs(t);e.set(n,t)}))}(h,g),f.current=p})),ve((()=>{y.current=!0,g.clear(),m.clear()})),y.current)return c.createElement(c.Fragment,null,p.map((t=>c.createElement(Ns,{key:zs(t),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:s,mode:a},t))));p=[...p];const x=f.current.map(zs),b=h.map(zs),w=x.length;for(let i=0;i<w;i++){const t=x[i];-1===b.indexOf(t)&&m.add(t)}return"wait"===a&&m.size&&(p=[]),m.forEach((t=>{if(-1!==b.indexOf(t))return;const n=g.get(t);if(!n)return;const i=x.indexOf(t);p.splice(i,0,c.createElement(Ns,{key:zs(n),isPresent:!1,onExitComplete:()=>{g.delete(t),m.delete(t);const e=f.current.findIndex((e=>e.key===t));if(f.current.splice(e,1),!m.size){if(f.current=h,!1===d.current)return;l(),o&&o()}},custom:e,presenceAffectsLayout:s,mode:a},n))})),p=p.map((t=>{const e=t.key;return m.has(e)?t:c.createElement(Ns,{key:zs(t),isPresent:!0,presenceAffectsLayout:s,mode:a},t)})),"production"!==xe&&"wait"===a&&p.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),c.createElement(c.Fragment,null,m.size?p:p.map((t=>i.cloneElement(t))))},e.AnimateSharedLayout=({children:t})=>(c.useEffect((()=>{r.warning(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")}),[]),c.createElement(Gs,{id:M((()=>"asl-"+Zs++))},t)),e.DeprecatedLayoutGroupContext=Ys,e.DragControls=ya,e.FlatTree=ls,e.LayoutGroup=Gs,e.LayoutGroupContext=k,e.LazyMotion=function({children:t,features:e,strict:n=!1}){const[,o]=i.useState(!qs(e)),r=i.useRef(void 0);if(!qs(e)){const{renderer:t,...n}=e;r.current=t,C(n)}return i.useEffect((()=>{qs(e)&&e().then((({renderer:t,...e})=>{C(e),r.current=t,o(!0)}))}),[]),c.createElement(g.Provider,{value:{renderer:r.current,strict:n}},t)},e.MotionConfig=function({children:t,isValidProp:e,...n}){e&&Tt(e),(n={...i.useContext(d),...n}).isStatic=M((()=>n.isStatic));const o=i.useMemo((()=>n),[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return c.createElement(d.Provider,{value:o},t)},e.MotionConfigContext=d,e.MotionContext=h,e.MotionValue=tn,e.PresenceContext=m,e.Reorder=sa,e.SwitchLayoutGroupContext=B,e.VisualElement=Ar,e.addPointerEvent=ae,e.addScaleCorrector=z,e.animate=Ur,e.animateVisualElement=ei,e.animationControls=ma,e.animations=hi,e.buildTransform=q,e.calcLength=Ei,e.checkTargetForNewValues=Ln,e.clamp=J,e.createBox=Bi,e.createDomMotionComponent=function(t){return F(Gt(t,{forwardMotionProps:!1},Ls,Dr,ks))},e.createMotionComponent=F,e.delay=Oo,e.distance=pi,e.distance2D=mi,e.domAnimation=aa,e.domMax=la,e.filterProps=At,e.isBrowser=f,e.isDragActive=pe,e.isMotionComponent=ba,e.isMotionValue=H,e.isValidMotionProp=Et,e.m=Is,e.makeUseVisualState=Yt,e.mix=Zn,e.motion=Bs,e.motionValue=en,e.optimizedAppearDataAttribute=Nn,e.pipe=ye,e.resolveMotionValue=zt,e.spring=Mo,e.startOptimizedAppearAnimation=function(t,e,n,o){window.MotionAppearAnimations||(window.MotionAppearAnimations=new Map);const i=t.dataset.framerAppearId,r=jo(t,e,n,o);return i&&r&&window.MotionAppearAnimations.set(jn(i,e),r),r},e.transform=ea,e.unwrapMotionComponent=function(t){if(ba(t))return t[I]},e.useAnimation=va,e.useAnimationControls=fa,e.useAnimationFrame=da,e.useCycle=function(...t){const e=i.useRef(0),[n,o]=i.useState(t[e.current]);return[n,i.useCallback((n=>{e.current="number"!==typeof n?ga(0,t.length,e.current+1):n,o(t[e.current])}),[t.length,...t])]},e.useDeprecatedAnimatedState=function(t){const[e,n]=i.useState(t),o=Aa({},!1),r=M((()=>new Ta({props:{},visualState:o},{initialState:t})));return i.useEffect((()=>(r.mount({}),()=>r.unmount())),[r]),i.useEffect((()=>{r.setProps({onUpdate:t=>{n({...t})}})}),[n,r]),[e,M((()=>t=>ei(r,t)))]},e.useDeprecatedInvertedScale=function(t){let e=ta(1),n=ta(1);const o=p();return r.invariant(!(!t&&!o),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),r.warning(Va,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Va=!0,t?(e=t.scaleX||e,n=t.scaleY||n):o&&(e=o.getValue("scaleX",1),n=o.getValue("scaleY",1)),{scaleX:oa(e,Sa),scaleY:oa(n,Sa)}},e.useDomEvent=Kt,e.useDragControls=function(){return M(xa)},e.useElementScroll=function(t){return we(!1,"useElementScroll is deprecated. Convert to useScroll({ container: ref })."),ca({container:t})},e.useForceUpdate=js,e.useInView=function(t,{root:e,margin:n,amount:o,once:r=!1}={}){const[a,l]=i.useState(!1);return i.useEffect((()=>{if(!t.current||r&&a)return;const i={root:e&&e.current||void 0,margin:n,amount:"some"===o?"any":o};return s.inView(t.current,(()=>(l(!0),r?void 0:()=>l(!1))),i)}),[e,t,n,r]),a},e.useInstantLayoutTransition=wa,e.useInstantTransition=function(){const[t,e]=js(),n=wa();return i.useEffect((()=>{We.postRender((()=>We.postRender((()=>zn.current=!1))))}),[e]),e=>{n((()=>{zn.current=!0,t(),e()}))}},e.useIsPresent=function(){return null===(t=i.useContext(m))||t.isPresent;var t},e.useIsomorphicLayoutEffect=v,e.useMotionTemplate=function(t,...e){const n=t.length;return na(e,(function(){let o="";for(let i=0;i<n;i++){o+=t[i];e[i]&&(o+=e[i].get())}return o}))},e.useMotionValue=ta,e.usePresence=ke,e.useReducedMotion=pa,e.useReducedMotionConfig=function(){const t=pa(),{reducedMotion:e}=i.useContext(d);return"never"!==e&&("always"===e||t)},e.useResetProjection=function(){return c.useCallback((()=>{const t=Ds.current;t&&t.resetTree()}),[])},e.useScroll=ca,e.useSpring=function(t,e={}){const{isStatic:n}=i.useContext(d),o=i.useRef(null),r=ta(H(t)?t.get():t);return i.useMemo((()=>r.attach(((t,i)=>n?i(t):(o.current&&o.current.stop(),o.current=Bo({keyframes:[r.get(),t],velocity:r.getVelocity(),type:"spring",...e,onUpdate:i}),r.get())))),[JSON.stringify(e)]),function(t,e){v((()=>{if(H(t))return e(t.get()),t.onChange(e)}),[t,e])}(t,(t=>r.set(parseFloat(t)))),r},e.useTime=function(){const t=ta(0);return da((e=>t.set(e))),t},e.useTransform=oa,e.useUnmountEffect=ve,e.useVelocity=function(t){const e=ta(t.getVelocity());return i.useEffect((()=>t.velocityUpdateSubscribers.add((t=>{e.set(t)}))),[t]),e},e.useViewportScroll=function(){return we(!1,"useViewportScroll is deprecated. Convert to useScroll()."),ca()},e.useVisualElementContext=p,e.useWillChange=function(){return M((()=>new ha("auto")))},e.wrap=ga,e.wrapHandler=oe}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{65186:function(e,n,t){"use strict";var s=t(28598),i=18.53/14;n.Z=function(e){var n=e.height,t=e.width,r=n||(t?t*(1/i):14),o=t||(n?n*i:18.53);return(0,s.jsxs)("svg",{width:o,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,s.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,s.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,s.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,s.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})}},35987:function(e,n,t){"use strict";t.r(n);var s=t(82684),i=t(69419),r=t(85854),o=t(30160),l=t(38276),a=t(65186),c=t(28598);n.default=function(){var e=(0,s.useState)(5),n=e[0],t=e[1];return(0,s.useEffect)((function(){var e=setInterval((function(){n>0?t(n-1):(0,i.nL)("/pipelines")}),1e3);return function(){return clearInterval(e)}}),[n]),(0,c.jsxs)("main",{style:{alignItems:"center",display:"flex",flexDirection:"column",height:"100vh",marginTop:"16rem"},children:[(0,c.jsx)(a.Z,{height:64}),(0,c.jsx)(l.Z,{my:2,children:(0,c.jsx)(r.Z,{level:1,children:"404 - Page Not Found"})}),(0,c.jsxs)(o.ZP,{large:!0,children:["You will be redirected to the Pipelines dashboard in ",n," seconds."]})]})}},6141:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return t(35987)}])}},function(e){e.O(0,[9774,2888,179],(function(){return n=6141,e(e.s=n);var n}));var n=e.O();_N_E=n}]);