@1agh/maude 0.28.0 → 0.29.0

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 (361) hide show
  1. package/README.md +2 -2
  2. package/{plugins/design/dev-server → apps/studio}/ai-banner.tsx +1 -1
  3. package/{plugins/design/dev-server → apps/studio}/annotations-context-toolbar.tsx +286 -6
  4. package/{plugins/design/dev-server → apps/studio}/annotations-layer.tsx +1209 -122
  5. package/{plugins/design/dev-server → apps/studio}/api.ts +486 -32
  6. package/{plugins/design/dev-server → apps/studio}/artboard-activity-overlay.tsx +1 -1
  7. package/{plugins/design/dev-server → apps/studio}/artboard-marquee.tsx +1 -1
  8. package/apps/studio/bin/_motion-sample-playwright.mjs +129 -0
  9. package/{plugins/design/dev-server → apps/studio}/bin/canvas-edit.sh +1 -1
  10. package/{plugins/design/dev-server → apps/studio}/bin/draw-proof.sh +37 -2
  11. package/{plugins/design/dev-server → apps/studio}/bin/preflight.sh +1 -1
  12. package/apps/studio/bin/read-annotations.mjs +438 -0
  13. package/apps/studio/bin/read-annotations.sh +11 -0
  14. package/{plugins/design/dev-server → apps/studio}/bin/runtime-health.sh +1 -1
  15. package/{plugins/design/dev-server → apps/studio}/bin/scenario-report.mjs +1 -1
  16. package/{plugins/design/dev-server → apps/studio}/bin/screenshot.sh +62 -2
  17. package/apps/studio/bin/server-up.sh +234 -0
  18. package/apps/studio/bin/to-lottie-verify.html +68 -0
  19. package/apps/studio/bin/to-lottie.sh +128 -0
  20. package/{plugins/design/dev-server → apps/studio}/bin/visual-sanity.sh +19 -3
  21. package/{plugins/design/dev-server → apps/studio}/build.ts +5 -3
  22. package/{plugins/design/dev-server → apps/studio}/canvas-arrowheads.ts +1 -1
  23. package/{plugins/design/dev-server → apps/studio}/canvas-comment-mount.tsx +2 -2
  24. package/apps/studio/canvas-create.ts +104 -0
  25. package/{plugins/design/dev-server → apps/studio}/canvas-cursors.ts +47 -13
  26. package/{plugins/design/dev-server → apps/studio}/canvas-icons.tsx +60 -1
  27. package/{plugins/design/dev-server → apps/studio}/canvas-lib-inline.ts +1 -1
  28. package/{plugins/design/dev-server → apps/studio}/canvas-lib-resolver.ts +1 -1
  29. package/{plugins/design/dev-server → apps/studio}/canvas-lib.tsx +41 -33
  30. package/{plugins/design/dev-server → apps/studio}/canvas-shell.tsx +57 -42
  31. package/{plugins/design/dev-server → apps/studio}/client/app.jsx +1713 -530
  32. package/apps/studio/client/canvas-url.js +81 -0
  33. package/{plugins/design/dev-server → apps/studio}/client/comments-overlay.css +41 -27
  34. package/{plugins/design/dev-server → apps/studio}/client/index.html +2 -1
  35. package/apps/studio/client/styles/1-tokens-maude.css +296 -0
  36. package/apps/studio/client/styles/3-shell-maude.css +459 -0
  37. package/{plugins/design/dev-server → apps/studio}/client/styles/3-shell.css +129 -0
  38. package/apps/studio/client/styles/4-components-maude.css +74 -0
  39. package/{plugins/design/dev-server → apps/studio}/client/styles/4-components.css +357 -34
  40. package/apps/studio/client/styles/5-maude-overrides.css +123 -0
  41. package/{plugins/design/dev-server → apps/studio}/client/styles/_index.css +9 -0
  42. package/{plugins/design/dev-server → apps/studio}/client/styles.css +1 -1
  43. package/apps/studio/client/tour/overlay.jsx +191 -0
  44. package/apps/studio/client/tour/usage-tour.js +35 -0
  45. package/apps/studio/client/whats-new-seen.js +52 -0
  46. package/apps/studio/client/whats-new.jsx +250 -0
  47. package/{plugins/design/dev-server → apps/studio}/collab/index.ts +4 -4
  48. package/{plugins/design/dev-server → apps/studio}/collab/persistence.ts +1 -1
  49. package/{plugins/design/dev-server → apps/studio}/commands/annotation-strokes-command.ts +1 -1
  50. package/{plugins/design/dev-server → apps/studio}/commands/equal-spacing-command.ts +1 -1
  51. package/{plugins/design/dev-server → apps/studio}/commands/move-artboards-command.ts +1 -1
  52. package/{plugins/design/dev-server → apps/studio}/comments-overlay.tsx +25 -6
  53. package/{plugins/design/dev-server → apps/studio}/context-menu.tsx +2 -2
  54. package/{plugins/design/dev-server → apps/studio}/contextual-toolbar.tsx +4 -7
  55. package/{plugins/design/dev-server → apps/studio}/cursors-overlay.tsx +1 -1
  56. package/apps/studio/dist/client.bundle.js +22825 -0
  57. package/apps/studio/dist/comment-mount.js +1960 -0
  58. package/apps/studio/dist/runtime/lib0_decoding.js +1 -0
  59. package/apps/studio/dist/runtime/lib0_encoding.js +1 -0
  60. package/apps/studio/dist/runtime/motion.js +4 -0
  61. package/apps/studio/dist/runtime/motion_react.js +12 -0
  62. package/apps/studio/dist/runtime/pixi-js.js +3397 -0
  63. package/apps/studio/dist/runtime/react-dom.js +1 -0
  64. package/apps/studio/dist/runtime/react-dom_client.js +9 -0
  65. package/apps/studio/dist/runtime/react.js +1 -0
  66. package/apps/studio/dist/runtime/react_jsx-dev-runtime.js +1 -0
  67. package/apps/studio/dist/runtime/react_jsx-runtime.js +1 -0
  68. package/apps/studio/dist/runtime/y-protocols_awareness.js +1 -0
  69. package/apps/studio/dist/runtime/y-protocols_sync.js +1 -0
  70. package/apps/studio/dist/runtime/yjs.js +5 -0
  71. package/apps/studio/dist/styles.css +5695 -0
  72. package/{plugins/design/dev-server → apps/studio}/dom-selection.ts +75 -4
  73. package/apps/studio/draw/animate.ts +333 -0
  74. package/{plugins/design/dev-server → apps/studio}/draw/brush.ts +4 -4
  75. package/{plugins/design/dev-server → apps/studio}/draw/composition.ts +1 -1
  76. package/{plugins/design/dev-server → apps/studio}/draw/geometry.ts +1 -1
  77. package/{plugins/design/dev-server → apps/studio}/draw/index.ts +9 -6
  78. package/{plugins/design/dev-server → apps/studio}/draw/layout.ts +2 -2
  79. package/apps/studio/draw/morph.ts +204 -0
  80. package/{plugins/design/dev-server → apps/studio}/draw/optimize.ts +1 -1
  81. package/{plugins/design/dev-server → apps/studio}/draw/palette.ts +1 -1
  82. package/{plugins/design/dev-server → apps/studio}/draw/primitives.ts +1 -1
  83. package/apps/studio/draw/serialize-animate.ts +324 -0
  84. package/{plugins/design/dev-server → apps/studio}/draw/serialize.ts +9 -3
  85. package/apps/studio/draw/test/animate.test.ts +172 -0
  86. package/{plugins/design/dev-server → apps/studio}/draw/test/layout.test.ts +1 -1
  87. package/apps/studio/draw/test/morph.test.ts +107 -0
  88. package/apps/studio/draw/test/serialize-animate.test.ts +142 -0
  89. package/{plugins/design/dev-server → apps/studio}/draw/test/serialize.test.ts +1 -1
  90. package/{plugins/design/dev-server → apps/studio}/equal-spacing-detector.ts +1 -1
  91. package/{plugins/design/dev-server → apps/studio}/equal-spacing-handles.tsx +7 -29
  92. package/{plugins/design/dev-server → apps/studio}/examples/perf-100-artboards.tsx +1 -2
  93. package/{plugins/design/dev-server → apps/studio}/export-dialog.tsx +14 -2
  94. package/{plugins/design/dev-server → apps/studio}/exporters/index.ts +2 -2
  95. package/{plugins/design/dev-server → apps/studio}/http.ts +103 -2
  96. package/{plugins/design/dev-server → apps/studio}/input-router.tsx +8 -1
  97. package/{plugins/design/dev-server → apps/studio}/inspect.ts +20 -3
  98. package/{plugins/design/dev-server → apps/studio}/marquee-overlay.tsx +6 -3
  99. package/{plugins/design/dev-server → apps/studio}/participants-chrome.tsx +1 -1
  100. package/{plugins/design/dev-server → apps/studio}/paths.ts +15 -11
  101. package/{plugins/design/dev-server → apps/studio}/server.ts +19 -1
  102. package/{plugins/design/dev-server → apps/studio}/sync/index.ts +6 -6
  103. package/{plugins/design/dev-server → apps/studio}/sync/materialize.ts +2 -2
  104. package/{plugins/design/dev-server → apps/studio}/test/ai-activity.test.ts +1 -1
  105. package/{plugins/design/dev-server → apps/studio}/test/annotations-api.test.ts +1 -2
  106. package/{plugins/design/dev-server → apps/studio}/test/annotations-layer.test.ts +69 -6
  107. package/{plugins/design/dev-server → apps/studio}/test/annotations-roundtrip.test.ts +98 -1
  108. package/apps/studio/test/annotations-text-format.test.ts +396 -0
  109. package/apps/studio/test/asset-api.test.ts +149 -0
  110. package/{plugins/design/dev-server → apps/studio}/test/boot-self-heal.test.ts +1 -1
  111. package/apps/studio/test/canvas-create-api.test.ts +361 -0
  112. package/{plugins/design/dev-server → apps/studio}/test/canvas-cursors.test.ts +3 -1
  113. package/{plugins/design/dev-server → apps/studio}/test/canvas-edit.test.ts +1 -1
  114. package/{plugins/design/dev-server → apps/studio}/test/canvas-hmr-runtime.test.tsx +1 -1
  115. package/{plugins/design/dev-server → apps/studio}/test/canvas-lib-inline.test.ts +1 -1
  116. package/{plugins/design/dev-server → apps/studio}/test/canvas-lib-resolver.test.ts +2 -3
  117. package/apps/studio/test/canvas-media-drop.test.ts +158 -0
  118. package/{plugins/design/dev-server → apps/studio}/test/canvas-meta-api.test.ts +1 -2
  119. package/{plugins/design/dev-server → apps/studio}/test/canvas-origin-gate.test.ts +18 -3
  120. package/apps/studio/test/canvas-url.test.ts +99 -0
  121. package/{plugins/design/dev-server → apps/studio}/test/collab-annotations-bridge.test.ts +1 -1
  122. package/{plugins/design/dev-server → apps/studio}/test/collab-bridge.test.ts +1 -1
  123. package/{plugins/design/dev-server → apps/studio}/test/collab-room.test.ts +1 -1
  124. package/{plugins/design/dev-server → apps/studio}/test/collab-stress.test.ts +1 -1
  125. package/{plugins/design/dev-server → apps/studio}/test/comments-api.test.ts +1 -2
  126. package/{plugins/design/dev-server → apps/studio}/test/compile-entry.test.ts +1 -2
  127. package/{plugins/design/dev-server → apps/studio}/test/exporters/canva.test.ts +1 -2
  128. package/{plugins/design/dev-server → apps/studio}/test/exporters/history.test.ts +1 -2
  129. package/{plugins/design/dev-server → apps/studio}/test/exporters/pw-launch.test.ts +1 -1
  130. package/{plugins/design/dev-server → apps/studio}/test/exporters/scope.test.ts +1 -2
  131. package/{plugins/design/dev-server → apps/studio}/test/exporters/zip.test.ts +1 -2
  132. package/{plugins/design/dev-server → apps/studio}/test/git-lifecycle.test.ts +1 -2
  133. package/{plugins/design/dev-server → apps/studio}/test/handoff-static-frames.test.ts +1 -1
  134. package/{plugins/design/dev-server → apps/studio}/test/hmr-broadcast.test.ts +1 -1
  135. package/apps/studio/test/index-data-canvas-ds.test.ts +97 -0
  136. package/apps/studio/test/motion-sample.test.ts +35 -0
  137. package/{plugins/design/dev-server → apps/studio}/test/perf-harness.ts +1 -1
  138. package/{plugins/design/dev-server → apps/studio}/test/phase-3.6-smoke.test.ts +3 -1
  139. package/apps/studio/test/read-annotations.test.ts +409 -0
  140. package/{plugins/design/dev-server → apps/studio}/test/runtime-bundle.test.ts +1 -1
  141. package/{plugins/design/dev-server → apps/studio}/test/sanitize-annotation-svg.test.ts +108 -2
  142. package/{plugins/design/dev-server → apps/studio}/test/shared-doc-convergence.test.ts +2 -2
  143. package/{plugins/design/dev-server → apps/studio}/test/shared-doc-migrate.test.ts +2 -3
  144. package/{plugins/design/dev-server → apps/studio}/test/shared-doc-projection.test.ts +1 -1
  145. package/{plugins/design/dev-server → apps/studio}/test/snap-distance-pill.test.ts +1 -1
  146. package/{plugins/design/dev-server → apps/studio}/test/sync-agent.test.ts +2 -3
  147. package/{plugins/design/dev-server → apps/studio}/test/sync-atomic-write.test.ts +2 -3
  148. package/{plugins/design/dev-server → apps/studio}/test/sync-connection-state.test.ts +1 -1
  149. package/{plugins/design/dev-server → apps/studio}/test/sync-echo-guard.test.ts +1 -1
  150. package/{plugins/design/dev-server → apps/studio}/test/sync-fs-mirror.test.ts +1 -2
  151. package/{plugins/design/dev-server → apps/studio}/test/sync-hardening.test.ts +4 -5
  152. package/{plugins/design/dev-server → apps/studio}/test/sync-hubs-config.test.ts +1 -2
  153. package/{plugins/design/dev-server → apps/studio}/test/sync-runtime.test.ts +3 -8
  154. package/{plugins/design/dev-server → apps/studio}/test/sync-status.test.ts +1 -1
  155. package/{plugins/design/dev-server → apps/studio}/test/sync-untrusted.test.ts +1 -2
  156. package/apps/studio/test/tour-overlay.test.tsx +56 -0
  157. package/{plugins/design/dev-server → apps/studio}/test/use-agent-presence.test.tsx +4 -1
  158. package/{plugins/design/dev-server → apps/studio}/test/use-annotation-resize.test.ts +43 -0
  159. package/{plugins/design/dev-server → apps/studio}/test/use-snap-guides.test.ts +1 -1
  160. package/{plugins/design/dev-server → apps/studio}/test/use-tool-mode.test.tsx +4 -1
  161. package/apps/studio/test/whats-new.test.ts +101 -0
  162. package/apps/studio/text-imports.d.ts +9 -0
  163. package/{plugins/design/dev-server → apps/studio}/tool-palette.tsx +4 -69
  164. package/{plugins/design/dev-server → apps/studio}/undo-hud.tsx +1 -1
  165. package/{plugins/design/dev-server → apps/studio}/undo-stack.ts +1 -1
  166. package/{plugins/design/dev-server → apps/studio}/use-agent-presence.tsx +2 -2
  167. package/{plugins/design/dev-server → apps/studio}/use-annotation-resize.tsx +41 -12
  168. package/{plugins/design/dev-server → apps/studio}/use-annotation-selection.tsx +3 -7
  169. package/{plugins/design/dev-server → apps/studio}/use-annotations-visibility.tsx +2 -2
  170. package/{plugins/design/dev-server → apps/studio}/use-artboard-drag.tsx +2 -2
  171. package/{plugins/design/dev-server → apps/studio}/use-canvas-activity.tsx +2 -2
  172. package/apps/studio/use-canvas-media-drop.tsx +343 -0
  173. package/{plugins/design/dev-server → apps/studio}/use-collab.tsx +4 -5
  174. package/{plugins/design/dev-server → apps/studio}/use-cursor-modifiers.tsx +1 -1
  175. package/{plugins/design/dev-server → apps/studio}/use-keyboard-discipline.tsx +5 -2
  176. package/{plugins/design/dev-server → apps/studio}/use-selection-set.tsx +10 -2
  177. package/{plugins/design/dev-server → apps/studio}/use-snap-guides.tsx +1 -1
  178. package/{plugins/design/dev-server → apps/studio}/use-tool-mode.tsx +4 -2
  179. package/{plugins/design/dev-server → apps/studio}/use-undo-stack.tsx +5 -6
  180. package/apps/studio/whats-new.json +139 -0
  181. package/apps/studio/whats-new.schema.json +70 -0
  182. package/apps/studio/whats-new.ts +87 -0
  183. package/cli/bin/maude.mjs +10 -0
  184. package/cli/commands/design.mjs +84 -10
  185. package/cli/commands/design.test.mjs +133 -1
  186. package/cli/commands/help.mjs +8 -2
  187. package/cli/commands/hub.mjs +3 -3
  188. package/cli/commands/hub.test.mjs +1 -1
  189. package/cli/commands/scenario-report.mjs +2 -9
  190. package/cli/lib/cache.mjs +1 -1
  191. package/cli/lib/config-lint.mjs +1 -1
  192. package/cli/lib/copy-tree.mjs +1 -1
  193. package/cli/lib/design-link.mjs +1 -1
  194. package/cli/lib/flow-design-integration.test.mjs +2 -2
  195. package/cli/lib/gitignore-block.mjs +1 -0
  196. package/cli/lib/gitignore-block.test.mjs +2 -2
  197. package/cli/lib/plugin-cli-reachability.test.mjs +8 -7
  198. package/cli/lib/preflight.mjs +1 -1
  199. package/cli/lib/stack-detect.mjs +1 -1
  200. package/package.json +16 -16
  201. package/plugins/design/templates/_shell.html +3 -3
  202. package/plugins/design/templates/brief-board.tsx.template +61 -0
  203. package/plugins/design/templates/canvas.tsx.template +1 -1
  204. package/plugins/design/templates/design-system-inspiration/SUB-AGENT-PROMPTS.md +18 -3
  205. package/plugins/design/templates/design-system-inspiration/core/config.json.tpl +1 -1
  206. package/plugins/design/templates/design-system-inspiration/core/preview/_motion-readme.md.tpl +1 -1
  207. package/plugins/flow/.claude-plugin/config.schema.json +16 -0
  208. package/plugins/design/dev-server/bin/server-up.sh +0 -135
  209. package/plugins/design/dev-server/dist/client.bundle.js +0 -20692
  210. package/plugins/design/dev-server/dist/comment-mount.js +0 -1924
  211. package/plugins/design/dev-server/dist/runtime/lib0_decoding.js +0 -620
  212. package/plugins/design/dev-server/dist/runtime/lib0_encoding.js +0 -604
  213. package/plugins/design/dev-server/dist/runtime/motion.js +0 -4944
  214. package/plugins/design/dev-server/dist/runtime/motion_react.js +0 -10056
  215. package/plugins/design/dev-server/dist/runtime/pixi-js.js +0 -53104
  216. package/plugins/design/dev-server/dist/runtime/react-dom.js +0 -231
  217. package/plugins/design/dev-server/dist/runtime/react-dom_client.js +0 -10357
  218. package/plugins/design/dev-server/dist/runtime/react.js +0 -535
  219. package/plugins/design/dev-server/dist/runtime/react_jsx-dev-runtime.js +0 -60
  220. package/plugins/design/dev-server/dist/runtime/react_jsx-runtime.js +0 -85
  221. package/plugins/design/dev-server/dist/runtime/y-protocols_awareness.js +0 -376
  222. package/plugins/design/dev-server/dist/runtime/y-protocols_sync.js +0 -100
  223. package/plugins/design/dev-server/dist/runtime/yjs.js +0 -6687
  224. package/plugins/design/dev-server/dist/styles.css +0 -2710
  225. package/{plugins/design/dev-server → apps/studio}/activity.ts +0 -0
  226. package/{plugins/design/dev-server → apps/studio}/bin/_enumerate-artboards-playwright.mjs +0 -0
  227. package/{plugins/design/dev-server → apps/studio}/bin/_html-playwright.mjs +0 -0
  228. package/{plugins/design/dev-server → apps/studio}/bin/_pdf-playwright.mjs +0 -0
  229. package/{plugins/design/dev-server → apps/studio}/bin/_png-playwright.mjs +0 -0
  230. package/{plugins/design/dev-server → apps/studio}/bin/_pptx-playwright.mjs +0 -0
  231. package/{plugins/design/dev-server → apps/studio}/bin/_pw-launch.mjs +0 -0
  232. package/{plugins/design/dev-server → apps/studio}/bin/_screenshot-playwright.mjs +0 -0
  233. package/{plugins/design/dev-server → apps/studio}/bin/_svg-optimize.mjs +0 -0
  234. package/{plugins/design/dev-server → apps/studio}/bin/_svg-playwright.mjs +0 -0
  235. package/{plugins/design/dev-server → apps/studio}/bin/asset-sweep.sh +0 -0
  236. package/{plugins/design/dev-server → apps/studio}/bin/bootstrap-check.sh +0 -0
  237. package/{plugins/design/dev-server → apps/studio}/bin/check-runtime-bundles.sh +0 -0
  238. package/{plugins/design/dev-server → apps/studio}/bin/draw-build.sh +0 -0
  239. package/{plugins/design/dev-server → apps/studio}/bin/handoff.sh +0 -0
  240. package/{plugins/design/dev-server → apps/studio}/bin/prep.sh +0 -0
  241. package/{plugins/design/dev-server → apps/studio}/bin/slug.sh +0 -0
  242. package/{plugins/design/dev-server → apps/studio}/bin/smoke.sh +0 -0
  243. package/{plugins/design/dev-server → apps/studio}/bin/svg-optimize.sh +0 -0
  244. package/{plugins/design/dev-server → apps/studio}/boot-self-heal.ts +0 -0
  245. package/{plugins/design/dev-server → apps/studio}/canvas-build.ts +0 -0
  246. package/{plugins/design/dev-server → apps/studio}/canvas-edit.ts +0 -0
  247. package/{plugins/design/dev-server → apps/studio}/canvas-header.ts +0 -0
  248. package/{plugins/design/dev-server → apps/studio}/canvas-meta.schema.json +0 -0
  249. package/{plugins/design/dev-server → apps/studio}/canvas-pipeline.ts +0 -0
  250. package/{plugins/design/dev-server → apps/studio}/client/hmr.mjs +0 -0
  251. package/{plugins/design/dev-server → apps/studio}/client/iframe-lazy.mjs +0 -0
  252. package/{plugins/design/dev-server → apps/studio}/client/styles/0-reset.css +0 -0
  253. package/{plugins/design/dev-server → apps/studio}/client/styles/1-tokens.css +0 -0
  254. package/{plugins/design/dev-server → apps/studio}/client/styles/2-layout.css +0 -0
  255. package/{plugins/design/dev-server → apps/studio}/client/styles/5-utilities.css +0 -0
  256. package/{plugins/design/dev-server → apps/studio}/collab/ai-activity.ts +0 -0
  257. package/{plugins/design/dev-server → apps/studio}/collab/awareness-bridge.ts +1 -1
  258. package/{plugins/design/dev-server → apps/studio}/collab/git-lifecycle.ts +0 -0
  259. package/{plugins/design/dev-server → apps/studio}/collab/protocol.ts +0 -0
  260. package/{plugins/design/dev-server → apps/studio}/collab/registry.ts +0 -0
  261. package/{plugins/design/dev-server → apps/studio}/collab/room.ts +0 -0
  262. package/{plugins/design/dev-server → apps/studio}/config.schema.json +0 -0
  263. package/{plugins/design/dev-server → apps/studio}/context.ts +0 -0
  264. package/{plugins/design/dev-server → apps/studio}/dist/runtime/.min-sizes.json +0 -0
  265. package/{plugins/design/dev-server → apps/studio}/draw/test/brush.test.ts +0 -0
  266. package/{plugins/design/dev-server → apps/studio}/draw/test/composition.test.ts +0 -0
  267. package/{plugins/design/dev-server → apps/studio}/draw/test/geometry.test.ts +1 -1
  268. package/{plugins/design/dev-server → apps/studio}/draw/test/gradient.test.ts +0 -0
  269. package/{plugins/design/dev-server → apps/studio}/draw/test/optimize.test.ts +0 -0
  270. package/{plugins/design/dev-server → apps/studio}/draw/test/palette.test.ts +0 -0
  271. package/{plugins/design/dev-server → apps/studio}/draw/test/primitives.test.ts +1 -1
  272. package/{plugins/design/dev-server → apps/studio}/examples/README.md +0 -0
  273. package/{plugins/design/dev-server → apps/studio}/exporters/_browser-bundles.ts +0 -0
  274. package/{plugins/design/dev-server → apps/studio}/exporters/canva-handoff-prompt.ts +0 -0
  275. package/{plugins/design/dev-server → apps/studio}/exporters/canva.ts +0 -0
  276. package/{plugins/design/dev-server → apps/studio}/exporters/html.ts +1 -1
  277. package/{plugins/design/dev-server → apps/studio}/exporters/pdf.ts +1 -1
  278. package/{plugins/design/dev-server → apps/studio}/exporters/png.ts +1 -1
  279. package/{plugins/design/dev-server → apps/studio}/exporters/pptx.ts +1 -1
  280. package/{plugins/design/dev-server → apps/studio}/exporters/scope.ts +0 -0
  281. package/{plugins/design/dev-server → apps/studio}/exporters/svg.ts +1 -1
  282. package/{plugins/design/dev-server → apps/studio}/exporters/zip.ts +0 -0
  283. package/{plugins/design/dev-server → apps/studio}/fs-watch.ts +0 -0
  284. package/{plugins/design/dev-server → apps/studio}/handoff.ts +0 -0
  285. package/{plugins/design/dev-server → apps/studio}/history.ts +0 -0
  286. package/{plugins/design/dev-server → apps/studio}/hmr-broadcast.ts +0 -0
  287. package/{plugins/design/dev-server → apps/studio}/locator.ts +0 -0
  288. package/{plugins/design/dev-server → apps/studio}/mem.ts +0 -0
  289. package/{plugins/design/dev-server → apps/studio}/runtime-bundle.ts +0 -0
  290. package/{plugins/design/dev-server → apps/studio}/server.mjs +0 -0
  291. package/{plugins/design/dev-server → apps/studio}/sync/agent.ts +1 -1
  292. package/{plugins/design/dev-server → apps/studio}/sync/atomic-write.ts +0 -0
  293. package/{plugins/design/dev-server → apps/studio}/sync/codec.ts +0 -0
  294. package/{plugins/design/dev-server → apps/studio}/sync/connection-state.ts +0 -0
  295. package/{plugins/design/dev-server → apps/studio}/sync/echo-guard.ts +0 -0
  296. package/{plugins/design/dev-server → apps/studio}/sync/fs-mirror.ts +0 -0
  297. package/{plugins/design/dev-server → apps/studio}/sync/hubs-config.ts +0 -0
  298. package/{plugins/design/dev-server → apps/studio}/sync/migrate-seed.ts +1 -1
  299. package/{plugins/design/dev-server → apps/studio}/sync/origins.ts +0 -0
  300. package/{plugins/design/dev-server → apps/studio}/sync/projection.ts +3 -3
  301. package/{plugins/design/dev-server → apps/studio}/sync/status.ts +0 -0
  302. package/{plugins/design/dev-server → apps/studio}/sync/untrusted.ts +0 -0
  303. package/{plugins/design/dev-server → apps/studio}/test/_helpers.ts +0 -0
  304. package/{plugins/design/dev-server → apps/studio}/test/active-state.test.ts +0 -0
  305. package/{plugins/design/dev-server → apps/studio}/test/activity.test.ts +0 -0
  306. package/{plugins/design/dev-server → apps/studio}/test/annotation-strokes-command.test.ts +0 -0
  307. package/{plugins/design/dev-server → apps/studio}/test/annotations-draw-modifiers.test.ts +2 -2
  308. package/{plugins/design/dev-server → apps/studio}/test/artboard-activity-overlay.test.tsx +0 -0
  309. package/{plugins/design/dev-server → apps/studio}/test/binary-smoke.test.ts +0 -0
  310. package/{plugins/design/dev-server → apps/studio}/test/bundle-smoke.test.ts +0 -0
  311. package/{plugins/design/dev-server → apps/studio}/test/canvas-build.test.ts +0 -0
  312. package/{plugins/design/dev-server → apps/studio}/test/canvas-header.test.ts +1 -1
  313. package/{plugins/design/dev-server → apps/studio}/test/canvas-lib-motion.test.ts +0 -0
  314. package/{plugins/design/dev-server → apps/studio}/test/canvas-pipeline.test.ts +0 -0
  315. package/{plugins/design/dev-server → apps/studio}/test/canvas-route.test.ts +0 -0
  316. package/{plugins/design/dev-server → apps/studio}/test/collab-awareness-bridge.test.ts +0 -0
  317. package/{plugins/design/dev-server → apps/studio}/test/collab-loopback.test.ts +0 -0
  318. package/{plugins/design/dev-server → apps/studio}/test/collab-protocol.test.ts +2 -2
  319. package/{plugins/design/dev-server → apps/studio}/test/collab-reseed-guard.test.ts +0 -0
  320. package/{plugins/design/dev-server → apps/studio}/test/comment-mount.test.ts +0 -0
  321. package/{plugins/design/dev-server → apps/studio}/test/context-resolve-tokens.test.ts +0 -0
  322. package/{plugins/design/dev-server → apps/studio}/test/csp-canvas-shell.test.ts +0 -0
  323. package/{plugins/design/dev-server → apps/studio}/test/equal-spacing-detector.test.ts +0 -0
  324. package/{plugins/design/dev-server → apps/studio}/test/exporters/endpoint.test.ts +0 -0
  325. package/{plugins/design/dev-server → apps/studio}/test/exporters/html.test.ts +0 -0
  326. package/{plugins/design/dev-server → apps/studio}/test/exporters/pdf.test.ts +0 -0
  327. package/{plugins/design/dev-server → apps/studio}/test/exporters/png.test.ts +0 -0
  328. package/{plugins/design/dev-server → apps/studio}/test/exporters/pptx-deck.test.ts +0 -0
  329. package/{plugins/design/dev-server → apps/studio}/test/exporters/pptx.test.ts +0 -0
  330. package/{plugins/design/dev-server → apps/studio}/test/exporters/svg.test.ts +0 -0
  331. package/{plugins/design/dev-server → apps/studio}/test/fixtures/phase-20-annotations.svg +0 -0
  332. package/{plugins/design/dev-server → apps/studio}/test/fixtures/phase-21-annotations.svg +0 -0
  333. package/{plugins/design/dev-server → apps/studio}/test/fs-watch.test.ts +0 -0
  334. package/{plugins/design/dev-server → apps/studio}/test/handoff.test.ts +1 -1
  335. package/{plugins/design/dev-server → apps/studio}/test/history-rollback.test.ts +0 -0
  336. package/{plugins/design/dev-server → apps/studio}/test/hmr-classify.test.ts +0 -0
  337. package/{plugins/design/dev-server → apps/studio}/test/input-router.test.ts +2 -2
  338. package/{plugins/design/dev-server → apps/studio}/test/locator.test.ts +1 -1
  339. package/{plugins/design/dev-server → apps/studio}/test/marquee-overlay.test.ts +0 -0
  340. package/{plugins/design/dev-server → apps/studio}/test/move-artboards-command.test.ts +0 -0
  341. package/{plugins/design/dev-server → apps/studio}/test/participants-chrome.test.ts +0 -0
  342. package/{plugins/design/dev-server → apps/studio}/test/paths.test.ts +0 -0
  343. package/{plugins/design/dev-server → apps/studio}/test/runtime-bundle-error-mapping.test.ts +0 -0
  344. package/{plugins/design/dev-server → apps/studio}/test/server-lifecycle.test.ts +0 -0
  345. package/{plugins/design/dev-server → apps/studio}/test/shared-doc-foundation.test.ts +0 -0
  346. package/{plugins/design/dev-server → apps/studio}/test/sync-codec.test.ts +1 -1
  347. package/{plugins/design/dev-server → apps/studio}/test/sync-meta-codec.test.ts +1 -1
  348. package/{plugins/design/dev-server → apps/studio}/test/system-endpoint.test.ts +0 -0
  349. package/{plugins/design/dev-server → apps/studio}/test/tool-palette.test.tsx +0 -0
  350. package/{plugins/design/dev-server → apps/studio}/test/undo-stack.test.ts +2 -2
  351. package/{plugins/design/dev-server → apps/studio}/test/use-annotation-selection.test.tsx +0 -0
  352. package/{plugins/design/dev-server → apps/studio}/test/use-artboard-drag.test.ts +3 -3
  353. package/{plugins/design/dev-server → apps/studio}/test/use-canvas-activity.test.tsx +2 -2
  354. package/{plugins/design/dev-server → apps/studio}/test/use-collab.test.ts +0 -0
  355. package/{plugins/design/dev-server → apps/studio}/test/use-cursor-modifiers.test.ts +0 -0
  356. package/{plugins/design/dev-server → apps/studio}/test/use-keyboard-discipline.test.ts +0 -0
  357. package/{plugins/design/dev-server → apps/studio}/test/use-selection-set.test.tsx +1 -1
  358. package/{plugins/design/dev-server → apps/studio}/test/use-undo-stack.test.tsx +2 -2
  359. /package/{plugins/design/dev-server → apps/studio}/test/ws-handshake.test.ts +0 -0
  360. /package/{plugins/design/dev-server → apps/studio}/tsconfig.json +0 -0
  361. /package/{plugins/design/dev-server → apps/studio}/ws.ts +0 -0
@@ -0,0 +1 @@
1
+ var X8=Object.defineProperty;var Y8=(q,G)=>{for(var J in G)X8(q,J,{get:G[J],enumerable:!0,configurable:!0,set:(Q)=>G[J]=()=>Q})};var F={};Y8(F,{skip8:()=>S8,readVarUint8Array:()=>V,readVarUint:()=>Y,readVarString:()=>_,readVarInt:()=>k,readUint8Array:()=>U,readUint8:()=>B,readUint32BigEndian:()=>x8,readUint32:()=>T8,readUint16:()=>D8,readTerminatedUint8Array:()=>c,readTerminatedString:()=>h8,readTailAsUint8Array:()=>O8,readFromDataView:()=>R,readFloat64:()=>n,readFloat32:()=>o,readBigUint64:()=>v8,readBigInt64:()=>d,readAny:()=>j,peekVarUint:()=>U8,peekVarString:()=>A8,peekVarInt:()=>V8,peekUint8:()=>E8,peekUint32:()=>L8,peekUint16:()=>j8,hasContent:()=>L,createDecoder:()=>i,clone:()=>C8,_readVarStringPolyfill:()=>a,_readVarStringNative:()=>t,UintOptRleDecoder:()=>h,StringDecoder:()=>Q8,RleIntDiffDecoder:()=>q8,RleDecoder:()=>r,IntDiffOptRleDecoder:()=>J8,IntDiffDecoder:()=>e,IncUintOptRleDecoder:()=>G8,Decoder:()=>Z});var I=64,K=128;var C=63,H=127;var N=Math.floor;var A=(q,G)=>q<G?q:G,v=(q,G)=>q>G?q:G;var P=(q)=>q!==0?q<0:1/q<0;var{MAX_SAFE_INTEGER:D,MIN_SAFE_INTEGER:y8}=Number;var{fromCharCode:k8,fromCodePoint:m8}=String,s8=k8(65535);var z8=(q)=>{let G=unescape(encodeURIComponent(q)),J=G.length,Q=new Uint8Array(J);for(let X=0;X<J;X++)Q[X]=G.codePointAt(X);return Q},M=typeof TextEncoder<"u"?new TextEncoder:null,H8=(q)=>M.encode(q),p=M?H8:z8,K8=(q)=>{let G=q.length,J="",Q=0;while(G>0){let X=G<1e4?G:1e4,z=q.subarray(Q,Q+X);Q+=X,J+=String.fromCodePoint.apply(null,z),G-=X}return decodeURIComponent(escape(J))},$=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});if($&&$.decode(new Uint8Array).length===1)$=null;var M8=(q)=>$.decode(q),y=$?M8:K8;var T=(q)=>Error(q);class l{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}var f=()=>new l;var B8=(q)=>{let G=q.cpos;for(let J=0;J<q.bufs.length;J++)G+=q.bufs[J].length;return G};var m=(q)=>{let G=new Uint8Array(B8(q)),J=0;for(let Q=0;Q<q.bufs.length;Q++){let X=q.bufs[Q];G.set(X,J),J+=X.length}return G.set(new Uint8Array(q.cbuf.buffer,0,q.cpos),J),G};var W=(q,G)=>{let J=q.cbuf.length;if(q.cpos===J)q.bufs.push(q.cbuf),q.cbuf=new Uint8Array(J*2),q.cpos=0;q.cbuf[q.cpos++]=G};var E=(q,G)=>{while(G>H)W(q,K|H&G),G=N(G/128);W(q,H&G)};var x=new Uint8Array(30000),N8=x.length/3,_8=(q,G)=>{if(G.length<N8){let J=M.encodeInto(G,x).written||0;E(q,J);for(let Q=0;Q<J;Q++)W(q,x[Q])}else F8(q,p(G))},R8=(q,G)=>{let J=unescape(encodeURIComponent(G)),Q=J.length;E(q,Q);for(let X=0;X<Q;X++)W(q,J.codePointAt(X))},c8=M&&M.encodeInto?_8:R8;var P8=(q,G)=>{let J=q.cbuf.length,Q=q.cpos,X=A(J-Q,G.length),z=G.length-X;if(q.cbuf.set(G.subarray(0,X),Q),q.cpos+=X,z>0)q.bufs.push(q.cbuf),q.cbuf=new Uint8Array(v(J*2,z)),q.cbuf.set(G.subarray(X)),q.cpos=z},F8=(q,G)=>{E(q,G.byteLength),P8(q,G)};var o8=new DataView(new ArrayBuffer(4));var s=T("Unexpected end of array"),u=T("Integer out of Range");class Z{constructor(q){this.arr=q,this.pos=0}}var i=(q)=>new Z(q),L=(q)=>q.pos!==q.arr.length,C8=(q,G=q.pos)=>{let J=i(q.arr);return J.pos=G,J},U=(q,G)=>{let J=new Uint8Array(q.arr.buffer,q.pos+q.arr.byteOffset,G);return q.pos+=G,J},V=(q)=>U(q,Y(q)),O8=(q)=>U(q,q.arr.length-q.pos),S8=(q)=>q.pos++,B=(q)=>q.arr[q.pos++],D8=(q)=>{let G=q.arr[q.pos]+(q.arr[q.pos+1]<<8);return q.pos+=2,G},T8=(q)=>{let G=q.arr[q.pos]+(q.arr[q.pos+1]<<8)+(q.arr[q.pos+2]<<16)+(q.arr[q.pos+3]<<24)>>>0;return q.pos+=4,G},x8=(q)=>{let G=q.arr[q.pos+3]+(q.arr[q.pos+2]<<8)+(q.arr[q.pos+1]<<16)+(q.arr[q.pos]<<24)>>>0;return q.pos+=4,G},E8=(q)=>q.arr[q.pos],j8=(q)=>q.arr[q.pos]+(q.arr[q.pos+1]<<8),L8=(q)=>q.arr[q.pos]+(q.arr[q.pos+1]<<8)+(q.arr[q.pos+2]<<16)+(q.arr[q.pos+3]<<24)>>>0,Y=(q)=>{let G=0,J=1,Q=q.arr.length;while(q.pos<Q){let X=q.arr[q.pos++];if(G=G+(X&H)*J,J*=128,X<K)return G;if(G>D)throw u}throw s},k=(q)=>{let G=q.arr[q.pos++],J=G&C,Q=64,X=(G&I)>0?-1:1;if((G&K)===0)return X*J;let z=q.arr.length;while(q.pos<z){if(G=q.arr[q.pos++],J=J+(G&H)*Q,Q*=128,G<K)return X*J;if(J>D)throw u}throw s},U8=(q)=>{let G=q.pos,J=Y(q);return q.pos=G,J},V8=(q)=>{let G=q.pos,J=k(q);return q.pos=G,J},a=(q)=>{let G=Y(q);if(G===0)return"";else{let J=String.fromCodePoint(B(q));if(--G<100)while(G--)J+=String.fromCodePoint(B(q));else while(G>0){let Q=G<1e4?G:1e4,X=q.arr.subarray(q.pos,q.pos+Q);q.pos+=Q,J+=String.fromCodePoint.apply(null,X),G-=Q}return decodeURIComponent(escape(J))}},t=(q)=>$.decode(V(q)),_=$?t:a,c=(q)=>{let G=f(),J;while(!0){if(J=B(q),J===0)return m(G);if(J===1)J=B(q);W(G,J)}},h8=(q)=>y(c(q)),A8=(q)=>{let G=q.pos,J=_(q);return q.pos=G,J},R=(q,G)=>{let J=new DataView(q.arr.buffer,q.arr.byteOffset+q.pos,G);return q.pos+=G,J},o=(q)=>R(q,4).getFloat32(0,!1),n=(q)=>R(q,8).getFloat64(0,!1),d=(q)=>R(q,8).getBigInt64(0,!1),v8=(q)=>R(q,8).getBigUint64(0,!1),g8=[(q)=>{return},(q)=>null,k,o,n,d,(q)=>!1,(q)=>!0,_,(q)=>{let G=Y(q),J={};for(let Q=0;Q<G;Q++){let X=_(q);J[X]=j(q)}return J},(q)=>{let G=Y(q),J=[];for(let Q=0;Q<G;Q++)J.push(j(q));return J},V],j=(q)=>g8[127-B(q)](q);class r extends Z{constructor(q,G){super(q);this.reader=G,this.s=null,this.count=0}read(){if(this.count===0)if(this.s=this.reader(this),L(this))this.count=Y(this)+1;else this.count=-1;return this.count--,this.s}}class e extends Z{constructor(q,G){super(q);this.s=G}read(){return this.s+=k(this),this.s}}class q8 extends Z{constructor(q,G){super(q);this.s=G,this.count=0}read(){if(this.count===0)if(this.s+=k(this),L(this))this.count=Y(this)+1;else this.count=-1;return this.count--,this.s}}class h extends Z{constructor(q){super(q);this.s=0,this.count=0}read(){if(this.count===0){this.s=k(this);let q=P(this.s);if(this.count=1,q)this.s=-this.s,this.count=Y(this)+2}return this.count--,this.s}}class G8 extends Z{constructor(q){super(q);this.s=0,this.count=0}read(){if(this.count===0){this.s=k(this);let q=P(this.s);if(this.count=1,q)this.s=-this.s,this.count=Y(this)+2}return this.count--,this.s++}}class J8 extends Z{constructor(q){super(q);this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let q=k(this),G=q&1;if(this.diff=N(q/2),this.count=1,G)this.count=Y(this)+2}return this.s+=this.diff,this.count--,this.s}}class Q8{constructor(q){this.decoder=new h(q),this.str=_(this.decoder),this.spos=0}read(){let q=this.spos+this.decoder.read(),G=this.str.slice(this.spos,q);return this.spos=q,G}}var{Decoder:n8,IncUintOptRleDecoder:d8,IntDiffDecoder:r8,IntDiffOptRleDecoder:e8,RleDecoder:q6,RleIntDiffDecoder:G6,StringDecoder:J6,UintOptRleDecoder:Q6,_readVarStringNative:X6,_readVarStringPolyfill:Y6,clone:Z6,createDecoder:$6,hasContent:k6,peekUint16:z6,peekUint32:H6,peekUint8:K6,peekVarInt:M6,peekVarString:W6,peekVarUint:B6,readAny:N6,readBigInt64:_6,readBigUint64:R6,readFloat32:P6,readFloat64:F6,readFromDataView:I6,readTailAsUint8Array:C6,readTerminatedString:O6,readTerminatedUint8Array:S6,readUint16:D6,readUint32:T6,readUint32BigEndian:x6,readUint8:E6,readUint8Array:j6,readVarInt:L6,readVarString:U6,readVarUint:V6,readVarUint8Array:h6,skip8:A6}=F;var g6=F;export{A6 as skip8,h6 as readVarUint8Array,V6 as readVarUint,U6 as readVarString,L6 as readVarInt,j6 as readUint8Array,E6 as readUint8,x6 as readUint32BigEndian,T6 as readUint32,D6 as readUint16,S6 as readTerminatedUint8Array,O6 as readTerminatedString,C6 as readTailAsUint8Array,I6 as readFromDataView,F6 as readFloat64,P6 as readFloat32,R6 as readBigUint64,_6 as readBigInt64,N6 as readAny,B6 as peekVarUint,W6 as peekVarString,M6 as peekVarInt,K6 as peekUint8,H6 as peekUint32,z6 as peekUint16,k6 as hasContent,g6 as default,$6 as createDecoder,Z6 as clone,Y6 as _readVarStringPolyfill,X6 as _readVarStringNative,Q6 as UintOptRleDecoder,J6 as StringDecoder,G6 as RleIntDiffDecoder,q6 as RleDecoder,e8 as IntDiffOptRleDecoder,r8 as IntDiffDecoder,d8 as IncUintOptRleDecoder,n8 as Decoder};
@@ -0,0 +1 @@
1
+ var Q8=Object.defineProperty;var X8=(q,G)=>{for(var J in G)Q8(q,J,{get:G[J],enumerable:!0,configurable:!0,set:(Q)=>G[J]=()=>Q})};var O={};X8(O,{writeVarUint8Array:()=>x,writeVarUint:()=>Z,writeVarString:()=>R,writeVarInt:()=>I,writeUint8Array:()=>D,writeUint8:()=>B8,writeUint32BigEndian:()=>R8,writeUint32:()=>k8,writeUint16:()=>N8,writeTerminatedUint8Array:()=>a,writeTerminatedString:()=>O8,writeOnDataView:()=>_,writeFloat64:()=>d,writeFloat32:()=>t,writeBinaryEncoder:()=>P8,writeBigUint64:()=>S8,writeBigInt64:()=>o,writeAny:()=>T,write:()=>X,verifyLen:()=>u,toUint8Array:()=>K,setUint8:()=>I8,setUint32:()=>F8,setUint16:()=>_8,set:()=>N,length:()=>s,hasContent:()=>W8,encode:()=>M8,createEncoder:()=>m,_writeVarStringPolyfill:()=>c,_writeVarStringNative:()=>i,UintOptRleEncoder:()=>j,StringEncoder:()=>J8,RleIntDiffEncoder:()=>e,RleEncoder:()=>n,IntDiffOptRleEncoder:()=>G8,IntDiffEncoder:()=>r,IncUintOptRleEncoder:()=>q8,Encoder:()=>$});var M=Math.floor;var A=Math.abs;var L=(q,G)=>q<G?q:G,P=(q,G)=>q>G?q:G;var g=(q)=>q!==0?q<0:1/q<0;var v=64,k=128;var S=63,W=127,z=255;var C=2147483647;var{MAX_SAFE_INTEGER:V8,MIN_SAFE_INTEGER:T8}=Number;var y=Number.isInteger||((q)=>typeof q==="number"&&isFinite(q)&&M(q)===q);var l=Array.isArray;var{fromCharCode:$8,fromCodePoint:L8}=String,g8=$8(65535);var z8=(q)=>{let G=unescape(encodeURIComponent(q)),J=G.length,Q=new Uint8Array(J);for(let Y=0;Y<J;Y++)Q[Y]=G.codePointAt(Y);return Q},B=typeof TextEncoder<"u"?new TextEncoder:null,H8=(q)=>B.encode(q),U=B?H8:z8;var E=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});if(E&&E.decode(new Uint8Array).length===1)E=null;class ${constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}var m=()=>new $,M8=(q)=>{let G=m();return q(G),K(G)},s=(q)=>{let G=q.cpos;for(let J=0;J<q.bufs.length;J++)G+=q.bufs[J].length;return G},W8=(q)=>q.cpos>0||q.bufs.length>0,K=(q)=>{let G=new Uint8Array(s(q)),J=0;for(let Q=0;Q<q.bufs.length;Q++){let Y=q.bufs[Q];G.set(Y,J),J+=Y.length}return G.set(new Uint8Array(q.cbuf.buffer,0,q.cpos),J),G},u=(q,G)=>{let J=q.cbuf.length;if(J-q.cpos<G)q.bufs.push(new Uint8Array(q.cbuf.buffer,0,q.cpos)),q.cbuf=new Uint8Array(P(J,G)*2),q.cpos=0},X=(q,G)=>{let J=q.cbuf.length;if(q.cpos===J)q.bufs.push(q.cbuf),q.cbuf=new Uint8Array(J*2),q.cpos=0;q.cbuf[q.cpos++]=G},N=(q,G,J)=>{let Q=null;for(let Y=0;Y<q.bufs.length&&Q===null;Y++){let H=q.bufs[Y];if(G<H.length)Q=H;else G-=H.length}if(Q===null)Q=q.cbuf;Q[G]=J},B8=X,I8=N,N8=(q,G)=>{X(q,G&z),X(q,G>>>8&z)},_8=(q,G,J)=>{N(q,G,J&z),N(q,G+1,J>>>8&z)},k8=(q,G)=>{for(let J=0;J<4;J++)X(q,G&z),G>>>=8},R8=(q,G)=>{for(let J=3;J>=0;J--)X(q,G>>>8*J&z)},F8=(q,G,J)=>{for(let Q=0;Q<4;Q++)N(q,G+Q,J&z),J>>>=8},Z=(q,G)=>{while(G>W)X(q,k|W&G),G=M(G/128);X(q,W&G)},I=(q,G)=>{let J=g(G);if(J)G=-G;X(q,(G>S?k:0)|(J?v:0)|S&G),G=M(G/64);while(G>0)X(q,(G>W?k:0)|W&G),G=M(G/128)},V=new Uint8Array(30000),D8=V.length/3,i=(q,G)=>{if(G.length<D8){let J=B.encodeInto(G,V).written||0;Z(q,J);for(let Q=0;Q<J;Q++)X(q,V[Q])}else x(q,U(G))},c=(q,G)=>{let J=unescape(encodeURIComponent(G)),Q=J.length;Z(q,Q);for(let Y=0;Y<Q;Y++)X(q,J.codePointAt(Y))},R=B&&B.encodeInto?i:c,O8=(q,G)=>a(q,U(G)),a=(q,G)=>{for(let J=0;J<G.length;J++){let Q=G[J];if(Q===0||Q===1)X(q,1);X(q,G[J])}X(q,0)},P8=(q,G)=>D(q,K(G)),D=(q,G)=>{let J=q.cbuf.length,Q=q.cpos,Y=L(J-Q,G.length),H=G.length-Y;if(q.cbuf.set(G.subarray(0,Y),Q),q.cpos+=Y,H>0)q.bufs.push(q.cbuf),q.cbuf=new Uint8Array(P(J*2,H)),q.cbuf.set(G.subarray(Y)),q.cpos=H},x=(q,G)=>{Z(q,G.byteLength),D(q,G)},_=(q,G)=>{u(q,G);let J=new DataView(q.cbuf.buffer,q.cpos,G);return q.cpos+=G,J},t=(q,G)=>_(q,4).setFloat32(0,G,!1),d=(q,G)=>_(q,8).setFloat64(0,G,!1),o=(q,G)=>_(q,8).setBigInt64(0,G,!1),S8=(q,G)=>_(q,8).setBigUint64(0,G,!1),b=new DataView(new ArrayBuffer(4)),C8=(q)=>{return b.setFloat32(0,q),b.getFloat32(0)===q},T=(q,G)=>{switch(typeof G){case"string":X(q,119),R(q,G);break;case"number":if(y(G)&&A(G)<=C)X(q,125),I(q,G);else if(C8(G))X(q,124),t(q,G);else X(q,123),d(q,G);break;case"bigint":X(q,122),o(q,G);break;case"object":if(G===null)X(q,126);else if(l(G)){X(q,117),Z(q,G.length);for(let J=0;J<G.length;J++)T(q,G[J])}else if(G instanceof Uint8Array)X(q,116),x(q,G);else{X(q,118);let J=Object.keys(G);Z(q,J.length);for(let Q=0;Q<J.length;Q++){let Y=J[Q];R(q,Y),T(q,G[Y])}}break;case"boolean":X(q,G?120:121);break;default:X(q,127)}};class n extends ${constructor(q){super();this.w=q,this.s=null,this.count=0}write(q){if(this.s===q)this.count++;else{if(this.count>0)Z(this,this.count-1);this.count=1,this.w(this,q),this.s=q}}}class r extends ${constructor(q){super();this.s=q}write(q){I(this,q-this.s),this.s=q}}class e extends ${constructor(q){super();this.s=q,this.count=0}write(q){if(this.s===q&&this.count>0)this.count++;else{if(this.count>0)Z(this,this.count-1);this.count=1,I(this,q-this.s),this.s=q}}}var F=(q)=>{if(q.count>0){if(I(q.encoder,q.count===1?q.s:-q.s),q.count>1)Z(q.encoder,q.count-2)}};class j{constructor(){this.encoder=new $,this.s=0,this.count=0}write(q){if(this.s===q)this.count++;else F(this),this.count=1,this.s=q}toUint8Array(){return F(this),K(this.encoder)}}class q8{constructor(){this.encoder=new $,this.s=0,this.count=0}write(q){if(this.s+this.count===q)this.count++;else F(this),this.count=1,this.s=q}toUint8Array(){return F(this),K(this.encoder)}}var f=(q)=>{if(q.count>0){let G=q.diff*2+(q.count===1?0:1);if(I(q.encoder,G),q.count>1)Z(q.encoder,q.count-2)}};class G8{constructor(){this.encoder=new $,this.s=0,this.count=0,this.diff=0}write(q){if(this.diff===q-this.s)this.s=q,this.count++;else f(this),this.count=1,this.diff=q-this.s,this.s=q}toUint8Array(){return f(this),K(this.encoder)}}class J8{constructor(){this.sarr=[],this.s="",this.lensE=new j}write(q){if(this.s+=q,this.s.length>19)this.sarr.push(this.s),this.s="";this.lensE.write(q.length)}toUint8Array(){let q=new $;return this.sarr.push(this.s),this.s="",R(q,this.sarr.join("")),D(q,this.lensE.toUint8Array()),K(q)}}var{Encoder:h8,IncUintOptRleEncoder:v8,IntDiffEncoder:w8,IntDiffOptRleEncoder:y8,RleEncoder:l8,RleIntDiffEncoder:p8,StringEncoder:b8,UintOptRleEncoder:f8,_writeVarStringNative:m8,_writeVarStringPolyfill:s8,createEncoder:u8,encode:i8,hasContent:c8,length:a8,set:t8,setUint16:d8,setUint32:o8,setUint8:n8,toUint8Array:r8,verifyLen:e8,write:q6,writeAny:G6,writeBigInt64:J6,writeBigUint64:Q6,writeBinaryEncoder:X6,writeFloat32:Y6,writeFloat64:Z6,writeOnDataView:$6,writeTerminatedString:z6,writeTerminatedUint8Array:H6,writeUint16:K6,writeUint32:M6,writeUint32BigEndian:W6,writeUint8:B6,writeUint8Array:I6,writeVarInt:N6,writeVarString:_6,writeVarUint:k6,writeVarUint8Array:R6}=O;var D6=O;export{R6 as writeVarUint8Array,k6 as writeVarUint,_6 as writeVarString,N6 as writeVarInt,I6 as writeUint8Array,B6 as writeUint8,W6 as writeUint32BigEndian,M6 as writeUint32,K6 as writeUint16,H6 as writeTerminatedUint8Array,z6 as writeTerminatedString,$6 as writeOnDataView,Z6 as writeFloat64,Y6 as writeFloat32,X6 as writeBinaryEncoder,Q6 as writeBigUint64,J6 as writeBigInt64,G6 as writeAny,q6 as write,e8 as verifyLen,r8 as toUint8Array,n8 as setUint8,o8 as setUint32,d8 as setUint16,t8 as set,a8 as length,c8 as hasContent,i8 as encode,D6 as default,u8 as createEncoder,s8 as _writeVarStringPolyfill,m8 as _writeVarStringNative,f8 as UintOptRleEncoder,b8 as StringEncoder,p8 as RleIntDiffEncoder,l8 as RleEncoder,y8 as IntDiffOptRleEncoder,w8 as IntDiffEncoder,v8 as IncUintOptRleEncoder,h8 as Encoder};
@@ -0,0 +1,4 @@
1
+ var XJ=Object.defineProperty;var GJ=(Q,J)=>{for(var Z in J)XJ(Q,Z,{get:J[Z],enumerable:!0,configurable:!0,set:($)=>J[Z]=()=>$})};var E9={};GJ(E9,{wrap:()=>N5,warning:()=>q0,warnOnce:()=>Y7,vw:()=>t7,visualElementStore:()=>H0,vh:()=>a7,velocityPerSecond:()=>a0,variantProps:()=>b5,variantPriorityOrder:()=>c6,updateMotionValuesFromProps:()=>d8,translateAxis:()=>z0,transformValueTypes:()=>P8,transformValue:()=>h8,transformProps:()=>t,transformPropOrder:()=>Y0,transformBoxPoints:()=>m8,transformBox:()=>f5,transformAxis:()=>o8,transform:()=>S8,time:()=>f,testValueType:()=>S6,sync:()=>AQ,svgEffect:()=>w4,supportsViewTimeline:()=>G8,supportsScrollTimeline:()=>C6,supportsPartialKeyframes:()=>B4,supportsLinearEasing:()=>d0,supportsFlags:()=>X8,supportsBrowserAnimation:()=>z8,supportedWaapiEasing:()=>V5,styleEffect:()=>N4,steps:()=>T1,statsBuffer:()=>u,startWaapiAnimation:()=>H8,stagger:()=>b4,springValue:()=>y4,spring:()=>S0,setTarget:()=>K8,setStyle:()=>U6,setFeatureDefinitions:()=>o4,setDragLock:()=>C4,secondsToMilliseconds:()=>T,scrollInfo:()=>J7,scroll:()=>$J,scrapeSVGMotionValuesFromProps:()=>Z9,scrapeHTMLMotionValuesFromProps:()=>o6,scalePoint:()=>y5,scaleCorrectors:()=>o0,scale:()=>P5,rootProjectionNode:()=>p7,rgba:()=>C0,rgbUnit:()=>G7,reverseEasing:()=>t0,resolveVariantFromProps:()=>A6,resolveVariant:()=>P0,resolveTransition:()=>L6,resolveMotionValue:()=>n6,resolveElements:()=>Q0,resize:()=>R8,renderSVG:()=>J9,renderHTML:()=>l6,removePointDelta:()=>G9,removeItem:()=>$0,removeBoxTransforms:()=>x7,removeAxisTransforms:()=>H9,removeAxisDelta:()=>X1,recordStats:()=>h4,readTransformValue:()=>Y8,px:()=>U,propagateDirtyNodes:()=>q1,propEffect:()=>I4,progressPercentage:()=>z7,progress:()=>w0,press:()=>V4,prefersReducedMotion:()=>j5,positionalKeys:()=>V6,pixelsToPercent:()=>s8,pipe:()=>n0,percent:()=>_0,parseValueFromTransform:()=>N6,parseCSSVariable:()=>m9,parseAnimateLayoutArgs:()=>LQ,optimizedAppearDataId:()=>l9,optimizedAppearDataAttribute:()=>U8,observeTimeline:()=>g6,numberValueTypes:()=>D0,number:()=>U0,noop:()=>g,nodeGroup:()=>PQ,moveItem:()=>E1,motionValue:()=>m,mixVisibility:()=>Q8,mixValues:()=>I9,mixObject:()=>T9,mixNumber:()=>R,mixLinearColor:()=>q7,mixImmediate:()=>$5,mixComplex:()=>h9,mixColor:()=>B7,mixArray:()=>J8,mix:()=>H6,mirrorEasing:()=>i5,millisecondsToSeconds:()=>r,microtask:()=>B5,memo:()=>s0,measureViewportBox:()=>T7,measurePageBox:()=>e4,maxGeneratorDuration:()=>q6,mapValue:()=>x4,mapEasingToNativeEasing:()=>E5,makeAnimationInstant:()=>R5,keyframes:()=>f0,isZeroValueString:()=>r5,isWillChangeMotionValue:()=>N8,isWaapiSupportedEasing:()=>i9,isVariantNode:()=>v8,isVariantLabel:()=>F5,isTransitionDefined:()=>I8,isSVGTag:()=>Q9,isSVGSVGElement:()=>v6,isSVGElement:()=>k0,isPrimaryPointer:()=>M8,isObject:()=>o5,isNumericalString:()=>l5,isNodeOrChild:()=>D7,isNear:()=>W9,isMotionValue:()=>h,isKeyframesTarget:()=>h5,isHTMLElement:()=>q5,isGenerator:()=>X5,isForcedMotionValue:()=>a8,isElementTextInput:()=>O4,isElementKeyboardAccessible:()=>L8,isEasingArray:()=>J6,isDragging:()=>G0,isDragActive:()=>x6,isDeltaZero:()=>y7,isControllingVariants:()=>V7,isCSSVariableToken:()=>J5,isCSSVariableName:()=>Q5,isBezierDefinition:()=>e0,isAnimationControls:()=>d6,invisibleValues:()=>X6,invariant:()=>o,interpolate:()=>Y5,initPrefersReducedMotion:()=>c8,inertia:()=>D5,inView:()=>_J,hslaToRgba:()=>e7,hsla:()=>E0,hover:()=>P4,hex:()=>O5,hasWarned:()=>R1,hasTransform:()=>M0,hasScale:()=>p6,hasReducedMotionListener:()=>u6,has2DTranslate:()=>E7,globalProjectionState:()=>a6,getViewAnimations:()=>x8,getViewAnimationLayerInfo:()=>k8,getVariantContext:()=>j7,getVariableValue:()=>N7,getValueTransition:()=>e,getValueAsType:()=>u0,getOriginIndex:()=>e9,getOptimisedAppearId:()=>E6,getMixer:()=>G6,getFinalKeyframe:()=>T0,getFeatureDefinitions:()=>r4,getEasingForSegment:()=>Z6,getDefaultValueType:()=>T6,getDefaultTransition:()=>F8,getComputedStyle:()=>M7,getAnimationMap:()=>B8,getAnimatableNone:()=>h6,generateLinearEasing:()=>z6,frameSteps:()=>_6,frameData:()=>v,frame:()=>M,followValue:()=>T8,flushKeyframeResolvers:()=>W8,findValueType:()=>b8,findDimensionValueType:()=>U7,fillWildcards:()=>I6,fillOffset:()=>F6,easingDefinitionToFunction:()=>U5,easeOut:()=>i7,easeInOut:()=>Q6,easeIn:()=>r7,eachAxis:()=>d7,distance2D:()=>YJ,distance:()=>V9,dimensionValueTypes:()=>w7,delayInSeconds:()=>G1,delay:()=>G1,degrees:()=>B0,defaultValueTypes:()=>r9,defaultTransformValue:()=>K6,defaultOffset:()=>W5,defaultEasing:()=>k9,cubicBezierAsString:()=>c0,cubicBezier:()=>V0,createScopedAnimate:()=>N1,createRenderBatcher:()=>$6,createProjectionNode:()=>t6,createGeneratorEasing:()=>B6,createDelta:()=>l0,createBox:()=>k,createAxisDelta:()=>f8,createAxis:()=>g8,createAnimationState:()=>JQ,correctBoxShadow:()=>n8,correctBorderRadius:()=>I5,copyBoxInto:()=>i,copyAxisInto:()=>i6,copyAxisDeltaInto:()=>k7,convertOffsetToTimes:()=>$8,convertBoxToBoundingBox:()=>i4,convertBoundingBoxToBox:()=>p8,containsCSSVariable:()=>X7,complex:()=>p,compareByDepth:()=>N9,color:()=>y,collectMotionValues:()=>T5,cleanDirtyNodes:()=>B1,clamp:()=>c,circOut:()=>t5,circInOut:()=>e5,circIn:()=>a5,checkVariantsDidChange:()=>W1,cancelSync:()=>VQ,cancelMicrotask:()=>U4,cancelFrame:()=>x,camelToDash:()=>j0,camelCaseAttributes:()=>r6,calcRelativePosition:()=>d5,calcRelativeBox:()=>X9,calcRelativeAxisPosition:()=>Y9,calcRelativeAxis:()=>_9,calcLength:()=>J0,calcGeneratorDuration:()=>_5,calcChildStagger:()=>M6,calcBoxDelta:()=>K5,calcAxisDelta:()=>$9,buildTransform:()=>i8,buildSVGPath:()=>t8,buildSVGAttrs:()=>e8,buildProjectionTransform:()=>F9,buildHTMLStyles:()=>m6,boxEqualsRounded:()=>f7,boxEquals:()=>B9,backOut:()=>W7,backInOut:()=>s5,backIn:()=>w5,axisEqualsRounded:()=>q9,axisEquals:()=>z9,axisDeltaEquals:()=>v7,attrEffect:()=>F4,attachSpring:()=>f4,attachFollow:()=>L7,aspectRatio:()=>g7,arc:()=>W4,applyTreeDeltas:()=>r8,applyPxDefaults:()=>O8,applyPointDelta:()=>l8,applyGeneratorOptions:()=>P6,applyBoxDelta:()=>S7,applyAxisDelta:()=>R7,anticipate:()=>n5,animationMapKey:()=>q8,animateVisualElement:()=>C8,animateView:()=>m4,animateVariant:()=>R6,animateValue:()=>m1,animateTarget:()=>H5,animateSingleValue:()=>s6,animateMotionValue:()=>G5,animateMini:()=>vQ,animate:()=>fQ,analyseComplexValue:()=>R0,alpha:()=>O0,addValueToWillChange:()=>w8,addUniqueItem:()=>i0,addStyleValue:()=>k6,addScaleCorrector:()=>_1,addDomEvent:()=>K9,addAttrValue:()=>j6,activeAnimations:()=>a,acceleratedValues:()=>O6,VisualElement:()=>k5,ViewTransitionBuilder:()=>y8,SubscriptionManager:()=>y0,SVGVisualElement:()=>b7,ObjectVisualElement:()=>h7,NodeStack:()=>u7,NativeAnimationWrapper:()=>D6,NativeAnimationExtended:()=>I7,NativeAnimation:()=>I0,MotionValue:()=>b0,MotionGlobalConfig:()=>n,LayoutAnimationBuilder:()=>F1,KeyframeResolver:()=>v0,JSAnimation:()=>F0,HTMLVisualElement:()=>g5,HTMLProjectionNode:()=>C9,GroupAnimationWithThen:()=>S5,GroupAnimation:()=>h0,FlatTree:()=>c7,Feature:()=>Z1,DocumentProjectionNode:()=>U9,DOMVisualElement:()=>x5,DOMKeyframesResolver:()=>O7,AsyncMotionValueAnimation:()=>K7});function i0(Q,J){if(Q.indexOf(J)===-1)Q.push(J)}function $0(Q,J){let Z=Q.indexOf(J);if(Z>-1)Q.splice(Z,1)}function E1([...Q],J,Z){let $=J<0?Q.length+J:J;if($>=0&&$<Q.length){let _=Z<0?Q.length+Z:Z,[W]=Q.splice(J,1);Q.splice(_,0,W)}return Q}var c=(Q,J,Z)=>{if(Z>J)return J;if(Z<Q)return Q;return Z};function _7(Q,J){return J?`${Q}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${J}`:Q}var q0=()=>{},o=()=>{};if(typeof process<"u"&&process.env?.NODE_ENV!=="production")q0=(Q,J,Z)=>{if(!Q&&typeof console<"u")console.warn(_7(J,Z))},o=(Q,J,Z)=>{if(!Q)throw Error(_7(J,Z))};var n={};var l5=(Q)=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(Q);var o5=(Q)=>typeof Q==="object"&&Q!==null;var r5=(Q)=>/^0[^.\s]+$/u.test(Q);function s0(Q){let J;return()=>{if(J===void 0)J=Q();return J}}var g=(Q)=>Q;var n0=(...Q)=>Q.reduce((J,Z)=>($)=>Z(J($)));var w0=(Q,J,Z)=>{let $=J-Q;return $?(Z-Q)/$:1};class y0{constructor(){this.subscriptions=[]}add(Q){return i0(this.subscriptions,Q),()=>$0(this.subscriptions,Q)}notify(Q,J,Z){let $=this.subscriptions.length;if(!$)return;if($===1)this.subscriptions[0](Q,J,Z);else for(let _=0;_<$;_++){let W=this.subscriptions[_];W&&W(Q,J,Z)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}var T=(Q)=>Q*1000,r=(Q)=>Q/1000;var a0=(Q,J)=>J?Q*(1000/J):0;var R9=new Set;function R1(Q){return R9.has(Q)}function Y7(Q,J,Z){if(Q||R9.has(J))return;console.warn(_7(J,Z)),R9.add(J)}var N5=(Q,J,Z)=>{let $=J-Q;return((Z-Q)%$+$)%$+Q};var S1=(Q,J,Z)=>(((1-3*Z+3*J)*Q+(3*Z-6*J))*Q+3*J)*Q,HJ=0.0000001,zJ=12;function qJ(Q,J,Z,$,_){let W,Y,X=0;do if(Y=J+(Z-J)/2,W=S1(Y,$,_)-Q,W>0)Z=Y;else J=Y;while(Math.abs(W)>HJ&&++X<zJ);return Y}function V0(Q,J,Z,$){if(Q===J&&Z===$)return g;let _=(W)=>qJ(W,0,1,Q,Z);return(W)=>W===0||W===1?W:S1(_(W),J,$)}var i5=(Q)=>(J)=>J<=0.5?Q(2*J)/2:(2-Q(2*(1-J)))/2;var t0=(Q)=>(J)=>1-Q(1-J);var W7=V0(0.33,1.53,0.69,0.99),w5=t0(W7),s5=i5(w5);var n5=(Q)=>Q>=1?1:(Q*=2)<1?0.5*w5(Q):0.5*(2-Math.pow(2,-10*(Q-1)));var a5=(Q)=>1-Math.sin(Math.acos(Q)),t5=t0(a5),e5=i5(a5);var r7=V0(0.42,0,1,1),i7=V0(0,0,0.58,1),Q6=V0(0.42,0,0.58,1);function T1(Q,J="end"){return(Z)=>{Z=J==="end"?Math.min(Z,0.999):Math.max(Z,0.001);let $=Z*Q,_=J==="end"?Math.floor($):Math.ceil($);return c(0,1,_/Q)}}var J6=(Q)=>{return Array.isArray(Q)&&typeof Q[0]!=="number"};function Z6(Q,J){return J6(Q)?Q[N5(0,Q.length,J)]:Q}var e0=(Q)=>Array.isArray(Q)&&typeof Q[0]==="number";var h1={linear:g,easeIn:r7,easeInOut:Q6,easeOut:i7,circIn:a5,circInOut:e5,circOut:t5,backIn:w5,backInOut:s5,backOut:W7,anticipate:n5},BJ=(Q)=>{return typeof Q==="string"},U5=(Q)=>{if(e0(Q)){o(Q.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[J,Z,$,_]=Q;return V0(J,Z,$,_)}else if(BJ(Q))return o(h1[Q]!==void 0,`Invalid easing type '${Q}'`,"invalid-easing-type"),h1[Q];return Q};var C5=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var u={value:null,addProjectionMetrics:null};function b1(Q,J){let Z=new Set,$=new Set,_=!1,W=!1,Y=new WeakSet,X={delta:0,timestamp:0,isProcessing:!1},G=0;function H(q){if(Y.has(q))z.schedule(q),Q();G++,q(X)}let z={schedule:(q,B=!1,F=!1)=>{let K=F&&_?Z:$;if(B)Y.add(q);return K.add(q),q},cancel:(q)=>{$.delete(q),Y.delete(q)},process:(q)=>{if(X=q,_){W=!0;return}_=!0;let B=Z;if(Z=$,$=B,Z.forEach(H),J&&u.value)u.value.frameloop[J].push(G);if(G=0,Z.clear(),_=!1,W)W=!1,z.process(q)}};return z}var FJ=40;function $6(Q,J){let Z=!1,$=!0,_={delta:0,timestamp:0,isProcessing:!1},W=()=>Z=!0,Y=C5.reduce((C,P)=>{return C[P]=b1(W,J?P:void 0),C},{}),{setup:X,read:G,resolveKeyframes:H,preUpdate:z,update:q,preRender:B,render:F,postRender:I}=Y,K=()=>{let C=n.useManualTiming,P=C?_.timestamp:performance.now();if(Z=!1,!C)_.delta=$?16.666666666666668:Math.max(Math.min(P-_.timestamp,FJ),1);if(_.timestamp=P,_.isProcessing=!0,X.process(_),G.process(_),H.process(_),z.process(_),q.process(_),B.process(_),F.process(_),I.process(_),_.isProcessing=!1,Z&&J)$=!1,Q(K)},N=()=>{if(Z=!0,$=!0,!_.isProcessing)Q(K)};return{schedule:C5.reduce((C,P)=>{let L=Y[P];return C[P]=(S,E=!1,D=!1)=>{if(!Z)N();return L.schedule(S,E,D)},C},{}),cancel:(C)=>{for(let P=0;P<C5.length;P++)Y[C5[P]].cancel(C)},state:_,steps:Y}}var{schedule:M,cancel:x,state:v,steps:_6}=$6(typeof requestAnimationFrame<"u"?requestAnimationFrame:g,!0);var s7;function IJ(){s7=void 0}var f={now:()=>{if(s7===void 0)f.set(v.isProcessing||n.useManualTiming?v.timestamp:performance.now());return s7},set:(Q)=>{s7=Q,queueMicrotask(IJ)}};var a={layout:0,mainThread:0,waapi:0};var j1=(Q)=>(J)=>typeof J==="string"&&J.startsWith(Q),Q5=j1("--"),KJ=j1("var(--"),J5=(Q)=>{if(!KJ(Q))return!1;return NJ.test(Q.split("/*")[0].trim())},NJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function X7(Q){if(typeof Q!=="string")return!1;return Q.split("/*")[0].includes("var(--")}var U0={test:(Q)=>typeof Q==="number",parse:parseFloat,transform:(Q)=>Q},O0={...U0,transform:(Q)=>c(0,1,Q)},P5={...U0,default:1};var Z5=(Q)=>Math.round(Q*1e5)/1e5;var Y6=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function k1(Q){return Q==null}var x1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var W6=(Q,J)=>(Z)=>{return Boolean(typeof Z==="string"&&x1.test(Z)&&Z.startsWith(Q)||J&&!k1(Z)&&Object.prototype.hasOwnProperty.call(Z,J))},n7=(Q,J,Z)=>($)=>{if(typeof $!=="string")return $;let[_,W,Y,X]=$.match(Y6);return{[Q]:parseFloat(_),[J]:parseFloat(W),[Z]:parseFloat(Y),alpha:X!==void 0?parseFloat(X):1}};var wJ=(Q)=>c(0,255,Q),G7={...U0,transform:(Q)=>Math.round(wJ(Q))},C0={test:W6("rgb","red"),parse:n7("red","green","blue"),transform:({red:Q,green:J,blue:Z,alpha:$=1})=>"rgba("+G7.transform(Q)+", "+G7.transform(J)+", "+G7.transform(Z)+", "+Z5(O0.transform($))+")"};function UJ(Q){let J="",Z="",$="",_="";if(Q.length>5)J=Q.substring(1,3),Z=Q.substring(3,5),$=Q.substring(5,7),_=Q.substring(7,9);else J=Q.substring(1,2),Z=Q.substring(2,3),$=Q.substring(3,4),_=Q.substring(4,5),J+=J,Z+=Z,$+=$,_+=_;return{red:parseInt(J,16),green:parseInt(Z,16),blue:parseInt($,16),alpha:_?parseInt(_,16)/255:1}}var O5={test:W6("#"),parse:UJ,transform:C0.transform};var H7=(Q)=>({test:(J)=>typeof J==="string"&&J.endsWith(Q)&&J.split(" ").length===1,parse:parseFloat,transform:(J)=>`${J}${Q}`}),B0=H7("deg"),_0=H7("%"),U=H7("px"),a7=H7("vh"),t7=H7("vw"),z7=(()=>({..._0,parse:(Q)=>_0.parse(Q)/100,transform:(Q)=>_0.transform(Q*100)}))();var E0={test:W6("hsl","hue"),parse:n7("hue","saturation","lightness"),transform:({hue:Q,saturation:J,lightness:Z,alpha:$=1})=>{return"hsla("+Math.round(Q)+", "+_0.transform(Z5(J))+", "+_0.transform(Z5(Z))+", "+Z5(O0.transform($))+")"}};var y={test:(Q)=>C0.test(Q)||O5.test(Q)||E0.test(Q),parse:(Q)=>{if(C0.test(Q))return C0.parse(Q);else if(E0.test(Q))return E0.parse(Q);else return O5.parse(Q)},transform:(Q)=>{return typeof Q==="string"?Q:Q.hasOwnProperty("red")?C0.transform(Q):E0.transform(Q)},getAnimatableNone:(Q)=>{let J=y.parse(Q);return J.alpha=0,y.transform(J)}};var y1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function CJ(Q){return isNaN(Q)&&typeof Q==="string"&&(Q.match(Y6)?.length||0)+(Q.match(y1)?.length||0)>0}var g1="number",v1="color",PJ="var",OJ="var(",f1="${}",DJ=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function R0(Q){let J=Q.toString(),Z=[],$={color:[],number:[],var:[]},_=[],W=0,X=J.replace(DJ,(G)=>{if(y.test(G))$.color.push(W),_.push(v1),Z.push(y.parse(G));else if(G.startsWith(OJ))$.var.push(W),_.push(PJ),Z.push(G);else $.number.push(W),_.push(g1),Z.push(parseFloat(G));return++W,f1}).split(f1);return{values:Z,split:X,indexes:$,types:_}}function MJ(Q){return R0(Q).values}function d1({split:Q,types:J}){let Z=Q.length;return($)=>{let _="";for(let W=0;W<Z;W++)if(_+=Q[W],$[W]!==void 0){let Y=J[W];if(Y===g1)_+=Z5($[W]);else if(Y===v1)_+=y.transform($[W]);else _+=$[W]}return _}}function LJ(Q){return d1(R0(Q))}var AJ=(Q)=>typeof Q==="number"?0:y.test(Q)?y.getAnimatableNone(Q):Q,VJ=(Q,J)=>{if(typeof Q==="number")return J?.trim().endsWith("/")?Q:0;return AJ(Q)};function EJ(Q){let J=R0(Q);return d1(J)(J.values.map(($,_)=>VJ($,J.split[_])))}var p={test:CJ,parse:MJ,createTransformer:LJ,getAnimatableNone:EJ};function S9(Q,J,Z){if(Z<0)Z+=1;if(Z>1)Z-=1;if(Z<0.16666666666666666)return Q+(J-Q)*6*Z;if(Z<0.5)return J;if(Z<0.6666666666666666)return Q+(J-Q)*(0.6666666666666666-Z)*6;return Q}function e7({hue:Q,saturation:J,lightness:Z,alpha:$}){Q/=360,J/=100,Z/=100;let _=0,W=0,Y=0;if(!J)_=W=Y=Z;else{let X=Z<0.5?Z*(1+J):Z+J-Z*J,G=2*Z-X;_=S9(G,X,Q+0.3333333333333333),W=S9(G,X,Q),Y=S9(G,X,Q-0.3333333333333333)}return{red:Math.round(_*255),green:Math.round(W*255),blue:Math.round(Y*255),alpha:$}}function $5(Q,J){return(Z)=>Z>0?J:Q}var R=(Q,J,Z)=>{return Q+(J-Q)*Z};var q7=(Q,J,Z)=>{let $=Q*Q,_=Z*(J*J-$)+$;return _<0?0:Math.sqrt(_)},RJ=[O5,C0,E0],SJ=(Q)=>RJ.find((J)=>J.test(Q));function c1(Q){let J=SJ(Q);if(q0(Boolean(J),`'${Q}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(J))return!1;let Z=J.parse(Q);if(J===E0)Z=e7(Z);return Z}var B7=(Q,J)=>{let Z=c1(Q),$=c1(J);if(!Z||!$)return $5(Q,J);let _={...Z};return(W)=>{return _.red=q7(Z.red,$.red,W),_.green=q7(Z.green,$.green,W),_.blue=q7(Z.blue,$.blue,W),_.alpha=R(Z.alpha,$.alpha,W),C0.transform(_)}};var X6=new Set(["none","hidden"]);function Q8(Q,J){if(X6.has(Q))return(Z)=>Z<=0?Q:J;else return(Z)=>Z>=1?J:Q}function TJ(Q,J){return(Z)=>R(Q,J,Z)}function G6(Q){if(typeof Q==="number")return TJ;else if(typeof Q==="string")return J5(Q)?$5:y.test(Q)?B7:h9;else if(Array.isArray(Q))return J8;else if(typeof Q==="object")return y.test(Q)?B7:T9;return $5}function J8(Q,J){let Z=[...Q],$=Z.length,_=Q.map((W,Y)=>G6(W)(W,J[Y]));return(W)=>{for(let Y=0;Y<$;Y++)Z[Y]=_[Y](W);return Z}}function T9(Q,J){let Z={...Q,...J},$={};for(let _ in Z)if(Q[_]!==void 0&&J[_]!==void 0)$[_]=G6(Q[_])(Q[_],J[_]);return(_)=>{for(let W in $)Z[W]=$[W](_);return Z}}function hJ(Q,J){let Z=[],$={color:0,var:0,number:0};for(let _=0;_<J.values.length;_++){let W=J.types[_],Y=Q.indexes[W][$[W]],X=Q.values[Y]??0;Z[_]=X,$[W]++}return Z}var h9=(Q,J)=>{let Z=p.createTransformer(J),$=R0(Q),_=R0(J);if($.indexes.var.length===_.indexes.var.length&&$.indexes.color.length===_.indexes.color.length&&$.indexes.number.length>=_.indexes.number.length){if(X6.has(Q)&&!_.values.length||X6.has(J)&&!$.values.length)return Q8(Q,J);return n0(J8(hJ($,_),_.values),Z)}else return q0(!0,`Complex values '${Q}' and '${J}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),$5(Q,J)};function H6(Q,J,Z){if(typeof Q==="number"&&typeof J==="number"&&typeof Z==="number")return R(Q,J,Z);return G6(Q)(Q,J)}var u1=(Q)=>{let J=({timestamp:Z})=>Q(Z);return{start:(Z=!0)=>M.update(J,Z),stop:()=>x(J),now:()=>v.isProcessing?v.timestamp:f.now()}};var z6=(Q,J,Z=10)=>{let $="",_=Math.max(Math.round(J/Z),2);for(let W=0;W<_;W++)$+=Math.round(Q(W/(_-1))*1e4)/1e4+", ";return`linear(${$.substring(0,$.length-2)})`};var q6=20000;function _5(Q){let J=0,Z=50,$=Q.next(J);while(!$.done&&J<20000)J+=Z,$=Q.next(J);return J>=20000?1/0:J}function B6(Q,J=100,Z){let $=Z({...Q,keyframes:[0,J]}),_=Math.min(_5($),q6);return{type:"keyframes",ease:(W)=>{return $.next(_*W).value/J},duration:r(_)}}var d={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:0.3,visualDuration:0.3,restSpeed:{granular:0.01,default:2},restDelta:{granular:0.005,default:0.5},minDuration:0.01,maxDuration:10,minDamping:0.05,maxDamping:1};function j9(Q,J){return Q*Math.sqrt(1-J*J)}var bJ=12;function jJ(Q,J,Z){let $=Z;for(let _=1;_<bJ;_++)$=$-Q($)/J($);return $}var b9=0.001;function kJ({duration:Q=d.duration,bounce:J=d.bounce,velocity:Z=d.velocity,mass:$=d.mass}){let _,W;q0(Q<=T(d.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let Y=1-J;if(Y=c(d.minDamping,d.maxDamping,Y),Q=c(d.minDuration,d.maxDuration,r(Q)),Y<1)_=(H)=>{let z=H*Y,q=z*Q,B=z-Z,F=j9(H,Y),I=Math.exp(-q);return b9-B/F*I},W=(H)=>{let q=H*Y*Q,B=q*Z+Z,F=Math.pow(Y,2)*Math.pow(H,2)*Q,I=Math.exp(-q),K=j9(Math.pow(H,2),Y);return(-_(H)+b9>0?-1:1)*((B-F)*I)/K};else _=(H)=>{let z=Math.exp(-H*Q),q=(H-Z)*Q+1;return-b9+z*q},W=(H)=>{let z=Math.exp(-H*Q),q=(Z-H)*(Q*Q);return z*q};let X=5/Q,G=jJ(_,W,X);if(Q=T(Q),isNaN(G))return{stiffness:d.stiffness,damping:d.damping,duration:Q};else{let H=Math.pow(G,2)*$;return{stiffness:H,damping:Y*2*Math.sqrt($*H),duration:Q}}}var xJ=["duration","bounce"],yJ=["stiffness","damping","mass"];function p1(Q,J){return J.some((Z)=>Q[Z]!==void 0)}function fJ(Q){let J={velocity:d.velocity,stiffness:d.stiffness,damping:d.damping,mass:d.mass,isResolvedFromDuration:!1,...Q};if(!p1(Q,yJ)&&p1(Q,xJ))if(J.velocity=0,Q.visualDuration){let Z=Q.visualDuration,$=2*Math.PI/(Z*1.2),_=$*$,W=2*c(0.05,1,1-(Q.bounce||0))*Math.sqrt(_);J={...J,mass:d.mass,stiffness:_,damping:W}}else{let Z=kJ({...Q,velocity:0});J={...J,...Z,mass:d.mass},J.isResolvedFromDuration=!0}return J}function S0(Q=d.visualDuration,J=d.bounce){let Z=typeof Q!=="object"?{visualDuration:Q,keyframes:[0,1],bounce:J}:Q,{restSpeed:$,restDelta:_}=Z,W=Z.keyframes[0],Y=Z.keyframes[Z.keyframes.length-1],X={done:!1,value:W},{stiffness:G,damping:H,mass:z,duration:q,velocity:B,isResolvedFromDuration:F}=fJ({...Z,velocity:-r(Z.velocity||0)}),I=B||0,K=H/(2*Math.sqrt(G*z)),N=Y-W,w=r(Math.sqrt(G/z)),O=Math.abs(N)<5;$||($=O?d.restSpeed.granular:d.restSpeed.default),_||(_=O?d.restDelta.granular:d.restDelta.default);let C,P,L,S,E,D;if(K<1)L=j9(w,K),S=(I+K*w*N)/L,C=(A)=>{let b=Math.exp(-K*w*A);return Y-b*(S*Math.sin(L*A)+N*Math.cos(L*A))},E=K*w*S+N*L,D=K*w*N-S*L,P=(A)=>{return Math.exp(-K*w*A)*(E*Math.sin(L*A)+D*Math.cos(L*A))};else if(K===1){C=(b)=>Y-Math.exp(-w*b)*(N+(I+w*N)*b);let A=I+w*N;P=(b)=>Math.exp(-w*b)*(w*A*b-I)}else{let A=w*Math.sqrt(K*K-1);C=(X0)=>{let K0=Math.exp(-K*w*X0),N0=Math.min(A*X0,300);return Y-K0*((I+K*w*N)*Math.sinh(N0)+A*N*Math.cosh(N0))/A};let b=(I+K*w*N)/A,l=K*w*b-N*A,s=K*w*N-b*A;P=(X0)=>{let K0=Math.exp(-K*w*X0),N0=Math.min(A*X0,300);return K0*(l*Math.sinh(N0)+s*Math.cosh(N0))}}let V={calculatedDuration:F?q||null:null,velocity:(A)=>T(P(A)),next:(A)=>{if(!F&&K<1){let l=Math.exp(-K*w*A),s=Math.sin(L*A),X0=Math.cos(L*A),K0=Y-l*(S*s+N*X0),N0=T(l*(E*s+D*X0));return X.done=Math.abs(N0)<=$&&Math.abs(Y-K0)<=_,X.value=X.done?Y:K0,X}let b=C(A);if(!F){let l=T(P(A));X.done=Math.abs(l)<=$&&Math.abs(Y-b)<=_}else X.done=A>=q;return X.value=X.done?Y:b,X},toString:()=>{let A=Math.min(_5(V),q6),b=z6((l)=>V.next(A*l).value,A,30);return A+"ms "+b},toTransition:()=>{}};return V}S0.applyToOptions=(Q)=>{let J=B6(Q,100,S0);return Q.ease=J.ease,Q.duration=T(J.duration),Q.type="keyframes",Q};var gJ=5;function Z8(Q,J,Z){let $=Math.max(J-gJ,0);return a0(Z-Q($),J-$)}function D5({keyframes:Q,velocity:J=0,power:Z=0.8,timeConstant:$=325,bounceDamping:_=10,bounceStiffness:W=500,modifyTarget:Y,min:X,max:G,restDelta:H=0.5,restSpeed:z}){let q=Q[0],B={done:!1,value:q},F=(D)=>X!==void 0&&D<X||G!==void 0&&D>G,I=(D)=>{if(X===void 0)return G;if(G===void 0)return X;return Math.abs(X-D)<Math.abs(G-D)?X:G},K=Z*J,N=q+K,w=Y===void 0?N:Y(N);if(w!==N)K=w-q;let O=(D)=>-K*Math.exp(-D/$),C=(D)=>w+O(D),P=(D)=>{let V=O(D),A=C(D);B.done=Math.abs(V)<=H,B.value=B.done?w:A},L,S,E=(D)=>{if(!F(B.value))return;L=D,S=S0({keyframes:[B.value,I(B.value)],velocity:Z8(C,D,B.value),damping:_,stiffness:W,restDelta:H,restSpeed:z})};return E(0),{calculatedDuration:null,next:(D)=>{let V=!1;if(!S&&L===void 0)V=!0,P(D),E(D);if(L!==void 0&&D>=L)return S.next(D-L);else return!V&&P(D),B}}}function vJ(Q,J,Z){let $=[],_=Z||n.mix||H6,W=Q.length-1;for(let Y=0;Y<W;Y++){let X=_(Q[Y],Q[Y+1]);if(J){let G=Array.isArray(J)?J[Y]||g:J;X=n0(G,X)}$.push(X)}return $}function Y5(Q,J,{clamp:Z=!0,ease:$,mixer:_}={}){let W=Q.length;if(o(W===J.length,"Both input and output ranges must be the same length","range-length"),W===1)return()=>J[0];if(W===2&&J[0]===J[1])return()=>J[1];let Y=Q[0]===Q[1];if(Q[0]>Q[W-1])Q=[...Q].reverse(),J=[...J].reverse();let X=vJ(J,$,_),G=X.length,H=(z)=>{if(Y&&z<Q[0])return J[0];let q=0;if(G>1){for(;q<Q.length-2;q++)if(z<Q[q+1])break}let B=w0(Q[q],Q[q+1],z);return X[q](B)};return Z?(z)=>H(c(Q[0],Q[W-1],z)):H}function F6(Q,J){let Z=Q[Q.length-1];for(let $=1;$<=J;$++){let _=w0(0,J,$);Q.push(R(Z,1,_))}}function W5(Q){let J=[0];return F6(J,Q.length-1),J}function $8(Q,J){return Q.map((Z)=>Z*J)}function k9(Q,J){return Q.map(()=>J||Q6).splice(0,Q.length-1)}function f0({duration:Q=300,keyframes:J,times:Z,ease:$="easeInOut"}){let _=J6($)?$.map(U5):U5($),W={done:!1,value:J[0]},Y=$8(Z&&Z.length===J.length?Z:W5(J),Q),X=Y5(Y,J,{ease:Array.isArray(_)?_:k9(J,_)});return{calculatedDuration:Q,next:(G)=>{return W.value=X(G),W.done=G>=Q,W}}}var dJ=(Q)=>Q!==null;function T0(Q,{repeat:J,repeatType:Z="loop"},$,_=1){let W=Q.filter(dJ),X=_<0||J&&Z!=="loop"&&J%2===1?0:W.length-1;return!X||$===void 0?W[X]:$}var cJ={decay:D5,inertia:D5,tween:f0,keyframes:f0,spring:S0};function _8(Q){if(typeof Q.type==="string")Q.type=cJ[Q.type]}class M5{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((Q)=>{this.resolve=Q})}notifyFinished(){this.resolve()}then(Q,J){return this.finished.then(Q,J)}}var uJ=(Q)=>Q/100;class F0 extends M5{constructor(Q){super();if(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:J}=this.options;if(J&&J.updatedAt!==f.now())this.tick(f.now());if(this.isStopped=!0,this.state==="idle")return;this.teardown(),this.options.onStop?.()},a.mainThread++,this.options=Q,this.initAnimation(),this.play(),Q.autoplay===!1)this.pause()}initAnimation(){let{options:Q}=this;_8(Q);let{type:J=f0,repeat:Z=0,repeatDelay:$=0,repeatType:_,velocity:W=0}=Q,{keyframes:Y}=Q,X=J||f0;if(X!==f0&&typeof Y[0]!=="number")this.mixKeyframes=n0(uJ,H6(Y[0],Y[1])),Y=[0,100];let G=X({...Q,keyframes:Y});if(_==="mirror")this.mirroredGenerator=X({...Q,keyframes:[...Y].reverse(),velocity:-W});if(G.calculatedDuration===null)G.calculatedDuration=_5(G);let{calculatedDuration:H}=G;this.calculatedDuration=H,this.resolvedDuration=H+$,this.totalDuration=this.resolvedDuration*(Z+1)-$,this.generator=G}updateTime(Q){let J=Math.round(Q-this.startTime)*this.playbackSpeed;if(this.holdTime!==null)this.currentTime=this.holdTime;else this.currentTime=J}tick(Q,J=!1){let{generator:Z,totalDuration:$,mixKeyframes:_,mirroredGenerator:W,resolvedDuration:Y,calculatedDuration:X}=this;if(this.startTime===null)return Z.next(0);let{delay:G=0,keyframes:H,repeat:z,repeatType:q,repeatDelay:B,type:F,onUpdate:I,finalKeyframe:K}=this.options;if(this.speed>0)this.startTime=Math.min(this.startTime,Q);else if(this.speed<0)this.startTime=Math.min(Q-$/this.speed,this.startTime);if(J)this.currentTime=Q;else this.updateTime(Q);let N=this.currentTime-G*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?N<0:N>$;if(this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null)this.currentTime=$;let O=this.currentTime,C=Z;if(z){let E=Math.min(this.currentTime,$)/Y,D=Math.floor(E),V=E%1;if(!V&&E>=1)V=1;if(V===1&&D--,D=Math.min(D,z+1),Boolean(D%2)){if(q==="reverse"){if(V=1-V,B)V-=B/Y}else if(q==="mirror")C=W}O=c(0,1,V)*Y}let P;if(w)this.delayState.value=H[0],P=this.delayState;else P=C.next(O);if(_&&!w)P.value=_(P.value);let{done:L}=P;if(!w&&X!==null)L=this.playbackSpeed>=0?this.currentTime>=$:this.currentTime<=0;let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);if(S&&F!==D5)P.value=T0(H,this.options,K,this.speed);if(I)I(P.value);if(S)this.finish();return P}then(Q,J){return this.finished.then(Q,J)}get duration(){return r(this.calculatedDuration)}get iterationDuration(){let{delay:Q=0}=this.options||{};return this.duration+r(Q)}get time(){return r(this.currentTime)}set time(Q){if(Q=T(Q),this.currentTime=Q,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0)this.holdTime=Q;else if(this.driver)this.startTime=this.driver.now()-Q/this.playbackSpeed;if(this.driver)this.driver.start(!1);else this.startTime=0,this.state="paused",this.holdTime=Q,this.tick(Q)}getGeneratorVelocity(){let Q=this.currentTime;if(Q<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(Q);let J=this.generator.next(Q).value;return Z8((Z)=>this.generator.next(Z).value,Q,J)}get speed(){return this.playbackSpeed}set speed(Q){let J=this.playbackSpeed!==Q;if(J&&this.driver)this.updateTime(f.now());if(this.playbackSpeed=Q,J&&this.driver)this.time=r(this.currentTime)}play(){if(this.isStopped)return;let{driver:Q=u1,startTime:J}=this.options;if(!this.driver)this.driver=Q(($)=>this.tick($));this.options.onPlay?.();let Z=this.driver.now();if(this.state==="finished")this.updateFinished(),this.startTime=Z;else if(this.holdTime!==null)this.startTime=Z-this.holdTime;else if(!this.startTime)this.startTime=J??Z;if(this.state==="finished"&&this.speed<0)this.startTime+=this.calculatedDuration;this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(f.now()),this.holdTime=this.currentTime}complete(){if(this.state!=="running")this.play();this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,a.mainThread--}stopDriver(){if(!this.driver)return;this.driver.stop(),this.driver=void 0}sample(Q){return this.startTime=0,this.tick(Q,!0)}attachTimeline(Q){if(this.options.allowFlatten)this.options.type="keyframes",this.options.ease="linear",this.initAnimation();return this.driver?.stop(),Q.observe(this)}}function m1(Q){return new F0(Q)}function I6(Q){for(let J=1;J<Q.length;J++)Q[J]??(Q[J]=Q[J-1])}var L5=(Q)=>Q*180/Math.PI,x9=(Q)=>{let J=L5(Math.atan2(Q[1],Q[0]));return y9(J)},pJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:(Q)=>(Math.abs(Q[0])+Math.abs(Q[3]))/2,rotate:x9,rotateZ:x9,skewX:(Q)=>L5(Math.atan(Q[1])),skewY:(Q)=>L5(Math.atan(Q[2])),skew:(Q)=>(Math.abs(Q[1])+Math.abs(Q[2]))/2},y9=(Q)=>{if(Q=Q%360,Q<0)Q+=360;return Q},l1=x9,o1=(Q)=>Math.sqrt(Q[0]*Q[0]+Q[1]*Q[1]),r1=(Q)=>Math.sqrt(Q[4]*Q[4]+Q[5]*Q[5]),mJ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o1,scaleY:r1,scale:(Q)=>(o1(Q)+r1(Q))/2,rotateX:(Q)=>y9(L5(Math.atan2(Q[6],Q[5]))),rotateY:(Q)=>y9(L5(Math.atan2(-Q[2],Q[0]))),rotateZ:l1,rotate:l1,skewX:(Q)=>L5(Math.atan(Q[4])),skewY:(Q)=>L5(Math.atan(Q[1])),skew:(Q)=>(Math.abs(Q[1])+Math.abs(Q[4]))/2};function K6(Q){return Q.includes("scale")?1:0}function N6(Q,J){if(!Q||Q==="none")return K6(J);let Z=Q.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),$,_;if(Z)$=mJ,_=Z;else{let X=Q.match(/^matrix\(([-\d.e\s,]+)\)$/u);$=pJ,_=X}if(!_)return K6(J);let W=$[J],Y=_[1].split(",").map(lJ);return typeof W==="function"?W(Y):Y[W]}var Y8=(Q,J)=>{let{transform:Z="none"}=getComputedStyle(Q);return N6(Z,J)};function lJ(Q){return parseFloat(Q.trim())}var Y0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],t=(()=>new Set([...Y0,"pathRotation"]))();var f9=(Q)=>Q===U0||Q===U,oJ=new Set(["x","y","z"]),rJ=Y0.filter((Q)=>!oJ.has(Q));function i1(Q){let J=[];return rJ.forEach((Z)=>{let $=Q.getValue(Z);if($!==void 0)J.push([Z,$.get()]),$.set(Z.startsWith("scale")?1:0)}),J}var g0={width:({x:Q},{paddingLeft:J="0",paddingRight:Z="0",boxSizing:$})=>{let _=Q.max-Q.min;return $==="border-box"?_:_-parseFloat(J)-parseFloat(Z)},height:({y:Q},{paddingTop:J="0",paddingBottom:Z="0",boxSizing:$})=>{let _=Q.max-Q.min;return $==="border-box"?_:_-parseFloat(J)-parseFloat(Z)},top:(Q,{top:J})=>parseFloat(J),left:(Q,{left:J})=>parseFloat(J),bottom:({y:Q},{top:J})=>parseFloat(J)+(Q.max-Q.min),right:({x:Q},{left:J})=>parseFloat(J)+(Q.max-Q.min),x:(Q,{transform:J})=>N6(J,"x"),y:(Q,{transform:J})=>N6(J,"y")};g0.translateX=g0.x;g0.translateY=g0.y;var A5=new Set,g9=!1,v9=!1,d9=!1;function s1(){if(v9){let Q=Array.from(A5).filter(($)=>$.needsMeasurement),J=new Set(Q.map(($)=>$.element)),Z=new Map;J.forEach(($)=>{let _=i1($);if(!_.length)return;Z.set($,_),$.render()}),Q.forEach(($)=>$.measureInitialState()),J.forEach(($)=>{$.render();let _=Z.get($);if(_)_.forEach(([W,Y])=>{$.getValue(W)?.set(Y)})}),Q.forEach(($)=>$.measureEndState()),Q.forEach(($)=>{if($.suspendedScrollY!==void 0)window.scrollTo(0,$.suspendedScrollY)})}v9=!1,g9=!1,A5.forEach((Q)=>Q.complete(d9)),A5.clear()}function n1(){A5.forEach((Q)=>{if(Q.readKeyframes(),Q.needsMeasurement)v9=!0})}function W8(){d9=!0,n1(),s1(),d9=!1}class v0{constructor(Q,J,Z,$,_,W=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...Q],this.onComplete=J,this.name=Z,this.motionValue=$,this.element=_,this.isAsync=W}scheduleResolve(){if(this.state="scheduled",this.isAsync){if(A5.add(this),!g9)g9=!0,M.read(n1),M.resolveKeyframes(s1)}else this.readKeyframes(),this.complete()}readKeyframes(){let{unresolvedKeyframes:Q,name:J,element:Z,motionValue:$}=this;if(Q[0]===null){let _=$?.get(),W=Q[Q.length-1];if(_!==void 0)Q[0]=_;else if(Z&&J){let Y=Z.readValue(J,W);if(Y!==void 0&&Y!==null)Q[0]=Y}if(Q[0]===void 0)Q[0]=W;if($&&_===void 0)$.set(Q[0])}I6(Q)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(Q=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,Q),A5.delete(this)}cancel(){if(this.state==="scheduled")A5.delete(this),this.state="pending"}resume(){if(this.state==="pending")this.scheduleResolve()}}var w6=(Q)=>Q.startsWith("--");function U6(Q,J,Z){w6(J)?Q.style.setProperty(J,Z):Q.style[J]=Z}var X8={};function F7(Q,J){let Z=s0(Q);return()=>X8[J]??Z()}var C6=F7(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),G8=F7(()=>window.ViewTimeline!==void 0,"viewTimeline");var d0=F7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(Q){return!1}return!0},"linearEasing");var c0=([Q,J,Z,$])=>`cubic-bezier(${Q}, ${J}, ${Z}, ${$})`;var V5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:c0([0,0.65,0.55,1]),circOut:c0([0.55,0,1,0.45]),backIn:c0([0.31,0.01,0.66,-0.59]),backOut:c0([0.33,1.53,0.69,0.99])};function E5(Q,J){if(!Q)return;else if(typeof Q==="function")return d0()?z6(Q,J):"ease-out";else if(e0(Q))return c0(Q);else if(Array.isArray(Q))return Q.map((Z)=>E5(Z,J)||V5.easeOut);else return V5[Q]}function H8(Q,J,Z,{delay:$=0,duration:_=300,repeat:W=0,repeatType:Y="loop",ease:X="easeOut",times:G}={},H=void 0){let z={[J]:Z};if(G)z.offset=G;let q=E5(X,_);if(Array.isArray(q))z.easing=q;if(u.value)a.waapi++;let B={delay:$,duration:_,easing:!Array.isArray(q)?q:"linear",fill:"both",iterations:W+1,direction:Y==="reverse"?"alternate":"normal"};if(H)B.pseudoElement=H;let F=Q.animate(z,B);if(u.value)F.finished.finally(()=>{a.waapi--});return F}function X5(Q){return typeof Q==="function"&&"applyToOptions"in Q}function P6({type:Q,...J}){if(X5(Q)&&d0())return Q.applyToOptions(J);else J.duration??(J.duration=300),J.ease??(J.ease="easeOut");return J}class I0 extends M5{constructor(Q){super();if(this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!Q)return;let{element:J,name:Z,keyframes:$,pseudoElement:_,allowFlatten:W=!1,finalKeyframe:Y,onComplete:X}=Q;this.isPseudoElement=Boolean(_),this.allowFlatten=W,this.options=Q,o(typeof Q.type!=="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let G=P6(Q);if(this.animation=H8(J,Z,$,G,_),G.autoplay===!1)this.animation.pause();this.animation.onfinish=()=>{if(this.finishedTime=this.time,!_){let H=T0($,this.options,Y,this.speed);if(this.updateMotionValue)this.updateMotionValue(H);U6(J,Z,H),this.animation.cancel()}X?.(),this.notifyFinished()}}play(){if(this.isStopped)return;if(this.manualStartTime=null,this.animation.play(),this.state==="finished")this.updateFinished()}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(Q){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:Q}=this;if(Q==="idle"||Q==="finished")return;if(this.updateMotionValue)this.updateMotionValue();else this.commitStyles();if(!this.isPseudoElement)this.cancel()}commitStyles(){let Q=this.options?.element;if(!this.isPseudoElement&&Q?.isConnected)this.animation.commitStyles?.()}get duration(){let Q=this.animation.effect?.getComputedTiming?.().duration||0;return r(Number(Q))}get iterationDuration(){let{delay:Q=0}=this.options||{};return this.duration+r(Q)}get time(){return r(Number(this.animation.currentTime)||0)}set time(Q){let J=this.finishedTime!==null;if(this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=T(Q),J)this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(Q){if(Q<0)this.finishedTime=null;this.animation.playbackRate=Q}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(Q){this.manualStartTime=this.animation.startTime=Q}attachTimeline({timeline:Q,rangeStart:J,rangeEnd:Z,observe:$}){if(this.allowFlatten)this.animation.effect?.updateTiming({easing:"linear"});if(this.animation.onfinish=null,Q&&C6()){if(this.animation.timeline=Q,J)this.animation.rangeStart=J;if(Z)this.animation.rangeEnd=Z;return g}else return $(this)}}var a1={anticipate:n5,backInOut:s5,circInOut:e5};function iJ(Q){return Q in a1}function t1(Q){if(typeof Q.ease==="string"&&iJ(Q.ease))Q.ease=a1[Q.ease]}var c9=10;class I7 extends I0{constructor(Q){t1(Q),_8(Q);super(Q);if(Q.startTime!==void 0&&Q.autoplay!==!1)this.startTime=Q.startTime;this.options=Q}updateMotionValue(Q){let{motionValue:J,onUpdate:Z,onComplete:$,element:_,...W}=this.options;if(!J)return;if(Q!==void 0){J.set(Q);return}let Y=new F0({...W,autoplay:!1}),X=Math.max(c9,f.now()-this.startTime),G=c(0,c9,X-c9),H=Y.sample(X).value,{name:z}=this.options;if(_&&z)U6(_,z,H);J.setWithVelocity(Y.sample(Math.max(0,X-G)).value,H,G),Y.stop()}}var u9=(Q,J)=>{if(J==="zIndex")return!1;if(typeof Q==="number"||Array.isArray(Q))return!0;if(typeof Q==="string"&&(p.test(Q)||Q==="0")&&!Q.startsWith("url("))return!0;return!1};function sJ(Q){let J=Q[0];if(Q.length===1)return!0;for(let Z=0;Z<Q.length;Z++)if(Q[Z]!==J)return!0}function e1(Q,J,Z,$){let _=Q[0];if(_===null)return!1;if(J==="display"||J==="visibility")return!0;let W=Q[Q.length-1],Y=u9(_,J),X=u9(W,J);if(q0(Y===X,`You are trying to animate ${J} from "${_}" to "${W}". "${Y?W:_}" is not an animatable value.`,"value-not-animatable"),!Y||!X)return!1;return sJ(Q)||(Z==="spring"||X5(Z))&&$}function R5(Q){Q.duration=0,Q.type="keyframes"}var O6=new Set(["opacity","clipPath","filter","transform"]);var nJ=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Q4(Q){for(let J=0;J<Q.length;J++)if(typeof Q[J]==="string"&&nJ.test(Q[J]))return!0;return!1}var aJ=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tJ=s0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function z8(Q){let{motionValue:J,name:Z,repeatDelay:$,repeatType:_,damping:W,type:Y,keyframes:X}=Q;if(!(J?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:H,transformTemplate:z}=J.owner.getProps();return tJ()&&Z&&(O6.has(Z)||aJ.has(Z)&&Q4(X))&&(Z!=="transform"||!z)&&!H&&!$&&_!=="mirror"&&W!==0&&Y!=="inertia"}var eJ=40;class K7 extends M5{constructor({autoplay:Q=!0,delay:J=0,type:Z="keyframes",repeat:$=0,repeatDelay:_=0,repeatType:W="loop",keyframes:Y,name:X,motionValue:G,element:H,...z}){super();this.stop=()=>{if(this._animation)this._animation.stop(),this.stopTimeline?.();this.keyframeResolver?.cancel()},this.createdAt=f.now();let q={autoplay:Q,delay:J,type:Z,repeat:$,repeatDelay:_,repeatType:W,name:X,motionValue:G,element:H,...z},B=H?.KeyframeResolver||v0;this.keyframeResolver=new B(Y,(F,I,K)=>this.onKeyframesResolved(F,I,q,!K),X,G,H),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(Q,J,Z,$){this.keyframeResolver=void 0;let{name:_,type:W,velocity:Y,delay:X,isHandoff:G,onUpdate:H}=Z;this.resolvedAt=f.now();let z=!0;if(!e1(Q,_,W,Y)){if(z=!1,n.instantAnimations||!X)H?.(T0(Q,Z,J));Q[0]=Q[Q.length-1],R5(Z),Z.repeat=0}let B={startTime:$?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>eJ?this.resolvedAt:this.createdAt:void 0,finalKeyframe:J,...Z,keyframes:Q},F=z&&!G&&z8(B),I=B.motionValue?.owner?.current,K;if(F)try{K=new I7({...B,element:I})}catch{K=new F0(B)}else K=new F0(B);if(K.finished.then(()=>{this.notifyFinished()}).catch(g),this.pendingTimeline)this.stopTimeline=K.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0;this._animation=K}get finished(){if(!this._animation)return this._finished;else return this.animation.finished}then(Q,J){return this.finished.finally(Q).then(()=>{})}get animation(){if(!this._animation)this.keyframeResolver?.resume(),W8();return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(Q){this.animation.time=Q}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(Q){this.animation.speed=Q}get startTime(){return this.animation.startTime}attachTimeline(Q){if(this._animation)this.stopTimeline=this.animation.attachTimeline(Q);else this.pendingTimeline=Q;return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation)this.animation.cancel();this.keyframeResolver?.cancel()}}class h0{constructor(Q){this.stop=()=>this.runAll("stop"),this.animations=Q.filter(Boolean)}get finished(){return Promise.all(this.animations.map((Q)=>Q.finished))}getAll(Q){return this.animations[0][Q]}setAll(Q,J){for(let Z=0;Z<this.animations.length;Z++)this.animations[Z][Q]=J}attachTimeline(Q){let J=this.animations.map((Z)=>Z.attachTimeline(Q));return()=>{J.forEach((Z,$)=>{Z&&Z(),this.animations[$].stop()})}}get time(){return this.getAll("time")}set time(Q){this.setAll("time",Q)}get speed(){return this.getAll("speed")}set speed(Q){this.setAll("speed",Q)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return J4(this.animations,"duration")}get iterationDuration(){return J4(this.animations,"iterationDuration")}runAll(Q){this.animations.forEach((J)=>J[Q]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function J4(Q,J){let Z=0;for(let $=0;$<Q.length;$++){let _=Q[$][J];if(_!==null&&_>Z)Z=_}return Z}class S5 extends h0{then(Q,J){return this.finished.finally(Q).then(()=>{})}}class D6 extends I0{constructor(Q){super();this.animation=Q,Q.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}}var Z4=new WeakMap,q8=(Q,J="")=>`${Q}:${J}`;function B8(Q){let J=Z4.get(Q);if(!J)J=new Map,Z4.set(Q,J);return J}function M6(Q,J,Z,$=0,_=1){let W=Array.from(Q).sort((H,z)=>H.sortNodePosition(z)).indexOf(J),Y=Q.size,X=(Y-1)*$;return typeof Z==="function"?Z(W,Y):_===1?W*$:X-W*$}var $4=30,QZ=(Q)=>{return!isNaN(parseFloat(Q))},T5={current:void 0};class b0{constructor(Q,J={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(Z)=>{let $=f.now();if(this.updatedAt!==$)this.setPrevFrameValue();if(this.prev=this.current,this.setCurrent(Z),this.current!==this.prev){if(this.events.change?.notify(this.current),this.dependents)for(let _ of this.dependents)_.dirty()}},this.hasAnimated=!1,this.setCurrent(Q),this.owner=J.owner}setCurrent(Q){if(this.current=Q,this.updatedAt=f.now(),this.canTrackVelocity===null&&Q!==void 0)this.canTrackVelocity=QZ(this.current)}setPrevFrameValue(Q=this.current){this.prevFrameValue=Q,this.prevUpdatedAt=this.updatedAt}onChange(Q){return this.on("change",Q)}on(Q,J){if(!this.events[Q])this.events[Q]=new y0;let Z=this.events[Q].add(J);if(Q==="change")return()=>{Z(),M.read(()=>{if(!this.events.change.getSize())this.stop()})};return Z}clearListeners(){for(let Q in this.events)this.events[Q].clear()}attach(Q,J){this.passiveEffect=Q,this.stopPassiveEffect=J}set(Q){if(!this.passiveEffect)this.updateAndNotify(Q);else this.passiveEffect(Q,this.updateAndNotify)}setWithVelocity(Q,J,Z){this.set(J),this.prev=void 0,this.prevFrameValue=Q,this.prevUpdatedAt=this.updatedAt-Z}jump(Q,J=!0){if(this.updateAndNotify(Q),this.prev=Q,this.prevUpdatedAt=this.prevFrameValue=void 0,J&&this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(Q){if(!this.dependents)this.dependents=new Set;this.dependents.add(Q)}removeDependent(Q){if(this.dependents)this.dependents.delete(Q)}get(){if(T5.current)T5.current.push(this);return this.current}getPrevious(){return this.prev}getVelocity(){let Q=f.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||Q-this.updatedAt>$4)return 0;let J=Math.min(this.updatedAt-this.prevUpdatedAt,$4);return a0(parseFloat(this.current)-parseFloat(this.prevFrameValue),J)}start(Q){return this.stop(),new Promise((J)=>{if(this.hasAnimated=!0,this.animation=Q(J),this.events.animationStart)this.events.animationStart.notify()}).then(()=>{if(this.events.animationComplete)this.events.animationComplete.notify();this.clearAnimation()})}stop(){if(this.animation){if(this.animation.stop(),this.events.animationCancel)this.events.animationCancel.notify()}this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){if(this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect)this.stopPassiveEffect()}}function m(Q,J){return new b0(Q,J)}function L6(Q,J){if(Q?.inherit&&J){let{inherit:Z,...$}=Q;return{...J,...$}}return Q}function e(Q,J){let Z=Q?.[J]??Q?.default??Q;if(Z!==Q)return L6(Z,Q);return Z}var JZ={type:"spring",stiffness:500,damping:25,restSpeed:10},ZZ=(Q)=>({type:"spring",stiffness:550,damping:Q===0?2*Math.sqrt(550):30,restSpeed:10}),$Z={type:"keyframes",duration:0.8},_Z={type:"keyframes",ease:[0.25,0.1,0.35,1],duration:0.3},F8=(Q,{keyframes:J})=>{if(J.length>2)return $Z;else if(t.has(Q))return Q.startsWith("scale")?ZZ(J[1]):JZ;return _Z};var YZ=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function I8(Q){for(let J in Q)if(!YZ.has(J))return!0;return!1}var G5=(Q,J,Z,$={},_,W)=>(Y)=>{let X=e($,Q)||{},G=X.delay||$.delay||0,{elapsed:H=0}=$;H=H-T(G);let z={keyframes:Array.isArray(Z)?Z:[null,Z],ease:"easeOut",velocity:J.getVelocity(),...X,delay:-H,onUpdate:(B)=>{J.set(B),X.onUpdate&&X.onUpdate(B)},onComplete:()=>{Y(),X.onComplete&&X.onComplete()},name:Q,motionValue:J,element:W?void 0:_};if(!I8(X))Object.assign(z,F8(Q,z));if(z.duration&&(z.duration=T(z.duration)),z.repeatDelay&&(z.repeatDelay=T(z.repeatDelay)),z.from!==void 0)z.keyframes[0]=z.from;let q=!1;if(z.type===!1||z.duration===0&&!z.repeatDelay){if(R5(z),z.delay===0)q=!0}if(n.instantAnimations||n.skipAnimations||_?.shouldSkipAnimations||X.skipAnimations)q=!0,R5(z),z.delay=0;if(z.allowFlatten=!X.type&&!X.ease,q&&!W&&J.get()!==void 0){let B=T0(z.keyframes,X);if(B!==void 0){M.update(()=>{z.onUpdate(B),z.onComplete()});return}}return X.isSync?new F0(z):new K7(z)};var WZ=20;function _4(Q,J,Z,$){let _=1-Q;return _*_*J+2*_*Q*Z+Q*Q*$}function p9(Q,J,Z,$,_,W,Y){let X=2*(1-Q)*(Z-J)+2*Q*($-Z),G=2*(1-Q)*(W-_)+2*Q*(Y-W);return Math.atan2(G,X)*(180/Math.PI)}function Y4(Q,J,Z,$,_,W){let Y=Z-Q,X=$-J,G=Math.sqrt(Y*Y+X*X);if(G>0){let H=-X/G,z=Y/G,q=_*G;return{x:Q+Y*W+H*q,y:J+X*W+z*q}}return{x:Q,y:J}}function XZ({strength:Q=0.5,peak:J=0.5,direction:Z,rotate:$=!1}={}){let _=$===!0?1:typeof $==="number"?$:0,W;return(X,G)=>{let H=G.x-X.x,z=G.y-X.y,q;if(Z==="cw")q=-Q;else if(Z==="ccw")q=Q;else q=(Math.abs(H)>=Math.abs(z)?H:z)<0?-Q:Q;let B=Y4(X.x,X.y,G.x,G.y,q,J);if(Z===void 0){let N=Math.abs(H)<Math.abs(z),w=X.x+H*J,O=X.y+z*J,C=N?Math.sign(B.x-w):Math.sign(B.y-O);if(W!==void 0&&C!==0&&C!==W)q=-q,B=Y4(X.x,X.y,G.x,G.y,q,J);else if(C!==0)W=C}let F=_?p9(0,X.x,B.x,G.x,X.y,B.y,G.y):0,I=_?p9(1,X.x,B.x,G.x,X.y,B.y,G.y):0,K=_?N5(-180,180,I-F):0;return(N)=>{let w={x:_4(N,X.x,B.x,G.x),y:_4(N,X.y,B.y,G.y)};if(_){let O=p9(N,X.x,B.x,G.x,X.y,B.y,G.y),C=F+K*N;w.rotate=N5(-180,180,O-C)*_}return w}}}function W4(Q={}){let J=XZ(Q);return{interpolateProjection($){let _=$.x.translate,W=$.y.translate;if(Math.sqrt(_*_+W*W)<WZ)return;return J({x:_,y:W},{x:0,y:0})},animateVisualElement($,_,W,Y,X){if(!(("x"in _)||("y"in _)))return;let G=$.getValue("x",$.latestValues.x??0),H=$.getValue("y",$.latestValues.y??0),z=_.x,q=_.y,B=(Array.isArray(z)&&z[0]!=null?z[0]:G?.get())??0,F=(Array.isArray(q)&&q[0]!=null?q[0]:H?.get())??0,I=Array.isArray(z)?z[z.length-1]:z??B,K=Array.isArray(q)?q[q.length-1]:q??F,N=J({x:B,y:F},{x:I,y:K}),w=N(0).rotate!==void 0?$.getValue("pathRotation",0):void 0,O={delay:Y,...e(W||{},"x")};delete O.path;let C=m(0);if(C.start(G5("",C,[0,1000],{...O,isSync:!0,velocity:0,onUpdate:(P)=>{let L=N(P/1000);if(G?.set(L.x),H?.set(L.y),w&&L.rotate!==void 0)w.set(L.rotate)},onComplete:()=>{G?.set(I),H?.set(K),w?.set(0)},onStop:()=>w?.set(0),onCancel:()=>w?.set(0)})),C.animation)X.push(C.animation);delete _.x,delete _.y}}}var GZ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function m9(Q){let J=GZ.exec(Q);if(!J)return[,];let[,Z,$,_]=J;return[`--${Z??$}`,_]}var HZ=4;function N7(Q,J,Z=1){o(Z<=HZ,`Max CSS variable fallback depth detected in property "${Q}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[$,_]=m9(Q);if(!$)return;let W=window.getComputedStyle(J).getPropertyValue($);if(W){let Y=W.trim();return l5(Y)?parseFloat(Y):Y}return J5(_)?N7(_,J,Z+1):_}function X4(Q){let J=[{},{}];return Q?.values.forEach((Z,$)=>{J[0][$]=Z.get(),J[1][$]=Z.getVelocity()}),J}function A6(Q,J,Z,$){if(typeof J==="function"){let[_,W]=X4($);J=J(Z!==void 0?Z:Q.custom,_,W)}if(typeof J==="string")J=Q.variants&&Q.variants[J];if(typeof J==="function"){let[_,W]=X4($);J=J(Z!==void 0?Z:Q.custom,_,W)}return J}function P0(Q,J,Z){let $=Q.getProps();return A6($,J,Z!==void 0?Z:$.custom,Q)}var V6=new Set(["width","height","top","left","right","bottom",...Y0]);var h5=(Q)=>{return Array.isArray(Q)};function zZ(Q,J,Z){if(Q.hasValue(J))Q.getValue(J).set(Z);else Q.addValue(J,m(Z))}function qZ(Q){return h5(Q)?Q[Q.length-1]||0:Q}function K8(Q,J){let Z=P0(Q,J),{transitionEnd:$={},transition:_={},...W}=Z||{};W={...W,...$};for(let Y in W){let X=qZ(W[Y]);zZ(Q,Y,X)}}var h=(Q)=>Boolean(Q&&Q.getVelocity);function N8(Q){return Boolean(h(Q)&&Q.add)}function w8(Q,J){let Z=Q.getValue("willChange");if(N8(Z))return Z.add(J);else if(!Z&&n.WillChange){let $=new n.WillChange("auto");Q.addValue("willChange",$),$.add(J)}}function j0(Q){return Q.replace(/([A-Z])/g,(J)=>`-${J.toLowerCase()}`)}var l9="framerAppearId",U8="data-"+j0(l9);function E6(Q){return Q.props[U8]}function BZ({protectedKeys:Q,needsAnimating:J},Z){let $=Q.hasOwnProperty(Z)&&J[Z]!==!0;return J[Z]=!1,$}function H5(Q,J,{delay:Z=0,transitionOverride:$,type:_}={}){let{transition:W,transitionEnd:Y,...X}=J,G=Q.getDefaultTransition();W=W?L6(W,G):G;let H=W?.reduceMotion,z=W?.skipAnimations;if($)W=$;let q=[],B=_&&Q.animationState&&Q.animationState.getState()[_],F=W?.path;if(F)F.animateVisualElement(Q,X,W,Z,q);for(let I in X){let K=Q.getValue(I,Q.latestValues[I]??null),N=X[I];if(N===void 0||B&&BZ(B,I))continue;let w={delay:Z,...e(W||{},I)};if(z)w.skipAnimations=!0;let O=K.get();if(O!==void 0&&!K.isAnimating()&&!Array.isArray(N)&&N===O&&!w.velocity){M.update(()=>K.set(N));continue}let C=!1;if(window.MotionHandoffAnimation){let S=E6(Q);if(S){let E=window.MotionHandoffAnimation(S,I,M);if(E!==null)w.startTime=E,C=!0}}w8(Q,I);let P=H??Q.shouldReduceMotion;K.start(G5(I,K,N,P&&V6.has(I)?{type:!1}:w,Q,C));let L=K.animation;if(L)q.push(L)}if(Y){let I=()=>M.update(()=>{Y&&K8(Q,Y)});if(q.length)Promise.all(q).then(I);else I()}return q}function R6(Q,J,Z={}){let $=P0(Q,J,Z.type==="exit"?Q.presenceContext?.custom:void 0),{transition:_=Q.getDefaultTransition()||{}}=$||{};if(Z.transitionOverride)_=Z.transitionOverride;let W=$?()=>Promise.all(H5(Q,$,Z)):()=>Promise.resolve(),Y=Q.variantChildren&&Q.variantChildren.size?(G=0)=>{let{delayChildren:H=0,staggerChildren:z,staggerDirection:q}=_;return FZ(Q,J,G,H,z,q,Z)}:()=>Promise.resolve(),{when:X}=_;if(X){let[G,H]=X==="beforeChildren"?[W,Y]:[Y,W];return G().then(()=>H())}else return Promise.all([W(),Y(Z.delay)])}function FZ(Q,J,Z=0,$=0,_=0,W=1,Y){let X=[];for(let G of Q.variantChildren)G.notify("AnimationStart",J),X.push(R6(G,J,{...Y,delay:Z+(typeof $==="function"?0:$)+M6(Q.variantChildren,G,$,_,W)}).then(()=>G.notify("AnimationComplete",J)));return Promise.all(X)}function C8(Q,J,Z={}){Q.notify("AnimationStart",J);let $;if(Array.isArray(J)){let _=J.map((W)=>R6(Q,W,Z));$=Promise.all(_)}else if(typeof J==="string")$=R6(Q,J,Z);else{let _=typeof J==="function"?P0(Q,J,Z.custom):J;$=Promise.all(H5(Q,_,Z))}return $.then(()=>{Q.notify("AnimationComplete",J)})}var G4={test:(Q)=>Q==="auto",parse:(Q)=>Q};var S6=(Q)=>(J)=>J.test(Q);var w7=[U0,U,_0,B0,t7,a7,G4],U7=(Q)=>w7.find(S6(Q));function H4(Q){if(typeof Q==="number")return Q===0;else if(Q!==null)return Q==="none"||Q==="0"||r5(Q);else return!0}var IZ=new Set(["brightness","contrast","saturate","opacity"]);function KZ(Q){let[J,Z]=Q.slice(0,-1).split("(");if(J==="drop-shadow")return Q;let[$]=Z.match(Y6)||[];if(!$)return Q;let _=Z.replace($,""),W=IZ.has(J)?1:0;if($!==Z)W*=100;return J+"("+W+_+")"}var NZ=/\b([a-z-]*)\(.*?\)/gu,C7={...p,getAnimatableNone:(Q)=>{let J=Q.match(NZ);return J?J.map(KZ).join(" "):Q}};var P7={...p,getAnimatableNone:(Q)=>{let J=p.parse(Q);return p.createTransformer(Q)(J.map(($)=>typeof $==="number"?0:typeof $==="object"?{...$,alpha:1}:$))}};var o9={...U0,transform:Math.round};var P8={rotate:B0,pathRotation:B0,rotateX:B0,rotateY:B0,rotateZ:B0,scale:P5,scaleX:P5,scaleY:P5,scaleZ:P5,skew:B0,skewX:B0,skewY:B0,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:O0,originX:z7,originY:z7,originZ:U};var D0={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...P8,zIndex:o9,fillOpacity:O0,strokeOpacity:O0,numOctaves:o9};var r9={...D0,color:y,backgroundColor:y,outlineColor:y,fill:y,stroke:y,borderColor:y,borderTopColor:y,borderRightColor:y,borderBottomColor:y,borderLeftColor:y,filter:C7,WebkitFilter:C7,mask:P7,WebkitMask:P7},T6=(Q)=>r9[Q];var wZ=new Set([C7,P7]);function h6(Q,J){let Z=T6(Q);if(!wZ.has(Z))Z=p;return Z.getAnimatableNone?Z.getAnimatableNone(J):void 0}var UZ=new Set(["auto","none","0"]);function z4(Q,J,Z){let $=0,_=void 0;while($<Q.length&&!_){let W=Q[$];if(typeof W==="string"&&!UZ.has(W)&&R0(W).values.length)_=Q[$];$++}if(_&&Z)for(let W of J)Q[W]=h6(Z,_)}class O7 extends v0{constructor(Q,J,Z,$,_){super(Q,J,Z,$,_,!0)}readKeyframes(){let{unresolvedKeyframes:Q,element:J,name:Z}=this;if(!J||!J.current)return;super.readKeyframes();for(let H=0;H<Q.length;H++){let z=Q[H];if(typeof z==="string"){if(z=z.trim(),J5(z)){let q=N7(z,J.current);if(q!==void 0)Q[H]=q;if(H===Q.length-1)this.finalKeyframe=z}}}if(this.resolveNoneKeyframes(),!V6.has(Z)||Q.length!==2)return;let[$,_]=Q,W=U7($),Y=U7(_),X=X7($),G=X7(_);if(X!==G&&g0[Z]){this.needsMeasurement=!0;return}if(W===Y)return;if(f9(W)&&f9(Y))for(let H=0;H<Q.length;H++){let z=Q[H];if(typeof z==="string")Q[H]=parseFloat(z)}else if(g0[Z])this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:Q,name:J}=this,Z=[];for(let $=0;$<Q.length;$++)if(Q[$]===null||H4(Q[$]))Z.push($);if(Z.length)z4(Q,Z,J)}measureInitialState(){let{element:Q,unresolvedKeyframes:J,name:Z}=this;if(!Q||!Q.current)return;if(Z==="height")this.suspendedScrollY=window.pageYOffset;this.measuredOrigin=g0[Z](Q.measureViewportBox(),window.getComputedStyle(Q.current)),J[0]=this.measuredOrigin;let $=J[J.length-1];if($!==void 0)Q.getValue(Z,$).jump($,!1)}measureEndState(){let{element:Q,name:J,unresolvedKeyframes:Z}=this;if(!Q||!Q.current)return;let $=Q.getValue(J);$&&$.jump(this.measuredOrigin,!1);let _=Z.length-1,W=Z[_];if(Z[_]=g0[J](Q.measureViewportBox(),window.getComputedStyle(Q.current)),W!==null&&this.finalKeyframe===void 0)this.finalKeyframe=W;if(this.removedTransforms?.length)this.removedTransforms.forEach(([Y,X])=>{Q.getValue(Y).set(X)});this.resolveNoneKeyframes()}}var q4=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);function O8(Q,J){for(let Z=0;Z<Q.length;Z++)if(typeof Q[Z]==="number"&&q4.has(J))Q[Z]=Q[Z]+"px"}function i9(Q){return Boolean(typeof Q==="function"&&d0()||!Q||typeof Q==="string"&&((Q in V5)||d0())||e0(Q)||Array.isArray(Q)&&Q.every(i9))}var B4=s0(()=>{try{document.createElement("div").animate({opacity:[1]})}catch(Q){return!1}return!0});function Q0(Q,J,Z){if(Q==null)return[];if(Q instanceof EventTarget)return[Q];else if(typeof Q==="string"){let $=document;if(J)$=J.current;let _=Z?.[Q]??$.querySelectorAll(Q);return _?Array.from(_):[]}return Array.from(Q).filter(($)=>$!=null)}function b6(Q){return(J,Z)=>{let $=Q0(J),_=[];for(let W of $){let Y=Q(W,Z);_.push(Y)}return()=>{for(let W of _)W()}}}var u0=(Q,J)=>{return J&&typeof Q==="number"?J.transform(Q):Q};class s9{constructor(){this.latest={},this.values=new Map}set(Q,J,Z,$,_=!0){let W=this.values.get(Q);if(W)W.onRemove();let Y=()=>{let H=J.get();if(_)this.latest[Q]=u0(H,D0[Q]);else this.latest[Q]=H;Z&&M.render(Z)};Y();let X=J.on("change",Y);$&&J.addDependent($);let G=()=>{X(),Z&&x(Z),this.values.delete(Q),$&&J.removeDependent($)};return this.values.set(Q,{value:J,onRemove:G}),G}get(Q){return this.values.get(Q)?.value}}function z5(Q){let J=new WeakMap;return(Z,$)=>{let _=J.get(Z)??new s9;J.set(Z,_);let W=[];for(let Y in $){let X=$[Y],G=Q(Z,_,Y,X);W.push(G)}return()=>{for(let Y of W)Y()}}}function CZ(Q,J){if(!(J in Q))return!1;let Z=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Q),J)||Object.getOwnPropertyDescriptor(Q,J);return Z&&typeof Z.set==="function"}var j6=(Q,J,Z,$)=>{let _=CZ(Q,Z),W=_?Z:Z.startsWith("data")||Z.startsWith("aria")?j0(Z):Z,Y=_?()=>{Q[W]=J.latest[Z]}:()=>{let X=J.latest[Z];if(X===null||X===void 0)Q.removeAttribute(W);else Q.setAttribute(W,String(X))};return J.set(Z,$,Y)},F4=b6(z5(j6));var I4=z5((Q,J,Z,$)=>{return J.set(Z,$,()=>{Q[Z]=J.latest[Z]},void 0,!1)});function q5(Q){return o5(Q)&&"offsetHeight"in Q&&!("ownerSVGElement"in Q)}var PZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function K4(Q){let J="",Z=!0;for(let _=0;_<Y0.length;_++){let W=Y0[_],Y=Q.latest[W];if(Y===void 0)continue;let X=!0;if(typeof Y==="number")X=Y===(W.startsWith("scale")?1:0);else{let G=parseFloat(Y);X=W.startsWith("scale")?G===1:G===0}if(!X){Z=!1;let G=PZ[W]||W;J+=`${G}(${Y}) `}}let $=Q.latest.pathRotation;if($)Z=!1,J+=`rotate(${typeof $==="number"?`${$}deg`:$}) `;return Z?"none":J.trim()}var OZ=new Set(["originX","originY","originZ"]),k6=(Q,J,Z,$)=>{let _=void 0,W=void 0;if(t.has(Z)){if(!J.get("transform")){if(!q5(Q)&&!J.get("transformBox"))k6(Q,J,"transformBox",new b0("fill-box"));J.set("transform",new b0("none"),()=>{Q.style.transform=K4(J)})}W=J.get("transform")}else if(OZ.has(Z)){if(!J.get("transformOrigin"))J.set("transformOrigin",new b0(""),()=>{let Y=J.latest.originX??"50%",X=J.latest.originY??"50%",G=J.latest.originZ??0;Q.style.transformOrigin=`${Y} ${X} ${G}`});W=J.get("transformOrigin")}else if(w6(Z))_=()=>{Q.style.setProperty(Z,J.latest[Z])};else _=()=>{Q.style[Z]=J.latest[Z]};return J.set(Z,$,_,W)},N4=b6(z5(k6));function DZ(Q,J,Z,$){if(M.render(()=>Q.setAttribute("pathLength","1")),Z==="pathOffset")return J.set(Z,$,()=>{let _=J.latest[Z];Q.setAttribute("stroke-dashoffset",`${-_}`)});else{if(!J.get("stroke-dasharray"))J.set("stroke-dasharray",new b0("1 1"),()=>{let{pathLength:_=1,pathSpacing:W}=J.latest;Q.setAttribute("stroke-dasharray",`${_} ${W??1-Number(_)}`)});return J.set(Z,$,void 0,J.get("stroke-dasharray"))}}var MZ=(Q,J,Z,$)=>{if(Z.startsWith("path"))return DZ(Q,J,Z,$);else if(Z.startsWith("attr"))return j6(Q,J,LZ(Z),$);return(Z in Q.style?k6:j6)(Q,J,Z,$)},w4=b6(z5(MZ));function LZ(Q){return Q.replace(/^attr([A-Z])/,(J,Z)=>Z.toLowerCase())}var{schedule:B5,cancel:U4}=$6(queueMicrotask,!1);var G0={x:!1,y:!1};function x6(){return G0.x||G0.y}function C4(Q){if(Q==="x"||Q==="y")if(G0[Q])return null;else return G0[Q]=!0,()=>{G0[Q]=!1};else if(G0.x||G0.y)return null;else return G0.x=G0.y=!0,()=>{G0.x=G0.y=!1}}function D8(Q,J){let Z=Q0(Q),$=new AbortController,_={passive:!0,...J,signal:$.signal};return[Z,_,()=>$.abort()]}function AZ(Q){return!(Q.pointerType==="touch"||x6())}function P4(Q,J,Z={}){let[$,_,W]=D8(Q,Z);return $.forEach((Y)=>{let X=!1,G=!1,H,z=()=>{Y.removeEventListener("pointerleave",I)},q=(N)=>{if(H)H(N),H=void 0;z()},B=(N)=>{if(X=!1,window.removeEventListener("pointerup",B),window.removeEventListener("pointercancel",B),G)G=!1,q(N)},F=()=>{X=!0,window.addEventListener("pointerup",B,_),window.addEventListener("pointercancel",B,_)},I=(N)=>{if(N.pointerType==="touch")return;if(X){G=!0;return}q(N)},K=(N)=>{if(!AZ(N))return;G=!1;let w=J(Y,N);if(typeof w!=="function")return;H=w,Y.addEventListener("pointerleave",I,_)};Y.addEventListener("pointerenter",K,_),Y.addEventListener("pointerdown",F,_)}),W}var D7=(Q,J)=>{if(!J)return!1;else if(Q===J)return!0;else return D7(Q,J.parentElement)};var M8=(Q)=>{if(Q.pointerType==="mouse")return typeof Q.button!=="number"||Q.button<=0;else return Q.isPrimary!==!1};var VZ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function L8(Q){return VZ.has(Q.tagName)||Q.isContentEditable===!0}var EZ=new Set(["INPUT","SELECT","TEXTAREA"]);function O4(Q){return EZ.has(Q.tagName)||Q.isContentEditable===!0}var y6=new WeakSet;function D4(Q){return(J)=>{if(J.key!=="Enter")return;Q(J)}}function n9(Q,J){Q.dispatchEvent(new PointerEvent("pointer"+J,{isPrimary:!0,bubbles:!0}))}var M4=(Q,J)=>{let Z=Q.currentTarget;if(!Z)return;let $=D4(()=>{if(y6.has(Z))return;n9(Z,"down");let _=D4(()=>{n9(Z,"up")}),W=()=>n9(Z,"cancel");Z.addEventListener("keyup",_,J),Z.addEventListener("blur",W,J)});Z.addEventListener("keydown",$,J),Z.addEventListener("blur",()=>Z.removeEventListener("keydown",$),J)};function L4(Q){return M8(Q)&&!x6()}var A4=new WeakSet;function V4(Q,J,Z={}){let[$,_,W]=D8(Q,Z),Y=(X)=>{let G=X.currentTarget;if(!L4(X))return;if(A4.has(X))return;if(y6.add(G),Z.stopPropagation)A4.add(X);let H=J(G,X),z=(F,I)=>{if(window.removeEventListener("pointerup",q),window.removeEventListener("pointercancel",B),y6.has(G))y6.delete(G);if(!L4(F))return;if(typeof H==="function")H(F,{success:I})},q=(F)=>{z(F,G===window||G===document||Z.useGlobalTarget||D7(G,F.target))},B=(F)=>{z(F,!1)};window.addEventListener("pointerup",q,_),window.addEventListener("pointercancel",B,_)};return $.forEach((X)=>{if((Z.useGlobalTarget?window:X).addEventListener("pointerdown",Y,_),q5(X)){if(X.addEventListener("focus",(H)=>M4(H,_)),!L8(X)&&!X.hasAttribute("tabindex"))X.tabIndex=0}}),W}function M7(Q,J){let Z=window.getComputedStyle(Q);return w6(J)?Z.getPropertyValue(J):Z[J]}function k0(Q){return o5(Q)&&"ownerSVGElement"in Q}var A8=new WeakMap,V8,E4=(Q,J,Z)=>($,_)=>{if(_&&_[0])return _[0][Q+"Size"];else if(k0($)&&"getBBox"in $)return $.getBBox()[J];else return $[Z]},RZ=E4("inline","width","offsetWidth"),SZ=E4("block","height","offsetHeight");function TZ({target:Q,borderBoxSize:J}){A8.get(Q)?.forEach((Z)=>{Z(Q,{get width(){return RZ(Q,J)},get height(){return SZ(Q,J)}})})}function hZ(Q){Q.forEach(TZ)}function bZ(){if(typeof ResizeObserver>"u")return;V8=new ResizeObserver(hZ)}function R4(Q,J){if(!V8)bZ();let Z=Q0(Q);return Z.forEach(($)=>{let _=A8.get($);if(!_)_=new Set,A8.set($,_);_.add(J),V8?.observe($)}),()=>{Z.forEach(($)=>{let _=A8.get($);if(_?.delete(J),!_?.size)V8?.unobserve($)})}}var E8=new Set,f6;function jZ(){f6=()=>{let Q={get width(){return window.innerWidth},get height(){return window.innerHeight}};E8.forEach((J)=>J(Q))},window.addEventListener("resize",f6)}function S4(Q){if(E8.add(Q),!f6)jZ();return()=>{if(E8.delete(Q),!E8.size&&typeof f6==="function")window.removeEventListener("resize",f6),f6=void 0}}function R8(Q,J){return typeof Q==="function"?S4(Q):R4(Q,J)}function g6(Q,J){let Z,$=()=>{let{currentTime:_}=J,Y=(_===null?0:_.value)/100;if(Z!==Y)Q(Y);Z=Y};return M.preUpdate($,!0),()=>x($)}function t9(){let{value:Q}=u;if(Q===null){x(t9);return}Q.frameloop.rate.push(v.delta),Q.animations.mainThread.push(a.mainThread),Q.animations.waapi.push(a.waapi),Q.animations.layout.push(a.layout)}function kZ(Q){return Q.reduce((J,Z)=>J+Z,0)/Q.length}function W0(Q,J=kZ){if(Q.length===0)return{min:0,max:0,avg:0};return{min:Math.min(...Q),max:Math.max(...Q),avg:J(Q)}}var a9=(Q)=>Math.round(1000/Q);function T4(){u.value=null,u.addProjectionMetrics=null}function xZ(){let{value:Q}=u;if(!Q)throw Error("Stats are not being measured");T4(),x(t9);let J={frameloop:{setup:W0(Q.frameloop.setup),rate:W0(Q.frameloop.rate),read:W0(Q.frameloop.read),resolveKeyframes:W0(Q.frameloop.resolveKeyframes),preUpdate:W0(Q.frameloop.preUpdate),update:W0(Q.frameloop.update),preRender:W0(Q.frameloop.preRender),render:W0(Q.frameloop.render),postRender:W0(Q.frameloop.postRender)},animations:{mainThread:W0(Q.animations.mainThread),waapi:W0(Q.animations.waapi),layout:W0(Q.animations.layout)},layoutProjection:{nodes:W0(Q.layoutProjection.nodes),calculatedTargetDeltas:W0(Q.layoutProjection.calculatedTargetDeltas),calculatedProjections:W0(Q.layoutProjection.calculatedProjections)}},{rate:Z}=J.frameloop;return Z.min=a9(Z.min),Z.max=a9(Z.max),Z.avg=a9(Z.avg),[Z.min,Z.max]=[Z.max,Z.min],J}function h4(){if(u.value)throw T4(),Error("Stats are already being measured");let Q=u;return Q.value={frameloop:{setup:[],rate:[],read:[],resolveKeyframes:[],preUpdate:[],update:[],preRender:[],render:[],postRender:[]},animations:{mainThread:[],waapi:[],layout:[]},layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},Q.addProjectionMetrics=(J)=>{let{layoutProjection:Z}=Q.value;Z.nodes.push(J.nodes),Z.calculatedTargetDeltas.push(J.calculatedTargetDeltas),Z.calculatedProjections.push(J.calculatedProjections)},M.postRender(t9,!0),xZ}function v6(Q){return k0(Q)&&Q.tagName==="svg"}function e9(Q,J){if(Q==="first")return 0;else{let Z=J-1;return Q==="last"?Z:Z/2}}function b4(Q=0.1,{startDelay:J=0,from:Z=0,ease:$}={}){return(_,W)=>{let Y=typeof Z==="number"?Z:e9(Z,W),X=Math.abs(Y-_),G=Q*X;if($){let H=W*Q;G=U5($)(G/H)*H}return J+G}}function S8(...Q){let J=!Array.isArray(Q[0]),Z=J?0:-1,$=Q[0+Z],_=Q[1+Z],W=Q[2+Z],Y=Q[3+Z],X=Y5(_,W,Y);return J?X($):X}function T8(Q,J){let Z=h(Q)?Q.get():Q,$=m(Z);return L7($,Q,J),$}function L7(Q,J,Z={}){let $=Q.get(),_=null,W=$,Y,X=typeof $==="string"?$.replace(/[\d.-]/g,""):void 0,G=()=>{if(_)_.stop(),_=null;Q.animation=void 0},H=()=>{let q=j4(Q.get()),B=j4(W);if(q===B){G();return}let F=_?_.getGeneratorVelocity():Q.getVelocity();G(),_=new F0({keyframes:[q,B],velocity:F,type:"spring",restDelta:0.001,restSpeed:0.01,...Z,onUpdate:Y})},z=()=>{H(),Q.animation=_??void 0,Q.events.animationStart?.notify(),_?.then(()=>{Q.animation=void 0,Q.events.animationComplete?.notify()})};if(Q.attach((q,B)=>{W=q,Y=(F)=>B(Q1(F,X)),M.postRender(z)},G),h(J)){let q=Z.skipInitialAnimation===!0,B=J.on("change",(I)=>{if(q)q=!1,Q.jump(Q1(I,X),!1);else Q.set(Q1(I,X))}),F=Q.on("destroy",B);return()=>{B(),F()}}return G}function Q1(Q,J){return J?Q+J:Q}function j4(Q){return typeof Q==="number"?Q:parseFloat(Q)}function k4(Q,J,Z){let $=()=>J.set(Z()),_=()=>M.preRender($,!1,!0),W=Q.map((Y)=>Y.on("change",_));J.on("destroy",()=>{W.forEach((Y)=>Y()),x($)})}function h8(Q){let J=[];T5.current=J;let Z=Q();T5.current=void 0;let $=m(Z);return k4(J,$,Q),$}function x4(Q,J,Z,$){let _=S8(J,Z,$);return h8(()=>_(Q.get()))}function y4(Q,J){return T8(Q,{type:"spring",...J})}function f4(Q,J,Z){return L7(Q,J,{type:"spring",...Z})}var yZ=[...w7,y,p],b8=(Q)=>yZ.find(S6(Q));function g4(Q){if(Q==="layout")return"group";if(Q==="enter"||Q==="new")return"new";if(Q==="exit"||Q==="old")return"old";return"group"}var j8={},p0=null,A7={set:(Q,J)=>{j8[Q]=J},commit:()=>{if(!p0)p0=document.createElement("style"),p0.id="motion-view";let Q="";for(let J in j8){let Z=j8[J];Q+=`${J} {
2
+ `;for(let[$,_]of Object.entries(Z))Q+=` ${$}: ${_};
3
+ `;Q+=`}
4
+ `}p0.textContent=Q,document.head.appendChild(p0),j8={}},remove:()=>{if(p0&&p0.parentElement)p0.parentElement.removeChild(p0)}};function k8(Q){let J=Q.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);if(!J)return null;return{layer:J[2],type:J[1]}}function fZ(Q){let{effect:J}=Q;if(!J)return!1;return J.target===document.documentElement&&J.pseudoElement?.startsWith("::view-transition")}function x8(){return document.getAnimations().filter(fZ)}function v4(Q,J){return J.has(Q)&&Object.keys(J.get(Q)).length>0}var gZ=["layout","enter","exit","new","old"];function c4(Q){let{update:J,targets:Z,options:$}=Q;if(!document.startViewTransition)return new Promise(async(W)=>{await J(),W(new h0([]))});if(!v4("root",Z))A7.set(":root",{"view-transition-name":"none"});A7.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),A7.commit();let _=document.startViewTransition(async()=>{await J()});return _.finished.finally(()=>{A7.remove()}),new Promise((W)=>{_.ready.then(()=>{let Y=x8(),X=[];Z.forEach((G,H)=>{for(let z of gZ){if(!G[z])continue;let{keyframes:q,options:B}=G[z];for(let[F,I]of Object.entries(q)){if(!I)continue;let K={...e($,F),...e(B,F)},N=g4(z);if(F==="opacity"&&!Array.isArray(I))I=[N==="new"?0:1,I];if(typeof K.delay==="function")K.delay=K.delay(0,1);K.duration&&(K.duration=T(K.duration)),K.delay&&(K.delay=T(K.delay));let w=new I0({...K,element:document.documentElement,name:F,pseudoElement:`::view-transition-${N}(${H})`,keyframes:I});X.push(w)}}});for(let G of Y){if(G.playState==="finished")continue;let{effect:H}=G;if(!H||!(H instanceof KeyframeEffect))continue;let{pseudoElement:z}=H;if(!z)continue;let q=k8(z);if(!q)continue;let B=Z.get(q.layer);if(!B){let F=q.type==="group"?"layout":"",I={...e($,F)};I.duration&&(I.duration=T(I.duration)),I=P6(I);let K=E5(I.ease,I.duration);H.updateTiming({delay:T(I.delay??0),duration:I.duration,easing:K}),X.push(new D6(G))}else if(d4(B,"enter")&&d4(B,"exit")&&H.getKeyframes().some((F)=>F.mixBlendMode))X.push(new D6(G));else G.cancel()}W(new h0(X))})})}function d4(Q,J){return Q?.[J]?.keyframes.opacity}var m0=[],J1=null;function u4(){J1=null;let[Q]=m0;if(Q)vZ(Q)}function vZ(Q){$0(m0,Q),J1=Q,c4(Q).then((J)=>{Q.notifyReady(J),J.finished.finally(u4)})}function dZ(){for(let Q=m0.length-1;Q>=0;Q--){let J=m0[Q],{interrupt:Z}=J.options;if(Z==="immediate"){let $=m0.slice(0,Q+1).map((W)=>W.update),_=m0.slice(Q+1);J.update=()=>{$.forEach((W)=>W())},m0=[J,..._];break}}if(!J1||m0[0]?.options.interrupt==="immediate")u4()}function p4(Q){m0.push(Q),B5.render(dZ)}class y8{constructor(Q,J={}){this.currentSubject="root",this.targets=new Map,this.notifyReady=g,this.readyPromise=new Promise((Z)=>{this.notifyReady=Z}),this.update=Q,this.options={interrupt:"wait",...J},p4(this)}get(Q){return this.currentSubject=Q,this}layout(Q,J){return this.updateTarget("layout",Q,J),this}new(Q,J){return this.updateTarget("new",Q,J),this}old(Q,J){return this.updateTarget("old",Q,J),this}enter(Q,J){return this.updateTarget("enter",Q,J),this}exit(Q,J){return this.updateTarget("exit",Q,J),this}crossfade(Q){return this.updateTarget("enter",{opacity:1},Q),this.updateTarget("exit",{opacity:0},Q),this}updateTarget(Q,J,Z={}){let{currentSubject:$,targets:_}=this;if(!_.has($))_.set($,{});let W=_.get($);W[Q]={keyframes:J,options:Z}}then(Q,J){return this.readyPromise.then(Q,J)}}function m4(Q,J={}){return new y8(Q,J)}var f8=()=>({translate:0,scale:1,origin:0,originPoint:0}),l0=()=>({x:f8(),y:f8()}),g8=()=>({min:0,max:0}),k=()=>({x:g8(),y:g8()});var H0=new WeakMap;function d6(Q){return Q!==null&&typeof Q==="object"&&typeof Q.start==="function"}function F5(Q){return typeof Q==="string"||Array.isArray(Q)}var c6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b5=["initial",...c6];function V7(Q){return d6(Q.animate)||b5.some((J)=>F5(Q[J]))}function v8(Q){return Boolean(V7(Q)||Q.variants)}function d8(Q,J,Z){for(let $ in J){let _=J[$],W=Z[$];if(h(_))Q.addValue($,_);else if(h(W))Q.addValue($,m(_,{owner:Q}));else if(W!==_)if(Q.hasValue($)){let Y=Q.getValue($);if(Y.liveStyle===!0)Y.jump(_);else if(!Y.hasAnimated)Y.set(_)}else{let Y=Q.getStaticValue($);Q.addValue($,m(Y!==void 0?Y:_,{owner:Q}))}}for(let $ in Z)if(J[$]===void 0)Q.removeValue($);return J}var j5={current:null},u6={current:!1};var cZ=typeof window<"u";function c8(){if(u6.current=!0,!cZ)return;if(window.matchMedia){let Q=window.matchMedia("(prefers-reduced-motion)"),J=()=>j5.current=Q.matches;Q.addEventListener("change",J),J()}else j5.current=!1}var l4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],u8={};function o4(Q){u8=Q}function r4(){return u8}class k5{scrapeMotionValuesFromProps(Q,J,Z){return{}}constructor({parent:Q,props:J,presenceContext:Z,reducedMotionConfig:$,skipAnimations:_,blockInitialAnimation:W,visualState:Y},X={}){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=v0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{if(!this.current)return;this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection)},this.renderScheduledAt=0,this.scheduleRender=()=>{let B=f.now();if(this.renderScheduledAt<B)this.renderScheduledAt=B,M.render(this.render,!1,!0)};let{latestValues:G,renderState:H}=Y;if(this.latestValues=G,this.baseTarget={...G},this.initialValues=J.initial?{...G}:{},this.renderState=H,this.parent=Q,this.props=J,this.presenceContext=Z,this.depth=Q?Q.depth+1:0,this.reducedMotionConfig=$,this.skipAnimationsConfig=_,this.options=X,this.blockInitialAnimation=Boolean(W),this.isControllingVariants=V7(J),this.isVariantNode=v8(J),this.isVariantNode)this.variantChildren=new Set;this.manuallyAnimateOnMount=Boolean(Q&&Q.current);let{willChange:z,...q}=this.scrapeMotionValuesFromProps(J,{},this);for(let B in q){let F=q[B];if(G[B]!==void 0&&h(F))F.set(G[B])}}mount(Q){if(this.hasBeenMounted)for(let J in this.initialValues)this.values.get(J)?.jump(this.initialValues[J]),this.latestValues[J]=this.initialValues[J];if(this.current=Q,H0.set(Q,this),this.projection&&!this.projection.instance)this.projection.mount(Q);if(this.parent&&this.isVariantNode&&!this.isControllingVariants)this.removeFromVariantTree=this.parent.addVariantChild(this);if(this.values.forEach((J,Z)=>this.bindToMotionValue(Z,J)),this.reducedMotionConfig==="never")this.shouldReduceMotion=!1;else if(this.reducedMotionConfig==="always")this.shouldReduceMotion=!0;else{if(!u6.current)c8();this.shouldReduceMotion=j5.current}this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),x(this.notifyUpdate),x(this.render),this.valueSubscriptions.forEach((Q)=>Q()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let Q in this.events)this.events[Q].clear();for(let Q in this.features){let J=this.features[Q];if(J)J.unmount(),J.isMounted=!1}this.current=null}addChild(Q){this.children.add(Q),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(Q)}removeChild(Q){this.children.delete(Q),this.enteringChildren&&this.enteringChildren.delete(Q)}bindToMotionValue(Q,J){if(this.valueSubscriptions.has(Q))this.valueSubscriptions.get(Q)();if(J.accelerate&&O6.has(Q)&&this.current instanceof HTMLElement){let{factory:W,keyframes:Y,times:X,ease:G,duration:H}=J.accelerate,z=new I0({element:this.current,name:Q,keyframes:Y,times:X,ease:G,duration:T(H)}),q=W(z);this.valueSubscriptions.set(Q,()=>{q(),z.cancel()});return}let Z=t.has(Q);if(Z&&this.onBindTransform)this.onBindTransform();let $=J.on("change",(W)=>{if(this.latestValues[Q]=W,this.props.onUpdate&&M.preRender(this.notifyUpdate),Z&&this.projection)this.projection.isTransformDirty=!0;this.scheduleRender()}),_;if(typeof window<"u"&&window.MotionCheckAppearSync)_=window.MotionCheckAppearSync(this,Q,J);this.valueSubscriptions.set(Q,()=>{if($(),_)_()})}sortNodePosition(Q){if(!this.current||!this.sortInstanceNodePosition||this.type!==Q.type)return 0;return this.sortInstanceNodePosition(this.current,Q.current)}updateFeatures(){let Q="animation";for(Q in u8){let J=u8[Q];if(!J)continue;let{isEnabled:Z,Feature:$}=J;if(!this.features[Q]&&$&&Z(this.props))this.features[Q]=new $(this);if(this.features[Q]){let _=this.features[Q];if(_.isMounted)_.update();else _.mount(),_.isMounted=!0}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(Q){return this.latestValues[Q]}setStaticValue(Q,J){this.latestValues[Q]=J}update(Q,J){if(Q.transformTemplate||this.props.transformTemplate)this.scheduleRender();this.prevProps=this.props,this.props=Q,this.prevPresenceContext=this.presenceContext,this.presenceContext=J;for(let Z=0;Z<l4.length;Z++){let $=l4[Z];if(this.propEventSubscriptions[$])this.propEventSubscriptions[$](),delete this.propEventSubscriptions[$];let _="on"+$,W=Q[_];if(W)this.propEventSubscriptions[$]=this.on($,W)}if(this.prevMotionValues=d8(this,this.scrapeMotionValuesFromProps(Q,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue)this.handleChildMotionValue()}getProps(){return this.props}getVariant(Q){return this.props.variants?this.props.variants[Q]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(Q){let J=this.getClosestVariantNode();if(J)return J.variantChildren&&J.variantChildren.add(Q),()=>J.variantChildren.delete(Q)}addValue(Q,J){let Z=this.values.get(Q);if(J!==Z){if(Z)this.removeValue(Q);this.bindToMotionValue(Q,J),this.values.set(Q,J),this.latestValues[Q]=J.get()}}removeValue(Q){this.values.delete(Q);let J=this.valueSubscriptions.get(Q);if(J)J(),this.valueSubscriptions.delete(Q);delete this.latestValues[Q],this.removeValueFromRenderState(Q,this.renderState)}hasValue(Q){return this.values.has(Q)}getValue(Q,J){if(this.props.values&&this.props.values[Q])return this.props.values[Q];let Z=this.values.get(Q);if(Z===void 0&&J!==void 0)Z=m(J===null?void 0:J,{owner:this}),this.addValue(Q,Z);return Z}readValue(Q,J){let Z=this.latestValues[Q]!==void 0||!this.current?this.latestValues[Q]:this.getBaseTargetFromProps(this.props,Q)??this.readValueFromInstance(this.current,Q,this.options);if(Z!==void 0&&Z!==null){if(typeof Z==="string"&&(l5(Z)||r5(Z)))Z=parseFloat(Z);else if(!b8(Z)&&p.test(J))Z=h6(Q,J);this.setBaseTarget(Q,h(Z)?Z.get():Z)}return h(Z)?Z.get():Z}setBaseTarget(Q,J){this.baseTarget[Q]=J}getBaseTarget(Q){let{initial:J}=this.props,Z;if(typeof J==="string"||typeof J==="object"){let _=A6(this.props,J,this.presenceContext?.custom);if(_)Z=_[Q]}if(J&&Z!==void 0)return Z;let $=this.getBaseTargetFromProps(this.props,Q);if($!==void 0&&!h($))return $;return this.initialValues[Q]!==void 0&&Z===void 0?void 0:this.baseTarget[Q]}on(Q,J){if(!this.events[Q])this.events[Q]=new y0;return this.events[Q].add(J)}notify(Q,...J){if(this.events[Q])this.events[Q].notify(...J)}scheduleRenderMicrotask(){B5.render(this.render)}}class x5 extends k5{constructor(){super(...arguments);this.KeyframeResolver=O7}sortInstanceNodePosition(Q,J){return Q.compareDocumentPosition(J)&2?1:-1}getBaseTargetFromProps(Q,J){let Z=Q.style;return Z?Z[J]:void 0}removeValueFromRenderState(Q,{vars:J,style:Z}){delete J[Q],delete Z[Q]}handleChildMotionValue(){if(this.childSubscription)this.childSubscription(),delete this.childSubscription;let{children:Q}=this.props;if(h(Q))this.childSubscription=Q.on("change",(J)=>{if(this.current)this.current.textContent=`${J}`})}}class Z1{constructor(Q){this.isMounted=!1,this.node=Q}update(){}}function p8({top:Q,left:J,right:Z,bottom:$}){return{x:{min:J,max:Z},y:{min:Q,max:$}}}function i4({x:Q,y:J}){return{top:J.min,right:Q.max,bottom:J.max,left:Q.min}}function m8(Q,J){if(!J)return Q;let Z=J({x:Q.left,y:Q.top}),$=J({x:Q.right,y:Q.bottom});return{top:Z.y,left:Z.x,bottom:$.y,right:$.x}}function $1(Q){return Q===void 0||Q===1}function p6({scale:Q,scaleX:J,scaleY:Z}){return!$1(Q)||!$1(J)||!$1(Z)}function M0(Q){return p6(Q)||E7(Q)||Q.z||Q.rotate||Q.rotateX||Q.rotateY||Q.skewX||Q.skewY}function E7(Q){return s4(Q.x)||s4(Q.y)}function s4(Q){return Q&&Q!=="0%"}function y5(Q,J,Z){let $=Q-Z,_=J*$;return Z+_}function l8(Q,J,Z,$,_){if(_!==void 0)Q=y5(Q,_,$);return y5(Q,Z,$)+J}function R7(Q,J=0,Z=1,$,_){Q.min=l8(Q.min,J,Z,$,_),Q.max=l8(Q.max,J,Z,$,_)}function S7(Q,{x:J,y:Z}){R7(Q.x,J.translate,J.scale,J.originPoint),R7(Q.y,Z.translate,Z.scale,Z.originPoint)}var n4=0.999999999999,a4=1.0000000000001;function r8(Q,J,Z,$=!1){let _=Z.length;if(!_)return;J.x=J.y=1;let W,Y;for(let X=0;X<_;X++){W=Z[X],Y=W.projectionDelta;let{visualElement:G}=W.options;if(G&&G.props.style&&G.props.style.display==="contents")continue;if($&&W.options.layoutScroll&&W.scroll&&W!==W.root)z0(Q.x,-W.scroll.offset.x),z0(Q.y,-W.scroll.offset.y);if(Y)J.x*=Y.x.scale,J.y*=Y.y.scale,S7(Q,Y);if($&&M0(W.latestValues))f5(Q,W.latestValues,W.layout?.layoutBox)}if(J.x<a4&&J.x>n4)J.x=1;if(J.y<a4&&J.y>n4)J.y=1}function z0(Q,J){Q.min+=J,Q.max+=J}function o8(Q,J,Z,$,_=0.5){let W=R(Q.min,Q.max,_);R7(Q,J,Z,W,$)}function t4(Q,J){if(typeof Q==="string")return parseFloat(Q)/100*(J.max-J.min);return Q}function f5(Q,J,Z){let $=Z??Q;o8(Q.x,t4(J.x,$.x),J.scaleX,J.scale,J.originX),o8(Q.y,t4(J.y,$.y),J.scaleY,J.scale,J.originY)}function T7(Q,J){return p8(m8(Q.getBoundingClientRect(),J))}function e4(Q,J,Z){let $=T7(Q,Z),{scroll:_}=J;if(_)z0($.x,_.offset.x),z0($.y,_.offset.y);return $}var uZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pZ=Y0.length;function i8(Q,J,Z){let $="",_=!0;for(let Y=0;Y<pZ;Y++){let X=Y0[Y],G=Q[X];if(G===void 0)continue;let H=!0;if(typeof G==="number")H=G===(X.startsWith("scale")?1:0);else{let z=parseFloat(G);H=X.startsWith("scale")?z===1:z===0}if(!H||Z){let z=u0(G,D0[X]);if(!H){_=!1;let q=uZ[X]||X;$+=`${q}(${z}) `}if(Z)J[X]=z}}let W=Q.pathRotation;if(W)_=!1,$+=`rotate(${u0(W,D0.pathRotation)}) `;if($=$.trim(),Z)$=Z(J,_?"":$);else if(_)$="none";return $}function m6(Q,J,Z){let{style:$,vars:_,transformOrigin:W}=Q,Y=!1,X=!1;for(let G in J){let H=J[G];if(t.has(G)){Y=!0;continue}else if(Q5(G)){_[G]=H;continue}else{let z=u0(H,D0[G]);if(G.startsWith("origin"))X=!0,W[G]=z;else $[G]=z}}if(!J.transform){if(Y||Z)$.transform=i8(J,Q.transform,Z);else if($.transform)$.transform="none"}if(X){let{originX:G="50%",originY:H="50%",originZ:z=0}=W;$.transformOrigin=`${G} ${H} ${z}`}}function l6(Q,{style:J,vars:Z},$,_){let W=Q.style,Y;for(Y in J)W[Y]=J[Y];_?.applyProjectionStyles(W,$);for(Y in Z)W.setProperty(Y,Z[Y])}function s8(Q,J){if(J.max===J.min)return 0;return Q/(J.max-J.min)*100}var I5={correct:(Q,J)=>{if(!J.target)return Q;if(typeof Q==="string")if(U.test(Q))Q=parseFloat(Q);else return Q;let Z=s8(Q,J.target.x),$=s8(Q,J.target.y);return`${Z}% ${$}%`}};var n8={correct:(Q,{treeScale:J,projectionDelta:Z})=>{let $=Q,_=p.parse(Q);if(_.length>5)return $;let W=p.createTransformer(Q),Y=typeof _[0]!=="number"?1:0,X=Z.x.scale*J.x,G=Z.y.scale*J.y;_[0+Y]/=X,_[1+Y]/=G;let H=R(X,G,0.5);if(typeof _[2+Y]==="number")_[2+Y]/=H;if(typeof _[3+Y]==="number")_[3+Y]/=H;return W(_)}};var o0={borderRadius:{...I5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:I5,borderTopRightRadius:I5,borderBottomLeftRadius:I5,borderBottomRightRadius:I5,boxShadow:n8};function _1(Q){for(let J in Q)if(o0[J]=Q[J],Q5(J))o0[J].isCSSVariable=!0}function a8(Q,{layout:J,layoutId:Z}){return t.has(Q)||Q.startsWith("origin")||(J||Z!==void 0)&&(!!o0[Q]||Q==="opacity")}function o6(Q,J,Z){let $=Q.style,_=J?.style,W={};if(!$)return W;for(let Y in $)if(h($[Y])||_&&h(_[Y])||a8(Y,Q)||Z?.getValue(Y)?.liveStyle!==void 0)W[Y]=$[Y];return W}function mZ(Q){return window.getComputedStyle(Q)}class g5 extends x5{constructor(){super(...arguments);this.type="html",this.renderInstance=l6}readValueFromInstance(Q,J){if(t.has(J))return this.projection?.isProjecting?K6(J):Y8(Q,J);else{let Z=mZ(Q),$=(Q5(J)?Z.getPropertyValue(J):Z[J])||0;return typeof $==="string"?$.trim():$}}measureInstanceViewportBox(Q,{transformPagePoint:J}){return T7(Q,J)}build(Q,J,Z){m6(Q,J,Z.transformTemplate)}scrapeMotionValuesFromProps(Q,J,Z){return o6(Q,J,Z)}}function lZ(Q,J){return Q in J}class h7 extends k5{constructor(){super(...arguments);this.type="object"}readValueFromInstance(Q,J){if(lZ(J,Q)){let Z=Q[J];if(typeof Z==="string"||typeof Z==="number")return Z}return}getBaseTargetFromProps(){return}removeValueFromRenderState(Q,J){delete J.output[Q]}measureInstanceViewportBox(){return k()}build(Q,J){Object.assign(Q.output,J)}renderInstance(Q,{output:J}){Object.assign(Q,J)}sortInstanceNodePosition(){return 0}}var oZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},rZ={offset:"strokeDashoffset",array:"strokeDasharray"};function t8(Q,J,Z=1,$=0,_=!0){Q.pathLength=1;let W=_?oZ:rZ;Q[W.offset]=`${-$}`,Q[W.array]=`${J} ${Z}`}var iZ=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e8(Q,{attrX:J,attrY:Z,attrScale:$,pathLength:_,pathSpacing:W=1,pathOffset:Y=0,...X},G,H,z){if(m6(Q,X,H),G){if(Q.style.viewBox)Q.attrs.viewBox=Q.style.viewBox;return}Q.attrs=Q.style,Q.style={};let{attrs:q,style:B}=Q;if(q.transform)B.transform=q.transform,delete q.transform;if(B.transform||q.transformOrigin)B.transformOrigin=q.transformOrigin??"50% 50%",delete q.transformOrigin;if(B.transform)B.transformBox=z?.transformBox??"fill-box",delete q.transformBox;for(let F of iZ)if(q[F]!==void 0)B[F]=q[F],delete q[F];if(J!==void 0)q.x=J;if(Z!==void 0)q.y=Z;if($!==void 0)q.scale=$;if(_!==void 0)t8(q,_,W,Y,!1)}var r6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var Q9=(Q)=>typeof Q==="string"&&Q.toLowerCase()==="svg";function J9(Q,J,Z,$){l6(Q,J,void 0,$);for(let _ in J.attrs)Q.setAttribute(!r6.has(_)?j0(_):_,J.attrs[_])}function Z9(Q,J,Z){let $=o6(Q,J,Z);for(let _ in Q)if(h(Q[_])||h(J[_])){let W=Y0.indexOf(_)!==-1?"attr"+_.charAt(0).toUpperCase()+_.substring(1):_;$[W]=Q[_]}return $}class b7 extends x5{constructor(){super(...arguments);this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(Q,J){return Q[J]}readValueFromInstance(Q,J){if(t.has(J)){let Z=T6(J);return Z?Z.default||0:0}return J=!r6.has(J)?j0(J):J,Q.getAttribute(J)}scrapeMotionValuesFromProps(Q,J,Z){return Z9(Q,J,Z)}build(Q,J,Z){e8(Q,J,this.isSVGTag,Z.transformTemplate,Z.style)}renderInstance(Q,J,Z,$){J9(Q,J,Z,$)}mount(Q){this.isSVGTag=Q9(Q.tagName),super.mount(Q)}}var sZ=b5.length;function j7(Q){if(!Q)return;if(!Q.isControllingVariants){let Z=Q.parent?j7(Q.parent)||{}:{};if(Q.props.initial!==void 0)Z.initial=Q.props.initial;return Z}let J={};for(let Z=0;Z<sZ;Z++){let $=b5[Z],_=Q.props[$];if(F5(_)||_===!1)J[$]=_}return J}function Y1(Q,J){if(!Array.isArray(J))return!1;let Z=J.length;if(Z!==Q.length)return!1;for(let $=0;$<Z;$++)if(J[$]!==Q[$])return!1;return!0}var nZ=[...c6].reverse(),aZ=c6.length;function tZ(Q){return(J)=>{return Promise.all(J.map(({animation:Z,options:$})=>C8(Q,Z,$)))}}function JQ(Q){let J=tZ(Q),Z=QQ(),$=!0,_=!1,W=(H)=>(z,q)=>{let B=P0(Q,q,H==="exit"?Q.presenceContext?.custom:void 0);if(B){let{transition:F,transitionEnd:I,...K}=B;z={...z,...K,...I}}return z};function Y(H){J=H(Q)}function X(H){let{props:z}=Q,q=j7(Q.parent)||{},B=[],F=new Set,I={},K=1/0;for(let w=0;w<aZ;w++){let O=nZ[w],C=Z[O],P=z[O]!==void 0?z[O]:q[O],L=F5(P),S=O===H?C.isActive:null;if(S===!1)K=w;let E=P===q[O]&&P!==z[O]&&L;if(E&&($||_)&&Q.manuallyAnimateOnMount)E=!1;if(C.protectedKeys={...I},!C.isActive&&S===null||!P&&!C.prevProp||d6(P)||typeof P==="boolean")continue;if(O==="exit"&&C.isActive&&S!==!0){if(C.prevResolvedValues)I={...I,...C.prevResolvedValues};continue}let D=W1(C.prevProp,P),V=D||O===H&&C.isActive&&!E&&L||w>K&&L,A=!1,b=Array.isArray(P)?P:[P],l=b.reduce(W(O),{});if(S===!1)l={};let{prevResolvedValues:s={}}=C,X0={...s,...l},K0=(j)=>{if(V=!0,F.has(j))A=!0,F.delete(j);C.needsAnimating[j]=!0;let Z0=Q.getValue(j);if(Z0)Z0.liveStyle=!1};for(let j in X0){let Z0=l[j],A0=s[j];if(I.hasOwnProperty(j))continue;let x0=!1;if(h5(Z0)&&h5(A0))x0=!Y1(Z0,A0)||D;else x0=Z0!==A0;if(x0)if(Z0!==void 0&&Z0!==null)K0(j);else F.add(j);else if(Z0!==void 0&&F.has(j))K0(j);else C.protectedKeys[j]=!0}if(C.prevProp=P,C.prevResolvedValues=l,C.isActive)I={...I,...l};if(($||_)&&Q.blockInitialAnimation)V=!1;let N0=E&&D;if(V&&(!N0||A))B.push(...b.map((j)=>{let Z0={type:O};if(typeof j==="string"&&($||_)&&!N0&&Q.manuallyAnimateOnMount&&Q.parent){let{parent:A0}=Q,x0=P0(A0,j);if(A0.enteringChildren&&x0){let{delayChildren:l7}=x0.transition||{};Z0.delay=M6(A0.enteringChildren,Q,l7)}}return{animation:j,options:Z0}}))}if(F.size){let w={};if(typeof z.initial!=="boolean"){let O=P0(Q,Array.isArray(z.initial)?z.initial[0]:z.initial);if(O&&O.transition)w.transition=O.transition}F.forEach((O)=>{let C=Q.getBaseTarget(O),P=Q.getValue(O);if(P)P.liveStyle=!0;w[O]=C??null}),B.push({animation:w})}let N=Boolean(B.length);if($&&(z.initial===!1||z.initial===z.animate)&&!Q.manuallyAnimateOnMount)N=!1;return $=!1,_=!1,N?J(B):Promise.resolve()}function G(H,z){if(Z[H].isActive===z)return Promise.resolve();Q.variantChildren?.forEach((B)=>B.animationState?.setActive(H,z)),Z[H].isActive=z;let q=X(H);for(let B in Z)Z[B].protectedKeys={};return q}return{animateChanges:X,setActive:G,setAnimateFunction:Y,getState:()=>Z,reset:()=>{Z=QQ(),_=!0}}}function W1(Q,J){if(typeof J==="string")return J!==Q;else if(Array.isArray(J))return!Y1(J,Q);return!1}function v5(Q=!1){return{isActive:Q,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QQ(){return{animate:v5(!0),whileInView:v5(),whileHover:v5(),whileTap:v5(),whileDrag:v5(),whileFocus:v5(),exit:v5()}}function i6(Q,J){Q.min=J.min,Q.max=J.max}function i(Q,J){i6(Q.x,J.x),i6(Q.y,J.y)}function k7(Q,J){Q.translate=J.translate,Q.scale=J.scale,Q.originPoint=J.originPoint,Q.origin=J.origin}var ZQ=0.0001,eZ=1-ZQ,Q$=1+ZQ,$Q=0.01,J$=0-$Q,Z$=0+$Q;function J0(Q){return Q.max-Q.min}function W9(Q,J,Z){return Math.abs(Q-J)<=Z}function $9(Q,J,Z,$=0.5){if(Q.origin=$,Q.originPoint=R(J.min,J.max,Q.origin),Q.scale=J0(Z)/J0(J),Q.translate=R(Z.min,Z.max,Q.origin)-Q.originPoint,Q.scale>=eZ&&Q.scale<=Q$||isNaN(Q.scale))Q.scale=1;if(Q.translate>=J$&&Q.translate<=Z$||isNaN(Q.translate))Q.translate=0}function K5(Q,J,Z,$){$9(Q.x,J.x,Z.x,$?$.originX:void 0),$9(Q.y,J.y,Z.y,$?$.originY:void 0)}function _9(Q,J,Z,$=0){let _=$?R(Z.min,Z.max,$):Z.min;Q.min=_+J.min,Q.max=Q.min+J0(J)}function X9(Q,J,Z,$){_9(Q.x,J.x,Z.x,$?.x),_9(Q.y,J.y,Z.y,$?.y)}function Y9(Q,J,Z,$=0){let _=$?R(Z.min,Z.max,$):Z.min;Q.min=J.min-_,Q.max=Q.min+J0(J)}function d5(Q,J,Z,$){Y9(Q.x,J.x,Z.x,$?.x),Y9(Q.y,J.y,Z.y,$?.y)}function G9(Q,J,Z,$,_){if(Q-=J,Q=y5(Q,1/Z,$),_!==void 0)Q=y5(Q,1/_,$);return Q}function X1(Q,J=0,Z=1,$=0.5,_,W=Q,Y=Q){if(_0.test(J))J=parseFloat(J),J=R(Y.min,Y.max,J/100)-Y.min;if(typeof J!=="number")return;let X=R(W.min,W.max,$);if(Q===W)X-=J;Q.min=G9(Q.min,J,Z,X,_),Q.max=G9(Q.max,J,Z,X,_)}function H9(Q,J,[Z,$,_],W,Y){X1(Q,J[Z],J[$],J[_],J.scale,W,Y)}var $$=["x","scaleX","originX"],_$=["y","scaleY","originY"];function x7(Q,J,Z,$){H9(Q.x,J,$$,Z?Z.x:void 0,$?$.x:void 0),H9(Q.y,J,_$,Z?Z.y:void 0,$?$.y:void 0)}function _Q(Q){return Q.translate===0&&Q.scale===1}function y7(Q){return _Q(Q.x)&&_Q(Q.y)}function z9(Q,J){return Q.min===J.min&&Q.max===J.max}function B9(Q,J){return z9(Q.x,J.x)&&z9(Q.y,J.y)}function q9(Q,J){return Math.round(Q.min)===Math.round(J.min)&&Math.round(Q.max)===Math.round(J.max)}function f7(Q,J){return q9(Q.x,J.x)&&q9(Q.y,J.y)}function g7(Q){return J0(Q.x)/J0(Q.y)}function v7(Q,J){return Q.translate===J.translate&&Q.scale===J.scale&&Q.originPoint===J.originPoint}function d7(Q){return[Q("x"),Q("y")]}function F9(Q,J,Z){let $="",_=Q.x.translate/J.x,W=Q.y.translate/J.y,Y=Z?.z||0;if(_||W||Y)$=`translate3d(${_}px, ${W}px, ${Y}px) `;if(J.x!==1||J.y!==1)$+=`scale(${1/J.x}, ${1/J.y}) `;if(Z){let{transformPerspective:H,rotate:z,pathRotation:q,rotateX:B,rotateY:F,skewX:I,skewY:K}=Z;if(H)$=`perspective(${H}px) ${$}`;if(z)$+=`rotate(${z}deg) `;if(q)$+=`rotate(${q}deg) `;if(B)$+=`rotateX(${B}deg) `;if(F)$+=`rotateY(${F}deg) `;if(I)$+=`skewX(${I}deg) `;if(K)$+=`skewY(${K}deg) `}let X=Q.x.scale*J.x,G=Q.y.scale*J.y;if(X!==1||G!==1)$+=`scale(${X}, ${G})`;return $||"none"}var GQ=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Y$=GQ.length,YQ=(Q)=>typeof Q==="string"?parseFloat(Q):Q,WQ=(Q)=>typeof Q==="number"||U.test(Q);function I9(Q,J,Z,$,_,W){if(_)Q.opacity=R(0,Z.opacity??1,W$($)),Q.opacityExit=R(J.opacity??1,0,X$($));else if(W)Q.opacity=R(J.opacity??1,Z.opacity??1,$);for(let Y=0;Y<Y$;Y++){let X=GQ[Y],G=XQ(J,X),H=XQ(Z,X);if(G===void 0&&H===void 0)continue;if(G||(G=0),H||(H=0),G===0||H===0||WQ(G)===WQ(H)){if(Q[X]=Math.max(R(YQ(G),YQ(H),$),0),_0.test(H)||_0.test(G))Q[X]+="%"}else Q[X]=H}if(J.rotate||Z.rotate)Q.rotate=R(J.rotate||0,Z.rotate||0,$)}function XQ(Q,J){return Q[J]!==void 0?Q[J]:Q.borderRadius}var W$=HQ(0,0.5,t5),X$=HQ(0.5,0.95,g);function HQ(Q,J,Z){return($)=>{if($<Q)return 0;if($>J)return 1;return Z(w0(Q,J,$))}}function s6(Q,J,Z){let $=h(Q)?Q:m(Q);return $.start(G5("",$,J,Z)),$.animation}function K9(Q,J,Z,$={passive:!0}){return Q.addEventListener(J,Z,$),()=>Q.removeEventListener(J,Z)}var N9=(Q,J)=>Q.depth-J.depth;class c7{constructor(){this.children=[],this.isDirty=!1}add(Q){i0(this.children,Q),this.isDirty=!0}remove(Q){$0(this.children,Q),this.isDirty=!0}forEach(Q){this.isDirty&&this.children.sort(N9),this.isDirty=!1,this.children.forEach(Q)}}function w9(Q,J){let Z=f.now(),$=({timestamp:_})=>{let W=_-Z;if(W>=J)x($),Q(W-J)};return M.setup($,!0),()=>x($)}function G1(Q,J){return w9(Q,T(J))}function n6(Q){return h(Q)?Q.get():Q}class u7{constructor(){this.members=[]}add(Q){i0(this.members,Q);for(let J=this.members.length-1;J>=0;J--){let Z=this.members[J];if(Z===Q||Z===this.lead||Z===this.prevLead)continue;let $=Z.instance;if((!$||$.isConnected===!1)&&!Z.snapshot)$0(this.members,Z),Z.unmount()}Q.scheduleRender()}remove(Q){if($0(this.members,Q),Q===this.prevLead)this.prevLead=void 0;if(Q===this.lead){let J=this.members[this.members.length-1];if(J)this.promote(J)}}relegate(Q){for(let J=this.members.indexOf(Q)-1;J>=0;J--){let Z=this.members[J];if(Z.isPresent!==!1&&Z.instance?.isConnected!==!1)return this.promote(Z),!0}return!1}promote(Q,J){let Z=this.lead;if(Q===Z)return;if(this.prevLead=Z,this.lead=Q,Q.show(),Z){Z.updateSnapshot(),Q.scheduleRender();let{layoutDependency:$}=Z.options,{layoutDependency:_}=Q.options;if($===void 0||$!==_){if(Q.resumeFrom=Z,J)Z.preserveOpacity=!0;if(Z.snapshot)Q.snapshot=Z.snapshot,Q.snapshot.latestValues=Z.animationValues||Z.latestValues;if(Q.root?.isUpdating)Q.isLayoutDirty=!0}if(Q.options.crossfade===!1)Z.hide()}}exitAnimationComplete(){this.members.forEach((Q)=>{Q.options.onExitComplete?.(),Q.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach((Q)=>Q.instance&&Q.scheduleRender(!1))}removeLeadSnapshot(){if(this.lead?.snapshot)this.lead.snapshot=void 0}}var a6={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var c5={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},H1=["","X","Y","Z"],G$=1000,H$=0;function z1(Q,J,Z,$){let{latestValues:_}=J;if(_[Q]){if(Z[Q]=_[Q],J.setStaticValue(Q,0),$)$[Q]=0}}function UQ(Q){if(Q.hasCheckedOptimisedAppear=!0,Q.root===Q)return;let{visualElement:J}=Q.options;if(!J)return;let Z=E6(J);if(window.MotionHasOptimisedAnimation(Z,"transform")){let{layout:_,layoutId:W}=Q.options;window.MotionCancelOptimisedAnimation(Z,"transform",M,!(_||W))}let{parent:$}=Q;if($&&!$.hasCheckedOptimisedAppear)UQ($)}function t6({attachResizeListener:Q,defaultParent:J,measureScroll:Z,checkIsScrollRoot:$,resetTransform:_}){return class{constructor(Y={},X=J?.()){this.id=H$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{if(this.isUpdating)this.isUpdating=!1,this.clearAllSnapshots()},this.updateProjection=()=>{if(this.projectionUpdateScheduled=!1,u.value)c5.nodes=c5.calculatedTargetDeltas=c5.calculatedProjections=0;if(this.nodes.forEach(q1),this.nodes.forEach(N$),this.nodes.forEach(w$),this.nodes.forEach(B1),u.addProjectionMetrics)u.addProjectionMetrics(c5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=Y,this.root=X?X.root||X:this,this.path=X?[...X.path,X]:[],this.parent=X,this.depth=X?X.depth+1:0;for(let G=0;G<this.path.length;G++)this.path[G].shouldResetTransform=!0;if(this.root===this)this.nodes=new c7}addEventListener(Y,X){if(!this.eventHandlers.has(Y))this.eventHandlers.set(Y,new y0);return this.eventHandlers.get(Y).add(X)}notifyListeners(Y,...X){let G=this.eventHandlers.get(Y);G&&G.notify(...X)}hasListeners(Y){return this.eventHandlers.has(Y)}mount(Y){if(this.instance)return;this.isSVG=k0(Y)&&!v6(Y),this.instance=Y;let{layoutId:X,layout:G,visualElement:H}=this.options;if(H&&!H.current)H.mount(Y);if(this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(G||X))this.isLayoutDirty=!0;if(Q){let z,q=0,B=()=>this.root.updateBlockedByResize=!1;M.read(()=>{q=window.innerWidth}),Q(Y,()=>{let F=window.innerWidth;if(F===q)return;if(q=F,this.root.updateBlockedByResize=!0,z&&z(),z=w9(B,250),a6.hasAnimatedSinceResize)a6.hasAnimatedSinceResize=!1,this.nodes.forEach(BQ)})}if(X)this.root.registerSharedNode(X,this);if(this.options.animate!==!1&&H&&(X||G))this.addEventListener("didUpdate",({delta:z,hasLayoutChanged:q,hasRelativeLayoutChanged:B,layout:F})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let I=this.options.transition||H.getDefaultTransition()||D$,{onLayoutAnimationStart:K,onLayoutAnimationComplete:N}=H.getProps(),w=!this.targetLayout||!f7(this.targetLayout,F),O=!q&&B;if(this.options.layoutRoot||this.resumeFrom||O||q&&(w||!this.currentAnimation)){if(this.resumeFrom)this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0;let C={...e(I,"layout"),onPlay:K,onComplete:N};if(H.shouldReduceMotion||this.options.layoutRoot)C.delay=0,C.type=!1;this.startAnimation(C),this.setAnimationOrigin(z,O,C.path)}else{if(!q)BQ(this);if(this.isLead()&&this.options.onExitComplete)this.options.onExitComplete()}this.targetLayout=F})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let Y=this.getStack();Y&&Y.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),x(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){if(this.isUpdateBlocked())return;this.isUpdating=!0,this.nodes&&this.nodes.forEach(U$),this.animationId++}getTransformTemplate(){let{visualElement:Y}=this.options;return Y&&Y.getProps().transformTemplate}willUpdate(Y=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear)UQ(this);if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let z=0;z<this.path.length;z++){let q=this.path[z];if(q.shouldResetTransform=!0,typeof q.latestValues.x==="string"||typeof q.latestValues.y==="string")q.isLayoutDirty=!0;if(q.updateScroll("snapshot"),q.options.layoutRoot)q.willUpdate(!1)}let{layoutId:X,layout:G}=this.options;if(X===void 0&&!G)return;let H=this.getTransformTemplate();this.prevTransformTemplateValue=H?H(this.latestValues,""):void 0,this.updateSnapshot(),Y&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let G=this.updateBlockedByResize;if(this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),G)this.nodes.forEach(F$);this.nodes.forEach(zQ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qQ);return}if(this.animationCommitId=this.animationId,!this.isUpdating)this.nodes.forEach(qQ);else this.isUpdating=!1,this.nodes.forEach(I$),this.nodes.forEach(K$),this.nodes.forEach(z$),this.nodes.forEach(q$);this.clearAllSnapshots();let X=f.now();v.delta=c(0,16.666666666666668,X-v.timestamp),v.timestamp=X,v.isProcessing=!0,_6.update.process(v),_6.preRender.process(v),_6.render.process(v),v.isProcessing=!1}didUpdate(){if(!this.updateScheduled)this.updateScheduled=!0,B5.read(this.scheduleUpdate)}clearAllSnapshots(){this.nodes.forEach(B$),this.sharedNodes.forEach(C$)}scheduleUpdateProjection(){if(!this.projectionUpdateScheduled)this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){M.postRender(()=>{if(this.isLayoutDirty)this.root.didUpdate();else this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;if(this.snapshot=this.measure(),this.snapshot&&!J0(this.snapshot.measuredBox.x)&&!J0(this.snapshot.measuredBox.y))this.snapshot=void 0}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let G=0;G<this.path.length;G++)this.path[G].updateScroll();let Y=this.layout;if(this.layout=this.measure(!1),this.layoutVersion++,!this.layoutCorrected)this.layoutCorrected=k();this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:X}=this.options;X&&X.notify("LayoutMeasure",this.layout.layoutBox,Y?Y.layoutBox:void 0)}updateScroll(Y="measure"){let X=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===Y)X=!1;if(X&&this.instance){let G=$(this.instance);this.scroll={animationId:this.root.animationId,phase:Y,isRoot:G,offset:Z(this.instance),wasRoot:this.scroll?this.scroll.isRoot:G}}}resetTransform(){if(!_)return;let Y=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,X=this.projectionDelta&&!y7(this.projectionDelta),G=this.getTransformTemplate(),H=G?G(this.latestValues,""):void 0,z=H!==this.prevTransformTemplateValue;if(Y&&this.instance&&(X||M0(this.latestValues)||z))_(this.instance,H),this.shouldResetTransform=!1,this.scheduleRender()}measure(Y=!0){let X=this.measurePageBox(),G=this.removeElementScroll(X);if(Y)G=this.removeTransform(G);return M$(G),{animationId:this.root.animationId,measuredBox:X,layoutBox:G,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:Y}=this.options;if(!Y)return k();let X=Y.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(L$))){let{scroll:H}=this.root;if(H)z0(X.x,H.offset.x),z0(X.y,H.offset.y)}return X}removeElementScroll(Y){let X=k();if(i(X,Y),this.scroll?.wasRoot)return X;for(let G=0;G<this.path.length;G++){let H=this.path[G],{scroll:z,options:q}=H;if(H!==this.root&&z&&q.layoutScroll){if(z.wasRoot)i(X,Y);z0(X.x,z.offset.x),z0(X.y,z.offset.y)}}return X}applyTransform(Y,X=!1,G){let H=G||k();i(H,Y);for(let z=0;z<this.path.length;z++){let q=this.path[z];if(!X&&q.options.layoutScroll&&q.scroll&&q!==q.root)z0(H.x,-q.scroll.offset.x),z0(H.y,-q.scroll.offset.y);if(!M0(q.latestValues))continue;f5(H,q.latestValues,q.layout?.layoutBox)}if(M0(this.latestValues))f5(H,this.latestValues,this.layout?.layoutBox);return H}removeTransform(Y){let X=k();i(X,Y);for(let G=0;G<this.path.length;G++){let H=this.path[G];if(!M0(H.latestValues))continue;let z;if(H.instance)p6(H.latestValues)&&H.updateSnapshot(),z=k(),i(z,H.measurePageBox());x7(X,H.latestValues,H.snapshot?.layoutBox,z)}if(M0(this.latestValues))x7(X,this.latestValues);return X}setTargetDelta(Y){this.targetDelta=Y,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(Y){this.options={...this.options,...Y,crossfade:Y.crossfade!==void 0?Y.crossfade:!0}}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(){if(!this.relativeParent)return;if(this.relativeParent.resolvedRelativeTargetAt!==v.timestamp)this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(Y=!1){let X=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=X.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=X.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=X.isSharedProjectionDirty);let G=Boolean(this.resumingFrom)||this!==X;if(!(Y||G&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:z,layoutId:q}=this.options;if(!this.layout||!(z||q))return;this.resolvedRelativeTargetAt=v.timestamp;let B=this.getClosestProjectingParent();if(B&&this.linkedParentVersion!==B.layoutVersion&&!B.options.layoutRoot)this.removeRelativeTarget();if(!this.targetDelta&&!this.relativeTarget)if(this.options.layoutAnchor!==!1&&B&&B.layout)this.createRelativeTarget(B,this.layout.layoutBox,B.layout.layoutBox);else this.removeRelativeTarget();if(!this.relativeTarget&&!this.targetDelta)return;if(!this.target)this.target=k(),this.targetWithTransforms=k();if(this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)this.forceRelativeParentToResolveTarget(),X9(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0);else if(this.targetDelta){if(Boolean(this.resumingFrom))this.applyTransform(this.layout.layoutBox,!1,this.target);else i(this.target,this.layout.layoutBox);S7(this.target,this.targetDelta)}else i(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget)if(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&B&&Boolean(B.resumingFrom)===Boolean(this.resumingFrom)&&!B.options.layoutScroll&&B.target&&this.animationProgress!==1)this.createRelativeTarget(B,this.target,B.target);else this.relativeParent=this.relativeTarget=void 0;if(u.value)c5.calculatedTargetDeltas++}getClosestProjectingParent(){if(!this.parent||p6(this.parent.latestValues)||E7(this.parent.latestValues))return;if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(Y,X,G){this.relativeParent=Y,this.linkedParentVersion=Y.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),d5(this.relativeTargetOrigin,X,G,this.options.layoutAnchor||void 0),i(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let Y=this.getLead(),X=Boolean(this.resumingFrom)||this!==Y,G=!0;if(this.isProjectionDirty||this.parent?.isProjectionDirty)G=!1;if(X&&(this.isSharedProjectionDirty||this.isTransformDirty))G=!1;if(this.resolvedRelativeTargetAt===v.timestamp)G=!1;if(G)return;let{layout:H,layoutId:z}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),!this.isTreeAnimating)this.targetDelta=this.relativeTarget=void 0;if(!this.layout||!(H||z))return;i(this.layoutCorrected,this.layout.layoutBox);let q=this.treeScale.x,B=this.treeScale.y;if(r8(this.layoutCorrected,this.treeScale,this.path,X),Y.layout&&!Y.target&&(this.treeScale.x!==1||this.treeScale.y!==1))Y.target=Y.layout.layoutBox,Y.targetWithTransforms=k();let{target:F}=Y;if(!F){if(this.prevProjectionDelta)this.createProjectionDeltas(),this.scheduleRender();return}if(!this.projectionDelta||!this.prevProjectionDelta)this.createProjectionDeltas();else k7(this.prevProjectionDelta.x,this.projectionDelta.x),k7(this.prevProjectionDelta.y,this.projectionDelta.y);if(K5(this.projectionDelta,this.layoutCorrected,F,this.latestValues),this.treeScale.x!==q||this.treeScale.y!==B||!v7(this.projectionDelta.x,this.prevProjectionDelta.x)||!v7(this.projectionDelta.y,this.prevProjectionDelta.y))this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",F);if(u.value)c5.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(Y=!0){if(this.options.visualElement?.scheduleRender(),Y){let X=this.getStack();X&&X.scheduleRender()}if(this.resumingFrom&&!this.resumingFrom.instance)this.resumingFrom=void 0}createProjectionDeltas(){this.prevProjectionDelta=l0(),this.projectionDelta=l0(),this.projectionDeltaWithTransform=l0()}setAnimationOrigin(Y,X=!1,G){let H=this.snapshot,z=H?H.latestValues:{},q={...this.latestValues},B=l0();if(!this.relativeParent||!this.relativeParent.options.layoutRoot)this.relativeTarget=this.relativeTargetOrigin=void 0;this.attemptToResolveRelativeTarget=!X;let F=k(),I=H?H.source:void 0,K=this.layout?this.layout.source:void 0,N=I!==K,w=this.getStack(),O=!w||w.members.length<=1,C=Boolean(N&&!O&&this.options.crossfade===!0&&!this.path.some(O$));this.animationProgress=0;let P,L=G?.interpolateProjection(Y);this.mixTargetDelta=(S)=>{let E=S/1000,D=L?.(E);if(D)B.x.translate=D.x,B.x.scale=R(Y.x.scale,1,E),B.x.origin=Y.x.origin,B.x.originPoint=Y.x.originPoint,B.y.translate=D.y,B.y.scale=R(Y.y.scale,1,E),B.y.origin=Y.y.origin,B.y.originPoint=Y.y.originPoint;else FQ(B.x,Y.x,E),FQ(B.y,Y.y,E);if(this.setTargetDelta(B),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){if(d5(F,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),P$(this.relativeTarget,this.relativeTargetOrigin,F,E),P&&B9(this.relativeTarget,P))this.isProjectionDirty=!1;if(!P)P=k();i(P,this.relativeTarget)}if(N)this.animationValues=q,I9(q,z,this.latestValues,E,C,O);if(D&&D.rotate!==void 0){if(!this.animationValues)this.animationValues=q;this.animationValues.pathRotation=D.rotate}this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1000:0)}startAnimation(Y){if(this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation)x(this.pendingAnimation),this.pendingAnimation=void 0;this.pendingAnimation=M.update(()=>{if(a6.hasAnimatedSinceResize=!0,a.layout++,this.motionValue||(this.motionValue=m(0)),this.motionValue.jump(0,!1),this.currentAnimation=s6(this.motionValue,[0,1000],{...Y,velocity:0,isSync:!0,onUpdate:(X)=>{this.mixTargetDelta(X),Y.onUpdate&&Y.onUpdate(X)},onStop:()=>{a.layout--},onComplete:()=>{a.layout--,Y.onComplete&&Y.onComplete(),this.completeAnimation()}}),this.resumingFrom)this.resumingFrom.currentAnimation=this.currentAnimation;this.pendingAnimation=void 0})}completeAnimation(){if(this.resumingFrom)this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0;let Y=this.getStack();Y&&Y.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){if(this.currentAnimation)this.mixTargetDelta&&this.mixTargetDelta(G$),this.currentAnimation.stop();this.completeAnimation()}applyTransformsToTarget(){let Y=this.getLead(),{targetWithTransforms:X,target:G,layout:H,latestValues:z}=Y;if(!X||!G||!H)return;if(this!==Y&&this.layout&&H&&CQ(this.options.animationType,this.layout.layoutBox,H.layoutBox)){G=this.target||k();let q=J0(this.layout.layoutBox.x);G.x.min=Y.target.x.min,G.x.max=G.x.min+q;let B=J0(this.layout.layoutBox.y);G.y.min=Y.target.y.min,G.y.max=G.y.min+B}i(X,G),f5(X,z),K5(this.projectionDeltaWithTransform,this.layoutCorrected,X,z)}registerSharedNode(Y,X){if(!this.sharedNodes.has(Y))this.sharedNodes.set(Y,new u7);this.sharedNodes.get(Y).add(X);let H=X.options.initialPromotionConfig;X.promote({transition:H?H.transition:void 0,preserveFollowOpacity:H&&H.shouldPreserveFollowOpacity?H.shouldPreserveFollowOpacity(X):void 0})}isLead(){let Y=this.getStack();return Y?Y.lead===this:!0}getLead(){let{layoutId:Y}=this.options;return Y?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:Y}=this.options;return Y?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:Y}=this.options;if(Y)return this.root.sharedNodes.get(Y)}promote({needsReset:Y,transition:X,preserveFollowOpacity:G}={}){let H=this.getStack();if(H)H.promote(this,G);if(Y)this.projectionDelta=void 0,this.needsReset=!0;if(X)this.setOptions({transition:X})}relegate(){let Y=this.getStack();if(Y)return Y.relegate(this);else return!1}resetSkewAndRotation(){let{visualElement:Y}=this.options;if(!Y)return;let X=!1,{latestValues:G}=Y;if(G.z||G.rotate||G.rotateX||G.rotateY||G.rotateZ||G.skewX||G.skewY)X=!0;if(!X)return;let H={};if(G.z)z1("z",Y,H,this.animationValues);for(let z=0;z<H1.length;z++)z1(`rotate${H1[z]}`,Y,H,this.animationValues),z1(`skew${H1[z]}`,Y,H,this.animationValues);Y.render();for(let z in H)if(Y.setStaticValue(z,H[z]),this.animationValues)this.animationValues[z]=H[z];Y.scheduleRender()}applyProjectionStyles(Y,X){if(!this.instance||this.isSVG)return;if(!this.isVisible){Y.visibility="hidden";return}let G=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,Y.visibility="",Y.opacity="",Y.pointerEvents=n6(X?.pointerEvents)||"",Y.transform=G?G(this.latestValues,""):"none";return}let H=this.getLead();if(!this.projectionDelta||!this.layout||!H.target){if(this.options.layoutId)Y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,Y.pointerEvents=n6(X?.pointerEvents)||"";if(this.hasProjected&&!M0(this.latestValues))Y.transform=G?G({},""):"none",this.hasProjected=!1;return}Y.visibility="";let z=H.animationValues||H.latestValues;this.applyTransformsToTarget();let q=F9(this.projectionDeltaWithTransform,this.treeScale,z);if(G)q=G(z,q);Y.transform=q;let{x:B,y:F}=this.projectionDelta;if(Y.transformOrigin=`${B.origin*100}% ${F.origin*100}% 0`,H.animationValues)Y.opacity=H===this?z.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:z.opacityExit;else Y.opacity=H===this?z.opacity!==void 0?z.opacity:"":z.opacityExit!==void 0?z.opacityExit:0;for(let I in o0){if(z[I]===void 0)continue;let{correct:K,applyTo:N,isCSSVariable:w}=o0[I],O=q==="none"?z[I]:K(z[I],H);if(N){let C=N.length;for(let P=0;P<C;P++)Y[N[P]]=O}else if(w)this.options.visualElement.renderState.vars[I]=O;else Y[I]=O}if(this.options.layoutId)Y.pointerEvents=H===this?n6(X?.pointerEvents)||"":"none"}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((Y)=>Y.currentAnimation?.stop()),this.root.nodes.forEach(zQ),this.root.sharedNodes.clear()}}}function z$(Q){Q.updateLayout()}function q$(Q){let J=Q.resumeFrom?.snapshot||Q.snapshot;if(Q.isLead()&&Q.layout&&J&&Q.hasListeners("didUpdate")){let{layoutBox:Z,measuredBox:$}=Q.layout,{animationType:_}=Q.options,W=J.source!==Q.layout.source;if(_==="size")d7((z)=>{let q=W?J.measuredBox[z]:J.layoutBox[z],B=J0(q);q.min=Z[z].min,q.max=q.min+B});else if(_==="x"||_==="y"){let z=_==="x"?"y":"x";i6(W?J.measuredBox[z]:J.layoutBox[z],Z[z])}else if(CQ(_,J.layoutBox,Z))d7((z)=>{let q=W?J.measuredBox[z]:J.layoutBox[z],B=J0(Z[z]);if(q.max=q.min+B,Q.relativeTarget&&!Q.currentAnimation)Q.isProjectionDirty=!0,Q.relativeTarget[z].max=Q.relativeTarget[z].min+B});let Y=l0();K5(Y,Z,J.layoutBox);let X=l0();if(W)K5(X,Q.applyTransform($,!0),J.measuredBox);else K5(X,Z,J.layoutBox);let G=!y7(Y),H=!1;if(!Q.resumeFrom){let z=Q.getClosestProjectingParent();if(z&&!z.resumeFrom){let{snapshot:q,layout:B}=z;if(q&&B){let F=Q.options.layoutAnchor||void 0,I=k();d5(I,J.layoutBox,q.layoutBox,F);let K=k();if(d5(K,Z,B.layoutBox,F),!f7(I,K))H=!0;if(z.options.layoutRoot)Q.relativeTarget=K,Q.relativeTargetOrigin=I,Q.relativeParent=z}}}Q.notifyListeners("didUpdate",{layout:Z,snapshot:J,delta:X,layoutDelta:Y,hasLayoutChanged:G,hasRelativeLayoutChanged:H})}else if(Q.isLead()){let{onExitComplete:Z}=Q.options;Z&&Z()}Q.options.transition=void 0}function q1(Q){if(u.value)c5.nodes++;if(!Q.parent)return;if(!Q.isProjecting())Q.isProjectionDirty=Q.parent.isProjectionDirty;Q.isSharedProjectionDirty||(Q.isSharedProjectionDirty=Boolean(Q.isProjectionDirty||Q.parent.isProjectionDirty||Q.parent.isSharedProjectionDirty)),Q.isTransformDirty||(Q.isTransformDirty=Q.parent.isTransformDirty)}function B1(Q){Q.isProjectionDirty=Q.isSharedProjectionDirty=Q.isTransformDirty=!1}function B$(Q){Q.clearSnapshot()}function zQ(Q){Q.clearMeasurements()}function F$(Q){Q.isLayoutDirty=!0,Q.updateLayout()}function qQ(Q){Q.isLayoutDirty=!1}function I$(Q){if(Q.isAnimationBlocked&&Q.layout&&!Q.isLayoutDirty)Q.snapshot=Q.layout,Q.isLayoutDirty=!0}function K$(Q){let{visualElement:J}=Q.options;if(J&&J.getProps().onBeforeLayoutMeasure)J.notify("BeforeLayoutMeasure");Q.resetTransform()}function BQ(Q){Q.finishAnimation(),Q.targetDelta=Q.relativeTarget=Q.target=void 0,Q.isProjectionDirty=!0}function N$(Q){Q.resolveTargetDelta()}function w$(Q){Q.calcProjection()}function U$(Q){Q.resetSkewAndRotation()}function C$(Q){Q.removeLeadSnapshot()}function FQ(Q,J,Z){Q.translate=R(J.translate,0,Z),Q.scale=R(J.scale,1,Z),Q.origin=J.origin,Q.originPoint=J.originPoint}function IQ(Q,J,Z,$){Q.min=R(J.min,Z.min,$),Q.max=R(J.max,Z.max,$)}function P$(Q,J,Z,$){IQ(Q.x,J.x,Z.x,$),IQ(Q.y,J.y,Z.y,$)}function O$(Q){return Q.animationValues&&Q.animationValues.opacityExit!==void 0}var D$={duration:0.45,ease:[0.4,0,0.1,1]},KQ=(Q)=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(Q),NQ=KQ("applewebkit/")&&!KQ("chrome/")?Math.round:g;function wQ(Q){Q.min=NQ(Q.min),Q.max=NQ(Q.max)}function M$(Q){wQ(Q.x),wQ(Q.y)}function CQ(Q,J,Z){return Q==="position"||Q==="preserve-aspect"&&!W9(g7(J),g7(Z),0.2)}function L$(Q){return Q!==Q.root&&Q.scroll?.wasRoot}var U9=t6({attachResizeListener:(Q,J)=>K9(Q,"resize",J),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var A$=(Q)=>!Q.isLayoutDirty&&Q.willUpdate(!1);function PQ(){let Q=new Set,J=new WeakMap,Z=()=>Q.forEach(A$);return{add:($)=>{Q.add($),J.set($,$.addEventListener("willUpdate",Z))},remove:($)=>{Q.delete($);let _=J.get($);if(_)_(),J.delete($);Z()},dirty:Z}}var p7={current:void 0},C9=t6({measureScroll:(Q)=>({x:Q.scrollLeft,y:Q.scrollTop}),defaultParent:()=>{if(!p7.current){let Q=new U9({});Q.mount(window),Q.setOptions({layoutScroll:!0}),p7.current=Q}return p7.current},resetTransform:(Q,J)=>{Q.style.transform=J!==void 0?J:"none"},checkIsScrollRoot:(Q)=>Boolean(window.getComputedStyle(Q).position==="fixed")});var OQ="[data-layout], [data-layout-id]",DQ=()=>{};function V$(Q){let J=Q.targetWithTransforms||Q.target;if(!J)return;let Z=k(),$=k();return i(Z,J),i($,J),{animationId:Q.root?.animationId??0,measuredBox:Z,layoutBox:$,latestValues:Q.animationValues||Q.latestValues||{},source:Q.id}}class F1{constructor(Q,J,Z){this.sharedTransitions=new Map,this.notifyReady=DQ,this.rejectReady=DQ,this.scope=Q,this.updateDom=J,this.defaultOptions=Z,this.readyPromise=new Promise(($,_)=>{this.notifyReady=$,this.rejectReady=_}),M.postRender(()=>{this.start().then(this.notifyReady).catch(this.rejectReady)})}shared(Q,J){return this.sharedTransitions.set(Q,J),this}then(Q,J){return this.readyPromise.then(Q,J)}async start(){let Q=MQ(this.scope),J=this.buildRecords(Q);J.forEach(({projection:X})=>{let G=Boolean(X.currentAnimation),H=Boolean(X.options.layoutId);if(G&&H){let z=V$(X);if(z)X.snapshot=z;else if(X.snapshot)X.snapshot=void 0}else if(X.snapshot&&(X.currentAnimation||X.isProjecting()))X.snapshot=void 0;X.isPresent=!0,X.willUpdate()}),await this.updateDom();let Z=MQ(this.scope),$=this.buildRecords(Z);this.handleExitingElements(J,$),$.forEach(({projection:X})=>{let G=X.instance,H=X.resumeFrom?.instance;if(!G||!H)return;if(!("style"in G))return;let z=G.style.transform,q=H.style.transform;if(z&&q&&z===q)G.style.transform="",G.style.transformOrigin=""}),$.forEach(({projection:X})=>{X.isPresent=!0}),h$($,J)?.didUpdate(),await new Promise((X)=>{M.postRender(()=>X())});let W=b$($);return new h0(W)}buildRecords(Q){let J=[],Z=new Map;for(let $ of Q){let _=T$($,Z,this.scope),{layout:W,layoutId:Y}=E$($),G=(Y?this.sharedTransitions.get(Y):void 0)||this.defaultOptions,H=S$($,_?.projection,{layout:W,layoutId:Y,animationType:typeof W==="string"?W:"both",transition:G});Z.set($,H),J.push(H)}return J}handleExitingElements(Q,J){let Z=new Set(J.map((_)=>_.element));Q.forEach((_)=>{if(Z.has(_.element))return;if(_.projection.options.layoutId)_.projection.isPresent=!1,_.projection.relegate();_.visualElement.unmount(),H0.delete(_.element)});let $=new Set(Q.map((_)=>_.element));J.forEach(({element:_,projection:W})=>{if($.has(_)&&W.resumeFrom&&!W.resumeFrom.instance&&!W.isLead())W.resumeFrom=void 0,W.snapshot=void 0})}}function LQ(Q,J,Z){if(typeof Q==="function")return{scope:document,updateDom:Q,defaultOptions:J};return{scope:Q0(Q)[0]||document,updateDom:J,defaultOptions:Z}}function MQ(Q){let J=Array.from(Q.querySelectorAll(OQ));if(Q instanceof Element&&Q.matches(OQ)){if(!J.includes(Q))J.unshift(Q)}return J}function E$(Q){let J=Q.getAttribute("data-layout-id")||void 0,Z=Q.getAttribute("data-layout"),$;if(Z===""||Z==="true")$=!0;else if(Z)$=Z;return{layout:$,layoutId:J}}function R$(){return{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}}function S$(Q,J,Z){let $=H0.get(Q),_=$??new g5({props:{},presenceContext:null,visualState:R$()},{allowProjection:!0});if(!$||!_.projection)_.projection=new C9(_.latestValues,J);if(_.projection.setOptions({...Z,visualElement:_}),!_.current)_.mount(Q);else if(!_.projection.instance)_.projection.mount(Q);if(!$)H0.set(Q,_);return{element:Q,visualElement:_,projection:_.projection}}function T$(Q,J,Z){let $=Q.parentElement;while($){let _=J.get($);if(_)return _;if($===Z)break;$=$.parentElement}return}function h$(Q,J){return(Q[0]||J[0])?.projection.root}function b$(Q){let J=new Set;return Q.forEach((Z)=>{let $=Z.projection.currentAnimation;if($)J.add($)}),Array.from(J)}var AQ=M,VQ=C5.reduce((Q,J)=>{return Q[J]=(Z)=>x(Z),Q},{});function m7(Q){return typeof Q==="object"&&!Array.isArray(Q)}function P9(Q,J,Z,$){if(Q==null)return[];if(typeof Q==="string"&&m7(J))return Q0(Q,Z,$);else if(Q instanceof NodeList)return Array.from(Q);else if(Array.isArray(Q))return Q.filter((_)=>_!=null);else return[Q]}function EQ(Q,J,Z){return Q*(J+1)+Z*J}function I1(Q,J,Z,$){if(typeof J==="number")return J;else if(J.startsWith("-")||J.startsWith("+"))return Math.max(0,Q+parseFloat(J));else if(J==="<")return Z;else if(J.startsWith("<"))return Math.max(0,Z+parseFloat(J.slice(1)));else return $.get(J)??Q}function j$(Q,J,Z){for(let $=0;$<Q.length;$++){let _=Q[$];if(_.at>J&&_.at<Z)$0(Q,_),$--}}function RQ(Q,J,Z,$,_,W){j$(Q,_,W);for(let Y=0;Y<J.length;Y++)Q.push({value:J[Y],at:R(_,W,$[Y]),easing:Z6(Z,Y)})}function SQ(Q,J,Z=0){let $=J+1+J*Z;for(let _=0;_<Q.length;_++)Q[_]=Q[_]/$}function TQ(Q,J){if(Q.at===J.at){if(Q.value===null)return 1;if(J.value===null)return-1;return 0}else return Q.at-J.at}var k$="easeInOut",K1=20;function jQ(Q,{defaultTransition:J={},...Z}={},$,_){let W=J.duration||0.3,Y=new Map,X=new Map,G={},H=new Map,z=0,q=0,B=0;for(let F=0;F<Q.length;F++){let I=Q[F];if(typeof I==="string"){H.set(I,q);continue}else if(!Array.isArray(I)){H.set(I.name,I1(q,I.at,z,H));continue}let[K,N,w={}]=I;if(w.at!==void 0)q=I1(q,w.at,z,H);let O=0,C=(P,L,S,E=0,D=0)=>{let V=x$(P),{delay:A=0,times:b=W5(V),type:l=J.type||"keyframes",repeat:s,repeatType:X0,repeatDelay:K0=0,...N0}=L,{ease:L0=J.ease||"easeOut",duration:j}=L,Z0=typeof A==="function"?A(E,D):A,A0=V.length,x0=X5(l)?l:_?.[l||"keyframes"];if(A0<=2&&x0){let p5=100;if(A0===2&&g$(V)){let Z7=V[1]-V[0];p5=Math.abs(Z7)}let m5={...J,...N0};if(j!==void 0)m5.duration=T(j);let o7=B6(m5,p5,x0);L0=o7.ease,j=o7.duration}j??(j=W);let l7=q+Z0;if(b.length===1&&b[0]===0)b[1]=1;let C1=b.length-V.length;if(C1>0&&F6(b,C1),V.length===1&&V.unshift(null),s)q0(s<K1,`Sequence segments can't repeat ${s} times — ignoring repeat option. Use a value below ${K1} or apply repeat at the sequence level instead.`);if(s&&s<K1){let p5=j>0?K0/j:0;j=EQ(j,s,K0);let m5=[...V],o7=[...b];L0=Array.isArray(L0)?[...L0]:[L0];let Z7=[...L0],O1=X0==="reverse"||X0==="mirror",D1=m5,M1=Z7;if(O1){if(D1=[...m5].reverse(),X0==="reverse")M1=[...Z7].reverse().map((r0)=>typeof r0==="function"?t0(r0):r0)}for(let r0=0;r0<s;r0++){let L1=O1&&r0%2===0,A1=L1?D1:m5,WJ=L1?M1:Z7,V1=(r0+1)*(1+p5);if(p5>0)V.push(V[V.length-1]),b.push(V1),L0.push("linear");V.push(...A1);for(let $7=0;$7<A1.length;$7++)b.push(o7[$7]+V1),L0.push($7===0?"linear":Z6(WJ,$7-1))}SQ(b,s,p5)}let P1=l7+j;RQ(S,V,L0,b,l7,P1),O=Math.max(Z0+j,O),B=Math.max(P1,B)};if(h(K)){let P=hQ(K,X);C(N,w,bQ("default",P))}else{let P=P9(K,N,$,G),L=P.length;for(let S=0;S<L;S++){N=N,w=w;let E=P[S],D=hQ(E,X);for(let V in N)C(N[V],y$(w,V),bQ(V,D),S,L)}}z=q,q+=O}return X.forEach((F,I)=>{for(let K in F){let N=F[K];N.sort(TQ);let w=[],O=[],C=[];for(let E=0;E<N.length;E++){let{at:D,value:V,easing:A}=N[E];w.push(V),O.push(w0(0,B,D)),C.push(A||"easeOut")}if(O[0]!==0)O.unshift(0),w.unshift(w[0]),C.unshift(k$);if(O[O.length-1]!==1)O.push(1),w.push(null);if(!Y.has(I))Y.set(I,{keyframes:{},transition:{}});let P=Y.get(I);P.keyframes[K]=w;let{type:L,...S}=J;P.transition[K]={...S,duration:B,ease:C,times:O,...Z}}}),Y}function hQ(Q,J){return!J.has(Q)&&J.set(Q,{}),J.get(Q)}function bQ(Q,J){if(!J[Q])J[Q]=[];return J[Q]}function x$(Q){return Array.isArray(Q)?Q:[Q]}function y$(Q,J){return Q&&Q[J]?{...Q,...Q[J]}:{...Q}}var f$=(Q)=>typeof Q==="number",g$=(Q)=>Q.every(f$);function kQ(Q){let J={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},Z=k0(Q)&&!v6(Q)?new b7(J):new g5(J);Z.mount(Q),H0.set(Q,Z)}function xQ(Q){let Z=new h7({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});Z.mount(Q),H0.set(Q,Z)}function v$(Q,J){return h(Q)||typeof Q==="number"||typeof Q==="string"&&!m7(J)}function O9(Q,J,Z,$){let _=[];if(v$(Q,J))_.push(s6(Q,m7(J)?J.default||J:J,Z?Z.default||Z:Z));else{if(Q==null)return _;let W=P9(Q,J,$),Y=W.length;o(Boolean(Y),"No valid elements provided.","no-valid-elements");for(let X=0;X<Y;X++){let G=W[X],H=G instanceof Element?kQ:xQ;if(!H0.has(G))H(G);let z=H0.get(G),q={...Z};if("delay"in q&&typeof q.delay==="function")q.delay=q.delay(X,Y);_.push(...H5(z,{...J,transition:q},{}))}}return _}function yQ(Q,J,Z){let $=[],_=Q.map((Y)=>{if(Array.isArray(Y)&&typeof Y[0]==="function"){let X=Y[0],G=m(0);if(G.on("change",X),Y.length===1)return[G,[0,1]];else if(Y.length===2)return[G,[0,1],Y[1]];else return[G,Y[1],Y[2]]}return Y});return jQ(_,J,Z,{spring:S0}).forEach(({keyframes:Y,transition:X},G)=>{$.push(...O9(G,Y,X))}),$}function d$(Q){return Array.isArray(Q)&&Q.some(Array.isArray)}function N1(Q={}){let{scope:J,reduceMotion:Z,skipAnimations:$}=Q;function _(W,Y,X){let G=[],H,z={};if(Z!==void 0)z.reduceMotion=Z;if($!==void 0)z.skipAnimations=$;if(d$(W)){let{onComplete:B,...F}=Y||{};if(typeof B==="function")H=B;G=yQ(W,{...z,...F},J)}else{let{onComplete:B,...F}=X||{};if(typeof B==="function")H=B;G=O9(W,Y,{...z,...F},J)}let q=new S5(G);if(H)q.finished.then(H);if(J)J.animations.push(q),q.finished.then(()=>{$0(J.animations,q)});return q}return _}var fQ=N1();function gQ(Q,J,Z,$){if(Q==null)return[];let _=Q0(Q,$),W=_.length;o(Boolean(W),"No valid elements provided.","no-valid-elements");let Y=[];for(let G=0;G<W;G++){let H=_[G],z={...Z};if(typeof z.delay==="function")z.delay=z.delay(G,W);for(let q in J){let B=J[q];if(!Array.isArray(B))B=[B];let F={...e(z,q)};F.duration&&(F.duration=T(F.duration)),F.delay&&(F.delay=T(F.delay));let I=B8(H),K=q8(q,F.pseudoElement||""),N=I.get(K);N&&N.stop(),Y.push({map:I,key:K,unresolvedKeyframes:B,options:{...F,element:H,name:q,allowFlatten:!z.type&&!z.ease}})}}for(let G=0;G<Y.length;G++){let{unresolvedKeyframes:H,options:z}=Y[G],{element:q,name:B,pseudoElement:F}=z;if(!F&&H[0]===null)H[0]=M7(q,B);if(I6(H),O8(H,B),!F&&H.length<2)H.unshift(M7(q,B));z.keyframes=H}let X=[];for(let G=0;G<Y.length;G++){let{map:H,key:z,options:q}=Y[G],B=new I0(q);H.set(z,B),B.finished.finally(()=>H.delete(z)),X.push(B)}return X}var c$=(Q)=>{function J(Z,$,_){return new S5(gQ(Z,$,_,Q))}return J},vQ=c$();function e6(Q){if(typeof window>"u")return!1;return Q?G8():C6()}var u$=50,dQ=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),uQ=()=>({time:0,x:dQ(),y:dQ()}),p$={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function cQ(Q,J,Z,$){let _=Z[J],{length:W,position:Y}=p$[J],X=_.current,G=Z.time;_.current=Math.abs(Q[`scroll${Y}`]),_.scrollLength=Q[`scroll${W}`]-Q[`client${W}`],_.offset.length=0,_.offset[0]=0,_.offset[1]=_.scrollLength,_.progress=w0(0,_.scrollLength,_.current);let H=$-G;_.velocity=H>u$?0:a0(_.current-X,H)}function pQ(Q,J,Z){cQ(Q,"x",J,Z),cQ(Q,"y",J,Z),J.time=Z}function mQ(Q,J){let Z={x:0,y:0},$=Q;while($&&$!==J)if(q5($))Z.x+=$.offsetLeft,Z.y+=$.offsetTop,$=$.offsetParent;else if($.tagName==="svg"){let _=$.getBoundingClientRect();$=$.parentElement;let W=$.getBoundingClientRect();Z.x+=_.left-W.left,Z.y+=_.top-W.top}else if($ instanceof SVGGraphicsElement){let{x:_,y:W}=$.getBBox();Z.x+=_,Z.y+=W;let Y=null,X=$.parentNode;while(!Y){if(X.tagName==="svg")Y=X;X=$.parentNode}$=Y}else break;return Z}var D9={start:0,center:0.5,end:1};function w1(Q,J,Z=0){let $=0;if(Q in D9)Q=D9[Q];if(typeof Q==="string"){let _=parseFloat(Q);if(Q.endsWith("px"))$=_;else if(Q.endsWith("%"))Q=_/100;else if(Q.endsWith("vw"))$=_/100*document.documentElement.clientWidth;else if(Q.endsWith("vh"))$=_/100*document.documentElement.clientHeight;else Q=_}if(typeof Q==="number")$=J*Q;return Z+$}var m$=[0,0];function lQ(Q,J,Z,$){let _=Array.isArray(Q)?Q:m$,W=0,Y=0;if(typeof Q==="number")_=[Q,Q];else if(typeof Q==="string")if(Q=Q.trim(),Q.includes(" "))_=Q.split(" ");else _=[Q,D9[Q]?Q:"0"];return W=w1(_[0],Z,$),Y=w1(_[1],J),W-Y}var u5={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var l$={x:0,y:0};function o$(Q){return"getBBox"in Q&&Q.tagName!=="svg"?Q.getBBox():{width:Q.clientWidth,height:Q.clientHeight}}function oQ(Q,J,Z){let{offset:$=u5.All}=Z,{target:_=Q,axis:W="y"}=Z,Y=W==="y"?"height":"width",X=_!==Q?mQ(_,Q):l$,G=_===Q?{width:Q.scrollWidth,height:Q.scrollHeight}:o$(_),H={width:Q.clientWidth,height:Q.clientHeight};J[W].offset.length=0;let z=!J[W].interpolate,q=$.length;for(let B=0;B<q;B++){let F=lQ($[B],H[Y],G[Y],X[W]);if(!z&&F!==J[W].interpolatorOffsets[B])z=!0;J[W].offset[B]=F}if(z)J[W].interpolate=Y5(J[W].offset,W5($),{clamp:!1}),J[W].interpolatorOffsets=[...J[W].offset];J[W].progress=c(0,1,J[W].interpolate(J[W].current))}function r$(Q,J=Q,Z){if(Z.x.targetOffset=0,Z.y.targetOffset=0,J!==Q){let $=J;while($&&$!==Q)Z.x.targetOffset+=$.offsetLeft,Z.y.targetOffset+=$.offsetTop,$=$.offsetParent}Z.x.targetLength=J===Q?J.scrollWidth:J.clientWidth,Z.y.targetLength=J===Q?J.scrollHeight:J.clientHeight,Z.x.containerLength=Q.clientWidth,Z.y.containerLength=Q.clientHeight}function rQ(Q,J,Z,$={}){return{measure:(_)=>{if(r$(Q,$.target,Z),pQ(Q,Z,_),$.offset||$.target)oQ(Q,Z,$)},notify:()=>J(Z)}}var Q7=new WeakMap,iQ=new WeakMap,U1=new WeakMap,sQ=new WeakMap,M9=new WeakMap,nQ=(Q)=>Q===document.scrollingElement?window:Q;function J7(Q,{container:J=document.scrollingElement,trackContentSize:Z=!1,...$}={}){if(!J)return g;let _=U1.get(J);if(!_)_=new Set,U1.set(J,_);let W=uQ(),Y=rQ(J,Q,W,$);if(_.add(Y),!Q7.has(J)){let G=()=>{for(let B of _)B.measure(v.timestamp);M.preUpdate(H)},H=()=>{for(let B of _)B.notify()},z=()=>M.read(G);Q7.set(J,z);let q=nQ(J);if(window.addEventListener("resize",z),J!==document.documentElement)iQ.set(J,R8(J,z));q.addEventListener("scroll",z),z()}if(Z&&!M9.has(J)){let G=Q7.get(J),H={width:J.scrollWidth,height:J.scrollHeight};sQ.set(J,H);let z=()=>{let{scrollWidth:B,scrollHeight:F}=J;if(H.width!==B||H.height!==F)G(),H.width=B,H.height=F},q=M.read(z,!0);M9.set(J,q)}let X=Q7.get(J);return M.read(X,!1,!0),()=>{x(X);let G=U1.get(J);if(!G)return;if(G.delete(Y),G.size)return;let H=Q7.get(J);if(Q7.delete(J),H)nQ(J).removeEventListener("scroll",H),iQ.get(J)?.(),window.removeEventListener("resize",H);let z=M9.get(J);if(z)x(z),M9.delete(J);sQ.delete(J)}}var i$=[[u5.Enter,"entry"],[u5.Exit,"exit"],[u5.Any,"cover"],[u5.All,"contain"]],aQ={start:0,end:1};function s$(Q){let J=Q.trim().split(/\s+/);if(J.length!==2)return;let Z=aQ[J[0]],$=aQ[J[1]];if(Z===void 0||$===void 0)return;return[Z,$]}function n$(Q){if(Q.length!==2)return;let J=[];for(let Z of Q)if(Array.isArray(Z))J.push(Z);else if(typeof Z==="string"){let $=s$(Z);if(!$)return;J.push($)}else return;return J}function a$(Q,J){let Z=n$(Q);if(!Z)return!1;for(let $=0;$<2;$++){let _=Z[$],W=J[$];if(_[0]!==W[0]||_[1]!==W[1])return!1}return!0}function L9(Q){if(!Q)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[J,Z]of i$)if(a$(Q,J))return{rangeStart:`${Z} 0%`,rangeEnd:`${Z} 100%`};return}var tQ=new Map;function eQ(Q){let J={value:0},Z=J7(($)=>{J.value=$[Q.axis].progress*100},Q);return{currentTime:J,cancel:Z}}function A9({source:Q,container:J,...Z}){let{axis:$}=Z;if(Q)J=Q;let _=tQ.get(J);if(!_)_=new Map,tQ.set(J,_);let W=Z.target??"self",Y=_.get(W);if(!Y)Y={},_.set(W,Y);let X=$+(Z.offset??[]).join(",");if(!Y[X])if(Z.target&&e6(Z.target))if(L9(Z.offset))Y[X]=new ViewTimeline({subject:Z.target,axis:$});else Y[X]=eQ({container:J,...Z});else if(e6())Y[X]=new ScrollTimeline({source:J,axis:$});else Y[X]=eQ({container:J,...Z});return Y[X]}function QJ(Q,J){let Z=A9(J),$=J.target?L9(J.offset):void 0,_=J.target?e6(J.target)&&!!$:e6();return Q.attachTimeline({timeline:_?Z:void 0,...$&&_&&{rangeStart:$.rangeStart,rangeEnd:$.rangeEnd},observe:(W)=>{return W.pause(),g6((Y)=>{W.time=W.iterationDuration*Y},Z)}})}function JJ(Q){return Q&&(Q.target||Q.offset)}function t$(Q){return Q.length===2}function ZJ(Q,J){if(t$(Q)||JJ(J))return J7((Z)=>{Q(Z[J.axis].progress,Z)},J);else return g6(Q,A9(J))}function $J(Q,{axis:J="y",container:Z=document.scrollingElement,...$}={}){if(!Z)return g;let _={axis:J,container:Z,...$};return typeof Q==="function"?ZJ(Q,_):QJ(Q,_)}var e$={some:0,all:1};function _J(Q,J,{root:Z,margin:$,amount:_="some"}={}){let W=Q0(Q),Y=new WeakMap,G=new IntersectionObserver((H)=>{H.forEach((z)=>{let q=Y.get(z.target);if(z.isIntersecting===Boolean(q))return;if(z.isIntersecting){let B=J(z.target,z);if(typeof B==="function")Y.set(z.target,B);else G.unobserve(z.target)}else if(typeof q==="function")q(z),Y.delete(z.target)})},{root:Z,rootMargin:$,threshold:typeof _==="number"?_:e$[_]});return W.forEach((H)=>G.observe(H)),()=>G.disconnect()}var V9=(Q,J)=>Math.abs(Q-J);function YJ(Q,J){let Z=V9(Q.x,J.x),$=V9(Q.y,J.y);return Math.sqrt(Z**2+$**2)}var{AsyncMotionValueAnimation:XO,DOMKeyframesResolver:GO,DOMVisualElement:HO,DocumentProjectionNode:zO,Feature:qO,FlatTree:BO,GroupAnimation:FO,GroupAnimationWithThen:IO,HTMLProjectionNode:KO,HTMLVisualElement:NO,JSAnimation:wO,KeyframeResolver:UO,LayoutAnimationBuilder:CO,MotionGlobalConfig:PO,MotionValue:OO,NativeAnimation:DO,NativeAnimationExtended:MO,NativeAnimationWrapper:LO,NodeStack:AO,ObjectVisualElement:VO,SVGVisualElement:EO,SubscriptionManager:RO,ViewTransitionBuilder:SO,VisualElement:TO,acceleratedValues:hO,activeAnimations:bO,addAttrValue:jO,addDomEvent:kO,addScaleCorrector:xO,addStyleValue:yO,addUniqueItem:fO,addValueToWillChange:gO,alpha:vO,analyseComplexValue:dO,animate:cO,animateMini:uO,animateMotionValue:pO,animateSingleValue:mO,animateTarget:lO,animateValue:oO,animateVariant:rO,animateView:iO,animateVisualElement:sO,animationMapKey:nO,anticipate:aO,applyAxisDelta:tO,applyBoxDelta:eO,applyGeneratorOptions:QD,applyPointDelta:JD,applyPxDefaults:ZD,applyTreeDeltas:$D,arc:_D,aspectRatio:YD,attachFollow:WD,attachSpring:XD,attrEffect:GD,axisDeltaEquals:HD,axisEquals:zD,axisEqualsRounded:qD,backIn:BD,backInOut:FD,backOut:ID,boxEquals:KD,boxEqualsRounded:ND,buildHTMLStyles:wD,buildProjectionTransform:UD,buildSVGAttrs:CD,buildSVGPath:PD,buildTransform:OD,calcAxisDelta:DD,calcBoxDelta:MD,calcChildStagger:LD,calcGeneratorDuration:AD,calcLength:VD,calcRelativeAxis:ED,calcRelativeAxisPosition:RD,calcRelativeBox:SD,calcRelativePosition:TD,camelCaseAttributes:hD,camelToDash:bD,cancelFrame:jD,cancelMicrotask:kD,cancelSync:xD,checkVariantsDidChange:yD,circIn:fD,circInOut:gD,circOut:vD,clamp:dD,cleanDirtyNodes:cD,collectMotionValues:uD,color:pD,compareByDepth:mD,complex:lD,containsCSSVariable:oD,convertBoundingBoxToBox:rD,convertBoxToBoundingBox:iD,convertOffsetToTimes:sD,copyAxisDeltaInto:nD,copyAxisInto:aD,copyBoxInto:tD,correctBorderRadius:eD,correctBoxShadow:QM,createAnimationState:JM,createAxis:ZM,createAxisDelta:$M,createBox:_M,createDelta:YM,createGeneratorEasing:WM,createProjectionNode:XM,createRenderBatcher:GM,createScopedAnimate:HM,cubicBezier:zM,cubicBezierAsString:qM,defaultEasing:BM,defaultOffset:FM,defaultTransformValue:IM,defaultValueTypes:KM,degrees:NM,delay:wM,delayInSeconds:UM,dimensionValueTypes:CM,distance:PM,distance2D:OM,eachAxis:DM,easeIn:MM,easeInOut:LM,easeOut:AM,easingDefinitionToFunction:VM,fillOffset:EM,fillWildcards:RM,findDimensionValueType:SM,findValueType:TM,flushKeyframeResolvers:hM,followValue:bM,frame:jM,frameData:kM,frameSteps:xM,generateLinearEasing:yM,getAnimatableNone:fM,getAnimationMap:gM,getComputedStyle:vM,getDefaultTransition:dM,getDefaultValueType:cM,getEasingForSegment:uM,getFeatureDefinitions:pM,getFinalKeyframe:mM,getMixer:lM,getOptimisedAppearId:oM,getOriginIndex:rM,getValueAsType:iM,getValueTransition:sM,getVariableValue:nM,getVariantContext:aM,getViewAnimationLayerInfo:tM,getViewAnimations:eM,globalProjectionState:QL,has2DTranslate:JL,hasReducedMotionListener:ZL,hasScale:$L,hasTransform:_L,hasWarned:YL,hex:WL,hover:XL,hsla:GL,hslaToRgba:HL,inView:zL,inertia:qL,initPrefersReducedMotion:BL,interpolate:FL,invariant:IL,invisibleValues:KL,isAnimationControls:NL,isBezierDefinition:wL,isCSSVariableName:UL,isCSSVariableToken:CL,isControllingVariants:PL,isDeltaZero:OL,isDragActive:DL,isDragging:ML,isEasingArray:LL,isElementKeyboardAccessible:AL,isElementTextInput:VL,isForcedMotionValue:EL,isGenerator:RL,isHTMLElement:SL,isKeyframesTarget:TL,isMotionValue:hL,isNear:bL,isNodeOrChild:jL,isNumericalString:kL,isObject:xL,isPrimaryPointer:yL,isSVGElement:fL,isSVGSVGElement:gL,isSVGTag:vL,isTransitionDefined:dL,isVariantLabel:cL,isVariantNode:uL,isWaapiSupportedEasing:pL,isWillChangeMotionValue:mL,isZeroValueString:lL,keyframes:oL,makeAnimationInstant:rL,mapEasingToNativeEasing:iL,mapValue:sL,maxGeneratorDuration:nL,measurePageBox:aL,measureViewportBox:tL,memo:eL,microtask:QA,millisecondsToSeconds:JA,mirrorEasing:ZA,mix:$A,mixArray:_A,mixColor:YA,mixComplex:WA,mixImmediate:XA,mixLinearColor:GA,mixNumber:HA,mixObject:zA,mixValues:qA,mixVisibility:BA,motionValue:FA,moveItem:IA,nodeGroup:KA,noop:NA,number:wA,numberValueTypes:UA,observeTimeline:CA,optimizedAppearDataAttribute:PA,optimizedAppearDataId:OA,parseAnimateLayoutArgs:DA,parseCSSVariable:MA,parseValueFromTransform:LA,percent:AA,pipe:VA,pixelsToPercent:EA,positionalKeys:RA,prefersReducedMotion:SA,press:TA,progress:hA,progressPercentage:bA,propEffect:jA,propagateDirtyNodes:kA,px:xA,readTransformValue:yA,recordStats:fA,removeAxisDelta:gA,removeAxisTransforms:vA,removeBoxTransforms:dA,removeItem:cA,removePointDelta:uA,renderHTML:pA,renderSVG:mA,resize:lA,resolveElements:oA,resolveMotionValue:rA,resolveTransition:iA,resolveVariant:sA,resolveVariantFromProps:nA,reverseEasing:aA,rgbUnit:tA,rgba:eA,rootProjectionNode:QV,scale:JV,scaleCorrectors:ZV,scalePoint:$V,scrapeHTMLMotionValuesFromProps:_V,scrapeSVGMotionValuesFromProps:YV,scroll:WV,scrollInfo:XV,secondsToMilliseconds:GV,setDragLock:HV,setFeatureDefinitions:zV,setStyle:qV,setTarget:BV,spring:FV,springValue:IV,stagger:KV,startWaapiAnimation:NV,statsBuffer:wV,steps:UV,styleEffect:CV,supportedWaapiEasing:PV,supportsBrowserAnimation:OV,supportsFlags:DV,supportsLinearEasing:MV,supportsPartialKeyframes:LV,supportsScrollTimeline:AV,supportsViewTimeline:VV,svgEffect:EV,sync:RV,testValueType:SV,time:TV,transform:hV,transformAxis:bV,transformBox:jV,transformBoxPoints:kV,transformPropOrder:xV,transformProps:yV,transformValue:fV,transformValueTypes:gV,translateAxis:vV,updateMotionValuesFromProps:dV,variantPriorityOrder:cV,variantProps:uV,velocityPerSecond:pV,vh:mV,visualElementStore:lV,vw:oV,warnOnce:rV,warning:iV,wrap:sV}=E9;var aV=E9;export{sV as wrap,iV as warning,rV as warnOnce,oV as vw,lV as visualElementStore,mV as vh,pV as velocityPerSecond,uV as variantProps,cV as variantPriorityOrder,dV as updateMotionValuesFromProps,vV as translateAxis,gV as transformValueTypes,fV as transformValue,yV as transformProps,xV as transformPropOrder,kV as transformBoxPoints,jV as transformBox,bV as transformAxis,hV as transform,TV as time,SV as testValueType,RV as sync,EV as svgEffect,VV as supportsViewTimeline,AV as supportsScrollTimeline,LV as supportsPartialKeyframes,MV as supportsLinearEasing,DV as supportsFlags,OV as supportsBrowserAnimation,PV as supportedWaapiEasing,CV as styleEffect,UV as steps,wV as statsBuffer,NV as startWaapiAnimation,KV as stagger,IV as springValue,FV as spring,BV as setTarget,qV as setStyle,zV as setFeatureDefinitions,HV as setDragLock,GV as secondsToMilliseconds,XV as scrollInfo,WV as scroll,YV as scrapeSVGMotionValuesFromProps,_V as scrapeHTMLMotionValuesFromProps,$V as scalePoint,ZV as scaleCorrectors,JV as scale,QV as rootProjectionNode,eA as rgba,tA as rgbUnit,aA as reverseEasing,nA as resolveVariantFromProps,sA as resolveVariant,iA as resolveTransition,rA as resolveMotionValue,oA as resolveElements,lA as resize,mA as renderSVG,pA as renderHTML,uA as removePointDelta,cA as removeItem,dA as removeBoxTransforms,vA as removeAxisTransforms,gA as removeAxisDelta,fA as recordStats,yA as readTransformValue,xA as px,kA as propagateDirtyNodes,jA as propEffect,bA as progressPercentage,hA as progress,TA as press,SA as prefersReducedMotion,RA as positionalKeys,EA as pixelsToPercent,VA as pipe,AA as percent,LA as parseValueFromTransform,MA as parseCSSVariable,DA as parseAnimateLayoutArgs,OA as optimizedAppearDataId,PA as optimizedAppearDataAttribute,CA as observeTimeline,UA as numberValueTypes,wA as number,NA as noop,KA as nodeGroup,IA as moveItem,FA as motionValue,BA as mixVisibility,qA as mixValues,zA as mixObject,HA as mixNumber,GA as mixLinearColor,XA as mixImmediate,WA as mixComplex,YA as mixColor,_A as mixArray,$A as mix,ZA as mirrorEasing,JA as millisecondsToSeconds,QA as microtask,eL as memo,tL as measureViewportBox,aL as measurePageBox,nL as maxGeneratorDuration,sL as mapValue,iL as mapEasingToNativeEasing,rL as makeAnimationInstant,oL as keyframes,lL as isZeroValueString,mL as isWillChangeMotionValue,pL as isWaapiSupportedEasing,uL as isVariantNode,cL as isVariantLabel,dL as isTransitionDefined,vL as isSVGTag,gL as isSVGSVGElement,fL as isSVGElement,yL as isPrimaryPointer,xL as isObject,kL as isNumericalString,jL as isNodeOrChild,bL as isNear,hL as isMotionValue,TL as isKeyframesTarget,SL as isHTMLElement,RL as isGenerator,EL as isForcedMotionValue,VL as isElementTextInput,AL as isElementKeyboardAccessible,LL as isEasingArray,ML as isDragging,DL as isDragActive,OL as isDeltaZero,PL as isControllingVariants,CL as isCSSVariableToken,UL as isCSSVariableName,wL as isBezierDefinition,NL as isAnimationControls,KL as invisibleValues,IL as invariant,FL as interpolate,BL as initPrefersReducedMotion,qL as inertia,zL as inView,HL as hslaToRgba,GL as hsla,XL as hover,WL as hex,YL as hasWarned,_L as hasTransform,$L as hasScale,ZL as hasReducedMotionListener,JL as has2DTranslate,QL as globalProjectionState,eM as getViewAnimations,tM as getViewAnimationLayerInfo,aM as getVariantContext,nM as getVariableValue,sM as getValueTransition,iM as getValueAsType,rM as getOriginIndex,oM as getOptimisedAppearId,lM as getMixer,mM as getFinalKeyframe,pM as getFeatureDefinitions,uM as getEasingForSegment,cM as getDefaultValueType,dM as getDefaultTransition,vM as getComputedStyle,gM as getAnimationMap,fM as getAnimatableNone,yM as generateLinearEasing,xM as frameSteps,kM as frameData,jM as frame,bM as followValue,hM as flushKeyframeResolvers,TM as findValueType,SM as findDimensionValueType,RM as fillWildcards,EM as fillOffset,VM as easingDefinitionToFunction,AM as easeOut,LM as easeInOut,MM as easeIn,DM as eachAxis,OM as distance2D,PM as distance,CM as dimensionValueTypes,UM as delayInSeconds,wM as delay,NM as degrees,KM as defaultValueTypes,IM as defaultTransformValue,FM as defaultOffset,BM as defaultEasing,aV as default,qM as cubicBezierAsString,zM as cubicBezier,HM as createScopedAnimate,GM as createRenderBatcher,XM as createProjectionNode,WM as createGeneratorEasing,YM as createDelta,_M as createBox,$M as createAxisDelta,ZM as createAxis,JM as createAnimationState,QM as correctBoxShadow,eD as correctBorderRadius,tD as copyBoxInto,aD as copyAxisInto,nD as copyAxisDeltaInto,sD as convertOffsetToTimes,iD as convertBoxToBoundingBox,rD as convertBoundingBoxToBox,oD as containsCSSVariable,lD as complex,mD as compareByDepth,pD as color,uD as collectMotionValues,cD as cleanDirtyNodes,dD as clamp,vD as circOut,gD as circInOut,fD as circIn,yD as checkVariantsDidChange,xD as cancelSync,kD as cancelMicrotask,jD as cancelFrame,bD as camelToDash,hD as camelCaseAttributes,TD as calcRelativePosition,SD as calcRelativeBox,RD as calcRelativeAxisPosition,ED as calcRelativeAxis,VD as calcLength,AD as calcGeneratorDuration,LD as calcChildStagger,MD as calcBoxDelta,DD as calcAxisDelta,OD as buildTransform,PD as buildSVGPath,CD as buildSVGAttrs,UD as buildProjectionTransform,wD as buildHTMLStyles,ND as boxEqualsRounded,KD as boxEquals,ID as backOut,FD as backInOut,BD as backIn,qD as axisEqualsRounded,zD as axisEquals,HD as axisDeltaEquals,GD as attrEffect,XD as attachSpring,WD as attachFollow,YD as aspectRatio,_D as arc,$D as applyTreeDeltas,ZD as applyPxDefaults,JD as applyPointDelta,QD as applyGeneratorOptions,eO as applyBoxDelta,tO as applyAxisDelta,aO as anticipate,nO as animationMapKey,sO as animateVisualElement,iO as animateView,rO as animateVariant,oO as animateValue,lO as animateTarget,mO as animateSingleValue,pO as animateMotionValue,uO as animateMini,cO as animate,dO as analyseComplexValue,vO as alpha,gO as addValueToWillChange,fO as addUniqueItem,yO as addStyleValue,xO as addScaleCorrector,kO as addDomEvent,jO as addAttrValue,bO as activeAnimations,hO as acceleratedValues,TO as VisualElement,SO as ViewTransitionBuilder,RO as SubscriptionManager,EO as SVGVisualElement,VO as ObjectVisualElement,AO as NodeStack,LO as NativeAnimationWrapper,MO as NativeAnimationExtended,DO as NativeAnimation,OO as MotionValue,PO as MotionGlobalConfig,CO as LayoutAnimationBuilder,UO as KeyframeResolver,wO as JSAnimation,NO as HTMLVisualElement,KO as HTMLProjectionNode,IO as GroupAnimationWithThen,FO as GroupAnimation,BO as FlatTree,qO as Feature,zO as DocumentProjectionNode,HO as DOMVisualElement,GO as DOMKeyframesResolver,XO as AsyncMotionValueAnimation};