@hivemagnus/magnus-ui 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/app/apps/dashboard/.next/BUILD_ID +1 -1
  2. package/dist/app/apps/dashboard/.next/build-manifest.json +3 -3
  3. package/dist/app/apps/dashboard/.next/prerender-manifest.json +3 -3
  4. package/dist/app/apps/dashboard/.next/required-server-files.json +2 -2
  5. package/dist/app/apps/dashboard/.next/server/app/_global-error.html +1 -1
  6. package/dist/app/apps/dashboard/.next/server/app/_global-error.rsc +1 -1
  7. package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dist/app/apps/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/dist/app/apps/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  11. package/dist/app/apps/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/dist/app/apps/dashboard/.next/server/app/anomalies/[anomalyId]/page.js.nft.json +1 -1
  13. package/dist/app/apps/dashboard/.next/server/app/anomalies/[anomalyId]/page_client-reference-manifest.js +1 -1
  14. package/dist/app/apps/dashboard/.next/server/app/anomalies/page.js.nft.json +1 -1
  15. package/dist/app/apps/dashboard/.next/server/app/anomalies/page_client-reference-manifest.js +1 -1
  16. package/dist/app/apps/dashboard/.next/server/app/anomalies/remediation/page.js.nft.json +1 -1
  17. package/dist/app/apps/dashboard/.next/server/app/anomalies/remediation/page_client-reference-manifest.js +1 -1
  18. package/dist/app/apps/dashboard/.next/server/app/api/auth/hive/callback/route.js.nft.json +1 -1
  19. package/dist/app/apps/dashboard/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  20. package/dist/app/apps/dashboard/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  21. package/dist/app/apps/dashboard/.next/server/app/api/auth/me/route.js.nft.json +1 -1
  22. package/dist/app/apps/dashboard/.next/server/app/api/federation/route.js.nft.json +1 -1
  23. package/dist/app/apps/dashboard/.next/server/app/api/hermes/dashboard/[[...path]]/route.js.nft.json +1 -1
  24. package/dist/app/apps/dashboard/.next/server/app/api/hive-router/dashboard/[[...path]]/route.js.nft.json +1 -1
  25. package/dist/app/apps/dashboard/.next/server/app/api/proxy/[...path]/route.js.nft.json +1 -1
  26. package/dist/app/apps/dashboard/.next/server/app/api/terminal/close/route.js.nft.json +1 -1
  27. package/dist/app/apps/dashboard/.next/server/app/api/terminal/input/route.js.nft.json +1 -1
  28. package/dist/app/apps/dashboard/.next/server/app/api/terminal/open/route.js.nft.json +1 -1
  29. package/dist/app/apps/dashboard/.next/server/app/api/terminal/resize/route.js.nft.json +1 -1
  30. package/dist/app/apps/dashboard/.next/server/app/api/terminal/stream/route.js.nft.json +1 -1
  31. package/dist/app/apps/dashboard/.next/server/app/api-docs/page.js.nft.json +1 -1
  32. package/dist/app/apps/dashboard/.next/server/app/api-docs/page_client-reference-manifest.js +1 -1
  33. package/dist/app/apps/dashboard/.next/server/app/application-operations/page.js.nft.json +1 -1
  34. package/dist/app/apps/dashboard/.next/server/app/application-operations/page_client-reference-manifest.js +1 -1
  35. package/dist/app/apps/dashboard/.next/server/app/ardent/installations/page.js.nft.json +1 -1
  36. package/dist/app/apps/dashboard/.next/server/app/ardent/installations/page_client-reference-manifest.js +1 -1
  37. package/dist/app/apps/dashboard/.next/server/app/ardent/page.js.nft.json +1 -1
  38. package/dist/app/apps/dashboard/.next/server/app/ardent/page_client-reference-manifest.js +1 -1
  39. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/[id]/page.js.nft.json +1 -1
  40. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/[id]/page_client-reference-manifest.js +1 -1
  41. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/page.js.nft.json +1 -1
  42. package/dist/app/apps/dashboard/.next/server/app/ardent/profiles/page_client-reference-manifest.js +1 -1
  43. package/dist/app/apps/dashboard/.next/server/app/audit/page.js.nft.json +1 -1
  44. package/dist/app/apps/dashboard/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  45. package/dist/app/apps/dashboard/.next/server/app/codex/installations/page.js.nft.json +1 -1
  46. package/dist/app/apps/dashboard/.next/server/app/codex/installations/page_client-reference-manifest.js +1 -1
  47. package/dist/app/apps/dashboard/.next/server/app/codex/page.js.nft.json +1 -1
  48. package/dist/app/apps/dashboard/.next/server/app/codex/page_client-reference-manifest.js +1 -1
  49. package/dist/app/apps/dashboard/.next/server/app/commands/page.js.nft.json +1 -1
  50. package/dist/app/apps/dashboard/.next/server/app/commands/page_client-reference-manifest.js +1 -1
  51. package/dist/app/apps/dashboard/.next/server/app/cron/page/server-reference-manifest.json +1 -1
  52. package/dist/app/apps/dashboard/.next/server/app/cron/page.js.nft.json +1 -1
  53. package/dist/app/apps/dashboard/.next/server/app/cron/page_client-reference-manifest.js +1 -1
  54. package/dist/app/apps/dashboard/.next/server/app/files/page.js.nft.json +1 -1
  55. package/dist/app/apps/dashboard/.next/server/app/files/page_client-reference-manifest.js +1 -1
  56. package/dist/app/apps/dashboard/.next/server/app/fleet-map/page.js.nft.json +1 -1
  57. package/dist/app/apps/dashboard/.next/server/app/fleet-map/page_client-reference-manifest.js +1 -1
  58. package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page.js +1 -1
  59. package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page.js.nft.json +1 -1
  60. package/dist/app/apps/dashboard/.next/server/app/fleet-readiness/page_client-reference-manifest.js +1 -1
  61. package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page.js.nft.json +1 -1
  62. package/dist/app/apps/dashboard/.next/server/app/fleet-timeline/page_client-reference-manifest.js +1 -1
  63. package/dist/app/apps/dashboard/.next/server/app/governor/operations/page.js.nft.json +1 -1
  64. package/dist/app/apps/dashboard/.next/server/app/governor/operations/page_client-reference-manifest.js +1 -1
  65. package/dist/app/apps/dashboard/.next/server/app/governor/share/[token]/page.js.nft.json +1 -1
  66. package/dist/app/apps/dashboard/.next/server/app/governor/share/[token]/page_client-reference-manifest.js +1 -1
  67. package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page.js.nft.json +1 -1
  68. package/dist/app/apps/dashboard/.next/server/app/hermes-drift/page_client-reference-manifest.js +1 -1
  69. package/dist/app/apps/dashboard/.next/server/app/hermes-security/page.js.nft.json +1 -1
  70. package/dist/app/apps/dashboard/.next/server/app/hermes-security/page_client-reference-manifest.js +1 -1
  71. package/dist/app/apps/dashboard/.next/server/app/incidents/page.js.nft.json +1 -1
  72. package/dist/app/apps/dashboard/.next/server/app/incidents/page_client-reference-manifest.js +1 -1
  73. package/dist/app/apps/dashboard/.next/server/app/library/page.js.nft.json +1 -1
  74. package/dist/app/apps/dashboard/.next/server/app/library/page_client-reference-manifest.js +1 -1
  75. package/dist/app/apps/dashboard/.next/server/app/login/page.js.nft.json +1 -1
  76. package/dist/app/apps/dashboard/.next/server/app/login/page_client-reference-manifest.js +1 -1
  77. package/dist/app/apps/dashboard/.next/server/app/logs/page.js.nft.json +1 -1
  78. package/dist/app/apps/dashboard/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  79. package/dist/app/apps/dashboard/.next/server/app/mission-control/page.js +1 -1
  80. package/dist/app/apps/dashboard/.next/server/app/mission-control/page.js.nft.json +1 -1
  81. package/dist/app/apps/dashboard/.next/server/app/mission-control/page_client-reference-manifest.js +1 -1
  82. package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page.js.nft.json +1 -1
  83. package/dist/app/apps/dashboard/.next/server/app/nodes/[nodeId]/page_client-reference-manifest.js +1 -1
  84. package/dist/app/apps/dashboard/.next/server/app/nodes/page.js.nft.json +1 -1
  85. package/dist/app/apps/dashboard/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  86. package/dist/app/apps/dashboard/.next/server/app/notifications/page.js.nft.json +1 -1
  87. package/dist/app/apps/dashboard/.next/server/app/notifications/page_client-reference-manifest.js +1 -1
  88. package/dist/app/apps/dashboard/.next/server/app/orchestra/installations/page.js.nft.json +1 -1
  89. package/dist/app/apps/dashboard/.next/server/app/orchestra/installations/page_client-reference-manifest.js +1 -1
  90. package/dist/app/apps/dashboard/.next/server/app/orchestra/page.js.nft.json +1 -1
  91. package/dist/app/apps/dashboard/.next/server/app/orchestra/page_client-reference-manifest.js +1 -1
  92. package/dist/app/apps/dashboard/.next/server/app/orchestra/profiles/page.js.nft.json +1 -1
  93. package/dist/app/apps/dashboard/.next/server/app/orchestra/profiles/page_client-reference-manifest.js +1 -1
  94. package/dist/app/apps/dashboard/.next/server/app/orchestra/web-gateway/page.js.nft.json +1 -1
  95. package/dist/app/apps/dashboard/.next/server/app/orchestra/web-gateway/page_client-reference-manifest.js +1 -1
  96. package/dist/app/apps/dashboard/.next/server/app/page.js.nft.json +1 -1
  97. package/dist/app/apps/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  98. package/dist/app/apps/dashboard/.next/server/app/retention/page.js.nft.json +1 -1
  99. package/dist/app/apps/dashboard/.next/server/app/retention/page_client-reference-manifest.js +1 -1
  100. package/dist/app/apps/dashboard/.next/server/app/roles/page.js.nft.json +1 -1
  101. package/dist/app/apps/dashboard/.next/server/app/roles/page_client-reference-manifest.js +1 -1
  102. package/dist/app/apps/dashboard/.next/server/app/rollouts/page.js.nft.json +1 -1
  103. package/dist/app/apps/dashboard/.next/server/app/rollouts/page_client-reference-manifest.js +1 -1
  104. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page.js.nft.json +1 -1
  105. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/[caseId]/page_client-reference-manifest.js +1 -1
  106. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page.js.nft.json +1 -1
  107. package/dist/app/apps/dashboard/.next/server/app/security-fusion/cases/page_client-reference-manifest.js +1 -1
  108. package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page.js.nft.json +1 -1
  109. package/dist/app/apps/dashboard/.next/server/app/security-fusion/entities/page_client-reference-manifest.js +1 -1
  110. package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page.js.nft.json +1 -1
  111. package/dist/app/apps/dashboard/.next/server/app/security-fusion/events/page_client-reference-manifest.js +1 -1
  112. package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page.js.nft.json +1 -1
  113. package/dist/app/apps/dashboard/.next/server/app/security-fusion/evidence/page_client-reference-manifest.js +1 -1
  114. package/dist/app/apps/dashboard/.next/server/app/security-fusion/page.js.nft.json +1 -1
  115. package/dist/app/apps/dashboard/.next/server/app/security-fusion/page_client-reference-manifest.js +1 -1
  116. package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page.js.nft.json +1 -1
  117. package/dist/app/apps/dashboard/.next/server/app/security-fusion/policies/page_client-reference-manifest.js +1 -1
  118. package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page.js.nft.json +1 -1
  119. package/dist/app/apps/dashboard/.next/server/app/security-fusion/sources/page_client-reference-manifest.js +1 -1
  120. package/dist/app/apps/dashboard/.next/server/app/skills/page/server-reference-manifest.json +1 -1
  121. package/dist/app/apps/dashboard/.next/server/app/skills/page.js.nft.json +1 -1
  122. package/dist/app/apps/dashboard/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  123. package/dist/app/apps/dashboard/.next/server/app/webhooks/[id]/page.js.nft.json +1 -1
  124. package/dist/app/apps/dashboard/.next/server/app/webhooks/[id]/page_client-reference-manifest.js +1 -1
  125. package/dist/app/apps/dashboard/.next/server/app/webhooks/new/page.js.nft.json +1 -1
  126. package/dist/app/apps/dashboard/.next/server/app/webhooks/new/page_client-reference-manifest.js +1 -1
  127. package/dist/app/apps/dashboard/.next/server/app/webhooks/page.js.nft.json +1 -1
  128. package/dist/app/apps/dashboard/.next/server/app/webhooks/page_client-reference-manifest.js +1 -1
  129. package/dist/app/apps/dashboard/.next/server/chunks/ssr/1q96_modules_lucide-react_dist_esm_icons_shield-exclamation-point_mjs_1tkr7n-tgo96-._.js +3 -0
  130. package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__06giq9g4me8eh._.js +1 -1
  131. package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__08sgyyf_y8ab8._.js +1 -1
  132. package/dist/app/apps/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11pe-l2-ko65_._.js +1 -1
  133. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0wsvm9s-rtmzo._.js → [root-of-the-server]__1puyk1oobvatz._.js} +1 -1
  134. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0hkl39n6k8s99._.js → [root-of-the-server]__1qgn9450v696_._.js} +1 -1
  135. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{_1ircn2sooizal._.js → _0_1zoskz6tg4y._.js} +2 -2
  136. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0caxc2bc6a__r._.js +1 -1
  137. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0fge-mr3ok0j9._.js +1 -1
  138. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0sfwhwcsjtppm._.js +3 -0
  139. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{_0f89fican-_s9._.js → _11ouppxul_ebs._.js} +2 -2
  140. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1ml_bvfb1fitq._.js +1 -1
  141. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_1oebzzj_en62h._.js +1 -1
  142. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_20ln5i8p8muqj._.js +1 -1
  143. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_0gs_s688kgg1i._.js +2 -2
  144. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_anomalies_page_tsx_1oqqex9du4yhn._.js +1 -1
  145. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_codex_page_tsx_113aas0vmxegr._.js +1 -1
  146. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_cron_page_tsx_1i3duyygc0_tg._.js +1 -1
  147. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_dashboard-client_tsx_0o_8papeie86c._.js +1 -1
  148. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_fleet-readiness_page_tsx_129clnb6oplu7._.js +1 -1
  149. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_governor_operations_page_tsx_1tvdkgil8mlgk._.js +1 -1
  150. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_mission-control_page_tsx_0crgxncex_u3w._.js +1 -1
  151. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_nodes_[nodeId]_page_tsx_1q7fqu18oklzc._.js +1 -1
  152. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_nodes_nodes-client_tsx_0pt4iarhpqbgn._.js +1 -1
  153. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_orchestra_web-gateway_page_tsx_1fz12np0wk27t._.js +1 -1
  154. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_roles_roles-client_tsx_1ivvp_kqt5io0._.js +1 -1
  155. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_app_skills_page_tsx_0n5zp4xad38in._.js +1 -1
  156. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_components_nodes_tailscale-expiry-alert_tsx_1ll2-i32ej6c2._.js +1 -1
  157. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_1w0trtqcl9-wn._.js +3 -0
  158. package/dist/app/apps/dashboard/.next/server/chunks/ssr/{node_modules_@xterm_1aplmmrj23vvx._.js → node_modules_@xterm_120daugm414or._.js} +1 -1
  159. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1z36d7pdfx5zy._.js +3 -0
  160. package/dist/app/apps/dashboard/.next/server/middleware-build-manifest.js +3 -3
  161. package/dist/app/apps/dashboard/.next/server/pages/500.html +1 -1
  162. package/dist/app/apps/dashboard/.next/server/preview-props.json +3 -3
  163. package/dist/app/apps/dashboard/.next/server/server-reference-manifest.js +1 -1
  164. package/dist/app/apps/dashboard/.next/server/server-reference-manifest.json +3 -3
  165. package/dist/app/apps/dashboard/.next/static/chunks/{0diifaom2d_cn.js → 07uou-f2ig2z3.js} +1 -1
  166. package/dist/app/apps/dashboard/.next/static/chunks/0c34_gunccud3.css +2 -0
  167. package/dist/app/apps/dashboard/.next/static/chunks/{1qof_dzyxcovx.js → 0jjlvquibj1y7.js} +1 -1
  168. package/dist/app/apps/dashboard/.next/static/chunks/{0jd62jw1t6xu7.js → 0lday6tat45ag.js} +1 -1
  169. package/dist/app/apps/dashboard/.next/static/chunks/{329-89v549ihn.js → 0t2ucm_2a2rg6.js} +1 -1
  170. package/dist/app/apps/dashboard/.next/static/chunks/{07ca8rxnrcu1j.js → 13xhzbvpgnpe-.js} +1 -1
  171. package/dist/app/apps/dashboard/.next/static/chunks/{2ztok0-w0f1y6.js → 1fv88nu13uv4g.js} +2 -2
  172. package/dist/app/apps/dashboard/.next/static/chunks/{1uj8oezn_z82c.js → 1kjl44-64ume7.js} +1 -1
  173. package/dist/app/apps/dashboard/.next/static/chunks/{2h6o1ta-xcjtp.js → 215cfit1tgz2o.js} +1 -1
  174. package/dist/app/apps/dashboard/.next/static/chunks/{2a69e_72vy07_.js → 23o8zfgrdxuhk.js} +1 -1
  175. package/dist/app/apps/dashboard/.next/static/chunks/{028ezuxrvvye_.js → 2lk4ailve7631.js} +1 -1
  176. package/dist/app/apps/dashboard/.next/static/chunks/{3153ier_x5pc9.js → 2lulmsr2vjuw5.js} +1 -1
  177. package/dist/app/apps/dashboard/.next/static/chunks/{3fyjlk6fsmzc5.js → 36vn0m8_5apop.js} +1 -1
  178. package/dist/app/apps/dashboard/.next/static/chunks/{2p26kwyyzgqph.js → 37pb0l96d03rk.js} +1 -1
  179. package/dist/app/apps/dashboard/.next/static/chunks/3gd78w81m3ouh.js +1 -0
  180. package/dist/app/apps/dashboard/.next/static/chunks/{2p-sasidykf0f.js → 3qq-otw-t-6b0.js} +1 -1
  181. package/dist/app/apps/dashboard/.next/static/chunks/{1hcdglofzkp3n.js → 3y_9v_-9n_gex.js} +1 -1
  182. package/dist/app/apps/dashboard/package.json +8 -8
  183. package/dist/app/apps/dashboard/server.js +1 -1
  184. package/package.json +8 -8
  185. package/dist/app/apps/dashboard/.next/server/chunks/ssr/_0wh_e2bpxcaf4._.js +0 -3
  186. package/dist/app/apps/dashboard/.next/server/chunks/ssr/apps_dashboard_src_138fu3pss1hww._.js +0 -3
  187. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1wnnq70cs49fi._.js +0 -3
  188. package/dist/app/apps/dashboard/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_shield-alert_mjs_171qztcjn79hl._.js +0 -3
  189. package/dist/app/apps/dashboard/.next/static/chunks/0fy1-ohtdf-xm.css +0 -2
  190. package/dist/app/apps/dashboard/.next/static/chunks/11d-a975loj77.js +0 -1
  191. /package/dist/app/apps/dashboard/.next/static/{3-ZMihiAuxzr8_lO7kRFK → oBJFgdstvXZ3NrujXPPW5}/_buildManifest.js +0 -0
  192. /package/dist/app/apps/dashboard/.next/static/{3-ZMihiAuxzr8_lO7kRFK → oBJFgdstvXZ3NrujXPPW5}/_clientMiddlewareManifest.js +0 -0
  193. /package/dist/app/apps/dashboard/.next/static/{3-ZMihiAuxzr8_lO7kRFK → oBJFgdstvXZ3NrujXPPW5}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[85063,31289,a=>{"use strict";let b,c,d;var e=a.i(87924),f=a.i(72131),g=a.i(35112),h=a.i(74215);let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set([...i,"pathRotation"]),k=(a,b,c)=>c>b?b:c<a?a:c,l={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},m={...l,transform:a=>k(0,1,a)},n={...l,default:1},o=a=>Math.round(1e5*a)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(a,b)=>c=>!!("string"==typeof c&&q.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),s=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(p);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},t={...l,transform:a=>Math.round(k(0,255,a))},u={test:r("rgb","red"),parse:s("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+t.transform(a)+", "+t.transform(b)+", "+t.transform(c)+", "+o(m.transform(d))+")"},v=(a,b,c)=>{let d=a.substring(1+b*c,1+(b+1)*c);return c>1?d:d+d},w={test:r("#"),parse:function(a){let b=a.length>5?2:1,c=v(a,3,b);return{red:parseInt(v(a,0,b),16),green:parseInt(v(a,1,b),16),blue:parseInt(v(a,2,b),16),alpha:c?parseInt(c,16)/255:1}},transform:u.transform},x=a=>({test:b=>"string"==typeof b&&b.endsWith(a)&&1===b.split(" ").length,parse:parseFloat,transform:b=>`${b}${a}`}),y=x("deg"),z=x("%"),A=x("px"),B=x("vh"),C=x("vw"),D={...z,parse:a=>z.parse(a)/100,transform:a=>z.transform(100*a)},E={test:r("hsl","hue"),parse:s("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+z.transform(o(b))+", "+z.transform(o(c))+", "+o(m.transform(d))+")"},F={test:a=>u.test(a)||w.test(a)||E.test(a),parse:a=>u.test(a)?u.parse(a):E.test(a)?E.parse(a):w.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?u.transform(a):E.transform(a),getAnimatableNone:a=>{let b=F.parse(a);return b.alpha=0,F.transform(b)}},G=new RegExp(p.source),H=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),I="number",J="color",K=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function L(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(K,a=>(F.test(a)?(d.color.push(f),e.push(J),c.push(F.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(I),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function M({split:a,types:b}){let c=a.length;return d=>{let e="";for(let f=0;f<c;f++)if(e+=a[f],void 0!==d[f]){let a=b[f];a===I?e+=o(d[f]):a===J?e+=F.transform(d[f]):e+=d[f]}return e}}let N={test:function(a){return isNaN(a)&&"string"==typeof a&&(G.test(a)||H.test(a))},parse:function(a){return L(a).values},createTransformer:function(a){return M(L(a))},getAnimatableNone:function(a){let b=L(a);return M(b)(b.values.map((a,c)=>((a,b)=>"number"==typeof a?b?.trim().endsWith("/")?a:0:"number"==typeof a?0:F.test(a)?F.getAnimatableNone(a):a)(a,b.split[c])))}},O=new Set(["brightness","contrast","saturate","opacity"]);function P(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(p)||[];if(!d)return a;let e=c.replace(d,""),f=+!!O.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let Q=/\b([a-z-]*)\(.*?\)/gu,R={...N,getAnimatableNone:a=>{let b=a.match(Q);return b?b.map(P).join(" "):a}},S={...N,getAnimatableNone:a=>{let b=N.parse(a);return N.createTransformer(a)(b.map(a=>"number"==typeof a?0:"object"==typeof a?{...a,alpha:1}:a))}},T={...l,transform:Math.round},U={rotate:y,pathRotation:y,rotateX:y,rotateY:y,rotateZ:y,scale:n,scaleX:n,scaleY:n,scaleZ:n,skew:y,skewX:y,skewY:y,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:m,originX:D,originY:D,originZ:A},V={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,fontSize:A,backgroundPositionX:A,backgroundPositionY:A,...U,zIndex:T,fillOpacity:m,strokeOpacity:m,numOctaves:T},W={...V,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:R,WebkitFilter:R,mask:S,WebkitMask:S},X=a=>W[a],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),Z=()=>({x:Y(),y:Y()}),$=()=>({min:0,max:0}),_=()=>({x:$(),y:$()}),aa=a=>!!(a&&a.getVelocity),ab=new Set(["width","height","top","left","right","bottom",...i]),ac=[l,A,z,y,C,B,{test:a=>"auto"===a,parse:a=>a}],ad=a=>ac.find(b=>b.test(a)),ae=a=>b=>"string"==typeof b&&b.startsWith(a),af=ae("--"),ag=ae("var(--"),ah=a=>!!ag(a)&&ai.test(a.split("/*")[0].trim()),ai=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function aj(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}let ak=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function al(a,b,c=1){let[d,e]=function(a){let b=ak.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${c??d}`,e]}(a);if(!d)return;let f=window.getComputedStyle(b).getPropertyValue(d);if(f){let a=f.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)?parseFloat(a):a}return ah(e)?al(e,b,c+1):e}let am=new Set([R,S]);function an(a,b){let c=X(a);return am.has(c)||(c=N),c.getAnimatableNone?c.getAnimatableNone(b):void 0}let ao=a=>180*a/Math.PI,ap=a=>ar(ao(Math.atan2(a[1],a[0]))),aq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:ap,rotateZ:ap,skewX:a=>ao(Math.atan(a[1])),skewY:a=>ao(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},ar=a=>((a%=360)<0&&(a+=360),a),as=a=>Math.hypot(a[0],a[1]),at=a=>Math.hypot(a[4],a[5]),au={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:as,scaleY:at,scaleZ:a=>Math.hypot(a[8],a[9],a[10]),scale:a=>(as(a)+at(a))/2,rotateX:a=>ar(ao(Math.atan2(a[6],a[5]))),rotateY:a=>ar(ao(Math.atan2(-a[2],a[0]))),rotateZ:ap,rotate:ap,skewX:a=>ao(Math.atan(a[4])),skewY:a=>ao(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function av(a){return+!!a.includes("scale")}function aw(a,b){if(!a||"none"===a)return av(b);let c=a.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!c)return av(b);let d=(c[1]?au:aq)[b],e=c[2].split(",").map(a=>parseFloat(a));return"function"==typeof d?d(e):e[d]}let ax=a=>a===l||a===A,ay=new Set(["x","y","z"]),az=i.filter(a=>!ay.has(a)),aA=new Set(["bottom","right"]);function aB(a,b,c,d,e,f){let g=parseFloat(a);if(!isNaN(g))return g;let{min:h,max:i}=b()[c],j=i-h;return"border-box"===f?j:j-parseFloat(d)-parseFloat(e)}let aC=({transform:a})=>aw(a,"x"),aD=({transform:a})=>aw(a,"y"),aE={width:({width:a,paddingLeft:b="0",paddingRight:c="0",boxSizing:d},e)=>aB(a,e,"x",b,c,d),height:({height:a,paddingTop:b="0",paddingBottom:c="0",boxSizing:d},e)=>aB(a,e,"y",b,c,d),top:({top:a})=>parseFloat(a),left:({left:a})=>parseFloat(a),bottom:({top:a},b)=>{let{y:c}=b();return parseFloat(a)+(c.max-c.min)},right:({left:a},b)=>{let{x:c}=b();return parseFloat(a)+(c.max-c.min)},x:aC,y:aD,translateX:aC,translateY:aD},aF=a=>a,aG={},aH=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aI(a,b,c={delta:0,timestamp:0,isProcessing:!1}){let d=!1,e=!0,f=()=>d=!0,g=aH.reduce((a,b)=>(a[b]=function(a){let b,c=new Set,d=new Set,e=!1,f=!1,g=new Set,h={delta:0,timestamp:0,isProcessing:!1};function i(c){g.has(c)&&(d.add(c),a()),(b=c)(h)}let j={schedule:(a,f=!1,h=!1)=>{let i=h&&e,j=i?c:d;return f&&g.add(a),i&&a!==b&&j.delete(a),j.add(a),a},cancel:a=>{d.delete(a),g.delete(a)},process:a=>{if(h=a,e){f=!0;return}e=!0;let g=c;c=d,d=g,c.forEach(i),c.clear(),b=void 0,e=!1,f&&(f=!1,j.process(a))}};return j}(f),a),{}),{setup:h,read:i,resolveKeyframes:j,preUpdate:k,update:l,preRender:m,render:n,postRender:o}=g,p=()=>{let f=aG.useManualTiming,g=f?c.timestamp:performance.now();d=!1,f||(c.delta=e?1e3/60:Math.max(Math.min(g-c.timestamp,40),1)),c.timestamp=g,c.isProcessing=!0,h.process(c),i.process(c),j.process(c),k.process(c),l.process(c),m.process(c),n.process(c),o.process(c),c.isProcessing=!1,d&&b&&(e=!1,a(p))};return{schedule:aH.reduce((b,f)=>{let h=g[f];return b[f]=(b,f=!1,g=!1)=>(!d&&(d=!0,e=!0,c.isProcessing||a(p)),h.schedule(b,f,g)),b},{}),cancel:a=>{for(let b=0;b<aH.length;b++)g[aH[b]].cancel(a)},state:c,steps:g}}let aJ={delta:0,timestamp:0,isProcessing:!1},{schedule:aK,cancel:aL,steps:aM}=aI("u">typeof requestAnimationFrame?requestAnimationFrame:aF,!0,aJ),aN=new Set,aO=!1,aP=!1,aQ=!1;function aR(){if(aP){let a=[],b=new Set,c=new Set;aN.forEach(d=>{d.needsMeasurement&&(a.push(d),b.add(d.element),aA.has(d.name)&&c.add(d.element))});let d=new Map;c.forEach(a=>{let b,c=(b=[],az.forEach(c=>{let d=a.getValue(c);if(void 0!==d){let a=d.get(),e=+!!c.startsWith("scale");if(a===e)return;b.push([c,a]),d.set(e)}}),b);c.length&&(d.set(a,c),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=d.get(a);b&&b.forEach(([b,c])=>{a.getValue(b)?.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}aP=!1,aO=!1,aN.forEach(a=>a.complete(aQ)),aN.clear()}function aS(){aN.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(aP=!0)})}class aT{constructor(a,b,c,d,e,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(aN.add(this),aO||(aO=!0,aK.read(aS),aK.resolveKeyframes(aR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;if(null===a[0]){let e=d?.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=function(a,b,c){if("string"==typeof a){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)||/^0[^.\s]+$/u.test(a))return parseFloat(a);if(!N.test(a)&&N.test(c))return an(b,c)}return a??void 0}(c.readValue(b,f),b,f);void 0!==d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}for(let b=1;b<a.length;b++)a[b]??(a[b]=a[b-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),aN.delete(this)}cancel(){"scheduled"===this.state&&(aN.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let aU=new Set(["auto","none","0"]);class aV extends aT{constructor(){super(...arguments),this.isAsync=!0}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:a,element:b,motionValue:c}=this,d=a[0]??c?.get();if(!b?.current||void 0===d)return!1;for(let b=0;b<a.length;b++)if(aj(b?a[b]:d))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b?.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&ah(d=d.trim())){let e=al(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ab.has(c)||2!==a.length)return;let[d,e]=a;if("number"==typeof d&&"number"==typeof e)return;let f=ad(d),g=ad(e);if(aj(d)!==aj(e)&&aE[c]){this.needsMeasurement=!0;return}if(f!==g)if(ax(f)&&ax(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else aE[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++)(null===a[b]||function(a){if("number"==typeof a)return 0===a;if(null===a)return!0;return"none"===a||"0"===a||/^0[^.\s]+$/u.test(a)}(a[b]))&&c.push(b);c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!aU.has(b)&&function(a){let b=a.toString();return G.test(b)||H.test(b)}(b)&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]!==d&&(a[e]=an(c,d))}(a,c,b)}measure(){let{element:a,name:b}=this;return aE[b](window.getComputedStyle(a.current),()=>a.measureViewportBox())}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a?.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&this.motionValue?.jump(d,!1)}measureEndState(){let{element:a,unresolvedKeyframes:b}=this;if(!a?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let c=b.length-1,d=b[c];b[c]=this.measure(),null!==d&&void 0===this.finalKeyframe&&(this.finalKeyframe=d),this.resolveNoneKeyframes()}}let aW=a=>1e3*a;function aX(a,b){-1===a.indexOf(b)&&a.push(b)}function aY(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}class aZ{constructor(){this.subscriptions=[]}add(a){return aX(this.subscriptions,a),()=>this.remove(a)}remove(a){aY(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function a$(a,b,c){b.startsWith("--")?a.style.setProperty(b,c):a.style[b]=c}let a_={};function a0(a,b){let c,d=()=>(void 0===c&&(c=a()),c);return()=>a_[b]??d()}let a1=a0(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),a2=a=>null!==a;function a3(a,{repeat:b,repeatType:c="loop"},d,e=1){let f=a.filter(a2),g=e<0||b&&"loop"!==c&&b%2==1?0:f.length-1;return g&&void 0!==d?d:f[g]}class a4{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(a=>{this._resolve=a})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(a,b){return this.finished.then(a,b)}}function a5(){b=void 0}let a6={now:()=>(void 0===b&&a6.set(aJ.isProcessing||aG.useManualTiming?aJ.timestamp:performance.now()),b),set:a=>{b=a,queueMicrotask(a5)}};function a7(a,b){return{kind:a,animation:b,timestamp:a6.now(),frameTimestamp:aJ.timestamp,frameIsProcessing:aJ.isProcessing}}function a8(a,b,c){let d=globalThis.__MOTION_INSPECT__;if(d)try{d({...a7("animation-start",a),options:c?{...b,...c}:b})}catch{}}let a9=a=>Array.isArray(a)&&"number"==typeof a[0],ba=a0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),bb=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=Math.round(1e4*a(b/(e-1)))/1e4+", ";return`linear(${d.substring(0,d.length-2)})`},bc=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,bd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bc([0,.65,.55,1]),circOut:bc([.55,0,1,.45]),backIn:bc([.31,.01,.66,-.59]),backOut:bc([.33,1.53,.69,.99])};function be(a){return"function"==typeof a&&"applyToOptions"in a}class bf extends a4{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;let{element:b,name:c,keyframes:d,pseudoElement:e,allowFlatten:f=!1,finalKeyframe:g,onComplete:h}=a;this.isPseudoElement=!!e,this.allowFlatten=f,this.options=a;let i=function({type:a,...b}){return be(a)&&ba()?a.applyToOptions(b):(b.duration??(b.duration=300),b.ease??(b.ease="easeOut"),b)}(a);this.animation=function(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeOut",times:i}={},j){let k={[b]:c};i&&(k.offset=i);let l=function a(b,c){if(b)return"function"==typeof b?ba()?bb(b,c):"ease-out":a9(b)?bc(b):Array.isArray(b)?b.map(b=>a(b,c)||bd.easeOut):bd[b]}(h,e);Array.isArray(l)&&(k.easing=l);let m={delay:d,duration:e,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"};return j&&(m.pseudoElement=j),a.animate(k,m)}(b,c,d,i,e),!1===i.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!e){let a=a3(d,this.options,g,this.speed);this.updateMotionValue?.(a),a$(b,c,a),this.animation.cancel()}h?.(),this.notifyFinished()},a8(this,a,i)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(a){}}stop(){this.isStopped||(this.isStopped=!0,"idle"!==this.state&&null===this.finishedTime&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,this.cancel())))}commitStyles(){let a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(a){let b=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=aW(a),b&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,onAttach:b,observe:c}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&a1())?(this.animation.timeline=a,b?.(this.animation),aF):c(this)}}let bg=new Set(["opacity","clipPath","filter","transform"]),bh=new WeakMap,{schedule:bi}=aI(queueMicrotask,!1),bj=(a,b)=>b?1e3/b*a:0,bk;class bl{constructor(a,b={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let b=a6.now();if(this.updatedAt!==b&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.dirty(),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=a6.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){var c;return"change"===a?this.onChangeSubscribe(b):((c=this.events)[a]||(c[a]=new aZ)).add(b)}onChangeSubscribe(a){let{events:b}=this;return b.change||this.changeSubscriber?(b.change||(b.change=new aZ,b.change.add(this.changeSubscriber),this.changeSubscriber=void 0),b.change.add(a)):this.changeSubscriber=a,()=>{this.changeSubscriber===a?this.changeSubscriber=void 0:b.change?.remove(a),this.stopIfUnobserved()}}stopIfUnobserved(){aK.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let a in this.changeSubscriber=void 0,this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){b&&(this.updatedAt=a6.now(),this.stop()),this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:a,changeSubscriber:b}=this;b?b(a):this.events.change?.notify(a)}addDependent(a){(this.dependents||(this.dependents=new Set)).add(a)}removeDependent(a){this.dependents?.delete(a)}get(){bk?.push(this);let a=this.animation?.liveValue?.();return void 0===a?this.current:a}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let a=a6.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;let b=Math.min(this.updatedAt-this.prevUpdatedAt,30);return bj(parseFloat(this.current)-parseFloat(this.prevFrameValue),b)}start(a){return this.stop(),new Promise(b=>{let c;this.hasAnimated=!0;let d=!1;c=a(()=>{d=!0,this.events.animationComplete?.notify(),this.animation===c&&(this.animation=void 0),b()}),d||(this.animation=c),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}}function bm(a,b){return new bl(a,b)}let bn=new WeakMap;function bo(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function bp(a){return"string"==typeof a||Array.isArray(a)}let bq=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],br=["initial"].concat(bq);function bs(a){if(bo(a.animate))return!0;for(let b=0;b<br.length;b++)if(bp(a[br[b]]))return!0;return!1}function bt(a){return!!(bs(a)||a.variants)}let bu={current:!1},bv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bw={};class bx{scrapeMotionValuesFromProps(a,b,c){return{}}constructor({parent:a,props:b,presenceContext:c,reducedMotionConfig:d,skipAnimations:e,blockInitialAnimation:f,visualState:g},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=aT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let a=a6.now();this.renderScheduledAt<a&&(this.renderScheduledAt=a,aK.render(this.render,!1,!0))};let{latestValues:i,renderState:j}=g;this.latestValues=i,this.baseTarget={...i},this.initialValues=b.initial?{...i}:{},this.renderState=j,this.parent=a,this.props=b,this.presenceContext=c,this.depth=a?a.depth+1:0,this.reducedMotionConfig=d,this.skipAnimationsConfig=e,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=bs(b),this.isVariantNode=bt(b),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);let{willChange:k,...l}=this.scrapeMotionValuesFromProps(b,{},this);for(let a in l){let b=l[a];void 0!==i[a]&&aa(b)&&b.set(i[a])}}mount(a){if(this.hasBeenMounted&&!this.presenceContext?.keepValuesOnRemount)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];if(this.current=a,bn.set(a,this),this.projection?.instance||this.projection?.mount(a),this.isVariantNode&&!this.isControllingVariants){let a=this;do a=!1!==a.props.inherit&&a.parent;while(a&&!a.isVariantNode)if(a){let{variantChildren:b}=a;b.add(this),this.removeFromVariantTree=()=>b.delete(this)}}this.values.forEach((a,b)=>this.bindToMotionValue(b,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(bu.current||(bu.current=!0),this.shouldReduceMotion=null),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let a in this.projection?.unmount(),aL(this.notifyUpdate),aL(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this),this.events)this.events[a].clear();for(let a in this.features){let b=this.features[a];b&&(b.unmount(),b.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),(this.enteringChildren||(this.enteringChildren=new Set)).add(a)}removeChild(a){this.children.delete(a),this.enteringChildren?.delete(a)}bindToMotionValue(a,b){let c;if(this.valueSubscriptions.get(a)?.(),b.accelerate&&bg.has(a)&&this.current instanceof HTMLElement){let{factory:c,keyframes:d,times:e,ease:f,duration:g}=b.accelerate,h=new bf({element:this.current,name:a,keyframes:d,times:e,ease:f,duration:aW(g)}),i=c(h);this.valueSubscriptions.set(a,()=>{i(),h.cancel()});return}let d=j.has(a);d&&this.onBindTransform&&this.onBindTransform();let e=b.on("change",b=>{this.latestValues[a]=b,this.props.onUpdate&&aK.preRender(this.notifyUpdate),d&&(this.projection&&(this.projection.isTransformDirty=!0),bh.get(this.current)?.check()),this.scheduleRender()});this.valueSubscriptions.set(a,()=>{e(),c?.()})}sortNodePosition(a){return this.current&&a.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in bw){let b=bw[a];if(!b)continue;let{isEnabled:c,Feature:d}=b;if(!this.features[a]&&d&&c(this.props)&&(this.features[a]=new d(this)),this.features[a]){let b=this.features[a];b.isMounted?b.update():(b.mount(),b.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,b){this.latestValues[a]=b}update(a,b){let{transformTemplate:c,onUpdate:d}=this.props;(a.transformTemplate||c)&&this.scheduleRender(),(a.transformTemplate&&!c||a.onUpdate&&!d)&&bh.get(this.current)?.demote(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=b;for(let b=0;b<bv.length;b++){let c=bv[b];this.propEventSubscriptions[c]?.(),delete this.propEventSubscriptions[c];let d=a["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=function(a,b,c){for(let d in b){let e=b[d],f=c[d];if(aa(e))a.addValue(d,e);else if(aa(f))a.addValue(d,bm(e,{owner:a}));else if(f!==e)if(a.hasValue(d)){let b=a.getValue(d);!0===b.liveStyle?b.jump(e):b.hasAnimated||b.set(e)}else{let b=a.getStaticValue(d);a.addValue(d,bm(void 0!==b?b:e,{owner:a}))}}for(let d in c)void 0===b[d]&&a.removeValue(d);return b}(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(a){return this.props.variants?.[a]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(a,b){let c=this.values.get(a);if(b!==c){c&&this.removeValue(a),this.bindToMotionValue(a,b),this.values.set(a,b);let d=b.get();void 0!==d&&(this.latestValues[a]=d)}}removeValue(a){this.values.delete(a),this.valueSubscriptions.get(a)?.(),this.valueSubscriptions.delete(a),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,b){let c=this.props.values?.[a];return c||void 0===(c=this.values.get(a))&&void 0!==b&&(c=bm(b??this.getDefaultValue?.(a),{owner:this}),this.addValue(a,c)),c}readValue(a,b){let c=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];if(null!=c){let d,e;"string"==typeof c&&(d=c,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(d)||(e=c,/^0[^.\s]+$/u.test(e)))?c=parseFloat(c):"number"!=typeof c&&!N.test(c)&&N.test(b)&&(c=an(a,b)),this.setBaseTarget(a,aa(c)?c.get():c)}return aa(c)?c.get():c}setBaseTarget(a,b){this.baseTarget[a]=b}on(a,b){return(this.events[a]||(this.events[a]=new aZ)).add(b)}notify(a,...b){this.events[a]?.notify(...b)}scheduleRenderMicrotask(){bi.render(this.render)}}class by extends bx{constructor(){super(...arguments),this.KeyframeResolver=aV}sortInstanceNodePosition(a,b){return 2&a.compareDocumentPosition(b)?1:-1}getBaseTargetFromProps(a,b){let c=a.style;return c?c[b]:void 0}removeValueFromRenderState(a,{vars:b,style:c}){delete b[a],delete c[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;aa(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function bz(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}let bA=(a,b)=>b&&"number"==typeof a?b.transform(a):a,bB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bC=i.length,bD={},bE=(a,b,c=bA(b,U[a]))=>(bD[a]||(bD[a]=(bB[a]||a)+"("))+c+")",bF=(a,b)=>("number"==typeof b?b:parseFloat(b))===+!!a.startsWith("scale");function bG(a,b,c){let{style:d,vars:e,transformOrigin:f}=a,g=!1,h=!1;for(let a in b){let c=b[a];if(j.has(a)){g=!0;continue}if(af(a)){e[a]=c;continue}{let b=bA(c,V[a]);a.startsWith("origin")?(h=!0,f[a]=b):d[a]=b}}if(!b.transform&&(g||c?d.transform=function(a,b,c){let d="";for(let e=0;e<bC;e++){let f=i[e],g=a[f];if(void 0===g)continue;let h=c&&(b[f]=bA(g,V[f]));bF(f,g)||(d+=bE(f,g,h||void 0)+" ")}let e=a.pathRotation;return e&&(d+=bE("rotate",e)),d=d.trim(),c?c(b,d):d||"none"}(b,a.transform,c):d.transform&&(d.transform="none")),h){let{originX:a="50%",originY:b="50%",originZ:c=0}=f;d.transformOrigin=`${a} ${b} ${c}`}}let bH={offset:"stroke-dashoffset",array:"stroke-dasharray"},bI={offset:"strokeDashoffset",array:"strokeDasharray"},bJ=["transform","opacity","clipPath","filter","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function bK(a,{attrX:b,attrY:c,attrScale:d,pathLength:e,pathSpacing:f=1,pathOffset:g=0,...h},i,j,k){if(bG(a,h,j),i){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:l,style:m}=a;for(let a of bJ)void 0!==l[a]&&(m[a]=l[a],delete l[a]);(m.transform||l.transformOrigin)&&(m.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),m.transform&&(m.transformBox=k?.transformBox??"fill-box",delete l.transformBox),void 0!==b&&(l.x=b),void 0!==c&&(l.y=c),void 0!==d&&(l.scale=d),void 0!==e&&function(a,b,c=1,d=0,e=!0){a.pathLength=1;let f=e?bH:bI;a[f.offset]=`${-d}`,a[f.array]=`${b} ${c}`}(l,e,f,g,!1)}let bL=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"]),bM=a=>"string"==typeof a&&"svg"===a.toLowerCase();function bN(a,{style:b,vars:c},d,e){let f,g=a.style;for(f in b)g[f]=b[f];for(f in e?.applyProjectionStyles(g,d),c)g.setProperty(f,c[f])}let bO={};function bP(a,{layout:b,layoutId:c}){return j.has(a)||a.startsWith("origin")||(b||void 0!==c)&&(!!bO[a]||"opacity"===a)}function bQ(a,b,c){let d=a.style,e=b?.style,f={};if(!d)return f;for(let b in d)(aa(d[b])||e&&aa(e[b])||bP(b,a)||c?.getValue(b)?.liveStyle!==void 0)&&(f[b]=d[b]);return f}function bR(a,b,c){let d=bQ(a,b,c);for(let c in a)"children"!==c&&(aa(a[c])||aa(b[c]))&&(d[-1!==i.indexOf(c)?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=a[c]);return d}class bS extends by{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(a,b){return j.has(b)?super.getBaseTargetFromProps(a,b)??av(b):a[b]}getDefaultValue(a){return j.has(a)?this.latestValues[a]??av(a):void 0}readValueFromInstance(a,b){if(j.has(b)){let a=X(b);return a&&a.default||0}if(bJ.includes(b)){let c=getComputedStyle(a)[b];if("string"==typeof c&&c)return c.trim()}return b=bL.has(b)?b:bz(b),a.getAttribute(b)}scrapeMotionValuesFromProps(a,b,c){return bR(a,b,c)}build(a,b,c){bK(a,b,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(a,b,c,d){for(let c in bN(a,b,void 0,d),b.attrs)a.setAttribute(bL.has(c)?c:bz(c),b.attrs[c])}mount(a){this.isSVGTag=bM(a.tagName),super.mount(a)}}function bT({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}let bU=(a,b,c)=>a+(b-a)*c;function bV(a){return void 0===a||1===a}function bW({scale:a,scaleX:b,scaleY:c}){return!bV(a)||!bV(b)||!bV(c)}let bX=["rotate","rotateX","rotateY","rotateZ","skewX","skewY"];function bY(a){return bW(a)||b$(a)||bZ(a)}function bZ(a){return a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY}function b$(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function b_(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function b0(a,b=0,c=1,d,e){a.min=b_(a.min,b,c,d,e),a.max=b_(a.max,b,c,d,e)}function b1(a,{x:b,y:c}){b0(a.x,b.translate,b.scale,b.originPoint),b0(a.y,c.translate,c.scale,c.originPoint)}function b2(a,b){a.min+=b,a.max+=b}function b3(a,b,c,d,e=.5){let f=bU(a.min,a.max,e);b0(a,b,c,f,d)}function b4(a,b){return"string"==typeof a?parseFloat(a)/100*(b.max-b.min):a}function b5(a,b,c){let d=c??a;b3(a.x,b4(b.x,d.x),b.scaleX,b.scale,b.originX),b3(a.y,b4(b.y,d.y),b.scaleY,b.scale,b.originY)}function b6(a,b){return bT(function(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}(a.getBoundingClientRect(),b))}class b7 extends by{constructor(){super(...arguments),this.type="html",this.renderInstance=bN}mount(a){super.mount(a)}readValueFromInstance(a,b){if(j.has(b))return this.projection?.isProjecting?av(b):((a,b)=>{let{transform:c="none"}=getComputedStyle(a);return aw(c,b)})(a,b);{let c=window.getComputedStyle(a),d=(af(b)?c.getPropertyValue(b):c[b])||0;return"string"==typeof d?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:b}){return b6(a,b)}build(a,b,c){bG(a,b,c.transformTemplate)}scrapeMotionValuesFromProps(a,b,c){return bQ(a,b,c)}}let b8=["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 b9(a){if("string"!=typeof a||a.includes("-"));else if(b8.indexOf(a)>-1||/[A-Z]/u.test(a))return!0;return!1}let ca={current:void 0},cb=(0,f.createContext)({});var cc=a.i(65802);let cd=(0,f.createContext)({});function ce(a){return Array.isArray(a)?a.join(" "):a}let cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cg(a,b,c){for(let d in b)aa(b[d])||bP(d,c)||(a[d]=b[d])}let ch=()=>({...cf(),attrs:{}}),ci=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function cj(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||ci.has(a)}function ck(a){return aa(a)?a.get():a}function cl(a,b,c,d){let e=b=>{let e;return"function"==typeof b?b(void 0!==c?c:a.custom,...(e=[{},{}],d?.values.forEach((a,b)=>{e[0][b]=a.get(),e[1][b]=a.getVelocity()}),e)):b};return"string"==typeof(b=e(b))&&(b=a.variants&&a.variants[b]),e(b)}let cm=(0,f.createContext)(null);var cn=a.i(74290);let co=a=>(b,c)=>{let d=(0,f.useContext)(cd),e=(0,f.useContext)(cm),g=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:b},c,d,e){return{latestValues:function(a,b,c,d){let e={},f=d(a,{});for(let a in f)e[a]=ck(f[a]);let{initial:g,animate:h}=a,i=bs(a),j=bt(a);b&&j&&!i&&!1!==a.inherit&&(void 0===g&&(g=b.initial),void 0===h&&(h=b.animate));let k=!!c&&!1===c.initial,l=(k=k||!1===g)?h:g;if(l&&"boolean"!=typeof l&&!bo(l)){let b=Array.isArray(l)?l:[l];for(let c=0;c<b.length;c++){let d=cl(a,b[c]);if(d){let{transitionEnd:a,transition:b,...c}=d;for(let a in c){let b=c[a];if(Array.isArray(b)){let a=k?b.length-1:0;b=b[a]}null!==b&&(e[a]=b)}for(let b in a)e[b]=a[b]}}}return e}(c,d,e,a),renderState:b()}})(a,b,d,e);return c?g():(0,cn.f)(g)},cp=co({scrapeMotionValuesFromProps:bQ,createRenderState:cf}),cq=co({scrapeMotionValuesFromProps:bR,createRenderState:ch}),cr={animation:["variants",...bq],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cs=!1,ct=Symbol.for("motionComponentSymbol");function cu(a,{forwardMotionProps:b=!1,type:c}={},d,g){d&&function(a){let b=(!function(){if(cs)return;let a={};for(let b in cr)a[b]={isEnabled:a=>cr[b].some(b=>!!a[b])};bw=a,cs=!0}(),bw);for(let c in a)b[c]={...b[c],...a[c]};bw=b}(d);let h=c?"svg"===c:b9(a),i=h?cq:cp;function j(c,d){var g;let j,k,l,m=function({layoutId:a}){let b=(0,f.useContext)(cb).id;return b&&void 0!==a?b+"-"+a:a}(c);(0,cn.f)(()=>!!ca.current?.sharedNodes.get(m)?.lead&&c.initial)&&(c={...c,initial:!1});let n={...(0,f.useContext)(cc.f),...c,layoutId:m},{isStatic:o,isValidProp:p}=n,q=function(a){let{initial:b,animate:c}=function(a,b){if(bs(a)){let{initial:b,animate:c}=a;return{initial:!1===b||bp(b)?b:void 0,animate:bp(c)?c:void 0}}return!1!==a.inherit?b:{}}(a,(0,f.useContext)(cd));return(0,f.useMemo)(()=>({initial:b,animate:c}),[ce(b),ce(c)])}(c),r=i(c,o);return(0,e.jsxs)(cd.Provider,{value:q,children:[j&&q.visualElement?(0,e.jsx)(j,{visualElement:q.visualElement,...n}):null,function(a,b,c,{latestValues:d},e,g=!1,h,i){let j=(h??b9(a)?function(a,b,c,d){let e=(0,f.useMemo)(()=>{let c=ch();return bK(c,b,bM(d),a.transformTemplate,a.style),{...c.attrs,style:{...c.style}}},[b]);if(a.style){let b={};return cg(b,a.style,a),{...e,style:{...b,...e.style}}}return e}:function(a,b){let c,d,e={},g=(c=a.style||{},cg(d={},c,a),Object.assign(d,function({transformTemplate:a},b){return(0,f.useMemo)(()=>{let c=cf();return bG(c,b,a),Object.assign({},c.vars,c.style)},[b])}(a,b)),d);return a.drag&&!1!==a.dragListener&&(e.draggable=!1,g.userSelect=g.WebkitUserSelect=g.WebkitTouchCallout="none",g.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(e.tabIndex=0),e.style=g,e})(b,d,e,a),k=function(a,b,c,d){let e={};for(let f in a)("values"!==f||"object"!=typeof a.values)&&!aa(a[f])&&((f.startsWith("on")?!cj(f):d?.(f)??!cj(f))||!0===c&&cj(f)||!b&&!cj(f)||a.draggable&&f.startsWith("onDrag"))&&(e[f]=a[f]);return e}(b,"string"==typeof a,g,i),l=a!==f.Fragment?{...k,...j,ref:c}:{},{children:m}=b,n=(0,f.useMemo)(()=>aa(m)?m.get():m,[m]);return(0,f.createElement)(a,{...l,children:n})}(a,c,(g=q.visualElement,k=(0,f.useRef)(d),(0,f.useInsertionEffect)(()=>{k.current=d}),l=(0,f.useRef)(null),(0,f.useCallback)(a=>{a&&r.onMount?.(a),g&&(a?g.mount(a):g.unmount());let b=k.current;if("function"==typeof b)if(a){let c=b(a);"function"==typeof c&&(l.current=c)}else l.current?(l.current(),l.current=null):b(a);else b&&(b.current=a)},[g])),r,o,b,h,p)]})}j.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;let k=(0,f.forwardRef)(j);return k[ct]=a,k}class cv{constructor(a){this.isMounted=!1,this.node=a}update(){}}function cw(a,b,c){return cl(a.getProps(),b,c,a)}let cx=(a,b)=>"exit"===b?a.presenceContext?.custom:void 0;var cy=a.i(62190);function cz(a,b){let c=a?.[b]??a?.default??a;return c!==a?(0,cy.f)(c,a):c}function cA(a,b){let c=a.getValue("willChange");if(aa(c)&&c.add)return c.add(b);if(!c&&aG.WillChange){let c=new aG.WillChange("auto");a.addValue("willChange",c),c.add(b)}}let cB=(...a)=>a.reduce((a,b)=>c=>b(a(c)));function cC(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function cD(a,b){return c=>c>0?b:a}let cE=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},cF=[w,u,E];function cG(a){let b=cF.find(b=>b.test(a));if(!b)return!1;let c=b.parse(a);return b===E&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=cC(h,d,a+1/3),f=cC(h,d,a),g=cC(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let cH=(a,b)=>{let c=cG(a),d=cG(b);if(!c||!d)return cD(a,b);let e={...c};return a=>(e.red=cE(c.red,d.red,a),e.green=cE(c.green,d.green,a),e.blue=cE(c.blue,d.blue,a),e.alpha=bU(c.alpha,d.alpha,a),u.transform(e))},cI=new Set(["none","hidden"]);function cJ(a,b){return c=>bU(a,b,c)}function cK(a){return"number"==typeof a?cJ:"string"==typeof a?ah(a)?cD:F.test(a)?cH:cN:Array.isArray(a)?cL:"object"==typeof a?F.test(a)?cH:cM:cD}function cL(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>cK(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function cM(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=cK(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let cN=(a,b)=>{let c=L(a),d=L(b);if(!(c.indexes.var.length===d.indexes.var.length&&c.indexes.color.length===d.indexes.color.length&&c.indexes.number.length>=d.indexes.number.length))return cD(a,b);if(cI.has(a)&&!d.values.length||cI.has(b)&&!c.values.length)return cI.has(a)?c=>c<=0?a:b:c=>c>=1?b:a;return cB(cL(function(a,b){let c=[],d={color:0,var:0,number:0};for(let e=0;e<b.values.length;e++){let f=b.types[e],g=a.indexes[f][d[f]],h=a.values[g]??0;c[e]=h,d[f]++}return c}(c,d),d.values),M(d))},cO=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function cP(a,b,c){if("number"==typeof a&&"number"==typeof b&&"number"==typeof c)return bU(a,b,c);if("string"==typeof a&&"string"==typeof b){let c=function(a,b){let c=cO.exec(a);if(!c)return;let d=cO.exec(b);if(!d||c[2]!==d[2])return;let e=c[2],f=parseFloat(c[1]),g=parseFloat(d[1]);return a=>o(bU(f,g,a))+e}(a,b);if(c)return c}return cK(a)(a,b)}let cQ=a=>{let b=({timestamp:b})=>a(b);return{start:(a=!0)=>aK.update(b,a),stop:()=>aL(b),now:()=>aJ.isProcessing?aJ.timestamp:a6.now()}};function cR(a,b=50,c=2e4,d){let e=0,f=a.next(e);for(d?.push(f.value);!f.done&&e<c;)e+=b,f=a.next(e),d?.push(f.value);return e>=c?1/0:e}let cS=a=>a<0?1/Math.max(1+a,.05):Math.max(1-a,.05);function cT(a,b){if(!(a>1))return 1;let c=Math.sqrt(a*a-1),d=a-c,e=a+c,f=2*c*Math.exp(-b)*(1+b);return cV(a=>e*Math.exp(-d*a)-d*Math.exp(-e*a)-f,a=>Math.exp(-e*a)-Math.exp(-d*a),b)/b}function cU(a,b){return a*Math.sqrt(1-b*b)}function cV(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}let cW=(a,b)=>(b?a>=0:a>0)&&a<1/0;function cX(a,b){if(cW(a,b))return a}function cY(a=.3,b=.3){let c,d,e,f="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,g=f.keyframes[0],h=f.keyframes[f.keyframes.length-1],i={done:!1,value:g},{stiffness:j,damping:l,mass:m,duration:n,isResolvedFromDuration:o,isTimeDefined:p}=function(a){let b=cX(a.stiffness),c=cX(a.damping,!0),d=cX(a.mass),e={...a,stiffness:b??100,damping:c??10,mass:d??1,isResolvedFromDuration:!1,isTimeDefined:(b??c??d)===void 0&&(void 0!==a.duration||void 0!==a.bounce)};if(e.isTimeDefined){if(a.visualDuration){let b=cS(a.bounce||0),c=2*Math.PI/(1.2*a.visualDuration)*cT(b,2*Math.PI/1.2);e.stiffness=c*c,e.damping=2*b*Math.sqrt(e.stiffness)}else Object.assign(e,function({duration:a=800,bounce:b=.3}){let c,d,e=cS(b);a=k(.01,10,a/1e3),e<1?(c=b=>{let c=b*e,d=c*a;return .001-c/cU(b,e)*Math.exp(-d)},d=b=>{let d=b*e*a,f=e*e*b*b*a,g=Math.exp(-d),h=cU(b*b,e);return-((-c(b)+.001>0?-1:1)*f)*g/h}):(c=b=>-.001+Math.exp(-b*a)*(b*a+1),d=b=>-(a*a*b*Math.exp(-b*a)));let f=cV(c,d,5/a),g=f*cT(e,f*a),h=g*g;return{stiffness:h,damping:2*e*Math.sqrt(h),duration:aW(a)}}(e)),e.isResolvedFromDuration=!0;cW(e.stiffness)&&cW(e.damping,!0)||(e.stiffness=100,e.damping=10)}return e}({...f}),q=a=>p?0:-(a/1e3),r=l/(2*Math.sqrt(j*m)),s=Math.sqrt(j/m)/1e3,t=r*s,u={target:h,delta:h-g,velocity:q(f.velocity||0)||0,restSpeed:0,restDelta:0},v=()=>{let a=5>Math.abs(u.delta);u.restSpeed=f.restSpeed||(a?.01:2),u.restDelta=f.restDelta||(a?.005:.5)};if(v(),r<1){let a=cU(s,r),b={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};e=()=>{b.A=(u.velocity+t*u.delta)/a,b.sinC=t*b.A+u.delta*a,b.cosC=t*u.delta-b.A*a};let f=c=>{c!==b.t&&(b.t=c,b.env=Math.exp(-t*c),b.sin=Math.sin(a*c),b.cos=Math.cos(a*c))};c=a=>(f(a),u.target-b.env*(b.A*b.sin+u.delta*b.cos)),d=a=>(f(a),b.env*(b.sinC*b.sin+b.cosC*b.cos))}else if(1===r){c=a=>u.target-Math.exp(-s*a)*(u.delta+(u.velocity+s*u.delta)*a);let a={C:0};e=()=>{a.C=u.velocity+s*u.delta},d=b=>Math.exp(-s*b)*(s*a.C*b-u.velocity)}else{let a=s*Math.sqrt(r*r-1),b=t-a,f=t+a,g=a<1||p?1/0:300/a,h=(a,b)=>Math.exp(b>g?(t-a)*g-t*b:-a*b),i={S:0,F:0};e=()=>{let b=(u.velocity+t*u.delta)/a;i.S=(u.delta+b)/2,i.F=(u.delta-b)/2},c=a=>u.target-i.S*h(b,a)-i.F*h(f,a),d=a=>b*i.S*h(b,a)+f*i.F*h(f,a)}e();let w=o&&n||null,x={calculatedDuration:w,retarget:(a,b)=>{u.target=a[a.length-1],u.delta=u.target-a[0],u.velocity=q(b),f.restSpeed&&f.restDelta||v(),x.calculatedDuration=w,i.done=!1,e()},velocity:a=>aW(d(a)),next:a=>{let b=c(a);return o?i.done=a>=n:i.done=Math.abs(aW(d(a)))<=u.restSpeed&&Math.abs(u.target-b)<=u.restDelta,i.value=i.done?u.target:b,i},toString:()=>{let a=Math.min(cR(x),2e4),b=bb(b=>x.next(a*b).value,a,30);return a+"ms "+b},toTransition:()=>{}};return x}let cZ=Object.assign(cY,{applyToOptions:a=>{let b=function(a,b=100,c){let{keyframes:d,velocity:e}=a,f=d&&d[d.length-1]-d[0],g=c({...a,velocity:e&&f?e*b/f:e,keyframes:[0,b]}),h=Math.min(cR(g),2e4);return{type:"keyframes",ease:a=>g.next(h*a).value/b,duration:h/1e3}}(a,100,cY);return a.ease=b.ease,a.duration=aW(b.duration),a.type="keyframes",a}});function c$({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=g?g(q):q;r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>{let b=s(a);o.done=Math.abs(b)<=j,o.value=o.done?r:a?r+b:n},u=a=>{let b;if((b=o.value)<h||b>i){var c;l=a,m=cZ({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:-s(a)/d*1e3,damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return u(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,t(a),u(a)),void 0!==l&&a>=l)?m.next(a-l):(b||t(a),o)}}}let c_=(a,b,c)=>a*(3*(1-a)*((1-a)*b+a*c)+a*a);function c0(a,b,c,d){return a===b&&c===d?aF:e=>{let f=0,g=1,h=e;for(let b=0;;b++){h>=f&&h<=g||(h=(f+g)/2);let d=c_(h,a,c)-e;if(d*d<1e-28||40===b)break;d>0?g=h:f=h,h-=1e-7*d/(c_(h+1e-7,a,c)-e-d)}return c_(h,b,d)}}let c1=c0(.42,0,1,1),c2=c0(0,0,.58,1),c3=c0(.42,0,.58,1),c4=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2,c5=a=>b=>1-a(1-b),c6=c0(.33,1.53,.69,.99),c7=c5(c6),c8=c4(c7),c9=a=>a>=1?1:(a*=2)<1?.5*c7(a):.5*(2-Math.pow(2,-10*(a-1))),da=a=>1-Math.sin(Math.acos(a)),db=c5(da),dc=c4(da),dd={linear:aF,easeIn:c1,easeInOut:c3,easeOut:c2,circIn:da,circInOut:dc,circOut:db,backIn:c7,backInOut:c8,backOut:c6,anticipate:c9},de=a=>{if(a9(a)){let[b,c,d,e]=a;return c0(b,c,d,e)}return"string"==typeof a?dd[a]:a},df=(a,b,c)=>{let d=b-a;return d?(c-a)/d:1};function dg(a){let b=[0];return!function(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=df(0,b,d);a.push(bU(c,1,e))}}(b,a.length-1),b}function dh({duration:a=300,keyframes:b,times:c,ease:d="easeInOut",mixer:e}){var f;let g="number"==typeof b[0]?void 0:e,h=Array.isArray(d)&&"number"!=typeof d[0]?d.map(de):de(d)||c3,i={done:!1,value:b[0]};if(!g&&2===b.length&&!Array.isArray(h)&&(!c||2!==c.length||0===c[0]&&1===c[1])){let[c,d]=b,e=c===d?void 0:(aG.mix||cP)(c,d);return{calculatedDuration:a,next:b=>(i.value=e?e(h(a>0?k(0,1,b/a):1)):d,i.done=b>=a,i)}}let j=function(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if(1===f)return()=>b[0];if(2===f&&b[0]===b[1])return()=>b[1];let g=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let h=function(a,b,c){let d=[],e=aG.mix||cP,f=a.length-1;for(let g=0;g<f;g++){let f=c?.(a[g],a[g+1])||e(a[g],a[g+1]);b&&(f=cB(Array.isArray(b)?b[g]||aF:b,f)),d.push(f)}return d}(b,d,e),i=h.length,j=c=>{if(g&&c<a[0])return b[0];let d=0;if(i>1)for(;d<a.length-2&&!(c<a[d+1]);d++);let e=df(a[d],a[d+1],c);return h[d](e)};return c?b=>j(k(a[0],a[f-1],b)):j}((f=c&&c.length===b.length?c:dg(b),f.map(b=>b*a)),b,{ease:Array.isArray(h)?h:b.map(()=>h||c3).splice(0,b.length-1),mixer:g});return{calculatedDuration:a,next:b=>(i.value=j(b),i.done=b>=a,i)}}let di={decay:c$,inertia:c$,tween:dh,keyframes:dh,spring:cZ};function dj(a){"string"==typeof a.type&&(a.type=di[a.type])}let dk=(a,b)=>b-a>40&&!aG.useManualTiming?b:a,dl=a=>a/100,dm=a=>Math.round(1e4*a)/1e4;class dn extends a4{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==a6.now()&&this.tick(a6.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause(),a8(this,this.options)}initAnimation(){let{options:a}=this;dj(a);let{type:b=dh,repeat:c=0,repeatDelay:d=0,repeatType:e,velocity:f=0}=a,{keyframes:g}=a,h=b||dh;this.mixKeyframes=void 0,h!==dh&&"number"!=typeof g[0]&&(this.mixKeyframes=cB(dl,a.mixer?.(g[0],g[1])||cP(g[0],g[1])),g=[0,100]);let i=h(g===a.keyframes?a:{...a,keyframes:g});"mirror"===e&&(this.mirroredGenerator=h({...a,keyframes:[...g].reverse(),velocity:-f})),null===i.calculatedDuration&&(i.calculatedDuration=cR(i));let{calculatedDuration:j}=i;this.calculatedDuration=j,this.resolvedDuration=j+d,this.totalDuration=this.resolvedDuration*(c+1)-d,this.generator=i}updateTime(a){this.currentTime=this.holdTime??Math.round(a-this.startTime)*this.playbackSpeed}tick(a,b=!1){let{generator:c,totalDuration:d,calculatedDuration:e}=this;if(null===this.startTime)return c.next(0);let{delay:f=0,keyframes:g,type:h,onUpdate:i,finalKeyframe:j}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=dk(this.startTime,a)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-d/this.speed,this.startTime)),b?this.currentTime=a:this.updateTime(a);let k=this.currentTime-f*(this.playbackSpeed>=0?1:-1),l=this.playbackSpeed>=0?k<0:k>d;this.currentTime=Math.max(k,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=d);let m=this.generate(this.currentTime,l),{done:n}=m;l||(n=this.playbackSpeed>=0?e<1/0?this.currentTime>=d:n:this.currentTime<=0);let o=null===this.holdTime&&("finished"===this.state||"running"===this.state&&n);return o&&h!==c$&&(m.value=a3(g,this.options,j,this.speed)),i&&i(m.value),o&&this.finish(),m}at(a){return this.holdTime??dm((a-this.startTime)*this.playbackSpeed)}sampleAt(a,b){let{options:c,totalDuration:d}=this,e=this.at(a)-(c.delay||0);return e>=d&&c.type!==c$?a3(c.keyframes,c,b?void 0:c.finalKeyframe):this.generate(Math.max(e,0),e<0).value}generate(a,b){let c,{generator:d,totalDuration:e,mixKeyframes:f,mirroredGenerator:g,resolvedDuration:h}=this,{keyframes:i,repeat:j,repeatType:l,repeatDelay:m}=this.options,n=a,o=d;if(j){let b=Math.min(a,e)/h,c=Math.floor(b),d=b%1;!d&&b>=1&&(d=1),1===d&&c--,(c=Math.min(c,j+1))%2&&("reverse"===l?(d=1-d,m&&(d-=m/h)):"mirror"===l&&(o=g)),n=k(0,1,d)*h}return b?(this.delayState.value=i[0],c=this.delayState):c=o.next(n),f&&!b&&(c.value=f(c.value)),c}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){return this.duration+(this.options.delay??0)/1e3}get time(){return this.currentTime/1e3}set time(a){a=aW(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){return function(a,b,c=0){var d,e;let f;return b<=0?c:a.velocity?a.velocity(b):(d=b=>a.next(b).value,e=a.next(b).value,bj(e-d(f=Math.max(b-5,0)),b-f))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(a){let b=this.playbackSpeed!==a;b&&this.driver&&this.updateTime(a6.now()),this.playbackSpeed=a,b&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:a=cQ,startTime:b}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),this.options.onPlay?.();let c=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=c):null!==this.holdTime?this.startTime=c-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=b??(this.pendingStartTime=c)),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a6.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}let dp={anticipate:c9,backInOut:c8,circInOut:dc};class dq extends bf{constructor(a){"string"==typeof a.ease&&a.ease in dp&&(a.ease=dp[a.ease]),dj(a),super(a),void 0!==a.startTime&&!1!==a.autoplay&&(this.startTime=a.startTime),this.options=a}elapsed(){return"running"===this.state?(a6.now()-this.startTime)*this.speed:1e3*this.time}sample(a){if(!this.sampler){let{motionValue:a,onUpdate:b,onComplete:c,onPlay:d,onStop:e,element:f,...g}=this.options;this.sampler=new dn({...g,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,a)).value}liveValue(){let{state:a}=this;if("running"===a||"paused"===a)return this.sample(this.elapsed())}updateMotionValue(a){let{motionValue:b,element:c,name:d}=this.options;if(!b)return;if(void 0!==a)return void b.set(a);let{speed:e}=this,f=this.elapsed(),g="running"===this.state&&e?k(0,10,f):0,h=this.sample(f);c&&d&&a$(c,d,h),b.setWithVelocity(this.sample(f-g*Math.sign(e)),h,g/Math.abs(e||1))}}let dr=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(N.test(a)||"0"===a)&&!a.startsWith("url("));function ds(a){a.duration=0,a.type="keyframes"}let dt=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,du=({mixer:a,keyframes:b})=>a&&"number"!=typeof b[0]&&b.some((c,d)=>d&&a(b[d-1],c)),dv=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),dw=()=>!aG.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate"),dx=(a,b)=>.001>=Math.abs(a-b),dy=(a,b)=>a-b,dz=(a,b,c)=>dg(Array(c+1)).map(c=>bU(a,b,c)),dA=({state:a})=>"idle"===a||"finished"===a,dB=(a,b)=>a.latestValues?a.latestValues[b]:a.getValue(b)?.get();class dC extends dn{constructor(a){let b,c=a.motionValue.owner.current,{driver:d=cQ}=a,e=function(a){let b=a.motionValue.owner,{onUpdate:c,transformTemplate:d}=b.getProps();return!a.isHandoff&&!c&&!a.hasOnUpdate&&!d&&"inertia"!==a.type&&"none"===(dB(b,"transform")||"none")&&!dB(b,"pathRotation")&&!b.projection?.isProjecting()&&!du(a)}(a);a.driver=a=>{let e=d(a);return{js:e,now:e.now,start:(a=!0)=>{let b=bh.get(c);!b||b.isJS?e.start(a):b.schedule(!1,!a)},stop:()=>{e.stop();let a=bh.get(c);a&&!a.isFinishing&&a.release(b)}}},super(a),b=this,this.canAccelerate=e;let{stop:f}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),f()}}get group(){let a;return a=this.options.motionValue.owner.current,bh.get(a)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:a,speed:b,totalDuration:c}=this,{delay:d=0,repeatType:e}=this.options;return null!==this.holdTime?[1/0,0]:1/0===c?[a+d/b,this.resolvedDuration*("loop"===e?1:2)/b||1]:[a+(d+c)/b,0]}isAccelerated(){let{group:a,state:b}=this;return a?.tracks.has(this)&&!a.isJS&&this.canAccelerate&&("running"===b||"paused"===b)}liveValue(){return this.isAccelerated()?this.sampleAt(a6.now()):void 0}tween(){let{keyframes:a,type:b,ease:c,times:d,repeat:e,delay:f=0}=this.options,g=a9(c)?bc(c):/^(linear|ease(In|Out|InOut))$/.test(c)&&bd[c];if(g&&!e&&!d&&2===a.length&&b===dh&&null===this.holdTime){let a=this.startTime+f/this.speed;return[a,a+this.resolvedDuration/this.speed,g]}}boundaries(a,b){let{startTime:c,speed:d,resolvedDuration:e,options:f}=this,{delay:g=0,repeat:h=0,repeatDelay:i=0,repeatType:j,times:k,keyframes:l,type:m}=f,n=(m||dh)===dh?k||dg(l):[0,1],o=c+g/d,p=[];if(null!==this.holdTime||!(e>0))return p;for(let c=Math.max(0,Math.floor((a-o)*d/e));c<=h;c++){let f=o+c*e/d;if(f>b)break;for(let g of n){let h=f+(c%2&&j&&"loop"!==j?1-g:g)*(e-i)/d;h>a&&h<b&&p.push(h)}}return p}numberAt(a){return parseFloat(this.sampleAt(a,!0))}sync(){let a=a6.now();this.options.motionValue.setWithVelocity(this.sampleAt(a-10,!0),this.sampleAt(a,!0),10)}play(){var a;let b,c,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;this.isStopped||((this.group||(b=(a=this.options.motionValue.owner).current,c=new Set,d=new Map,e={},f=[],g=new Map,h=[],j=!1,k=!1,l=!1,m=!1,n=-1/0,o=a=>{for(let b of c)if(b.name===a)return!0},p=(b,c)=>{let g={};for(let h of void 0===b?i:f){let f=d.get(h),i=void 0===b?dB(a,h):f?f.sampleAt(c>b&&!f.timing()[1]?c:b):e[h];void 0!==i&&(g[h]=i)}return g},q=(a,b)=>{let c="";for(let d in a){let e=a[d];b&&bF(d,e)||(c+=bE(d,e)+" ")}return(b?c.trim():c)||"none"},r=(a=p())=>{b.style.transform=q(a,!0)},s=(a=!0)=>{a&&r(),h.forEach(({animation:a})=>a.cancel()),h=[]},t=(a,c)=>new Animation(new KeyframeEffect(b,a,c)),u=(a,b,c=1/0)=>{let d={animation:a,offset:b,end:c};a.startTime=a6.now()+b,c<1/0&&(a.onfinish=()=>{d.isDone=!0,h.some(a=>1/0===a.end)&&(a.cancel(),h=h.filter(a=>a!==d)),z.schedule(!1)}),a.oncancel=()=>h.includes(d)&&z.demote(),h.push(d)},v=(a,b,c)=>{let d=(b,c)=>Math.abs(a(c)-a(b)),e=d(b,c);for(;c-b>.01;){let a=(b+c)/2;d(b,a)>d(a,c)?c=a:b=a}return d(b,c)>e/2?[b,c]:[]},w=(a,b,c,d,e={fill:"both"},f)=>{let g=a.flatMap(a=>a.boundaries(b,c)),h=d||((a,b,c,d)=>{let e,f,g=Math.min(200,Math.max(2,Math.ceil((c-b)/10)));if(4*d.length>g)return;let h=dz(b,c,g).concat(d).sort(dy);for(let c of a){let a=c.numberAt(b),d=h.map(b=>c.numberAt(b)-a),g=d[d.length-1],i=d.some(a=>.001*Math.abs(a)>Math.abs(g))?0:g,j=d.map(a=>i?a/i:a);if(i&&!e)e=j,f=b=>(c.numberAt(b)-a)/i;else if(j.some((a,b)=>!dx(a,i&&e[b])))return}if(!e||e.every((a,d)=>dx(a,df(b,c,h[d]))))return"linear";let i=[],j=(a,d=f(a))=>i.push(dm(d)+" "+dm(100*df(b,c,a))+"%");return e.forEach((a,b)=>{b&&Math.abs(a-e[b-1])>.2&&v(f,h[b-1],h[b]).forEach(a=>j(a)),j(h[b],a)}),"linear("+i+")"})(a,b,c,g),i=h?[b,c]:((a,b,c,d)=>{let e=[b],f=(b,c,d)=>{if(c-b<1||a.every(a=>!(Math.abs(a.numberAt((b+c)/2)-(a.numberAt(b)+a.numberAt(c))/2)>(a.name.startsWith("scale")?.001:.1))))e.push(c);else if(d<4)f(b,(b+c)/2,d+1),f((b+c)/2,c,d+1);else{for(let d of a)e.push(...v(a=>d.numberAt(a),b,c));e.push(c)}},g=dz(b,c,Math.ceil((c-b)/100));for(let a of d)g.push(a,Math.min(a+.01,c));let h=b;for(let a of g.sort(dy))a>h&&f(h,a,0),h=a;return e.sort(dy)})(a,b,c,g),j=i.map(a=>q(p(a,f))),k={transform:j};return h||(k.offset=i.map(a=>df(b,c,a))),j.every(a=>a===j[0])&&(r(p(b,f)),k=null),t(k,{...e,duration:c-b,easing:h||"linear"})},x=()=>!c.size&&(l=!0,bh.get(b)===z&&bh.delete(b),z.isJS||s(),!0),y=()=>{let b=a6.now();if(z.isJS||(z.isFinishing=!0,c.forEach(c=>{let[d,f]=c.timing();"running"===c.state&&c.speed>0&&!f&&d<=b+1&&(c.complete(),e[c.name]=dB(a,c.name),g.has(c)||(j=!0))}),z.isFinishing=!1),k=!1,l||(c.forEach(a=>dA(a)&&c.delete(a)),x()))return;for(let a of c)if(!a.canAccelerate)return z.demote(!0);z.isJS&&(z.isJS=!1,j=!0,c.forEach(a=>a.js?.stop()));let o=j,p=m;if(j=m=!1,o||!(a=>{let b,d=0;for(let e of c){let c=g.get(e);if(!c)return!1;let[f,h,i]=c,j=e.at(a),k=1/0===e.timing()[0];if(i){if(k&&j===f)continue;return!1}let l=(j-f)/h,m=k?0:e.speed/h;if(void 0===b)b=l,d=m;else if(Math.abs(l-b)>1||m!==d)return!1}if(void 0===b)return!0;if(!h.length)return!1;for(let{offset:a,end:c,isDone:d}of h){let e=b-a;if(c<1/0&&(d?e<c-1:e<0||e>=c))return!1}for(let{animation:c,offset:e,isDone:f}of h){if(f)continue;let g=b-e;d&&c.updatePlaybackRate&&"running"===c.playState&&20>Math.abs(Number(c.currentTime)-g)?c.playbackRate!==d&&c.updatePlaybackRate(d):d?(c.playbackRate=d,c.startTime=a-g/d):(c.startTime=null,c.currentTime=g)}return!0})(b)){if(p){if(b-n<100)return z.demote();n=b}if(!(b=>{let j=b,k=0,l=0,m=[],n=[],o=new Set;for(let a of(d.clear(),g=new Map,c)){d.set(a.name,a);let[c,e]=a.timing(),f=1/0===c;if(g.set(a,[a.at(b),a.speed,f]),f){a.sync();continue}if(a.speed<0)return;if(e){if(k){let a=(c-l)/e;if(Math.abs(e-k)>1||Math.abs(a-Math.round(a))*k>1)return}else k=e,l=c;n.push(a)}else o.add(c);m.push(a),j=Math.max(j,c)}e={},f=i.filter(b=>{if(d.has(b))return!0;let c=e[b]=dB(a,b);return void 0!==c&&!bF(b,c)}),s(!1);let p=!k&&(a=>{let b;for(let c of a){let a=c.tween();if(!a||b?.some((b,c)=>c<2?Math.abs(a[c]-b)>1:a[c]!==b))return;b=a}return b})(m);try{if(p&&p[1]>b){let[a,c,d]=p;u(w(m,a,c,d),a-b,c-a)}else j>b&&(u(w(m,b,j),0,j-b),o.forEach(a=>a<j-1&&u(t(null,{duration:a-b}),0,a-b)));if(k){let a=l+Math.floor((j-l)/k)*k;u(w(n,a,a+k,void 0,{iterations:1/0,iterationStart:(j-a)/k,fill:"forwards"},j),j-b)}}catch{return}return h.length||s(),!0})(b))return z.demote()}},z={tracks:c,isJS:!1,isFinishing:!1,schedule(a,b){!l&&(j||(j=a),m||(m=!!b),k||(k=!0,aJ.isProcessing?aK.render(y,!1,!0):queueMicrotask(y)))},release(a){dA(a)&&c.delete(a),x()||z.schedule(!0)},check(){if(!z.isJS){for(let b in e)if(dB(a,b)!==e[b]&&!o(b))return z.schedule(!0,!0)}},demote(a){if(!z.isJS&&!l)return c.forEach(b=>{b.isAccelerated()&&b.sync(),a||(b.canAccelerate=!1)}),z.isJS=!0,g=new Map,s(),c.forEach(a=>"running"===a.state&&a.js?.start()),!0}},bh.set(b,z),z)).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:a}=this;a&&!a.isJS&&this.canAccelerate&&this.tick(a6.now())}get time(){return this.isAccelerated()?k(0,this.totalDuration,this.at(a6.now())-(this.options.delay||0))/1e3:super.time}set time(a){super.time=a,this.isAccelerated()&&this.sync()}attachTimeline(a){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(a)}}class dD extends a4{constructor(a){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=a6.now();let{keyframes:b,name:c,motionValue:d,element:e}=a;a.autoplay??(a.autoplay=!0),a.delay??(a.delay=0),a.type??(a.type="keyframes"),a.repeat??(a.repeat=0),a.repeatDelay??(a.repeatDelay=0),a.repeatType??(a.repeatType="loop");let f=e?.KeyframeResolver||aT;this.keyframeResolver=new f(b,(b,c,d)=>this.onKeyframesResolved(b,c,a,!d),c,d,e),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,b,c,d){let e;this.keyframeResolver=void 0;let{name:f,type:g,velocity:h,delay:j,isHandoff:k,onUpdate:l}=c;this.resolvedAt=a6.now();let m=function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=dr(e,b),h=dr(f,b);return!!g&&!!h&&(function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||be(c))&&d)}(a,f,g,h);m||((aG.instantAnimations||!j)&&l?.(a3(a,c,b)),a[0]=a[a.length-1],ds(c),c.repeat=0);let{onComplete:n}=c;c.finalKeyframe=b,c.keyframes=a,c.onComplete=()=>{n?.(),this.notifyFinished()};let o=m&&!k&&function(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g,keyframes:h}=a;if(!c||!(bg.has(c)||dv.has(c)))return!1;let i=b?.owner?.current;if(!(i instanceof HTMLElement)&&!(i instanceof SVGElement))return!1;let{onUpdate:j,transformTemplate:k}=b.owner.getProps();return dw()&&(bg.has(c)||dv.has(c)&&function(a){for(let b=0;b<a.length;b++)if("string"==typeof a[b]&&dt.test(a[b]))return!0;return!1}(h))&&("transform"!==c||!k)&&!j&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g&&!du(a)}(c),p=!o&&(({name:a,motionValue:b})=>a&&i.includes(a)&&b?.owner?.current instanceof HTMLElement&&dw()&&ba())(c);if(d&&(o||p||this.resolvedAt!==this.createdAt)&&(c.startTime??(c.startTime=dk(this.createdAt,this.resolvedAt))),o){c.element=c.motionValue?.owner?.current;try{e=new dq(c)}catch{e=new dn(c)}}else e=p?new dC(c):new dn(c);this.pendingTimeline&&(this.stopTimeline=e.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=e}get finished(){return this._animation?this._animation.finished:super.finished}then(a,b){return this.finished.finally(a).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),aQ=!0,aS(),aR(),aQ=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}}let dE={type:"spring",stiffness:500,damping:25,restSpeed:10},dF={type:"keyframes",duration:.8},dG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dH=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","out","mixer"]),dI=(a,b,c,d={},e,f)=>g=>{let h=cz(d,a)||{},i=h.delay||d.delay||0,{elapsed:k=0}=d;k-=aW(i);let l={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...h,delay:-k,onUpdate:a=>{b.set(a),h.onUpdate&&h.onUpdate(a)},onComplete:()=>{g(),h.onComplete&&h.onComplete()},name:a,motionValue:b,element:f?void 0:e,hasOnUpdate:!!h.onUpdate};!function(a){for(let b in a)if(!dH.has(b))return!0;return!1}(h)&&Object.assign(l,((a,{keyframes:b})=>b.length>2?dF:j.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:dE:dG)(a,l)),l.duration&&(l.duration=aW(l.duration)),l.repeatDelay&&(l.repeatDelay=aW(l.repeatDelay)),void 0!==l.from&&(l.keyframes[0]=l.from);let m=!1;if(!1!==l.type&&(0!==l.duration||l.repeatDelay)||(ds(l),0===l.delay&&(m=!0)),(aG.instantAnimations||aG.skipAnimations||e?.shouldSkipAnimations||h.skipAnimations)&&(m=!0,ds(l),l.delay=0),l.allowFlatten=!h.type&&!h.ease,m&&!f&&void 0!==b.get()){let a=a3(l.keyframes,h);if(void 0!==a)return void aK.update(()=>{l.onUpdate(a),l.onComplete()})}return h.isSync?new dn(l):new dD(l)};function dJ(a,b,{delay:c=0,transitionOverride:d,type:e}={}){let{transition:f,transitionEnd:g,...h}=b,i=a.getDefaultTransition();f=f?(0,cy.f)(f,i):i;let j=f?.reduceMotion,k=f?.skipAnimations;d&&(f=d);let l=[],m=e&&a.animationState?.getState()[e],n=f?.path;for(let b in n&&(n.animateValues?n.animateValues(b=>a.getValue(b,a.latestValues[b]??0),h,f,c,l):n.animateVisualElement?.(a,h,f,c,l)),h){let d=a.getValue(b,a.latestValues[b]??null),e=h[b];if(void 0===e||m&&function({protectedKeys:a,needsAnimating:b},c){let d=c in a&&!b[c];return b[c]=!1,d}(m,b))continue;let g={delay:c,...cz(m?.out[b]||f||{},b)};k&&(g.skipAnimations=!0);let i=d.get();if(void 0!==i&&!d.isAnimating()&&!Array.isArray(e)&&e===i&&!g.velocity){aK.update(()=>d.set(e));continue}cA(a,b);let n=j??a.shouldReduceMotion;d.start(dI(b,d,e,n&&ab.has(b)?{type:!1}:g,a,!1));let o=d.animation;o&&l.push(o)}if(g){let b=()=>aK.update(()=>{g&&function(a,b){let{transitionEnd:c={},transition:d={},...e}=cw(a,b)||{};for(let b in e={...e,...c}){var f;let c=Array.isArray(f=e[b])?f[f.length-1]||0:f;a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,bm(c))}}(a,g)});l.length?Promise.all(l).then(b):b()}return l}function dK(a,b,c,d=0,e=1){let f=Array.from(a).sort((a,b)=>a.sortNodePosition(b)).indexOf(b),g=a.size,h=(g-1)*d;return"function"==typeof c?c(f,g):1===e?f*d:h-f*d}function dL(a,b,c={}){let d=cw(a,b,cx(a,c.type)),e=c.transitionOverride||(d?.transition??(a.getDefaultTransition()||{})),f=()=>Promise.all(d?dJ(a,d,c):[]),g=(d=0)=>{let{variantChildren:f}=a,{delayChildren:g=0,staggerChildren:h,staggerDirection:i}=e,j=[];return f?.forEach(a=>{a.notify("AnimationStart",b),j.push(dL(a,b,{...c,delay:d+("function"==typeof g?0:g)+dK(f,a,g,h,i)}).then(()=>a.notify("AnimationComplete",b)))}),Promise.all(j)},{when:h}=e;return h?"beforeChildren"===h?f().then(()=>g()):g().then(f):Promise.all([f(),g(c.delay)])}function dM(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}let dN=[...bq].reverse(),dO=a=>a?.out===!0?a:a?.out;function dP(){let a={};for(let b of bq)a[b]={isActive:"animate"===b,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return a}let dQ=0;function dR(a,b,c,d={passive:!0}){return a.addEventListener(b,c,d),()=>a.removeEventListener(b,c,d)}let dS=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function dT(a){return{point:{x:a.pageX,y:a.pageY}}}function dU(a,b,c,d){return dR(a,b,a=>dS(a)&&c(a,dT(a)),d)}function dV(a){return a.max-a.min}function dW(a,b,c,d=.5){a.origin=d,a.originPoint=bU(b.min,b.max,a.origin),a.scale=dV(c)/dV(b),a.translate=bU(c.min,c.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function dX(a,b,c,d){dW(a.x,b.x,c.x,d?.originX),dW(a.y,b.y,c.y,d?.originY)}function dY(a,b,c,d=0){a.min=(d?bU(c.min,c.max,d):c.min)+b.min,a.max=a.min+dV(b)}function dZ(a,b,c,d=0){let e=d?bU(c.min,c.max,d):c.min;a.min=b.min-e,a.max=a.min+dV(b)}function d$(a,b,c,d){dZ(a.x,b.x,c.x,d?.x),dZ(a.y,b.y,c.y,d?.y)}function d_(a){return[a("x"),a("y")]}let d0={};function d1(a){return d0.current?.add(a),a}let d2=a=>d0.current?d0.current.bind(a):a,d3=a=>"object"==typeof a&&null!==a;function d4(a){return d3(a)&&"ownerSVGElement"in a}function d5(a,b,c){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let d=b?b.current:d0.current?.root||document,e=c?.[a]??d.querySelectorAll(a);return e?Array.from(e):[]}return Array.from(a).filter(a=>null!=a)}let d6=new WeakMap,d7=(a,b,c)=>(d,e)=>e&&e[0]?e[0][a+"Size"]:d4(d)&&"getBBox"in d?d.getBBox()[b]:d[c],d8=d7("inline","width","offsetWidth"),d9=d7("block","height","offsetHeight");function ea({target:a,borderBoxSize:b}){d6.get(a)?.forEach(c=>{c(a,{get width(){return d8(a,b)},get height(){return d9(a,b)}})})}function eb(a){a.forEach(ea)}let ec=new Set;function ed(a,b){let e;return d1("function"==typeof a?(ec.add(a),d||(d=()=>{let a={get width(){return window.innerWidth},get height(){return window.innerHeight}};ec.forEach(b=>b(a))},window.addEventListener("resize",d)),()=>{ec.delete(a),ec.size||"function"!=typeof d||(window.removeEventListener("resize",d),d=void 0)}):(!c&&"u">typeof ResizeObserver&&(c=new ResizeObserver(eb)),(e=d5(a)).forEach(a=>{let d=d6.get(a);d||(d=new Set,d6.set(a,d)),d.add(b),c?.observe(a)}),()=>{e.forEach(a=>{let d=d6.get(a);d?.delete(b),d?.size||c?.unobserve(a)})}))}let ee=(a,b)=>Math.abs(a-b),ef=new Set(["auto","scroll"]);class eg{constructor(a,b,{transformPagePoint:c,contextWindow:d=window,dragSnapToOrigin:e=!1,distanceThreshold:f=3,element:g}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var a,b;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ei(this.lastRawMoveEventInfo,this.transformPagePoint));let c=ek(this.lastMoveEventInfo,this.history),d=null!==this.startEvent,e=(a=c.offset,b={x:0,y:0},Math.sqrt(ee(a.x,b.x)**2+ee(a.y,b.y)**2)>=this.distanceThreshold);if(!d&&!e)return;let{point:f}=c;this.history.push({...f,timestamp:a6.now()});let{onStart:g,onMove:h}=this.handlers;d||(g?.(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h?.(this.lastMoveEvent,c)},this.handlePointerMove=(a,b)=>{this.handleScroll(window),this.lastMoveEvent=a,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=ei(b,this.transformPagePoint),this.hasPendingMove=!0,aK.update(this.updatePoint,!0)},this.handlePointerUp=(a,b)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:c,onSessionEnd:d,resumeAnimation:e}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&e?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=ek("pointercancel"===a.type?this.lastMoveEventInfo:ei(b,this.transformPagePoint),this.history);this.startEvent&&c?.(a,f),d?.(a,f)},!dS(a))return;this.dragSnapToOrigin=e,this.handlers=b,this.transformPagePoint=c,this.distanceThreshold=f,this.contextWindow=d||window;let h=ei(dT(a),this.transformPagePoint),{point:i}=h;this.history=[{...i,timestamp:a6.now()}];let{onSessionStart:j}=b;j&&j(a,ek(h,this.history));let k={passive:!0,capture:!0};this.removeListeners=cB(dU(this.contextWindow,"pointermove",this.handlePointerMove,k),dU(this.contextWindow,"pointerup",this.handlePointerUp,k),dU(this.contextWindow,"pointercancel",this.handlePointerUp,k)),g&&this.startScrollTracking(g)}startScrollTracking(a){let b=a.parentElement;for(;b;){let a=getComputedStyle(b);(ef.has(a.overflowX)||ef.has(a.overflowY))&&this.scrollPositions.set(b,eh(b)),b=b.parentElement}this.scrollPositions.set(window,eh(window)),this.removeScrollListeners=cB(dR(window,"scroll",this.onElementScroll,{capture:!0}),dR(window,"scroll",this.onWindowScroll,{}))}handleScroll(a){let b=this.scrollPositions.get(a);if(!b)return;let c=a===window,d=eh(a),e={x:d.x-b.x,y:d.y-b.y};(0!==e.x||0!==e.y)&&(c?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=e.x,this.lastMoveEventInfo.point.y+=e.y):this.history.length>0&&(this.history[0].x-=e.x,this.history[0].y-=e.y),this.scrollPositions.set(a,d),aK.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),aL(this.updatePoint)}}let eh=a=>a===window?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop};function ei(a,b){return b?{point:b(a.point)}:a}function ej(a,b){return{x:a.x-b.x,y:a.y-b.y}}function ek({point:a},b){return{point:a,delta:ej(a,el(b)),offset:ej(a,b[0]),velocity:function(a){if(a.length<2)return{x:0,y:0};let b=a.length-1,c=null,d=el(a);for(;b>=0&&(c=a[b],!(d.timestamp-c.timestamp>aW(.1)));)b--;if(!c)return{x:0,y:0};c===a[0]&&a.length>2&&d.timestamp-c.timestamp>2*aW(.1)&&(c=a[1]);let e=(d.timestamp-c.timestamp)/1e3;if(0===e)return{x:0,y:0};let f={x:(d.x-c.x)/e,y:(d.y-c.y)/e};return 1/0===f.x&&(f.x=0),1/0===f.y&&(f.y=0),f}(b)}}function el(a){return a[a.length-1]}let em=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),en=new Set(["INPUT","SELECT","TEXTAREA"]),eo={x:!1,y:!1};function ep(a,b,c){return{min:void 0!==b?a.min+b:void 0,max:void 0!==c?a.max+c-(a.max-a.min):void 0}}function eq(a,b){let c=b.min-a.min,d=b.max-a.max;return b.max-b.min<a.max-a.min&&([c,d]=[d,c]),{min:c,max:d}}function er(a,b,c){return{min:es(a,b),max:es(a,c)}}function es(a,b){return"number"==typeof a?a:a[b]||0}function et(a){let b="";for(let c of a.path){c.scroll=void 0,c.updateScroll();let{scroll:d}=c;c!==a.root&&d&&(b+=d.offset.x+","+d.offset.y+",")}return b}let eu=new WeakMap;class ev{constructor(a,b=()=>a.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a,this.readProps=b}start(a,{snapToCursor:b=!1,distanceThreshold:c}={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let d=a=>{b&&this.snapToCursor(a),this.stopAnimation()},e=(a,b)=>{let{drag:c,dragConstraints:d,dragPropagation:e,onDragStart:f}=this.getProps();if(c&&!e&&(this.openDragLock?.(),this.openDragLock=function(a){if("x"===a||"y"===a)if(eo[a])return null;else return eo[a]=!0,()=>{eo[a]=!1};return eo.x||eo.y?null:(eo.x=eo.y=!0,()=>{eo.x=eo.y=!1})}(c),!this.openDragLock))return;this.latestPointerEvent=a,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:g}=this.visualElement;g&&(g.isAnimationBlocked=!0,g.target=void 0),d_(a=>{let b=this.getAxisMotionValue(a).get()||0;if(ah(b)&&(b=al(b,this.visualElement.current)||0),A.test(b))b=parseFloat(b);else if(z.test(b)){let c=g?.layout?.layoutBox[a];c&&(b=dV(c)*(parseFloat(b)/100))}this.originPoint[a]=b}),this.point="function"==typeof d&&d(this),f&&aK.update(()=>f(a,b),!1,!0),cA(this.visualElement,"transform"),this.visualElement.animationState?.setActive("whileDrag",!0)},f=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b;let{dragPropagation:c,dragDirectionLock:d,onDirectionLock:e,onDrag:f}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:g}=b;if(d&&null===this.currentDirection){if(this.currentDirection=function(a,b=10){let c=null;return Math.abs(a.y)>b?c="y":Math.abs(a.x)>b&&(c="x"),c}(g),null===this.currentDirection)return;e&&e(this.currentDirection)}this.updateAxis("x",g),this.updateAxis("y",g),this.point&&this.point.move(),this.visualElement.render(),f&&aK.update(()=>f(a,b),!1,!0)},g=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b,this.stop(a,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{let{dragSnapToOrigin:a}=this.getProps();(a||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:i}=this.getProps();this.panSession=new eg(a,{onSessionStart:d,onStart:e,onMove:f,onSessionEnd:g,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:c,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(a,b,c){let d=a||this.latestPointerEvent,e=b||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!e||!d)return;let{velocity:g}=e;this.startAnimation(g,c);let{onDragEnd:h}=this.getProps();h&&aK.postRender(()=>h(d,e))}cancel(){this.isDragging=!1;let{projection:a,animationState:b}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),b?.setActive("whileDrag",!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(a,b){let{drag:c}=this.readProps();if(!b||!ez(a,c,this.currentDirection))return;let d=this.getAxisMotionValue(a),e=this.originPoint[a]+b[a],f=this.constraints&&this.constraints[a];f&&(e=function(a,{min:b,max:c},d){return void 0!==b&&a<b?a=d?bU(b,a,d.min):Math.max(a,b):void 0!==c&&a>c&&(a=d?bU(c,a,d.max):Math.min(a,c)),a}(e,f,this.elastic[a])),this.point?this.point[a]=e:d.set(e)}resolveConstraints(){let{dragConstraints:a,dragElastic:b}=this.getProps(),{projection:c}=this.visualElement,d=c&&(c.layout||c.measure(!1)),e=this.constraints;ew(a)?this.constraints&&this.scroll===et(c)||(this.constraints=this.resolveRefConstraints()):a&&d&&"object"==typeof a?this.constraints=function(a,{top:b,left:c,bottom:d,right:e}){return{x:ep(a.x,c,e),y:ep(a.y,b,d)}}(d.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:er(a,"left","right"),y:er(a,"top","bottom")}}(b),e!==this.constraints&&!ew(a)&&d&&this.constraints&&!this.hasMutatedConstraints&&d_(a=>{var b,c;let e;!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=(b=d.layoutBox[a],c=this.constraints[a],e={},void 0!==c.min&&(e.min=c.min-b.min),void 0!==c.max&&(e.max=c.max-b.min),e))})}resolveRefConstraints(){var a,b;let{dragConstraints:c,onMeasureDragConstraints:d}=this.getProps();if(!ew(c))return!1;let e=ex(c),{projection:f}=this.visualElement;if(!f||!f.layout)return!1;this.scroll=et(f);let g=function(a,b,c){let d=b6(a,c),{scroll:e}=b;return e&&(b2(d.x,e.offset.x),b2(d.y,e.offset.y)),d}(e,f.root,this.visualElement.getTransformPagePoint()),h=(a=f.layout.layoutBox,b=f.removeElementScroll(g),{x:eq(a.x,b.x),y:eq(a.y,b.y)});if(d){let a=d(function({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}(h));this.hasMutatedConstraints=!!a,a&&(h=bT(a))}return h}startAnimation(a,b){let{drag:c,dragMomentum:d,dragElastic:e,dragTransition:f,dragSnapToOrigin:g,onDragTransitionEnd:h}=this.getProps(),i={bounceStiffness:e?200:1e6,bounceDamping:e?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...f},j=e=>d&&!(this.point&&g)&&ez(e,b||c,this.currentDirection)?a[e]:0;if(this.point&&!g)return this.point.release({x:j("x"),y:j("y")},i).then(h);let k=this.constraints||{};return Promise.all(d_(a=>{if(!ez(a,b||c,this.currentDirection))return;let d=k[a]||{};(!0===g||g===a)&&(d={min:0,max:0});let e={type:"inertia",velocity:j(a),...i,...d};return this.startAxisValueAnimation(a,e)})).then(h)}startAxisValueAnimation(a,b){let c=this.getAxisMotionValue(a);return cA(this.visualElement,a),c.start(dI(a,c,0,b,this.visualElement,!1))}stopAnimation(){d_(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){let b=`_drag${a.toUpperCase()}`;return this.readProps()[b]||this.visualElement.getValue(a,this.visualElement.latestValues[a]??0)}snapToCursor({clientX:a,clientY:b}){let{drag:c}=this.getProps(),d={x:a,y:b},e=this.visualElement.getTransformPagePoint()?.(d)||d,f=this.visualElement.measureViewportBox();d_(a=>{if(!ez(a,c,this.currentDirection))return;let b=this.getAxisMotionValue(a),{min:d,max:g}=f[a];b.set((b.get()||0)+e[a]-bU(d,g,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:b}=this.getProps(),{projection:c}=this.visualElement;if(!ew(b)||!c||!this.constraints)return;this.stopAnimation();let d=this.constraints,e={x:0,y:0};d_(a=>{var b,c;let f,g,h,i=this.getAxisMotionValue(a).get();e[a]=(b={min:i,max:i},c=d[a],f=.5,g=dV(b),(h=dV(c))>g?f=df(c.min,c.max-g,b.min):g>h&&(f=df(b.min,b.max-h,c.min)),k(0,1,f))});let{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",c.root?.updateScroll(),c.updateLayout(),this.constraints=!1,this.resolveConstraints(),d_(b=>{let c=this.getAxisMotionValue(b);if(!ez(b,a,null)||!c.get())return;let{min:d,max:f}=this.constraints[b];c.set(bU(d,f,e[b]))}),this.visualElement.render()}addListeners(){let a;if(!this.visualElement.current)return;eu.set(this.visualElement,this);let b=this.visualElement.current,c=dU(b,"pointerdown",a=>{let{drag:c,dragListener:d=!0}=this.getProps(),e=a.target,f=e!==b&&(en.has(e.tagName)||!0===e.isContentEditable);c&&d&&!f&&this.start(a)}),d=()=>{var c,d,e;let f,g,{dragConstraints:h}=this.getProps(),i=ew(h)&&ex(h);i&&(this.constraints=this.resolveRefConstraints(),a||(c=b,d=i,f=ed(c,ey(e=()=>this.scalePositionWithinConstraints())),g=ed(d,ey(e)),a=()=>{f(),g()}))},{projection:e}=this.visualElement,f=e.addEventListener("measure",d);e.layout||(e.root?.updateScroll(),e.updateLayout()),aK.read(d);let g=dR(window,"resize",()=>this.scalePositionWithinConstraints()),h=e.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b})=>{this.isDragging&&b&&(d_(b=>{if(!ez(b,this.getProps().drag,this.currentDirection))return;let c=this.getAxisMotionValue(b);this.originPoint[b]+=a[b].translate,c.set(c.get()+a[b].translate)}),this.visualElement.render())});return()=>{g(),c(),f(),h(),a?.()}}getProps(){let a=this.readProps(),{dragElastic:b=.35,dragMomentum:c=!0}=a;return{...a,dragElastic:b,dragMomentum:c}}}function ew(a){return!!a&&"object"==typeof a&&("current"in a||"nodeType"in a)}let ex=a=>"current"in a?a.current:a;function ey(a){let b=!0;return()=>{if(b){b=!1;return}a()}}function ez(a,b,c){return(!0===b||b===a)&&(null===c||c===a)}let eA=a=>(b,c)=>{a&&aK.update(()=>a(b,c),!1,!0)},eB={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var eC=f;function eD(a=!0){let b=(0,f.useContext)(cm);if(null===b)return[!0,null];let{isPresent:c,onExitComplete:d,register:e}=b,g=(0,f.useId)();(0,f.useEffect)(()=>{if(a)return e(g)},[a]);let h=(0,f.useCallback)(()=>a&&d&&d(g),[g,d,a]);return!c&&d?[!1,h]:[!0]}let eE=(0,f.createContext)({}),eF=!1,eG=({layout:a,layoutDependency:b,layoutAnchor:c})=>({layout:a,layoutDependency:b,layoutAnchor:c,animationType:"string"==typeof a?a:"both"}),eH=(a,b)=>{let{snapshot:c}=a,d=a.getStack();d?.remove(a);let e=d?.lead;if(d?.prevLead===a&&e.resumeFrom===a&&(e.resumeFrom=e.currentAnimation=a.resumingFrom=void 0),a.options.layoutId=b,!b){a.needsShow=!0;return}return a.root.registerSharedNode(b,a),()=>{let{resumeFrom:b}=a;b?.isPresent!==!1&&a.getStack().members.includes(b)&&(b.hide(),a.resumeFrom=void 0,a.snapshot=c)}};class eI extends eC.Component{componentDidMount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c,layoutId:d}=this.props,{projection:e}=a;e&&(b.group?.add(e),d&&c?.register?.(e),eF&&e.root.didUpdate(),e.options.layoutId!==d&&eH(e,d)?.(),e.addEventListener("animationComplete",()=>this.safeToRemove()),e.setOptions({...e.options,...eG(this.props),onExitComplete:()=>this.safeToRemove()})),eB.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:b,layoutId:c,visualElement:d,drag:e,isPresent:f}=this.props,{projection:g}=d;return g&&(g.isPresent=f,this.takeOver=a.layoutId!==c?(g.willUpdate(),eH(g,c)):void 0,g.setOptions({...g.options,...eG(this.props)}),eF=!0,e||a.layoutDependency!==b||void 0===b||a.isPresent!==f?g.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?g.promote():g.relegate()||aK.postRender(()=>{g.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(this.takeOver?.(),a.root.didUpdate(),bi.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c}=this.props,{projection:d}=a;eF=!0,d&&(d.scheduleCheckAfterUnmount(),b.group?.remove(d),c?.deregister?.(d))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}}function eJ(a){let[b,c]=eD(),d=(0,eC.useContext)(cb);return(0,e.jsx)(eI,{...a,layoutGroup:d,switchLayoutGroup:(0,eC.useContext)(eE),isPresent:b,safeToRemove:c})}let eK,eL=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],eM=a=>"number"==typeof a?a:parseFloat(a),eN=eL.length,eO=a=>"number"==typeof a||A.test(a);function eP(a,b){return void 0!==a[b]?a[b]:a.borderRadius}let eQ=eS(0,.5,db),eR=eS(.5,.95,aF);function eS(a,b,c){return d=>d<a?0:d>b?1:c(df(a,b,d))}function eT(a,b){a.min=b.min,a.max=b.max}function eU(a,b){eT(a.x,b.x),eT(a.y,b.y)}function eV(a,b){a.translate=b.translate,a.scale=b.scale,a.originPoint=b.originPoint,a.origin=b.origin}function eW(a,b,c,d,e){return a-=b,a=d+1/c*(a-d),void 0!==e&&(a=d+1/e*(a-d)),a}function eX(a,b,[c,d,e],f,g){!function(a,b=0,c=1,d=.5,e,f=a,g=a){if(z.test(b)&&(b=parseFloat(b),b=bU(g.min,g.max,b/100)-g.min),"number"!=typeof b)return;let h=bU(f.min,f.max,d);a===f&&(h-=b),a.min=eW(a.min,b,c,h,e),a.max=eW(a.max,b,c,h,e)}(a,b[c],b[d],b[e],b.scale,f,g)}let eY=["x","scaleX","originX"],eZ=["y","scaleY","originY"];function e$(a,b,c,d){eX(a.x,b,eY,c?.x,d?.x),eX(a.y,b,eZ,c?.y,d?.y)}let e_=a=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),e0=e_("applewebkit/")&&!e_("chrome/")?Math.round:aF;function e1(a){a.min=e0(a.min),a.max=e0(a.max)}function e2(a){return 0===a.translate&&1===a.scale}function e3(a){return e2(a.x)&&e2(a.y)}function e4(a,b){return a.min===b.min&&a.max===b.max}function e5(a,b){return Math.round(a.min)===Math.round(b.min)&&Math.round(a.max)===Math.round(b.max)}function e6(a,b){return e5(a.x,b.x)&&e5(a.y,b.y)}function e7(a){return dV(a.x)/dV(a.y)}function e8(a,b){return a.translate===b.translate&&a.scale===b.scale&&a.originPoint===b.originPoint}class e9{constructor(){this.members=[]}add(a){aX(this.members,a);for(let b=this.members.length-1;b>=0;b--){let c=this.members[b];if(c===a||c===this.lead||c===this.prevLead)continue;let d=c.instance;d&&!1!==d.isConnected||c.snapshot||(aY(this.members,c),c.unmount())}a.scheduleRender()}remove(a){if(aY(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){for(let b=this.members.indexOf(a)-1;b>=0;b--){let a=this.members[b];if(!1!==a.isPresent&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(a,b){let c=this.lead;if(a!==c&&(this.prevLead=c,this.lead=a,a.show(),c)){c.updateSnapshot(),a.scheduleRender();let{layoutDependency:d}=c.options,{layoutDependency:e}=a.options;(void 0===d||d!==e)&&(a.resumeFrom=c,b&&(c.preserveOpacity=!0),c.snapshot&&(a.snapshot=c.snapshot,a.snapshot.latestValues=c.animationValues||c.latestValues),a.root?.isUpdating&&(a.isLayoutDirty=!0)),!1===a.options.crossfade&&c.hide()}}exitAnimationComplete(){this.members.forEach(a=>{a.options.onExitComplete?.(),a.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function fa(a,b){return b.max===b.min?0:a/(b.max-b.min)*100}let fb={correct:(a,b)=>{if(!b.target)return a;if("string"==typeof a)if(!A.test(a))return a;else a=parseFloat(a);let c=fa(a,b.target.x),d=fa(a,b.target.y);return`${c}% ${d}%`}},fc={borderRadius:Object.assign({},fb,{applyTo:eL.slice()}),borderTopLeftRadius:fb,borderTopRightRadius:fb,borderBottomLeftRadius:fb,borderBottomRightRadius:fb,boxShadow:{correct:(a,{treeScale:b,projectionDelta:c})=>{let d=N.parse(a);if(d.length>5)return a;let e=N.createTransformer(a),f=+("number"!=typeof d[0]),g=c.x.scale*b.x,h=c.y.scale*b.y;d[0+f]/=g,d[1+f]/=h;let i=bU(g,h,.5);return"number"==typeof d[2+f]&&(d[2+f]/=i),"number"==typeof d[3+f]&&(d[3+f]/=i),e(d)}}},fd=(a,b)=>a.depth-b.depth;class fe{constructor(){this.children=[],this.isDirty=!1}add(a){aX(this.children,a),this.isDirty=!0}remove(a){aY(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(fd),this.isDirty=!1,this.children.forEach(a)}}let ff=["z","skew","skewZ"],fg=0;function fh(a,b,c,d){let{latestValues:e}=b;e[a]&&(c[a]=e[a],b.setStaticValue(a,0),d&&(d[a]=0))}let fi=a=>a.instance&&bh.get(a.instance)?.demote()&&a.resetSkewAndRotation();function fj({attachResizeListener:a,defaultParent:b,measureScroll:c,checkIsScrollRoot:d,resetTransform:e}){return Object.assign(bO,{...fc,...bO}),class{static create(a,b,c){var d;let{layoutId:e,layout:f,drag:g,dragConstraints:h,layoutScroll:i,layoutRoot:j,layoutAnchor:k,layoutCrossfade:l}=b,m=a.projection=new this(a.latestValues,b["data-framer-portal-id"]?void 0:function a(b){if(b)return!1!==b.options.allowProjection?b.projection:a(b.parent)}(a.parent));m.setOptions({layoutId:e,layout:f,alwaysMeasureLayout:!!g||h&&(d=h)&&"object"==typeof d&&Object.prototype.hasOwnProperty.call(d,"current"),visualElement:a,animationType:"string"==typeof f?f:"both",initialPromotionConfig:c,crossfade:l,layoutScroll:i,layoutRoot:j,layoutAnchor:k});let n=m.getStack()?.lead;n&&!m.root.isUpdateBlocked()&&(n.willUpdate(),n.scheduleCheckAfterUnmount())}constructor(a={},c=b?.()){this.id=fg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fm),this.nodes.forEach(fw),this.nodes.forEach(fx),this.nodes.forEach(fn),eK?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new fe)}addEventListener(a,b){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new aZ),this.eventHandlers.get(a).add(b)}notifyListeners(a,...b){this.eventHandlers.get(a)?.notify(...b)}hasListeners(a){return this.eventHandlers.has(a)}mount(b){if(this.instance)return;this.isSVG=d4(b)&&!(d4(b)&&"svg"===b.tagName),this.instance=b;let{layoutId:c,layout:d,visualElement:e}=this.options;if(e&&!e.current&&e.mount(b),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),a){let c,d=0,e=()=>this.root.updateBlockedByResize=!1;aK.read(()=>{d=window.innerWidth}),a(b,()=>{let a=window.innerWidth;if(a!==d){var b;let f,g;d=a,this.root.updateBlockedByResize=!0,c?.(),b=e,f=a6.now(),b=d2(b),g=({timestamp:a})=>{let c=a-f;c>=250&&(aL(g),b(c-250))},aK.setup(g,!0),c=d1(()=>aL(g)),eB.hasAnimatedSinceResize&&(eB.hasAnimatedSinceResize=!1,this.nodes.forEach(fv))}})}c&&this.root.registerSharedNode(c,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:a,layout:b,visualElement:c,animate:d}=this.options;this.instance&&!this.hasLayoutListener&&!1!==d&&c&&(a||b)&&(this.hasLayoutListener=!0,this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b,hasRelativeLayoutChanged:d,layout:e})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||c.getDefaultTransition()||fC,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=c.getProps(),i=!this.targetLayout||!e6(this.targetLayout,e),j=!b&&d;if(this.options.layoutRoot||this.resumeFrom||j||b&&(i||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...cz(f,"layout"),onPlay:g,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,j,b.path)}else b||fv(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=e}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,aL(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes?.forEach(fy),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void this.options.onExitComplete?.();if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function a(b){if(b.hasCheckedOptimisedAppear=!0,b.root===b)return;let{visualElement:c}=b.options;if(!c)return;let d=c.props["data-framer-appear-id"];if(window.MotionHasOptimisedAnimation(d,"transform")){let{layout:a,layoutId:c}=b.options;window.MotionCancelOptimisedAnimation(d,"transform",aK,!(a||c))}let{parent:e}=b;e&&!e.hasCheckedOptimisedAppear&&a(e)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;fi(this),this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let b=this.path[a];b.shouldResetTransform=!0,fi(b),("string"==typeof b.latestValues.x||"string"==typeof b.latestValues.y)&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1),b.isAnimationBlocked&&(b.dragSnapshot||(b.dragSnapshot=b.measure()),this.dragAncestor=b)}let{layoutId:b,layout:c}=this.options;if(void 0===b&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let a=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),a&&this.nodes.forEach(fq),this.nodes.forEach(fp);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(fr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fs),this.nodes.forEach(ft),this.nodes.forEach(fu),this.nodes.forEach(fk),this.nodes.forEach(fl)):this.nodes.forEach(fr),this.clearAllSnapshots();let a=a6.now();aJ.delta=k(0,1e3/60,a-aJ.timestamp),aJ.timestamp=a,aJ.isProcessing=!0,aM.update.process(aJ),aM.preRender.process(aJ),aM.render.process(aJ),aJ.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fo),this.sharedNodes.forEach((a,b)=>a.members.length?a.removeLeadSnapshot():this.sharedNodes.delete(b))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,aK.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){aK.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||dV(this.snapshot.measuredBox.x)||dV(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=_()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:b}=this.options;b?.notify("LayoutMeasure",this.layout.layoutBox,a?.layoutBox)}updateScroll(a="measure"){let{scroll:b,instance:e}=this,{animationId:f}=this.root;if(this.options.layoutScroll&&e&&!(b&&b.animationId===f&&b.phase===a)){let g=d(e);this.scroll={animationId:f,phase:a,isRoot:g,offset:c(e),wasRoot:b?b.isRoot:g}}}resetTransform(){if(!e)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;a&&fi(this);let b=this.projectionDelta&&!e3(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(b||bY(this.latestValues)||f)&&(e(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var b;let c=this.measurePageBox(),d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),e1((b=d).x),e1(b.y),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return _();let b=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fF))){let{scroll:a}=this.root;a&&(b2(b.x,a.offset.x),b2(b.y,a.offset.y))}return b}removeElementScroll(a){let b=_();if(eU(b,a),this.scroll?.wasRoot)return b;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:e,options:f}=d;d!==this.root&&e&&f.layoutScroll&&(e.wasRoot&&eU(b,a),b2(b.x,e.offset.x),b2(b.y,e.offset.y))}return b}applyTransform(a,b=!1,c,d,e=0){let f=c||_();eU(f,a);for(let a=e;a<this.path.length;a++){let c=this.path[a];!b&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(b2(f.x,-c.scroll.offset.x),b2(f.y,-c.scroll.offset.y)),bY(c.latestValues)&&b5(f,c.latestValues,c.layout?.layoutBox)}return!d&&bY(this.latestValues)&&b5(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(a){let b=_();eU(b,a);for(let a=0;a<this.path.length;a++){let c,d=this.path[a];bY(d.latestValues)&&(d.instance&&(bW(d.latestValues)&&d.updateSnapshot(),eU(c=_(),d.measurePageBox())),e$(b,d.latestValues,d.snapshot?.layoutBox,c))}return bY(this.latestValues)&&e$(b,this.latestValues),b}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==aJ.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==b;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:e}=this.options;if(!this.layout||!(d||e))return;this.resolvedRelativeTargetAt=aJ.timestamp;let f=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=_(),this.targetWithTransforms=_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var g,h,i,j;this.forceRelativeParentToResolveTarget(),g=this.target,h=this.relativeTarget,i=this.relativeParent.target,j=this.options.layoutAnchor||void 0,dY(g.x,h.x,i.x,j?.x),dY(g.y,h.y,i.y,j?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):eU(this.target,this.layout.layoutBox),b1(this.target,this.targetDelta)):eU(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&f&&(!f.resumingFrom==!this.resumingFrom||f.options.layoutRoot&&!f.resumingFrom)&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),eK?.(1)}}getClosestProjectingParent(){if(!(!this.parent||bW(this.parent.latestValues)||b$(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,b,c){this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),d$(this.relativeTargetOrigin,b,c,this.options.layoutAnchor||void 0),eU(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),b=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===aJ.timestamp&&(c=!1),c)return;let{layout:d,layoutId:e}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||e))return;eU(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;!function(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let h=0;h<g;h++)f=(e=c[h]).projectionDelta,e.options.visualElement?.props.style?.display!=="contents"&&(!0===d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(b2(a.x,-e.scroll.offset.x),b2(a.y,-e.scroll.offset.y)),f&&(b.x*=f.x.scale,b.y*=f.y.scale,b1(a,f)),d&&(d.path?.[h]||d)!==e&&bY(e.latestValues)&&b5(a,e.latestValues,e.layout?.layoutBox));b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}(this.layoutCorrected,this.treeScale,this.path,b&&(!a.relativeTarget||!!a.relativeParent.resumingFrom||a.relativeParent)),a.layout&&!a.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=_());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eV(this.prevProjectionDelta.x,this.projectionDelta.x),eV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),dX(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===f&&this.treeScale.y===g&&e8(this.projectionDelta.x,this.prevProjectionDelta.x)&&e8(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),eK?.(2)}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){this.options.visualElement?.scheduleRender(),a&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Z(),this.projectionDelta=Z(),this.projectionDeltaWithTransform=Z()}setAnimationOrigin(a,b=!1,c){let d,e=this.snapshot,f=e?e.latestValues:{},g={...this.latestValues},h=Z();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;let i=_(),j=e?.source!==this.layout?.source,k=this.getStack(),l=!k||k.members.length<=1,m=!!(j&&!l&&!0===this.options.crossfade&&!this.path.some(fB));this.animationProgress=0;let n=c?.interpolateProjection(a);this.mixTargetDelta=b=>{let c=b/1e3,e=n?.(c);if(fz(h.x,a.x,c),fz(h.y,a.y,c),e&&(h.x.translate=e.x,h.y.translate=e.y),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var k,o,p,q,r,s;d$(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,q=this.relativeTargetOrigin,r=i,s=c,fA(p.x,q.x,r.x,s),fA(p.y,q.y,r.y,s),d&&(k=this.relativeTarget,o=d,e4(k.x,o.x)&&e4(k.y,o.y))&&(this.isProjectionDirty=!1),d||(d=_()),eU(d,this.relativeTarget)}j&&(this.animationValues=g,function(a,b,c,d,e,f){e?(a.opacity=bU(0,c.opacity??1,eQ(d)),a.opacityExit=bU(b.opacity??1,0,eR(d))):f&&(a.opacity=bU(b.opacity??1,c.opacity??1,d));for(let e=0;e<eN;e++){let f=eL[e],g=eP(b,f),h=eP(c,f);(void 0!==g||void 0!==h)&&(g||(g=0),h||(h=0),0===g||0===h||eO(g)===eO(h)?(a[f]=Math.max(bU(eM(g),eM(h),d),0),(z.test(h)||z.test(g))&&(a[f]+="%")):a[f]=h)}for(let e=0;e<bX.length;e++){let f=bX[e];(b[f]||c[f])&&(a[f]=bU(b[f]||0,c[f]||0,d))}}(g,f,this.latestValues,c,m,l)),e?.rotate!==void 0&&(this.animationValues||(this.animationValues=g),this.animationValues.pathRotation=e.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=c},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(aL(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=aK.update(()=>{var b,c,d;let e;eB.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bm(0)),this.motionValue.jump(0,!1),this.currentAnimation=(b=this.motionValue,c=[0,1e3],d={...a,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),a.onUpdate&&a.onUpdate(b)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}},(e=aa(b)?b:bm(b)).start(dI("",e,c,d)),e.animation),function(a,b){let c=globalThis.__MOTION_INSPECT__;if(c)try{c({...a7("layout-animation-start",a),node:b})}catch{}}(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:b,layout:c,latestValues:d}=a,{target:e}=a;if(b&&e&&c){if(this!==a&&this.layout&&c&&fE(this.options.animationType,this.layout.layoutBox,c.layoutBox)){let{layoutBox:a}=this.layout,b=e;fD((e=this.target||_()).x,b.x,a.x),fD(e.y,b.y,a.y)}eU(b,e),b5(b,d),dX(this.projectionDeltaWithTransform,this.layoutCorrected,b,d)}}registerSharedNode(a,b){this.sharedNodes.has(a)||this.sharedNodes.set(a,new e9),this.sharedNodes.get(a).add(b);let c=b.options.initialPromotionConfig;b.promote({transition:c?.transition,preserveFollowOpacity:c?.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(b):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){let{layoutId:a}=this.options;return a&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:b,preserveFollowOpacity:c}={}){this.getStack()?.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let{latestValues:b}=a;if(!bZ(b))return;let c={};for(let b=0;b<ff.length;b++)fh(ff[b],a,c,this.animationValues);for(let b=0;b<bX.length;b++)fh(bX[b],a,c,this.animationValues);for(let b in a.render(),c)a.setStaticValue(b,c[b]),this.animationValues&&(this.animationValues[b]=c[b]);a.scheduleRender()}applyProjectionStyles(a,b){if(!this.instance||this.isSVG)return;let c=this.getLead();if(!this.isVisible&&c!==this){a.visibility="hidden";return}let d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=ck(b?.pointerEvents)||"",a.transform=d?d(this.latestValues,""):"none";return}if(!this.projectionDelta||!this.layout||!c.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,a.visibility="",a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=ck(b?.pointerEvents)||""),this.hasProjected&&!bY(this.latestValues)&&(a.transform=d?d({},""):"none",this.hasProjected=!1);return}a.visibility="";let e=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=function(a,b,c){let d="",e=a.x.translate/b.x,f=a.y.translate/b.y,g=c?.z||0;if((e||f||g)&&(d=`translate3d(${e}px, ${f}px, ${g}px) `),(1!==b.x||1!==b.y)&&(d+=`scale(${1/b.x}, ${1/b.y}) `),c){let{transformPerspective:a}=c;a&&(d=`perspective(${a}px) ${d}`);for(let a=0;a<bX.length;a++){let b=bX[a],e=c[b];e&&(d+=`${b}(${e}deg) `),!a&&c.pathRotation&&(d+=`rotate(${c.pathRotation}deg) `)}}let h=a.x.scale*b.x,i=a.y.scale*b.y;return(1!==h||1!==i)&&(d+=`scale(${h}, ${i})`),d||"none"}(this.projectionDeltaWithTransform,this.treeScale,e);d&&(f=d(e,f)),a.transform=f;let{x:g,y:h}=this.projectionDelta;for(let b in a.transformOrigin=`${100*g.origin}% ${100*h.origin}% 0`,c.animationValues?a.opacity=c===this?e.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:e.opacityExit:a.opacity=c===this?void 0!==e.opacity?e.opacity:"":void 0!==e.opacityExit?e.opacityExit:0,bO){if(void 0===e[b])continue;let{correct:d,applyTo:g,isCSSVariable:h}=bO[b],i="none"===f?e[b]:d(e[b],c);if(g){let b=g.length;for(let c=0;c<b;c++)a[g[c]]=i}else h?this.options.visualElement.renderState.vars[b]=i:a[b]=i}this.options.layoutId&&(a.pointerEvents=c===this?ck(b?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(fp),this.root.sharedNodes.clear()}}}function fk(a){a.updateLayout(),function(a){let{snapshot:b,dragAncestor:c}=a,d=c?.isAnimationBlocked&&c.layout;if(!b||!d||a.resumeFrom||a.isAnimationBlocked)return;let e=c.dragSnapshot;d_(a=>b2(b.layoutBox[a],d.layoutBox[a].min-e.layoutBox[a].min))}(a)}function fl(a){let b=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&b&&a.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:d}=a.layout,{animationType:e}=a.options,f=b.source!==a.layout.source,g=(d,f)=>{if("size"===e)d_(a=>{let b=dV(d[a]);d[a].min=f[a].min,d[a].max=d[a].min+b});else if("x"===e||"y"===e){let a="x"===e?"y":"x";eT(d[a],f[a])}else fE(e,b.layoutBox,c)&&d_(b=>{let c=dV(f[b]);d[b].max=d[b].min+c,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+c)})},h=f?b.measuredBox:b.layoutBox;g(h,c);let i=Z();dX(i,c,b.layoutBox);let j=Z();dX(j,f?a.applyTransform(d,!0):c,h);let k=!e3(i),l=!1,m=a.getClosestProjectingParent();if((!a.resumeFrom||m?.options.layoutRoot&&a.resumeFrom.path.includes(m))&&m&&!m.resumeFrom){let{snapshot:d,layout:e}=m;if(d&&e){let h=a.options.layoutAnchor||void 0,i=_();d$(i,f?a.resumeFrom.applyTransform(b.layoutBox,!0,void 0,!0,m.depth+1):b.layoutBox,d.layoutBox,h);let j=_();d$(j,c,e.layoutBox,h),f&&g(i,j),e6(i,j)||(l=!0),m.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=i,a.relativeParent=m)}}a.notifyListeners("didUpdate",{layout:c,snapshot:b,delta:j,layoutDelta:i,hasLayoutChanged:k,hasRelativeLayoutChanged:l})}else a.isLead()&&a.options.onExitComplete?.();a.options.transition=void 0}function fm(a){eK?.(0),a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fn(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function fo(a){a.clearSnapshot()}function fp(a){a.clearMeasurements()}function fq(a){a.isLayoutDirty=!0,a.updateLayout()}function fr(a){a.isLayoutDirty=!1}function fs(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.dragSnapshot||a.layout,a.isLayoutDirty=!0)}function ft(a){a.relativeTarget&&a.relativeParent?.isLayoutDirty&&(a.currentAnimation?a.isLayoutDirty=!0:(a.targetDelta=void 0,a.removeRelativeTarget()))}function fu(a){let{visualElement:b}=a.options;b?.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),a.resetTransform()}function fv(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function fw(a){a.resolveTargetDelta()}function fx(a){a.calcProjection()}function fy(a){a.resetSkewAndRotation()}function fz(a,b,c){a.translate=bU(b.translate,0,c),a.scale=bU(b.scale,1,c),a.origin=b.origin,a.originPoint=b.originPoint}function fA(a,b,c,d){a.min=bU(b.min,c.min,d),a.max=bU(b.max,c.max,d)}function fB(a){return a.animationValues?.opacityExit!==void 0}let fC={duration:.45,ease:[.4,0,.1,1]};function fD(a,b,c){a.max=dV(c)+(a.min=b.min)}function fE(a,b,c){return"position"===a||"preserve-aspect"===a&&!(.2>=Math.abs(e7(b)-e7(c)))}function fF(a){return a!==a.root&&a.scroll?.wasRoot}let fG=fj({attachResizeListener:(a,b)=>dR(a,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fH=fj({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!ca.current){let a=new fG({});a.mount(window),a.setOptions({layoutScroll:!0}),ca.current=a}return ca.current},resetTransform:(a,b)=>{a.style.transform=void 0!==b?b:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position});function fI(a,b){let c=d5(a),d=new AbortController;return[c,{passive:!0,...b,signal:d.signal},d1(()=>d.abort())]}function fJ(a,b,c,d){let{props:e}=a,f="while"+c;a.animationState&&e[f]&&a.animationState.setActive(f,"Start"===d);let g=e["on"+c+d];g&&aK.postRender(()=>g(b,dT(b)))}function fK(a){return d3(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}let fL=(a,b)=>!!b&&(a===b||fL(a,b.parentElement)),fM=new WeakSet;function fN(a){return b=>{"Enter"===b.key&&a(b)}}function fO(a,b){a.dispatchEvent(new PointerEvent("pointer"+b,{isPrimary:!0,bubbles:!0}))}function fP(a){return dS(a)&&!(eo.x||eo.y)}let fQ=new WeakSet;function fR(a,b,c){a.current instanceof HTMLButtonElement&&a.current.disabled||fJ(a,b,"Tap",c)}let fS=new WeakMap,fT=new WeakMap,fU=a=>{let b=fS.get(a.target);b&&b(a)},fV=a=>{a.forEach(fU)},fW={some:0,all:1},fX=function(a,b){if("u"<typeof Proxy)return cu;let c=new Map,d=(c,d)=>cu(c,d,a,b);return new Proxy((a,b)=>d(a,b),{get:(e,f)=>"create"===f?d:(c.has(f)||c.set(f,cu(f,void 0,a,b)),c.get(f))})}(Object.assign({},{animation:{Feature:class extends cv{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>(function(a,b,c={}){return a.notify("AnimationStart",b),(Array.isArray(b)?Promise.all(b.map(b=>dL(a,b,c))):"string"==typeof b?dL(a,b,c):Promise.all(dJ(a,cw(a,b,c.custom),c))).then(()=>{a.notify("AnimationComplete",b)})})(a,b,c))),c=dP(),d=!0,e=!1;function f(f){let{props:g,parent:h,manuallyAnimateOnMount:i}=a,{initial:j}=g,k=d||e,l=[],m=(b=j)=>"boolean"!=typeof b&&cw(a,Array.isArray(b)?b[0]:b,a.presenceContext?.custom)||void 0,n=new Map,o={},p=1/0,q=a;do q=!1!==q.props.inherit&&q.parent;while(q&&!q.isControllingVariants)let r=k&&dO(m(j??(q&&q.props.initial))?.transition);if(dN.forEach((b,d)=>{var e,j;let m,s=c[b],t=g[b],u=q&&q.props[b],v=void 0!==t?t:bp(u)||!1===u?u:void 0,w=bp(v),x=b===f?s.isActive:null,y=w&&void 0===t&&!(k&&i);if(s.protectedKeys={...o},!s.isActive&&null===x||!v&&!s.prevProp||bo(v)||"boolean"==typeof v)return;if(!1===x&&(p=d),"exit"===b&&s.isActive&&!0!==x){o={...o,...s.prevResolvedValues};return}let z=(e=s.prevProp,"string"==typeof(j=v)?j!==e:!!Array.isArray(j)&&!dM(j,e)),A=z||w&&(x&&!y||d>p),B=!1,C=Array.isArray(v)?v:[v],D={};if(!1!==x)for(let c of C){let{transition:d,transitionEnd:e,...f}=cw(a,c,cx(a,b))||{};D={...D,...f,...e},m=dO(d)||m}let{prevResolvedValues:E}=s;for(let b in{...E,...D}){let c;if(b in o)continue;let d=D[b],e=E[b],f=Array.isArray(d)&&Array.isArray(e)?!dM(d,e)||z:d!==e;if(f&&null==d)n.has(b)||n.set(b,s.prevOut);else if(f||void 0!==d&&n.has(b)){A=!0,c=n.get(b)||r,n.delete(b)&&(B=!0),s.needsAnimating[b]=!0;let d=a.getValue(b);d&&(d.liveStyle=!1)}else s.protectedKeys[b]=!0;s.out[b]=c}if(s.prevProp=v,s.prevResolvedValues=D,s.prevOut=m,s.isActive&&(o={...o,...D}),A&&(!(y&&z)||B))for(let c of C){let d={type:b};if("string"==typeof c&&k&&i&&h?.enteringChildren){let b=cw(h,c)?.transition?.delayChildren;d.delay=dK(h.enteringChildren,a,b)}l.push({animation:c,options:d})}}),n.size){let b={},c=m(),d=c?.transition;n.forEach((e,f)=>{e&&(d={...d||a.getDefaultTransition(),[f]:e});let h=a.getValue(f);h&&(h.liveStyle=!0);let i=c&&!Array.isArray(j)?c[f]:void 0,k=a.getBaseTargetFromProps(g,f);b[f]=(void 0!==i?i:void 0===k||aa(k)?void 0===a.initialValues[f]?a.baseTarget[f]:void 0:k)??null}),d&&(b.transition=d),l.push({animation:b})}let s=k&&a.blockInitialAnimation||d&&!i&&(!1===g.initial||g.initial===g.animate);return d=e=!1,!s&&l.length?b(l):Promise.resolve()}return{animateChanges:f,setActive:function(b,d){if(c[b].isActive===d)return Promise.resolve();a.variantChildren?.forEach(a=>a.animationState?.setActive(b,d)),c[b].isActive=d;let e=f(b);for(let a in c)c[a].protectedKeys={};return e},setAnimateFunction:c=>{b=c(a)},getState:()=>c,reset:()=>{c=dP(),e=!0}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();bo(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends cv{constructor(){super(...arguments),this.id=dQ++}update(){let{presenceContext:a,prevPresenceContext:b,animationState:c}=this.node;if(!a||!c)return;let{isPresent:d,onExitComplete:e}=a,f=b?.isPresent;if(d===f)return;if(d&&!1===f){if(!0===this.exit){let{initial:a}=this.node.getProps();if(a&&!Array.isArray(a)){let{transition:b,transitionEnd:c,...d}=cw(this.node,a)||{};for(let a in d)this.node.getValue(a)?.jump(d[a])}this.node.blockInitialAnimation=!1,c.reset(),c.animateChanges()}else c.setActive("exit",!1);this.exit=void 0;return}let g=this.exit=c.setActive("exit",!d);e&&!d&&g.then(()=>{this.exit===g&&(this.exit=!0,e(this.id))})}mount(){let{register:a,onExitComplete:b}=this.node.presenceContext||{};b&&b(this.id),a&&(this.unmount=a(this.id,this.node))}unmount(){}}}},{inView:{Feature:class extends cv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var a;let b;this.stopObserver?.();let{viewport:c={}}=this.node.getProps(),{root:d,margin:e,amount:f="some",once:g}=c,h={root:d?d.current:void 0,rootMargin:e,threshold:"number"==typeof f?f:fW[f]},i=a=>{let{isIntersecting:b}=a;if(this.isInView===b||(this.isInView=b,g&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),e=b?c:d;e&&e(a)};this.stopObserver=(a=this.node.current,b=function({root:a,...b}){let c=a||document;fT.has(c)||fT.set(c,{});let d=fT.get(c),e=JSON.stringify(b);return d[e]||(d[e]=new IntersectionObserver(fV,{root:a,...b})),d[e]}(h),fS.set(a,i),b.observe(a),()=>{fS.delete(a),b.unobserve(a)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:a,prevProps:b}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:b={}}={}){return c=>a[c]!==b[c]}(a,b))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends cv{mount(){let{current:a}=this.node;if(!a)return;let{globalTapTarget:b,propagate:c}=this.node.props;this.unmount=function(a,b,c={}){b=d2(b);let[d,e,f]=fI(a,c),g=a=>{let d=a.currentTarget;if(!fP(a)||fQ.has(a))return;fM.add(d),c.stopPropagation&&fQ.add(a);let f=b(d,a),g={...e,capture:!0},h=(a,b)=>{window.removeEventListener("pointerup",i,g),window.removeEventListener("pointercancel",j,g),fM.has(d)&&fM.delete(d),fP(a)&&"function"==typeof f&&f(a,{success:b})},i=a=>{h(a,d===window||d===document||c.useGlobalTarget||fL(d,a.target))},j=a=>{h(a,!1)};window.addEventListener("pointerup",i,g),window.addEventListener("pointercancel",j,g)};return d.forEach(a=>{((c.useGlobalTarget?window:a).addEventListener("pointerdown",g,e),fK(a))&&(a.addEventListener("focus",()=>{let b,c,d;return b=!1,c=fN(()=>{fM.has(a)||(b=!0,fO(a,"down"))}),d=fN(()=>{b&&(b=!1,fO(a,"up"))}),void(a.addEventListener("keydown",c,e),a.addEventListener("keyup",d,e),a.addEventListener("blur",()=>{a.removeEventListener("keydown",c),a.removeEventListener("keyup",d),b&&fO(a,"cancel")},{...e,once:!0}))},e),em.has(a.tagName)||!0===a.isContentEditable||a.hasAttribute("tabindex")||(a.tabIndex=0))}),f}(a,(a,b)=>(fR(this.node,b,"Start"),(a,{success:b})=>fR(this.node,a,b?"":"Cancel")),{useGlobalTarget:b,stopPropagation:c?.tap===!1})}unmount(){}}},focus:{Feature:class extends cv{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cB(dR(this.node.current,"focus",()=>this.onFocus()),dR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends cv{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){b=d2(b);let[d,e,f]=fI(a,c);return d.forEach(a=>{let c,d=!1,f=!1,g=b=>{c&&(c(b),c=void 0),a.removeEventListener("pointerleave",i)},h=a=>{d=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),f&&(f=!1,g(a))},i=a=>{if("touch"!==a.pointerType){if(d){f=!0;return}g(a)}};a.addEventListener("pointerenter",d=>{if("touch"===d.pointerType||eo.x||eo.y)return;f=!1;let g=b(a,d);"function"==typeof g&&(c=g,a.addEventListener("pointerleave",i,e))},e),a.addEventListener("pointerdown",()=>{d=!0,window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",h,e)},e)}),f}(a,(a,b)=>(fJ(this.node,b,"Hover","Start"),a=>fJ(this.node,a,"Hover","End"))))}unmount(){}}}},{pan:{Feature:class extends cv{constructor(){super(...arguments),this.removePointerDownListener=aF}onPointerDown(a){this.session=new eg(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:b,onPan:c,onPanEnd:d}=this.node.getProps();return{onSessionStart:eA(a),onStart:eA(b),onMove:eA(c),onEnd:(a,b)=>{delete this.session,d&&aK.postRender(()=>d(a,b))}}}mount(){this.removePointerDownListener=dU(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}}},drag:{Feature:class extends cv{constructor(a){super(a),this.removeGroupControls=aF,this.removeListeners=aF,this.controls=new ev(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aF}update(){let{dragControls:a,drag:b}=this.node.getProps(),{dragControls:c,drag:d}=this.node.prevProps||{};a!==c&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls))),d&&!b&&this.controls.stop(void 0,void 0,d)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:fH,MeasureLayout:eJ}},{layout:{ProjectionNode:fH,MeasureLayout:eJ}}),(a,b)=>b.isSVG??b9(a)?new bS(b):new b7(b,{allowProjection:a!==f.Fragment}));a.s(["f",0,fX],31289);let fY=f.useEffect;var fZ=f;function f$(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}let f_=a=>{let{width:b,height:c}=a?.getBoundingClientRect()||{};return[b/a?.offsetWidth||1,c/a?.offsetHeight||1]},f0=a=>{let{left:b,top:c}=a.getBoundingClientRect(),d=a;for(;d=d.parentElement||d.parentNode?.host;){let{scrollLeft:a,scrollTop:e}=d;if(a||e){let[f,g]=f_(d);b+=a*f,c+=e*g}if("fixed"===getComputedStyle(d).position)break}let[e,f]=f_(a.offsetParent);return[b/e,c/f]};class f1 extends fZ.Component{getSnapshotBeforeUpdate(a){let b=this.props.getElement();if(fK(b)&&a.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let a=b.offsetParent,c=fK(a)&&a.offsetWidth||0,d=fK(a)&&a.offsetHeight||0,e=getComputedStyle(b),f=this.props.sizeRef.current;f.height=parseFloat(e.height),f.width=parseFloat(e.width),f.top=b.offsetTop,f.left=b.offsetLeft,f.right=c-f.width-f.left,f.bottom=d-f.height-f.top,f.direction=e.direction,f.point=f0(b)}return null}componentDidUpdate(){}render(){return this.props.children}}function f2({children:a,isPresent:b,anchorX:c,anchorY:d,root:g,pop:h,popNode:i}){let j=(0,fZ.useId)(),k=(0,fZ.useRef)(null),l=(0,fZ.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=(0,fZ.useContext)(cc.f),n=function(...a){return f.useCallback(function(...a){return b=>{let c=!1,d=a.map(a=>{let d=f$(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b<d.length;b++){let c=d[b];"function"==typeof c?c():f$(a[b],null)}}}}(...a),a)}(k,!1!==h?a.props?.ref??a?.ref:void 0),o=()=>k.current||i?.current?.current,p=a=>{let{width:b,height:e,top:f,left:g,right:h,bottom:i,direction:k}=l.current,m="rtl"===k,n="left"===c?m?`right:${h}`:`left:${g}`:m?`left:${g}`:`right:${h}`,o="bottom"===d?`bottom:${i}`:`top:${f}`;a?.insertRule(`[data-motion-pop-id="${j}"]{position:absolute!important;width:${b}px!important;height:${e}px!important;${n}px!important;${o}px!important}`)};return(0,fZ.useInsertionEffect)(()=>{let{width:a,height:c}=l.current,d=o();if(b||!1===h||!d||!a||!c)return;d.dataset.motionPopId=j;let e=d.ownerDocument,f=e.createElement("style");m&&(f.nonce=m);let i=g??e.head;i.appendChild(f),p(f.sheet);let k=0,n=0;return bi.setup(()=>{let[a,b]=f0(d);k=l.current.point[0]-a,n=l.current.point[1]-b}),bi.read(()=>{let{sheet:a}=f;if(!a||!k&&!n)return;let b=l.current;b.left+=k,b.right-=k,b.top+=n,b.bottom-=n,a.deleteRule(0),p(a)}),()=>{d.removeAttribute("data-motion-pop-id"),i.contains(f)&&i.removeChild(f)}},[b]),(0,e.jsx)(f1,{isPresent:b,getElement:o,sizeRef:l,pop:h,children:!1===h?a:fZ.cloneElement(a,{ref:n})})}let f3=({children:a,initial:b,isPresent:c,onExitComplete:d,custom:g,presenceAffectsLayout:h,mode:i,anchorX:j,anchorY:k,root:l})=>{let m=(0,cn.f)(f4),n=(0,f.useId)(),o=(0,f.useRef)(),p=(0,f.useRef)(c),q=(0,f.useRef)(d);fY(()=>{p.current=c,q.current=d});let r=!0,s=(0,f.useMemo)(()=>(r=!1,{id:n,initial:b,isPresent:c,custom:g,onExitComplete:a=>{for(let b of(m.set(a,!0),m.values()))if(!b)return;d&&d()},register:(a,b)=>(m.set(a,!1),b&&b.parent?.presenceContext?.id!==n&&(o.current=b),()=>{m.delete(a),p.current||m.size||q.current?.()})}),[c,m,d]);return h&&r&&(s={...s}),(0,f.useMemo)(()=>{m.forEach((a,b)=>m.set(b,!1))},[c]),f.useEffect(()=>{c||m.size||!d||d()},[c]),a=(0,e.jsx)(f2,{pop:"popLayout"===i,isPresent:c,anchorX:j,anchorY:k,root:l,popNode:o,children:a}),(0,e.jsx)(cm.Provider,{value:s,children:a})};function f4(){return new Map}let f5=a=>a.key||"";function f6(a){let b=[];return f.Children.forEach(a,a=>{(0,f.isValidElement)(a)&&b.push(a)}),b}let f7=({children:a,custom:b,initial:c=!0,onExitComplete:d,presenceAffectsLayout:g=!0,mode:h="sync",propagate:i=!1,anchorX:j="left",anchorY:k="top",root:l})=>{let[m,n]=eD(i),o=(0,f.useMemo)(()=>f6(a),[a]),p=i&&!m?[]:o.map(f5),q=(0,f.useRef)(!0),r=(0,cn.f)(()=>new Map),s=(0,f.useRef)(new Set),[t,u]=(0,f.useState)(o),[v,w]=(0,f.useState)(o);fY(()=>{!i||m||v.length||n?.()},[m,i,v.length,n]);let x=(0,f.useRef)();(0,f.useEffect)(()=>()=>{let a=x.current;x.current=void 0,a?.()},[v]),fY(()=>{q.current=!1;for(let a=0;a<v.length;a++){let b=f5(v[a]);p.includes(b)?(r.delete(b),s.current.delete(b)):!0!==r.get(b)&&r.set(b,!1)}},[v,p.length,p.join("-")]);let y=[];if(o!==t){let a=[...o],b=0;for(let c of v){let d=p.indexOf(f5(c));-1===d?(a.splice(b++,0,c),y.push(c)):b=d+y.length+1}return y.every(a=>r.get(f5(a)))?a=o:"wait"===h&&(a=y),w(f6(a)),u(o),null}let{forceRender:z}=(0,f.useContext)(cb);return(0,e.jsx)(e.Fragment,{children:v.map(a=>{let f=f5(a),t=(!i||!!m)&&(o===v||p.includes(f));return(0,e.jsx)(f3,{isPresent:t,initial:(!q.current||!!c)&&void 0,custom:b,presenceAffectsLayout:g,mode:h,root:l,onExitComplete:t?void 0:()=>{if(s.current.has(f)||!r.has(f))return;s.current.add(f),r.set(f,!0);let a=!0;r.forEach(b=>{b||(a=!1)}),a&&(z?.(),u([]),i&&n?.(),x.current=d)},anchorX:j,anchorY:k,children:a},f)})})};var f8=a.i(8387);a.s(["G",0,function({label:a,required:b,children:c}){return(0,e.jsxs)("div",{children:[(0,e.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:[a," ",b&&(0,e.jsx)("span",{className:"text-accent",children:"*"})]}),c]})},"n",0,function({open:a,onClose:b,title:c,description:d,icon:i,children:j,className:k}){let l=(0,f.useRef)(null),m=(0,f.useId)(),n=(0,f.useRef)(b);return(n.current=b,(0,f.useEffect)(()=>{if(!a)return;let b=a=>{"Escape"===a.key&&n.current()};window.addEventListener("keydown",b);let c=l.current,d=a=>{if("Tab"!==a.key||!c)return;let b=c.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])');if(0===b.length)return;let d=b[0],e=b[b.length-1];a.shiftKey&&document.activeElement===d?(a.preventDefault(),e.focus()):a.shiftKey||document.activeElement!==e||(a.preventDefault(),d.focus())};return window.addEventListener("keydown",d),c?.focus(),()=>{window.removeEventListener("keydown",b),window.removeEventListener("keydown",d)}},[a]),"u"<typeof document)?null:(0,g.createPortal)((0,e.jsx)(f7,{children:a&&(0,e.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-3",children:[(0,e.jsx)(fX.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-black/80 backdrop-blur-sm",onClick:b}),(0,e.jsxs)(fX.div,{ref:l,role:"dialog","aria-modal":"true","aria-labelledby":m,tabIndex:-1,initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2,ease:[.16,1,.3,1]},className:(0,f8.f)("relative z-10 w-full max-w-lg rounded border border-border bg-surface p-6 shadow-[0_0_30px_var(--color-glow)] outline-none",k),children:[(0,e.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-primary/60 via-accent/40 to-transparent"}),(0,e.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[i&&(0,e.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded border border-primary/30 bg-primary/5",children:i}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{id:m,className:"text-sm font-bold uppercase tracking-wider",children:c}),d&&(0,e.jsx)("p",{className:"text-[11px] text-text-muted",children:d})]})]}),(0,e.jsx)("button",{onClick:b,"aria-label":"Close dialog",className:"rounded p-1.5 text-text-muted hover:text-accent transition-colors",children:(0,e.jsx)(h.X,{className:"h-4 w-4"})})]}),j]})]})}),document.body)},"W",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all","N",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all","M",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all resize-none"],85063)},65802,74290,a=>{"use strict";var b=a.i(72131);let c=(0,b.createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});a.s(["f",0,c],65802),a.s(["f",0,function(a){let c=(0,b.useRef)(null);return null===c.current&&(c.current=a()),c.current}],74290)},62190,a=>{"use strict";a.s(["f",0,function(a,b){if(a?.inherit&&b){let{inherit:c,...d}=a;return{...b,...d}}return a}])}];
1
+ module.exports=[85063,31289,a=>{"use strict";let b,c,d,e,f,g,h,i;var j=a.i(87924),k=a.i(72131),l=a.i(35112),m=a.i(74215);let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set([...n,"pathRotation"]),p=(a,b,c)=>c>b?b:c<a?a:c,q={test:a=>"number"==typeof a,parse:parseFloat,transform:a=>a},r={...q,transform:a=>p(0,1,a)},s={...q,default:1},t=a=>Math.round(1e5*a)/1e5,u=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,v=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,w=(a,b)=>c=>!!("string"==typeof c&&v.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),x=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(u);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},y={...q,transform:a=>Math.round(p(0,255,a))},z={test:w("rgb","red"),parse:x("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+y.transform(a)+", "+y.transform(b)+", "+y.transform(c)+", "+t(r.transform(d))+")"},A=(a,b,c)=>{let d=a.substring(1+b*c,1+(b+1)*c);return c>1?d:d+d},B={test:w("#"),parse:function(a){let b=a.length>5?2:1,c=A(a,3,b);return{red:parseInt(A(a,0,b),16),green:parseInt(A(a,1,b),16),blue:parseInt(A(a,2,b),16),alpha:c?parseInt(c,16)/255:1}},transform:z.transform},C=a=>({test:b=>"string"==typeof b&&b.endsWith(a)&&1===b.split(" ").length,parse:parseFloat,transform:b=>`${b}${a}`}),D=C("deg"),E=C("%"),F=C("px"),G=C("vh"),H=C("vw"),I={...E,parse:a=>E.parse(a)/100,transform:a=>E.transform(100*a)},J={test:w("hsl","hue"),parse:x("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+E.transform(t(b))+", "+E.transform(t(c))+", "+t(r.transform(d))+")"},K={test:a=>z.test(a)||B.test(a)||J.test(a),parse:a=>z.test(a)?z.parse(a):J.test(a)?J.parse(a):B.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?z.transform(a):J.transform(a),getAnimatableNone:a=>{let b=K.parse(a);return b.alpha=0,K.transform(b)}},L=new RegExp(u.source),M=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),N="number",O="color",P=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function Q(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(P,a=>(K.test(a)?(d.color.push(f),e.push(O),c.push(K.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(N),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function R({split:a,types:b}){let c=a.length;return d=>{let e="";for(let f=0;f<c;f++)if(e+=a[f],void 0!==d[f]){let a=b[f];a===N?e+=t(d[f]):a===O?e+=K.transform(d[f]):e+=d[f]}return e}}let S={test:function(a){return isNaN(a)&&"string"==typeof a&&(L.test(a)||M.test(a))},parse:function(a){return Q(a).values},createTransformer:function(a){return R(Q(a))},getAnimatableNone:function(a){let b=Q(a);return R(b)(b.values.map((a,c)=>((a,b)=>"number"==typeof a?b?.trim().endsWith("/")?a:0:"number"==typeof a?0:K.test(a)?K.getAnimatableNone(a):a)(a,b.split[c])))}},T=new Set(["brightness","contrast","saturate","opacity"]);function U(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(u)||[];if(!d)return a;let e=c.replace(d,""),f=+!!T.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let V=/\b([a-z-]*)\(.*?\)/gu,W={...S,getAnimatableNone:a=>{let b=a.match(V);return b?b.map(U).join(" "):a}},X={...S,getAnimatableNone:a=>{let b=S.parse(a);return S.createTransformer(a)(b.map(a=>"number"==typeof a?0:"object"==typeof a?{...a,alpha:1}:a))}},Y={...q,transform:Math.round},Z={rotate:D,pathRotation:D,rotateX:D,rotateY:D,rotateZ:D,scale:s,scaleX:s,scaleY:s,scaleZ:s,skew:D,skewX:D,skewY:D,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:r,originX:I,originY:I,originZ:F},$={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,top:F,right:F,bottom:F,left:F,inset:F,insetBlock:F,insetBlockStart:F,insetBlockEnd:F,insetInline:F,insetInlineStart:F,insetInlineEnd:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,paddingBlock:F,paddingBlockStart:F,paddingBlockEnd:F,paddingInline:F,paddingInlineStart:F,paddingInlineEnd:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,marginBlock:F,marginBlockStart:F,marginBlockEnd:F,marginInline:F,marginInlineStart:F,marginInlineEnd:F,fontSize:F,backgroundPositionX:F,backgroundPositionY:F,...Z,zIndex:Y,fillOpacity:r,strokeOpacity:r,numOctaves:Y},_={...$,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:W,WebkitFilter:W,mask:X,WebkitMask:X},aa=a=>_[a],ab=()=>({translate:0,scale:1,origin:0,originPoint:0}),ac=()=>({x:ab(),y:ab()}),ad=()=>({min:0,max:0}),ae=()=>({x:ad(),y:ad()}),af=a=>!!(a&&a.getVelocity),ag=new Set(["width","height","top","left","right","bottom",...n]),ah=[q,F,E,D,H,G,{test:a=>"auto"===a,parse:a=>a}],ai=a=>ah.find(b=>b.test(a)),aj=a=>b=>"string"==typeof b&&b.startsWith(a),ak=aj("--"),al=aj("var(--"),am=a=>!!al(a)&&an.test(a.split("/*")[0].trim()),an=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ao(a){return"string"==typeof a&&a.split("/*")[0].includes("var(--")}let ap=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aq(a,b,c=1){let[d,e]=function(a){let b=ap.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${c??d}`,e]}(a);if(!d)return;let f=window.getComputedStyle(b).getPropertyValue(d);if(f){let a=f.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)?parseFloat(a):a}return am(e)?aq(e,b,c+1):e}let ar=new Set([W,X]);function as(a,e){if(a===b&&e===c)return d;let f=aa(a);return ar.has(f)||(f=S),d=f.getAnimatableNone?f.getAnimatableNone(e):void 0,b=a,c=e,d}let at=a=>180*a/Math.PI,au=a=>aw(at(Math.atan2(a[1],a[0]))),av={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:au,rotateZ:au,skewX:a=>at(Math.atan(a[1])),skewY:a=>at(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},aw=a=>((a%=360)<0&&(a+=360),a),ax=a=>Math.hypot(a[0],a[1]),ay=a=>Math.hypot(a[4],a[5]),az={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ax,scaleY:ay,scaleZ:a=>Math.hypot(a[8],a[9],a[10]),scale:a=>(ax(a)+ay(a))/2,rotateX:a=>aw(at(Math.atan2(a[6],a[5]))),rotateY:a=>aw(at(Math.atan2(-a[2],a[0]))),rotateZ:au,rotate:au,skewX:a=>at(Math.atan(a[4])),skewY:a=>at(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function aA(a){return+!!a.includes("scale")}function aB(a,b){if(!a||"none"===a)return aA(b);let c=a.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!c)return aA(b);let d=(c[1]?az:av)[b],e=c[2].split(",").map(a=>parseFloat(a));return"function"==typeof d?d(e):e[d]}let aC=a=>a===q||a===F,aD=new Set(["x","y","z"]),aE=n.filter(a=>!aD.has(a)),aF=new Set(["bottom","right"]);function aG(a,b,c,d,e,f){let g=parseFloat(a);if(!isNaN(g))return g;let{min:h,max:i}=b()[c],j=i-h;return"border-box"===f?j:j-parseFloat(d)-parseFloat(e)}let aH=({transform:a})=>aB(a,"x"),aI=({transform:a})=>aB(a,"y"),aJ={width:({width:a,paddingLeft:b="0",paddingRight:c="0",boxSizing:d},e)=>aG(a,e,"x",b,c,d),height:({height:a,paddingTop:b="0",paddingBottom:c="0",boxSizing:d},e)=>aG(a,e,"y",b,c,d),top:({top:a})=>parseFloat(a),left:({left:a})=>parseFloat(a),bottom:({top:a},b)=>{let{y:c}=b();return parseFloat(a)+(c.max-c.min)},right:({left:a},b)=>{let{x:c}=b();return parseFloat(a)+(c.max-c.min)},x:aH,y:aI,translateX:aH,translateY:aI},aK=a=>a,aL={},aM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aN(a,b,c={delta:0,timestamp:0,isProcessing:!1}){let d=!1,e=!0,f=()=>d=!0,g=aM.reduce((a,b)=>(a[b]=function(a){let b,c=new Set,d=new Set,e=!1,f=!1,g=new Set,h={delta:0,timestamp:0,isProcessing:!1};function i(c){g.has(c)&&(d.add(c),a()),(b=c)(h)}let j={schedule:(a,f=!1,h=!1)=>{let i=h&&e,j=i?c:d;return f&&g.add(a),i&&a!==b&&j.delete(a),j.add(a),a},cancel:a=>{d.delete(a),g.delete(a)},process:a=>{if(h=a,e){f=!0;return}e=!0;let g=c;c=d,d=g,c.forEach(i),c.clear(),b=void 0,e=!1,f&&(f=!1,j.process(a))}};return j}(f),a),{}),{setup:h,read:i,resolveKeyframes:j,preUpdate:k,update:l,preRender:m,render:n,postRender:o}=g,p=()=>{let f=aL.useManualTiming,g=f?c.timestamp:performance.now();d=!1,f||(c.delta=e?1e3/60:Math.max(Math.min(g-c.timestamp,40),1)),c.timestamp=g,c.isProcessing=!0,h.process(c),i.process(c),j.process(c),k.process(c),l.process(c),m.process(c),n.process(c),o.process(c),c.isProcessing=!1,d&&b&&(e=!1,a(p))};return{schedule:aM.reduce((b,f)=>{let h=g[f];return b[f]=(b,f=!1,g=!1)=>(!d&&(d=!0,e=!0,c.isProcessing||a(p)),h.schedule(b,f,g)),b},{}),cancel:a=>{for(let b=0;b<aM.length;b++)g[aM[b]].cancel(a)},state:c,steps:g}}let aO={delta:0,timestamp:0,isProcessing:!1},{schedule:aP,cancel:aQ,steps:aR}=aN("u">typeof requestAnimationFrame?requestAnimationFrame:aK,!0,aO),aS=new Set,aT=!1,aU=!1,aV=!1;function aW(){if(aU){let a=[],b=new Set,c=new Set;aS.forEach(d=>{d.needsMeasurement&&(a.push(d),b.add(d.element),aF.has(d.name)&&c.add(d.element))});let d=new Map;c.forEach(a=>{let b,c=(b=[],aE.forEach(c=>{let d=a.getValue(c);if(void 0!==d){let a=d.get(),e=+!!c.startsWith("scale");if(a===e)return;b.push([c,a]),d.set(e)}}),b);c.length&&(d.set(a,c),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=d.get(a);b&&b.forEach(([b,c])=>{a.getValue(b)?.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}aU=!1,aT=!1,aS.forEach(a=>a.complete(aV)),aS.clear()}function aX(){aS.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(aU=!0)})}class aY{constructor(a,b,c,d,e,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(aS.add(this),aT||(aT=!0,aP.read(aX),aP.resolveKeyframes(aW))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;if(null===a[0]){let e=d?.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=function(a,b,c){if("string"==typeof a){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a)||/^0[^.\s]+$/u.test(a))return parseFloat(a);if(!S.test(a)&&S.test(c))return as(b,c)}return a??void 0}(c.readValue(b,f),b,f);void 0!==d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}for(let b=1;b<a.length;b++)a[b]??(a[b]=a[b-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),aS.delete(this)}cancel(){"scheduled"===this.state&&(aS.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let aZ=new Set(["auto","none","0"]);class a$ extends aY{constructor(a,b,c,d,e){super(a,b,c,d,e,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:a,element:b,motionValue:c}=this,d=a[0]??c?.get();if(!b?.current||void 0===d)return!1;for(let b=0;b<a.length;b++)if(ao(b?a[b]:d))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b?.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&am(d=d.trim())){let e=aq(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ag.has(c)||2!==a.length)return;let[d,e]=a;if("number"==typeof d&&"number"==typeof e)return;let f=ai(d),g=ai(e);if(ao(d)!==ao(e)&&aJ[c]){this.needsMeasurement=!0;return}if(f!==g)if(aC(f)&&aC(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else aJ[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++)(null===a[b]||function(a){if("number"==typeof a)return 0===a;if(null===a)return!0;return"none"===a||"0"===a||/^0[^.\s]+$/u.test(a)}(a[b]))&&c.push(b);c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!aZ.has(b)&&function(a){let b=a.toString();return L.test(b)||M.test(b)}(b)&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]!==d&&(a[e]=as(c,d))}(a,c,b)}measure(){let{element:a,name:b}=this;return aJ[b](window.getComputedStyle(a.current),()=>a.measureViewportBox())}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a?.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&this.motionValue?.jump(d,!1)}measureEndState(){let{element:a,unresolvedKeyframes:b}=this;if(!a?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let c=b.length-1,d=b[c];b[c]=this.measure(),null!==d&&void 0===this.finalKeyframe&&(this.finalKeyframe=d),this.resolveNoneKeyframes()}}let a_=a=>1e3*a;function a0(a,b){-1===a.indexOf(b)&&a.push(b)}function a1(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}class a2{constructor(){this.subscriptions=[]}add(a){return a0(this.subscriptions,a),()=>this.remove(a)}remove(a){a1(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function a3(a,b,c){b.startsWith("--")?a.style.setProperty(b,c):a.style[b]=c}let a4={};function a5(a,b){let c,d=()=>(void 0===c&&(c=a()),c);return()=>a4[b]??d()}let a6=a5(()=>void 0!==window.ScrollTimeline,"scrollTimeline");function a7(a,{repeat:b,repeatType:c="loop"},d,e=1){let f,g,h=0;for(let b=0;b<a.length;b++){let c=a[b];null!==c&&(h++||(f=c),g=c)}let i=e<0||b&&"loop"!==c&&b%2==1?0:h-1;return i&&void 0!==d?d:i?g:f}class a8{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(a=>{this._resolve=a})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(a,b){return this.finished.then(a,b)}}function a9(){e=void 0}let ba={now:()=>(void 0===e&&ba.set(aO.isProcessing||aL.useManualTiming?aO.timestamp:performance.now()),e),set:a=>{e=a,queueMicrotask(a9)}};function bb(a,b){return{kind:a,animation:b,timestamp:ba.now(),frameTimestamp:aO.timestamp,frameIsProcessing:aO.isProcessing}}function bc(a,b,c){let d=globalThis.__MOTION_INSPECT__;if(d)try{d({...bb("animation-start",a),options:c?{...b,...c}:b})}catch{}}let bd=a=>Array.isArray(a)&&"number"==typeof a[0],be=a5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),bf=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=Math.round(1e4*a(b/(e-1)))/1e4+", ";return`linear(${d.substring(0,d.length-2)})`},bg=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,bh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bg([0,.65,.55,1]),circOut:bg([.55,0,1,.45]),backIn:bg([.31,.01,.66,-.59]),backOut:bg([.33,1.53,.69,.99])};function bi(a){return"function"==typeof a&&"applyToOptions"in a}class bj extends a8{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;let{element:b,name:c,keyframes:d,pseudoElement:e,allowFlatten:f=!1,finalKeyframe:g,onComplete:h}=a;this.isPseudoElement=!!e,this.allowFlatten=f,this.options=a;let i=function({type:a,...b}){return bi(a)&&be()?a.applyToOptions(b):(b.duration??(b.duration=300),b.ease??(b.ease="easeOut"),b)}(a);this.animation=function(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeOut",times:i}={},j){let k={[b]:c};i&&(k.offset=i);let l=function a(b,c){if(b)return"function"==typeof b?be()?bf(b,c):"ease-out":bd(b)?bg(b):Array.isArray(b)?b.map(b=>a(b,c)||bh.easeOut):bh[b]}(h,e);Array.isArray(l)&&(k.easing=l);let m={delay:d,duration:e,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"};return j&&(m.pseudoElement=j),a.animate(k,m)}(b,c,d,i,e),!1===i.autoplay&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!e){let a=a7(d,this.options,g,this.speed);this.updateMotionValue?.(a),a3(b,c,a),this.animation.cancel()}h?.(),this.notifyFinished()},bc(this,a,i)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch(a){}}stop(){this.isStopped||(this.isStopped=!0,"idle"!==this.state&&null===this.finishedTime&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let a=this.options?.element;!this.isPseudoElement&&a?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:a=0}=this.options||{};return this.duration+a/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(a){let b=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=a_(a),b&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,onAttach:b,observe:c}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=this.onFinish=null,a&&a6())?(this.animation.timeline=a,b?.(this.animation),aK):c(this)}}let bk=new Set(["opacity","clipPath","filter","transform"]),bl=new WeakMap,{schedule:bm}=aN(queueMicrotask,!1),bn=(a,b)=>b?1e3/b*a:0,bo;class bp{constructor(a,b={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let b=ba.now();if(this.updatedAt!==b&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.dirty(),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=ba.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){var c;return"change"===a?this.onChangeSubscribe(b):((c=this.events)[a]||(c[a]=new a2)).add(b)}onChangeSubscribe(a){let{events:b}=this;return b.change||this.changeSubscriber?(b.change||(b.change=new a2,b.change.add(this.changeSubscriber),this.changeSubscriber=void 0),b.change.add(a)):this.changeSubscriber=a,()=>{this.changeSubscriber===a?this.changeSubscriber=void 0:b.change?.remove(a),this.stopIfUnobserved()}}stopIfUnobserved(){aP.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let a in this.changeSubscriber=void 0,this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){b&&(this.updatedAt=ba.now(),this.stop()),this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:a,changeSubscriber:b}=this;b?b(a):this.events.change?.notify(a)}addDependent(a){(this.dependents||(this.dependents=new Set)).add(a)}removeDependent(a){this.dependents?.delete(a)}get(){bo?.push(this);let a=this.animation?.liveValue?.();return void 0===a?this.current:a}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let a=ba.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;let b=Math.min(this.updatedAt-this.prevUpdatedAt,30);return bn(parseFloat(this.current)-parseFloat(this.prevFrameValue),b)}start(a){return new Promise(b=>this.run(a,b))}run(a,b){let c;this.stop(),this.hasAnimated=!0;let d=!1;c=a(()=>{d=!0,this.events.animationComplete?.notify(),this.animation===c&&(this.animation=void 0),b?.()}),d||(this.animation=c),this.events.animationStart?.notify()}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}}function bq(a,b){return new bp(a,b)}let br=new WeakMap;function bs(a){return null!==a&&"object"==typeof a&&"function"==typeof a.start}function bt(a){return"string"==typeof a||Array.isArray(a)}let bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bv=["initial"].concat(bu);function bw(a){if(bs(a.animate))return!0;for(let b=0;b<bv.length;b++)if(bt(a[bv[b]]))return!0;return!1}function bx(a){return!!(bw(a)||a.variants)}let by={current:!1},bz=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],bA={};class bB{scrapeMotionValuesFromProps(a,b,c){return{}}constructor({parent:a,props:b,presenceContext:c,reducedMotionConfig:d,skipAnimations:e,blockInitialAnimation:f,visualState:g},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=aY,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let a=ba.now();this.renderScheduledAt<a&&(this.renderScheduledAt=a,aP.render(this.render,!1,!0))};let{latestValues:i,renderState:j}=g;this.latestValues=i,this.baseTarget={...i},this.initialValues=b.initial?{...i}:{},this.renderState=j,this.parent=a,this.props=b,this.presenceContext=c,this.depth=a?a.depth+1:0,this.reducedMotionConfig=d,this.skipAnimationsConfig=e,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=bw(b),this.isVariantNode=bx(b),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);let{willChange:k,...l}=this.scrapeMotionValuesFromProps(b,{},this);for(let a in l){let b=l[a];void 0!==i[a]&&af(b)&&b.set(i[a])}}mount(a){let b=this.presenceContext;if(this.hasBeenMounted&&b?.isPresent!==!1&&!b?.keepValuesOnRemount)for(let a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];if(this.current=a,br.set(a,this),this.projection?.instance||this.projection?.mount(a),this.isVariantNode&&!this.isControllingVariants){let a=this;do a=!1!==a.props.inherit&&a.parent;while(a&&!a.isVariantNode)if(a){let{variantChildren:b}=a;b.add(this),this.removeFromVariantTree=()=>b.delete(this)}}this.values.forEach((a,b)=>this.bindToMotionValue(b,a)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(by.current||(by.current=!0),this.shouldReduceMotion=null),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let a in this.projection?.unmount(),aQ(this.notifyUpdate),aQ(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this),this.events)this.events[a].clear();for(let a in this.features){let b=this.features[a];b&&(b.unmount(),b.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),(this.enteringChildren||(this.enteringChildren=new Set)).add(a)}removeChild(a){this.children.delete(a),this.enteringChildren?.delete(a)}bindToMotionValue(a,b){let c;if(this.valueSubscriptions.get(a)?.(),b.accelerate&&bk.has(a)&&this.current instanceof HTMLElement){let{factory:c,keyframes:d,times:e,ease:f,duration:g}=b.accelerate,h=new bj({element:this.current,name:a,keyframes:d,times:e,ease:f,duration:a_(g)}),i=c(h);this.valueSubscriptions.set(a,()=>{i(),h.cancel()});return}let d=o.has(a);d&&this.onBindTransform&&this.onBindTransform();let e=b.on("change",b=>{this.latestValues[a]=b,this.props.onUpdate&&aP.preRender(this.notifyUpdate),d&&(this.projection&&(this.projection.isTransformDirty=!0),bl.get(this.current)?.check()),this.scheduleRender()});this.valueSubscriptions.set(a,()=>{e(),c?.()})}sortNodePosition(a){return this.current&&a.current&&this.sortInstanceNodePosition&&this.type===a.type?this.sortInstanceNodePosition(this.current,a.current):0}updateFeatures(){let a="animation";for(a in bA){let b=bA[a];if(!b)continue;let{isEnabled:c,Feature:d}=b;if(!this.features[a]&&d&&c(this.props)&&(this.features[a]=new d(this)),this.features[a]){let b=this.features[a];b.isMounted?b.update():(b.mount(),b.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ae()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,b){this.latestValues[a]=b}update(a,b){let{transformTemplate:c,onUpdate:d}=this.props;(a.transformTemplate||c)&&this.scheduleRender(),(a.transformTemplate&&!c||a.onUpdate&&!d)&&bl.get(this.current)?.demote(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=b;for(let b=0;b<bz.length;b++){let c=bz[b];this.propEventSubscriptions[c]?.(),delete this.propEventSubscriptions[c];let d=a["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=function(a,b,c){for(let d in b){let e=b[d],f=c[d];if(af(e))a.addValue(d,e);else if(af(f))a.addValue(d,bq(e,{owner:a}));else if(f!==e)if(a.hasValue(d)){let b=a.getValue(d);!0===b.liveStyle?b.jump(e):b.hasAnimated||b.set(e)}else{let b=a.getStaticValue(d);a.addValue(d,bq(void 0!==b?b:e,{owner:a}))}}for(let d in c)void 0===b[d]&&a.removeValue(d);return b}(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(a){return this.props.variants?.[a]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(a,b){let c=this.values.get(a);if(b!==c){c&&this.removeValue(a),this.bindToMotionValue(a,b),this.values.set(a,b);let d=b.get();void 0!==d&&(this.latestValues[a]=d)}}removeValue(a){this.values.delete(a),this.valueSubscriptions.get(a)?.(),this.valueSubscriptions.delete(a),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,b){let c=this.props.values?.[a];return c||void 0===(c=this.values.get(a))&&void 0!==b&&(c=bq(b??this.getDefaultValue?.(a),{owner:this}),this.addValue(a,c)),c}readValue(a,b){let c=void 0===this.latestValues[a]&&this.current?this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options):this.latestValues[a];if(null!=c){let d,e;"string"==typeof c&&(d=c,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(d)||(e=c,/^0[^.\s]+$/u.test(e)))?c=parseFloat(c):"number"!=typeof c&&!S.test(c)&&S.test(b)&&(c=as(a,b)),this.setBaseTarget(a,af(c)?c.get():c)}return af(c)?c.get():c}setBaseTarget(a,b){this.baseTarget[a]=b}on(a,b){return(this.events[a]||(this.events[a]=new a2)).add(b)}notify(a,...b){this.events[a]?.notify(...b)}scheduleRenderMicrotask(){bm.render(this.render)}}class bC extends bB{constructor(){super(...arguments),this.KeyframeResolver=a$}sortInstanceNodePosition(a,b){return 2&a.compareDocumentPosition(b)?1:-1}getBaseTargetFromProps(a,b){let c=a.style;return c?c[b]:void 0}removeValueFromRenderState(a,{vars:b,style:c}){delete b[a],delete c[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;af(a)&&(this.childSubscription=a.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function bD(a){return a.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}let bE=(a,b)=>b&&"number"==typeof a?b.transform(a):a,bF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bG=n.length,bH={},bI=(a,b,c=bE(b,Z[a]))=>(bH[a]||(bH[a]=(bF[a]||a)+"("))+c+")",bJ=(a,b)=>("number"==typeof b?b:parseFloat(b))===+!!a.startsWith("scale");function bK(a,b,c){let{style:d,vars:e,transformOrigin:f}=a,g=!1,h=!1;for(let a in b){let c=b[a];if(o.has(a)){g=!0;continue}if(ak(a)){e[a]=c;continue}{let b=bE(c,$[a]);a.startsWith("origin")?(h=!0,f[a]=b):d[a]=b}}if(!b.transform&&(g||c?d.transform=function(a,b,c){let d="";for(let e=0;e<bG;e++){let f=n[e],g=a[f];if(void 0===g)continue;let h=c&&(b[f]=bE(g,$[f]));bJ(f,g)||(d+=bI(f,g,h||void 0)+" ")}let e=a.pathRotation;return e&&(d+=bI("rotate",e)),d=d.trim(),c?c(b,d):d||"none"}(b,a.transform,c):d.transform&&(d.transform="none")),h){let{originX:a="50%",originY:b="50%",originZ:c=0}=f;d.transformOrigin=`${a} ${b} ${c}`}}let bL={offset:"stroke-dashoffset",array:"stroke-dasharray"},bM={offset:"strokeDashoffset",array:"strokeDasharray"},bN=["transform","opacity","clipPath","filter","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function bO(a,{attrX:b,attrY:c,attrScale:d,pathLength:e,pathSpacing:f=1,pathOffset:g=0,...h},i,j,k){if(bK(a,h,j),i){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};let{attrs:l,style:m}=a;for(let a of bN)void 0!==l[a]&&(m[a]=l[a],delete l[a]);(m.transform||l.transformOrigin)&&(m.transformOrigin=l.transformOrigin??"50% 50%",delete l.transformOrigin),m.transform&&(m.transformBox=k?.transformBox??"fill-box",delete l.transformBox),void 0!==b&&(l.x=b),void 0!==c&&(l.y=c),void 0!==d&&(l.scale=d),void 0!==e&&function(a,b,c=1,d=0,e=!0){a.pathLength=1;let f=e?bL:bM;a[f.offset]=`${-d}`,a[f.array]=`${b} ${c}`}(l,e,f,g,!1)}let bP=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"]),bQ=a=>"string"==typeof a&&"svg"===a.toLowerCase();function bR(a,{style:b,vars:c},d,e){let f,g=a.style;for(f in b)g[f]=b[f];for(f in e?.applyProjectionStyles(g,d),c)g.setProperty(f,c[f])}let bS={};function bT(a,{layout:b,layoutId:c}){return o.has(a)||a.startsWith("origin")||(b||void 0!==c)&&(!!bS[a]||"opacity"===a)}function bU(a,b,c){let d=a.style,e=b?.style,f={};if(!d)return f;for(let b in d)(af(d[b])||e&&af(e[b])||bT(b,a)||c?.getValue(b)?.liveStyle!==void 0)&&(f[b]=d[b]);return f}function bV(a,b,c){let d=bU(a,b,c);for(let c in a)"children"!==c&&(af(a[c])||af(b[c]))&&(d[-1!==n.indexOf(c)?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=a[c]);return d}class bW extends bC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ae}getBaseTargetFromProps(a,b){return o.has(b)?super.getBaseTargetFromProps(a,b)??aA(b):a[b]}getDefaultValue(a){return o.has(a)?this.latestValues[a]??aA(a):void 0}readValueFromInstance(a,b){if(o.has(b)){let a=aa(b);return a&&a.default||0}if(bN.includes(b)){let c=getComputedStyle(a)[b];if("string"==typeof c&&c)return c.trim()}return b=bP.has(b)?b:bD(b),a.getAttribute(b)}scrapeMotionValuesFromProps(a,b,c){return bV(a,b,c)}build(a,b,c){bO(a,b,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(a,b,c,d){for(let c in bR(a,b,void 0,d),b.attrs)a.setAttribute(bP.has(c)?c:bD(c),b.attrs[c])}mount(a){this.isSVGTag=bQ(a.tagName),super.mount(a)}}function bX({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}let bY=(a,b,c)=>a+(b-a)*c;function bZ(a){return void 0===a||1===a}function b$({scale:a,scaleX:b,scaleY:c}){return!bZ(a)||!bZ(b)||!bZ(c)}let b_=["rotate","rotateX","rotateY","rotateZ","skewX","skewY"];function b0(a){return b$(a)||b2(a)||b1(a)}function b1(a){return a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY}function b2(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function b3(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function b4(a,b=0,c=1,d,e){a.min=b3(a.min,b,c,d,e),a.max=b3(a.max,b,c,d,e)}function b5(a,{x:b,y:c}){b4(a.x,b.translate,b.scale,b.originPoint),b4(a.y,c.translate,c.scale,c.originPoint)}function b6(a,b){a.min+=b,a.max+=b}function b7(a,b,c,d,e=.5){let f=bY(a.min,a.max,e);b4(a,b,c,f,d)}function b8(a,b){return"string"==typeof a?parseFloat(a)/100*(b.max-b.min):a}function b9(a,b,c){let d=c??a;b7(a.x,b8(b.x,d.x),b.scaleX,b.scale,b.originX),b7(a.y,b8(b.y,d.y),b.scaleY,b.scale,b.originY)}function ca(a,b){return bX(function(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}(a.getBoundingClientRect(),b))}class cb extends bC{constructor(){super(...arguments),this.type="html",this.renderInstance=bR}mount(a){super.mount(a)}readValueFromInstance(a,b){if(o.has(b))return this.projection?.isProjecting?aA(b):((a,b)=>{let{transform:c="none"}=getComputedStyle(a);return aB(c,b)})(a,b);{let c=window.getComputedStyle(a),d=(ak(b)?c.getPropertyValue(b):c[b])||0;return"string"==typeof d?d.trim():d}}measureInstanceViewportBox(a,{transformPagePoint:b}){return ca(a,b)}build(a,b,c){bK(a,b,c.transformTemplate)}scrapeMotionValuesFromProps(a,b,c){return bU(a,b,c)}}let cc=["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 cd(a){if("string"!=typeof a||a.includes("-"));else if(cc.indexOf(a)>-1||/[A-Z]/u.test(a))return!0;return!1}let ce={current:void 0},cf=(0,k.createContext)({});var cg=a.i(65802);let ch=(0,k.createContext)({});function ci(a){return Array.isArray(a)?a.join(" "):a}let cj=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ck(a,b,c){for(let d in b)af(b[d])||bT(d,c)||(a[d]=b[d])}let cl=()=>({...cj(),attrs:{}}),cm=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","tap","propagate","ignoreStrict","viewport"]);function cn(a){return a.startsWith("while")||a.startsWith("drag")&&"draggable"!==a||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||cm.has(a)}function co(a){return af(a)?a.get():a}function cp(a,b,c,d){let e=b=>{let e;return"function"==typeof b?b(void 0!==c?c:a.custom,...(e=[{},{}],d?.values.forEach((a,b)=>{e[0][b]=a.get(),e[1][b]=a.getVelocity()}),e)):b};return"string"==typeof(b=e(b))&&(b=a.variants&&a.variants[b]),e(b)}let cq=(0,k.createContext)(null);var cr=a.i(74290);let cs=a=>(b,c)=>{let d=(0,k.useContext)(ch),e=(0,k.useContext)(cq),f=()=>(function({scrapeMotionValuesFromProps:a,createRenderState:b},c,d,e){return{latestValues:function(a,b,c,d){let e={},f=d(a,{});for(let a in f)e[a]=co(f[a]);let{initial:g,animate:h}=a,i=bw(a),j=bx(a);b&&j&&!i&&!1!==a.inherit&&(void 0===g&&(g=b.initial),void 0===h&&(h=b.animate));let k=!!c&&!1===c.initial,l=(k=k||!1===g)?h:g;if(l&&"boolean"!=typeof l&&!bs(l)){let b=Array.isArray(l)?l:[l];for(let c=0;c<b.length;c++){let d=cp(a,b[c]);if(d){let{transitionEnd:a,transition:b,...c}=d;for(let a in c){let b=c[a];if(Array.isArray(b)){let a=k?b.length-1:0;b=b[a]}null!==b&&(e[a]=b)}for(let b in a)e[b]=a[b]}}}return e}(c,d,e,a),renderState:b()}})(a,b,d,e);return c?f():(0,cr.f)(f)},ct=cs({scrapeMotionValuesFromProps:bU,createRenderState:cj}),cu=cs({scrapeMotionValuesFromProps:bV,createRenderState:cl}),cv={animation:["variants",...bu],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cw=!1,cx=Symbol.for("motionComponentSymbol");function cy(a,{forwardMotionProps:b=!1,type:c}={},d,e){d&&function(a){let b=(!function(){if(cw)return;let a={};for(let b in cv)a[b]={isEnabled:a=>cv[b].some(b=>!!a[b])};bA=a,cw=!0}(),bA);for(let c in a)b[c]={...b[c],...a[c]};bA=b}(d);let f=c?"svg"===c:cd(a),g=f?cu:ct;function h(c,d){var e;let h,i,l,m=function({layoutId:a}){let b=(0,k.useContext)(cf).id;return b&&void 0!==a?b+"-"+a:a}(c);(0,cr.f)(()=>!!ce.current?.sharedNodes.get(m)?.lead&&c.initial)&&(c={...c,initial:!1});let n={...(0,k.useContext)(cg.f),...c,layoutId:m},{isStatic:o,isValidProp:p}=n,q=function(a){let{initial:b,animate:c}=function(a,b){if(bw(a)){let{initial:b,animate:c}=a;return{initial:!1===b||bt(b)?b:void 0,animate:bt(c)?c:void 0}}return!1!==a.inherit?b:{}}(a,(0,k.useContext)(ch));return(0,k.useMemo)(()=>({initial:b,animate:c}),[ci(b),ci(c)])}(c),r=g(c,o);return(0,j.jsxs)(ch.Provider,{value:q,children:[h&&q.visualElement?(0,j.jsx)(h,{visualElement:q.visualElement,...n}):null,function(a,b,c,{latestValues:d},e,f=!1,g,h){let i=(g??cd(a)?function(a,b,c,d){let e=(0,k.useMemo)(()=>{let c=cl();return bO(c,b,bQ(d),a.transformTemplate,a.style),{...c.attrs,style:{...c.style}}},[b]);if(a.style){let b={};return ck(b,a.style,a),{...e,style:{...b,...e.style}}}return e}:function(a,b){let c,d,e={},f=(c=a.style||{},ck(d={},c,a),Object.assign(d,function({transformTemplate:a},b){return(0,k.useMemo)(()=>{let c=cj();return bK(c,b,a),Object.assign({},c.vars,c.style)},[b])}(a,b)),d);return a.drag&&!1!==a.dragListener&&(e.draggable=!1,f.userSelect=f.WebkitUserSelect=f.WebkitTouchCallout="none",f.touchAction=!0===a.drag?"none":`pan-${"x"===a.drag?"y":"x"}`),void 0===a.tabIndex&&(a.onTap||a.onTapStart||a.whileTap)&&(e.tabIndex=0),e.style=f,e})(b,d,e,a),j=function(a,b,c,d){let e={};for(let f in a)("values"!==f||"object"!=typeof a.values)&&!af(a[f])&&((f.startsWith("on")?!cn(f):d?.(f)??!cn(f))||!0===c&&cn(f)||!b&&!cn(f)||a.draggable&&f.startsWith("onDrag"))&&(e[f]=a[f]);return e}(b,"string"==typeof a,f,h),l=a!==k.Fragment?{...j,...i,ref:c}:{},{children:m}=b,n=(0,k.useMemo)(()=>af(m)?m.get():m,[m]);return(0,k.createElement)(a,{...l,children:n})}(a,c,(e=q.visualElement,i=(0,k.useRef)(d),(0,k.useInsertionEffect)(()=>{i.current=d}),l=(0,k.useRef)(null),(0,k.useCallback)(a=>{a&&r.onMount?.(a),e&&(a?e.mount(a):e.unmount());let b=i.current;if("function"==typeof b)if(a){let c=b(a);"function"==typeof c&&(l.current=c)}else l.current?(l.current(),l.current=null):b(a);else b&&(b.current=a)},[e])),r,o,b,f,p)]})}h.displayName=`motion.${"string"==typeof a?a:`create(${a.displayName??a.name??""})`}`;let i=(0,k.forwardRef)(h);return i[cx]=a,i}class cz{constructor(a){this.isMounted=!1,this.node=a}update(){}}function cA(a,b,c){return cp(a.getProps(),b,c,a)}let cB=(a,b)=>"exit"===b?a.presenceContext?.custom:void 0;var cC=a.i(62190);function cD(a,b){let c=a?.[b]??a?.default??a;return c!==a?(0,cC.f)(c,a):c}function cE(a,b){let c=a.getValue("willChange");if(af(c)&&c.add)return c.add(b);if(!c&&aL.WillChange){let c=new aL.WillChange("auto");a.addValue("willChange",c),c.add(b)}}let cF=(...a)=>a.reduce((a,b)=>c=>b(a(c)));function cG(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function cH(a,b){return c=>c>0?b:a}let cI=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},cJ=[B,z,J];function cK(a){let b=cJ.find(b=>b.test(a));if(!b)return!1;let c=b.parse(a);return b===J&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=cG(h,d,a+1/3),f=cG(h,d,a),g=cG(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let cL=(a,b)=>{let c=cK(a),d=cK(b);if(!c||!d)return cH(a,b);let e={...c};return a=>(e.red=cI(c.red,d.red,a),e.green=cI(c.green,d.green,a),e.blue=cI(c.blue,d.blue,a),e.alpha=bY(c.alpha,d.alpha,a),z.transform(e))},cM=new Set(["none","hidden"]);function cN(a,b){return c=>bY(a,b,c)}function cO(a){return"number"==typeof a?cN:"string"==typeof a?am(a)?cH:K.test(a)?cL:cR:Array.isArray(a)?cP:"object"==typeof a?K.test(a)?cL:cQ:cH}function cP(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>cO(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function cQ(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=cO(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let cR=(a,b)=>{let c=Q(a),d=Q(b);if(!(c.indexes.var.length===d.indexes.var.length&&c.indexes.color.length===d.indexes.color.length&&c.indexes.number.length>=d.indexes.number.length))return cH(a,b);if(cM.has(a)&&!d.values.length||cM.has(b)&&!c.values.length)return cM.has(a)?c=>c<=0?a:b:c=>c>=1?b:a;return cF(cP(function(a,b){let c=[],d={color:0,var:0,number:0};for(let e=0;e<b.values.length;e++){let f=b.types[e],g=a.indexes[f][d[f]],h=a.values[g]??0;c[e]=h,d[f]++}return c}(c,d),d.values),R(d))},cS=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function cT(a,b,c){if("number"==typeof a&&"number"==typeof b&&"number"==typeof c)return bY(a,b,c);if("string"==typeof a&&"string"==typeof b){let c=function(a,b){let c=cS.exec(a);if(!c)return;let d=cS.exec(b);if(!d||c[2]!==d[2])return;let e=c[2],f=parseFloat(c[1]),g=parseFloat(d[1]);return a=>t(bY(f,g,a))+e}(a,b);if(c)return c}return cO(a)(a,b)}let cU=a=>{let b=({timestamp:b})=>a(b);return{start:(a=!0)=>aP.update(b,a),stop:()=>aQ(b),now:()=>aO.isProcessing?aO.timestamp:ba.now()}};function cV(a,b=50,c=2e4,d){let e=0,f=a.next(e);for(d?.push(f.value);!f.done&&e<c;)e+=b,f=a.next(e),d?.push(f.value);return e>=c?1/0:e}let cW=a=>a<0?1/Math.max(1+a,.05):Math.max(1-a,.05);function cX(a,b){if(!(a>1))return 1;let c=Math.sqrt(a*a-1),d=a-c,e=a+c,f=2*c*Math.exp(-b)*(1+b);return cZ(a=>e*Math.exp(-d*a)-d*Math.exp(-e*a)-f,a=>Math.exp(-e*a)-Math.exp(-d*a),b)/b}function cY(a,b){return a*Math.sqrt(1-b*b)}function cZ(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}let c$=(a,b)=>(b?a>=0:a>0)&&a<1/0;function c_(a,b){if(c$(a,b))return a}function c0(a=.3,b=.3){let c,d,e,f="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,g=f.keyframes[0],h=f.keyframes[f.keyframes.length-1],i={done:!1,value:g},{stiffness:j,damping:k,mass:l,duration:m,isResolvedFromDuration:n,isTimeDefined:o}=function(a){let b=c_(a.stiffness),c=c_(a.damping,!0),d=c_(a.mass),e={...a,stiffness:b??100,damping:c??10,mass:d??1,isResolvedFromDuration:!1,isTimeDefined:(b??c??d)===void 0&&(void 0!==a.duration||void 0!==a.bounce)};if(e.isTimeDefined){if(a.visualDuration){let b=cW(a.bounce||0),c=2*Math.PI/(1.2*a.visualDuration)*cX(b,2*Math.PI/1.2);e.stiffness=c*c,e.damping=2*b*Math.sqrt(e.stiffness)}else Object.assign(e,function({duration:a=800,bounce:b=.3}){let c,d,e=cW(b);a=p(.01,10,a/1e3),e<1?(c=b=>{let c=b*e,d=c*a;return .001-c/cY(b,e)*Math.exp(-d)},d=b=>{let d=b*e*a,f=e*e*b*b*a,g=Math.exp(-d),h=cY(b*b,e);return-((-c(b)+.001>0?-1:1)*f)*g/h}):(c=b=>-.001+Math.exp(-b*a)*(b*a+1),d=b=>-(a*a*b*Math.exp(-b*a)));let f=cZ(c,d,5/a),g=f*cX(e,f*a),h=g*g;return{stiffness:h,damping:2*e*Math.sqrt(h),duration:a_(a)}}(e)),e.isResolvedFromDuration=!0;c$(e.stiffness)&&c$(e.damping,!0)||(e.stiffness=100,e.damping=10)}return e}({...f}),q=a=>o?0:-(a/1e3),r=k/(2*Math.sqrt(j*l)),s=Math.sqrt(j/l)/1e3,t=r*s,u={target:h,delta:h-g,velocity:q(f.velocity||0)||0,restSpeed:0,restDelta:0},v=()=>{let a=5>Math.abs(u.delta);u.restSpeed=f.restSpeed||(a?.01:2),u.restDelta=f.restDelta||(a?.005:.5)};if(v(),r<1){let a=cY(s,r),b={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};e=()=>{b.A=(u.velocity+t*u.delta)/a,b.sinC=t*b.A+u.delta*a,b.cosC=t*u.delta-b.A*a};let f=c=>{c!==b.t&&(b.t=c,b.env=Math.exp(-t*c),b.sin=Math.sin(a*c),b.cos=Math.cos(a*c))};c=a=>(f(a),u.target-b.env*(b.A*b.sin+u.delta*b.cos)),d=a=>(f(a),b.env*(b.sinC*b.sin+b.cosC*b.cos))}else if(1===r){c=a=>u.target-Math.exp(-s*a)*(u.delta+(u.velocity+s*u.delta)*a);let a={C:0};e=()=>{a.C=u.velocity+s*u.delta},d=b=>Math.exp(-s*b)*(s*a.C*b-u.velocity)}else{let a=s*Math.sqrt(r*r-1),b=t-a,f=t+a,g=a<1||o?1/0:300/a,h=(a,b)=>Math.exp(b>g?(t-a)*g-t*b:-a*b),i={S:0,F:0};e=()=>{let b=(u.velocity+t*u.delta)/a;i.S=(u.delta+b)/2,i.F=(u.delta-b)/2},c=a=>u.target-i.S*h(b,a)-i.F*h(f,a),d=a=>b*i.S*h(b,a)+f*i.F*h(f,a)}e();let w=n&&m||null,x={calculatedDuration:w,retarget:(a,b)=>{u.target=a[a.length-1],u.delta=u.target-a[0],u.velocity=q(b),f.restSpeed&&f.restDelta||v(),x.calculatedDuration=w,i.done=!1,e()},velocity:a=>a_(d(a)),next:a=>{let b=c(a);return n?i.done=a>=m:i.done=Math.abs(a_(d(a)))<=u.restSpeed&&Math.abs(u.target-b)<=u.restDelta,i.value=i.done?u.target:b,i},toString:()=>{let a=Math.min(cV(x),2e4),b=bf(b=>x.next(a*b).value,a,30);return a+"ms "+b},toTransition:()=>{}};return x}let c1=Object.assign(c0,{applyToOptions:a=>{let b=function(a,b=100,c){let{keyframes:d,velocity:e}=a,f=d&&d[d.length-1]-d[0],g=c({...a,velocity:e&&f?e*b/f:e,keyframes:[0,b]}),h=Math.min(cV(g),2e4);return{type:"keyframes",ease:a=>g.next(h*a).value/b,duration:h/1e3}}(a,100,c0);return a.ease=b.ease,a.duration=a_(b.duration),a.type="keyframes",a}});function c2({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=g?g(q):q;r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>{let b=s(a);o.done=Math.abs(b)<=j,o.value=o.done?r:a?r+b:n},u=a=>{let b;if((b=o.value)<h||b>i){var c;l=a,m=c1({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:-s(a)/d*1e3,damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return u(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,t(a),u(a)),void 0!==l&&a>=l)?m.next(a-l):(b||t(a),o)}}}let c3=(a,b,c)=>a*(3*(1-a)*((1-a)*b+a*c)+a*a);function c4(a,b,c,d){return a===b&&c===d?aK:e=>{let f=0,g=1,h=e;for(let b=0;;b++){h>=f&&h<=g||(h=(f+g)/2);let d=c3(h,a,c)-e;if(d*d<1e-28||40===b)break;d>0?g=h:f=h,h-=1e-7*d/(c3(h+1e-7,a,c)-e-d)}return c3(h,b,d)}}let c5=c4(.42,0,1,1),c6=c4(0,0,.58,1),c7=c4(.42,0,.58,1),c8=a=>Array.isArray(a)&&"number"!=typeof a[0],c9=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2,da=a=>b=>1-a(1-b),db=c4(.33,1.53,.69,.99),dc=da(db),dd=c9(dc),de=a=>a>=1?1:(a*=2)<1?.5*dc(a):.5*(2-Math.pow(2,-10*(a-1))),df=a=>1-Math.sin(Math.acos(a)),dg=da(df),dh=c9(df),di={linear:aK,easeIn:c5,easeInOut:c7,easeOut:c6,circIn:df,circInOut:dh,circOut:dg,backIn:dc,backInOut:dd,backOut:db,anticipate:de},dj=a=>{if(bd(a)){let[b,c,d,e]=a;return c4(b,c,d,e)}return"string"==typeof a?di[a]:a},dk=(a,b,c)=>{let d=b-a;return d?(c-a)/d:1};function dl(a){let b=[0];return!function(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=dk(0,b,d);a.push(bY(c,1,e))}}(b,a.length-1),b}function dm({duration:a=300,keyframes:b,times:c,ease:d="easeInOut",mixer:e}){var f;let g="number"==typeof b[0]?void 0:e,h=c8(d)?d.map(dj):dj(d)||c7,i={done:!1,value:b[0]},j=-1;if(!g){for(let a=1;a<b.length;a++)if(b[a]!==b[a-1]){if(j>=0){j=-2;break}j=a-1}}if(j>=0){let d=c&&c.length===b.length?c:dl(b),e=d[j]*a,f=d[j+1]*a,g=b[j],k=b[j+1],l=Array.isArray(h)?h[j]:h,m=(aL.mix||cT)(g,k),n=b.length-2;return{calculatedDuration:a,next:b=>(i.value=j&&b<e?m(0):j<n&&(b>=f||!a)?"number"==typeof k?k:m(1):m(l(b>=f||!a?1:b<=e?0:(b-e)/(f-e))),i.done=b>=a,i)}}let k=function(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if(1===f)return()=>b[0];if(2===f&&b[0]===b[1])return()=>b[1];let g=a[0]===a[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let h=function(a,b,c){let d=[],e=aL.mix||cT,f=a.length-1;for(let g=0;g<f;g++){let f=c?.(a[g],a[g+1])||e(a[g],a[g+1]);b&&(f=cF(Array.isArray(b)?b[g]||aK:b,f)),d.push(f)}return d}(b,d,e),i=h.length,j=c=>{if(g&&c<a[0])return b[0];let d=0;if(i>1)for(;d<a.length-2&&!(c<a[d+1]);d++);let e=dk(a[d],a[d+1],c);return h[d](e)};return c?b=>j(p(a[0],a[f-1],b)):j}((f=c&&c.length===b.length?c:dl(b),f.map(b=>b*a)),b,{ease:Array.isArray(h)?h:b.map(()=>h||c7).splice(0,b.length-1),mixer:g});return{calculatedDuration:a,next:b=>(i.value=k(b),i.done=b>=a,i)}}let dn={decay:c2,inertia:c2,tween:dm,keyframes:dm,spring:c1};function dp(a){"string"==typeof a.type&&(a.type=dn[a.type])}let dq=(a,b)=>b-a>40&&!aL.useManualTiming?b:a,dr=a=>a/100,ds=a=>Math.round(1e4*a)/1e4;class dt extends a8{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==ba.now()&&this.tick(ba.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=a,this.initAnimation(),this.play(),!1===a.autoplay&&this.pause(),bc(this,this.options)}initAnimation(){let{options:a}=this;dp(a);let{type:b=dm,repeat:c=0,repeatDelay:d=0,repeatType:e,velocity:f=0}=a,{keyframes:g}=a,h=b||dm;this.mixKeyframes=void 0,h!==dm&&"number"!=typeof g[0]&&(this.mixKeyframes=cF(dr,a.mixer?.(g[0],g[1])||cT(g[0],g[1])),g=[0,100]);let i=h(g===a.keyframes?a:{...a,keyframes:g});"mirror"===e&&(this.mirroredGenerator=h({...a,keyframes:[...g].reverse(),velocity:-f})),null===i.calculatedDuration&&(i.calculatedDuration=cV(i));let{calculatedDuration:j}=i;this.calculatedDuration=j,this.resolvedDuration=j+d,this.totalDuration=this.resolvedDuration*(c+1)-d,this.generator=i}updateTime(a){this.currentTime=this.holdTime??Math.round(a-this.startTime)*this.playbackSpeed}tick(a,b=!1){let{generator:c,totalDuration:d,calculatedDuration:e}=this;if(null===this.startTime)return c.next(0);let{delay:f=0,keyframes:g,type:h,onUpdate:i,finalKeyframe:j}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=dq(this.startTime,a)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-d/this.speed,this.startTime)),b?this.currentTime=a:this.updateTime(a);let k=this.currentTime-f*(this.playbackSpeed>=0?1:-1),l=this.playbackSpeed>=0?k<0:k>d;this.currentTime=Math.max(k,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=d);let m=this.generate(this.currentTime,l),{done:n}=m;l||(n=this.playbackSpeed>=0?e<1/0?this.currentTime>=d:n:this.currentTime<=0);let o=null===this.holdTime&&("finished"===this.state||"running"===this.state&&n);return o&&h!==c2&&(m.value=a7(g,this.options,j,this.speed)),i&&i(m.value),o&&this.finish(),m}at(a){return this.holdTime??ds((a-this.startTime)*this.playbackSpeed)}sampleAt(a,b){let{options:c,totalDuration:d}=this,e=this.at(a)-(c.delay||0);return e>=d&&c.type!==c2?a7(c.keyframes,c,b?void 0:c.finalKeyframe):this.generate(Math.max(e,0),e<0).value}generate(a,b){let c,{generator:d,totalDuration:e,mixKeyframes:f,mirroredGenerator:g,resolvedDuration:h}=this,{keyframes:i,repeat:j,repeatType:k,repeatDelay:l}=this.options,m=a,n=d;if(j){let b=Math.min(a,e)/h,c=Math.floor(b),d=b%1;!d&&b>=1&&(d=1),1===d&&c--,(c=Math.min(c,j+1))%2&&("reverse"===k?(d=1-d,l&&(d-=l/h)):"mirror"===k&&(n=g)),m=p(0,1,d)*h}return b?(this.delayState.value=i[0],c=this.delayState):c=n.next(m),f&&!b&&(c.value=f(c.value)),c}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){return this.duration+(this.options.delay??0)/1e3}get time(){return this.currentTime/1e3}set time(a){"finished"===this.state&&this.updateFinished(),a=a_(a),this.currentTime=a,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){return function(a,b,c=0){var d,e;let f;return b<=0?c:a.velocity?a.velocity(b):(d=b=>a.next(b).value,e=a.next(b).value,bn(e-d(f=Math.max(b-5,0)),b-f))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(a){let b=this.playbackSpeed!==a;b&&this.driver&&this.updateTime(ba.now()),this.playbackSpeed=a,b&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:a=cU,startTime:b}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),this.options.onPlay?.();let c=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=c):null!==this.holdTime?this.startTime=c-this.holdTime/(this.playbackSpeed||1):this.startTime||(this.startTime=b??(this.pendingStartTime=c)),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ba.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}}let du={anticipate:de,backInOut:dd,circInOut:dh};class dv extends bj{constructor(a){"string"==typeof a.ease&&a.ease in du&&(a.ease=du[a.ease]),dp(a),super(a),void 0!==a.startTime&&!1!==a.autoplay&&(this.startTime=a.startTime),this.options=a}elapsed(){return"running"===this.state?(ba.now()-this.startTime)*this.speed:1e3*this.time}sample(a){if(!this.sampler){let{motionValue:a,onUpdate:b,onComplete:c,onPlay:d,onStop:e,element:f,...g}=this.options;this.sampler=new dt({...g,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,a)).value}liveValue(){let{state:a}=this;if("running"===a||"paused"===a)return this.sample(this.elapsed())}updateMotionValue(a){let{motionValue:b,element:c,name:d}=this.options;if(!b)return;if(void 0!==a)return void b.set(a);let{speed:e}=this,f=this.elapsed(),g="running"===this.state&&e?p(0,10,f):0,h=this.sample(f);c&&d&&a3(c,d,h),b.setWithVelocity(this.sample(f-g*Math.sign(e)),h,g/Math.abs(e||1))}}let dw=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(S.test(a)||"0"===a)&&!a.startsWith("url("));function dx(a){a.duration=0,a.type="keyframes"}let dy=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,dz=({mixer:a,keyframes:b})=>a&&"number"!=typeof b[0]&&b.some((c,d)=>d&&a(b[d-1],c)),dA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),dB=()=>!aL.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,"animate"),dC=new Set(["linear","easeIn","easeOut","easeInOut"]),dD=new WeakMap,dE=(a,b)=>Math.min(200,Math.max(2,Math.ceil((b-a)/10))),dF=(a,b)=>.001>=Math.abs(a-b),dG=(a,b)=>a-b,dH=(a,b,c)=>dl(Array(c+1)).map(c=>bY(a,b,c)),dI=({state:a})=>"idle"===a||"finished"===a,dJ=(a,b)=>a.latestValues?a.latestValues[b]:a.getValue(b)?.get();class dK{constructor(a,b,c,d){this.element=a,this.update=b,this.makeDriver=c,this.animation=d}get js(){return this.driver||(this.driver=this.makeDriver(this.update))}now(){return this.driver||this.makeDriver!==cU?this.js.now():aO.isProcessing?aO.timestamp:ba.now()}start(a=!0){let b,c=(b=this.element,bl.get(b));!c||c.isJS?this.js.start(a):c.schedule(!1,!a)}stopJS(){this.driver?.stop()}stop(){let a;this.stopJS();let b=(a=this.element,bl.get(a));b&&!b.isFinishing&&b.release(this.animation)}}class dL extends dt{constructor(a){let b,c=a.motionValue.owner.current,{driver:d=cU}=a,e=function(a){let b=a.motionValue.owner,{onUpdate:c,transformTemplate:d}=b.getProps();return!a.isHandoff&&!c&&!a.hasOnUpdate&&!d&&"inertia"!==a.type&&"none"===(dJ(b,"transform")||"none")&&!dJ(b,"pathRotation")&&!b.projection?.isProjecting()&&!dz(a)}(a);a.driver=a=>new dK(c,a,d,b),super(a),b=this;let f=this.driver;f&&(f.animation=this),this.canAccelerate=e;let{stop:g}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),g()}}offsets(){let{keyframes:a,times:b}=this.options;return b||(this.offsetsOf!==a&&(this.offsetsOf=a,this.cachedOffsets=dl(a)),this.cachedOffsets)}get group(){let a;return a=this.options.motionValue.owner.current,bl.get(a)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:a,speed:b,totalDuration:c}=this,{delay:d=0,repeatType:e}=this.options;return null!==this.holdTime?[1/0,0]:1/0===c?[a+d/b,this.resolvedDuration*("loop"===e?1:2)/b||1]:[a+(d+c)/b,0]}isAccelerated(){let{group:a,state:b}=this;return a?.tracks.has(this)&&!a.isJS&&this.canAccelerate&&("running"===b||"paused"===b)}liveValue(){return this.isAccelerated()?this.sampleAt(ba.now()):void 0}tween(){let{keyframes:a,type:b,repeat:c,delay:d=0}=this.options,e=-1;if(c||b!==dm||null!==this.holdTime)return;for(let b=1;b<a.length;b++)if(a[b]!==a[b-1]){if(e>=0)return;e=b-1}let{ease:f}=this.options;c8(f)&&(f=f[e]);let g=this.offsets(),h=a=>this.startTime+(d+g[a]*this.totalDuration)/this.speed;if(e>=0){let a,b=bd(f)?bg(f):(a=f,dC.has(a))?bh[f]:dj(f);return[h(e),h(e+1),"string"==typeof b||dF(b(0),0)&&dF(b(1),1)?b:void 0]}}boundaries(a,b){let{startTime:c,speed:d,resolvedDuration:e,options:f}=this,{delay:g=0,repeat:h=0,repeatDelay:i=0,repeatType:j,type:k}=f,l=(k||dm)===dm?this.offsets():[0,1],m=c+g/d,n=[];if(null!==this.holdTime||!(e>0))return n;for(let c=Math.max(0,Math.floor((a-m)*d/e));c<=h;c++){let f=m+c*e/d;if(f>b)break;for(let g of l){let h=f+(c%2&&j&&"loop"!==j?1-g:g)*(e-i)/d;h>a&&h<b&&n.push(h)}}return n}numberAt(a){return parseFloat(this.sampleAt(a,!0))}sync(){let a=ba.now(),b=this.sampleAt(a,!0);this.options.motionValue.setWithVelocity(null===this.holdTime?this.sampleAt(a-10,!0):b,b,10)}play(){var a;let b,c,d,e,f,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G;this.isStopped||((this.group||(d=(a=this.options.motionValue.owner).current,e=new Set,f=new Map,h={},i=[],j=new Map,k=[],l=!1,m=!1,o=!1,p=!1,q=-1/0,r=1/0,s=a=>{for(let b of e)if(b.name===a)return!0},t=(b,c)=>{let d={};for(let e of void 0===b?n:i){let g=f.get(e),i=void 0===b?dJ(a,e):g?g.sampleAt(c>b&&!g.timing()[1]?c:b):h[e];void 0!==i&&(d[e]=i)}return d},u=(a,b)=>{let c="";for(let d in a){let e=a[d];b&&bJ(d,e)||(c+=bI(d,e)+" ")}return(b?c.trim():c)||"none"},v=(a=t())=>{d.style.transform=u(a,!0)},w=a=>{a.onfinish=a.oncancel=null,a.cancel()},x=(a=!0)=>{clearTimeout(b),r=1/0,c=void 0,a&&v(),k.forEach(({animation:a})=>w(a)),k=[]},y=(a,b)=>new Animation(new KeyframeEffect(d,a,b)),z=(a,b,c=1/0)=>{let d={animation:a,offset:b,end:c};a.startTime=ba.now()+b,c<1/0&&(a.onfinish=()=>{d.isDone=!0,k.some(a=>1/0===a.end)&&(w(a),k=k.filter(a=>a!==d)),G.schedule(!1)}),a.oncancel=()=>k.includes(d)&&G.demote(),k.push(d)},A=(a,b,c)=>{let d=(b,c)=>Math.abs(a(c)-a(b)),e=d(b,c);for(;c-b>.01;){let a=(b+c)/2;d(b,a)>d(a,c)?c=a:b=a}return d(b,c)>e/2?[b,c]:[]},B=(a,b,c,d)=>{let e,f,g,h=dE(b,c);if(4*d.length>h)return;for(let d of a){let a=d.numberAt(b),f=(d.numberAt((b+c)/2)-a)/(d.numberAt(c)-a);if(f==f){if(void 0===e)e=f;else if(!dF(f,e))return}}let i=dH(b,c,h).concat(d).sort(dG);for(let c of a){let a=c.numberAt(b),d=i.map(b=>c.numberAt(b)-a),e=d[d.length-1],h=d.some(a=>.001*Math.abs(a)>Math.abs(e))?0:e,j=d.map(a=>h?a/h:a);if(h&&!f)f=j,g=b=>(c.numberAt(b)-a)/h;else if(j.some((a,b)=>!dF(a,h&&f[b])))return}if(!f||f.every((a,d)=>dF(a,dk(b,c,i[d]))))return"linear";let j=[],k=(a,d=g(a))=>j.push(ds(d)+" "+ds(100*dk(b,c,a))+"%");return f.forEach((a,b)=>{b&&Math.abs(a-f[b-1])>.2&&A(g,i[b-1],i[b]).forEach(a=>k(a)),k(i[b],a)}),"linear("+j+")"},C=(a,b,c,d,e={fill:"both"},f)=>{let g=d?[]:a.flatMap(a=>a.boundaries(b,c)),h=d||B(a,b,c,g),i=h?[b,c]:((a,b,c,d)=>{let e=[b],f=[],g=c,h=b;for(let d of a){let a=d.tween();if(a?.[2]!=="linear"){let[e,i]=d.timing(),[j,k]=a||[b,i?c:e];g=Math.min(g,j),h=Math.max(h,k),f.push(d)}}g=Math.max(b,g);let i=(b,c,d)=>{if(c-b<1||f.every(a=>!(Math.abs(a.numberAt((b+c)/2)-(a.numberAt(b)+a.numberAt(c))/2)>(a.name.startsWith("scale")?.001:.1))))e.push(c);else if(d<4)i(b,(b+c)/2,d+1),i((b+c)/2,c,d+1);else{for(let d of a)e.push(...A(a=>d.numberAt(a),b,c));e.push(c)}},j=(h=Math.min(c,h))>g?dH(g,h,Math.ceil((h-g)/100)):[];for(let a of(j.push(c),d))j.push(a,Math.min(a+.01,c));let k=b;for(let a of j.sort(dG))a>k&&i(k,a,0),k=a;return e.sort(dG)})(a,b,c,g),j=i.map(a=>u(t(a,f))),k={transform:j};return h||(k.offset=i.map(a=>dk(b,c,a))),j.every(a=>a===j[0])&&(v(t(b,f)),k=null),y(k,{...e,duration:c-b,easing:h||"linear"})},D=a=>{let c=ba.now()+a;c<r&&(clearTimeout(b),r=c,b=setTimeout(()=>{r=1/0,G.schedule(!1)},a))},E=()=>!e.size&&(o=!0,bl.get(d)===G&&bl.delete(d),G.isJS||x(),!0),F=()=>{let b=ba.now();if(G.isJS||(G.isFinishing=!0,e.forEach(c=>{let[d,e]=c.timing();"running"===c.state&&c.speed>0&&!e&&d<=b+1&&(c.complete(),h[c.name]=dJ(a,c.name),j.has(c)||(l=!0))}),G.isFinishing=!1),m=!1,o||(e.forEach(a=>dI(a)&&e.delete(a)),E()))return;for(let a of e)if(!a.canAccelerate)return G.demote(!0);G.isJS&&(G.isJS=!1,l=!0,e.forEach(a=>a.stopJS()));let d=l,g=p;if(l=p=!1,d||!((a,b)=>{let d,f=0;for(let b of e){let c=j.get(b);if(!c)return!1;let[e,g,h]=c,i=b.at(a),l=1/0===b.timing()[0];if(h){if(l&&(i===e||!k.length))continue;return!1}let m=(i-e)/g,n=l?0:b.speed/g;if(void 0===d)d=m,f=n;else if(Math.abs(m-d)>1||n!==f)return!1}if(void 0===d)return!0;if(!k.length){if(void 0===c||b&&f)return!1;if(f){let a=(c-d)/f;if(a<1)return!1;D(a)}return!0}for(let{offset:a,end:c,isDone:e}of k){let f=d-a;if(c<1/0&&(e?f<c-1:f<0&&(b||a<=0)||f>=c))return!1}for(let{animation:b,offset:c,isDone:e}of k){if(e)continue;let g=d-c;f&&b.updatePlaybackRate&&"running"===b.playState&&20>Math.abs(Number(b.currentTime)-g)?b.playbackRate!==f&&b.updatePlaybackRate(f):f?(b.playbackRate!==f&&(b.playbackRate=f),b.startTime=a-g/f):(b.startTime=null,b.currentTime=g)}return!0})(b,g)){if(g){if(b-q<100)return G.demote();q=b}if(!(b=>{let d=b,g=0,l=0,m=[],o=[],p=new Set;for(let a of(f.clear(),j=new Map,e)){f.set(a.name,a);let[c,e]=a.timing(),h=1/0===c;if(j.set(a,[a.at(b),a.speed,h]),!h){if(a.speed<0)return;if(e){if(g){let a=(c-l)/e;if(Math.abs(e-g)>1||Math.abs(a-Math.round(a))*g>1)return}else g=e,l=c;o.push(a)}else p.add(c);m.push(a),d=Math.max(d,c)}}h={},i=n.filter(b=>{if(f.has(b))return!0;let c=h[b]=dJ(a,b);return void 0!==c&&!bJ(b,c)}),x(!1);let q=!g&&(a=>{let b;for(let c of a){let a=c.tween();if(!a||b&&(Math.abs(a[0]-b[0])>1||Math.abs(a[1]-b[1])>1))return;b=[a[0],a[1],b&&a[2]!==b[2]?void 0:a[2]]}return b})(m);try{if(d>b){let a;if(q&&q[1]>b){var r;let e,[f,g,h]=q;if(f-b>100)return m.forEach(a=>a.sync()),D(c=f-b-100),!0;(a="string"==typeof h?h:h?(r=dE(f,g),e=dD.get(h),e?.[0]!==r&&(e=[r,"linear("+dl(Array(r+1)).map(a=>ds(h(a))+" "+ds(100*a)+"%")+")"],dD.set(h,e)),e[1]):B(m,f,g,[]))&&z(C(m,f,g,a,{fill:"both",endDelay:d-g}),f-b,d-f)}a||z(C(m,b,d),0,d-b),p.forEach(a=>a<d-1&&z(y(null,{duration:a-b}),0,a-b))}if(g){let a=l+Math.floor((d-l)/g)*g;z(C(o,a,a+g,void 0,{iterations:1/0,iterationStart:(d-a)/g,fill:"forwards"},d),d-b)}}catch{return}return k.length||x(),!0})(b))return G.demote()}else if(void 0!==c&&!g)return;e.forEach(a=>1/0===a.timing()[0]&&a.sync())},G={tracks:e,isJS:!1,isFinishing:!1,schedule(a,b){!o&&(l||(l=a),p||(p=!!b),!m)&&(m=!0,aO.isProcessing?aP.render(F,!1,!0):(g||queueMicrotask(()=>{let a=g;g=void 0,a.forEach(a=>a())}),(g||(g=[])).push(F)))},release(a){dI(a)&&e.delete(a),E()||G.schedule(!0)},check(){if(!G.isJS){for(let b in h)if(dJ(a,b)!==h[b]&&!s(b))return G.schedule(!0,!0)}},demote(a){if(!G.isJS&&!o)return e.forEach(b=>{b.isAccelerated()&&b.sync(),a||(b.canAccelerate=!1)}),G.isJS=!0,j=new Map,x(),e.forEach(a=>"running"===a.state&&a.js?.start()),!0}},bl.set(d,G),G)).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:a}=this;a&&!a.isJS&&this.tick(ba.now())}get time(){return this.isAccelerated()?p(0,this.totalDuration,this.at(ba.now())-(this.options.delay||0))/1e3:super.time}set time(a){(f??(f=Object.getOwnPropertyDescriptor(dt.prototype,"time").set)).call(this,a)}attachTimeline(a){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(a)}}class dM extends a8{constructor(a){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ba.now();let{keyframes:b,name:c,motionValue:d,element:e}=a;a.autoplay??(a.autoplay=!0),a.delay??(a.delay=0),a.type??(a.type="keyframes"),a.repeat??(a.repeat=0),a.repeatDelay??(a.repeatDelay=0),a.repeatType??(a.repeatType="loop");let f=e?.KeyframeResolver||aY;this.keyframeResolver=new f(b,(b,c,d)=>this.onKeyframesResolved(b,c,a,!d),c,d,e),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,b,c,d){let e;this.keyframeResolver=void 0;let{name:f,type:g,velocity:h,delay:i,isHandoff:j,onUpdate:k}=c;this.resolvedAt=ba.now();let l=function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=dw(e,b),h=dw(f,b);return!!g&&!!h&&(function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||bi(c))&&d)}(a,f,g,h);l||((aL.instantAnimations||!i)&&k?.(a7(a,c,b)),a[0]=a[a.length-1],dx(c),c.repeat=0);let{onComplete:m}=c;c.finalKeyframe=b,c.keyframes=a,c.onComplete=()=>{m?.(),this.notifyFinished()};let o=l&&!j&&function(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g,keyframes:h}=a;if(!c||!(bk.has(c)||dA.has(c)))return!1;let i=b?.owner?.current;if(!(i instanceof HTMLElement)&&!(i instanceof SVGElement))return!1;let{onUpdate:j,transformTemplate:k}=b.owner.getProps();return dB()&&(bk.has(c)||dA.has(c)&&function(a){for(let b=0;b<a.length;b++)if("string"==typeof a[b]&&dy.test(a[b]))return!0;return!1}(h))&&("transform"!==c||!k)&&!j&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g&&!dz(a)}(c),p=!o&&(({name:a,motionValue:b})=>a&&n.includes(a)&&b?.owner?.current instanceof HTMLElement&&dB()&&be())(c);if(d&&(o||p||this.resolvedAt!==this.createdAt)&&(c.startTime??(c.startTime=dq(this.createdAt,this.resolvedAt))),o){c.element=c.motionValue?.owner?.current;try{e=new dv(c)}catch{e=new dt(c)}}else e=p?new dL(c):new dt(c);this.pendingTimeline&&(this.stopTimeline=e.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=e}get finished(){return this._animation?this._animation.finished:super.finished}then(a,b){return this.finished.finally(a).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),aV=!0,aX(),aW(),aV=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}}let dN={type:"spring",stiffness:500,damping:25,restSpeed:10},dO={type:"keyframes",duration:.8},dP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dQ=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed","out","mixer"]),dR=(a,b,c,d={},e,f)=>g=>{let h=cD(d,a)||{},i=h.delay||d.delay||0,{elapsed:j=0}=d;j-=a_(i);let k={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...h,delay:-j,onUpdate:a=>{b.set(a),h.onUpdate&&h.onUpdate(a)},onComplete:()=>{g(),h.onComplete&&h.onComplete()},name:a,motionValue:b,element:f?void 0:e,hasOnUpdate:!!h.onUpdate};!function(a){for(let b in a)if(!dQ.has(b))return!0;return!1}(h)&&Object.assign(k,((a,{keyframes:b})=>b.length>2?dO:o.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:dN:dP)(a,k)),k.duration&&(k.duration=a_(k.duration)),k.repeatDelay&&(k.repeatDelay=a_(k.repeatDelay)),void 0!==k.from&&(k.keyframes[0]=k.from);let l=!1;if(!1!==k.type&&(0!==k.duration||k.repeatDelay)||(dx(k),0===k.delay&&(l=!0)),(aL.instantAnimations||aL.skipAnimations||e?.shouldSkipAnimations||h.skipAnimations)&&(l=!0,dx(k),k.delay=0),k.allowFlatten=!h.type&&!h.ease,l&&!f&&void 0!==b.get()){let a=a7(k.keyframes,h);if(void 0!==a)return void aP.update(()=>{k.onUpdate(a),k.onComplete()})}return h.isSync?new dt(k):new dM(k)};function dS(a,b,{delay:c=0,transitionOverride:d,type:e}={}){let{transition:f,transitionEnd:g,...h}=b,i=a.getDefaultTransition();f=f?(0,cC.f)(f,i):i;let j=f?.reduceMotion,k=f?.skipAnimations;d&&(f=d);let l=[],m=e&&a.animationState?.getState()[e],n=f?.path;for(let b in n&&(n.animateValues?n.animateValues(b=>a.getValue(b,a.latestValues[b]??0),h,f,c,l):n.animateVisualElement?.(a,h,f,c,l)),h){let d=a.getValue(b,a.latestValues[b]??null),e=h[b];if(void 0===e||m&&function({protectedKeys:a,needsAnimating:b},c){let d=c in a&&!b[c];return b[c]=!1,d}(m,b))continue;let g={delay:c,...cD(m?.out[b]||f||{},b)};k&&(g.skipAnimations=!0);let i=d.get();if(void 0!==i&&!d.isAnimating()&&!Array.isArray(e)&&e===i&&!g.velocity){aP.update(()=>d.set(e));continue}cE(a,b);let n=j??a.shouldReduceMotion;d.run(dR(b,d,e,n&&ag.has(b)?{type:!1}:g,a,!1));let o=d.animation;o&&l.push(o)}if(g){let b=()=>aP.update(()=>{g&&function(a,b){let{transitionEnd:c={},transition:d={},...e}=cA(a,b)||{};for(let b in e={...e,...c}){var f;let c=Array.isArray(f=e[b])?f[f.length-1]||0:f;a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,bq(c))}}(a,g)});l.length?Promise.all(l).then(b):b()}return l}function dT(a,b,c,d=0,e=1){let f=Array.from(a).sort((a,b)=>a.sortNodePosition(b)).indexOf(b),g=a.size,h=(g-1)*d;return"function"==typeof c?c(f,g):1===e?f*d:h-f*d}function dU(a,b,c={}){let d=cA(a,b,cB(a,c.type)),e=c.transitionOverride||(d?.transition??(a.getDefaultTransition()||{})),f=()=>Promise.all(d?dS(a,d,c):[]),g=(d=0)=>{let{variantChildren:f}=a,{delayChildren:g=0,staggerChildren:h,staggerDirection:i}=e,j=[];return f?.forEach(a=>{a.notify("AnimationStart",b),j.push(dU(a,b,{...c,delay:d+("function"==typeof g?0:g)+dT(f,a,g,h,i)}).then(()=>a.notify("AnimationComplete",b)))}),Promise.all(j)},{when:h}=e;return h?"beforeChildren"===h?f().then(()=>g()):g().then(f):Promise.all([f(),g(c.delay)])}function dV(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}let dW=[...bu].reverse(),dX=a=>a?.out===!0?a:a?.out;function dY(){let a={};for(let b of bu)a[b]={isActive:"animate"===b,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return a}let dZ=0;function d$(a,b,c,d={passive:!0}){return a.addEventListener(b,c,d),()=>a.removeEventListener(b,c,d)}let d_=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function d0(a){return{point:{x:a.pageX,y:a.pageY}}}function d1(a,b,c,d){return d$(a,b,a=>d_(a)&&c(a,d0(a)),d)}function d2(a){return a.max-a.min}function d3(a,b,c,d=.5){a.origin=d,a.originPoint=bY(b.min,b.max,a.origin),a.scale=d2(c)/d2(b),a.translate=bY(c.min,c.max,a.origin)-a.originPoint,(a.scale>=.9999&&a.scale<=1.0001||isNaN(a.scale))&&(a.scale=1),(a.translate>=-.01&&a.translate<=.01||isNaN(a.translate))&&(a.translate=0)}function d4(a,b,c,d){d3(a.x,b.x,c.x,d?.originX),d3(a.y,b.y,c.y,d?.originY)}function d5(a,b,c,d=0){a.min=(d?bY(c.min,c.max,d):c.min)+b.min,a.max=a.min+d2(b)}function d6(a,b,c,d=0){let e=d?bY(c.min,c.max,d):c.min;a.min=b.min-e,a.max=a.min+d2(b)}function d7(a,b,c,d){d6(a.x,b.x,c.x,d?.x),d6(a.y,b.y,c.y,d?.y)}function d8(a){return[a("x"),a("y")]}let d9={};function ea(a){return d9.current?.add(a),a}let eb=a=>d9.current?d9.current.bind(a):a,ec=a=>"object"==typeof a&&null!==a;function ed(a){return ec(a)&&"ownerSVGElement"in a}function ee(a,b,c){if(null==a)return[];if(a instanceof EventTarget)return[a];if("string"==typeof a){let d=b?b.current:d9.current?.root||document,e=c?.[a]??d.querySelectorAll(a);return e?Array.from(e):[]}return Array.from(a).filter(a=>null!=a)}let ef=new WeakMap,eg=(a,b,c)=>(d,e)=>e&&e[0]?e[0][a+"Size"]:ed(d)&&"getBBox"in d?d.getBBox()[b]:d[c],eh=eg("inline","width","offsetWidth"),ei=eg("block","height","offsetHeight");function ej({target:a,borderBoxSize:b}){ef.get(a)?.forEach(c=>{c(a,{get width(){return eh(a,b)},get height(){return ei(a,b)}})})}function ek(a){a.forEach(ej)}let el=new Set;function em(a,b){let c;return ea("function"==typeof a?(el.add(a),i||(i=()=>{let a={get width(){return window.innerWidth},get height(){return window.innerHeight}};el.forEach(b=>b(a))},window.addEventListener("resize",i)),()=>{el.delete(a),el.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!h&&"u">typeof ResizeObserver&&(h=new ResizeObserver(ek)),(c=ee(a)).forEach(a=>{let c=ef.get(a);c||(c=new Set,ef.set(a,c)),c.add(b),h?.observe(a)}),()=>{c.forEach(a=>{let c=ef.get(a);c?.delete(b),c?.size||h?.unobserve(a)})}))}let en=(a,b)=>Math.abs(a-b),eo=new Set(["auto","scroll"]);class ep{constructor(a,b,{transformPagePoint:c,contextWindow:d=window,dragSnapToOrigin:e=!1,distanceThreshold:f=3,element:g,immediate:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=a=>{this.handleScroll(a.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var a,b;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=er(this.lastRawMoveEventInfo,this.transformPagePoint));let c=et(this.lastMoveEventInfo,this.history),d=null!==this.startEvent,e=(a=c.offset,b={x:0,y:0},Math.sqrt(en(a.x,b.x)**2+en(a.y,b.y)**2)>=this.distanceThreshold);if(!d&&!e)return;let{point:f}=c;this.history.push({...f,timestamp:ba.now()});let{onStart:g,onMove:h}=this.handlers;d||(g?.(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),h?.(this.lastMoveEvent,c)},this.handlePointerMove=(a,b)=>{this.handleScroll(window),this.lastMoveEvent=a,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=er(b,this.transformPagePoint),this.hasPendingMove=!0,aP.update(this.updatePoint,!0)},this.handlePointerUp=(a,b)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:c,onSessionEnd:d,resumeAnimation:e}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&e?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let f=et("pointercancel"===a.type?this.lastMoveEventInfo:er(b,this.transformPagePoint),this.history);this.startEvent&&c?.(a,f),d?.(a,f)},!d_(a))return;this.dragSnapToOrigin=e,this.handlers=b,this.transformPagePoint=c,this.distanceThreshold=h?0:f,this.contextWindow=d||window;let i=d0(a),j=er(i,this.transformPagePoint),{point:k}=j;this.history=[{...k,timestamp:ba.now()}];let{onSessionStart:l}=b;l&&l(a,et(j,this.history));let m={passive:!0,capture:!0};this.removeListeners=cF(d1(this.contextWindow,"pointermove",this.handlePointerMove,m),d1(this.contextWindow,"pointerup",this.handlePointerUp,m),d1(this.contextWindow,"pointercancel",this.handlePointerUp,m)),g&&this.startScrollTracking(g),h&&(this.handlePointerMove(a,i),this.updatePoint())}startScrollTracking(a){let b=a.parentElement;for(;b;){let a=getComputedStyle(b);(eo.has(a.overflowX)||eo.has(a.overflowY))&&this.scrollPositions.set(b,eq(b)),b=b.parentElement}this.scrollPositions.set(window,eq(window)),this.removeScrollListeners=cF(d$(window,"scroll",this.onElementScroll,{capture:!0}),d$(window,"scroll",this.onWindowScroll,{}))}handleScroll(a){let b=this.scrollPositions.get(a);if(!b)return;let c=a===window,d=eq(a),e={x:d.x-b.x,y:d.y-b.y};(0!==e.x||0!==e.y)&&(c?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=e.x,this.lastMoveEventInfo.point.y+=e.y):this.history.length>0&&(this.history[0].x-=e.x,this.history[0].y-=e.y),this.scrollPositions.set(a,d),aP.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),aQ(this.updatePoint)}}let eq=a=>a===window?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop};function er(a,b){return b?{point:b(a.point)}:a}function es(a,b){return{x:a.x-b.x,y:a.y-b.y}}function et({point:a},b){return{point:a,delta:es(a,eu(b)),offset:es(a,b[0]),velocity:function(a){if(a.length<2)return{x:0,y:0};let b=a.length-1,c=null,d=eu(a);for(;b>=0&&(c=a[b],!(d.timestamp-c.timestamp>a_(.1)));)b--;if(!c)return{x:0,y:0};c===a[0]&&a.length>2&&d.timestamp-c.timestamp>2*a_(.1)&&(c=a[1]);let e=(d.timestamp-c.timestamp)/1e3;if(0===e)return{x:0,y:0};let f={x:(d.x-c.x)/e,y:(d.y-c.y)/e};return 1/0===f.x&&(f.x=0),1/0===f.y&&(f.y=0),f}(b)}}function eu(a){return a[a.length-1]}let ev=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ew=new Set(["INPUT","SELECT","TEXTAREA"]),ex={x:!1,y:!1};function ey(){return ex.x||ex.y}function ez(a,b,c){return{min:void 0!==b?a.min+b:void 0,max:void 0!==c?a.max+c-(a.max-a.min):void 0}}function eA(a,b){let c=b.min-a.min,d=b.max-a.max;return b.max-b.min<a.max-a.min&&([c,d]=[d,c]),{min:c,max:d}}function eB(a,b,c){return{min:eC(a,b),max:eC(a,c)}}function eC(a,b){return"number"==typeof a?a:a[b]||0}function eD(a){let b="";for(let c of a.path){c.scroll=void 0,c.updateScroll();let{scroll:d}=c;c!==a.root&&d&&(b+=d.offset.x+","+d.offset.y+",")}return b}let eE=new WeakMap;class eF{constructor(a,b=()=>a.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ae(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a,this.readProps=b}start(a,b={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let c=a=>{b.snapToCursor&&this.snapToCursor(a),this.stopAnimation()},d=(a,b)=>{let{drag:c,dragConstraints:d,dragPropagation:e,onDragStart:f}=this.getProps();if(c&&!e&&(this.openDragLock?.(),this.openDragLock=function(a){if("x"===a||"y"===a)if(ex[a])return null;else return ex[a]=!0,()=>{ex[a]=!1};return ex.x||ex.y?null:(ex.x=ex.y=!0,()=>{ex.x=ex.y=!1})}(c),!this.openDragLock))return;this.latestPointerEvent=a,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:g}=this.visualElement;g&&(g.isAnimationBlocked=!0,g.target=void 0),d8(a=>{let b=this.getAxisMotionValue(a).get()||0;if(am(b)&&(b=aq(b,this.visualElement.current)||0),F.test(b))b=parseFloat(b);else if(E.test(b)){let c=g?.layout?.layoutBox[a];c&&(b=d2(c)*(parseFloat(b)/100))}this.originPoint[a]=b}),this.point="function"==typeof d&&d(this),f&&aP.update(()=>f(a,b),!1,!0),cE(this.visualElement,"transform"),this.visualElement.animationState?.setActive("whileDrag",!0)},e=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b;let{dragPropagation:c,dragDirectionLock:d,onDirectionLock:e,onDrag:f}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:g}=b;if(d&&null===this.currentDirection){if(this.currentDirection=function(a,b=10){let c=null;return Math.abs(a.y)>b?c="y":Math.abs(a.x)>b&&(c="x"),c}(g),null===this.currentDirection)return;e&&e(this.currentDirection)}this.updateAxis("x",g),this.updateAxis("y",g),this.point&&this.point.move(),this.visualElement.render(),f&&aP.update(()=>f(a,b),!1,!0)},f=(a,b)=>{this.latestPointerEvent=a,this.latestPanInfo=b,this.stop(a,b),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{let{dragSnapToOrigin:a}=this.getProps();(a||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new ep(a,{onSessionStart:c,onStart:d,onMove:e,onSessionEnd:f,resumeAnimation:g},{...b,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(a,b,c){let d=a||this.latestPointerEvent,e=b||this.latestPanInfo,f=this.isDragging;if(this.cancel(),!f||!e||!d)return;let{velocity:g}=e;this.startAnimation(g,c);let{onDragEnd:h}=this.getProps();h&&aP.postRender(()=>h(d,e))}cancel(){this.isDragging=!1;let{projection:a,animationState:b}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),b?.setActive("whileDrag",!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(a,b){let{drag:c}=this.readProps();if(!b||!eJ(a,c,this.currentDirection))return;let d=this.getAxisMotionValue(a),e=this.originPoint[a]+b[a],f=this.constraints&&this.constraints[a];f&&(e=function(a,{min:b,max:c},d){return void 0!==b&&a<b?a=d?bY(b,a,d.min):Math.max(a,b):void 0!==c&&a>c&&(a=d?bY(c,a,d.max):Math.min(a,c)),a}(e,f,this.elastic[a])),this.point?this.point[a]=e:d.set(e)}resolveConstraints(){let{dragConstraints:a,dragElastic:b}=this.getProps(),{projection:c}=this.visualElement,d=c&&(c.layout||c.measure(!1)),e=this.constraints;eG(a)?this.constraints&&this.scroll===eD(c)||(this.constraints=this.resolveRefConstraints()):a&&d&&"object"==typeof a?this.constraints=function(a,{top:b,left:c,bottom:d,right:e}){return{x:ez(a.x,c,e),y:ez(a.y,b,d)}}(d.layoutBox,a):this.constraints=!1,this.elastic=function(a=.35){return!1===a?a=0:!0===a&&(a=.35),{x:eB(a,"left","right"),y:eB(a,"top","bottom")}}(b),e!==this.constraints&&!eG(a)&&d&&this.constraints&&!this.hasMutatedConstraints&&d8(a=>{var b,c;let e;!1!==this.constraints&&this.getAxisMotionValue(a)&&(this.constraints[a]=(b=d.layoutBox[a],c=this.constraints[a],e={},void 0!==c.min&&(e.min=c.min-b.min),void 0!==c.max&&(e.max=c.max-b.min),e))})}resolveRefConstraints(){var a,b;let{dragConstraints:c,onMeasureDragConstraints:d}=this.getProps();if(!eG(c))return!1;let e=eH(c),{projection:f}=this.visualElement;if(!f||!f.layout)return!1;this.scroll=eD(f);let g=function(a,b,c){let d=ca(a,c),{scroll:e}=b;return e&&(b6(d.x,e.offset.x),b6(d.y,e.offset.y)),d}(e,f.root,this.visualElement.getTransformPagePoint()),h=(a=f.layout.layoutBox,b=f.removeElementScroll(g),{x:eA(a.x,b.x),y:eA(a.y,b.y)});if(d){let a=d(function({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}(h));this.hasMutatedConstraints=!!a,a&&(h=bX(a))}return h}startAnimation(a,b){let{drag:c,dragMomentum:d,dragElastic:e,dragTransition:f,dragSnapToOrigin:g,onDragTransitionEnd:h}=this.getProps(),i={bounceStiffness:e?200:1e6,bounceDamping:e?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...f},j=e=>d&&!(this.point&&g)&&eJ(e,b||c,this.currentDirection)?a[e]:0;if(this.point&&!g)return this.point.release({x:j("x"),y:j("y")},i).then(h);let k=this.constraints||{};return Promise.all(d8(a=>{if(!eJ(a,b||c,this.currentDirection))return;let d=k[a]||{};(!0===g||g===a)&&(d={min:0,max:0});let e={type:"inertia",velocity:j(a),...i,...d};return this.startAxisValueAnimation(a,e)})).then(h)}startAxisValueAnimation(a,b){let c=this.getAxisMotionValue(a);return cE(this.visualElement,a),c.start(dR(a,c,0,b,this.visualElement,!1))}stopAnimation(){d8(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){let b=`_drag${a.toUpperCase()}`;return this.readProps()[b]||this.visualElement.getValue(a,this.visualElement.latestValues[a]??0)}snapToCursor({clientX:a,clientY:b}){let{drag:c}=this.getProps(),d={x:a,y:b},e=this.visualElement.getTransformPagePoint()?.(d)||d,f=this.visualElement.measureViewportBox();d8(a=>{if(!eJ(a,c,this.currentDirection))return;let b=this.getAxisMotionValue(a),{min:d,max:g}=f[a];b.set((b.get()||0)+e[a]-bY(d,g,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:b}=this.getProps(),{projection:c}=this.visualElement;if(!eG(b)||!c||!this.constraints)return;this.stopAnimation();let d=this.constraints,e={x:0,y:0};d8(a=>{var b,c;let f,g,h,i=this.getAxisMotionValue(a).get();e[a]=(b={min:i,max:i},c=d[a],f=.5,g=d2(b),(h=d2(c))>g?f=dk(c.min,c.max-g,b.min):g>h&&(f=dk(b.min,b.max-h,c.min)),p(0,1,f))});let{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",c.root?.updateScroll(),c.updateLayout(),this.constraints=!1,this.resolveConstraints(),d8(b=>{let c=this.getAxisMotionValue(b);if(!eJ(b,a,null)||!c.get())return;let{min:d,max:f}=this.constraints[b];c.set(bY(d,f,e[b]))}),this.visualElement.render()}addListeners(){let a;if(!this.visualElement.current)return;eE.set(this.visualElement,this);let b=this.visualElement.current,c=d1(b,"pointerdown",a=>{let{drag:c,dragListener:d=!0}=this.getProps(),e=a.target,f=e!==b&&(ew.has(e.tagName)||!0===e.isContentEditable);c&&d&&!f&&this.start(a)}),d=()=>{var c,d,e;let f,g,{dragConstraints:h}=this.getProps(),i=eG(h)&&eH(h);i&&(this.constraints=this.resolveRefConstraints(),a||(c=b,d=i,f=em(c,eI(e=()=>this.scalePositionWithinConstraints())),g=em(d,eI(e)),a=()=>{f(),g()}))},{projection:e}=this.visualElement,f=e.addEventListener("measure",d);e.layout||(e.root?.updateScroll(),e.updateLayout()),aP.read(d);let g=d$(window,"resize",()=>this.scalePositionWithinConstraints()),h=e.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b})=>{this.isDragging&&b&&(d8(b=>{if(!eJ(b,this.getProps().drag,this.currentDirection))return;let c=this.getAxisMotionValue(b);this.originPoint[b]+=a[b].translate,c.set(c.get()+a[b].translate)}),this.visualElement.render())});return()=>{g(),c(),f(),h(),a?.()}}getProps(){let a=this.readProps(),{dragElastic:b=.35,dragMomentum:c=!0}=a;return{...a,dragElastic:b,dragMomentum:c}}}function eG(a){return!!a&&"object"==typeof a&&("current"in a||"nodeType"in a)}let eH=a=>"current"in a?a.current:a;function eI(a){let b=!0;return()=>{if(b){b=!1;return}a()}}function eJ(a,b,c){return(!0===b||b===a)&&(null===c||c===a)}let eK=a=>(b,c)=>{a&&aP.update(()=>a(b,c),!1,!0)},eL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var eM=k;function eN(a=!0){let b=(0,k.useContext)(cq);if(null===b)return[!0,null];let{isPresent:c,onExitComplete:d,register:e}=b,f=(0,k.useId)();(0,k.useEffect)(()=>{if(a)return e(f)},[a]);let g=(0,k.useCallback)(()=>a&&d&&d(f),[f,d,a]);return!c&&d?[!1,g]:[!0]}let eO=(0,k.createContext)({}),eP=!1,eQ=({layout:a,layoutDependency:b,layoutAnchor:c})=>({layout:a,layoutDependency:b,layoutAnchor:c,animationType:"string"==typeof a?a:"both"}),eR=(a,b)=>{let{snapshot:c}=a,d=a.getStack();d?.remove(a);let e=d?.lead;if(d?.prevLead===a&&e.resumeFrom===a&&(e.resumeFrom=e.currentAnimation=a.resumingFrom=void 0),a.options.layoutId=b,!b){a.needsShow=!0;return}return a.root.registerSharedNode(b,a),()=>{let{resumeFrom:b}=a;b?.isPresent!==!1&&a.getStack().members.includes(b)&&(b.hide(),a.resumeFrom=void 0,a.snapshot=c)}};class eS extends eM.Component{componentDidMount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c,layoutId:d}=this.props,{projection:e}=a;e&&(b.group?.add(e),d&&c?.register?.(e),eP&&e.root.didUpdate(),e.options.layoutId!==d&&eR(e,d)?.(),e.addEventListener("animationComplete",()=>this.safeToRemove()),e.setOptions({...e.options,...eQ(this.props),onExitComplete:()=>this.safeToRemove()})),eL.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:b,layoutId:c,visualElement:d,drag:e,isPresent:f}=this.props,{projection:g}=d;return g&&(g.isPresent=f,this.takeOver=a.layoutId!==c?(g.willUpdate(),eR(g,c)):void 0,g.setOptions({...g.options,...eQ(this.props)}),eP=!0,e||a.layoutDependency!==b||void 0===b||a.isPresent!==f?g.willUpdate():this.safeToRemove(),a.isPresent!==f&&(f?g.promote():g.relegate()||aP.postRender(()=>{g.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(this.takeOver?.(),a.root.didUpdate(),bm.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:b,switchLayoutGroup:c}=this.props,{projection:d}=a;eP=!0,d&&(d.scheduleCheckAfterUnmount(),b.group?.remove(d),c?.deregister?.(d))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}}function eT(a){let[b,c]=eN(),d=(0,eM.useContext)(cf);return(0,j.jsx)(eS,{...a,layoutGroup:d,switchLayoutGroup:(0,eM.useContext)(eO),isPresent:b,safeToRemove:c})}let eU,eV=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],eW=a=>"number"==typeof a?a:parseFloat(a),eX=eV.length,eY=a=>"number"==typeof a||F.test(a);function eZ(a,b){return void 0!==a[b]?a[b]:a.borderRadius}let e$=e0(0,.5,dg),e_=e0(.5,.95,aK);function e0(a,b,c){return d=>d<a?0:d>b?1:c(dk(a,b,d))}function e1(a,b){a.min=b.min,a.max=b.max}function e2(a,b){e1(a.x,b.x),e1(a.y,b.y)}function e3(a,b){a.translate=b.translate,a.scale=b.scale,a.originPoint=b.originPoint,a.origin=b.origin}function e4(a,b,c,d,e){return a-=b,a=d+1/c*(a-d),void 0!==e&&(a=d+1/e*(a-d)),a}function e5(a,b,[c,d,e],f,g){!function(a,b=0,c=1,d=.5,e,f=a,g=a){if(E.test(b)&&(b=parseFloat(b),b=bY(g.min,g.max,b/100)-g.min),"number"!=typeof b)return;let h=bY(f.min,f.max,d);a===f&&(h-=b),a.min=e4(a.min,b,c,h,e),a.max=e4(a.max,b,c,h,e)}(a,b[c],b[d],b[e],b.scale,f,g)}let e6=["x","scaleX","originX"],e7=["y","scaleY","originY"];function e8(a,b,c,d){e5(a.x,b,e6,c?.x,d?.x),e5(a.y,b,e7,c?.y,d?.y)}let e9=a=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),fa=e9("applewebkit/")&&!e9("chrome/")?Math.round:aK;function fb(a){a.min=fa(a.min),a.max=fa(a.max)}function fc(a){return 0===a.translate&&1===a.scale}function fd(a){return fc(a.x)&&fc(a.y)}function fe(a,b){return a.min===b.min&&a.max===b.max}function ff(a,b){return Math.round(a.min)===Math.round(b.min)&&Math.round(a.max)===Math.round(b.max)}function fg(a,b){return ff(a.x,b.x)&&ff(a.y,b.y)}function fh(a){return d2(a.x)/d2(a.y)}function fi(a,b){return a.translate===b.translate&&a.scale===b.scale&&a.originPoint===b.originPoint}class fj{constructor(){this.members=[]}add(a){a0(this.members,a);for(let b=this.members.length-1;b>=0;b--){let c=this.members[b];if(c===a||c===this.lead||c===this.prevLead)continue;let d=c.instance;d&&!1!==d.isConnected||c.snapshot||(a1(this.members,c),c.unmount())}a.scheduleRender()}remove(a){if(a1(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(a){for(let b=this.members.indexOf(a)-1;b>=0;b--){let a=this.members[b];if(!1!==a.isPresent&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(a,b){let c=this.lead;if(a!==c&&(this.prevLead=c,this.lead=a,a.show(),c)){c.updateSnapshot(),a.scheduleRender();let{layoutDependency:d}=c.options,{layoutDependency:e}=a.options;(void 0===d||d!==e)&&(a.resumeFrom=c,b&&(c.preserveOpacity=!0),c.snapshot&&(a.snapshot=c.snapshot,a.snapshot.latestValues=c.animationValues||c.latestValues),a.root?.isUpdating&&(a.isLayoutDirty=!0)),!1===a.options.crossfade&&c.hide()}}exitAnimationComplete(){this.members.forEach(a=>{a.options.onExitComplete?.(),a.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function fk(a,b){return b.max===b.min?0:a/(b.max-b.min)*100}let fl={correct:(a,b)=>{if(!b.target)return a;if("string"==typeof a)if(!F.test(a))return a;else a=parseFloat(a);let c=fk(a,b.target.x),d=fk(a,b.target.y);return`${c}% ${d}%`}},fm={borderRadius:Object.assign({},fl,{applyTo:eV.slice()}),borderTopLeftRadius:fl,borderTopRightRadius:fl,borderBottomLeftRadius:fl,borderBottomRightRadius:fl,boxShadow:{correct:(a,{treeScale:b,projectionDelta:c})=>{let d=S.parse(a);if(d.length>5)return a;let e=S.createTransformer(a),f=+("number"!=typeof d[0]),g=c.x.scale*b.x,h=c.y.scale*b.y;d[0+f]/=g,d[1+f]/=h;let i=bY(g,h,.5);return"number"==typeof d[2+f]&&(d[2+f]/=i),"number"==typeof d[3+f]&&(d[3+f]/=i),e(d)}}},fn=(a,b)=>a.depth-b.depth;class fo{constructor(){this.children=[],this.isDirty=!1}add(a){a0(this.children,a),this.isDirty=!0}remove(a){a1(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(fn),this.isDirty=!1,this.children.forEach(a)}}let fp=["z","skew","skewZ"],fq=0;function fr(a,b,c,d){let{latestValues:e}=b;e[a]&&(c[a]=e[a],b.setStaticValue(a,0),d&&(d[a]=0))}let fs=a=>a.instance&&bl.get(a.instance)?.demote()&&a.resetSkewAndRotation();function ft({attachResizeListener:a,defaultParent:b,measureScroll:c,checkIsScrollRoot:d,resetTransform:e}){return Object.assign(bS,{...fm,...bS}),class{static create(a,b,c){var d;let{layoutId:e,layout:f,drag:g,dragConstraints:h,layoutScroll:i,layoutRoot:j,layoutAnchor:k,layoutCrossfade:l}=b,m=a.projection=new this(a.latestValues,b["data-framer-portal-id"]?void 0:function a(b){if(b)return!1!==b.options.allowProjection?b.projection:a(b.parent)}(a.parent));m.setOptions({layoutId:e,layout:f,alwaysMeasureLayout:!!g||h&&(d=h)&&"object"==typeof d&&Object.prototype.hasOwnProperty.call(d,"current"),visualElement:a,animationType:"string"==typeof f?f:"both",initialPromotionConfig:c,crossfade:l,layoutScroll:i,layoutRoot:j,layoutAnchor:k});let n=m.getStack()?.lead;n&&!m.root.isUpdateBlocked()&&(n.willUpdate(),n.scheduleCheckAfterUnmount())}constructor(a={},c=b?.()){this.id=fq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fw),this.nodes.forEach(fG),this.nodes.forEach(fH),this.nodes.forEach(fx),eU?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new fo)}addEventListener(a,b){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new a2),this.eventHandlers.get(a).add(b)}notifyListeners(a,...b){this.eventHandlers.get(a)?.notify(...b)}hasListeners(a){return this.eventHandlers.has(a)}mount(b){if(this.instance)return;this.isSVG=ed(b)&&!(ed(b)&&"svg"===b.tagName),this.instance=b;let{layoutId:c,layout:d,visualElement:e}=this.options;if(e&&!e.current&&e.mount(b),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(d||c)&&(this.isLayoutDirty=!0),a){let c,d=0,e=()=>this.root.updateBlockedByResize=!1;aP.read(()=>{d=window.innerWidth}),a(b,()=>{let a=window.innerWidth;if(a!==d){var b;let f,g;d=a,this.root.updateBlockedByResize=!0,c?.(),b=e,f=ba.now(),b=eb(b),g=({timestamp:a})=>{let c=a-f;c>=250&&(aQ(g),b(c-250))},aP.setup(g,!0),c=ea(()=>aQ(g)),eL.hasAnimatedSinceResize&&(eL.hasAnimatedSinceResize=!1,this.nodes.forEach(fF))}})}c&&this.root.registerSharedNode(c,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:a,layout:b,visualElement:c,animate:d}=this.options;this.instance&&!this.hasLayoutListener&&!1!==d&&c&&(a||b)&&(this.hasLayoutListener=!0,this.addEventListener("didUpdate",({delta:a,hasLayoutChanged:b,hasRelativeLayoutChanged:d,layout:e})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||c.getDefaultTransition()||fM,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=c.getProps(),i=!this.targetLayout||!fg(this.targetLayout,e),j=!b&&d;if(this.options.layoutRoot||this.resumeFrom||j||b&&(i||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let b={...cD(f,"layout"),onPlay:g,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(a,j,b.path)}else b||fF(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=e}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,aQ(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes?.forEach(fI),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void this.options.onExitComplete?.();if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function a(b){if(b.hasCheckedOptimisedAppear=!0,b.root===b)return;let{visualElement:c}=b.options;if(!c)return;let d=c.props["data-framer-appear-id"];if(window.MotionHasOptimisedAnimation(d,"transform")){let{layout:a,layoutId:c}=b.options;window.MotionCancelOptimisedAnimation(d,"transform",aP,!(a||c))}let{parent:e}=b;e&&!e.hasCheckedOptimisedAppear&&a(e)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;fs(this),this.isLayoutDirty=!0;for(let a=0;a<this.path.length;a++){let b=this.path[a];b.shouldResetTransform=!0,fs(b),("string"==typeof b.latestValues.x||"string"==typeof b.latestValues.y)&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1),b.isAnimationBlocked&&(b.dragSnapshot||(b.dragSnapshot=b.measure()),this.dragAncestor=b)}let{layoutId:b,layout:c}=this.options;if(void 0===b&&!c)return;let d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let a=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),a&&this.nodes.forEach(fA),this.nodes.forEach(fz);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(fB);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fC),this.nodes.forEach(fD),this.nodes.forEach(fE),this.nodes.forEach(fu),this.nodes.forEach(fv)):this.nodes.forEach(fB),this.clearAllSnapshots();let a=ba.now();aO.delta=p(0,1e3/60,a-aO.timestamp),aO.timestamp=a,aO.isProcessing=!0,aR.update.process(aO),aR.preRender.process(aO),aR.render.process(aO),aO.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fy),this.sharedNodes.forEach((a,b)=>a.members.length?a.removeLeadSnapshot():this.sharedNodes.delete(b))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,aP.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){aP.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||d2(this.snapshot.measuredBox.x)||d2(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a<this.path.length;a++)this.path[a].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=ae()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:b}=this.options;b?.notify("LayoutMeasure",this.layout.layoutBox,a?.layoutBox)}updateScroll(a="measure"){let{scroll:b,instance:e}=this,{animationId:f}=this.root;if(this.options.layoutScroll&&e&&!(b&&b.animationId===f&&b.phase===a)){let g=d(e);this.scroll={animationId:f,phase:a,isRoot:g,offset:c(e),wasRoot:b?b.isRoot:g}}}resetTransform(){if(!e)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;a&&fs(this);let b=this.projectionDelta&&!fd(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&this.instance&&(b||b0(this.latestValues)||f)&&(e(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){var b;let c=this.measurePageBox(),d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),fb((b=d).x),fb(b.y),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return ae();let b=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fP))){let{scroll:a}=this.root;a&&(b6(b.x,a.offset.x),b6(b.y,a.offset.y))}return b}removeElementScroll(a){let b=ae();if(e2(b,a),this.scroll?.wasRoot)return b;for(let c=0;c<this.path.length;c++){let d=this.path[c],{scroll:e,options:f}=d;d!==this.root&&e&&f.layoutScroll&&(e.wasRoot&&e2(b,a),b6(b.x,e.offset.x),b6(b.y,e.offset.y))}return b}applyTransform(a,b=!1,c,d,e=0){let f=c||ae();e2(f,a);for(let a=e;a<this.path.length;a++){let c=this.path[a];!b&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(b6(f.x,-c.scroll.offset.x),b6(f.y,-c.scroll.offset.y)),b0(c.latestValues)&&b9(f,c.latestValues,c.layout?.layoutBox)}return!d&&b0(this.latestValues)&&b9(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(a){let b=ae();e2(b,a);for(let a=0;a<this.path.length;a++){let c,d=this.path[a];b0(d.latestValues)&&(d.instance&&(b$(d.latestValues)&&d.updateSnapshot(),e2(c=ae(),d.measurePageBox())),e8(b,d.latestValues,d.snapshot?.layoutBox,c))}return b0(this.latestValues)&&e8(b,this.latestValues),b}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:void 0===a.crossfade||a.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==aO.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let b=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=b.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=b.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=b.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==b;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:e}=this.options;if(!this.layout||!(d||e))return;this.resolvedRelativeTargetAt=aO.timestamp;let f=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ae(),this.targetWithTransforms=ae()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var g,h,i,j;this.forceRelativeParentToResolveTarget(),g=this.target,h=this.relativeTarget,i=this.relativeParent.target,j=this.options.layoutAnchor||void 0,d5(g.x,h.x,i.x,j?.x),d5(g.y,h.y,i.y,j?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):e2(this.target,this.layout.layoutBox),b5(this.target,this.targetDelta)):e2(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&f&&(!f.resumingFrom==!this.resumingFrom||f.options.layoutRoot&&!f.resumingFrom)&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0),eU?.(1)}}getClosestProjectingParent(){if(!(!this.parent||b$(this.parent.latestValues)||b2(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,b,c){this.relativeParent=a,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ae(),this.relativeTargetOrigin=ae(),d7(this.relativeTargetOrigin,b,c,this.options.layoutAnchor||void 0),e2(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),b=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),b&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===aO.timestamp&&(c=!1),c)return;let{layout:d,layoutId:e}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||e))return;e2(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,g=this.treeScale.y;!function(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let h=0;h<g;h++)f=(e=c[h]).projectionDelta,e.options.visualElement?.props.style?.display!=="contents"&&(!0===d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(b6(a.x,-e.scroll.offset.x),b6(a.y,-e.scroll.offset.y)),f&&(b.x*=f.x.scale,b.y*=f.y.scale,b5(a,f)),d&&(d.path?.[h]||d)!==e&&b0(e.latestValues)&&b9(a,e.latestValues,e.layout?.layoutBox));b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}(this.layoutCorrected,this.treeScale,this.path,b&&(!a.relativeTarget||!!a.relativeParent.resumingFrom||a.relativeParent)),a.layout&&!a.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ae());let{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(e3(this.prevProjectionDelta.x,this.projectionDelta.x),e3(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),d4(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.treeScale.x===f&&this.treeScale.y===g&&fi(this.projectionDelta.x,this.prevProjectionDelta.x)&&fi(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),eU?.(2)}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){this.options.visualElement?.scheduleRender(),a&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ac(),this.projectionDelta=ac(),this.projectionDeltaWithTransform=ac()}setAnimationOrigin(a,b=!1,c){let d,e=this.snapshot,f=e?e.latestValues:{},g={...this.latestValues},h=ac();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;let i=ae(),j=e?.source!==this.layout?.source,k=this.getStack(),l=!k||k.members.length<=1,m=!!(j&&!l&&!0===this.options.crossfade&&!this.path.some(fL));this.animationProgress=0;let n=c?.interpolateProjection(a);this.mixTargetDelta=b=>{let c=b/1e3,e=n?.(c);if(fJ(h.x,a.x,c),fJ(h.y,a.y,c),e&&(h.x.translate=e.x,h.y.translate=e.y),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var k,o,p,q,r,s;d7(i,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,q=this.relativeTargetOrigin,r=i,s=c,fK(p.x,q.x,r.x,s),fK(p.y,q.y,r.y,s),d&&(k=this.relativeTarget,o=d,fe(k.x,o.x)&&fe(k.y,o.y))&&(this.isProjectionDirty=!1),d||(d=ae()),e2(d,this.relativeTarget)}j&&(this.animationValues=g,function(a,b,c,d,e,f){e?(a.opacity=bY(0,c.opacity??1,e$(d)),a.opacityExit=bY(b.opacity??1,0,e_(d))):f&&(a.opacity=bY(b.opacity??1,c.opacity??1,d));for(let e=0;e<eX;e++){let f=eV[e],g=eZ(b,f),h=eZ(c,f);(void 0!==g||void 0!==h)&&(g||(g=0),h||(h=0),0===g||0===h||eY(g)===eY(h)?(a[f]=Math.max(bY(eW(g),eW(h),d),0),(E.test(h)||E.test(g))&&(a[f]+="%")):a[f]=h)}for(let e=0;e<b_.length;e++){let f=b_[e];(b[f]||c[f])&&(a[f]=bY(b[f]||0,c[f]||0,d))}}(g,f,this.latestValues,c,m,l)),e?.rotate!==void 0&&(this.animationValues||(this.animationValues=g),this.animationValues.pathRotation=e.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=c},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(aQ(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=aP.update(()=>{var b,c,d;let e;eL.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=bq(0)),this.motionValue.jump(0,!1),this.currentAnimation=(b=this.motionValue,c=[0,1e3],d={...a,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),a.onUpdate&&a.onUpdate(b)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}},(e=af(b)?b:bq(b)).run(dR("",e,c,d)),e.animation),function(a,b){let c=globalThis.__MOTION_INSPECT__;if(c)try{c({...bb("layout-animation-start",a),node:b})}catch{}}(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:b,layout:c,latestValues:d}=a,{target:e}=a;if(b&&e&&c){if(this!==a&&this.layout&&c&&fO(this.options.animationType,this.layout.layoutBox,c.layoutBox)){let{layoutBox:a}=this.layout,b=e;fN((e=this.target||ae()).x,b.x,a.x),fN(e.y,b.y,a.y)}e2(b,e),b9(b,d),d4(this.projectionDeltaWithTransform,this.layoutCorrected,b,d)}}registerSharedNode(a,b){this.sharedNodes.has(a)||this.sharedNodes.set(a,new fj),this.sharedNodes.get(a).add(b);let c=b.options.initialPromotionConfig;b.promote({transition:c?.transition,preserveFollowOpacity:c?.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(b):void 0})}isLead(){let a=this.getStack();return!a||a.lead===this}getLead(){let{layoutId:a}=this.options;return a&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:b,preserveFollowOpacity:c}={}){this.getStack()?.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let{latestValues:b}=a;if(!b1(b))return;let c={};for(let b=0;b<fp.length;b++)fr(fp[b],a,c,this.animationValues);for(let b=0;b<b_.length;b++)fr(b_[b],a,c,this.animationValues);for(let b in a.render(),c)a.setStaticValue(b,c[b]),this.animationValues&&(this.animationValues[b]=c[b]);a.scheduleRender()}applyProjectionStyles(a,b){if(!this.instance||this.isSVG)return;let c=this.getLead();if(!this.isVisible&&c!==this){a.visibility="hidden";return}let d=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=co(b?.pointerEvents)||"",a.transform=d?d(this.latestValues,""):"none";return}if(!this.projectionDelta||!this.layout||!c.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,a.visibility="",a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=co(b?.pointerEvents)||""),this.hasProjected&&!b0(this.latestValues)&&(a.transform=d?d({},""):"none",this.hasProjected=!1);return}a.visibility="";let e=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=function(a,b,c){let d="",e=a.x.translate/b.x,f=a.y.translate/b.y,g=c?.z||0;(e||f||g)&&(d=`translate3d(${e}px, ${f}px, ${g}px) `);let h="";if(c){let{transformPerspective:a}=c;a&&(d=`perspective(${a}px) ${d}`);for(let a=0;a<b_.length;a++){let b=b_[a],d=c[b];d&&(h+=`${b}(${d}deg) `),!a&&c.pathRotation&&(h+=`rotate(${c.pathRotation}deg) `)}}if(h){(1!==b.x||1!==b.y)&&(d+=`scale(${1/b.x}, ${1/b.y}) `),d+=h;let c=a.x.scale*b.x,e=a.y.scale*b.y;(1!==c||1!==e)&&(d+=`scale(${c}, ${e})`)}else 1!==a.x.scale||1!==a.y.scale?d+=`scale(${a.x.scale}, ${a.y.scale})`:d||1===b.x&&1===b.y||(d="scale(1, 1)");return d||"none"}(this.projectionDeltaWithTransform,this.treeScale,e);d&&(f=d(e,f)),a.transform=f;let{x:g,y:h}=this.projectionDelta;for(let b in a.transformOrigin=`${100*g.origin}% ${100*h.origin}% 0`,c.animationValues?a.opacity=c===this?e.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:e.opacityExit:a.opacity=c===this?void 0!==e.opacity?e.opacity:"":void 0!==e.opacityExit?e.opacityExit:0,bS){if(void 0===e[b])continue;let{correct:d,applyTo:g,isCSSVariable:h}=bS[b],i="none"===f?e[b]:d(e[b],c);if(g){let b=g.length;for(let c=0;c<b;c++)a[g[c]]=i}else h?this.options.visualElement.renderState.vars[b]=i:a[b]=i}this.options.layoutId&&(a.pointerEvents=c===this?co(b?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(fz),this.root.sharedNodes.clear()}}}function fu(a){a.updateLayout(),function(a){let{snapshot:b,dragAncestor:c}=a,d=c?.isAnimationBlocked&&c.layout;if(!b||!d||a.resumeFrom||a.isAnimationBlocked)return;let e=c.dragSnapshot;d8(a=>b6(b.layoutBox[a],d.layoutBox[a].min-e.layoutBox[a].min))}(a)}function fv(a){let b=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&b&&a.hasListeners("didUpdate")){let{layoutBox:c,measuredBox:d}=a.layout,{animationType:e}=a.options,f=b.source!==a.layout.source,g=(d,f)=>{if("size"===e)d8(a=>{let b=d2(d[a]);d[a].min=f[a].min,d[a].max=d[a].min+b});else if("x"===e||"y"===e){let a="x"===e?"y":"x";e1(d[a],f[a])}else fO(e,b.layoutBox,c)&&d8(b=>{let c=d2(f[b]);d[b].max=d[b].min+c,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+c)})},h=f?b.measuredBox:b.layoutBox;g(h,c);let i=ac();d4(i,c,b.layoutBox);let j=ac();d4(j,f?a.applyTransform(d,!0):c,h);let k=!fd(i),l=!1,m=a.getClosestProjectingParent();if((!f||m?.options.layoutRoot&&a.resumeFrom?.path.includes(m))&&m&&!m.resumeFrom){let{snapshot:d,layout:e}=m;if(d&&e){let h=a.options.layoutAnchor||void 0,i=ae();d7(i,f?a.resumeFrom.applyTransform(b.layoutBox,!0,void 0,!0,m.depth+1):b.layoutBox,d.layoutBox,h);let j=ae();d7(j,c,e.layoutBox,h),f&&g(i,j),fg(i,j)||(l=!0),m.options.layoutRoot&&(a.relativeTarget=j,a.relativeTargetOrigin=i,a.relativeParent=m)}}a.notifyListeners("didUpdate",{layout:c,snapshot:b,delta:j,layoutDelta:i,hasLayoutChanged:k,hasRelativeLayoutChanged:l})}else a.isLead()&&a.options.onExitComplete?.();a.options.transition=void 0}function fw(a){eU?.(0),a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function fx(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function fy(a){a.clearSnapshot()}function fz(a){a.clearMeasurements()}function fA(a){a.isLayoutDirty=!0,a.updateLayout()}function fB(a){a.isLayoutDirty=!1}function fC(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.dragSnapshot||a.layout,a.isLayoutDirty=!0)}function fD(a){a.relativeTarget&&a.relativeParent?.isLayoutDirty&&(a.currentAnimation?a.isLayoutDirty=!0:(a.targetDelta=void 0,a.removeRelativeTarget()))}function fE(a){let{visualElement:b}=a.options;b?.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),a.resetTransform()}function fF(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function fG(a){a.resolveTargetDelta()}function fH(a){a.calcProjection()}function fI(a){a.resetSkewAndRotation()}function fJ(a,b,c){a.translate=bY(b.translate,0,c),a.scale=bY(b.scale,1,c),a.origin=b.origin,a.originPoint=b.originPoint}function fK(a,b,c,d){a.min=bY(b.min,c.min,d),a.max=bY(b.max,c.max,d)}function fL(a){return a.animationValues?.opacityExit!==void 0}let fM={duration:.45,ease:[.4,0,.1,1]};function fN(a,b,c){a.max=d2(c)+(a.min=b.min)}function fO(a,b,c){return"position"===a||"preserve-aspect"===a&&!(.2>=Math.abs(fh(b)-fh(c)))}function fP(a){return a!==a.root&&a.scroll?.wasRoot}let fQ=ft({attachResizeListener:(a,b)=>d$(a,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fR=ft({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!ce.current){let a=new fQ({});a.mount(window),a.setOptions({layoutScroll:!0}),ce.current=a}return ce.current},resetTransform:(a,b)=>{a.style.transform=void 0!==b?b:"none"},checkIsScrollRoot:a=>"fixed"===window.getComputedStyle(a).position});function fS(a,b){let c=ee(a),d=new AbortController;return[c,{passive:!0,...b,signal:d.signal},ea(()=>d.abort())]}function fT(a,b,c,d,e){let{props:f}=a,g="while"+c;!e&&a.animationState&&f[g]&&a.animationState.setActive(g,"Start"===d);let h=f["on"+c+d];h&&aP.postRender(()=>h(b,d0(b)))}function fU(a){return ec(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}let fV=(a,b)=>!!b&&(a===b||fV(a,b.parentElement)),fW=new WeakSet;function fX(a){return b=>{"Enter"===b.key&&a(b)}}function fY(a,b){a.dispatchEvent(new PointerEvent("pointer"+b,{isPrimary:!0,bubbles:!0}))}let fZ=new WeakSet,f$=(a,b,c)=>Math.hypot(a.clientX-b.clientX,a.clientY-b.clientY)>c,f_=a=>a.preventDefault();function f0(a,b,c,d){a.current instanceof HTMLButtonElement&&a.current.disabled||fT(a,b,"Tap",c,d)}let f1=new WeakMap,f2=new WeakMap,f3=a=>{let b=f1.get(a.target);b&&b(a)},f4=a=>{a.forEach(f3)},f5={some:0,all:1},f6=function(a,b){if("u"<typeof Proxy)return cy;let c=new Map,d=(c,d)=>cy(c,d,a,b);return new Proxy((a,b)=>d(a,b),{get:(e,f)=>"create"===f?d:(c.has(f)||c.set(f,cy(f,void 0,a,b)),c.get(f))})}(Object.assign({},{animation:{Feature:class extends cz{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>(function(a,b,c={}){return a.notify("AnimationStart",b),(Array.isArray(b)?Promise.all(b.map(b=>dU(a,b,c))):"string"==typeof b?dU(a,b,c):Promise.all(dS(a,cA(a,b,c.custom),c))).then(()=>{a.notify("AnimationComplete",b)})})(a,b,c))),c=dY(),d=!0,e=!1;function f(f){let{props:g,parent:h,manuallyAnimateOnMount:i}=a,{initial:j}=g,k=d||e,l=[],m=(b=j)=>"boolean"!=typeof b&&cA(a,Array.isArray(b)?b[0]:b,a.presenceContext?.custom)||void 0,n=new Map,o={},p=1/0,q=a;do q=!1!==q.props.inherit&&q.parent;while(q&&!q.isControllingVariants)let r=k&&dX(m(j??(q&&q.props.initial))?.transition);if(dW.forEach((b,d)=>{var e,j;let m,s=c[b],t=g[b],u=q&&q.props[b],v=void 0!==t?t:bt(u)||!1===u?u:void 0,w=bt(v),x=b===f?s.isActive:null,y=w&&void 0===t&&!(k&&i);if(s.protectedKeys={...o},!s.isActive&&null===x||!v&&!s.prevProp||bs(v)||"boolean"==typeof v)return;if(!1===x&&(p=d),"exit"===b&&s.isActive&&!0!==x){o={...o,...s.prevResolvedValues};return}let z=(e=s.prevProp,"string"==typeof(j=v)?j!==e:!!Array.isArray(j)&&!dV(j,e)),A=z||w&&(x&&!y||d>p),B=!1,C=Array.isArray(v)?v:[v],D={};if(!1!==x)for(let c of C){let{transition:d,transitionEnd:e,...f}=cA(a,c,cB(a,b))||{};D={...D,...f,...e},m=dX(d)||m}let{prevResolvedValues:E}=s;for(let b in{...E,...D}){let c;if(b in o)continue;let d=D[b],e=E[b],f=Array.isArray(d)&&Array.isArray(e)?!dV(d,e)||z:d!==e;if(f&&null==d)n.has(b)||n.set(b,s.prevOut);else if(f||void 0!==d&&n.has(b)){A=!0,c=n.get(b)||r,n.delete(b)&&(B=!0),s.needsAnimating[b]=!0;let d=a.getValue(b);d&&(d.liveStyle=!1)}else s.protectedKeys[b]=!0;s.out[b]=c}if(s.prevProp=v,s.prevResolvedValues=D,s.prevOut=m,s.isActive&&(o={...o,...D}),A&&(!(y&&z)||B))for(let c of C){let d={type:b};if("string"==typeof c&&k&&i&&h?.enteringChildren){let b=cA(h,c)?.transition?.delayChildren;d.delay=dT(h.enteringChildren,a,b)}l.push({animation:c,options:d})}}),n.size){let b={},c=m(),d=c?.transition;n.forEach((e,f)=>{e&&(d={...d||a.getDefaultTransition(),[f]:e});let h=a.getValue(f);h&&(h.liveStyle=!0);let i=c&&!Array.isArray(j)?c[f]:void 0,k=a.getBaseTargetFromProps(g,f);b[f]=(void 0!==i?i:void 0===k||af(k)?void 0===a.initialValues[f]?a.baseTarget[f]:void 0:k)??null}),d&&(b.transition=d),l.push({animation:b})}let s=k&&a.blockInitialAnimation||d&&!i&&(!1===g.initial||g.initial===g.animate);return d=e=!1,!s&&l.length?b(l):Promise.resolve()}return{animateChanges:f,setActive:function(b,d){if(c[b].isActive===d)return Promise.resolve();a.variantChildren?.forEach(a=>a.animationState?.setActive(b,d)),c[b].isActive=d;let e=f(b);for(let a in c)c[a].protectedKeys={};return e},setAnimateFunction:c=>{b=c(a)},getState:()=>c,reset:()=>{c=dY(),e=!0}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();bs(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends cz{constructor(){super(...arguments),this.id=dZ++}update(){let{presenceContext:a,animationState:b}=this.node;if(!a||!b)return;let{isPresent:c,onExitComplete:d}=a;if(c===!this.exit)return;if(c){if(!0===this.exit){let{initial:a}=this.node.getProps();if(a&&!Array.isArray(a)){let{transition:b,transitionEnd:c,...d}=cA(this.node,a)||{};for(let a in d)this.node.getValue(a)?.jump(d[a])}this.node.blockInitialAnimation=!1,b.reset(),b.animateChanges()}else b.setActive("exit",!1);this.exit=void 0;return}let e=this.exit=b.setActive("exit",!0);d&&e.then(()=>{this.exit===e&&(this.exit=!0,d(this.id))})}mount(){let{register:a}=this.node.presenceContext||{};a&&(this.unmount=a(this.id,this.node)),this.update()}unmount(){}}}},{inView:{Feature:class extends cz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var a;let b;this.stopObserver?.();let{viewport:c={}}=this.node.getProps(),{root:d,margin:e,amount:f="some",once:g}=c,h={root:d?d.current:void 0,rootMargin:e,threshold:"number"==typeof f?f:f5[f]},i=a=>{let{isIntersecting:b}=a;if(this.isInView===b||(this.isInView=b,g&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);let{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),e=b?c:d;e&&e(a)};this.stopObserver=(a=this.node.current,b=function({root:a,...b}){let c=a||document;f2.has(c)||f2.set(c,{});let d=f2.get(c),e=JSON.stringify(b);return d[e]||(d[e]=new IntersectionObserver(f4,{root:a,...b})),d[e]}(h),f1.set(a,i),b.observe(a),()=>{f1.delete(a),b.unobserve(a)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:a,prevProps:b}=this.node;["amount","margin","root"].some(function({viewport:a={}},{viewport:b={}}={}){return c=>a[c]!==b[c]}(a,b))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends cz{constructor(){super(...arguments),this.options={}}mount(){let{current:a}=this.node;a&&(this.update(),this.unmount=function(a,b,c={}){b=eb(b);let[d,e,f]=fS(a,c),g=new WeakMap,h=a=>{let d,f=a.currentTarget;if(!(d_(a)&&!ey())||fZ.has(a))return;c.stopPropagation&&fZ.add(a);let{count:h=1,countTimeout:i=.3,hold:j=0,repeat:k}=c,l=ba.now(),m=a_(j),n=a_(i),o=g.get(f);o?.expire(f$(o.event,a,100))?o=void 0:o&&(aQ(o.expire),g.delete(f));let p=o?o.count+1:1,q=p>=h,r=q&&(j||k),s=!j,t=0;if(fW.add(f),o)d=o.handlers;else{let c=b(f,a);d="function"==typeof c?{onComplete:c}:c||{}}q&&s&&d.onActive?.();let u=a_(k),v=m||u,w=l+v,x=!0,y=()=>{if(e.signal.aborted)return aQ(y);let a=Math.min(1-(w-ba.now())/v,1);x&&a<1&&(a=0),x=!1,d.onHold?.(a),a<1||(s?d.onRepeat?.(++t):(s=!0,d.onActive?.()),k?(x=!0,w+=v=u):aQ(y))},z={...e,capture:!0},A=(b,c)=>{if(window.removeEventListener("pointerup",B,z),window.removeEventListener("pointercancel",C,z),window.removeEventListener("pointermove",D,z),f.removeEventListener("contextmenu",f_),aQ(y),fW.delete(f),d_(b))if(ey()&&(c=!1),c&&!q){let c=ba.now(),h=a=>{let i=e.signal.aborted;if(i||!0===a||ba.now()-c>n)return aQ(h),g.delete(f),i||d.onComplete?.(b,{success:!1}),!0};g.set(f,{count:p,event:a,handlers:d,expire:h}),aP.update(h,!0)}else d.onComplete?.(b,{success:c&&s})},B=a=>{A(a,f===window||f===document||c.useGlobalTarget||fV(f,a.target))},C=a=>{A(a,!1)},D=b=>{d_(b)&&((k||!s)&&f$(a,b,8)||h>1&&ey())&&C(b)};window.addEventListener("pointerup",B,z),window.addEventListener("pointercancel",C,z),(r||h>1)&&window.addEventListener("pointermove",D,z),r&&(aP.update(y,!0),f.addEventListener("contextmenu",f_,{...e,passive:!1}))};return d.forEach(a=>{((c.useGlobalTarget?window:a).addEventListener("pointerdown",h,e),fU(a))&&(a.addEventListener("focus",()=>{let b,c,d;return b=!1,c=fX(()=>{b||fW.has(a)||(b=!0,fY(a,"down"))}),d=fX(()=>{b&&(b=!1,fY(a,"up"))}),void(a.addEventListener("keydown",c,e),a.addEventListener("keyup",d,e),a.addEventListener("blur",()=>{a.removeEventListener("keydown",c),a.removeEventListener("keyup",d),b&&fY(a,"cancel")},{...e,once:!0}))},e),ev.has(a.tagName)||!0===a.isContentEditable||a.hasAttribute("tabindex")||(a.tabIndex=0))}),f}(a,(a,b)=>(f0(this.node,b,"Start"),{onComplete:(a,{success:b})=>f0(this.node,a,b?"":"Cancel"),onRepeat:()=>f0(this.node,b,"",!0)}),this.options))}update(){let{options:a,node:b}=this,{globalTapTarget:c,propagate:d,tap:e}=b.props;for(let b in a)delete a[b];Object.assign(a,e,{useGlobalTarget:c,stopPropagation:d?.tap===!1})}unmount(){}}},focus:{Feature:class extends cz{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=cF(d$(this.node.current,"focus",()=>this.onFocus()),d$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends cz{mount(){let{current:a}=this.node;a&&(this.unmount=function(a,b,c={}){b=eb(b);let[d,e,f]=fS(a,c);return d.forEach(a=>{let c,d=!1,f=!1,g=b=>{c&&(c(b),c=void 0),a.removeEventListener("pointerleave",i)},h=a=>{d=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),f&&(f=!1,g(a))},i=a=>{if("touch"!==a.pointerType){if(d){f=!0;return}g(a)}};a.addEventListener("pointerenter",d=>{if("touch"===d.pointerType||ey())return;f=!1;let g=b(a,d);"function"==typeof g&&(c=g,a.addEventListener("pointerleave",i,e))},e),a.addEventListener("pointerdown",()=>{d=!0,window.addEventListener("pointerup",h,e),window.addEventListener("pointercancel",h,e)},e)}),f}(a,(a,b)=>(fT(this.node,b,"Hover","Start"),a=>fT(this.node,a,"Hover","End"))))}unmount(){}}}},{pan:{Feature:class extends cz{constructor(){super(...arguments),this.removePointerDownListener=aK}onPointerDown(a){this.session=new ep(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:b,onPan:c,onPanEnd:d}=this.node.getProps();return{onSessionStart:eK(a),onStart:eK(b),onMove:eK(c),onEnd:(a,b)=>{delete this.session,d&&aP.postRender(()=>d(a,b))}}}mount(){this.removePointerDownListener=d1(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}}},drag:{Feature:class extends cz{constructor(a){super(a),this.removeGroupControls=aK,this.removeListeners=aK,this.controls=new eF(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||aK}update(){let{dragControls:a,drag:b}=this.node.getProps(),{dragControls:c,drag:d}=this.node.prevProps||{};a!==c&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls))),d&&!b&&this.controls.stop(void 0,void 0,d)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:fR,MeasureLayout:eT}},{layout:{ProjectionNode:fR,MeasureLayout:eT}}),(a,b)=>b.isSVG??cd(a)?new bW(b):new cb(b,{allowProjection:a!==k.Fragment}));a.s(["f",0,f6],31289);let f7=k.useEffect;var f8=k;function f9(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}let ga=a=>{let{width:b,height:c}=a?.getBoundingClientRect()||{};return[b/a?.offsetWidth||1,c/a?.offsetHeight||1]},gb=a=>{let{left:b,top:c}=a.getBoundingClientRect(),d=a;for(;d=d.parentElement||d.parentNode?.host;){let{scrollLeft:a,scrollTop:e}=d;if(a||e){let[f,g]=ga(d);b+=a*f,c+=e*g}if("fixed"===getComputedStyle(d).position)break}let[e,f]=ga(a.offsetParent);return[b/e,c/f]};class gc extends f8.Component{getSnapshotBeforeUpdate(a){let b=this.props.getElement();if(fU(b)&&a.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let a=b.offsetParent,c=fU(a)&&a.offsetWidth||0,d=fU(a)&&a.offsetHeight||0,e=getComputedStyle(b),f=this.props.sizeRef.current;f.height=parseFloat(e.height),f.width=parseFloat(e.width),f.top=b.offsetTop,f.left=b.offsetLeft,f.right=c-f.width-f.left,f.bottom=d-f.height-f.top,f.direction=e.direction,f.point=gb(b)}return null}componentDidUpdate(){}render(){return this.props.children}}function gd({children:a,isPresent:b,anchorX:c,anchorY:d,root:e,pop:f,popNode:g}){let h=(0,f8.useId)(),i=(0,f8.useRef)(null),l=(0,f8.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=(0,f8.useContext)(cg.f),n=function(...a){return k.useCallback(function(...a){return b=>{let c=!1,d=a.map(a=>{let d=f9(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b<d.length;b++){let c=d[b];"function"==typeof c?c():f9(a[b],null)}}}}(...a),a)}(i,!1!==f?a.props?.ref??a?.ref:void 0),o=()=>i.current||g?.current?.current,p=a=>{let{width:b,height:e,top:f,left:g,right:i,bottom:j,direction:k}=l.current,m="rtl"===k,n="left"===c?m?`right:${i}`:`left:${g}`:m?`left:${g}`:`right:${i}`,o="bottom"===d?`bottom:${j}`:`top:${f}`;a?.insertRule(`[data-motion-pop-id="${h}"]{position:absolute!important;width:${b}px!important;height:${e}px!important;${n}px!important;${o}px!important}`)};return(0,f8.useInsertionEffect)(()=>{let{width:a,height:c}=l.current,d=o();if(b||!1===f||!d||!a||!c)return;d.dataset.motionPopId=h;let g=d.ownerDocument,i=g.createElement("style");m&&(i.nonce=m);let j=e??g.head;j.appendChild(i),p(i.sheet);let k=0,n=0;return bm.setup(()=>{let[a,b]=gb(d);k=l.current.point[0]-a,n=l.current.point[1]-b}),bm.read(()=>{let{sheet:a}=i;if(!a||!k&&!n)return;let b=l.current;b.left+=k,b.right-=k,b.top+=n,b.bottom-=n,a.deleteRule(0),p(a)}),()=>{d.removeAttribute("data-motion-pop-id"),j.contains(i)&&j.removeChild(i)}},[b]),(0,j.jsx)(gc,{isPresent:b,getElement:o,sizeRef:l,pop:f,children:!1===f?a:f8.cloneElement(a,{ref:n})})}let ge=({children:a,initial:b,isPresent:c,onExitComplete:d,custom:e,presenceAffectsLayout:f,mode:g,anchorX:h,anchorY:i,root:l})=>{let m=(0,cr.f)(gf),n=(0,k.useId)(),o=(0,k.useRef)(),p=(0,k.useRef)(c),q=(0,k.useRef)(d);f7(()=>{p.current=c,q.current=d});let r=!0,s=(0,k.useMemo)(()=>(r=!1,{id:n,initial:b,isPresent:c,custom:e,onExitComplete:a=>{for(let b of(m.set(a,!0),m.values()))if(!b)return;d&&d()},register:(a,b)=>(m.set(a,!1),b&&b.parent?.presenceContext?.id!==n&&(o.current=b),()=>{m.delete(a),p.current||m.size||q.current?.()})}),[c,m,d]);return f&&r&&(s={...s}),(0,k.useMemo)(()=>{m.forEach((a,b)=>m.set(b,!1))},[c]),k.useEffect(()=>{c||m.size||!d||d()},[c]),a=(0,j.jsx)(gd,{pop:"popLayout"===g,isPresent:c,anchorX:h,anchorY:i,root:l,popNode:o,children:a}),(0,j.jsx)(cq.Provider,{value:s,children:a})};function gf(){return new Map}let gg=a=>a.key||"";function gh(a){let b=[];return k.Children.forEach(a,a=>{(0,k.isValidElement)(a)&&b.push(a)}),b}let gi=({children:a,custom:b,initial:c=!0,onExitComplete:d,presenceAffectsLayout:e=!0,mode:f="sync",propagate:g=!1,anchorX:h="left",anchorY:i="top",root:l})=>{let[m,n]=eN(g),o=(0,k.useMemo)(()=>gh(a),[a]),p=g&&!m?[]:o.map(gg),q=(0,k.useRef)(!0),r=(0,cr.f)(()=>new Map),s=(0,k.useRef)(new Set),[t,u]=(0,k.useState)(o),[v,w]=(0,k.useState)(o);f7(()=>{!g||m||v.length||n?.()},[m,g,v.length,n]);let x=(0,k.useRef)();(0,k.useEffect)(()=>()=>{let a=x.current;x.current=void 0,a?.()},[v]),f7(()=>{q.current=!1;for(let a=0;a<v.length;a++){let b=gg(v[a]);p.includes(b)?(r.delete(b),s.current.delete(b)):!0!==r.get(b)&&r.set(b,!1)}},[v,p.length,p.join("-")]);let y=[];if(o!==t){let a=[...o],b=0;for(let c of v){let d=p.indexOf(gg(c));-1===d?(a.splice(b++,0,c),y.push(c)):b=d+y.length+1}return y.every(a=>r.get(gg(a)))?a=o:"wait"===f&&(a=y),w(gh(a)),u(o),null}let{forceRender:z}=(0,k.useContext)(cf);return(0,j.jsx)(j.Fragment,{children:v.map(a=>{let k=gg(a),t=(!g||!!m)&&(o===v||p.includes(k));return(0,j.jsx)(ge,{isPresent:t,initial:(!q.current||!!c)&&void 0,custom:b,presenceAffectsLayout:e,mode:f,root:l,onExitComplete:t?void 0:()=>{if(s.current.has(k)||!r.has(k))return;s.current.add(k),r.set(k,!0);let a=!0;r.forEach(b=>{b||(a=!1)}),a&&(z?.(),u([]),g&&n?.(),x.current=d)},anchorX:h,anchorY:i,children:a},k)})})};var gj=a.i(8387);a.s(["G",0,function({label:a,required:b,children:c}){return(0,j.jsxs)("div",{children:[(0,j.jsxs)("label",{className:"block text-[11px] font-bold uppercase tracking-wider mb-1.5",children:[a," ",b&&(0,j.jsx)("span",{className:"text-accent",children:"*"})]}),c]})},"n",0,function({open:a,onClose:b,title:c,description:d,icon:e,children:f,className:g}){let h=(0,k.useRef)(null),i=(0,k.useId)(),n=(0,k.useRef)(b);return(n.current=b,(0,k.useEffect)(()=>{if(!a)return;let b=a=>{"Escape"===a.key&&n.current()};window.addEventListener("keydown",b);let c=h.current,d=a=>{if("Tab"!==a.key||!c)return;let b=c.querySelectorAll('a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])');if(0===b.length)return;let d=b[0],e=b[b.length-1];a.shiftKey&&document.activeElement===d?(a.preventDefault(),e.focus()):a.shiftKey||document.activeElement!==e||(a.preventDefault(),d.focus())};return window.addEventListener("keydown",d),c?.focus(),()=>{window.removeEventListener("keydown",b),window.removeEventListener("keydown",d)}},[a]),"u"<typeof document)?null:(0,l.createPortal)((0,j.jsx)(gi,{children:a&&(0,j.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-3",children:[(0,j.jsx)(f6.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-black/80 backdrop-blur-sm",onClick:b}),(0,j.jsxs)(f6.div,{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":i,tabIndex:-1,initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{duration:.2,ease:[.16,1,.3,1]},className:(0,gj.f)("relative z-10 w-full max-w-lg rounded border border-border bg-surface p-6 shadow-[0_0_30px_var(--color-glow)] outline-none",g),children:[(0,j.jsx)("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-primary/60 via-accent/40 to-transparent"}),(0,j.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,j.jsxs)("div",{className:"flex items-center gap-3",children:[e&&(0,j.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded border border-primary/30 bg-primary/5",children:e}),(0,j.jsxs)("div",{children:[(0,j.jsx)("h2",{id:i,className:"text-sm font-bold uppercase tracking-wider",children:c}),d&&(0,j.jsx)("p",{className:"text-[11px] text-text-muted",children:d})]})]}),(0,j.jsx)("button",{onClick:b,"aria-label":"Close dialog",className:"rounded p-1.5 text-text-muted hover:text-accent transition-colors",children:(0,j.jsx)(m.X,{className:"h-4 w-4"})})]}),f]})]})}),document.body)},"W",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all","N",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all","M",0,"w-full rounded border border-border bg-bg px-3 py-2 text-xs text-text placeholder:text-text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/50 focus:shadow-[0_0_8px_var(--color-glow)] transition-all resize-none"],85063)},65802,74290,a=>{"use strict";var b=a.i(72131);let c=(0,b.createContext)({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});a.s(["f",0,c],65802),a.s(["f",0,function(a){let c=(0,b.useRef)(null);return null===c.current&&(c.current=a()),c.current}],74290)},62190,a=>{"use strict";a.s(["f",0,function(a,b){if(a?.inherit&&b){let{inherit:c,...d}=a;return{...b,...d}}return a}])}];
2
2
 
3
3
  //# sourceMappingURL=_1ml_bvfb1fitq._.js.map