libre-webui 0.44.1 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/backend/dist/index.d.ts.map +1 -1
  2. package/backend/dist/index.js +2 -0
  3. package/backend/dist/index.js.map +1 -1
  4. package/backend/dist/routes/chat.d.ts.map +1 -1
  5. package/backend/dist/routes/chat.js +10 -2
  6. package/backend/dist/routes/chat.js.map +1 -1
  7. package/backend/dist/routes/decisions.d.ts +3 -0
  8. package/backend/dist/routes/decisions.d.ts.map +1 -0
  9. package/backend/dist/routes/decisions.js +148 -0
  10. package/backend/dist/routes/decisions.js.map +1 -0
  11. package/backend/dist/services/apiTokenService.d.ts.map +1 -1
  12. package/backend/dist/services/apiTokenService.js +2 -0
  13. package/backend/dist/services/apiTokenService.js.map +1 -1
  14. package/backend/dist/services/authorizationService.d.ts +1 -1
  15. package/backend/dist/services/authorizationService.d.ts.map +1 -1
  16. package/backend/dist/services/authorizationService.js +8 -1
  17. package/backend/dist/services/authorizationService.js.map +1 -1
  18. package/backend/dist/services/chatGenerationService.d.ts +24 -2
  19. package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
  20. package/backend/dist/services/chatGenerationService.js +72 -4
  21. package/backend/dist/services/chatGenerationService.js.map +1 -1
  22. package/backend/dist/services/chatRequestService.d.ts +11 -3
  23. package/backend/dist/services/chatRequestService.d.ts.map +1 -1
  24. package/backend/dist/services/chatRequestService.js +19 -3
  25. package/backend/dist/services/chatRequestService.js.map +1 -1
  26. package/backend/dist/services/contextCompactionService.d.ts.map +1 -1
  27. package/backend/dist/services/contextCompactionService.js +8 -0
  28. package/backend/dist/services/contextCompactionService.js.map +1 -1
  29. package/backend/dist/services/decisionAccessService.d.ts +16 -0
  30. package/backend/dist/services/decisionAccessService.d.ts.map +1 -0
  31. package/backend/dist/services/decisionAccessService.js +71 -0
  32. package/backend/dist/services/decisionAccessService.js.map +1 -0
  33. package/backend/dist/services/decisionService.d.ts +128 -0
  34. package/backend/dist/services/decisionService.d.ts.map +1 -0
  35. package/backend/dist/services/decisionService.js +515 -0
  36. package/backend/dist/services/decisionService.js.map +1 -0
  37. package/backend/dist/services/durableChatGenerationService.d.ts.map +1 -1
  38. package/backend/dist/services/durableChatGenerationService.js +13 -2
  39. package/backend/dist/services/durableChatGenerationService.js.map +1 -1
  40. package/backend/dist/services/ollamaService.d.ts +6 -0
  41. package/backend/dist/services/ollamaService.d.ts.map +1 -1
  42. package/backend/dist/services/ollamaService.js +13 -0
  43. package/backend/dist/services/ollamaService.js.map +1 -1
  44. package/backend/dist/types/index.d.ts +38 -1
  45. package/backend/dist/types/index.d.ts.map +1 -1
  46. package/backend/dist/types/index.js.map +1 -1
  47. package/backend/dist/utils/decisionProtocol.d.ts +164 -0
  48. package/backend/dist/utils/decisionProtocol.d.ts.map +1 -0
  49. package/backend/dist/utils/decisionProtocol.js +757 -0
  50. package/backend/dist/utils/decisionProtocol.js.map +1 -0
  51. package/backend/dist/utils/ollamaLibrary.d.ts.map +1 -1
  52. package/backend/dist/utils/ollamaLibrary.js +26 -7
  53. package/backend/dist/utils/ollamaLibrary.js.map +1 -1
  54. package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
  55. package/backend/dist/utils/pluginDefinitionTrust.js +51 -7
  56. package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
  57. package/backend/dist/utils/pluginModelCatalog.d.ts +4 -2
  58. package/backend/dist/utils/pluginModelCatalog.d.ts.map +1 -1
  59. package/backend/dist/utils/pluginModelCatalog.js +12 -2
  60. package/backend/dist/utils/pluginModelCatalog.js.map +1 -1
  61. package/backend/dist/websocketServer.d.ts.map +1 -1
  62. package/backend/dist/websocketServer.js +23 -6
  63. package/backend/dist/websocketServer.js.map +1 -1
  64. package/backend/package.json +2 -2
  65. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  66. package/frontend/dist/artifact-runtime/babel.js +172 -172
  67. package/frontend/dist/artifact-runtime/framer-motion.js +2 -2
  68. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  69. package/frontend/dist/artifact-runtime/papaparse.js +2 -2
  70. package/frontend/dist/artifact-runtime/plotly.js +5 -5
  71. package/frontend/dist/artifact-runtime/tailwind.js +16 -16
  72. package/frontend/dist/assets/index-FrFgrp5E.css +2 -0
  73. package/frontend/dist/assets/index-MveXWX7i.js +15 -0
  74. package/frontend/dist/index.html +28 -28
  75. package/frontend/dist/js/{ArtifactContainer-C2PgJwen.js → ArtifactContainer-BiGwAZkv.js} +1 -1
  76. package/frontend/dist/js/{ArtifactDemoPage-Dcy-lVrh.js → ArtifactDemoPage-Dk6bf2fr.js} +1 -1
  77. package/frontend/dist/js/{ArtifactSandboxFrame-C7gLjHfY.js → ArtifactSandboxFrame-BMQXP8E8.js} +1 -1
  78. package/frontend/dist/js/{ArtifactSlideOutPanel-BKZQ7VwV.js → ArtifactSlideOutPanel-CNLSDJAJ.js} +1 -1
  79. package/frontend/dist/js/{AutomationModal-zImHyodn.js → AutomationModal-VMrwN5y4.js} +1 -1
  80. package/frontend/dist/js/{AutomationsPage-BuJ1Y810.js → AutomationsPage-wb5royf_.js} +1 -1
  81. package/frontend/dist/js/{AvatarUpload-BECcVNWc.js → AvatarUpload-DpeJzlyv.js} +1 -1
  82. package/frontend/dist/js/{Button-BGE6ZJv5.js → Button-D6d7HYoa.js} +1 -1
  83. package/frontend/dist/js/{CalendarPage-hF8Gk80e.js → CalendarPage-DeMdx8BD.js} +1 -1
  84. package/frontend/dist/js/ChannelsPage-DJj_kG1m.js +1 -0
  85. package/frontend/dist/js/ChatPage-tJ5_eAbV.js +14 -0
  86. package/frontend/dist/js/{ConnectModels-DVd2RDUM.js → ConnectModels-7E_zzkFc.js} +1 -1
  87. package/frontend/dist/js/{EvaluationsPage-D_R88N9b.js → EvaluationsPage-_jLiPYYc.js} +1 -1
  88. package/frontend/dist/js/{FirstTimeSetup-CQQUhpPj.js → FirstTimeSetup-BzSil7F7.js} +1 -1
  89. package/frontend/dist/js/{GalleryPage-BYyAx84l.js → GalleryPage-CKpQMmd7.js} +1 -1
  90. package/frontend/dist/js/{HomePage-BRjiDJZa.js → HomePage-Dr8mrmo7.js} +1 -1
  91. package/frontend/dist/js/{LanguageSwitcher-0vFsK1v-.js → LanguageSwitcher-BPwDwNez.js} +1 -1
  92. package/frontend/dist/js/{Logo-GlNrhpKp.js → Logo-DhV6D_3q.js} +1 -1
  93. package/frontend/dist/js/{LogoMark-rgOHhWo-.js → LogoMark-CmF1lHXT.js} +1 -1
  94. package/frontend/dist/js/{ModelManagerModals-BK0iqnHd.js → ModelManagerModals-eAwih0CC.js} +1 -1
  95. package/frontend/dist/js/{NotesPage-DD6EntAT.js → NotesPage-DDagHzg0.js} +2 -2
  96. package/frontend/dist/js/{PasswordStrengthMeter-DrXjBWiT.js → PasswordStrengthMeter-BwgYbk3r.js} +1 -1
  97. package/frontend/dist/js/PersonasPage-uFr0Yzes.js +13 -0
  98. package/frontend/dist/js/{PluginUsagePage-BBfqotzy.js → PluginUsagePage-BfIQuqIV.js} +1 -1
  99. package/frontend/dist/js/{RichMessageContent-BcBbr-Q2.js → RichMessageContent-BY1I7d9d.js} +1 -1
  100. package/frontend/dist/js/{RichMessageContent-Cdz4MI7q.js → RichMessageContent-otmciPPz.js} +1 -1
  101. package/frontend/dist/js/SettingsModal-D2x0muLa.js +19 -0
  102. package/frontend/dist/js/{SettingsToggle-BT6cbOnw.js → SettingsToggle-CNUeo6DO.js} +1 -1
  103. package/frontend/dist/js/{ShareDialog-CTZp6YtI.js → ShareDialog-DgVAGGOp.js} +1 -1
  104. package/frontend/dist/js/{StrandsPage-BYY6YV5N.js → StrandsPage-9UVviZ58.js} +1 -1
  105. package/frontend/dist/js/{SystemPage-DaDG0V07.js → SystemPage-ChJ8O0MR.js} +1 -1
  106. package/frontend/dist/js/UserManagementPanel-CYuTltw4.js +1 -0
  107. package/frontend/dist/js/{WhatsNewModal-DgMfeACt.js → WhatsNewModal-DyK_LXtM.js} +1 -1
  108. package/frontend/dist/js/WorkPage-CdfTyNv_.js +7 -0
  109. package/frontend/dist/js/{api-Bje32kcr.js → api-BPTwf2O4.js} +1 -1
  110. package/frontend/dist/js/api-Lutao9vm.js +1 -0
  111. package/frontend/dist/js/{appNavigation-6Vs8h0Iv.js → appNavigation-DYXehtYu.js} +1 -1
  112. package/frontend/dist/js/{appStore-DmeFFzzj.js → appStore-C_SBNGJT.js} +2 -2
  113. package/frontend/dist/js/appVersion-C5-Afzj1.js +1 -0
  114. package/frontend/dist/js/ar-CMnK2iUi.js +2 -0
  115. package/frontend/dist/js/authStore-6cAmoXEk.js +1 -0
  116. package/frontend/dist/js/{authStore-DUmjkugT.js → authStore-Tu09JYbR.js} +3 -3
  117. package/frontend/dist/js/babel-C4LPTjCL.js +16 -0
  118. package/frontend/dist/js/bn-B_6kDlG3.js +2 -0
  119. package/frontend/dist/js/chatStore-wi8VDo6B.js +3 -0
  120. package/frontend/dist/js/{client-DIxMEDnJ.js → client-Czyqg89i.js} +2 -2
  121. package/frontend/dist/js/{config-HBTc75oS.js → config-DWmMmE_t.js} +1 -1
  122. package/frontend/dist/js/cs-DN4IeMBM.js +2 -0
  123. package/frontend/dist/js/da-Cx-BiRSz.js +2 -0
  124. package/frontend/dist/js/de-Cwlx8oC5.js +2 -0
  125. package/frontend/dist/js/decisionsApi-CftWDIPz.js +1 -0
  126. package/frontend/dist/js/decisionsApi-Dneh1e4n.js +1 -0
  127. package/frontend/dist/js/es-DGOk1LTg.js +2 -0
  128. package/frontend/dist/js/estree-DCoUd_wj.js +44 -0
  129. package/frontend/dist/js/{evaluationsApi-CJ9eIoSl.js → evaluationsApi-C5DC-61t.js} +1 -1
  130. package/frontend/dist/js/fr-DsjFEubC.js +2 -0
  131. package/frontend/dist/js/hi-YoyZTSWi.js +2 -0
  132. package/frontend/dist/js/html-DMnBrAcs.js +25 -0
  133. package/frontend/dist/js/id-D7ObCsR9.js +2 -0
  134. package/frontend/dist/js/is-DRfnKDHX.js +2 -0
  135. package/frontend/dist/js/it-Cb4C73dp.js +2 -0
  136. package/frontend/dist/js/ja-DsDfWEWn.js +2 -0
  137. package/frontend/dist/js/ko-J9IK9O8f.js +2 -0
  138. package/frontend/dist/js/markdown-CQ4enQcD.js +70 -0
  139. package/frontend/dist/js/{messageCodeStyles-C0H1Lad5.js → messageCodeStyles-DbG-nHEj.js} +2 -2
  140. package/frontend/dist/js/modelPresentation-4QU9r-Pl.js +1 -0
  141. package/frontend/dist/js/ms-DVZBQWu-.js +2 -0
  142. package/frontend/dist/js/nl-CotrV0Lb.js +2 -0
  143. package/frontend/dist/js/pl-DlsgTT5q.js +2 -0
  144. package/frontend/dist/js/postcss-CZstCllf.js +62 -0
  145. package/frontend/dist/js/pt-B8F-CAdb.js +2 -0
  146. package/frontend/dist/js/ru-B7H_WJLM.js +2 -0
  147. package/frontend/dist/js/standalone-CttwqOis.js +29 -0
  148. package/frontend/dist/js/{strandsApi-Cuqp8JZv.js → strandsApi-c_sLVTzl.js} +1 -1
  149. package/frontend/dist/js/sv-iYQWY_4T.js +2 -0
  150. package/frontend/dist/js/{teamEventStream-DHeJw2eu.js → teamEventStream-Bnna_p2v.js} +1 -1
  151. package/frontend/dist/js/th-BIlkYCg9.js +2 -0
  152. package/frontend/dist/js/tr-Cb0GxFvG.js +2 -0
  153. package/frontend/dist/js/typescript-h2bi7nrV.js +22 -0
  154. package/frontend/dist/js/{ui-BPtWIxXL.js → ui-Byzdw4-Y.js} +2 -2
  155. package/frontend/dist/js/{ui-vendor-Bac5e8jE.js → ui-vendor-C7v9zeJX.js} +1 -1
  156. package/frontend/dist/js/uk-BH7Ojiob.js +2 -0
  157. package/frontend/dist/js/{useChat-DjRbGblw.js → useChat-DGCDsOOs.js} +1 -1
  158. package/frontend/dist/js/useDictation-BGys860H.js +1 -0
  159. package/frontend/dist/js/{useQuery-DCqz3UJt.js → useQuery-Cs76KYuP.js} +1 -1
  160. package/frontend/dist/js/useTranslation-CKqEdZ8j.js +1 -0
  161. package/frontend/dist/js/utils-BXRzbHJC.js +1 -0
  162. package/frontend/dist/js/{utils-vendor-CsC5rH1J.js → utils-vendor-B4bGLP5p.js} +1 -1
  163. package/frontend/dist/js/vi-BKN3n9CC.js +2 -0
  164. package/frontend/dist/js/{workApi-Dkf48LjA.js → workApi-BTdJF6o5.js} +1 -1
  165. package/frontend/dist/js/workApi-DvXvzA8C.js +1 -0
  166. package/frontend/dist/js/yaml-CBt8G4BX.js +150 -0
  167. package/frontend/dist/js/zh-CbiVZpr_.js +2 -0
  168. package/package.json +4 -4
  169. package/plugins/baseten.json +17 -0
  170. package/plugins/gemini.json +9 -0
  171. package/plugins/llama-cpp.json +13 -0
  172. package/plugins/openai.json +13 -0
  173. package/plugins/openrouter.json +26 -0
  174. package/frontend/dist/assets/index-BM0txgxR.css +0 -2
  175. package/frontend/dist/assets/index-CYJjXpq5.js +0 -34
  176. package/frontend/dist/js/ChannelsPage-Bb7qgmXS.js +0 -1
  177. package/frontend/dist/js/ChatPage-BkMm-S6C.js +0 -14
  178. package/frontend/dist/js/PersonasPage-CkGtixCB.js +0 -13
  179. package/frontend/dist/js/SettingsModal-CKtlOet9.js +0 -19
  180. package/frontend/dist/js/UserManagementPanel-B7SuWPQg.js +0 -1
  181. package/frontend/dist/js/WorkPage-CVcyA61Q.js +0 -7
  182. package/frontend/dist/js/api-BSMl2Tok.js +0 -1
  183. package/frontend/dist/js/appVersion-DWwbhdm2.js +0 -1
  184. package/frontend/dist/js/ar-yKmq_nxn.js +0 -2
  185. package/frontend/dist/js/authStore-DQ-PhUey.js +0 -1
  186. package/frontend/dist/js/babel-BaOs8qJH.js +0 -16
  187. package/frontend/dist/js/bn-DAJjz2xA.js +0 -2
  188. package/frontend/dist/js/chatStore-Di86sm3T.js +0 -3
  189. package/frontend/dist/js/cs-BcctV9SN.js +0 -2
  190. package/frontend/dist/js/da-YtnjzG18.js +0 -2
  191. package/frontend/dist/js/de-BMQofu0d.js +0 -2
  192. package/frontend/dist/js/es-8oFYsnHw.js +0 -2
  193. package/frontend/dist/js/estree-Cw-tQG5d.js +0 -44
  194. package/frontend/dist/js/fr-CnGTnuJK.js +0 -2
  195. package/frontend/dist/js/hi-Ct5Inbp9.js +0 -2
  196. package/frontend/dist/js/html-Drt7kOJE.js +0 -25
  197. package/frontend/dist/js/id-CSqCL3hQ.js +0 -2
  198. package/frontend/dist/js/is-Bg68TmSt.js +0 -2
  199. package/frontend/dist/js/it-ZngXlxOR.js +0 -2
  200. package/frontend/dist/js/ja-DfQEoeFi.js +0 -2
  201. package/frontend/dist/js/ko-IifYVGBy.js +0 -2
  202. package/frontend/dist/js/markdown-C7cnJl_Q.js +0 -70
  203. package/frontend/dist/js/ms-C8jQLzkg.js +0 -2
  204. package/frontend/dist/js/nl-BFEa3rgC.js +0 -2
  205. package/frontend/dist/js/pl-BiPrQGU-.js +0 -2
  206. package/frontend/dist/js/postcss-DB_e0nkW.js +0 -62
  207. package/frontend/dist/js/pt-BziWZm5q.js +0 -2
  208. package/frontend/dist/js/ru-oTAEePGS.js +0 -2
  209. package/frontend/dist/js/standalone-YobQElH8.js +0 -29
  210. package/frontend/dist/js/sv-1_et6OWH.js +0 -2
  211. package/frontend/dist/js/th-DjyLzIKs.js +0 -2
  212. package/frontend/dist/js/thinking-DwlkTfPX.js +0 -1
  213. package/frontend/dist/js/tr-CCga9CbK.js +0 -2
  214. package/frontend/dist/js/typescript-2anSzo_N.js +0 -22
  215. package/frontend/dist/js/uk-h80KE68A.js +0 -2
  216. package/frontend/dist/js/useDictation-C31FhomS.js +0 -1
  217. package/frontend/dist/js/useTranslation-D-_KTORQ.js +0 -1
  218. package/frontend/dist/js/utils-DsCVr_wG.js +0 -1
  219. package/frontend/dist/js/vi-CQxzmgwi.js +0 -2
  220. package/frontend/dist/js/workApi-D4JbAtE2.js +0 -1
  221. package/frontend/dist/js/yaml-Breo7DWT.js +0 -154
  222. package/frontend/dist/js/zh-CS3_ndbP.js +0 -2
@@ -1,2 +1,2 @@
1
- (function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:T,createRef:E,forwardRef:ee,isValidElement:te,lazy:ne,memo:re,startTransition:D,unstable_useCacheRefresh:ie,use:ae,useActionState:oe,useCallback:se,useContext:O,useDebugValue:ce,useDeferredValue:le,useEffect:k,useEffectEvent:ue,useId:de,useImperativeHandle:fe,useInsertionEffect:pe,useLayoutEffect:me,useMemo:he,useOptimistic:ge,useReducer:_e,useRef:A,useState:j,useSyncExternalStore:ve,useTransition:ye,version:be}=o,xe=w({});function M(e){let t=A(null);return t.current===null&&(t.current=e()),t.current}var Se=typeof window<`u`,Ce=Se?me:k,we=w(null);function Te(e,t){e.indexOf(t)===-1&&e.push(t)}function Ee(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function De([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var N=(e,t,n)=>n>t?t:n<e?e:n;function Oe(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var ke=()=>{},Ae=()=>{},P={},je=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Me=e=>typeof e==`object`&&!!e,Ne=e=>/^0[^.\s]+$/u.test(e);function Pe(e){let t;return()=>(t===void 0&&(t=e()),t)}var F=e=>e,Fe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ie=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Le=class{constructor(){this.subscriptions=[]}add(e){return Te(this.subscriptions,e),()=>this.remove(e)}remove(e){Ee(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},I=e=>e*1e3,L=e=>e/1e3,Re=(e,t)=>t?1e3/t*e:0,ze=new Set;function Be(e){return ze.has(e)}function Ve(e,t,n){e||ze.has(t)||(console.warn(Oe(t,n)),ze.add(t))}var He=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ue=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function We(e,t,n,r){return e===t&&n===r?F:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ue(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ue(s+1e-7,e,n)-i-r)}return Ue(s,t,r)}}var Ge=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ke=e=>t=>1-e(1-t),qe=We(.33,1.53,.69,.99),Je=Ke(qe),Ye=Ge(Je),Xe=e=>e>=1?1:(e*=2)<1?.5*Je(e):.5*(2-2**(-10*(e-1))),Ze=e=>1-Math.sin(Math.acos(e)),Qe=Ke(Ze),$e=Ge(Ze),et=We(.42,0,1,1),tt=We(0,0,.58,1),nt=We(.42,0,.58,1);function rt(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return N(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var it=e=>Array.isArray(e)&&typeof e[0]!=`number`;function at(e,t){return it(e)?e[He(0,e.length,t)]:e}var ot=e=>Array.isArray(e)&&typeof e[0]==`number`,st={linear:F,easeIn:et,easeInOut:nt,easeOut:tt,circIn:Ze,circInOut:$e,circOut:Qe,backIn:Je,backInOut:Ye,backOut:qe,anticipate:Xe},ct=e=>typeof e==`string`,lt=e=>{if(ot(e)){let[t,n,r,i]=e;return We(t,n,r,i)}return ct(e)?st[e]:e},R={delta:0,timestamp:0,isProcessing:!1},ut;function dt(){ut=void 0}var z={now:()=>(ut===void 0&&z.set(R.isProcessing||P.useManualTiming?R.timestamp:performance.now()),ut),set:e=>{ut=e,queueMicrotask(dt)}},ft=e=>Math.round(e*1e5)/1e5,pt=e=>t=>typeof t==`string`&&t.startsWith(e),mt=pt(`--`),ht=pt(`var(--`),gt=e=>ht(e)?_t.test(e.split(`/*`)[0].trim()):!1,_t=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function vt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var yt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},bt={...yt,transform:e=>N(0,1,e)},xt={...yt,default:1},St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ct(e){return e==null}var wt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tt=(e,t)=>n=>!!(typeof n==`string`&&wt.test(n)&&n.startsWith(e)||t&&!Ct(n)&&Object.prototype.hasOwnProperty.call(n,t)),Et=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(St);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Dt=e=>N(0,255,e),Ot={...yt,transform:e=>Math.round(Dt(e))},kt={test:Tt(`rgb`,`red`),parse:Et(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ot.transform(e)+`, `+Ot.transform(t)+`, `+Ot.transform(n)+`, `+ft(bt.transform(r))+`)`},At=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function jt(e){let t=e.length>5?2:1,n=At(e,3,t);return{red:parseInt(At(e,0,t),16),green:parseInt(At(e,1,t),16),blue:parseInt(At(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var Mt={test:Tt(`#`),parse:jt,transform:kt.transform},Nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pt=Nt(`deg`),Ft=Nt(`%`),B=Nt(`px`),It=Nt(`vh`),Lt=Nt(`vw`),Rt={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},zt={test:Tt(`hsl`,`hue`),parse:Et(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ft.transform(ft(t))+`, `+Ft.transform(ft(n))+`, `+ft(bt.transform(r))+`)`},V={test:e=>kt.test(e)||Mt.test(e)||zt.test(e),parse:e=>kt.test(e)?kt.parse(e):zt.test(e)?zt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?kt.transform(e):zt.transform(e),getAnimatableNone:e=>{let t=V.parse(e);return t.alpha=0,V.transform(t)}},Bt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Vt=new RegExp(St.source),Ht=new RegExp(Bt.source,`i`);function Ut(e){return isNaN(e)&&typeof e==`string`&&(Vt.test(e)||Ht.test(e))}var Wt=`number`,Gt=`color`,Kt=`var`,qt=`var(`,Jt="${}",Yt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function Xt(e){let t=e.toString();return Vt.test(t)||Ht.test(t)}function Zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Yt,e=>(V.test(e)?(r.color.push(a),i.push(Gt),n.push(V.parse(e))):e.startsWith(qt)?(r.var.push(a),i.push(Kt),n.push(e)):(r.number.push(a),i.push(Wt),n.push(parseFloat(e))),++a,Jt)).split(Jt),indexes:r,types:i}}function Qt(e){return Zt(e).values}function $t({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Wt?ft(r[a]):e===Gt?V.transform(r[a]):r[a]}return i}}function en(e){return $t(Zt(e))}var tn=e=>typeof e==`number`?0:V.test(e)?V.getAnimatableNone(e):e,nn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:tn(e);function rn(e){let t=Zt(e);return $t(t)(t.values.map((e,n)=>nn(e,t.split[n])))}var H={test:Ut,parse:Qt,createTransformer:en,getAnimatableNone:rn};function an(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function on({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=an(s,r,e+1/3),a=an(s,r,e),o=an(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function sn(e,t){return n=>n>0?t:e}var U=(e,t,n)=>e+(t-e)*n,cn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ln=[Mt,kt,zt],un=e=>ln.find(t=>t.test(e));function dn(e){let t=un(e);if(!t)return!1;let n=t.parse(e);return t===zt&&(n=on(n)),n}var fn=(e,t)=>{let n=dn(e),r=dn(t);if(!n||!r)return sn(e,t);let i={...n};return e=>(i.red=cn(n.red,r.red,e),i.green=cn(n.green,r.green,e),i.blue=cn(n.blue,r.blue,e),i.alpha=U(n.alpha,r.alpha,e),kt.transform(i))},pn=new Set([`none`,`hidden`]);function mn(e,t){return pn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hn(e,t){return n=>U(e,t,n)}function gn(e){return typeof e==`number`?hn:typeof e==`string`?gt(e)?sn:V.test(e)?fn:bn:Array.isArray(e)?_n:typeof e==`object`?V.test(e)?fn:vn:sn}function _n(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>gn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function vn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=gn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function yn(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var bn=(e,t)=>{let n=Zt(e),r=Zt(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?pn.has(e)&&!r.values.length||pn.has(t)&&!n.values.length?mn(e,t):Fe(_n(yn(n,r),r.values),$t(r)):sn(e,t)},xn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Sn(e,t){let n=xn.exec(e);if(!n)return;let r=xn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ft(U(a,o,e))+i}function Cn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return U(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Sn(e,t);if(n)return n}return gn(e)(e,t)}var wn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Tn(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var En=40;function Dn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=wn.reduce((e,t)=>(e[t]=Tn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=P.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,En),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:wn.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<wn.length;t++)o[wn[t]].cancel(e)},state:n,steps:o}}var{schedule:W,cancel:G,steps:On}=Dn(typeof requestAnimationFrame<`u`?requestAnimationFrame:F,!0,R),kn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>W.update(t,e),stop:()=>G(t),now:()=>R.isProcessing?R.timestamp:z.now()}},An=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},jn=2e4;function Mn(e,t=50,n=jn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Nn(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Mn(o),jn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:L(s)}}var Pn=100,Fn=10,In=1,Ln=800,Rn=.3,zn=.3,Bn=.01,Vn=2,Hn=.005,Un=.5,Wn=.01,Gn=10,Kn=.05,qn=e=>e<0?1/Math.max(1+e,Kn):Math.max(1-e,Kn);function Jn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Zn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Yn(e,t){return e*Math.sqrt(1-t*t)}var Xn=12;function Zn(e,t,n){let r=n;for(let n=1;n<Xn;n++)r-=e(r)/t(r);return r}var Qn=.001;function $n({duration:e=Ln,bounce:t=Rn}){let n,r,i=qn(t);e=N(Wn,Gn,L(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Yn(t,i),o=Math.exp(-r);return Qn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Yn(t*t,i);return(-n(t)+Qn>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Zn(n,r,a),s=o*Jn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:I(e)}}var er=(e,t)=>(t?e>=0:e>0)&&e<1/0;function tr(e,t){if(er(e,t))return e}function nr(e){let t=tr(e.stiffness),n=tr(e.damping,!0),r=tr(e.mass),i={...e,stiffness:t??Pn,damping:n??Fn,mass:r??In,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=qn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Jn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,$n(i)),i.isResolvedFromDuration=!0;er(i.stiffness)&&er(i.damping,!0)||(i.stiffness=Pn,i.damping=Fn)}return i}function rr(e=zn,t=Rn){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=nr({...n}),f=e=>d?0:-L(e),p=s/(2*Math.sqrt(o*c)),m=L(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Bn:Vn),g.restDelta=n.restDelta||(e?Hn:Un)};_();let v,y,b;if(p<1){let e=Yn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>I(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=I(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Mn(S),jn),t=An(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var ir=Object.assign(rr,{applyToOptions:e=>{let t=Nn(e,100,rr);return e.ease=t.ease,e.duration=I(t.duration),e.type=`keyframes`,e}});function ar({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=ir({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function or(e,t,n){let r=[],i=P.mix||Cn,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=Fe(Array.isArray(t)?t[o]||F:t,a)),r.push(a)}return r}function sr(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=or(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ie(e[r],e[r+1],n);return s[r](i)};return n?t=>l(N(e[0],e[a-1],t)):l}function cr(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ie(0,t,r);e.push(U(n,1,i))}}function lr(e){let t=[0];return cr(t,e.length-1),t}function ur(e,t){return e.map(e=>e*t)}function dr(e,t){return e.map(()=>t||nt).splice(0,e.length-1)}function fr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=it(r)?r.map(lt):lt(r)||nt,s={done:!1,value:t[0]};if(!a&&t.length===2&&!Array.isArray(o)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,i=n===r?void 0:(P.mix||Cn)(n,r);return{calculatedDuration:e,next:t=>(s.value=i?i(o(e>0?N(0,1,t/e):1)):r,s.done=t>=e,s)}}let c=sr(ur(n&&n.length===t.length?n:lr(t),e),t,{ease:Array.isArray(o)?o:dr(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=c(t),s.done=t>=e,s)}}var pr=5;function mr(e,t,n){let r=Math.max(t-pr,0);return Re(n-e(r),t-r)}function hr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):mr(t=>e.next(t).value,t,e.next(t).value)}var gr=e=>e!==null;function _r(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(gr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var vr={decay:ar,inertia:ar,tween:fr,keyframes:fr,spring:ir};function yr(e){typeof e.type==`string`&&(e.type=vr[e.type])}var br=40,xr=(e,t)=>t-e>br&&!P.useManualTiming?t:e;function Sr(e,t){return{kind:e,animation:t,timestamp:z.now(),frameTimestamp:R.timestamp,frameIsProcessing:R.isProcessing}}function Cr(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Sr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function wr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Sr(`layout-animation-start`,e),node:t})}catch{}}var Tr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Er=e=>e/100,Dr=e=>Math.round(e*1e4)/1e4,Or=class extends Tr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==z.now()&&this.tick(z.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Cr(this,this.options)}initAnimation(){let{options:e}=this;yr(e);let{type:t=fr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fr;this.mixKeyframes=void 0,s!==fr&&typeof o[0]!=`number`&&(this.mixKeyframes=Fe(Er,e.mixer?.(o[0],o[1])||Cn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Mn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=xr(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==ar&&(f.value=_r(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Dr((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==ar?_r(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=N(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return L(this.calculatedDuration)}get iterationDuration(){return this.duration+L(this.options.delay??0)}get time(){return L(this.currentTime)}set time(e){e=I(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return hr(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(z.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=L(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=kn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(z.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function kr(e){return new Or(e)}var Ar=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function jr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(St)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ar.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Mr=/\b([a-z-]*)\(.*?\)/gu,Nr={...H,getAnimatableNone:e=>{let t=e.match(Mr);return t?t.map(jr).join(` `):e}},Pr={...H,getAnimatableNone:e=>{let t=H.parse(e);return H.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Fr={...yt,transform:Math.round},Ir={rotate:Pt,pathRotation:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:xt,scaleX:xt,scaleY:xt,scaleZ:xt,skew:Pt,skewX:Pt,skewY:Pt,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:bt,originX:Rt,originY:Rt,originZ:B},Lr={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,...Ir,zIndex:Fr,fillOpacity:bt,strokeOpacity:bt,numOctaves:Fr},Rr={...Lr,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:Nr,WebkitFilter:Nr,mask:Pr,WebkitMask:Pr},zr=e=>Rr[e],Br=new Set([Nr,Pr]);function Vr(e,t){let n=zr(e);return Br.has(n)||(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Hr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ur=e=>e*180/Math.PI,Wr=e=>Kr(Ur(Math.atan2(e[1],e[0]))),Gr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wr,rotateZ:Wr,skewX:e=>Ur(Math.atan(e[1])),skewY:e=>Ur(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kr=e=>(e%=360,e<0&&(e+=360),e),qr=Wr,Jr=e=>Math.hypot(e[0],e[1]),Yr=e=>Math.hypot(e[4],e[5]),Xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jr,scaleY:Yr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Jr(e)+Yr(e))/2,rotateX:e=>Kr(Ur(Math.atan2(e[6],e[5]))),rotateY:e=>Kr(Ur(Math.atan2(-e[2],e[0]))),rotateZ:qr,rotate:qr,skewX:e=>Ur(Math.atan(e[4])),skewY:e=>Ur(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zr(e){return+!!e.includes(`scale`)}function Qr(e,t){if(!e||e===`none`)return Zr(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return Zr(t);let r=(n[1]?Xr:Gr)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var $r=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qr(n,t)},K=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],q=new Set([...K,`pathRotation`]),ei=e=>e===yt||e===B,ti=new Set([`x`,`y`,`z`]),ni=K.filter(e=>!ti.has(e));function ri(e){let t=[];return ni.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var ii=new Set([`bottom`,`right`]);function ai(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var oi=({transform:e})=>Qr(e,`x`),si=({transform:e})=>Qr(e,`y`),ci={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>ai(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>ai(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:oi,y:si,translateX:oi,translateY:si},li=new Set,ui=!1,di=!1,fi=!1;function pi(){if(di){let e=[],t=new Set,n=new Set;li.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ii.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ri(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}di=!1,ui=!1,li.forEach(e=>e.complete(fi)),li.clear()}function mi(){li.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(di=!0)})}function hi(){fi=!0,mi(),pi(),fi=!1}function gi(e,t,n){if(typeof e==`string`){if(je(e)||Ne(e))return parseFloat(e);if(!H.test(e)&&H.test(n))return Vr(t,n)}return e??void 0}var _i=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(li.add(this),ui||(ui=!0,W.read(mi),W.resolveKeyframes(pi))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=gi(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Hr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),li.delete(this)}cancel(){this.state===`scheduled`&&(li.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},vi=e=>e.startsWith(`--`);function yi(e,t,n){vi(t)?e.style.setProperty(t,n):e.style[t]=n}var bi={};function xi(e,t){let n=Pe(e);return()=>bi[t]??n()}var Si=xi(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ci=xi(()=>window.ViewTimeline!==void 0,`viewTimeline`),wi=xi(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ti=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ei={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function Di(e,t){if(e)return typeof e==`function`?wi()?An(e,t):`ease-out`:ot(e)?Ti(e):Array.isArray(e)?e.map(e=>Di(e,t)||Ei.easeOut):Ei[e]}function Oi(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Di(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ki(e){return typeof e==`function`&&`applyToOptions`in e}function Ai({type:e,...t}){return ki(e)&&wi()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ji=class extends Tr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e;let c=Ai(e);this.animation=Oi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!i){let e=_r(r,this.options,o,this.speed);this.updateMotionValue?.(e),yi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Cr(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return L(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=I(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=this.onFinish=null,e&&Si()?(this.animation.timeline=e,t?.(this.animation),F):n(this)}},Mi={anticipate:Xe,backInOut:Ye,circInOut:$e};function Ni(e){return e in Mi}function Pi(e){typeof e.ease==`string`&&Ni(e.ease)&&(e.ease=Mi[e.ease])}var Fi=class extends ji{constructor(e){Pi(e),yr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(z.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Or({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?N(0,10,a):0,s=this.sample(a);n&&r&&yi(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Ii=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function Li(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ri(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ii(i,t),s=Ii(a,t);return!o||!s?!1:Li(e)||(n===`spring`||ki(n))&&r}function zi(e){e.duration=0,e.type=`keyframes`}var Bi=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Vi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Hi(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Vi.test(e[t]))return!0;return!1}var Ui=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),Wi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Gi=()=>!P.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function Ki(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Bi.has(n)||Wi.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Gi()&&(Bi.has(n)||Wi.has(n)&&Hi(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!Ui(e)}var qi=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Ji={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Yi=K.length,Xi={},Zi=(e,t,n=qi(t,Ir[e]))=>(Xi[e]||(Xi[e]=(Ji[e]||e)+`(`))+n+`)`,Qi=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function $i(e,t,n){let r=``;for(let i=0;i<Yi;i++){let a=K[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=qi(o,Lr[a]));Qi(a,o)||(r+=Zi(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=Zi(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var ea=new WeakMap,ta=200,na=.001,ra=.1,ia=.001,aa=100,oa=e=>/^(linear|ease(In|Out|InOut))$/.test(e),sa=(e,t)=>Math.abs(e-t)<=na,ca=(e,t)=>e-t,la=(e,t,n)=>lr(Array(n+1)).map(n=>U(e,t,n)),ua=e=>e.motionValue.owner,da=e=>ea.get(e),fa=({state:e})=>e===`idle`||e===`finished`,pa=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ma=({name:e,motionValue:t})=>e&&K.includes(e)&&t?.owner?.current instanceof HTMLElement&&Gi()&&wi();function ha(e){let t=ua(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(pa(t,`transform`)||`none`)===`none`&&!pa(t,`pathRotation`)&&!t.projection?.isProjecting()&&!Ui(e)}var ga=class extends Or{constructor(e){let t=ua(e).current,{driver:n=kn}=e,r,i=ha(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=da(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=da(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return da(ua(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(z.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ot(n)?Ti(n):oa(n)&&Ei[n];if(o&&!i&&!r&&e.length===2&&t===fr&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||fr)===fr?u||lr(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=z.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||_a(ua(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(z.now())}get time(){return this.isAccelerated()?L(N(0,this.totalDuration,this.at(z.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function _a(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?K:a){let a=r.get(s),c=t===void 0?pa(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&Qi(r,i)||(n+=Zi(r,i)+` `)}return(t?n.trim():n)||`none`},g=(e,t)=>h(m(e,t)),_=(e=m())=>{t.style.transform=h(e,!0)},v=e=>{e.onfinish=e.oncancel=null,e.cancel()},y=(e=!0)=>{e&&_(),s.forEach(({animation:e})=>v(e)),s=[]},b=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),x=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=z.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(v(e),s=s.filter(e=>e!==r)),D.schedule(!1)}),e.oncancel=()=>s.includes(r)&&D.demote(),s.push(r)},S=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},C=(e,t,n,r)=>{let i=Math.min(ta,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=la(t,n,i).concat(r).sort(ca),o=e=>Ie(t,n,e),s,c;for(let n of e){let e=n.numberAt(t),r=a.map(t=>n.numberAt(t)-e),i=r[r.length-1],o=r.some(e=>Math.abs(e)*na>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(o&&!s)s=l,c=t=>(n.numberAt(t)-e)/o;else if(l.some((e,t)=>!sa(e,o&&s[t])))return}if(!s||s.every((e,t)=>sa(e,o(a[t]))))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Dr(t)+` `+Dr(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&S(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},w=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?ia:ra))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...S(e=>r.numberAt(e),t,n));i.push(n)}},s=la(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(ca))e>c&&o(c,e,0),c=e;return i.sort(ca)},T=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},E=(e,t,n,r,i={fill:`both`},a)=>{let o=e.flatMap(e=>e.boundaries(t,n)),s=r||C(e,t,n,o),c=s?[t,n]:w(e,t,n,o),l=c.map(e=>g(e,a)),u={transform:l};return s||(u.offset=c.map(e=>Ie(t,n,e))),l.every(e=>e===l[0])&&(_(m(t,a)),u=null),b(u,{...i,duration:n-t,easing:s||`linear`})},ee=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),a)e.sync();else{if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=K.filter(t=>{if(r.has(t))return!0;let n=i[t]=pa(e,t);return n!==void 0&&!Qi(t,n)}),y(!1);let m=!l&&T(d);try{if(m&&m[1]>t){let[e,n,r]=m;x(E(d,e,n,r),e-t,n-e)}else c>t&&(x(E(d,t,c),0,c-t),p.forEach(e=>e<c-1&&x(b(null,{duration:e-t}),0,e-t)));if(l){let e=u+Math.floor((c-u)/l)*l;x(E(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||y(),!0},te=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r&&n.updatePlaybackRate&&n.playState===`running`&&Math.abs(Number(n.currentTime)-o)<20?n.playbackRate!==r&&n.updatePlaybackRate(r):r?(n.playbackRate=r,n.startTime=e-o/r):(n.startTime=null,n.currentTime=o)}return!0},ne=()=>!n.size&&(u=!0,da(t)===D&&ea.delete(t),D.isJS||y(),!0),re=()=>{let t=z.now();if(D.isJS||(D.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=pa(e,n.name),o.has(n)||(c=!0))}),D.isFinishing=!1),l=!1,u||(n.forEach(e=>fa(e)&&n.delete(e)),ne()))return;for(let e of n)if(!e.canAccelerate)return D.demote(!0);D.isJS&&(D.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!te(t)){if(a){if(t-f<aa)return D.demote();f=t}if(!ee(t))return D.demote()}},D={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,R.isProcessing?W.render(re,!1,!0):queueMicrotask(re)))},release(e){fa(e)&&n.delete(e),ne()||D.schedule(!0)},check(){if(!D.isJS){for(let t in i)if(pa(e,t)!==i[t]&&!p(t))return D.schedule(!0,!0)}},demote(e){if(!(D.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),D.isJS=!0,o=new Map,y(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return ea.set(t,D),D}var va=class extends Tr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=z.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||_i;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=z.now();let u=Ri(e,i,a,o);u||((P.instantAnimations||!s)&&l?.(_r(e,n,t)),e[0]=e[e.length-1],zi(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Ki(n),p=!f&&ma(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=xr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Fi(n)}catch{m=new Or(n)}}else m=p?new ga(n):new Or(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),hi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}},ya=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ba(this.animations,`duration`)}get iterationDuration(){return ba(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ba(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var xa=class extends ya{then(e,t){return this.finished.finally(e).then(()=>{})}},Sa=class extends ji{constructor(e){super(),this.animation=e,e.onfinish=this.onFinish=()=>{e.onfinish=null,this.finishedTime=this.time,this.notifyFinished()},Cr(this,{})}},Ca=new WeakMap,wa=(e,t=``)=>`${e}:${t}`;function Ta(e){let t=Ca.get(e);return t||(t=new Map,Ca.set(e,t)),t}function Ea(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Da=30,Oa=e=>!isNaN(parseFloat(e)),ka={current:void 0},Aa=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=z.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.dirty(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Oa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Le)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Le,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){W.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){t&&(this.updatedAt=z.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||=new Set).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){ka.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Da)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Da);return Re(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&(this.animation=void 0),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function J(e,t){return new Aa(e,t)}function ja(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ma(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ja(n,e)}var Na={type:`spring`,stiffness:500,damping:25,restSpeed:10},Pa=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fa={type:`keyframes`,duration:.8},Ia={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},La=(e,{keyframes:t})=>t.length>2?Fa:q.has(e)?e.startsWith(`scale`)?Pa(t[1]):Na:Ia,Ra=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function za(e){for(let t in e)if(!Ra.has(t))return!0;return!1}var Ba=(e,t,n,r={},i,a)=>o=>{let s=Ma(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=I(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};za(s)||Object.assign(u,La(e,u)),u.duration&&=I(u.duration),u.repeatDelay&&=I(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(zi(u),u.delay===0&&(d=!0)),(P.instantAnimations||P.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,zi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=_r(u.keyframes,s);if(e!==void 0){W.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Or(u):new va(u)},Va=20;function Ha(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function Ua(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function Wa(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function Ga({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=Wa(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=Wa(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?Ua(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?Ua(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?He(-180,180,f-d):0;return e=>{let t={x:Ha(e,r.x,u.x,o.x),y:Ha(e,r.y,u.y,o.y)};return i&&(t.rotate=He(-180,180,Ua(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Ka(e={}){let t=Ga(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<Va))return t({x:n,y:r},{x:0,y:0})},animateValues(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e(`x`),s=e(`y`),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e(`pathRotation`),g={delay:i,...Ma(r||{},`x`)};delete g.path;let _=J(0);_.start(Ba(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var qa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ja(e){let t=qa.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ya(e,t,n=1){let[r,i]=Ja(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return je(e)?parseFloat(e):e}return gt(i)?Ya(i,t,n+1):i}function Xa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Za(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Xa(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Qa(e,t,n){return Za(e.getProps(),t,n,e)}var $a=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,eo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...K]),to=e=>Array.isArray(e);function no(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,J(n))}function ro(e){return to(e)?e[e.length-1]||0:e}function io(e,t){let{transitionEnd:n={},transition:r={},...i}=Qa(e,t)||{};i={...i,...n};for(let t in i)no(e,t,ro(i[t]))}var Y=e=>!!(e&&e.getVelocity);function ao(e){return!!(Y(e)&&e.add)}function oo(e,t){let n=e.getValue(`willChange`);if(ao(n))return n.add(t);if(!n&&P.WillChange){let n=new P.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var so=`framerAppearId`,co=`data-framer-appear-id`;function lo(e){return e.props[co]}var uo=typeof window<`u`;function fo({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function po(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ja(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&fo(f,t))continue;let o={delay:n,...Ma(f?.out[t]||a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){W.update(()=>r.set(i));continue}let p=!1;if(uo&&window.MotionHandoffAnimation){let n=lo(e);if(n){let e=window.MotionHandoffAnimation(n,t,W);e!==null&&(o.startTime=e,p=!0)}}oo(e,t);let m=l??e.shouldReduceMotion;r.start(Ba(t,r,i,m&&eo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>W.update(()=>{o&&io(e,o)});d.length?Promise.all(d).then(t):t()}return d}function mo(e,t,n={}){let r=Qa(e,t,$a(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?po(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(mo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Ea(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function ho(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>mo(e,t,n))):typeof t==`string`?mo(e,t,n):Promise.all(po(e,Qa(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var go={test:e=>e===`auto`,parse:e=>e},_o=e=>t=>t.test(e),vo=[yt,B,Ft,Pt,Lt,It,go],yo=e=>vo.find(_o(e));function bo(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ne(e)}var xo=new Set([`auto`,`none`,`0`]);function So(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!xo.has(t)&&Xt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Vr(n,i))}var Co=class extends _i{constructor(){super(...arguments),this.isAsync=!0}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(vt(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),gt(r))){let i=Ya(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!eo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=yo(r),o=yo(i);if(vt(r)!==vt(i)&&ci[n])this.needsMeasurement=!0;else if(a!==o){if(ei(a)&&ei(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ci[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||bo(e[t]))&&n.push(t);n.length&&So(e,n,t)}measure(){let{element:e,name:t}=this;return ci[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},wo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],To=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...wo,`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 Eo(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&To.has(t)&&(e[n]=e[n]+`px`)}function Do(e){return!!(typeof e==`function`&&wi()||!e||typeof e==`string`&&(e in Ei||wi())||ot(e)||Array.isArray(e)&&e.every(Do))}var Oo=Pe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),ko=[];function Ao(e){jo(e),ko.unshift(e)}function jo(e){Ee(ko,e)}function Mo(e){return ko.find(t=>t.test(e))}function No(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?W.update(()=>l.set(c)):(l.start(Ba(o,l,c,s&&eo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>W.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Po(e,t,n,r,i){return No(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Fo(i)??e.read(t,r,i)}a=J(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Fo(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Io(e){return Me(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Lo(e){return Me(e)&&`ownerSVGElement`in e}var X={};function Ro(e){return X.current?.add(e),e}function zo(e){let t=X.current;if(!t)return;let n=!1,r,i=t.add(()=>{n=!0,r?.()});e.then(e=>{e&&(r=()=>e.stop(),n?r():e.finished.then(i))},i)}var Bo=e=>X.current?X.current.bind(e):e;function Z(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:X.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Vo(e){let t=(t,n)=>{let r=Z(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var Ho=class{constructor(e=W.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function Uo(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new Ho(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function Wo(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(Qi(i,a)||(t+=(t&&` `)+Zi(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+Zi(`rotate`,i)),t||`none`}var Go=new Set([`originX`,`originY`,`originZ`]),Ko=(e,t)=>qi(e.get(t)?.get(),Lr[t]),qo=(e,t,n,r)=>{let i,a;if(q.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>K.indexOf(e)-K.indexOf(t)))}t.get(`transform`)||(!Io(e)&&!t.get(`transformBox`)&&qo(e,t,`transformBox`,new Aa(`fill-box`)),t.set(`transform`,new Aa(`none`),()=>{ea.get(e)?.check(),e.style.transform=Wo(t)})),a=t.get(`transform`)}else Go.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Aa(``),()=>{let n=Ko(t,`originX`)??`50%`,r=Ko(t,`originY`)??`50%`,i=Ko(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=vi(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=qi(r.getCurrent(),Lr[n])};return t.set(n,r,i,a)},Jo=e=>Io(e)||Lo(e),Yo=(e,t)=>{if(q.has(t))return $r(e,t);let n=getComputedStyle(e),r=vi(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Xo=Uo(qo,{test:Jo,read:Yo}),Zo=Vo(Xo);function Qo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function $o(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(q.has(e))o=!0;else if(mt(e))i[e]=n;else{let t=qi(n,Lr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=$i(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var es={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ts={offset:`strokeDashoffset`,array:`strokeDasharray`};function ns(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?es:ts;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var rs=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function is(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if($o(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of rs)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ns(d,i,a,o,!1)}function as(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var os=(e,t,n,r,i=n)=>{let a=as(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Qo(i));let o=Lr[n]||Lr[i],s=a?()=>{e[i]=qi(r.get(),Lr[n])}:()=>{let t=qi(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},ss=Vo(Uo(os));function cs(e,t,n,r){return W.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Aa(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var ls=(e,t,n,r)=>n.startsWith(`path`)&&!q.has(n)?cs(e,t,n,r):n.startsWith(`attr`)?os(e,t,n,r,ps(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(q.has(n)||Go.has(n)||vi(n)||n in e.style?qo:os)(e,t,n,r),us=(e,t)=>q.has(t)?Lr[t]?.default||0:vi(t)||rs.includes(t)?Yo(e,t)||e.getAttribute(Qo(t))||0:(t=ps(t),e.getAttribute(Qo(t))??e.getAttribute(t)??void 0),ds=Uo(ls,{test:Lo,read:us}),fs=Vo(ds);function ps(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function ms({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gs(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _s(e){return e===void 0||e===1}function vs({scale:e,scaleX:t,scaleY:n}){return!_s(e)||!_s(t)||!_s(n)}var ys=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function bs(e){return vs(e)||Ss(e)||xs(e)}function xs(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ss(e){return Cs(e.x)||Cs(e.y)}function Cs(e){return e&&e!==`0%`}function ws(e,t,n){return n+t*(e-n)}function Ts(e,t,n,r,i){return i!==void 0&&(e=ws(e,i,r)),ws(e,n,r)+t}function Es(e,t=0,n=1,r,i){e.min=Ts(e.min,t,n,r,i),e.max=Ts(e.max,t,n,r,i)}function Ds(e,{x:t,y:n}){Es(e.x,t.translate,t.scale,t.originPoint),Es(e.y,n.translate,n.scale,n.originPoint)}var Os=.999999999999,ks=1.0000000000001;function As(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++)a=n[s],o=a.projectionDelta,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(js(e.x,-a.scroll.offset.x),js(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ds(e,o)),r&&(r.path?.[s]||r)!==a&&bs(a.latestValues)&&Ps(e,a.latestValues,a.layout?.layoutBox));t.x<ks&&t.x>Os&&(t.x=1),t.y<ks&&t.y>Os&&(t.y=1)}function js(e,t){e.min+=t,e.max+=t}function Ms(e,t,n,r,i=.5){Es(e,t,n,U(e.min,e.max,i),r)}function Ns(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ps(e,t,n){let r=n??e;Ms(e.x,Ns(t.x,r.x),t.scaleX,t.scale,t.originX),Ms(e.y,Ns(t.y,r.y),t.scaleY,t.scale,t.originY)}function Fs(e,t){return ms(gs(e.getBoundingClientRect(),t))}function Is(e,t,n){let r=Fs(e,n),{scroll:i}=t;return i&&(js(r.x,i.offset.x),js(r.y,i.offset.y)),r}var Ls=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Rs={},zs=e=>Lo(e)?ds:Xo,Bs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Co}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Fs(this.current)}getProps(){return Rs}};function Vs(e,t,n,r){if(X.current?.track(e),r)return No(e=>r.getValue(e,null),t,n,r);let i=zs(e);return Po(i,e,t,n,new Bs(i,e))}var Hs=e=>zs(e).state(e)?.release();function Us(e,t){let n=zs(e).state(e);if(!n)return;let r=ea.get(e);r&&(r.demote(),ea.delete(e));let{transformKeys:i}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&i?.length||(e.owner=t,t.addValue(n,e))})}var Ws=Uo((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Me(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Gs,cancel:Ks}=Dn(queueMicrotask,!1),qs=(e=z.now())=>{if(R.isProcessing)return;let t=e-R.timestamp;R.delta=P.useManualTiming?t:Math.max(Math.min(t,40),1),z.set(R.timestamp=e),R.isProcessing=!0;for(let e in On)On[e].process(R);R.isProcessing=!1};function Js(e,t,n){let r=Y(e)?e:J(e);return r.start(Ba(``,r,t,n)),r.animation}var Ys={};function Xs(e){for(let t in e)Ys[t]=e[t],mt(t)&&(Ys[t].isCSSVariable=!0)}var Zs={value:null,addProjectionMetrics:null,countProjection:void 0};function Qs(e,t){let n=z.now();e=Bo(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(G(r),e(a-t))};return W.setup(r,!0),Ro(()=>G(r))}function $s(e,t){return Qs(e,I(t))}function ec(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function tc(e){return Lo(e)&&e.tagName===`svg`}function nc(e){return Y(e)?e.get():e}var rc=e=>typeof e==`number`?e:parseFloat(e),ic=wo.length,ac=e=>typeof e==`number`||B.test(e);function oc(e,t,n,r,i,a){i?(e.opacity=U(0,n.opacity??1,cc(r)),e.opacityExit=U(t.opacity??1,0,lc(r))):a&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<ic;i++){let a=wo[i],o=sc(t,a),s=sc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||ac(o)===ac(s)?(e[a]=Math.max(U(rc(o),rc(s),r),0),(Ft.test(s)||Ft.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<ys.length;i++){let a=ys[i];(t[a]||n[a])&&(e[a]=U(t[a]||0,n[a]||0,r))}}function sc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var cc=uc(0,.5,Qe),lc=uc(.5,.95,F);function uc(e,t,n){return r=>r<e?0:r>t?1:n(Ie(e,t,r))}function dc(e,t){e.min=t.min,e.max=t.max}function fc(e,t){dc(e.x,t.x),dc(e.y,t.y)}function pc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mc=.9999,hc=1.0001,gc=-.01,_c=.01;function Q(e){return e.max-e.min}function vc(e,t,n){return Math.abs(e-t)<=n}function yc(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mc&&e.scale<=hc||isNaN(e.scale))&&(e.scale=1),(e.translate>=gc&&e.translate<=_c||isNaN(e.translate))&&(e.translate=0)}function bc(e,t,n,r){yc(e.x,t.x,n.x,r?.originX),yc(e.y,t.y,n.y,r?.originY)}function xc(e,t,n,r=0){e.min=(r?U(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Sc(e,t,n,r){xc(e.x,t.x,n.x,r?.x),xc(e.y,t.y,n.y,r?.y)}function Cc(e,t,n,r=0){let i=r?U(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function wc(e,t,n,r){Cc(e.x,t.x,n.x,r?.x),Cc(e.y,t.y,n.y,r?.y)}function Tc(e,t,n,r,i){return e-=t,e=ws(e,1/n,r),i!==void 0&&(e=ws(e,1/i,r)),e}function Ec(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ft.test(t)&&(t=parseFloat(t),t=U(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=U(a.min,a.max,r);e===a&&(s-=t),e.min=Tc(e.min,t,n,s,i),e.max=Tc(e.max,t,n,s,i)}function Dc(e,t,[n,r,i],a,o){Ec(e,t[n],t[r],t[i],t.scale,a,o)}var Oc=[`x`,`scaleX`,`originX`],kc=[`y`,`scaleY`,`originY`];function Ac(e,t,n,r){Dc(e.x,t,Oc,n?.x,r?.x),Dc(e.y,t,kc,n?.y,r?.y)}var jc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mc=jc(`applewebkit/`)&&!jc(`chrome/`)?Math.round:F;function Nc(e){e.min=Mc(e.min),e.max=Mc(e.max)}function Pc(e){Nc(e.x),Nc(e.y)}var Fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ic=()=>({x:Fc(),y:Fc()}),Lc=()=>({min:0,max:0}),$=()=>({x:Lc(),y:Lc()});function Rc(e){return e.translate===0&&e.scale===1}function zc(e){return Rc(e.x)&&Rc(e.y)}function Bc(e,t){return e.min===t.min&&e.max===t.max}function Vc(e,t){return Bc(e.x,t.x)&&Bc(e.y,t.y)}function Hc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uc(e,t){return Hc(e.x,t.x)&&Hc(e.y,t.y)}function Wc(e){return Q(e.x)/Q(e.y)}function Gc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Kc=class{constructor(){this.members=[]}add(e){Te(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Ee(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function qc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Jc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(B.test(e))e=parseFloat(e);else return e}return`${qc(e,t.target.x)}% ${qc(e,t.target.y)}%`}},Yc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=U(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Xc={borderRadius:Object.assign({},Jc,{applyTo:wo.slice()}),borderTopLeftRadius:Jc,borderTopRightRadius:Jc,borderBottomLeftRadius:Jc,borderBottomRightRadius:Jc,boxShadow:Yc};function Zc(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e}=n;e&&(r=`perspective(${e}px) ${r}`);for(let e=0;e<ys.length;e++){let t=ys[e],i=n[t];i&&(r+=`${t}(${i}deg) `),!e&&n.pathRotation&&(r+=`rotate(${n.pathRotation}deg) `)}}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function Qc(e){return[e(`x`),e(`y`)]}var $c=(e,t)=>e.depth-t.depth,el=class{constructor(){this.children=[],this.isDirty=!1}add(e){Te(this.children,e),this.isDirty=!0}remove(e){Ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($c),this.isDirty=!1,this.children.forEach(e)}},tl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nl=[`z`,`skew`,`skewZ`],rl=1e3,il=0;function al(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var ol=e=>e.instance&&ea.get(e.instance)?.demote()&&e.resetSkewAndRotation();function sl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=lo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,W,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&sl(r)}function cl(e){if(e)return e.options.allowProjection===!1?cl(e.parent):e.projection}function ll({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(Ys,{...Xc,...Ys}),class{static create(e,t,n){let{layoutId:r,layout:i,drag:a,dragConstraints:o,layoutScroll:s,layoutRoot:c,layoutAnchor:l,layoutCrossfade:u}=t,d=e.projection=new this(e.latestValues,t[`data-framer-portal-id`]?void 0:cl(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&ec(o),visualElement:e,animationType:typeof i==`string`?i:`both`,initialPromotionConfig:n,crossfade:u,layoutScroll:s,layoutRoot:c,layoutAnchor:l});let f=d.getStack()?.lead;f&&!d.root.isUpdateBlocked()&&(f.willUpdate(),f.scheduleCheckAfterUnmount())}constructor(e={},n=t?.()){this.id=il++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fl),this.nodes.forEach(Cl),this.nodes.forEach(wl),this.nodes.forEach(pl),Zs.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new el)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Le),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){this.eventHandlers.get(e)?.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Lo(t)&&!tc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;W.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=Qs(i,250),tl.hasAnimatedSinceResize&&(tl.hasAnimatedSinceResize=!1,this.nodes.forEach(Sl)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Al,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Uc(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ma(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Sl(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,G(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(Tl),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;ol(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,ol(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(gl),this.nodes.forEach(hl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_l);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yl),this.nodes.forEach(bl),this.nodes.forEach(xl),this.nodes.forEach(ul),this.nodes.forEach(dl)):this.nodes.forEach(_l),this.clearAllSnapshots();let e=z.now();R.delta=N(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,On.update.process(R),On.preRender.process(R),On.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ml),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t?.notify(`LayoutMeasure`,this.layout.layoutBox,e?.layoutBox)}updateScroll(e=`measure`){let{scroll:t,instance:i}=this,{animationId:a}=this.root;if(this.options.layoutScroll&&i&&!(t&&t.animationId===a&&t.phase===e)){let o=r(i);this.scroll={animationId:a,phase:e,isRoot:o,offset:n(i),wasRoot:t?t.isRoot:o}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&ol(this);let t=this.projectionDelta&&!zc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||bs(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Pc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Nl))){let{scroll:e}=this.root;e&&(js(t.x,e.offset.x),js(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(fc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&fc(t,e),js(t.x,i.offset.x),js(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r,i=0){let a=n||$();fc(a,e);for(let e=i;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(js(a.x,-n.scroll.offset.x),js(a.y,-n.scroll.offset.y)),bs(n.latestValues)&&Ps(a,n.latestValues,n.layout?.layoutBox)}return!r&&bs(this.latestValues)&&Ps(a,this.latestValues,this.layout?.layoutBox),a}removeTransform(e){let t=$();fc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!bs(n.latestValues))continue;let r;n.instance&&(vs(n.latestValues)&&n.updateSnapshot(),r=$(),fc(r,n.measurePageBox())),Ac(t,n.latestValues,n.snapshot?.layoutBox,r)}return bs(this.latestValues)&&Ac(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=R.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):fc(this.target,this.layout.layoutBox),Ds(this.target,this.targetDelta)):fc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&(!a.resumingFrom==!this.resumingFrom||a.options.layoutRoot&&!a.resumingFrom)&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Zs.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||vs(this.parent.latestValues)||Ss(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),wc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),fc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===R.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;fc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;As(this.layoutCorrected,this.treeScale,this.path,t&&(e.relativeTarget&&!e.relativeParent.resumingFrom?e.relativeParent:!0)),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pc(this.prevProjectionDelta.x,this.projectionDelta.x),pc(this.prevProjectionDelta.y,this.projectionDelta.y)),bc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Gc(this.projectionDelta.x,this.prevProjectionDelta.x)&&Gc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Zs.countProjection?.(2)):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){this.options.visualElement?.scheduleRender(),e&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ic(),this.projectionDelta=Ic(),this.projectionDeltaWithTransform=Ic()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ic();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),c=r?.source!==this.layout?.source,l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(kl));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);El(o.x,e.x,n),El(o.y,e.y,n),r&&(o.x.translate=r.x,o.y.translate=r.y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ol(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Vc(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),fc(f,this.relativeTarget)),c&&(this.animationValues=a,oc(a,i,this.latestValues,n,d,u)),r?.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(G(this.pendingAnimation),void 0),this.pendingAnimation=W.update(()=>{tl.hasAnimatedSinceResize=!0,this.motionValue||=J(0),this.motionValue.jump(0,!1),this.currentAnimation=Js(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),wr(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta?.(rl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Ml(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||$(),jl(i.x,t.x,e.x),jl(i.y,t.y,e.y)}fc(t,i),Ps(t,r),bc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Kc),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?.transition,preserveFollowOpacity:n?.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){this.getStack()?.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let{latestValues:t}=e;if(!xs(t))return;let n={};for(let t=0;t<nl.length;t++)al(nl[t],e,n,this.animationValues);for(let t=0;t<ys.length;t++)al(ys[t],e,n,this.animationValues);e.render();for(let t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;let n=this.getLead();if(!this.isVisible&&n!==this){e.visibility=`hidden`;return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=nc(t?.pointerEvents)||``,e.transform=r?r(this.latestValues,``):`none`;return}if(!this.projectionDelta||!this.layout||!n.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,e.visibility=``,e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=nc(t?.pointerEvents)||``),this.hasProjected&&!bs(this.latestValues)&&(e.transform=r?r({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=Zc(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=n.animationValues?n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:n===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ys){if(i[t]===void 0)continue;let{correct:r,applyTo:o,isCSSVariable:s}=Ys[t],c=a===`none`?i[t]:r(i[t],n);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=n===this?nc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hl),this.root.sharedNodes.clear()}}}function ul(e){e.updateLayout(),vl(e)}function dl(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source,o=(r,a)=>{if(i===`size`)Qc(e=>{let t=Q(r[e]);r[e].min=a[e].min,r[e].max=r[e].min+t});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;dc(r[e],a[e])}else Ml(i,t.layoutBox,n)&&Qc(t=>{let n=Q(a[t]);r[t].max=r[t].min+n,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+n)})},s=a?t.measuredBox:t.layoutBox;o(s,n);let c=Ic();bc(c,n,t.layoutBox);let l=Ic();bc(l,a?e.applyTransform(r,!0):n,s);let u=!zc(c),d=!1,f=e.getClosestProjectingParent();if((!a||f?.options.layoutRoot&&e.resumeFrom?.path.includes(f))&&f&&!f.resumeFrom){let{snapshot:r,layout:i}=f;if(r&&i){let s=e.options.layoutAnchor||void 0,c=$();wc(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=$();wc(l,n,i.layoutBox,s),a&&o(c,l),Uc(c,l)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=c,e.relativeParent=f)}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else e.isLead()&&e.options.onExitComplete?.();e.options.transition=void 0}function fl(e){Zs.countProjection?.(0),e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function pl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ml(e){e.clearSnapshot()}function hl(e){e.clearMeasurements()}function gl(e){e.isLayoutDirty=!0,e.updateLayout()}function _l(e){e.isLayoutDirty=!1}function vl(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Qc(e=>js(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function yl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function bl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function xl(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Sl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Cl(e){e.resolveTargetDelta()}function wl(e){e.calcProjection()}function Tl(e){e.resetSkewAndRotation()}function El(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dl(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function Ol(e,t,n,r){Dl(e.x,t.x,n.x,r),Dl(e.y,t.y,n.y,r)}function kl(e){return e.animationValues?.opacityExit!==void 0}var Al={duration:.45,ease:[.4,0,.1,1]};function jl(e,t,n){e.max=Q(n)+(e.min=t.min)}function Ml(e,t,n){return e===`position`||e===`preserve-aspect`&&!vc(Wc(t),Wc(n),.2)}function Nl(e){return e!==e.root&&e.scroll?.wasRoot}function Pl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Fl=ll({attachResizeListener:(e,t)=>Pl(e,`resize`,t),measureScroll:Ls,checkIsScrollRoot:()=>!0}),Il={current:void 0},Ll=ll({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Il.current){let e=new Fl({});e.mount(window),e.setOptions({layoutScroll:!0}),Il.current=e}return Il.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Rl=new WeakMap;function zl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Bl(e){return typeof e==`string`||Array.isArray(e)}var Vl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Hl=[`initial`].concat(Vl);function Ul(e){if(zl(e.animate))return!0;for(let t=0;t<Hl.length;t++)if(Bl(e[Hl[t]]))return!0;return!1}function Wl(e){return!!(Ul(e)||e.variants)}function Gl(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,J(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,J(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Kl={current:null},ql={current:!1},Jl=typeof window<`u`;function Yl(){if(ql.current=!0,Jl){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Kl.current=e.matches;e.addEventListener(`change`,t),t()}else Kl.current=!1}}var Xl=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Zl={};function Ql(e){Zl=e}function $l(){return Zl}var eu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=_i,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=z.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,W.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Ul(t),this.isVariantNode=Wl(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Y(t)&&t.set(c[e])}}mount(e){let t=this.presenceContext;if(this.hasBeenMounted&&t?.isPresent!==!1&&!t?.keepValuesOnRemount)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,Rl.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ql.current||Yl(),this.shouldReduceMotion=Kl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||=new Set).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.get(e)?.(),t.accelerate&&Bi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ji({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:I(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=q.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ea.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Zl){let t=Zl[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&ea.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Xl.length;t++){let n=Xl[t];this.propEventSubscriptions[n]?.(),delete this.propEventSubscriptions[n];let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Gl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){let n=this.props.values?.[e];return n||(n=this.values.get(e),n===void 0&&t!==void 0&&(n=J(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n)}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(je(n)||Ne(n))?n=parseFloat(n):typeof n!=`number`&&!H.test(n)&&H.test(t)&&(n=Vr(e,t)),this.setBaseTarget(e,Y(n)?n.get():n)),Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return(this.events[e]||(this.events[e]=new Le)).add(t)}notify(e,...t){this.events[e]?.notify(...t)}scheduleRenderMicrotask(){Gs.render(this.render)}},tu=class extends eu{constructor(){super(...arguments),this.KeyframeResolver=Co}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Y(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function nu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ru(e,{layout:t,layoutId:n}){return q.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ys[e]||e===`opacity`)}function iu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||ru(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function au(e){return window.getComputedStyle(e)}var ou=class extends tu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=nu}mount(e){super.mount(e)}readValueFromInstance(e,t){if(q.has(t))return this.projection?.isProjecting?Zr(t):$r(e,t);{let n=au(e),r=(mt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Fs(e,t)}build(e,t,n){$o(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iu(e,t,n)}};function su(e){let t=Rl.get(e);return t||(t=new ou({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0}),Us(e,t)),e.style.transform&&!bs(t.latestValues)&&(e.style.transform=``),t}var cu={},lu={updateScroll:()=>{lu.scroll||={offset:Ls()}}},uu=e=>{let t=su(e),n=new Le,r={instance:e,root:lu,path:[lu],setOptions:F,isProjecting:F,applyProjectionStyles:F,removeElementScroll:e=>e,updateLayout:()=>{let i=Is(e,lu,t.getTransformPagePoint());Pc(i),r.layout={layoutBox:i},n.notify()},addEventListener:(e,t)=>e===`measure`?n.add(t):F,unmount:()=>{r.instance=void 0,t.projection===r&&(t.projection=void 0)}};return t.projection=r,t.current||t.mount(e),[r,r.unmount]},du=e=>{let t=Rl.get(e)?.projection;return t?.instance?[t,F]:(cu.create||uu)(e)},fu=`[data-layout],[data-layout-id]`,pu=new WeakMap,mu;function hu(e){let t=[];return e instanceof HTMLElement&&e.matches(fu)&&t.push(e),e.querySelectorAll(fu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function gu(){if(R.isProcessing)return;let e=z.now();R.delta=N(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,On.update.process(R),On.preRender.process(R),On.render.process(R),R.isProcessing=!1}function _u(e){let t=e.parentElement;for(;t;){let e=pu.get(t);if(e?.instance)return e;t=t.parentElement}}function vu(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function yu(e,t){let n=pu.get(e);if(n)n.setOptions(vu(e,t));else{let r=su(e);n=new Ll(r.latestValues,_u(e)),r.projection=n,n.setOptions({...vu(e,t),visualElement:r}),n.mount(e),pu.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function bu(e){let t=yu(e);return[t,()=>pu.get(e)===t&&Cu(e,t)]}cu.create=bu;function xu(e){let t=pu.get(e)||Rl.get(e)?.projection;return t?.instance?[t,()=>{}]:bu(e)}function Su(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Cu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),pu.delete(e)}function wu(){let e=mu;if(!e)return;mu=void 0,gu();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Su(t.keys())){let r=t.get(e),i=yu(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),Gs.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var Tu=wu,Eu=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),mu||(mu=[],queueMicrotask(wu)),mu.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return hu(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of hu(this.scope)){if(this.tracked.has(t))continue;let n=yu(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next?.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Cu(n,t)}}),t.relegate())return;n.remove()}Cu(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new ya([...e]))}};function Du(e,t,n){return typeof e==`function`?{scope:X.current?.root||document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:Z(e)[0]??document,updateDom:t,defaultOptions:n}}var Ou=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function ku(e){return{point:{x:e.pageX,y:e.pageY}}}var Au=e=>t=>Ou(t)&&e(t,ku(t));function ju(e,t,n,r){return Pl(e,t,Au(n),r)}var Mu=new WeakMap,Nu,Pu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Lo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Fu=Pu(`inline`,`width`,`offsetWidth`),Iu=Pu(`block`,`height`,`offsetHeight`);function Lu({target:e,borderBoxSize:t}){Mu.get(e)?.forEach(n=>{n(e,{get width(){return Fu(e,t)},get height(){return Iu(e,t)}})})}function Ru(e){e.forEach(Lu)}function zu(){typeof ResizeObserver<`u`&&(Nu=new ResizeObserver(Ru))}function Bu(e,t){Nu||zu();let n=Z(e);return n.forEach(e=>{let n=Mu.get(e);n||(n=new Set,Mu.set(e,n)),n.add(t),Nu?.observe(e)}),()=>{n.forEach(e=>{let n=Mu.get(e);n?.delete(t),n?.size||Nu?.unobserve(e)})}}var Vu=new Set,Hu;function Uu(){Hu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Vu.forEach(t=>t(e))},window.addEventListener(`resize`,Hu)}function Wu(e){return Vu.add(e),Hu||Uu(),()=>{Vu.delete(e),!Vu.size&&typeof Hu==`function`&&(window.removeEventListener(`resize`,Hu),Hu=void 0)}}function Gu(e,t){return Ro(typeof e==`function`?Wu(e):Bu(e,t))}var Ku=(e,t)=>Math.abs(e-t);function qu(e,t){let n=Ku(e.x,t.x),r=Ku(e.y,t.y);return Math.sqrt(n**2+r**2)}var Ju=new Set([`auto`,`scroll`]),Yu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=$u(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=qu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:z.now()});let{onStart:i,onMove:a}=this.handlers;t||(i?.(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a?.(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Zu(t,this.transformPagePoint),this.hasPendingMove=!0,W.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=$u(e.type===`pointercancel`?this.lastMoveEventInfo:Zu(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!Ou(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Zu(ku(e),this.transformPagePoint),{point:c}=s;this.history=[{...c,timestamp:z.now()}];let{onSessionStart:l}=t;l&&l(e,$u(s,this.history));let u={passive:!0,capture:!0};this.removeListeners=Fe(ju(this.contextWindow,`pointermove`,this.handlePointerMove,u),ju(this.contextWindow,`pointerup`,this.handlePointerUp,u),ju(this.contextWindow,`pointercancel`,this.handlePointerUp,u)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Ju.has(e.overflowX)||Ju.has(e.overflowY))&&this.scrollPositions.set(t,Xu(t)),t=t.parentElement}this.scrollPositions.set(window,Xu(window)),this.removeScrollListeners=Fe(Pl(window,`scroll`,this.onElementScroll,{capture:!0}),Pl(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=Xu(e),i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),W.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),G(this.updatePoint)}},Xu=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function Zu(e,t){return t?{point:t(e.point)}:e}function Qu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $u({point:e},t){return{point:e,delta:Qu(e,td(t)),offset:Qu(e,ed(t)),velocity:nd(t,.1)}}function ed(e){return e[0]}function td(e){return e[e.length-1]}function nd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=td(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>I(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>I(t)*2&&(r=e[1]);let a=L(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var rd=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function id(e){return rd.has(e.tagName)||e.isContentEditable===!0}var ad=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function od(e){return ad.has(e.tagName)||e.isContentEditable===!0}var sd={x:!1,y:!1};function cd(){return sd.x||sd.y}function ld(e){return e===`x`||e===`y`?sd[e]?null:(sd[e]=!0,()=>{sd[e]=!1}):sd.x||sd.y?null:(sd.x=sd.y=!0,()=>{sd.x=sd.y=!1})}function ud(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function dd(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function fd(e,{top:t,left:n,bottom:r,right:i}){return{x:dd(e.x,n,i),y:dd(e.y,t,r)}}function pd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function md(e,t){return{x:pd(e.x,t.x),y:pd(e.y,t.y)}}function hd(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Ie(t.min,t.max-r,e.min):r>i&&(n=Ie(e.min,e.max-i,t.min)),N(0,1,n)}function gd(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var _d=.35;function vd(e=_d){return e===!1?e=0:e===!0&&(e=_d),{x:yd(e,`left`,`right`),y:yd(e,`top`,`bottom`)}}function yd(e,t,n){return{min:bd(e,t),max:bd(e,n)}}function bd(e,t){return typeof e==`number`?e:e[t]||0}function xd(e){let t=``;for(let n of e.path){n.scroll=void 0,n.updateScroll();let{scroll:r}=n;n!==e.root&&r&&(t+=r.offset.x+`,`+r.offset.y+`,`)}return t}var Sd=new WeakMap,Cd=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let r=e=>{t&&this.snapToCursor(e),this.stopAnimation()},i=(e,t)=>{let{drag:n,dragConstraints:r,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock?.(),this.openDragLock=ld(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:o}=this.visualElement;o&&(o.isAnimationBlocked=!0,o.target=void 0),Qc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(gt(t)&&(t=Ya(t,this.visualElement.current)||0),B.test(t))t=parseFloat(t);else if(Ft.test(t)){let n=o?.layout?.layoutBox[e];n&&(t=Q(n)*(parseFloat(t)/100))}this.originPoint[e]=t}),this.point=typeof r==`function`&&r(this),a&&W.update(()=>a(e,t),!1,!0),oo(this.visualElement,`transform`),this.visualElement.animationState?.setActive(`whileDrag`,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=kd(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,o),this.updateAxis(`y`,o),this.point&&this.point.move(),this.visualElement.render(),a&&W.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Yu(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&W.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t?.setActive(`whileDrag`,!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,t){let{drag:n}=this.readProps();if(!t||!Od(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=ud(i,a,this.elastic[e])),this.point?this.point[e]=i:r.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{projection:n}=this.visualElement,r=n&&(n.layout||n.measure(!1)),i=this.constraints;wd(e)?this.constraints&&this.scroll===xd(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?fd(r.layoutBox,e):!1,this.elastic=vd(t),i!==this.constraints&&!wd(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&Qc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=gd(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!wd(e))return!1;let n=Td(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=xd(r);let i=Is(n,r.root,this.visualElement.getTransformPagePoint()),a=md(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(hs(a));this.hasMutatedConstraints=!!e,e&&(a=ms(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c={bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},l=i=>r&&!(this.point&&o)&&Od(i,t||n,this.currentDirection)?e[i]:0;if(this.point&&!o)return this.point.release({x:l(`x`),y:l(`y`)},c).then(s);let u=this.constraints||{},d=Qc(e=>{if(!Od(e,t||n,this.currentDirection))return;let r=u[e]||{};(o===!0||o===e)&&(r={min:0,max:0});let i={type:`inertia`,velocity:l(e),...c,...r};return this.startAxisValueAnimation(e,i)});return Promise.all(d).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oo(this.visualElement,e),n.start(Ba(e,n,0,t,this.visualElement,!1))}stopAnimation(){Qc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Qc(e=>{if(!Od(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-U(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!wd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Qc(e=>{let t=this.getAxisMotionValue(e).get();i[e]=hd({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root?.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Qc(t=>{let n=this.getAxisMotionValue(t);if(!Od(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(U(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Sd.set(this.visualElement,this);let e=this.visualElement.current,t=ju(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&od(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=wd(t)&&Td(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Dd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),W.read(r);let o=Pl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Qc(t=>{if(!Od(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s(),n?.()}}getProps(){let e=this.readProps(),{dragElastic:t=_d,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function wd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var Td=e=>`current`in e?e.current:e;function Ed(e){let t=!0;return()=>{t?t=!1:e()}}function Dd(e,t,n){let r=Gu(e,Ed(n)),i=Gu(t,Ed(n));return()=>{r(),i()}}function Od(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Ad({dragConstraints:e,onMeasureDragConstraints:t}){return wd(e)&&!!t}var jd=({axis:e,constraints:t,elastic:n,momentum:r,transition:i,snapToOrigin:a,directionLock:o,propagation:s,onStart:c,onMove:l,onEnd:u,onDirectionLock:d,onTransitionEnd:f,onMeasureConstraints:p})=>({drag:e||!0,dragConstraints:t,dragElastic:n,dragMomentum:r,dragTransition:i,dragSnapToOrigin:a,dragDirectionLock:o,dragPropagation:s,onDragStart:c,onDrag:l,onDragEnd:u,onDirectionLock:d,onDragTransitionEnd:f,onMeasureDragConstraints:p}),Md=[`user-select`,`-webkit-user-select`,`-webkit-touch-callout`,`touch-action`];function Nd(e,t){let{style:n}=e,r=e.getAttribute(`draggable`),i=Md.map(e=>n.getPropertyValue(e)),a=t?`pan-`+(t===`x`?`y`:`x`):`none`;return Md.forEach((e,t)=>n.setProperty(e,t<3?`none`:a)),e.setAttribute(`draggable`,`false`),()=>{Md.forEach((e,t)=>n.setProperty(e,i[t])),r===null?e.removeAttribute(`draggable`):e.setAttribute(`draggable`,r)}}function Pd(e,t={}){let n=jd(t),r=X.current;if(r)for(let e in n){let t=n[e];typeof t==`function`&&(n[e]=r.bind(t))}let i=Z(e).map(e=>{r?.track(e);let[i,a]=du(e);i.setOptions({alwaysMeasureLayout:!0});let o=new Cd(Rl.get(e),()=>n),s=o.addListeners(),c=Nd(e,t.axis);return()=>{c(),s?.(),o.cancel(),o.stopAnimation(),a()}});return Ro(()=>i.forEach(e=>e()))}function Fd(e,t){let n=Z(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Ro(()=>r.abort())]}function Id(e){return!(e.pointerType===`touch`||cd())}function Ld(e,t,n={}){t=Bo(t);let[r,i,a]=Fd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Id(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Rd=(e,t)=>t?e===t||Rd(e,t.parentElement):!1,zd=new WeakSet;function Bd(e){return t=>{t.key===`Enter`&&e(t)}}function Vd(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Hd=(e,t)=>{let n=!1,r=Bd(()=>{zd.has(e)||(n=!0,Vd(e,`down`))}),i=Bd(()=>{n&&(n=!1,Vd(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&Vd(e,`cancel`)},{...t,once:!0})};function Ud(e){return Ou(e)&&!cd()}var Wd=new WeakSet;function Gd(e,t,n={}){t=Bo(t);let[r,i,a]=Fd(e,n),o=e=>{let r=e.currentTarget;if(!Ud(e)||Wd.has(e))return;zd.add(r),n.stopPropagation&&Wd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),zd.has(r)&&zd.delete(r),Ud(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Rd(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Io(e)&&(e.addEventListener(`focus`,()=>Hd(e,i),i),!id(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Kd(e,t){let n=window.getComputedStyle(e);return vi(t)?n.getPropertyValue(t):n[t]}var qd={reducedMotion:`(prefers-reduced-motion: reduce)`,motion:`(prefers-reduced-motion: no-preference)`,dark:`(prefers-color-scheme: dark)`,light:`(prefers-color-scheme: light)`,hover:`(hover: hover) and (pointer: fine)`,touch:`(pointer: coarse)`,portrait:`(orientation: portrait)`,landscape:`(orientation: landscape)`};function Jd(e){return e.includes(`(`)?e:e.replace(/([<>!]=?)\s+/g,`$1`).trim().split(/\s+/).map(e=>{let t=e[0]===`!`;t&&(e=e.slice(1));let n=/^([<>]=?)([\d.]+)([a-z]*)$/.exec(e),r=n?`(width ${n[1]} ${n[2]}${n[3]||`px`})`:qd[e]||e;return t?`(not (${r}))`:r}).join(` and `)}function Yd(...e){let t=typeof e[0]==`function`?void 0:e.shift(),[n,r={}]=e,{transition:i,matchMedia:a}=r,o=[],s=new Map,c=[],l=!1,u={root:Z(t)[0],transition:i,add(e){return c.push(e),()=>Ee(c,e)},bind:e=>((...t)=>{let n=g.run(()=>e(...t));return typeof n==`function`?u.bind(n):n}),track(e){s.has(e)||s.set(e,e.getAttribute(`style`))}},d=e=>{let t=c;c=[];for(let e=t.length-1;e>=0;e--)t[e]();e&&s.forEach((e,t)=>{Hs(t),e===null?t.removeAttribute(`style`):t.setAttribute(`style`,e)}),s.clear()},f=()=>{g.state=`active`;let e=!o.length;g.media={};for(let[t,n]of o)e=(g.media[t]=n.matches)||e;if(e&&n){let e=g.run(()=>n(g));typeof e==`function`&&u.add(e)}},p=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,o.length&&g.refresh()}))},m=e=>{g.state=e?`cancelled`:`stopped`;for(let[,e]of o)e.removeEventListener(`change`,p);o.length=0,d(e)},h=(e,t)=>{let n=X.current;X.current=e;try{return t()}finally{X.current=n}},g={state:`active`,media:{},run:e=>h(u,e),ignore:e=>h(void 0,e),bind:u.bind,stop:()=>m(),cancel:()=>m(!0),refresh(){d(!0),f()}};if(a&&typeof window<`u`){let e=typeof a==`string`?{matches:a}:a;for(let t in e){let n=window.matchMedia(Jd(e[t]));n.addEventListener(`change`,p),o.push([t,n])}}return Ro(g.cancel),f(),g}var Xd=[`nodes`,`calculatedTargetDeltas`,`calculatedProjections`];function Zd(){Zs.value=null,Zs.addProjectionMetrics=null,Zs.countProjection=void 0}function Qd(){if(Zs.value)throw Zd(),Error(`Stats are already being measured`);let e=Zs;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)};let t={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0};e.countProjection=n=>{n===void 0?(e.addProjectionMetrics(t),t.nodes=t.calculatedTargetDeltas=t.calculatedProjections=0):t[Xd[n]]++}}function $d(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function ef(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=lt(r)(l/u)*u),t+l}}function tf(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=sr(i,a,o);return t?s(r):s}var nf=new Set,rf=({timestamp:e})=>{nf.forEach(t=>t.tick(e))},af=class extends Tr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(nf.size||W.update(rf,!0),nf.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t;this.started||(this.startTime=xr(this.startTime,e));let o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return hr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():z.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(nf.delete(this),nf.size||G(rf))}};function of(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=rc(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=rc(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new af({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),Y(t)){let r=n.skipInitialAnimation===!0,i=t=>{r?(r=!1,e.jump(sf(t,o),!1)):e.set(sf(t,o))},a=t.on(`change`,i),s=t.get();rc(s)-rc(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function sf(e,t){return t?e+t:e}function cf(e,t){let n=J(Y(e)?e.get():e);return lf(n,e,t),n}function lf(e,t,n={}){let r={type:`spring`,...n};return yr(r),r.type=r.type||fr,of(e,t,r)}function uf(e,t,n){let r=()=>t.set(n()),i=()=>W.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),G(r)})}function df(e){let t=[];ka.current=t;let n=e();ka.current=void 0;let r=J(n);return uf(t,r,e),r}function ff(e,t,n,r){let i=tf(t,n,r);return df(()=>i(e.get()))}function pf(e,t){let n=J(Y(e)?e.get():e);return mf(n,e,t),n}function mf(e,t,n){return of(e,t,{...n,type:ir})}var hf=[...vo,V,H],gf=e=>hf.find(_o(e)),_f=0,vf=()=>`motion-view-${_f++}`,yf=e=>e.startsWith(`motion-view-`);function bf(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function xf(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Sf(e,t,n,r,i,a=[],o,s=[],c){let l=Z(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??vf();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),bf(e,i,a),xf(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!yf(d)?f=d:(f=vf(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),bf(e,i,a),xf(e,f,o,s,c),f})}function Cf(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function wf(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Tf={},Ef=null,Df={set:(e,t)=>{Tf[e]=t},commit:()=>{Ef||(Ef=document.createElement(`style`),Ef.id=`motion-view`);let e=``;for(let t in Tf){let n=Tf[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
2
- `}Ef.textContent=e,document.head.appendChild(Ef),Tf={}},remove:()=>{Ef&&Ef.parentElement&&Ef.parentElement.removeChild(Ef)}};function Of(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function kf(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function Af(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var jf=[`layout`,`enter`,`exit`,`new`,`old`],Mf=e=>e.split(` `).every(e=>parseFloat(e)===0),Nf={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Pf={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},Ff=.2;function If(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new ya([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,Z(n)),b=Sf(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=Sf(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Sf(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=Rf(Ma(c,n),Ma(Lf(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=I(r.duration);let{delay:i=0,duration:a,ease:o}=Ai(r);return{delay:I(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of wo)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),E=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ee(e))&&h.add(e)},ee=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>Ff},te=()=>{Af(`root`,n)||Df.set(`:root`,{"view-transition-name":`none`}),Df.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{Df.set(`::view-transition-group(${e})`,{overflow:`clip`}),Df.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{Df.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),Df.commit()},ne=()=>{Cf(u,d,f),Df.remove()},re=async()=>{await t(),b(`new`),T(`new`),E(),te()},D;try{b(`old`),T(`old`),te(),D=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return D.finished.finally(ne),new Promise((e,t)=>{D.ready.then(()=>{let t=kf(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of jf){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=wf(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){Ve(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=Rf(Ma(c,m),Ma(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?Pf[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=I(f.duration),f.delay&&=I(f.delay),n.push(new ji({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=Of(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new Sa(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:Di(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=I(r.duration)),r=Ai(r),d={delay:I(r.delay??0),duration:u&&i!==void 0?I(i):r.duration,easing:u?`linear`:Di(r.ease,r.duration)}}t.updateTiming(d),n.push(new Sa(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of wo){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;Mf(s)&&Mf(c)||n.push(new ji({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ya(n))}).catch(()=>D.updateCallbackDone.then(()=>e(new ya([])),t))})}function Lf(e,t){for(let n of Nf[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Rf(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var zf=[],Bf=null;function Vf(){Bf=null;let[e]=zf;e&&Hf(e)}function Hf(e){Ee(zf,e),Bf=e,If(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Vf)}function Uf(){for(let e=zf.length-1;e>=0;e--){let t=zf[e],{interrupt:n}=t.options;if(n===`immediate`){let n=zf.slice(0,e+1).map(e=>e.update),r=zf.slice(e+1);t.update=()=>{n.forEach(e=>e())},zf=[t,...r];break}}Bf&&zf[0]?.options.interrupt!==`immediate`||Vf()}function Wf(e){zf.push(e),Gs.render(Uf)}var Gf=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=F,this.notifyReject=F,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(F),Wf(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Kf(e,t={}){let n=new Gf(e,t);return zo(n),n}var qf=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Jf(e,t){return e in t}var Yf=class extends eu{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Jf(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return $()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Xf=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`]),Zf=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Qf(e,t,n,r){nu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Xf.has(n)?n:Qo(n),t.attrs[n])}function $f(e,t,n){let r=iu(e,t,n);for(let n in e)if(n!==`children`&&(Y(e[n])||Y(t[n]))){let t=K.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ep=class extends tu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return q.has(t)?super.getBaseTargetFromProps(e,t)??Zr(t):e[t]}getDefaultValue(e){return q.has(e)?this.latestValues[e]??Zr(e):void 0}readValueFromInstance(e,t){if(q.has(t)){let e=zr(t);return e&&e.default||0}if(rs.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Xf.has(t)?t:Qo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return $f(e,t,n)}build(e,t,n){is(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Qf(e,t,n,r)}mount(e){this.isSVGTag=Zf(e.tagName),super.mount(e)}};function tp(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var np=[...Vl].reverse(),rp=e=>e?.out===!0?e:e?.out;function ip(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>ho(e,t,n))),n=op(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,{initial:l}=o,u=r||i,d=[],f=(t=l)=>typeof t!=`boolean`&&Qa(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom)||void 0,p=new Map,m={},h=1/0,g=e;do g=g.props.inherit!==!1&&g.parent;while(g&&!g.isControllingVariants);let _=u&&rp(f(l??(g&&g.props.initial))?.transition);if(np.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?Bl(f)||f===!1?f:void 0:l,y=Bl(v),b=t===a?i.isActive:null,x=y&&l===void 0&&!(u&&c);if(i.protectedKeys={...m},!i.isActive&&b===null||!v&&!i.prevProp||zl(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=ap(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},ee;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=Qa(e,n,$a(e,t))||{};E={...E,...a,...i},ee=rp(r)||ee}let{prevResolvedValues:te}=i;for(let t in{...te,...E}){if(t in m)continue;let n=E[t],r=te[t],a=Array.isArray(n)&&Array.isArray(r)?!tp(n,r)||S:n!==r,o;if(a&&n==null)p.has(t)||p.set(t,i.prevOut);else if(a||n!==void 0&&p.has(t)){C=!0,o=p.get(t)||_,p.delete(t)&&(w=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0;i.out[t]=o}if(i.prevProp=v,i.prevResolvedValues=E,i.prevOut=ee,i.isActive&&(m={...m,...E}),C&&(!(x&&S)||w))for(let n of T){let r={type:t};if(typeof n==`string`&&u&&c&&s?.enteringChildren){let t=Qa(s,n)?.transition?.delayChildren;r.delay=Ea(s.enteringChildren,e,t)}d.push({animation:n,options:r})}}),p.size){let t={},n=f(),r=n?.transition;p.forEach((i,a)=>{i&&(r={...r||e.getDefaultTransition(),[a]:i});let s=e.getValue(a);s&&(s.liveStyle=!0);let c=n&&!Array.isArray(l)?n[a]:void 0,u=e.getBaseTargetFromProps(o,a);t[a]=(c===void 0?u!==void 0&&!Y(u)?u:e.initialValues[a]===void 0?e.baseTarget[a]:void 0:c)??null}),r&&(t.transition=r),d.push({animation:t})}let v=u&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!v&&d.length?t(d):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=op(),i=!0}}}function ap(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!tp(t,e):!1}function op(){let e={};for(let t of Vl)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var sp=Hl.length;function cp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&cp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<sp;n++){let r=Hl[n],i=e.props[r];(Bl(i)||i===!1)&&(t[r]=i)}return t}var lp=e=>!e.isLayoutDirty&&e.willUpdate(!1);function up(){let e=new Set,t=new WeakMap,n=()=>e.forEach(lp);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}function dp(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=Du(e,t,n),o=new Eu(r,i,{...X.current?.transition,...a});return zo(o),o}var fp=W,pp=wn.reduce((e,t)=>(e[t]=e=>G(e),e),{}),mp=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function hp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function gp(...e){return t=>{let n=!1,r=e.map(e=>{let r=hp(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():hp(e[t],null)}}}}function _p(...e){return se(gp(...e),e)}var vp=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},yp=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=vp(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=vp(e.offsetParent);return[t/i,n/a]},bp=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Io(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Io(e)&&e.offsetWidth||0,r=Io(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=yp(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function xp({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o,popNode:s}){let c=de(),l=A(null),u=A({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=O(mp),f=_p(l,o===!1?void 0:e.props?.ref??e?.ref),p=()=>l.current||s?.current?.current,m=e=>{let{width:t,height:i,top:a,left:o,right:s,bottom:l,direction:d}=u.current,f=d===`rtl`,p=n===`left`?f?`right:${s}`:`left:${o}`:f?`left:${o}`:`right:${s}`,m=r===`bottom`?`bottom:${l}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${c}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return pe(()=>{let{width:e,height:n}=u.current,r=p();if(t||o===!1||!r||!e||!n)return;r.dataset.motionPopId=c;let i=r.ownerDocument,s=i.createElement(`style`);d&&(s.nonce=d);let l=a??i.head;l.appendChild(s),m(s.sheet);let f=0,h=0;return Gs.setup(()=>{let[e,t]=yp(r);f=u.current.point[0]-e,h=u.current.point[1]-t}),Gs.read(()=>{let{sheet:e}=s;if(!e||!f&&!h)return;let t=u.current;t.left+=f,t.right-=f,t.top+=h,t.bottom-=h,e.deleteRule(0),m(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),l.contains(s)&&l.removeChild(s)}},[t]),i(bp,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Sp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=M(Cp),f=de(),p=A(),m=A(n),h=A(r);Ce(()=>{m.current=n,h.current=r});let g=!0,_=he(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:(e,t)=>(d.set(e,!1),t&&t.parent?.presenceContext?.id!==f&&(p.current=t),()=>{d.delete(e),!m.current&&!d.size&&h.current?.()})}),[n,d,r]);return o&&g&&(_={..._}),he(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),k(()=>{!n&&!d.size&&r&&r()},[n]),e=i(xp,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,popNode:p,children:e}),i(we.Provider,{value:_,children:e})};function Cp(){return new Map}function wp(e=!0){let t=O(we);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=de();k(()=>{if(e)return i(a)},[e]);let o=se(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Tp(){return Ep(O(we))}function Ep(e){return e===null||e.isPresent}var Dp=e=>e.key||``;function Op(e){let t=[];return c.forEach(e,e=>{te(e)&&t.push(e)}),t}var kp=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=wp(c),m=he(()=>Op(e),[e]),h=c&&!f?[]:m.map(Dp),g=A(!0),_=M(()=>new Map),v=A(new Set),[y,b]=j(m),[x,S]=j(m);Ce(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=A();k(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),Ce(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=Dp(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let w=[];if(m!==y){let e=[...m],t=0;for(let n of x){let r=h.indexOf(Dp(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(Dp(e)))?e=m:s===`wait`&&(e=w),S(Op(e)),b(m),null}let{forceRender:T}=O(xe);return i(r,{children:x.map(e=>{let r=Dp(e),y=c&&!f?!1:m===x||h.includes(r);return i(Sp,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:y?void 0:()=>{if(v.current.has(r))return;if(_.has(r))v.current.add(r),_.set(r,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(T?.(),b([]),c&&p?.(),C.current=a)},anchorX:l,anchorY:u,children:e},r)})})},Ap=w(null);function jp(){let e=A(!1);return Ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mp(){let e=jp(),[t,n]=j(0),r=se(()=>{e.current&&n(t+1)},[t]);return[se(()=>W.postRender(r),[r]),t]}var Np=e=>e===!0,Pp=e=>Np(e===!0)||e===`id`,Fp=({children:e,id:t,inherit:n=!0})=>{let r=O(xe),a=O(Ap),[o,s]=Mp(),c=A(null),l=r.id||a;c.current===null&&(Pp(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:Np(n)&&r.group||up()});let u=he(()=>({...c.current,forceRender:o}),[s]);return i(xe.Provider,{value:u,children:e})},Ip=w({strict:!1}),Lp={animation:[`variants`,...Vl],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Rp=!1;function zp(){if(Rp)return;let e={};for(let t in Lp)e[t]={isEnabled:e=>Lp[t].some(t=>!!e[t])};Ql(e),Rp=!0}function Bp(){return zp(),$l()}function Vp(e){let t=Bp();for(let n in e)t[n]={...t[n],...e[n]};Ql(t)}function Hp({children:e,features:t,strict:n=!1}){let[,r]=j(!Up(t)),a=A(void 0);if(!Up(t)){let{renderer:e,...n}=t;a.current=e,Vp(n)}return k(()=>{Up(t)&&t().then(({renderer:e,...t})=>{Vp(t),a.current=e,r(!0)})},[]),i(Ip.Provider,{value:{renderer:a.current,strict:n},children:e})}function Up(e){return typeof e==`function`}function Wp({children:e,...t}){let n=O(mp);t={...n,...t},t.transition=ja(t.transition,n.transition),t.isStatic=M(()=>t.isStatic);let r=he(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(mp.Provider,{value:r,children:e})}var Gp=w({});function Kp(e,t){if(Ul(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Bl(t)?t:void 0,animate:Bl(n)?n:void 0}}return e.inherit===!1?{}:t}function qp(e){let{initial:t,animate:n}=Kp(e,O(Gp));return he(()=>({initial:t,animate:n}),[Jp(t),Jp(n)])}function Jp(e){return Array.isArray(e)?e.join(` `):e}var Yp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xp(e,t,n){for(let r in t)!Y(t[r])&&!ru(r,n)&&(e[r]=t[r])}function Zp({transformTemplate:e},t){return he(()=>{let n=Yp();return $o(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Qp(e,t){let n=e.style||{},r={};return Xp(r,n,e),Object.assign(r,Zp(e,t)),r}function $p(e,t){let n={},r=Qp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var em=()=>({...Yp(),attrs:{}});function tm(e,t,n,r){let i=he(()=>{let n=em();return is(n,t,Zf(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return Xp(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var nm=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function rm(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||nm.has(e)}function im(e,t){return e.startsWith(`on`)?!rm(e):t?.(e)??!rm(e)}function am(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Y(e[a])||(im(a,r)||n===!0&&rm(a)||!t&&!rm(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var om=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function sm(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(om.indexOf(e)>-1||/[A-Z]/u.test(e))}function cm(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??sm(e)?tm:$p)(t,r,i,e),l=am(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=he(()=>Y(f)?f.get():f,[f]);return T(e,{...d,children:p})}function lm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:um(n,r,i,e),renderState:t()}}function um(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=nc(a[e]);let{initial:o,animate:s}=e,c=Ul(e),l=Wl(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!zl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Za(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var dm=e=>(t,n)=>{let r=O(Gp),i=O(we),a=()=>lm(e,t,r,i);return n?a():M(a)},fm=dm({scrapeMotionValuesFromProps:iu,createRenderState:Yp}),pm=dm({scrapeMotionValuesFromProps:$f,createRenderState:em}),mm=Symbol.for(`motionComponentSymbol`);function hm(e,t,n){let r=A(n);pe(()=>{r.current=n});let i=A(null);return se(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var gm=w({});function _m(e,t,n,r,i,a){let{visualElement:o}=O(Gp),s=O(Ip),c=O(we),l=O(mp),u=l.reducedMotion,d=l.skipAnimations,f=A(null),p=A(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=O(gm);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),pe(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[co],_=A(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Ce(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Ce(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),k(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function vm(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Vp(r);let s=n?n===`svg`:sm(e),c=s?pm:fm;function l(n,l){let u,d=ym(n);M(()=>!!Il.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...O(mp),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=qp(n),g=c(n,p);if(!p&&typeof window<`u`){bm(f,r);let t=xm(f);h.visualElement=_m(e,g,f,o,t.ProjectionNode,s),(t.isEnabled||h.visualElement?.projection?.options.layoutId)&&(u=t.MeasureLayout)}return a(Gp.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,cm(e,n,hm(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=ee(l);return u[mm]=e,u}function ym({layoutId:e}){let t=O(xe).id;return t&&e!==void 0?t+`-`+e:e}function bm(e,t){O(Ip).strict}function xm(e){let{drag:t,layout:n}=Bp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function Sm(e,t){if(typeof Proxy>`u`)return vm;let n=new Map,r=(n,r)=>vm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,vm(a,void 0,e,t)),n.get(a))})}var Cm=Sm(),wm=(e,t)=>t.isSVG??sm(e)?new ep(t):new ou(t,{allowProjection:e!==u}),Tm=class extends qf{constructor(e){super(e),e.animationState||=ip(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();zl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Em=0,Dm={animation:{Feature:Tm},exit:{Feature:class extends qf{constructor(){super(...arguments),this.id=Em++}update(){let{presenceContext:e,animationState:t}=this.node;if(!e||!t)return;let{isPresent:n,onExitComplete:r}=e;if(n===!this.exit)return;if(n){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Qa(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,t.reset(),t.animateChanges()}else t.setActive(`exit`,!1);this.exit=void 0;return}let i=this.exit=t.setActive(`exit`,!0);r&&i.then(()=>{this.exit===i&&(this.exit=!0,r(this.id))})}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id,this.node)),this.update()}unmount(){}}}},Om=class extends qf{constructor(e){super(e),this.removeGroupControls=F,this.removeListeners=F,this.controls=new Cd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||F}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},km=e=>(t,n)=>{e&&W.update(()=>e(t,n),!1,!0)},Am=class extends qf{constructor(){super(...arguments),this.removePointerDownListener=F}onPointerDown(e){this.session=new Yu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:km(e),onStart:km(t),onMove:km(n),onEnd:(e,t)=>{delete this.session,r&&W.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ju(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},jm=!1,Mm=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),Nm=(e,t)=>{let{snapshot:n}=e,r=e.getStack();r?.remove(e);let i=r?.lead;if(r?.prevLead===e&&i.resumeFrom===e&&(i.resumeFrom=i.currentAnimation=e.resumingFrom=void 0),e.options.layoutId=t,!t)e.needsShow=!0;else return e.root.registerSharedNode(t,e),()=>{let{resumeFrom:t}=e;t?.isPresent!==!1&&e.getStack().members.includes(t)&&(t.hide(),e.resumeFrom=void 0,e.snapshot=n)}},Pm=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group?.add(i),r&&n?.register?.(i),jm&&i.root.didUpdate(),i.options.layoutId!==r&&Nm(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...Mm(this.props),onExitComplete:()=>this.safeToRemove()})),tl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,layoutId:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,this.takeOver=e.layoutId===n?void 0:(o.willUpdate(),Nm(o,n)),o.setOptions({...o.options,...Mm(this.props)}),jm=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||W.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),Gs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;jm=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function Fm(e){let[t,n]=wp(),r=O(xe);return i(Pm,{...e,layoutGroup:r,switchLayoutGroup:O(gm),isPresent:t,safeToRemove:n})}var Im={pan:{Feature:Am},drag:{Feature:Om,ProjectionNode:Ll,MeasureLayout:Fm}};function Lm(e,t,n,r){let{props:i}=e,a=`while`+n;e.animationState&&i[a]&&e.animationState.setActive(a,r===`Start`);let o=i[`on`+n+r];o&&W.postRender(()=>o(t,ku(t)))}var Rm=class extends qf{mount(){let{current:e}=this.node;e&&(this.unmount=Ld(e,(e,t)=>(Lm(this.node,t,`Hover`,`Start`),e=>Lm(this.node,e,`Hover`,`End`))))}unmount(){}},zm=class extends qf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Fe(Pl(this.node.current,`focus`,()=>this.onFocus()),Pl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Bm(e,t,n){e.current instanceof HTMLButtonElement&&e.current.disabled||Lm(e,t,`Tap`,n)}var Vm=class extends qf{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Gd(e,(e,t)=>(Bm(this.node,t,`Start`),(e,{success:t})=>Bm(this.node,e,t?``:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Hm=new WeakMap,Um=new WeakMap,Wm=e=>{let t=Hm.get(e.target);t&&t(e)},Gm=e=>{e.forEach(Wm)};function Km({root:e,...t}){let n=e||document;Um.has(n)||Um.set(n,{});let r=Um.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Gm,{root:e,...t})),r[i]}function qm(e,t,n){let r=Km(t);return Hm.set(e,n),r.observe(e),()=>{Hm.delete(e),r.unobserve(e)}}var Jm={some:0,all:1},Ym=class extends qf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Jm[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=qm(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Xm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Xm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Zm={inView:{Feature:Ym},tap:{Feature:Vm},focus:{Feature:zm},hover:{Feature:Rm}},Qm={layout:{ProjectionNode:Ll,MeasureLayout:Fm}},$m=Sm(Object.assign({},Dm,Zm,Im,Qm),wm);function eh(e){return k(()=>()=>e(),[])}var th=Object.assign({renderer:wm},Dm,Zm),nh=Object.assign({},th,Im,Qm),rh={renderer:wm,...Dm};function ih(e,t,n){pe(()=>e.on(t,n),[e,t,n])}var ah=50,oh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),sh=()=>({time:0,x:oh(),y:oh()}),ch={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},lh=new WeakMap;function uh(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=lh.get(r);i||lh.set(r,i=getComputedStyle(r));let{writingMode:a,flexDirection:o}=i,s=t===`x`!==/^[vs]/.test(a);return(s?i.direction===`rtl`!=(a===`sideways-lr`):a.endsWith(`rl`))!==(!n&&i.display.includes(`flex`)&&(s===(o[0]===`c`)?i.flexWrap:o).endsWith(`reverse`))}function dh(e,t,n,r){let i=n[t],{length:a,position:o}=ch[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=uh(e,t)?-l||0:l,i.containerLength=e[`client${a}`],i.targetLength=e[`scroll${a}`],i.scrollLength=i.targetLength-i.containerLength,i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=N(0,1,Ie(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>ah?0:Re(i.current-s,u)}function fh(e,t,n){for(let r in ch)dh(e,r,t,n);t.time=n}var ph={start:0,center:.5,end:1};function mh(e,t,n=0){let r=0;if(e in ph&&(e=ph[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var hh=[0,0];function gh(e,t,n,r){let i=Array.isArray(e)?e:hh,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,ph[e]?e:`0`]),a=mh(i[0],n,r),o=mh(i[1],t),a-o}var _h={All:[[0,0],[1,1]]};function vh(e,t){let n=e.length-1;if(n<1)return 0;let r=e[0]>e[n],i=t=>e[r?n-t:t];if(e[0]===e[1]&&t<i(0))return+!!r;let a=0;for(;a<n-1&&t>=i(a+1);)a++;let o=(a+Ie(i(a),i(a+1),t))/n;return r?1-o:o}function yh(e,{offset:t=_h.All}){for(let n in ch){let r=e[n];r.offset.length=0;for(let e=0;e<t.length;e++)r.offset[e]=gh(t[e],r.containerLength,r.targetLength,r.targetOffset);r.progress=N(0,1,vh(r.offset,r.current))}}function bh(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Io(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}function xh(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Sh(e,t,n,r={}){let{target:i}=r,a=i||r.offset;return{measure:t=>{if(a){n.time=t.time;for(let e in ch){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=bh(i,e),r=xh(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}yh(n,r)}},notify:e=>t(a?n:e)}}var Ch=new WeakMap,wh=new WeakMap,Th=new WeakMap,Eh=new WeakMap,Dh=e=>e===document.scrollingElement?window:e;function Oh(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return F;let i=Th.get(t);i||(i=new Set,Th.set(t,i));let a=Sh(t,e,sh(),r);if(i.add(a),!Ch.has(t)){let e=sh(),n=()=>{fh(t,e,R.timestamp);for(let t of i)t.measure(e);W.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>W.read(n);Ch.set(t,a);let o=Dh(t);window.addEventListener(`resize`,a),t!==document.documentElement&&wh.set(t,Gu(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!Eh.has(t)){let e=Ch.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=W.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Eh.set(t,r)}let o=Ch.get(t);return W.read(o,!1,!0),()=>{G(o);let e=Th.get(t);if(!e||(e.delete(a),e.size))return;Th.delete(t);let n=Ch.get(t);Ch.delete(t),n&&(Dh(t).removeEventListener(`scroll`,n),wh.get(t)?.(),window.removeEventListener(`resize`,n));let r=Eh.get(t);r&&(G(r),Eh.delete(t))}}function kh(e){return typeof window>`u`?!1:e?Ci():Si()}var Ah=new Map;function jh({container:e,target:t,axis:n}){let r=Ah.get(e);r||(r=new Map,Ah.set(e,r));let i=t??`self`,a=r.get(i);return a||(a={},r.set(i,a)),a[n]||(a[n]=t?new ViewTimeline({subject:t,axis:n}):new ScrollTimeline({source:e,axis:n}))}var Mh=e=>{if(/v/u.test(e))return[];let t=gh(e,0,0,0);return[gh(e,0,1,0)-t,t-gh(e,1,0,0),t]},Nh=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function Ph(e=_h.All){if(e.length!==2)return;let[t,n]=e.map(Mh),r=[Nh(t),Nh(n)],i=n[0]-t[0],a=t[1]-n[1];if(r[0]&&r[1]&&(i||a))return{points:r,a:i,b:a,cover:!t[0]&&i===1&&a===1}}function Fh(e,t){let{target:n,container:r,axis:i}=t,a=n&&Ph(t.offset),o=kh(n)&&(n?!!a:!t.offset),s=new Map,c=new Set,l,u=!1,d=(e,t)=>{let[n,r]=a.points;t.effect.updateTiming({direction:u?e===`normal`?`reverse`:`alternate-reverse`:e}),Object.assign(t,{rangeStart:u?r:n,rangeEnd:u?n:r}),t.play()},f=[e.attachTimeline({get timeline(){return o?jh(t):void 0},onAttach:a&&(e=>{let t=e.effect.getTiming().direction;s.set(e,t),d(t,e)}),observe:e=>(e.pause(),c.add(e),l||=Oh(e=>{c.forEach(t=>{t.time=t.iterationDuration*e[i].progress})},t),()=>c.delete(e))})];if(o&&a){let{a:e,b:t}=a,o=i===`y`?`clientHeight`:`clientWidth`,c=()=>{u!==(u=e*n[o]+t*r[o]<0)&&s.forEach(d)};c(),e*t<0&&f.push(Gu(c),Gu([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function Ih(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return F;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=Bo(e);return Ro(Oh(e=>n(e[t].progress,e),a))}return Ro(Fh(e,a))}var Lh=()=>({scrollX:J(0),scrollY:J(0),scrollXProgress:J(0),scrollYProgress:J(0),scrollXLength:J(0),scrollYLength:J(0)}),Rh=e=>e?!e.current:!1;function zh(e,t,n,r){return{factory:i=>{let a,o=()=>{Rh(n)||Rh(r)?Gs.read(o):a=Ih(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return Gs.read(o),()=>{Ks(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Bh(e,t){return typeof window>`u`?!1:e?Ci()&&!!Ph(t):Si()&&!t}function Vh({container:e,target:t,...n}={}){let r=M(Lh);Bh(t,n.offset)&&(r.scrollXProgress.accelerate=zh(`x`,n,e,t),r.scrollYProgress.accelerate=zh(`y`,n,e,t));let i=A(null),a=A(!1),o=se(()=>(i.current=Ih((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollXLength.set(t.scrollLength),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress),r.scrollYLength.set(n.scrollLength)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return Ce(()=>{if(a.current=!1,Rh(e)||Rh(t))a.current=!0;else return o()},[o]),k(()=>{if(!a.current)return;let n,r=()=>{let r=Rh(e),i=Rh(t);!r&&!i&&(n=o())};return Gs.read(r),()=>{Ks(r),n?.()}},[o]),r}function Hh(e){return Vh({container:e})}function Uh(){return Vh()}function Wh(e){let t=M(()=>J(e)),{isStatic:n}=O(mp);if(n){let[,n]=j(e);k(()=>t.on(`change`,n),[])}return t}function Gh(e,t){let n=Wh(t()),r=()=>n.set(t());return r(),Ce(()=>{let t=()=>W.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),G(r)}}),n}function Kh(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=Y(n)?n.get():n)}return r}return Gh(t.filter(Y),r)}function qh(e){ka.current=[],e();let t=Gh(ka.current,e);return ka.current=void 0,t}function Jh(e,t={}){return Yh(e,t,lf)}function Yh(e,t,n){let{isStatic:r}=O(mp),i=()=>Y(e)?e.get():e;if(r)return qh(i);let a=Wh(i());return pe(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function Xh(e,t={}){return Yh(e,t,mf)}function Zh(e){let t=A(0),{isStatic:n}=O(mp);k(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return W.update(r,!0),()=>G(r)},[e])}function Qh(){let e=Wh(0);return Zh(t=>e.set(t)),e}function $h(e,t,n,r){if(typeof e==`function`)return qh(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return tg(e,t,n,r);let i=typeof t==`function`?t:tf(t,n,r),a=Array.isArray(e)?eg(e,i):eg([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&!r?.mixer){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function eg(e,t){let n=M(()=>[]);return Gh(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function tg(e,t,n,r){let i=M(()=>Object.keys(n)),a=M(()=>({}));for(let o of i)a[o]=$h(e,t,n[o],r);return a}function ng(e){let t=Wh(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&W.update(n)};return ih(e,`change`,()=>{W.update(n,!1,!0)}),t}var rg=class extends Aa{constructor(){super(...arguments),this.isEnabled=!1}add(e){(q.has(e)||Bi.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function ig(){return M(()=>new rg(`auto`))}function ag(){!ql.current&&Yl();let[e]=j(Kl.current);return e}function og(){let e=ag(),{reducedMotion:t}=O(mp);return t===`never`?!1:t===`always`||e}function sg(e){e.values.forEach(e=>e.stop())}function cg(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&io(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{cg(e,t)})})}function lg(e,t){if(Array.isArray(t))return cg(e,t);if(typeof t==`string`)return cg(e,[t]);io(e,t)}function ug(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(ho(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{lg(e,t)})},stop(){e.forEach(e=>{sg(e)})},mount(){return()=>{t.stop()}}};return t}function dg(e){return typeof e==`object`&&!Array.isArray(e)}function fg(e,t,n,r){return e==null?[]:typeof e==`string`&&dg(t)?Z(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function pg(e,t,n){return e*(t+1)+n*t}function mg(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function hg(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):mg(t,r)??e}function gg(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ee(e,i),r--)}}function _g(e,t,n,r,i,a){gg(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:U(i,a,r[o]),easing:at(n,o)})}function vg(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function yg(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var bg=`easeInOut`,xg=20;function Sg(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:hg(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=Tg(e),{delay:l=0,times:u=lr(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=ki(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Og(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=I(b));let r=Nn(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&cr(u,T),c.length===1&&c.unshift(null),m&&m<xg){let e=b>0?g/b:0;b=pg(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Ke(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:at(f,e-1))}vg(u,m,e)}let E=w+b;_g(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(Y(g)){let e=Cg(g,c);b(_,v,wg(`default`,e))}else{let e=fg(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=Cg(r,c);for(let e in _)b(_[e],Eg(v,e),wg(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};return m(e,0),a&&(a.duration=p,a.labels=u),c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(yg);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(Ie(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(bg)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o;let{type:d,...f}=t;u.transition[i]={...f,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function Cg(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function wg(e,t){return t[e]||(t[e]=[]),t[e]}function Tg(e){return Array.isArray(e)?e:[e]}function Eg(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Dg=e=>typeof e==`number`,Og=e=>e.every(Dg);function kg(e,t){return Y(e)||typeof e==`number`||typeof e==`string`&&!dg(t)}function Ag(e,t,n,r){let i=[];if(kg(e,t))i.push(Js(e,dg(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=fg(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...Vs(r,t,s,Rl.get(r))):i.push(...Po(Mo(r)??Ws,r,t,s))}}return i}function jg(e,t,n,r){let i=[];return Sg(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=J(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:ir},r).forEach(({keyframes:e,transition:t},n)=>{i.push(...Ag(n,e,t))}),i}var Mg=0;function Ng(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var Pg=(e,t)=>t===void 0?e:{name:e,at:t};function Fg(e){e.pause(),e.time=0,e.stop()}var Ig=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=X.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new xa(n),this.watch()):(this.invalidate(),this.flush());let{scope:r}=t;r&&(r.animations.push(this),this.finished.then(()=>Ee(r.animations,this)))}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+Mg++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+Mg++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=Math.abs(this.speed);return this.speed=t<this.time?-n:n,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(Fg(this.group),void 0),this.isDirty=!1,this.parent=e}build(){this.isDirty=!1,this.isWrapped=!1;let e=this.group,t=0;e&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),e.cancel()):(t=e.animations.length?e.time:0,Fg(e)),this.isRebuilding=!1);let{defaultTransition:n,onComplete:r,onUpdate:i,onRepeat:a,onReverseComplete:o,autoplay:s,scope:c,...l}=this.options,u={};c?.reduceMotion!==void 0&&(u.reduceMotion=c.reduceMotion),c?.skipAnimations!==void 0&&(u.skipAnimations=c.skipAnimations),Object.assign(u,l);let d=new Map,f={},p=X.current;X.current=this.motionScope;let m;try{m=jg(this.toSequence(d),{defaultTransition:n,...u},c,f)}finally{X.current=p}let h=f.labels,g=u.duration??f.duration,_=f.duration?g/f.duration:1;if(h.forEach((e,t)=>h.set(t,e*_)),this.markers=[],d.forEach((e,t)=>{e.time=h.get(t),h.delete(t),g=Math.max(g,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=h,this.totalDuration=g,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||i||a){let e=this.clock=J(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),m.unshift(this.clockAnimation=Js(e,[0,g],{...u,duration:g,ease:`linear`}))}let v=this.group=new xa(m);t=Math.min(t,g),this.isDone&&t<g&&this.newFinished(),this.scrollTimeline?this.detachScroll=v.attachTimeline(this.scrollTimeline):(v.speed=this.playbackSpeed,this.isPaused&&v.pause(),t&&(v.time=t)),this.repeatIndex=this.currentRepeat(),this.prevTime=t||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),Pg(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?Pg(n,r):r===void 0?n:Array.isArray(n)?Ng(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:mg(e,this.labels)??this.time}currentRepeat(){let{repeat:e=0,repeatDelay:t=0,delay:n=0}=this.options,r=this.totalDuration+t,i=(this.clockAnimation?.time??0)-n;return r&&i>0?Math.min(e,Math.floor(i/r)):0}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat();if(a!==this.repeatIndex&&(this.repeatIndex=a,r?.(),i===`loop`)){let e=this.speed>0;if(this.cross(t,e?this.totalDuration:0))return;t=e?-1:1/0}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=e,!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options;(this.speed<0&&n||t)?.(),this.resolveFinished()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let e=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e&&this.finished.then(e)}};function Lg(e){return Array.isArray(e)&&e.some(Array.isArray)}function Rg(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=X.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(Lg(e)){let n={...s,...i,scope:t};o&&(n.defaultTransition={...o,...n.defaultTransition}),c=new Ig(e,n)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new Ig([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},Ag(e,i,l,t))}return c}return i}var zg=Object.assign(Rg(),{addEffect:Ao,removeEffect:jo});function Bg(){let e=M(()=>({current:null,animations:[]})),t=og()??void 0,{skipAnimations:n}=O(mp);e.reduceMotion=t,e.skipAnimations=n;let r=he(()=>Rg({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return eh(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function Vg(e,t,{deps:n=[],...r}={}){let i=A(null),a=A(t);return a.current=t,Ce(()=>{let t=i.current=Yd(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function Hg(e,t,n,r){if(e==null)return[];let i=Z(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...Ma(s,e)};i.duration&&=I(i.duration),i.delay&&=I(i.delay);let a=Ta(r),c=wa(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Kd(r,i)),Hr(t),Eo(t,i),!a&&t.length<2&&t.unshift(Kd(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new ji(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var Ug=e=>{function t(t,n,r){return new xa(Hg(t,n,r,e))}return t},Wg=Ug();function Gg(){let e=M(()=>({current:null,animations:[]})),t=M(()=>Ug(e));return eh(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function Kg(){let e=M(ug);return Ce(e.mount,[]),e}var qg=Kg;function Jg(){let e=O(we);return e?e.custom:void 0}function Yg(e,t,n,r){k(()=>{let i=e.current;if(n&&i)return Pl(i,t,n,r)},[e,t,n,r])}var Xg=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Zg=()=>new Xg;function Qg(){return M(Zg)}function $g(e){return typeof e==`object`&&!!e&&mm in e}function e_(e){if($g(e))return e[mm]}function t_(){return n_}function n_(e){Il.current&&(Il.current.isUpdating=!1,Il.current.blockUpdate(),e&&e())}function r_(){return se(()=>{let e=Il.current;e&&e.resetTree()},[])}function i_(...e){let t=A(0),[n,r]=j(e[t.current]);return[n,se(n=>{t.current=typeof n==`number`?n:He(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var a_={some:0,all:1};function o_(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Z(e);t=Bo(t);let o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:a_[i]});return a.forEach(e=>s.observe(e)),Ro(()=>s.disconnect())}function s_(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=j(a),[c,l]=j({});return k(()=>{let a=c.current=e.current;return!a||i&&o?void 0:o_(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),k(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function c_(){let[e,t]=Mp(),n=t_(),r=A(-1);return k(()=>{W.postRender(()=>W.postRender(()=>{t===r.current&&(P.instantAnimations=!1)}))},[t]),i=>{n(()=>{P.instantAnimations=!0,e(),i(),r.current=t+1})}}function l_(){P.instantAnimations=!1}function u_(){let[e,t]=j(!0);return k(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function d_(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function f_(e){return t=>{let n=e.current;if(!n)return t;let r=p_(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function p_(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var m_=new Map,h_=new Map,g_=(e,t)=>`${e}: ${q.has(t)?`transform`:t}`;function __(e,t,n){let r=g_(e,t),i=m_.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var v_,y_,b_=new Set;function x_(){b_.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),b_.clear()}function S_(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[so];if(!a)return;window.MotionHandoffAnimation=__;let o=g_(a,t);y_||(y_=Oi(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),m_.set(o,{animation:y_,startTime:null}),window.MotionHandoffAnimation=__,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return h_.has(e);let n=g_(e,t);return!!m_.get(n)},window.MotionHandoffMarkAsComplete=e=>{h_.has(e)&&h_.set(e,!0)},window.MotionHandoffIsComplete=e=>h_.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=g_(e,t),a=m_.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(b_.add(a),n.render(x_)):(m_.delete(i),m_.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=lo(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{y_.cancel();let a=Oi(e,t,n,r);v_===void 0&&(v_=performance.now()),a.startTime=v_,m_.set(o,{animation:a,startTime:v_}),i&&i(a)};h_.set(a,!1),y_.ready?y_.ready.then(s).catch(F):s()}var C_=()=>({}),w_=class extends eu{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return C_()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},T_=dm({scrapeMotionValuesFromProps:C_,createRenderState:C_});function E_(e){let[t,n]=j(e),r=T_({},!1),i=M(()=>new w_({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return me(()=>(i.mount({}),()=>i.unmount()),[i]),[t,M(()=>e=>ho(i,e))]}var D_=0,O_=({children:e})=>(k(()=>{},[]),i(Fp,{id:M(()=>`asl-${D_++}`),children:e})),k_=1e5,A_=e=>e>.001?1/e:k_;function j_(e){let t=Wh(1),n=Wh(1),{visualElement:r}=O(Gp);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:$h(t,A_),scaleY:$h(n,A_)}}var M_=w(null);function N_(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:F_(t.x)+n.x,y:F_(t.y)+n.y},i=I_(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>L_(r.y,t)<L_(r.y,e)?t:e);if(c!==s)return R_(e,o,r.x,c,a);let l=z_(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=z_(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:De(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=F_(u);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?De(e,o,o+s):e}function P_(e,t,n,r,i){let a=n>1==!!(n%2&&i)?-1:1,o=t+a;if(r===`xy`&&!(n%2)&&t>-1){let n=I_(e).sort((e,t)=>e.min-t.min),r=n[n.findIndex(({items:n})=>n.includes(e[t]))+a],i=n=>Math.abs(F_(n.layout.x)-F_(e[t].layout.x));o=r?e.indexOf(r.items.reduce((e,t)=>i(t)<i(e)?t:e)):-1}return t>-1&&e[o]?o:-1}var F_=({min:e,max:t})=>U(e,t,.5);function I_(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function L_(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function R_(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=F_(e.layout.x);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function z_(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var B_=(e,t)=>e.max<=t.min||t.max<=e.min;function V_(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=B_(e[r].x,e[i].x),n||=B_(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function H_({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l,u){let d=M(()=>u[t]),f=A(new Map),p=A(new Map),[m,h]=j(),[g,_]=j(`y`),v=A(!1),y=A(!1),b=A(null),x=n||g,S=new Set(a);for(let e of[f.current,p.current])e.forEach((t,n)=>S.has(n)||e.delete(n));let C=S.has(m)?m:a[0],w=e=>p.current.get(e)?.current?.isConnected,T=e=>S.has(e)&&h(e),E=()=>{w(C)||T(a.find(w))};k(E);let ee=()=>a.flatMap(e=>{let t=f.current.get(e);return t?[{value:e,layout:t}]:[]}),te=()=>b.current?.ownerDocument.defaultView?.getComputedStyle(b.current).direction===`rtl`,ne=(e,t)=>{let n=0,i=a.map(t=>f.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},re={axis:x,proxy:u,groupRef:b,hasReordered:y,isTabStop:e=>e===C||!S.has(e),setActive:T,checkTabStop:E,elements:p.current,onKeyDown:(e,t,n,r)=>{let{key:i,currentTarget:o}=e;if(e.defaultPrevented||e.target!==o||e.altKey||e.ctrlKey||e.metaKey)return;let s=ee(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(i===`Escape`&&n){let e=n.flatMap(e=>s.filter(t=>t.value===e));ne(s.map(t=>n.includes(t.value)?e.shift():t),t),r(o)}else if(c<0||x!==`xy`&&x!==(l?`x`:`y`))return;else{let e=n?s:s.filter(({value:e})=>w(e)),r=e.findIndex(({value:e})=>e===t),i=P_(e,r,c,x,!!l&&te());i>-1&&(n?ne(De(s,r,i),t):p.current.get(e[i].value)?.current?.focus())}e.preventDefault()},registerItem:(e,t)=>{if(f.current.set(e,t),!n){let e=V_(a.flatMap(e=>{let t=f.current.get(e);return t?[t]:[]}));e!==g&&_(e)}},updateOrder:(e,t,n)=>{if(v.current)return;let r=ee(),i=N_(r,e,t,n,x,te()?`rtl`:`ltr`);r!==i&&(v.current=!0,y.current=!0,ne(i,e))}};k(()=>{v.current=!1},[a]);let D=e=>{b.current=e,typeof l==`function`?l(e):l&&(l.current=e)},ie={overflowAnchor:`none`,...c.style};return i(d,{...c,style:ie,ref:D,onPointerDownCapture:e=>{y.current=!1,o?.(e)},onClickCapture:e=>{y.current&&e.detail&&(y.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(M_.Provider,{value:re,children:e})})}var U_=e=>ee((t,n)=>H_(t,n,e)),W_=50,G_=1.5,K_=new Set([`auto`,`scroll`]),q_=new WeakMap,J_=new WeakMap,Y_=null;function X_(){if(Y_){let e=Q_(Y_,`y`);e&&(J_.delete(e),q_.delete(e));let t=Q_(Y_,`x`);t&&t!==e&&(J_.delete(t),q_.delete(t)),Y_=null}}function Z_(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return K_.has(r)||i}function Q_(e,t){let n=e?.parentElement;for(;n;){if(Z_(n,t))return n;n=n.parentElement}return null}function $_(e){let t=Math.min(1,1-e/W_);return G_*t*t*R.delta}function ev(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;return o<W_?{amount:-$_(o),edge:`start`}:s<W_?{amount:$_(s),edge:`end`}:{amount:0,edge:null}}function tv(e,t,n,r){if(!e)return;Y_=e;let i=Q_(e,n);if(!i)return;let{amount:a,edge:o}=ev(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){J_.delete(i),q_.delete(i);return}let s=J_.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;J_.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);q_.set(i,e)}if(a>0){let e=q_.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function nv(e,t=0){return Y(e)?e:Wh(t)}function rv({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,onKeyDown:s,onFocus:c,onBlur:l,layout:u=!0,...d},f){let p=O(M_),m=M(()=>p.proxy[r]),[h,g]=j(),_={x:nv(t.x),y:nv(t.y)},v=$h([_.x,_.y],([e,t])=>e||t?1:`unset`),{axis:y,registerItem:b,updateOrder:x,groupRef:S,hasReordered:C,isTabStop:w,setActive:T,checkTabStop:E,elements:ee,onKeyDown:te}=p,ne=A(null);ee.set(n,ne);let re=A(f);re.current=f;let D=M(()=>e=>{ne.current=e;let t=re.current;if(typeof t==`function`)return t(e);t&&(t.current=e)});k(()=>E);let ie=y===`xy`||y,ae=(e,t)=>{g(t),Rl.get(e)?.animationState?.setActive(`whileDrag`,!!t)};return i(m,{drag:ie,tabIndex:w(n)?0:-1,...d,dragSnapToOrigin:!0,style:{...t,x:_.x,y:_.y,zIndex:v},layout:u,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:_.x.get(),y:_.y.get()};x(n,o,r);let s=y===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:y;tv(S.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{C.current=!1,X_(),o&&o(e,t)},onKeyDown:e=>{s?.(e),te(e,n,h,ae)},onFocus:e=>{c?.(e),T(n)},onBlur:e=>{l?.(e),h&&ae(e.currentTarget)},onLayoutMeasure:e=>{b(n,e)},ref:D,ignoreStrict:!0,children:e})}var iv=ee(rv),av=t({Group:()=>ov,Item:()=>iv}),ov=U_($m),sv=t({AnimatePresence:()=>kp,AnimateSharedLayout:()=>O_,AsyncMotionValueAnimation:()=>va,DOMKeyframesResolver:()=>Co,DOMVisualElement:()=>tu,DeprecatedLayoutGroupContext:()=>Ap,DocumentProjectionNode:()=>Fl,DragControls:()=>Xg,Feature:()=>qf,FlatTree:()=>el,GroupAnimation:()=>ya,GroupAnimationWithThen:()=>xa,HTMLProjectionNode:()=>Ll,HTMLVisualElement:()=>ou,JSAnimation:()=>Or,KeyframeResolver:()=>_i,LayoutAnimationBuilder:()=>Eu,LayoutGroup:()=>Fp,LayoutGroupContext:()=>xe,LazyMotion:()=>Hp,MotionConfig:()=>Wp,MotionConfigContext:()=>mp,MotionContext:()=>Gp,MotionGlobalConfig:()=>P,MotionValue:()=>Aa,MotionValueState:()=>Ho,NativeAnimation:()=>ji,NativeAnimationExtended:()=>Fi,NativeAnimationWrapper:()=>Sa,NodeStack:()=>Kc,ObjectVisualElement:()=>Yf,PanSession:()=>Yu,PopChild:()=>xp,PresenceChild:()=>Sp,PresenceContext:()=>we,Reorder:()=>av,SVGVisualElement:()=>ep,SubscriptionManager:()=>Le,SwitchLayoutGroupContext:()=>gm,ViewTransitionBuilder:()=>Gf,VisualElement:()=>eu,VisualElementDragControls:()=>Cd,WillChangeMotionValue:()=>rg,acceleratedValues:()=>Bi,acquireProjectionNode:()=>xu,activeScope:()=>X,addAttrValue:()=>os,addBuilderToScope:()=>zo,addDomEvent:()=>Pl,addEffect:()=>Ao,addPointerEvent:()=>ju,addPointerInfo:()=>Au,addSVGValue:()=>ls,addScaleCorrector:()=>Xs,addStyleValue:()=>qo,addToScope:()=>Ro,addUniqueItem:()=>Te,addValueToWillChange:()=>oo,alpha:()=>bt,analyseComplexValue:()=>Zt,animate:()=>zg,animateEffectSubject:()=>Po,animateElement:()=>Vs,animateLayout:()=>dp,animateMini:()=>Wg,animateMotionValue:()=>Ba,animateSingleValue:()=>Js,animateTarget:()=>po,animateValue:()=>kr,animateValues:()=>No,animateVariant:()=>mo,animateView:()=>Kf,animateVisualElement:()=>ho,animationControls:()=>ug,animationMapKey:()=>wa,animations:()=>Dm,anticipate:()=>Xe,applyAxisDelta:()=>Es,applyBoxDelta:()=>Ds,applyGeneratorOptions:()=>Ai,applyPointDelta:()=>Ts,applyPxDefaults:()=>Eo,applyTreeDeltas:()=>As,arc:()=>Ka,aspectRatio:()=>Wc,attachFollow:()=>lf,attachSpring:()=>mf,attrEffect:()=>ss,axisDeltaEquals:()=>Gc,axisEquals:()=>Bc,axisEqualsRounded:()=>Hc,backIn:()=>Je,backInOut:()=>Ye,backOut:()=>qe,bindToScope:()=>Bo,boxEquals:()=>Vc,boxEqualsRounded:()=>Uc,buildHTMLStyles:()=>$o,buildProjectionTransform:()=>Zc,buildSVGAttrs:()=>is,buildSVGPath:()=>ns,buildTransform:()=>$i,buildTransformer:()=>$t,calcAxisDelta:()=>yc,calcBoxDelta:()=>bc,calcChildStagger:()=>Ea,calcGeneratorDuration:()=>Mn,calcLength:()=>Q,calcRelativeAxis:()=>xc,calcRelativeAxisPosition:()=>Cc,calcRelativeBox:()=>Sc,calcRelativePosition:()=>wc,camelCaseAttributes:()=>Xf,camelToDash:()=>Qo,cancelFrame:()=>G,cancelMicrotask:()=>Ks,cancelSync:()=>pp,checkVariantsDidChange:()=>ap,circIn:()=>Ze,circInOut:()=>$e,circOut:()=>Qe,clamp:()=>N,cleanDirtyNodes:()=>pl,collectMotionValues:()=>ka,color:()=>V,compareByDepth:()=>$c,complex:()=>H,containsCSSVariable:()=>vt,convertBoundingBoxToBox:()=>ms,convertBoxToBoundingBox:()=>hs,convertOffsetToTimes:()=>ur,copyAxisDeltaInto:()=>pc,copyAxisInto:()=>dc,copyBoxInto:()=>fc,correctBorderRadius:()=>Jc,correctBoxShadow:()=>Yc,correctParentTransform:()=>f_,createAnimationState:()=>ip,createAxis:()=>Lc,createAxisDelta:()=>Fc,createBox:()=>$,createDelta:()=>Ic,createEffect:()=>Uo,createGeneratorEasing:()=>Nn,createProjectionNode:()=>ll,createRenderBatcher:()=>Dn,createScopedAnimate:()=>Rg,cubicBezier:()=>We,cubicBezierAsString:()=>Ti,defaultEasing:()=>dr,defaultOffset:()=>lr,defaultTransformValue:()=>Zr,defaultValueTypes:()=>Rr,degrees:()=>Pt,delay:()=>Qs,delayInSeconds:()=>$s,dimensionValueTypes:()=>vo,disableInstantTransitions:()=>l_,distance:()=>Ku,distance2D:()=>qu,domAnimation:()=>th,domMax:()=>nh,domMin:()=>rh,drag:()=>Pd,eachAxis:()=>Qc,easeIn:()=>et,easeInOut:()=>nt,easeOut:()=>tt,easingDefinitionToFunction:()=>lt,elementDragControls:()=>Sd,expectsResolvedDragConstraints:()=>Ad,extractEventInfo:()=>ku,fillOffset:()=>cr,fillWildcards:()=>Hr,filterProps:()=>am,findDimensionValueType:()=>yo,findEffect:()=>Mo,findValueType:()=>gf,flushKeyframeResolvers:()=>hi,flushLayoutSnapshots:()=>Tu,followValue:()=>cf,frame:()=>W,frameData:()=>R,frameSteps:()=>On,generateLinearEasing:()=>An,getAnimatableNone:()=>Vr,getAnimationMap:()=>Ta,getComputedStyle:()=>Kd,getDefaultTransition:()=>La,getDefaultValueType:()=>zr,getEasingForSegment:()=>at,getFeatureDefinitions:()=>$l,getFinalKeyframe:()=>_r,getMixer:()=>gn,getOptimisedAppearId:()=>lo,getOriginIndex:()=>$d,getValueAsType:()=>qi,getValueTransition:()=>Ma,getVariableValue:()=>Ya,getVariantContext:()=>cp,getViewAnimationLayerInfo:()=>Of,getViewAnimations:()=>kf,globalProjectionState:()=>tl,handOffElementState:()=>Us,has2DTranslate:()=>Ss,hasComplexValues:()=>Xt,hasReducedMotionListener:()=>ql,hasScale:()=>vs,hasTransform:()=>bs,hasWarned:()=>Be,hex:()=>Mt,hover:()=>Ld,hsla:()=>zt,hslaToRgba:()=>on,inView:()=>o_,inertia:()=>ar,initPrefersReducedMotion:()=>Yl,interpolate:()=>sr,invariant:()=>Ae,invisibleValues:()=>pn,isAnimationControls:()=>zl,isBezierDefinition:()=>ot,isBrowser:()=>Se,isCSSVariableName:()=>mt,isCSSVariableToken:()=>gt,isControllingVariants:()=>Ul,isDeltaZero:()=>zc,isDragActive:()=>cd,isDragging:()=>sd,isEasingArray:()=>it,isElementKeyboardAccessible:()=>id,isElementTextInput:()=>od,isForcedMotionValue:()=>ru,isGenerator:()=>ki,isHTMLElement:()=>Io,isKeyframesTarget:()=>to,isMotionComponent:()=>$g,isMotionValue:()=>Y,isNear:()=>vc,isNodeOrChild:()=>Rd,isNumericalString:()=>je,isObject:()=>Me,isPrimaryPointer:()=>Ou,isSVGElement:()=>Lo,isSVGSVGElement:()=>tc,isSVGTag:()=>Zf,isTransitionDefined:()=>za,isValidMotionProp:()=>rm,isVariantLabel:()=>Bl,isVariantNode:()=>Wl,isWaapiSupportedEasing:()=>Do,isWillChangeMotionValue:()=>ao,isZeroValueString:()=>Ne,keyframes:()=>fr,m:()=>Cm,makeAnimationInstant:()=>zi,makeUseVisualState:()=>dm,mapEasingToNativeEasing:()=>Di,mapValue:()=>ff,maxGeneratorDuration:()=>jn,measurePageBox:()=>Is,measureViewportBox:()=>Fs,memo:()=>Pe,microtask:()=>Gs,millisecondsToSeconds:()=>L,mirrorEasing:()=>Ge,mix:()=>Cn,mixArray:()=>_n,mixColor:()=>fn,mixComplex:()=>bn,mixImmediate:()=>sn,mixLinearColor:()=>cn,mixNumber:()=>U,mixObject:()=>vn,mixValues:()=>oc,mixVisibility:()=>mn,motion:()=>$m,motionValue:()=>J,moveItem:()=>De,nodeGroup:()=>up,noop:()=>F,number:()=>yt,numberValueTypes:()=>Lr,optimizedAppearDataAttribute:()=>co,optimizedAppearDataId:()=>so,originProps:()=>Go,parseAnimateLayoutArgs:()=>Du,parseCSSVariable:()=>Ja,parseValueFromTransform:()=>Qr,percent:()=>Ft,pipe:()=>Fe,pixelsToPercent:()=>qc,positionalKeys:()=>eo,prefersReducedMotion:()=>Kl,press:()=>Gd,processFrame:()=>qs,progress:()=>Ie,progressPercentage:()=>Rt,propEffect:()=>Ws,propagateDirtyNodes:()=>fl,px:()=>B,readSVGValue:()=>us,readStyleValue:()=>Yo,readTransformValue:()=>$r,recordStats:()=>Qd,releaseElement:()=>Hs,removeAxisDelta:()=>Ec,removeAxisTransforms:()=>Dc,removeBoxTransforms:()=>Ac,removeEffect:()=>jo,removeItem:()=>Ee,removePointDelta:()=>Tc,renderHTML:()=>nu,renderSVG:()=>Qf,resize:()=>Gu,resolveElements:()=>Z,resolveMotionValue:()=>nc,resolveTransition:()=>ja,resolveVariant:()=>Qa,resolveVariantFromProps:()=>Za,reverseEasing:()=>Ke,rgbUnit:()=>Ot,rgba:()=>kt,rootProjectionNode:()=>Il,round:()=>Dr,sampleDelta:()=>10,scale:()=>xt,scaleCorrectors:()=>Ys,scalePoint:()=>ws,scopeMotion:()=>Yd,scrapeHTMLMotionValuesFromProps:()=>iu,scrapeSVGMotionValuesFromProps:()=>$f,scroll:()=>Ih,scrollInfo:()=>Oh,secondsToMilliseconds:()=>I,setDragLock:()=>ld,setFeatureDefinitions:()=>Ql,setStyle:()=>yi,setTarget:()=>io,spring:()=>ir,springValue:()=>pf,stagger:()=>ef,startOptimizedAppearAnimation:()=>S_,startWaapiAnimation:()=>Oi,statsBuffer:()=>Zs,steps:()=>rt,styleEffect:()=>Zo,styleSubjectEffect:()=>Xo,supportedWaapiEasing:()=>Ei,supportsBrowserAnimation:()=>Ki,supportsFlags:()=>bi,supportsLinearEasing:()=>wi,supportsPartialKeyframes:()=>Oo,supportsScrollTimeline:()=>Si,supportsViewTimeline:()=>Ci,supportsWaapi:()=>Gi,svgEffect:()=>fs,svgSubjectEffect:()=>ds,sync:()=>fp,testValueType:()=>_o,time:()=>z,toMediaQuery:()=>Jd,transform:()=>tf,transformAxis:()=>Ms,transformBox:()=>Ps,transformBoxPoints:()=>gs,transformPropOrder:()=>K,transformProps:()=>q,transformValue:()=>df,transformValueTypes:()=>Ir,transformViewBoxPoint:()=>d_,translateAxis:()=>js,unwrapMotionComponent:()=>e_,updateMotionValuesFromProps:()=>Gl,useAnimate:()=>Bg,useAnimateMini:()=>Gg,useAnimation:()=>qg,useAnimationControls:()=>Kg,useAnimationFrame:()=>Zh,useComposedRefs:()=>_p,useCycle:()=>i_,useDeprecatedAnimatedState:()=>E_,useDeprecatedInvertedScale:()=>j_,useDomEvent:()=>Yg,useDragControls:()=>Qg,useElementScroll:()=>Hh,useFollowValue:()=>Jh,useForceUpdate:()=>Mp,useInView:()=>s_,useInstantLayoutTransition:()=>t_,useInstantTransition:()=>c_,useIsPresent:()=>Tp,useIsomorphicLayoutEffect:()=>Ce,useMotionTemplate:()=>Kh,useMotionValue:()=>Wh,useMotionValueEvent:()=>ih,usePageInView:()=>u_,usePresence:()=>wp,usePresenceData:()=>Jg,useReducedMotion:()=>ag,useReducedMotionConfig:()=>og,useResetProjection:()=>r_,useScopeMotion:()=>Vg,useScroll:()=>Vh,useSpring:()=>Xh,useTime:()=>Qh,useTransform:()=>$h,useUnmountEffect:()=>eh,useVelocity:()=>ng,useViewportScroll:()=>Uh,useWillChange:()=>ig,variantPriorityOrder:()=>Vl,variantProps:()=>Hl,velocityPerSecond:()=>Re,vh:()=>It,visualElementStore:()=>Rl,vw:()=>Lt,warnOnce:()=>Ve,warning:()=>ke,wrap:()=>He}),cv=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},lv=sv;cv.register([`framer-motion`,`motion/react`,`motion`],lv),window.Motion=lv})();
1
+ (function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:T,createRef:E,forwardRef:D,isValidElement:O,lazy:ee,memo:te,startTransition:k,unstable_useCacheRefresh:ne,use:re,useActionState:ie,useCallback:A,useContext:j,useDebugValue:ae,useDeferredValue:oe,useEffect:M,useEffectEvent:se,useId:ce,useImperativeHandle:le,useInsertionEffect:ue,useLayoutEffect:de,useMemo:fe,useOptimistic:pe,useReducer:me,useRef:N,useState:he,useSyncExternalStore:ge,useTransition:_e,version:ve}=o,ye=w({});function P(e){let t=N(null);return t.current===null&&(t.current=e()),t.current}var be=typeof window<`u`,F=be?de:M,xe=w(null);function Se(e,t){e.indexOf(t)===-1&&e.push(t)}function Ce(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function we([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var I=(e,t,n)=>n>t?t:n<e?e:n;function Te(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ee=()=>{},De=()=>{},L={},Oe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ke=e=>typeof e==`object`&&!!e,Ae=e=>/^0[^.\s]+$/u.test(e);function je(e){let t;return()=>(t===void 0&&(t=e()),t)}var R=e=>e,Me=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ne=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Pe=class{constructor(){this.subscriptions=[]}add(e){return Se(this.subscriptions,e),()=>this.remove(e)}remove(e){Ce(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},z=e=>e*1e3,Fe=e=>e/1e3,Ie=(e,t)=>t?1e3/t*e:0,Le=new Set;function Re(e){return Le.has(e)}function ze(e,t,n){e||Le.has(t)||(console.warn(Te(t,n)),Le.add(t))}var Be=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ve=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function He(e,t,n,r){return e===t&&n===r?R:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ve(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ve(s+1e-7,e,n)-i-r)}return Ve(s,t,r)}}var Ue=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,We=e=>t=>1-e(1-t),Ge=He(.33,1.53,.69,.99),Ke=We(Ge),qe=Ue(Ke),Je=e=>e>=1?1:(e*=2)<1?.5*Ke(e):.5*(2-2**(-10*(e-1))),Ye=e=>1-Math.sin(Math.acos(e)),Xe=We(Ye),Ze=Ue(Ye),Qe=He(.42,0,1,1),$e=He(0,0,.58,1),et=He(.42,0,.58,1);function tt(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return I(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var nt=e=>Array.isArray(e)&&typeof e[0]!=`number`;function rt(e,t){return nt(e)?e[Be(0,e.length,t)]:e}var it=e=>Array.isArray(e)&&typeof e[0]==`number`,at={linear:R,easeIn:Qe,easeInOut:et,easeOut:$e,circIn:Ye,circInOut:Ze,circOut:Xe,backIn:Ke,backInOut:qe,backOut:Ge,anticipate:Je},ot=e=>typeof e==`string`,st=e=>{if(it(e)){let[t,n,r,i]=e;return He(t,n,r,i)}return ot(e)?at[e]:e},B={delta:0,timestamp:0,isProcessing:!1},ct;function lt(){ct=void 0}var V={now:()=>(ct===void 0&&V.set(B.isProcessing||L.useManualTiming?B.timestamp:performance.now()),ct),set:e=>{ct=e,queueMicrotask(lt)}},ut=e=>Math.round(e*1e5)/1e5,dt=e=>t=>typeof t==`string`&&t.startsWith(e),ft=dt(`--`),pt=dt(`var(--`),mt=e=>pt(e)?ht.test(e.split(`/*`)[0].trim()):!1,ht=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var _t={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},vt={..._t,transform:e=>I(0,1,e)},yt={..._t,default:1},bt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xt(e){return e==null}var St=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ct=(e,t)=>n=>!!(typeof n==`string`&&St.test(n)&&n.startsWith(e)||t&&!xt(n)&&Object.prototype.hasOwnProperty.call(n,t)),wt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(bt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Tt=e=>I(0,255,e),Et={..._t,transform:e=>Math.round(Tt(e))},Dt={test:Ct(`rgb`,`red`),parse:wt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Et.transform(e)+`, `+Et.transform(t)+`, `+Et.transform(n)+`, `+ut(vt.transform(r))+`)`},Ot=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function kt(e){let t=e.length>5?2:1,n=Ot(e,3,t);return{red:parseInt(Ot(e,0,t),16),green:parseInt(Ot(e,1,t),16),blue:parseInt(Ot(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var At={test:Ct(`#`),parse:kt,transform:Dt.transform},jt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=jt(`deg`),Nt=jt(`%`),H=jt(`px`),Pt=jt(`vh`),Ft=jt(`vw`),It={...Nt,parse:e=>Nt.parse(e)/100,transform:e=>Nt.transform(e*100)},Lt={test:Ct(`hsl`,`hue`),parse:wt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Nt.transform(ut(t))+`, `+Nt.transform(ut(n))+`, `+ut(vt.transform(r))+`)`},U={test:e=>Dt.test(e)||At.test(e)||Lt.test(e),parse:e=>Dt.test(e)?Dt.parse(e):Lt.test(e)?Lt.parse(e):At.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Dt.transform(e):Lt.transform(e),getAnimatableNone:e=>{let t=U.parse(e);return t.alpha=0,U.transform(t)}},Rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,zt=new RegExp(bt.source),Bt=new RegExp(Rt.source,`i`);function Vt(e){return isNaN(e)&&typeof e==`string`&&(zt.test(e)||Bt.test(e))}var Ht=`number`,Ut=`color`,Wt=`var`,Gt=`var(`,Kt="${}",qt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function Jt(e){let t=e.toString();return zt.test(t)||Bt.test(t)}function Yt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(qt,e=>(U.test(e)?(r.color.push(a),i.push(Ut),n.push(U.parse(e))):e.startsWith(Gt)?(r.var.push(a),i.push(Wt),n.push(e)):(r.number.push(a),i.push(Ht),n.push(parseFloat(e))),++a,Kt)).split(Kt),indexes:r,types:i}}function Xt(e){return Yt(e).values}function Zt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Ht?ut(r[a]):e===Ut?U.transform(r[a]):r[a]}return i}}function Qt(e){return Zt(Yt(e))}var $t=e=>typeof e==`number`?0:U.test(e)?U.getAnimatableNone(e):e,en=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:$t(e);function tn(e){let t=Yt(e);return Zt(t)(t.values.map((e,n)=>en(e,t.split[n])))}var W={test:Vt,parse:Xt,createTransformer:Qt,getAnimatableNone:tn};function nn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=nn(s,r,e+1/3),a=nn(s,r,e),o=nn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function an(e,t){return n=>n>0?t:e}var G=(e,t,n)=>e+(t-e)*n,on=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},sn=[At,Dt,Lt],cn=e=>sn.find(t=>t.test(e));function ln(e){let t=cn(e);if(!t)return!1;let n=t.parse(e);return t===Lt&&(n=rn(n)),n}var un=(e,t)=>{let n=ln(e),r=ln(t);if(!n||!r)return an(e,t);let i={...n};return e=>(i.red=on(n.red,r.red,e),i.green=on(n.green,r.green,e),i.blue=on(n.blue,r.blue,e),i.alpha=G(n.alpha,r.alpha,e),Dt.transform(i))},dn=new Set([`none`,`hidden`]);function fn(e,t){return dn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pn(e,t){return n=>G(e,t,n)}function mn(e){return typeof e==`number`?pn:typeof e==`string`?mt(e)?an:U.test(e)?un:vn:Array.isArray(e)?hn:typeof e==`object`?U.test(e)?un:gn:an}function hn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>mn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _n(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var vn=(e,t)=>{let n=Yt(e),r=Yt(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?dn.has(e)&&!r.values.length||dn.has(t)&&!n.values.length?fn(e,t):Me(hn(_n(n,r),r.values),Zt(r)):an(e,t)},yn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function bn(e,t){let n=yn.exec(e);if(!n)return;let r=yn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ut(G(a,o,e))+i}function xn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return G(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=bn(e,t);if(n)return n}return mn(e)(e,t)}var Sn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Cn(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var wn=40;function Tn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Sn.reduce((e,t)=>(e[t]=Cn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=L.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,wn),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Sn.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Sn.length;t++)o[Sn[t]].cancel(e)},state:n,steps:o}}var{schedule:K,cancel:q,steps:En}=Tn(typeof requestAnimationFrame<`u`?requestAnimationFrame:R,!0,B),Dn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>K.update(t,e),stop:()=>q(t),now:()=>B.isProcessing?B.timestamp:V.now()}},On=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},kn=2e4;function An(e,t=50,n=kn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function jn(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(An(o),kn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Fe(s)}}var Mn=100,Nn=10,Pn=1,Fn=800,In=.3,Ln=.3,Rn=.01,zn=2,Bn=.005,Vn=.5,Hn=.01,Un=10,Wn=.05,Gn=e=>e<0?1/Math.max(1+e,Wn):Math.max(1-e,Wn);function Kn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Yn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function qn(e,t){return e*Math.sqrt(1-t*t)}var Jn=12;function Yn(e,t,n){let r=n;for(let n=1;n<Jn;n++)r-=e(r)/t(r);return r}var Xn=.001;function Zn({duration:e=Fn,bounce:t=In}){let n,r,i=Gn(t);e=I(Hn,Un,Fe(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=qn(t,i),o=Math.exp(-r);return Xn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=qn(t*t,i);return(-n(t)+Xn>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Yn(n,r,a),s=o*Kn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:z(e)}}var Qn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function $n(e,t){if(Qn(e,t))return e}function er(e){let t=$n(e.stiffness),n=$n(e.damping,!0),r=$n(e.mass),i={...e,stiffness:t??Mn,damping:n??Nn,mass:r??Pn,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Gn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Kn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Zn(i)),i.isResolvedFromDuration=!0;Qn(i.stiffness)&&Qn(i.damping,!0)||(i.stiffness=Mn,i.damping=Nn)}return i}function tr(e=Ln,t=In){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=er({...n}),f=e=>u?0:-Fe(e),p=s/(2*Math.sqrt(o*c)),m=Fe(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Rn:zn),g.restDelta=n.restDelta||(e?Bn:Vn)};_();let v,y,b;if(p<1){let e=qn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>z(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=z(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(An(S),kn),t=On(t=>S.next(e*t).value,e,30);return e+`ms `+t}};return S}var nr=Object.assign(tr,{applyToOptions:e=>{let t=jn(e,100,tr);return e.ease=t.ease,e.duration=z(t.duration),e.type=`keyframes`,e}});function rr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=nr({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function ir(e,t,n){let r=[],i=L.mix||xn,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=Me(Array.isArray(t)?t[o]||R:t,a)),r.push(a)}return r}function ar(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ir(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ne(e[r],e[r+1],n);return s[r](i)};return n?t=>l(I(e[0],e[a-1],t)):l}function or(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ne(0,t,r);e.push(G(n,1,i))}}function sr(e){let t=[0];return or(t,e.length-1),t}function cr(e,t){return e.map(e=>e*t)}function lr(e,t){return e.map(()=>t||et).splice(0,e.length-1)}function ur({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=nt(r)?r.map(st):st(r)||et,s={done:!1,value:t[0]},c=-1;if(!a){for(let e=1;e<t.length;e++)if(t[e]!==t[e-1]){if(c>=0){c=-2;break}c=e-1}}if(c>=0){let r=n&&n.length===t.length?n:sr(t),i=r[c]*e,a=r[c+1]*e,l=t[c],u=t[c+1],d=Array.isArray(o)?o[c]:o,f=(L.mix||xn)(l,u),p=t.length-2;return{calculatedDuration:e,next:t=>(s.value=c&&t<i?f(0):c<p&&(t>=a||!e)?typeof u==`number`?u:f(1):f(d(t>=a||!e?1:t<=i?0:(t-i)/(a-i))),s.done=t>=e,s)}}let l=ar(cr(n&&n.length===t.length?n:sr(t),e),t,{ease:Array.isArray(o)?o:lr(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var dr=5;function fr(e,t,n){let r=Math.max(t-dr,0);return Ie(n-e(r),t-r)}function pr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):fr(t=>e.next(t).value,t,e.next(t).value)}function mr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a,o,s=0;for(let t=0;t<e.length;t++){let n=e[t];n!==null&&(s++||(a=n),o=n)}let c=i<0||t&&n!==`loop`&&t%2==1?0:s-1;return!c||r===void 0?c?o:a:r}var hr={decay:rr,inertia:rr,tween:ur,keyframes:ur,spring:nr};function gr(e){typeof e.type==`string`&&(e.type=hr[e.type])}var _r=40,vr=(e,t)=>t-e>_r&&!L.useManualTiming?t:e;function yr(e,t){return{kind:e,animation:t,timestamp:V.now(),frameTimestamp:B.timestamp,frameIsProcessing:B.isProcessing}}function br(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...yr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function xr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...yr(`layout-animation-start`,e),node:t})}catch{}}var Sr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Cr=e=>e/100,wr=e=>Math.round(e*1e4)/1e4,Tr=class extends Sr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options,t=V.now();e&&e.updatedAt!==t&&this.tick(e.updatedAt=t),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),br(this,this.options)}initAnimation(){let{options:e}=this;gr(e);let{type:t=ur,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ur;this.mixKeyframes=void 0,s!==ur&&typeof o[0]!=`number`&&(this.mixKeyframes=Me(Cr,e.mixer?.(o[0],o[1])||xn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=An(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=vr(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==rr&&(f.value=mr(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??wr((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==rr?mr(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=I(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return Fe(this.calculatedDuration)}get iterationDuration(){return this.duration+Fe(this.options.delay??0)}get time(){return Fe(this.currentTime)}set time(e){this.state===`finished`&&this.updateFinished(),e=z(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return pr(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(V.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Fe(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Dn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(V.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Er(e){return new Tr(e)}var Dr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Or(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(bt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Dr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var kr=/\b([a-z-]*)\(.*?\)/gu,Ar={...W,getAnimatableNone:e=>{let t=e.match(kr);return t?t.map(Or).join(` `):e}},jr={...W,getAnimatableNone:e=>{let t=W.parse(e);return W.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Mr={..._t,transform:Math.round},Nr={rotate:Mt,pathRotation:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:yt,scaleX:yt,scaleY:yt,scaleZ:yt,skew:Mt,skewX:Mt,skewY:Mt,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:vt,originX:It,originY:It,originZ:H},Pr={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,...Nr,zIndex:Mr,fillOpacity:vt,strokeOpacity:vt,numOctaves:Mr},Fr={...Pr,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Ar,WebkitFilter:Ar,mask:jr,WebkitMask:jr},Ir=e=>Fr[e],Lr=new Set([Ar,jr]),Rr,zr,Br;function Vr(e,t){if(e===Rr&&t===zr)return Br;let n=Ir(e);return Lr.has(n)||(n=W),Br=n.getAnimatableNone?n.getAnimatableNone(t):void 0,Rr=e,zr=t,Br}function Hr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ur=e=>e*180/Math.PI,Wr=e=>Kr(Ur(Math.atan2(e[1],e[0]))),Gr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wr,rotateZ:Wr,skewX:e=>Ur(Math.atan(e[1])),skewY:e=>Ur(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kr=e=>(e%=360,e<0&&(e+=360),e),qr=Wr,Jr=e=>Math.hypot(e[0],e[1]),Yr=e=>Math.hypot(e[4],e[5]),Xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jr,scaleY:Yr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Jr(e)+Yr(e))/2,rotateX:e=>Kr(Ur(Math.atan2(e[6],e[5]))),rotateY:e=>Kr(Ur(Math.atan2(-e[2],e[0]))),rotateZ:qr,rotate:qr,skewX:e=>Ur(Math.atan(e[4])),skewY:e=>Ur(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zr(e){return+!!e.includes(`scale`)}function Qr(e,t){if(!e||e===`none`)return Zr(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return Zr(t);let r=(n[1]?Xr:Gr)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var $r=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qr(n,t)},ei=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],J=new Set([...ei,`pathRotation`]),ti=e=>e===_t||e===H,ni=new Set([`x`,`y`,`z`]),ri=ei.filter(e=>!ni.has(e));function ii(e){let t=[];return ri.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var ai=new Set([`bottom`,`right`]);function oi(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var si=({transform:e})=>Qr(e,`x`),ci=({transform:e})=>Qr(e,`y`),li={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>oi(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>oi(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:si,y:ci,translateX:si,translateY:ci},ui=new Set,di=!1,fi=!1,pi=!1;function mi(){if(fi){let e=[],t=new Set,n=new Set;ui.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ai.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ii(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}fi=!1,di=!1,ui.forEach(e=>e.complete(pi)),ui.clear()}function hi(){ui.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fi=!0)})}function gi(){pi=!0,hi(),mi(),pi=!1}function _i(e,t,n){if(typeof e==`string`){if(Oe(e)||Ae(e))return parseFloat(e);if(!W.test(e)&&W.test(n))return Vr(t,n)}return e??void 0}var vi=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ui.add(this),di||(di=!0,K.read(hi),K.resolveKeyframes(mi))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=_i(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Hr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ui.delete(this)}cancel(){this.state===`scheduled`&&(ui.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},yi=e=>e.startsWith(`--`);function bi(e,t,n){yi(t)?e.style.setProperty(t,n):e.style[t]=n}var xi={};function Si(e,t){let n=je(e);return()=>xi[t]??n()}var Ci=Si(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),wi=Si(()=>window.ViewTimeline!==void 0,`viewTimeline`),Ti=Si(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ei=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Di={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ei([0,.65,.55,1]),circOut:Ei([.55,0,1,.45]),backIn:Ei([.31,.01,.66,-.59]),backOut:Ei([.33,1.53,.69,.99])};function Oi(e,t){if(e)return typeof e==`function`?Ti()?On(e,t):`ease-out`:it(e)?Ei(e):Array.isArray(e)?e.map(e=>Oi(e,t)||Di.easeOut):Di[e]}function ki(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Oi(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ai(e){return typeof e==`function`&&`applyToOptions`in e}function ji({type:e,...t}){return Ai(e)&&Ti()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Mi=class extends Sr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e;let c=ji(e);this.animation=ki(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!i){let e=mr(r,this.options,o,this.speed);this.updateMotionValue?.(e),bi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},br(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Fe(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Fe(e)}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=z(e),t&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=this.onFinish=null,e&&Ci()?(this.animation.timeline=e,t?.(this.animation),R):n(this)}},Ni={anticipate:Je,backInOut:qe,circInOut:Ze};function Pi(e){return e in Ni}function Fi(e){typeof e.ease==`string`&&Pi(e.ease)&&(e.ease=Ni[e.ease])}var Ii=class extends Mi{constructor(e){Fi(e),gr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(V.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Tr({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?I(0,10,a):0,s=this.sample(a);n&&r&&bi(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Li=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(W.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ri(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function zi(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Li(i,t),s=Li(a,t);return!o||!s?!1:Ri(e)||(n===`spring`||Ai(n))&&r}function Bi(e){e.duration=0,e.type=`keyframes`}var Vi=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Hi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ui(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Hi.test(e[t]))return!0;return!1}var Wi=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),Gi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ki=()=>!L.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function qi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Vi.has(n)||Gi.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ki()&&(Vi.has(n)||Gi.has(n)&&Ui(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!Wi(e)}var Ji=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Yi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Xi=ei.length,Zi={},Qi=(e,t,n=Ji(t,Nr[e]))=>(Zi[e]||(Zi[e]=(Yi[e]||e)+`(`))+n+`)`,$i=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function ea(e,t,n){let r=``;for(let i=0;i<Xi;i++){let a=ei[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=Ji(o,Pr[a]));$i(a,o)||(r+=Qi(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=Qi(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var ta=new WeakMap,na=200,ra=.001,ia=.1,aa=.001,oa=100,sa=100,ca=new Set([`linear`,`easeIn`,`easeOut`,`easeInOut`]),la=e=>ca.has(e),ua=new WeakMap,da=(e,t)=>{let n=ua.get(e);return n?.[0]!==t&&(n=[t,`linear(`+sr(Array(t+1)).map(t=>wr(e(t))+` `+wr(t*100)+`%`)+`)`],ua.set(e,n)),n[1]},fa=(e,t)=>Math.min(na,Math.max(2,Math.ceil((t-e)/10))),pa=(e,t)=>Math.abs(e-t)<=ra,ma=(e,t)=>e-t,ha=(e,t,n)=>sr(Array(n+1)).map(n=>G(e,t,n)),ga=e=>e.motionValue.owner,_a=e=>ta.get(e),va=({state:e})=>e===`idle`||e===`finished`,ya=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ba=({name:e,motionValue:t})=>e&&ei.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ki()&&Ti();function xa(e){let t=ga(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(ya(t,`transform`)||`none`)===`none`&&!ya(t,`pathRotation`)&&!t.projection?.isProjecting()&&!Wi(e)}var Sa=class{constructor(e,t,n,r){this.element=e,this.update=t,this.makeDriver=n,this.animation=r}get js(){return this.driver||=this.makeDriver(this.update)}now(){return this.driver||this.makeDriver!==Dn?this.js.now():B.isProcessing?B.timestamp:V.now()}start(e=!0){let t=_a(this.element);!t||t.isJS?this.js.start(e):t.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=_a(this.element);e&&!e.isFinishing&&e.release(this.animation)}},Ca,wa=class extends Tr{constructor(e){let t=ga(e).current,{driver:n=Dn}=e,r,i=xa(e);e.driver=e=>new Sa(t,e,n,r),super(e),r=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=i;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:e,times:t}=this.options;return t||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=sr(e)),this.cachedOffsets)}get group(){return _a(ga(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(V.now()):void 0}tween(){let{keyframes:e,type:t,repeat:n,delay:r=0}=this.options,i=-1;if(n||t!==ur||this.holdTime!==null)return;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]){if(i>=0)return;i=t-1}let{ease:a}=this.options;nt(a)&&(a=a[i]);let o=this.offsets(),s=e=>this.startTime+(r+o[e]*this.totalDuration)/this.speed;if(i>=0){let e=it(a)?Ei(a):la(a)?Di[a]:st(a);return[s(i),s(i+1),typeof e==`string`||pa(e(0),0)&&pa(e(1),1)?e:void 0]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,type:u}=a,d=(u||ur)===ur?this.offsets():[0,1],f=n+o/r,p=[];if(this.holdTime!==null||!(i>0))return p;for(let n=Math.max(0,Math.floor((e-f)*r/i));n<=s;n++){let a=f+n*i/r;if(a>t)break;for(let o of d){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&p.push(s)}}return p}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=V.now(),t=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-10,!0):t,t,10)}play(){this.isStopped||((this.group||Da(ga(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(V.now())}get time(){return this.isAccelerated()?Fe(I(0,this.totalDuration,this.at(V.now())-(this.options.delay||0))):super.time}set time(e){(Ca??=Object.getOwnPropertyDescriptor(Tr.prototype,`time`).set).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},Ta,Ea=e=>{Ta||queueMicrotask(()=>{let e=Ta;Ta=void 0,e.forEach(e=>e())}),(Ta||=[]).push(e)};function Da(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p,m=1/0,h,g=e=>{for(let t of n)if(t.name===e)return!0},_=(t,n)=>{let o={};for(let s of t===void 0?ei:a){let a=r.get(s),c=t===void 0?ya(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},v=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&$i(r,i)||(n+=Qi(r,i)+` `)}return(t?n.trim():n)||`none`},y=(e,t)=>v(_(e,t)),b=(e=_())=>{t.style.transform=v(e,!0)},x=e=>{e.onfinish=e.oncancel=null,e.cancel()},S=(e=!0)=>{clearTimeout(p),m=1/0,h=void 0,e&&b(),s.forEach(({animation:e})=>x(e)),s=[]},C=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),w=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=V.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(x(e),s=s.filter(e=>e!==r)),A.schedule(!1)}),e.oncancel=()=>s.includes(r)&&A.demote(),s.push(r)},T=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},E=(e,t,n,r)=>{let i=fa(t,n);if(r.length*4>i)return;let a;for(let r of e){let e=r.numberAt(t),i=(r.numberAt((t+n)/2)-e)/(r.numberAt(n)-e);if(i===i){if(a===void 0)a=i;else if(!pa(i,a))return}}let o=ha(t,n,i).concat(r).sort(ma),s=e=>Ne(t,n,e),c,l;for(let n of e){let e=n.numberAt(t),r=o.map(t=>n.numberAt(t)-e),i=r[r.length-1],a=r.some(e=>Math.abs(e)*ra>Math.abs(i))?0:i,s=r.map(e=>a?e/a:e);if(a&&!c)c=s,l=t=>(n.numberAt(t)-e)/a;else if(s.some((e,t)=>!pa(e,a&&c[t])))return}if(!c||c.every((e,t)=>pa(e,s(o[t]))))return`linear`;let u=[],d=(e,t=l(e))=>u.push(wr(t)+` `+wr(s(e)*100)+`%`);return c.forEach((e,t)=>{t&&Math.abs(e-c[t-1])>.2&&T(l,o[t-1],o[t]).forEach(e=>d(e)),d(o[t],e)}),`linear(`+u+`)`},D=(e,t,n,r)=>{let i=[t],a=[],o=n,s=t;for(let r of e){let e=r.tween();if(e?.[2]!==`linear`){let[i,c]=r.timing(),[l,u]=e||[t,c?n:i];o=Math.min(o,l),s=Math.max(s,u),a.push(r)}}o=Math.max(t,o),s=Math.min(n,s);let c=(e,t)=>a.every(n=>!(Math.abs(n.numberAt((e+t)/2)-(n.numberAt(e)+n.numberAt(t))/2)>(n.name.startsWith(`scale`)?aa:ia))),l=(t,n,r)=>{if(n-t<1||c(t,n))i.push(n);else if(r<4)l(t,(t+n)/2,r+1),l((t+n)/2,n,r+1);else{for(let r of e)i.push(...T(e=>r.numberAt(e),t,n));i.push(n)}},u=s>o?ha(o,s,Math.ceil((s-o)/100)):[];u.push(n);for(let e of r)u.push(e,Math.min(e+.01,n));let d=t;for(let e of u.sort(ma))e>d&&l(d,e,0),d=e;return i.sort(ma)},O=e=>{let t;for(let n of e){let e=n.tween();if(!e||t&&(Math.abs(e[0]-t[0])>1||Math.abs(e[1]-t[1])>1))return;t=[e[0],e[1],!t||e[2]===t[2]?e[2]:void 0]}return t},ee=(e,t,n,r,i={fill:`both`},a)=>{let o=r?[]:e.flatMap(e=>e.boundaries(t,n)),s=r||E(e,t,n,o),c=s?[t,n]:D(e,t,n,o),l=c.map(e=>y(e,a)),u={transform:l};return s||(u.offset=c.map(e=>Ne(t,n,e))),l.every(e=>e===l[0])&&(b(_(t,a)),u=null),C(u,{...i,duration:n-t,easing:s||`linear`})},te=e=>{let t=V.now()+e;t<m&&(clearTimeout(p),m=t,p=setTimeout(()=>{m=1/0,A.schedule(!1)},e))},k=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),!a){if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=ei.filter(t=>{if(r.has(t))return!0;let n=i[t]=ya(e,t);return n!==void 0&&!$i(t,n)}),S(!1);let m=!l&&O(d);try{if(c>t){let e;if(m&&m[1]>t){let[n,r,i]=m;if(n-t>sa)return d.forEach(e=>e.sync()),te(h=n-t-sa),!0;e=typeof i==`string`?i:i?da(i,fa(n,r)):E(d,n,r,[]),e&&w(ee(d,n,r,e,{fill:`both`,endDelay:c-r}),n-t,c-n)}e||w(ee(d,t,c),0,c-t),p.forEach(e=>e<c-1&&w(C(null,{duration:e-t}),0,e-t))}if(l){let e=u+Math.floor((c-u)/l)*l;w(ee(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||S(),!0},ne=(e,t)=>{let r,i=0;for(let t of n){let n=o.get(t);if(!n)return!1;let[a,c,l]=n,u=t.at(e),d=t.timing()[0]===1/0;if(l){if(d&&(u===a||!s.length))continue;return!1}let f=(u-a)/c,p=d?0:t.speed/c;if(r===void 0)r=f,i=p;else if(Math.abs(f-r)>1||p!==i)return!1}if(r===void 0)return!0;if(!s.length){if(h===void 0||t&&i)return!1;if(i){let e=(h-r)/i;if(e<1)return!1;te(e)}return!0}for(let{offset:e,end:n,isDone:i}of s){let a=r-e;if(n<1/0&&(i?a<n-1:a<0&&(t||e<=0)||a>=n))return!1}for(let{animation:t,offset:n,isDone:a}of s){if(a)continue;let o=r-n;i&&t.updatePlaybackRate&&t.playState===`running`&&Math.abs(Number(t.currentTime)-o)<20?t.playbackRate!==i&&t.updatePlaybackRate(i):i?(t.playbackRate!==i&&(t.playbackRate=i),t.startTime=e-o/i):(t.startTime=null,t.currentTime=o)}return!0},re=()=>!n.size&&(u=!0,_a(t)===A&&ta.delete(t),A.isJS||S(),!0),ie=()=>{let t=V.now();if(A.isJS||(A.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=ya(e,n.name),o.has(n)||(c=!0))}),A.isFinishing=!1),l=!1,u||(n.forEach(e=>va(e)&&n.delete(e)),re()))return;for(let e of n)if(!e.canAccelerate)return A.demote(!0);A.isJS&&(A.isJS=!1,c=!0,n.forEach(e=>e.stopJS()));let r=c,a=d;if(c=d=!1,r||!ne(t,a)){if(a){if(t-f<oa)return A.demote();f=t}if(!k(t))return A.demote()}else if(h!==void 0&&!a)return;n.forEach(e=>e.timing()[0]===1/0&&e.sync())},A={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,B.isProcessing?K.render(ie,!1,!0):Ea(ie)))},release(e){va(e)&&n.delete(e),re()||A.schedule(!0)},check(){if(!A.isJS){for(let t in i)if(ya(e,t)!==i[t]&&!g(t))return A.schedule(!0,!0)}},demote(e){if(!(A.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),A.isJS=!0,o=new Map,S(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return ta.set(t,A),A}var Oa=class extends Sr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=V.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||vi;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=V.now();let u=zi(e,i,a,o);u||((L.instantAnimations||!s)&&l?.(mr(e,n,t)),e[0]=e[e.length-1],Bi(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&qi(n),p=!f&&ba(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=vr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Ii(n)}catch{m=new Tr(n)}}else m=p?new wa(n):new Tr(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),gi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation?.cancel(),this.keyframeResolver?.cancel()}},ka=class{constructor(e){this.stop=()=>{for(let e of this.animations)e.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){for(let t of this.animations)t.time=e}get speed(){return this.getAll(`speed`)}set speed(e){for(let t of this.animations)t.speed=e}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Aa(this.animations,`duration`)}get iterationDuration(){return Aa(this.animations,`iterationDuration`)}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function Aa(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var ja=class extends ka{then(e,t){return this.finished.finally(e).then(()=>{})}},Ma=class extends Mi{constructor(e){super(),this.animation=e,e.onfinish=this.onFinish=()=>{e.onfinish=null,this.finishedTime=this.time,this.notifyFinished()},br(this,{})}},Na=new WeakMap,Pa=(e,t=``)=>`${e}:${t}`;function Fa(e){let t=Na.get(e);return t||(t=new Map,Na.set(e,t)),t}function Ia(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var La=30,Ra=e=>!isNaN(parseFloat(e)),za={current:void 0},Ba=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=V.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.dirty(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=V.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ra(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Pe)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Pe,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){K.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){t&&(this.updatedAt=V.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||=new Set).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){za.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=V.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>La)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,La);return Ie(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return new Promise(t=>this.run(e,t))}run(e,t){this.stop(),this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&(this.animation=void 0),t?.()}),n||(this.animation=r),this.events.animationStart?.notify()}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function Y(e,t){return new Ba(e,t)}function Va(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ha(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Va(n,e)}var Ua={type:`spring`,stiffness:500,damping:25,restSpeed:10},Wa=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ga={type:`keyframes`,duration:.8},Ka={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},qa=(e,{keyframes:t})=>t.length>2?Ga:J.has(e)?e.startsWith(`scale`)?Wa(t[1]):Ua:Ka,Ja=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function Ya(e){for(let t in e)if(!Ja.has(t))return!0;return!1}var Xa=(e,t,n,r={},i,a)=>o=>{let s=Ha(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=z(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Ya(s)||Object.assign(u,qa(e,u)),u.duration&&=z(u.duration),u.repeatDelay&&=z(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Bi(u),u.delay===0&&(d=!0)),(L.instantAnimations||L.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Bi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=mr(u.keyframes,s);if(e!==void 0){K.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Tr(u):new Oa(u)},Za=20;function Qa(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function $a(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function eo(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function to({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=eo(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=eo(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?$a(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?$a(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Be(-180,180,f-d):0;return e=>{let t={x:Qa(e,r.x,u.x,o.x),y:Qa(e,r.y,u.y,o.y)};return i&&(t.rotate=Be(-180,180,$a(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function no(e={}){let t=to(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<Za))return t({x:n,y:r},{x:0,y:0})},animateValues(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e(`x`),s=e(`y`),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e(`pathRotation`),g={delay:i,...Ha(r||{},`x`)};delete g.path;let _=Y(0);_.start(Xa(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var ro=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function io(e){let t=ro.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ao(e,t,n=1){let[r,i]=io(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Oe(e)?parseFloat(e):e}return mt(i)?ao(i,t,n+1):i}function oo(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function so(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...oo(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function co(e,t,n){return so(e.getProps(),t,n,e)}var lo=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,uo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ei]),fo=e=>Array.isArray(e);function po(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Y(n))}function mo(e){return fo(e)?e[e.length-1]||0:e}function ho(e,t){let{transitionEnd:n={},transition:r={},...i}=co(e,t)||{};i={...i,...n};for(let t in i)po(e,t,mo(i[t]))}var X=e=>!!(e&&e.getVelocity);function go(e){return!!(X(e)&&e.add)}function _o(e,t){let n=e.getValue(`willChange`);if(go(n))return n.add(t);if(!n&&L.WillChange){let n=new L.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var vo=`framerAppearId`,yo=`data-framer-appear-id`;function bo(e){return e.props[yo]}var xo=typeof window<`u`;function So({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Co(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Va(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&So(f,t))continue;let o={delay:n,...Ha(f?.out[t]||a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){K.update(()=>r.set(i));continue}let p=!1;if(xo&&window.MotionHandoffAnimation){let n=bo(e);if(n){let e=window.MotionHandoffAnimation(n,t,K);e!==null&&(o.startTime=e,p=!0)}}_o(e,t);let m=l??e.shouldReduceMotion;r.run(Xa(t,r,i,m&&uo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>K.update(()=>{o&&ho(e,o)});d.length?Promise.all(d).then(t):t()}return d}function wo(e,t,n={}){let r=co(e,t,lo(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Co(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(wo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Ia(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function To(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>wo(e,t,n))):typeof t==`string`?wo(e,t,n):Promise.all(Co(e,co(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Eo={test:e=>e===`auto`,parse:e=>e},Do=e=>t=>t.test(e),Oo=[_t,H,Nt,Mt,Ft,Pt,Eo],ko=e=>Oo.find(Do(e));function Ao(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ae(e)}var jo=new Set([`auto`,`none`,`0`]);function Mo(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!jo.has(t)&&Jt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Vr(n,i))}var No=class extends vi{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(gt(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),mt(r))){let i=ao(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!uo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=ko(r),o=ko(i);if(gt(r)!==gt(i)&&li[n])this.needsMeasurement=!0;else if(a!==o){if(ti(a)&&ti(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else li[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ao(e[t]))&&n.push(t);n.length&&Mo(e,n,t)}measure(){let{element:e,name:t}=this;return li[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},Po=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Fo=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Po,`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 Io(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Fo.has(t)&&(e[n]=e[n]+`px`)}function Lo(e){return!!(typeof e==`function`&&Ti()||!e||typeof e==`string`&&(e in Di||Ti())||it(e)||Array.isArray(e)&&e.every(Lo))}var Ro=je(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),zo=[];function Bo(e){Vo(e),zo.unshift(e)}function Vo(e){Ce(zo,e)}function Ho(e){return zo.find(t=>t.test(e))}function Uo(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?K.update(()=>l.set(c)):(l.run(Xa(o,l,c,s&&uo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>K.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Wo(e,t,n,r,i){let a,o=!1,s=Uo(r=>{let s=a?.[r]??e.get(t,r);if(!s){let c;if(!i){let i=n[r];c=Go(i)??e.read(t,r,i)}s=Y(c,{owner:i}),o?e(t,{[r]:s}):(a||={})[r]=s}return s},n,r,i);return o=!0,a&&e(t,a),s}function Go(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Ko(e){return ke(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function qo(e){return ke(e)&&`ownerSVGElement`in e}var Z={};function Jo(e){return Z.current?.add(e),e}function Yo(e){let t=Z.current;if(!t)return;let n=!1,r,i=t.add(()=>{n=!0,r?.()});e.then(e=>{e&&(r=()=>e.stop(),n?r():e.finished.then(i))},i)}var Xo=e=>Z.current?Z.current.bind(e):e;function Zo(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Z.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Qo(e){let t=(t,n)=>{let r=Zo(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var $o=class{constructor(e=K.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function es(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new $o(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function ts(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&($i(i,a)||(t+=(t&&` `)+Qi(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+Qi(`rotate`,i)),t||`none`}var ns=new Set([`originX`,`originY`,`originZ`]),rs=(e,t)=>Ji(e.get(t)?.get(),Pr[t]),is=(e,t,n,r)=>{let i,a;if(J.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>ei.indexOf(e)-ei.indexOf(t)))}t.get(`transform`)||(!Ko(e)&&!t.get(`transformBox`)&&is(e,t,`transformBox`,new Ba(`fill-box`)),t.set(`transform`,new Ba(`none`),()=>{ta.get(e)?.check(),e.style.transform=ts(t)})),a=t.get(`transform`)}else ns.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Ba(``),()=>{let n=rs(t,`originX`)??`50%`,r=rs(t,`originY`)??`50%`,i=rs(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=yi(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ji(r.getCurrent(),Pr[n])};return t.set(n,r,i,a)},as=e=>Ko(e)||qo(e),os=(e,t)=>{if(J.has(t))return $r(e,t);let n=getComputedStyle(e),r=yi(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},ss=es(is,{test:as,read:os}),cs=Qo(ss);function ls(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function us(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(J.has(e))o=!0;else if(ft(e))i[e]=n;else{let t=Ji(n,Pr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ea(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var ds={offset:`stroke-dashoffset`,array:`stroke-dasharray`},fs={offset:`strokeDashoffset`,array:`strokeDasharray`};function ps(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ds:fs;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ms=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function hs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(us(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of ms)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ps(d,i,a,o,!1)}function gs(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var _s=(e,t,n,r,i=n)=>{let a=gs(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=ls(i));let o=Pr[n]||Pr[i],s=a?()=>{e[i]=Ji(r.get(),Pr[n])}:()=>{let t=Ji(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},vs=Qo(es(_s));function ys(e,t,n,r){return K.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Ba(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var bs=(e,t,n,r)=>n.startsWith(`path`)&&!J.has(n)?ys(e,t,n,r):n.startsWith(`attr`)?_s(e,t,n,r,ws(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(J.has(n)||ns.has(n)||yi(n)||n in e.style?is:_s)(e,t,n,r),xs=(e,t)=>J.has(t)?Pr[t]?.default||0:yi(t)||ms.includes(t)?os(e,t)||e.getAttribute(ls(t))||0:(t=ws(t),e.getAttribute(ls(t))??e.getAttribute(t)??void 0),Ss=es(bs,{test:qo,read:xs}),Cs=Qo(Ss);function ws(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ts({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Es({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ds(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Os(e){return e===void 0||e===1}function ks({scale:e,scaleX:t,scaleY:n}){return!Os(e)||!Os(t)||!Os(n)}var As=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function js(e){return ks(e)||Ns(e)||Ms(e)}function Ms(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ns(e){return Ps(e.x)||Ps(e.y)}function Ps(e){return e&&e!==`0%`}function Fs(e,t,n){return n+t*(e-n)}function Is(e,t,n,r,i){return i!==void 0&&(e=Fs(e,i,r)),Fs(e,n,r)+t}function Ls(e,t=0,n=1,r,i){e.min=Is(e.min,t,n,r,i),e.max=Is(e.max,t,n,r,i)}function Rs(e,{x:t,y:n}){Ls(e.x,t.translate,t.scale,t.originPoint),Ls(e.y,n.translate,n.scale,n.originPoint)}var zs=.999999999999,Bs=1.0000000000001;function Vs(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++)a=n[s],o=a.projectionDelta,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Hs(e.x,-a.scroll.offset.x),Hs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Rs(e,o)),r&&(r.path?.[s]||r)!==a&&js(a.latestValues)&&Gs(e,a.latestValues,a.layout?.layoutBox));t.x<Bs&&t.x>zs&&(t.x=1),t.y<Bs&&t.y>zs&&(t.y=1)}function Hs(e,t){e.min+=t,e.max+=t}function Us(e,t,n,r,i=.5){Ls(e,t,n,G(e.min,e.max,i),r)}function Ws(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Gs(e,t,n){let r=n??e;Us(e.x,Ws(t.x,r.x),t.scaleX,t.scale,t.originX),Us(e.y,Ws(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ks(e,t){return Ts(Ds(e.getBoundingClientRect(),t))}function qs(e,t,n){let r=Ks(e,n),{scroll:i}=t;return i&&(Hs(r.x,i.offset.x),Hs(r.y,i.offset.y)),r}var Js=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Ys={},Xs=e=>qo(e)?Ss:ss,Zs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=No}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Ks(this.current)}getProps(){return Ys}};function Qs(e,t,n,r){if(Z.current?.track(e),r)return Uo(e=>r.getValue(e,null),t,n,r);let i=Xs(e);return Wo(i,e,t,n,new Zs(i,e))}var $s=e=>Xs(e).state(e)?.release();function ec(e,t){let n=Xs(e).state(e);if(!n)return;let r=ta.get(e);r&&(r.demote(),ta.delete(e));let{transformKeys:i}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&i?.length||(e.owner=t,t.addValue(n,e))})}var tc=es((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ke(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:nc,cancel:rc}=Tn(queueMicrotask,!1),ic=(e=V.now())=>{if(B.isProcessing)return;let t=e-B.timestamp;B.delta=L.useManualTiming?t:Math.max(Math.min(t,40),1),V.set(B.timestamp=e),B.isProcessing=!0;for(let e in En)En[e].process(B);B.isProcessing=!1};function ac(e,t,n){let r=X(e)?e:Y(e);return r.run(Xa(``,r,t,n)),r.animation}var oc={};function sc(e){for(let t in e)oc[t]=e[t],ft(t)&&(oc[t].isCSSVariable=!0)}var cc={value:null,addProjectionMetrics:null,countProjection:void 0};function lc(e,t){let n=V.now();e=Xo(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(q(r),e(a-t))};return K.setup(r,!0),Jo(()=>q(r))}function uc(e,t){return lc(e,z(t))}function dc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function fc(e){return qo(e)&&e.tagName===`svg`}function pc(e){return X(e)?e.get():e}var mc=e=>typeof e==`number`?e:parseFloat(e),hc=Po.length,gc=e=>typeof e==`number`||H.test(e);function _c(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,yc(r)),e.opacityExit=G(t.opacity??1,0,bc(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<hc;i++){let a=Po[i],o=vc(t,a),s=vc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||gc(o)===gc(s)?(e[a]=Math.max(G(mc(o),mc(s),r),0),(Nt.test(s)||Nt.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<As.length;i++){let a=As[i];(t[a]||n[a])&&(e[a]=G(t[a]||0,n[a]||0,r))}}function vc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var yc=xc(0,.5,Xe),bc=xc(.5,.95,R);function xc(e,t,n){return r=>r<e?0:r>t?1:n(Ne(e,t,r))}var Sc=(e,t,{x:n,y:r})=>{let i=e*e+t*t;return i<1?0:-1e3*(n*e+r*t)/i},Cc=(e,t=300)=>{let n=I(.25,2,t/300),{stiffness:r,damping:i}=er({...e,duration:e.duration&&z(e.duration)});return{...e,stiffness:r,damping:i*Math.sqrt(n),mass:n}};function wc(e,t){e.min=t.min,e.max=t.max}function Tc(e,t){wc(e.x,t.x),wc(e.y,t.y)}function Ec(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Dc=.9999,Oc=1.0001,kc=-.01,Ac=.01;function Q(e){return e.max-e.min}function jc(e,t,n){return Math.abs(e-t)<=n}function Mc(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Dc&&e.scale<=Oc||isNaN(e.scale))&&(e.scale=1),(e.translate>=kc&&e.translate<=Ac||isNaN(e.translate))&&(e.translate=0)}function Nc(e,t,n,r){Mc(e.x,t.x,n.x,r?.originX),Mc(e.y,t.y,n.y,r?.originY)}function Pc(e,t,n,r=0){e.min=(r?G(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Fc(e,t,n,r){Pc(e.x,t.x,n.x,r?.x),Pc(e.y,t.y,n.y,r?.y)}function Ic(e,t,n,r=0){let i=r?G(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Lc(e,t,n,r){Ic(e.x,t.x,n.x,r?.x),Ic(e.y,t.y,n.y,r?.y)}function Rc(e,t,n,r,i){return e-=t,e=Fs(e,1/n,r),i!==void 0&&(e=Fs(e,1/i,r)),e}function zc(e,t=0,n=1,r=.5,i,a=e,o=e){if(Nt.test(t)&&(t=parseFloat(t),t=G(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=G(a.min,a.max,r);e===a&&(s-=t),e.min=Rc(e.min,t,n,s,i),e.max=Rc(e.max,t,n,s,i)}function Bc(e,t,[n,r,i],a,o){zc(e,t[n],t[r],t[i],t.scale,a,o)}var Vc=[`x`,`scaleX`,`originX`],Hc=[`y`,`scaleY`,`originY`];function Uc(e,t,n,r){Bc(e.x,t,Vc,n?.x,r?.x),Bc(e.y,t,Hc,n?.y,r?.y)}var Wc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gc=Wc(`applewebkit/`)&&!Wc(`chrome/`)?Math.round:R;function Kc(e){e.min=Gc(e.min),e.max=Gc(e.max)}function qc(e){Kc(e.x),Kc(e.y)}var Jc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yc=()=>({x:Jc(),y:Jc()}),Xc=()=>({min:0,max:0}),$=()=>({x:Xc(),y:Xc()});function Zc(e){return e.translate===0&&e.scale===1}function Qc(e){return Zc(e.x)&&Zc(e.y)}function $c(e,t){return e.min===t.min&&e.max===t.max}function el(e,t){return $c(e.x,t.x)&&$c(e.y,t.y)}function tl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nl(e,t){return tl(e.x,t.x)&&tl(e.y,t.y)}function rl(e){return Q(e.x)/Q(e.y)}function il(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var al=class{constructor(){this.members=[]}add(e){Se(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(Ce(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ce(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function ol(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var sl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(H.test(e))e=parseFloat(e);else return e}return`${ol(e,t.target.x)}% ${ol(e,t.target.y)}%`}},cl={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=W.parse(e);if(i.length>5)return r;let a=W.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=G(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ll={borderRadius:Object.assign({},sl,{applyTo:Po.slice()}),borderTopLeftRadius:sl,borderTopRightRadius:sl,borderBottomLeftRadius:sl,borderBottomRightRadius:sl,boxShadow:cl};function ul(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;(i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `);let s=``;if(n){let{transformPerspective:e}=n;e&&(r=`perspective(${e}px) ${r}`);for(let e=0;e<As.length;e++){let t=As[e],r=n[t];r&&(s+=`${t}(${r}deg) `),!e&&n.pathRotation&&(s+=`rotate(${n.pathRotation}deg) `)}}if(s){(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),r+=s;let n=e.x.scale*t.x,i=e.y.scale*t.y;(n!==1||i!==1)&&(r+=`scale(${n}, ${i})`)}else e.x.scale!==1||e.y.scale!==1?r+=`scale(${e.x.scale}, ${e.y.scale})`:r||t.x===1&&t.y===1||(r=`scale(1, 1)`);return r||`none`}function dl(e){return[e(`x`),e(`y`)]}var fl=(e,t)=>e.depth-t.depth,pl=class{constructor(){this.children=[],this.isDirty=!1}add(e){Se(this.children,e),this.isDirty=!0}remove(e){Ce(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fl),this.isDirty=!1,this.children.forEach(e)}},ml={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hl=[`z`,`skew`,`skewZ`],gl=1e3,_l=0;function vl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var yl=e=>e.instance&&ta.get(e.instance)?.demote()&&e.resetSkewAndRotation();function bl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=bo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,K,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bl(r)}function xl(e){if(e)return e.options.allowProjection===!1?xl(e.parent):e.projection}function Sl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(oc,{...ll,...oc}),class{static create(e,t,n){let{layoutId:r,layout:i,drag:a,dragConstraints:o,layoutScroll:s,layoutRoot:c,layoutAnchor:l,layoutCrossfade:u}=t,d=e.projection=new this(e.latestValues,t[`data-framer-portal-id`]?void 0:xl(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&dc(o),visualElement:e,animationType:typeof i==`string`?i:`both`,initialPromotionConfig:n,crossfade:u,layoutScroll:s,layoutRoot:c,layoutAnchor:l});let f=d.getStack()?.lead;f&&!d.root.isUpdateBlocked()&&(f.willUpdate(),f.scheduleCheckAfterUnmount())}constructor(e={},n=t?.()){this.id=_l++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Tl),this.nodes.forEach(Il),this.nodes.forEach(Ll),this.nodes.forEach(El),cc.countProjection?.()},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new pl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Pe),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){this.eventHandlers.get(e)?.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=qo(t)&&!fc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent?.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;K.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=lc(i,250),ml.hasAnimatedSinceResize&&(ml.hasAnimatedSinceResize=!1,this.nodes.forEach(Fl)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Wl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!nl(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ha(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Fl(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,q(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(Rl),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;yl(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,yl(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(kl),this.nodes.forEach(Ol);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Al);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ml),this.nodes.forEach(Nl),this.nodes.forEach(Pl),this.nodes.forEach(Cl),this.nodes.forEach(wl)):this.nodes.forEach(Al),this.clearAllSnapshots();let e=V.now();B.delta=I(0,1e3/60,e-B.timestamp),B.timestamp=e,B.isProcessing=!0,En.update.process(B),En.preRender.process(B),En.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dl),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0),this.snapshot)){let{visualElement:e}=this.options,t=this.currentAnimation?.state===`running`,n=t&&this.animationEdges;t&&this.relativeTarget&&(this.snapshot.relativeVelocity=this.relativeVelocity?.slice()||[]);let r=n&&this.motionValue?.getVelocity()||0,i=[0,1,2,3,4,5].map(t=>(t<4?n&&(this.edgeValues?this.edgeVelocity(t):-n[t]*r/1e3):e?.getValue(t<5?`x`:`y`)?.getVelocity())||0);i.some(Boolean)&&(this.snapshot.velocity=i)}}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t?.notify(`LayoutMeasure`,this.layout.layoutBox,e?.layoutBox)}updateScroll(e=`measure`){let{scroll:t,instance:i}=this,{animationId:a}=this.root;if(this.options.layoutScroll&&i&&!(t&&t.animationId===a&&t.phase===e)){let o=r(i);this.scroll={animationId:a,phase:e,isRoot:o,offset:n(i),wasRoot:t?t.isRoot:o}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&yl(this);let t=this.projectionDelta&&!Qc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||js(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),qc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ql))){let{scroll:e}=this.root;e&&(Hs(t.x,e.offset.x),Hs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(Tc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Tc(t,e),Hs(t.x,i.offset.x),Hs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r,i=0){let a=n||$();Tc(a,e);for(let e=i;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Hs(a.x,-n.scroll.offset.x),Hs(a.y,-n.scroll.offset.y)),js(n.latestValues)&&Gs(a,n.latestValues,n.layout?.layoutBox)}return!r&&js(this.latestValues)&&Gs(a,this.latestValues,this.layout?.layoutBox),a}removeTransform(e){let t=$();Tc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!js(n.latestValues))continue;let r;n.instance&&(ks(n.latestValues)&&n.updateSnapshot(),r=$(),Tc(r,n.measurePageBox())),Uc(t,n.latestValues,n.snapshot?.layoutBox,r)}return js(this.latestValues)&&Uc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=B.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):Tc(this.target,this.layout.layoutBox),Rs(this.target,this.targetDelta)):Tc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&(!a.resumingFrom==!this.resumingFrom||a.options.layoutRoot&&!a.resumingFrom)&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),cc.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||ks(this.parent.latestValues)||Ns(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Lc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Tc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===B.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Tc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Vs(this.layoutCorrected,this.treeScale,this.path,t&&(e.relativeTarget&&!e.relativeParent.resumingFrom?e.relativeParent:!0)),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ec(this.prevProjectionDelta.x,this.projectionDelta.x),Ec(this.prevProjectionDelta.y,this.projectionDelta.y)),Nc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&il(this.projectionDelta.x,this.prevProjectionDelta.x)&&il(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),cc.countProjection?.(2)):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){this.options.visualElement?.scheduleRender(),e&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yc(),this.projectionDelta=Yc(),this.projectionDeltaWithTransform=Yc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Yc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),c=r?.source!==this.layout?.source,l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Ul));this.animationProgress=0;let f,p=n?.interpolateProjection(e),m=this.layout?.layoutBox,h=m&&[m.x.min,m.x.max,m.y.min,m.y.max].map((t,n)=>{let{translate:r,scale:i,originPoint:a}=e[n<2?`x`:`y`];return(t-a)*(i-1)+r});h?.every(isFinite)||(h=void 0),this.animationEdges=h,this.edgeValues=this.startVelocity=this.impulse=this.relativeVelocity=this.relativeStart=void 0;let g=r?.velocity,_=r?.relativeVelocity||g;if(_?.slice(0,4).some(Boolean)&&this.getClosestProjectingParent()&&(this.relativeStart=_),g&&h){let t=g.slice(0,4).map((e,t)=>e+(c?g[4+(t>>1)]:0));t.some(Boolean)&&(this.startVelocity=p?Sc(e.x.translate,e.y.translate,{x:(t[0]+t[1])/2,y:(t[2]+t[3])/2}):t)}this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n),l=this.edgeValues;for(let t=0;t<2;t++){let r=t?`y`:`x`;l?zl(o[r],e[r],this.layout.layoutBox[r],l[t*2],l[t*2+1]):Bl(o[r],e[r],n)}if(r&&(o.x.translate=r.x,o.y.translate=r.y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){Lc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0);let e=this.relativeTargetOrigin,t=s;if(Hl(this.relativeTarget,e,t,n),this.isSpringLayout){let e=this.relativeTarget,t=this.impulse||0,n=this.relativeStart,r=V.now(),i=(r-this.relativeTime)/1e3;this.relativeTime=r;let a=this.relativeVelocity||=[0,0,0,0];for(let r=0;r<4;r++){let o=r<2?`x`:`y`,s=r&1?`max`:`min`;n&&(e[o][s]+=n[r]*t),f&&i>0&&(a[r]=(e[o][s]-f[o][s])/i)}}f&&el(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),Tc(f,this.relativeTarget)}c&&(this.animationValues=a,_c(a,i,this.latestValues,n,d,u)),r?.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`);let t=this.isSpringLayout=e.type===`spring`;this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.resumingFrom&&(this.resumingFrom.edgeValues=void 0),this.pendingAnimation&&=(q(this.pendingAnimation),void 0),this.pendingAnimation=K.update(()=>{ml.hasAnimatedSinceResize=!0,this.motionValue||=Y(0),this.motionValue.jump(0,!1);let n=this.startVelocity;this.startVelocity=void 0;let r=e,i=0;if(t){if(e.mass===`auto`){let t=this.layout?.layoutBox;r=Cc(e,t&&Math.sqrt(Q(t.x)*Q(t.y)))}let t=this.relativeStart;if((n||t)&&!e.repeat){if(typeof n==`number`)i=n;else{let e=n&&this.animationEdges;r={...r,type:r=>{let i=[r.velocity,...n||[]].map((t,n)=>nr({...r,keyframes:n?[e[n-1],0]:r.keyframes,velocity:t})),a=i.length;t&&i.push(nr({...r,keyframes:[0,0],velocity:1e3,restDelta:.5,restSpeed:5}));let o=0,s=[],c={calculatedDuration:null,next:t=>{o=t;let n=i[0].next(t),r=n.done;for(let e=1;e<i.length;e++){let{value:n,done:o}=i[e].next(t);e<a?s[e-1]=n:this.impulse=n/1e3,r&&=o}return e&&(this.edgeValues=s),n.done=r,n}};return c.calculatedDuration=An(c),c.next(0),this.edgeVelocity=e=>i[e+1].velocity(o),c}}}}}let a=ac(this.motionValue,[0,1e3],{...r,velocity:i,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}});this.currentAnimation=a,xr(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=this.edgeValues=this.edgeVelocity=this.impulse=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.edgeValues=this.impulse=void 0,this.mixTargetDelta?.(gl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Kl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||$(),Gl(i.x,t.x,e.x),Gl(i.y,t.y,e.y)}Tc(t,i),Gs(t,r),Nc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new al),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?.transition,preserveFollowOpacity:n?.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){this.getStack()?.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let{latestValues:t}=e;if(!Ms(t))return;let n={};for(let t=0;t<hl.length;t++)vl(hl[t],e,n,this.animationValues);for(let t=0;t<As.length;t++)vl(As[t],e,n,this.animationValues);e.render();for(let t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;let n=this.getLead();if(!this.isVisible&&n!==this){e.visibility=`hidden`;return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=pc(t?.pointerEvents)||``,e.transform=r?r(this.latestValues,``):`none`;return}if(!this.projectionDelta||!this.layout||!n.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,e.visibility=``,e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=pc(t?.pointerEvents)||``),this.hasProjected&&!js(this.latestValues)&&(e.transform=r?r({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=ul(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=n.animationValues?n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:n===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in oc){if(i[t]===void 0)continue;let{correct:r,applyTo:o,isCSSVariable:s}=oc[t],c=a===`none`?i[t]:r(i[t],n);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=n===this?pc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ol),this.root.sharedNodes.clear()}}}function Cl(e){e.updateLayout(),jl(e)}function wl(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source,o=(r,a)=>{if(i===`size`)dl(e=>{let t=Q(r[e]);r[e].min=a[e].min,r[e].max=r[e].min+t});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;wc(r[e],a[e])}else Kl(i,t.layoutBox,n)&&dl(t=>{let n=Q(a[t]);r[t].max=r[t].min+n,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+n)})},s=a?t.measuredBox:t.layoutBox;o(s,n);let c=Yc();Nc(c,n,t.layoutBox);let l=Yc();Nc(l,a?e.applyTransform(r,!0):n,s);let u=!Qc(c),d=!1,f=e.getClosestProjectingParent();if((!a||f?.options.layoutRoot&&e.resumeFrom?.path.includes(f))&&f&&!f.resumeFrom){let{snapshot:r,layout:i}=f;if(r&&i){let s=e.options.layoutAnchor||void 0,c=$();Lc(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=$();Lc(l,n,i.layoutBox,s),a&&o(c,l),nl(c,l)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=c,e.relativeParent=f)}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else e.isLead()&&e.options.onExitComplete?.();e.options.transition=void 0}function Tl(e){cc.countProjection?.(0),e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function El(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dl(e){e.clearSnapshot()}function Ol(e){e.clearMeasurements()}function kl(e){e.isLayoutDirty=!0,e.updateLayout()}function Al(e){e.isLayoutDirty=!1}function jl(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;dl(e=>Hs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Ml(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Nl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Pl(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Fl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Il(e){e.resolveTargetDelta()}function Ll(e){e.calcProjection()}function Rl(e){e.resetSkewAndRotation()}function zl(e,t,n,r,i){let a=n.max-n.min,o=a?Math.max(0,(a+i-r)/a):1,s=e.originPoint=t.originPoint;e.origin=t.origin,e.scale=o,e.translate=n.min+r-(s+(n.min-s)*o)}function Bl(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vl(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function Hl(e,t,n,r){Vl(e.x,t.x,n.x,r),Vl(e.y,t.y,n.y,r)}function Ul(e){return e.animationValues?.opacityExit!==void 0}var Wl={duration:.45,ease:[.4,0,.1,1]};function Gl(e,t,n){e.max=Q(n)+(e.min=t.min)}function Kl(e,t,n){return e===`position`||e===`preserve-aspect`&&!jc(rl(t),rl(n),.2)}function ql(e){return e!==e.root&&e.scroll?.wasRoot}function Jl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Yl=Sl({attachResizeListener:(e,t)=>Jl(e,`resize`,t),measureScroll:Js,checkIsScrollRoot:()=>!0}),Xl={current:void 0},Zl=Sl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xl.current){let e=new Yl({});e.mount(window),e.setOptions({layoutScroll:!0}),Xl.current=e}return Xl.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ql=new WeakMap;function $l(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function eu(e){return typeof e==`string`||Array.isArray(e)}var tu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`whilePinch`,`exit`],nu=[`initial`].concat(tu);function ru(e){if($l(e.animate))return!0;for(let t=0;t<nu.length;t++)if(eu(e[nu[t]]))return!0;return!1}function iu(e){return!!(ru(e)||e.variants)}function au(e,t,n){for(let r in t){let i=t[r],a=n[r];if(X(i))e.addValue(r,i);else if(X(a))e.addValue(r,Y(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Y(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var ou={current:null},su={current:!1},cu=typeof window<`u`;function lu(){if(su.current=!0,cu){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ou.current=e.matches;e.addEventListener(`change`,t),t()}else ou.current=!1}}var uu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],du={};function fu(e){du=e}function pu(){return du}var mu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=vi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=V.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,K.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ru(t),this.isVariantNode=iu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&X(t)&&t.set(c[e])}}mount(e){let t=this.presenceContext;if(this.hasBeenMounted&&t?.isPresent!==!1&&!t?.keepValuesOnRemount)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,Ql.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(su.current||lu(),this.shouldReduceMotion=ou.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree?.(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),(this.enteringChildren||=new Set).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.get(e)?.(),t.accelerate&&Vi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Mi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:z(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=J.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&K.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ta.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in du){let t=du[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&ta.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<uu.length;t++){let n=uu[t];this.propEventSubscriptions[n]?.(),delete this.propEventSubscriptions[n];let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=au(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){let n=this.props.values?.[e];return n||(n=this.values.get(e),n===void 0&&t!==void 0&&(n=Y(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n)}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Oe(n)||Ae(n))?n=parseFloat(n):typeof n!=`number`&&!W.test(n)&&W.test(t)&&(n=Vr(e,t)),this.setBaseTarget(e,X(n)?n.get():n)),X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return(this.events[e]||(this.events[e]=new Pe)).add(t)}notify(e,...t){this.events[e]?.notify(...t)}scheduleRenderMicrotask(){nc.render(this.render)}},hu=class extends mu{constructor(){super(...arguments),this.KeyframeResolver=No}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;X(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function gu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function _u(e,{layout:t,layoutId:n}){return J.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!oc[e]||e===`opacity`)}function vu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(X(r[t])||i&&X(i[t])||_u(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function yu(e){return window.getComputedStyle(e)}var bu=class extends hu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=gu}mount(e){super.mount(e)}readValueFromInstance(e,t){if(J.has(t))return this.projection?.isProjecting?Zr(t):$r(e,t);{let n=yu(e),r=(ft(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ks(e,t)}build(e,t,n){us(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return vu(e,t,n)}};function xu(e){let t=Ql.get(e);return t||(t=new bu({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0}),ec(e,t)),e.style.transform&&!js(t.latestValues)&&(e.style.transform=``),t}var Su={},Cu={updateScroll:()=>{Cu.scroll||={offset:Js()}}},wu=e=>{let t=xu(e),n=new Pe,r={instance:e,root:Cu,path:[Cu],setOptions:R,isProjecting:R,applyProjectionStyles:R,removeElementScroll:e=>e,updateLayout:()=>{let i=qs(e,Cu,t.getTransformPagePoint());qc(i),r.layout={layoutBox:i},n.notify()},addEventListener:(e,t)=>e===`measure`?n.add(t):R,unmount:()=>{r.instance=void 0,t.projection===r&&(t.projection=void 0)}};return t.projection=r,t.current||t.mount(e),[r,r.unmount]},Tu=e=>{let t=Ql.get(e)?.projection;return t?.instance?[t,R]:(Su.create||wu)(e)},Eu=`[data-layout],[data-layout-id]`,Du=new WeakMap,Ou;function ku(e){let t=[];return e instanceof HTMLElement&&e.matches(Eu)&&t.push(e),e.querySelectorAll(Eu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Au(){if(B.isProcessing)return;let e=V.now();B.delta=I(0,1e3/60,e-B.timestamp),B.timestamp=e,B.isProcessing=!0,En.update.process(B),En.preRender.process(B),En.render.process(B),B.isProcessing=!1}function ju(e){let t=e.parentElement;for(;t;){let e=Du.get(t);if(e?.instance)return e;t=t.parentElement}}function Mu(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function Nu(e,t){let n=Du.get(e);if(n)n.setOptions(Mu(e,t));else{let r=xu(e);n=new Zl(r.latestValues,ju(e)),r.projection=n,n.setOptions({...Mu(e,t),visualElement:r}),n.mount(e),Du.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Pu(e){let t=Nu(e);return[t,()=>Du.get(e)===t&&Lu(e,t)]}Su.create=Pu;function Fu(e){let t=Du.get(e)||Ql.get(e)?.projection;return t?.instance?[t,()=>{}]:Pu(e)}function Iu(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Lu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Du.delete(e)}function Ru(){let e=Ou;if(!e)return;Ou=void 0,Au();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Iu(t.keys())){let r=t.get(e),i=Nu(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),nc.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var zu=Ru,Bu=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),Ou||(Ou=[],queueMicrotask(Ru)),Ou.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return ku(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of ku(this.scope)){if(this.tracked.has(t))continue;let n=Nu(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next?.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Lu(n,t)}}),t.relegate())return;n.remove()}Lu(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new ka([...e]))}};function Vu(e,t,n){return typeof e==`function`?{scope:Z.current?.root||document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:Zo(e)[0]??document,updateDom:t,defaultOptions:n}}var Hu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Uu(e){return{point:{x:e.pageX,y:e.pageY}}}var Wu=e=>t=>Hu(t)&&e(t,Uu(t));function Gu(e,t,n,r){return Jl(e,t,Wu(n),r)}var Ku=new WeakMap,qu,Ju=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:qo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Yu=Ju(`inline`,`width`,`offsetWidth`),Xu=Ju(`block`,`height`,`offsetHeight`);function Zu({target:e,borderBoxSize:t}){Ku.get(e)?.forEach(n=>{n(e,{get width(){return Yu(e,t)},get height(){return Xu(e,t)}})})}function Qu(e){e.forEach(Zu)}function $u(){typeof ResizeObserver<`u`&&(qu=new ResizeObserver(Qu))}function ed(e,t){qu||$u();let n=Zo(e);return n.forEach(e=>{let n=Ku.get(e);n||(n=new Set,Ku.set(e,n)),n.add(t),qu?.observe(e)}),()=>{n.forEach(e=>{let n=Ku.get(e);n?.delete(t),n?.size||qu?.unobserve(e)})}}var td=new Set,nd;function rd(){nd=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};td.forEach(t=>t(e))},window.addEventListener(`resize`,nd)}function id(e){return td.add(e),nd||rd(),()=>{td.delete(e),!td.size&&typeof nd==`function`&&(window.removeEventListener(`resize`,nd),nd=void 0)}}function ad(e,t){return Jo(typeof e==`function`?id(e):ed(e,t))}var od=(e,t)=>Math.abs(e-t);function sd(e,t){let n=od(e.x,t.x),r=od(e.y,t.y);return Math.sqrt(n**2+r**2)}var cd=new Set([`auto`,`scroll`]),ld=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o,immediate:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=dd(this.lastRawMoveEventInfo,this.transformPagePoint));let e=pd(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=sd(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:V.now()});let{onStart:i,onMove:a}=this.handlers;t||(i?.(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a?.(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=dd(t,this.transformPagePoint),this.hasPendingMove=!0,K.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=pd(e.type===`pointercancel`?this.lastMoveEventInfo:dd(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!Hu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s?0:a,this.contextWindow=r||window;let c=Uu(e),l=dd(c,this.transformPagePoint),{point:u}=l;this.history=[{...u,timestamp:V.now()}];let{onSessionStart:d}=t;d&&d(e,pd(l,this.history));let f={passive:!0,capture:!0};this.removeListeners=Me(Gu(this.contextWindow,`pointermove`,this.handlePointerMove,f),Gu(this.contextWindow,`pointerup`,this.handlePointerUp,f),Gu(this.contextWindow,`pointercancel`,this.handlePointerUp,f)),o&&this.startScrollTracking(o),s&&(this.handlePointerMove(e,c),this.updatePoint())}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(cd.has(e.overflowX)||cd.has(e.overflowY))&&this.scrollPositions.set(t,ud(t)),t=t.parentElement}this.scrollPositions.set(window,ud(window)),this.removeScrollListeners=Me(Jl(window,`scroll`,this.onElementScroll,{capture:!0}),Jl(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=ud(e),i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),K.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),q(this.updatePoint)}},ud=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function dd(e,t){return t?{point:t(e.point)}:e}function fd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pd({point:e},t){return{point:e,delta:fd(e,hd(t)),offset:fd(e,md(t)),velocity:gd(t,.1)}}function md(e){return e[0]}function hd(e){return e[e.length-1]}function gd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=hd(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>z(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>z(t)*2&&(r=e[1]);let a=Fe(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var _d=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function vd(e){return _d.has(e.tagName)||e.isContentEditable===!0}var yd=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function bd(e){return yd.has(e.tagName)||e.isContentEditable===!0}var xd={x:!1,y:!1};function Sd(){return xd.x||xd.y}function Cd(e){return e===`x`||e===`y`?xd[e]?null:(xd[e]=!0,()=>{xd[e]=!1}):xd.x||xd.y?null:(xd.x=xd.y=!0,()=>{xd.x=xd.y=!1})}function wd(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?G(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Td(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Ed(e,{top:t,left:n,bottom:r,right:i}){return{x:Td(e.x,n,i),y:Td(e.y,t,r)}}function Dd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Od(e,t){return{x:Dd(e.x,t.x),y:Dd(e.y,t.y)}}function kd(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Ne(t.min,t.max-r,e.min):r>i&&(n=Ne(e.min,e.max-i,t.min)),I(0,1,n)}function Ad(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var jd=.35;function Md(e=jd){return e===!1?e=0:e===!0&&(e=jd),{x:Nd(e,`left`,`right`),y:Nd(e,`top`,`bottom`)}}function Nd(e,t,n){return{min:Pd(e,t),max:Pd(e,n)}}function Pd(e,t){return typeof e==`number`?e:e[t]||0}function Fd(e){let t=``;for(let n of e.path){n.scroll=void 0,n.updateScroll();let{scroll:r}=n;n!==e.root&&r&&(t+=r.offset.x+`,`+r.offset.y+`,`)}return t}var Id=new WeakMap,Ld=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,t={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let n=e=>{t.snapToCursor&&this.snapToCursor(e),this.stopAnimation()},r=(e,t)=>{let{drag:n,dragConstraints:r,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock?.(),this.openDragLock=Cd(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:o}=this.visualElement;o&&(o.isAnimationBlocked=!0,o.target=void 0),dl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(mt(t)&&(t=ao(t,this.visualElement.current)||0),H.test(t))t=parseFloat(t);else if(Nt.test(t)){let n=o?.layout?.layoutBox[e];n&&(t=Q(n)*(parseFloat(t)/100))}this.originPoint[e]=t}),this.point=typeof r==`function`&&r(this),a&&K.update(()=>a(e,t),!1,!0),_o(this.visualElement,`transform`),this.visualElement.animationState?.setActive(`whileDrag`,!0)},i=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=Ud(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,o),this.updateAxis(`y`,o),this.point&&this.point.move(),this.visualElement.render(),a&&K.update(()=>a(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},o=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:s}=this.getProps();this.panSession=new ld(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{...t,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&K.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t?.setActive(`whileDrag`,!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,t){let{drag:n}=this.readProps();if(!t||!Hd(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=wd(i,a,this.elastic[e])),this.point?this.point[e]=i:r.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{projection:n}=this.visualElement,r=n&&(n.layout||n.measure(!1)),i=this.constraints;Rd(e)?this.constraints&&this.scroll===Fd(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?Ed(r.layoutBox,e):!1,this.elastic=Md(t),i!==this.constraints&&!Rd(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&dl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ad(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Rd(e))return!1;let n=zd(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=Fd(r);let i=qs(n,r.root,this.visualElement.getTransformPagePoint()),a=Od(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(Es(a));this.hasMutatedConstraints=!!e,e&&(a=Ts(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c={bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},l=i=>r&&!(this.point&&o)&&Hd(i,t||n,this.currentDirection)?e[i]:0;if(this.point&&!o)return this.point.release({x:l(`x`),y:l(`y`)},c).then(s);let u=this.constraints||{},d=dl(e=>{if(!Hd(e,t||n,this.currentDirection))return;let r=u[e]||{};(o===!0||o===e)&&(r={min:0,max:0});let i={type:`inertia`,velocity:l(e),...c,...r};return this.startAxisValueAnimation(e,i)});return Promise.all(d).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return _o(this.visualElement,e),n.start(Xa(e,n,0,t,this.visualElement,!1))}stopAnimation(){dl(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();dl(e=>{if(!Hd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-G(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Rd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};dl(e=>{let t=this.getAxisMotionValue(e).get();i[e]=kd({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root?.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),dl(t=>{let n=this.getAxisMotionValue(t);if(!Hd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(G(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Id.set(this.visualElement,this);let e=this.visualElement.current,t=Gu(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&bd(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Rd(t)&&zd(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Vd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),K.read(r);let o=Jl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(dl(t=>{if(!Hd(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s(),n?.()}}getProps(){let e=this.readProps(),{dragElastic:t=jd,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function Rd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var zd=e=>`current`in e?e.current:e;function Bd(e){let t=!0;return()=>{t?t=!1:e()}}function Vd(e,t,n){let r=ad(e,Bd(n)),i=ad(t,Bd(n));return()=>{r(),i()}}function Hd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ud(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Wd({dragConstraints:e,onMeasureDragConstraints:t}){return Rd(e)&&!!t}var Gd=({axis:e,constraints:t,elastic:n,momentum:r,transition:i,snapToOrigin:a,directionLock:o,propagation:s,onStart:c,onMove:l,onEnd:u,onDirectionLock:d,onTransitionEnd:f,onMeasureConstraints:p,x:m,y:h})=>({drag:e||!0,_dragX:m||h&&Y(0),_dragY:h||m&&Y(0),dragConstraints:t,dragElastic:n,dragMomentum:r,dragTransition:i,dragSnapToOrigin:a,dragDirectionLock:o,dragPropagation:s,onDragStart:c,onDrag:l,onDragEnd:u,onDirectionLock:d,onDragTransitionEnd:f,onMeasureDragConstraints:p}),Kd=[`user-select`,`-webkit-user-select`,`-webkit-touch-callout`,`touch-action`];function qd(e,t){let{style:n}=e,r=e.getAttribute(`draggable`),i=Kd.map(e=>n.getPropertyValue(e)),a=t?`pan-`+(t===`x`?`y`:`x`):`none`;return Kd.forEach((e,t)=>n.setProperty(e,t<3?`none`:a)),e.setAttribute(`draggable`,`false`),()=>{Kd.forEach((e,t)=>n.setProperty(e,i[t])),r===null?e.removeAttribute(`draggable`):e.setAttribute(`draggable`,r)}}function Jd(e,t={}){let n=Gd(t),r=Z.current;if(r)for(let e in n){let t=n[e];typeof t==`function`&&(n[e]=r.bind(t))}let i=Zo(e).map(e=>{r?.track(e);let[i,a]=Tu(e);i.setOptions({alwaysMeasureLayout:!0});let o=new Ld(Ql.get(e),()=>n),s=o.addListeners(),c=qd(e,t.axis);return()=>{c(),s?.(),o.cancel(),o.stopAnimation(),a()}});return Jo(()=>i.forEach(e=>e()))}function Yd(e,t){let n=Zo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Jo(()=>r.abort())]}function Xd(e){return!(e.pointerType===`touch`||Sd())}function Zd(e,t,n={}){t=Xo(t);let[r,i,a]=Yd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Xd(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Qd=150,$d=(e,t)=>{let n=e.get();typeof n==`string`&&e.set(parseFloat(n)*(n.endsWith(`%`)?t/100:1))},ef=e=>typeof e==`object`?e:{},tf=(e=jd)=>{let t=e=>e===!0?jd:+(e||0);return typeof e==`object`?{min:t(e.min),max:t(e.max)}:{min:t(e),max:t(e)}},nf=({pan:e,origin:t})=>e!==!1||!!t,rf=(e,{min:t=-1/0,max:n=1/0})=>I(t,n,e),af=(e,t,n)=>{let r=rf(e,ef(t)),i=n[e<r?`min`:`max`];return i?r+(e-r)/i:e};function of(e,t,n,r){let i=new Map,a={x:0,y:0,l:0,a:0},o={...a},s={...a},c,l,u,d=0,f=0,p=0,m=0,h=0,g=0,_=!1,v=0,y={},b,x=1,S=0,C=()=>{},w={},T=()=>w=n()||w,E=()=>({point:{x:a.x,y:a.y},offset:{x:a.x-o.x,y:a.y-o.y},scale:Math.exp(a.l-o.l),rotate:a.a-o.a}),D=()=>{let n=e.getBoundingClientRect(),{left:r,top:i}=n,{scale:a,rotate:o,elastic:s}=T(),[c,l,_,v]=u=t(),y=tf(s);a!==!1&&c.stop(),o!==!1&&l.stop(),x=af(c.get(),a,y),S=af(l.get(),o,y),p=e.offsetWidth??n.width,m=e.offsetHeight??n.height,nf(w)&&(_.stop(),v.stop(),$d(_,p),$d(v,m)),h=_.get(),g=v.get(),d=r+n.width/2-h,f=i+n.height/2-g},O=(e,t,n,r,i)=>{let{origin:a}=w;if(typeof a!=`object`)return e;let o=n*Math.PI/180,s=(a.x-.5)*p*t,c=(a.y-.5)*m*t;return{x:d+r+Math.cos(o)*s-Math.sin(o)*c,y:f+i+Math.sin(o)*s+Math.cos(o)*c}},ee=()=>Id.get(Ql.get(e)),te=()=>{let{scale:e,rotate:t,snapToOrigin:n,transition:r}=w,[i,o,s,c]=u,l=i.get(),p=o.get(),m=s.get(),h=c.get(),{snap:g}=ef(t),_=rf(l,ef(e)),v=rf(g?Math.round((p+.2*o.getVelocity())/g)*g:p,ef(t));n&&(_=1,v=Math.round(p/360)*360);let y=nf(w)&&!ee()?.isDragging,b=O(a,l,p,m,h),x=d+m-b.x,S=f+h-b.y,T=e=>{let t=G(l,_,e),n=G(p,v,e),r=(n-p)*Math.PI/180,i=Math.cos(r)*t/l,a=Math.sin(r)*t/l;return[t,n,m+i*x-a*S-x,h+a*x+i*S-S]};if(!l||_===l&&v===p&&!(n&&y&&(m||h)))return;let E=nr({keyframes:[0,1],stiffness:200,damping:40,...r}),D=V.now(),te=()=>{let{value:r,done:a}=E.next(V.now()-D);a&&C();let[l,u,d,f]=T(r);e!==!1&&i.set(l),t!==!1&&o.set(u),y&&!ee()?.isDragging&&(s.set(n?G(m,0,r):d),c.set(n?G(h,0,r):f))};C=()=>q(te),K.update(te,!0)},k=()=>{if(!u||!_)return;_=!1;let{rotate:e,scale:t,pan:n,elastic:r}=T(),[i,o,c,p]=u,m=tf(r),v=i.get(),b=ee(),C=b?.isDragging;C||(h=c.get(),g=p.get());let D=O(s,v,o.get(),h,g),te=0,k=1,ne=(e,t)=>{let n=ef(t),r=rf(e,n);return m[e<r?`min`:`max`]?[wd(e,n,m),e]:[r,r]};if(t!==!1&&v){let[e,n]=ne(I(1e-9,1e9,x*Math.exp(a.l-s.l)),t);x=n,k=e/v,i.set(e)}if(e!==!1){let[t,n]=ne(S+a.a-s.a,e);S=n,te=t-o.get(),te&&o.set(t)}if(nf(w)){c.stop(),p.stop();let e=te*Math.PI/180,t=Math.cos(e)*k,r=Math.sin(e)*k,i=D.x-d-h,o=D.y-f-g,l=n===!1?0:a.x-s.x,u=n===!1?0:a.y-s.y;if(h+=i+l-(t*i-r*o),g+=o+u-(r*i+t*o),C){let e=b.panSession.history;e.splice(0,e.length-1),e[0].timestamp=-1/0,b.originPoint.x=h,b.originPoint.y=g}c.set(h),p.set(g)}Object.assign(s,a),y.onPinch?.(l,E())},ne=()=>{if(!n())return ie(l);k(),c===`wheel`&&V.now()-v>Qd&&ie(l)},re=(t,i)=>{if(!n())return;C(),c=i,l=t,_=!1,u=void 0,y={},Object.assign(o,a),Object.assign(s,a),K.read(D),K.preRender(ne,!0);let d=r(e,t,E());y=typeof d==`function`?{onComplete:d}:d||{}},ie=e=>{c&&(q(D),q(ne),n()&&(k(),u&&te()),c=void 0,y.onComplete?.(e,E()))},A=e=>{l=e,_=!0},j=()=>{let[e,t]=i.values(),n=Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI-a.a;a.x=(e.x+t.x)/2,a.y=(e.y+t.y)/2,a.l=Math.log(Math.hypot(t.x-e.x,t.y-e.y)||1),a.a+=n-360*Math.round(n/360)},ae=e=>i.set(e.pointerId,{x:e.clientX,y:e.clientY}),oe=e=>{i.has(e.pointerId)&&(ae(e),c===`pointer`&&(j(),A(e)))},M=e=>{i.delete(e.pointerId)&&(c===`pointer`&&ie(e),i.size||(le(),ce()))},se=t=>{c||i.size>1||i.has(t.pointerId)||t.pointerType===`mouse`||(i.size||le(!0),ae(t),i.size===2&&(j(),re(t,`pointer`),c&&!b&&!Id.get(Ql.get(e))&&(b=Cd(!0))))},ce=()=>{let e=b;b=void 0,e&&K.postRender(e)},le=e=>{let t=e?`addEventListener`:`removeEventListener`;window[t](`pointerdown`,se),window[t](`pointermove`,oe),window[t](`pointerup`,M),window[t](`pointercancel`,M)},ue=e=>{!e.ctrlKey||c&&c!==`wheel`||(a.x=e.clientX,a.y=e.clientY,!c&&(a.l=0,re(e,`wheel`),!c)||(e.preventDefault(),a.l-=I(-50,50,e.deltaY*(e.deltaMode?16:1))/100,v=V.now(),A(e)))},de=e=>{if(!i.size&&(!c||c===`gesture`)){let{scale:t,rotation:n,clientX:r,clientY:i}=e;a.x=r,a.y=i,a.l=Math.log(t),a.a=n,c?(A(e),e.type===`gestureend`&&ie(e)):e.type===`gesturestart`&&re(e,`gesture`)}c&&e.preventDefault()},fe={pointerdown:se,wheel:ue,gesturestart:de,gesturechange:de,gestureend:de};for(let t in fe)e.addEventListener(t,fe[t],{passive:!1});return()=>{for(let t in fe)e.removeEventListener(t,fe[t]);le(),ie(l),C(),i.clear(),ce()}}var sf=[`scale`,`rotate`,`x`,`y`],cf=e=>{let t=Ql.get(e),n=qo(e)?Ss:ss;return sf.map(r=>{if(t)return t.getValue(r,+(r===`scale`));let i=n.get(e,r);return i||(i=Y(os(e,r)),n(e,{[r]:i})),i})};function lf(e,t,n={}){let r=()=>{};typeof t==`function`?r=t:t&&(n=t);let i=Z.current;if(i){let e=i.bind(r);r=(t,n)=>{let r=e(t,n);if(typeof r!=`object`)return r;let a={};for(let e in r){let t=e,n=r[t];a[t]=n&&i.bind(n)}return a}}let a=Zo(e).map(e=>{i?.track(e);let{style:t}=e,a=t.touchAction;t.touchAction=`none`;let o=of(e,()=>cf(e),()=>n,r);return()=>{o(),t.touchAction=a}});return Jo(()=>a.forEach(e=>e()))}var uf=(e,t)=>t?e===t||uf(e,t.parentElement):!1,df=new WeakSet;function ff(e){return t=>{t.key===`Enter`&&e(t)}}function pf(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var mf=(e,t)=>{let n=!1,r=ff(()=>{n||df.has(e)||(n=!0,pf(e,`down`))}),i=ff(()=>{n&&(n=!1,pf(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&pf(e,`cancel`)},{...t,once:!0})};function hf(e){return Hu(e)&&!Sd()}var gf=new WeakSet,_f=100,vf=8,yf=(e,t,n)=>Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)>n,bf=e=>e.preventDefault();function xf(e,t,n={}){t=Xo(t);let[r,i,a]=Yd(e,n),o=new WeakMap,s=e=>{let r=e.currentTarget;if(!hf(e)||gf.has(e))return;n.stopPropagation&&gf.add(e);let{count:a=1,countTimeout:s=.3,hold:c=0,repeat:l}=n,u=V.now(),d=z(c),f=z(s),p=o.get(r);p?.expire(yf(p.event,e,_f))?p=void 0:p&&(q(p.expire),o.delete(r));let m=p?p.count+1:1,h=m>=a,g=h&&(c||l),_=!c,v=0,y;if(df.add(r),p)y=p.handlers;else{let n=t(r,e);y=typeof n==`function`?{onComplete:n}:n||{}}h&&_&&y.onActive?.();let b=z(l),x=d||b,S=u+x,C=!0,w=()=>{if(i.signal.aborted)return q(w);let e=Math.min(1-(S-V.now())/x,1);C&&e<1&&(e=0),C=!1,y.onHold?.(e),e<1||(_?y.onRepeat?.(++v):(_=!0,y.onActive?.()),l?(C=!0,S+=x=b):q(w))},T={...i,capture:!0},E=(t,n)=>{if(Hu(t)){if(window.removeEventListener(`pointerup`,D,T),window.removeEventListener(`pointercancel`,O,T),window.removeEventListener(`pointermove`,ee,T),r.removeEventListener(`contextmenu`,bf),q(w),df.delete(r),Sd()&&(n=!1),n&&!h){let n=V.now(),a=e=>{let s=i.signal.aborted;if(s||e===!0||V.now()-n>f)return q(a),o.delete(r),s||y.onComplete?.(t,{success:!1}),!0};o.set(r,{count:m,event:e,handlers:y,expire:a}),K.update(a,!0)}else y.onComplete?.(t,{success:n&&_})}},D=e=>{E(e,r===window||r===document||n.useGlobalTarget||uf(r,e.target))},O=e=>{E(e,!1)},ee=t=>{Hu(t)&&((l||!_)&&yf(e,t,vf)||a>1&&Sd())&&O(t)};window.addEventListener(`pointerup`,D,T),window.addEventListener(`pointercancel`,O,T),(g||a>1)&&window.addEventListener(`pointermove`,ee,T),g&&(K.update(w,!0),r.addEventListener(`contextmenu`,bf,{...i,passive:!1}))};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,s,i),Ko(e)&&(e.addEventListener(`focus`,()=>mf(e,i),i),!vd(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Sf(e,t){let n=window.getComputedStyle(e);return yi(t)?n.getPropertyValue(t):n[t]}var Cf={reducedMotion:`(prefers-reduced-motion: reduce)`,motion:`(prefers-reduced-motion: no-preference)`,dark:`(prefers-color-scheme: dark)`,light:`(prefers-color-scheme: light)`,hover:`(hover: hover) and (pointer: fine)`,touch:`(pointer: coarse)`,portrait:`(orientation: portrait)`,landscape:`(orientation: landscape)`};function wf(e){return e.includes(`(`)?e:e.replace(/([<>!]=?)\s+/g,`$1`).trim().split(/\s+/).map(e=>{let t=e[0]===`!`;t&&(e=e.slice(1));let n=/^([<>]=?)([\d.]+)([a-z]*)$/.exec(e),r=n?`(width ${n[1]} ${n[2]}${n[3]||`px`})`:Cf[e]||e;return t?`(not (${r}))`:r}).join(` and `)}function Tf(...e){let t=typeof e[0]==`function`?void 0:e.shift(),[n,r={}]=e,{transition:i,matchMedia:a}=r,o=[],s=new Map,c=[],l=!1,u={root:Zo(t)[0],transition:i,add(e){return c.push(e),()=>Ce(c,e)},bind:e=>((...t)=>{let n=g.run(()=>e(...t));return typeof n==`function`?u.bind(n):n}),track(e){s.has(e)||s.set(e,e.getAttribute(`style`))}},d=e=>{let t=c;c=[];for(let e=t.length-1;e>=0;e--)t[e]();e&&s.forEach((e,t)=>{$s(t),e===null?t.removeAttribute(`style`):t.setAttribute(`style`,e)}),s.clear()},f=()=>{g.state=`active`;let e=!o.length;g.media={};for(let[t,n]of o)e=(g.media[t]=n.matches)||e;if(e&&n){let e=g.run(()=>n(g));typeof e==`function`&&u.add(e)}},p=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,o.length&&g.refresh()}))},m=e=>{g.state=e?`cancelled`:`stopped`;for(let[,e]of o)e.removeEventListener(`change`,p);o.length=0,d(e)},h=(e,t)=>{let n=Z.current;Z.current=e;try{return t()}finally{Z.current=n}},g={state:`active`,media:{},run:e=>h(u,e),ignore:e=>h(void 0,e),bind:u.bind,stop:()=>m(),cancel:()=>m(!0),refresh(){d(!0),f()}};if(a&&typeof window<`u`){let e=typeof a==`string`?{matches:a}:a;for(let t in e){let n=window.matchMedia(wf(e[t]));n.addEventListener(`change`,p),o.push([t,n])}}return Jo(g.cancel),f(),g}var Ef=[`nodes`,`calculatedTargetDeltas`,`calculatedProjections`];function Df(){cc.value=null,cc.addProjectionMetrics=null,cc.countProjection=void 0}function Of(){if(cc.value)throw Df(),Error(`Stats are already being measured`);let e=cc;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)};let t={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0};e.countProjection=n=>{n===void 0?(e.addProjectionMetrics(t),t.nodes=t.calculatedTargetDeltas=t.calculatedProjections=0):t[Ef[n]]++}}function kf(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Af(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=st(r)(l/u)*u),t+l}}function jf(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=ar(i,a,o);return t?s(r):s}var Mf=new Set,Nf=({timestamp:e})=>{Mf.forEach(t=>t.tick(e))},Pf=class extends Sr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(Mf.size||K.update(Nf,!0),Mf.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t;this.started||(this.startTime=vr(this.startTime,e));let o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return pr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():V.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(Mf.delete(this),Mf.size||q(Nf))}};function Ff(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=mc(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=mc(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new Pf({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),X(t)){let r=n.skipInitialAnimation===!0,i=t=>{r?(r=!1,e.jump(If(t,o),!1)):e.set(If(t,o))},a=t.on(`change`,i),s=t.get();mc(s)-mc(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function If(e,t){return t?e+t:e}function Lf(e,t){let n=Y(X(e)?e.get():e);return Rf(n,e,t),n}function Rf(e,t,n={}){let r={type:`spring`,...n};return gr(r),r.type=r.type||ur,Ff(e,t,r)}function zf(e,t,n){let r=()=>t.set(n()),i=()=>K.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),q(r)})}function Bf(e){let t=[];za.current=t;let n=e();za.current=void 0;let r=Y(n);return zf(t,r,e),r}function Vf(e,t,n,r){let i=jf(t,n,r);return Bf(()=>i(e.get()))}function Hf(e,t){let n=Y(X(e)?e.get():e);return Uf(n,e,t),n}function Uf(e,t,n){return Ff(e,t,{...n,type:nr})}var Wf=[...Oo,U,W],Gf=e=>Wf.find(Do(e)),Kf=0,qf=()=>`motion-view-${Kf++}`,Jf=e=>e.startsWith(`motion-view-`);function Yf(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Xf(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Zf(e,t,n,r,i,a=[],o,s=[],c){let l=Zo(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??qf();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),Yf(e,i,a),Xf(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!Jf(d)?f=d:(f=qf(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),Yf(e,i,a),Xf(e,f,o,s,c),f})}function Qf(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function $f(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var ep={},tp=null,np={set:(e,t)=>{ep[e]=t},commit:()=>{tp||(tp=document.createElement(`style`),tp.id=`motion-view`);let e=``;for(let t in ep){let n=ep[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
2
+ `}tp.textContent=e,document.head.appendChild(tp),ep={}},remove:()=>{tp&&tp.parentElement&&tp.parentElement.removeChild(tp)}};function rp(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function ip(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ap(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var op=[`layout`,`enter`,`exit`,`new`,`old`],sp=e=>e.split(` `).every(e=>parseFloat(e)===0),cp={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},lp={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},up=.2;function dp(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new ka([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n)){if(e===`old`)y.set(n,Zo(n)),b=Zf(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=Zf(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Zf(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=pp(Ha(c,n),Ha(fp(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=z(r.duration);let{delay:i=0,duration:a,ease:o}=ji(r);return{delay:z(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of Po)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),E=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??D(e))&&h.add(e)},D=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>up},O=()=>{ap(`root`,n)||np.set(`:root`,{"view-transition-name":`none`}),np.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{np.set(`::view-transition-group(${e})`,{overflow:`clip`}),np.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{np.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),np.commit()},ee=()=>{Qf(u,d,f),np.remove()},te=async()=>{await t(),b(`new`),T(`new`),E(),O()},k;try{b(`old`),T(`old`),O(),k=document.startViewTransition(te)}catch(e){return ee(),Promise.reject(e)}return k.finished.finally(ee),new Promise((e,t)=>{k.ready.then(()=>{let t=ip(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of op){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=$f(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){ze(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=pp(Ha(c,m),Ha(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?lp[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=z(f.duration),f.delay&&=z(f.delay),n.push(new Mi({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=rp(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new Ma(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:Oi(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=z(r.duration)),r=ji(r),d={delay:z(r.delay??0),duration:u&&i!==void 0?z(i):r.duration,easing:u?`linear`:Oi(r.ease,r.duration)}}t.updateTiming(d),n.push(new Ma(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Po){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;sp(s)&&sp(c)||n.push(new Mi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ka(n))}).catch(()=>k.updateCallbackDone.then(()=>e(new ka([])),t))})}function fp(e,t){for(let n of cp[t]??[]){let t=e?.[n]?.options;if(t)return t}}function pp(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var mp=[],hp=null;function gp(){hp=null;let[e]=mp;e&&_p(e)}function _p(e){Ce(mp,e),hp=e,dp(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(gp)}function vp(){for(let e=mp.length-1;e>=0;e--){let t=mp[e],{interrupt:n}=t.options;if(n===`immediate`){let n=mp.slice(0,e+1).map(e=>e.update),r=mp.slice(e+1);t.update=()=>{n.forEach(e=>e())},mp=[t,...r];break}}hp&&mp[0]?.options.interrupt!==`immediate`||gp()}function yp(e){mp.push(e),nc.render(vp)}var bp=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=R,this.notifyReject=R,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(R),yp(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function xp(e,t={}){let n=new bp(e,t);return Yo(n),n}var Sp=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Cp(e,t){return e in t}var wp=class extends mu{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Cp(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return $()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Tp=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`]),Ep=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Dp(e,t,n,r){gu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Tp.has(n)?n:ls(n),t.attrs[n])}function Op(e,t,n){let r=vu(e,t,n);for(let n in e)if(n!==`children`&&(X(e[n])||X(t[n]))){let t=ei.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var kp=class extends hu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return J.has(t)?super.getBaseTargetFromProps(e,t)??Zr(t):e[t]}getDefaultValue(e){return J.has(e)?this.latestValues[e]??Zr(e):void 0}readValueFromInstance(e,t){if(J.has(t)){let e=Ir(t);return e&&e.default||0}if(ms.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Tp.has(t)?t:ls(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Op(e,t,n)}build(e,t,n){hs(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Dp(e,t,n,r)}mount(e){this.isSVGTag=Ep(e.tagName),super.mount(e)}};function Ap(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var jp=[...tu].reverse(),Mp=e=>e?.out===!0?e:e?.out;function Np(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>To(e,t,n))),n=Fp(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,{initial:l}=o,u=r||i,d=[],f=(t=l)=>typeof t!=`boolean`&&co(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom)||void 0,p=new Map,m={},h=1/0,g=e;do g=g.props.inherit!==!1&&g.parent;while(g&&!g.isControllingVariants);let _=u&&Mp(f(l??(g&&g.props.initial))?.transition);if(jp.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?eu(f)||f===!1?f:void 0:l,y=eu(v),b=t===a?i.isActive:null,x=y&&l===void 0&&!(u&&c);if(i.protectedKeys={...m},!i.isActive&&b===null||!v&&!i.prevProp||$l(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=Pp(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},D;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=co(e,n,lo(e,t))||{};E={...E,...a,...i},D=Mp(r)||D}let{prevResolvedValues:O}=i;for(let t in{...O,...E}){if(t in m)continue;let n=E[t],r=O[t],a=Array.isArray(n)&&Array.isArray(r)?!Ap(n,r)||S:n!==r,o;if(a&&n==null)p.has(t)||p.set(t,i.prevOut);else if(a||n!==void 0&&p.has(t)){C=!0,o=p.get(t)||_,p.delete(t)&&(w=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0;i.out[t]=o}if(i.prevProp=v,i.prevResolvedValues=E,i.prevOut=D,i.isActive&&(m={...m,...E}),C&&(!(x&&S)||w))for(let n of T){let r={type:t};if(typeof n==`string`&&u&&c&&s?.enteringChildren){let t=co(s,n)?.transition?.delayChildren;r.delay=Ia(s.enteringChildren,e,t)}d.push({animation:n,options:r})}}),p.size){let t={},n=f(),r=n?.transition;p.forEach((i,a)=>{i&&(r={...r||e.getDefaultTransition(),[a]:i});let s=e.getValue(a);s&&(s.liveStyle=!0);let c=n&&!Array.isArray(l)?n[a]:void 0,u=e.getBaseTargetFromProps(o,a);t[a]=(c===void 0?u!==void 0&&!X(u)?u:e.initialValues[a]===void 0?e.baseTarget[a]:void 0:c)??null}),r&&(t.transition=r),d.push({animation:t})}let v=u&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!v&&d.length?t(d):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Fp(),i=!0}}}function Pp(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ap(t,e):!1}function Fp(){let e={};for(let t of tu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var Ip=nu.length;function Lp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Lp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ip;n++){let r=nu[n],i=e.props[r];(eu(i)||i===!1)&&(t[r]=i)}return t}var Rp=e=>!e.isLayoutDirty&&e.willUpdate(!1);function zp(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Rp);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}function Bp(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=Vu(e,t,n),o=new Bu(r,i,{...Z.current?.transition,...a});return Yo(o),o}var Vp=K,Hp=Sn.reduce((e,t)=>(e[t]=e=>q(e),e),{}),Up=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Wp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Gp(...e){return t=>{let n=!1,r=e.map(e=>{let r=Wp(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Wp(e[t],null)}}}}function Kp(...e){return A(Gp(...e),e)}var qp=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},Jp=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=qp(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=qp(e.offsetParent);return[t/i,n/a]},Yp=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Ko(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ko(e)&&e.offsetWidth||0,r=Ko(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction,a.point=Jp(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function Xp({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o,popNode:s}){let c=ce(),l=N(null),u=N({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=j(Up),f=Kp(l,o===!1?void 0:e.props?.ref??e?.ref),p=()=>l.current||s?.current?.current,m=e=>{let{width:t,height:i,top:a,left:o,right:s,bottom:l,direction:d}=u.current,f=d===`rtl`,p=n===`left`?f?`right:${s}`:`left:${o}`:f?`left:${o}`:`right:${s}`,m=r===`bottom`?`bottom:${l}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${c}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return ue(()=>{let{width:e,height:n}=u.current,r=p();if(t||o===!1||!r||!e||!n)return;r.dataset.motionPopId=c;let i=r.ownerDocument,s=i.createElement(`style`);d&&(s.nonce=d);let l=a??i.head;l.appendChild(s),m(s.sheet);let f=0,h=0;return nc.setup(()=>{let[e,t]=Jp(r);f=u.current.point[0]-e,h=u.current.point[1]-t}),nc.read(()=>{let{sheet:e}=s;if(!e||!f&&!h)return;let t=u.current;t.left+=f,t.right-=f,t.top+=h,t.bottom-=h,e.deleteRule(0),m(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),l.contains(s)&&l.removeChild(s)}},[t]),i(Yp,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Zp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=P(Qp),f=ce(),p=N(),m=N(n),h=N(r);F(()=>{m.current=n,h.current=r});let g=!0,_=fe(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:(e,t)=>(d.set(e,!1),t&&t.parent?.presenceContext?.id!==f&&(p.current=t),()=>{d.delete(e),!m.current&&!d.size&&h.current?.()})}),[n,d,r]);return o&&g&&(_={..._}),fe(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),M(()=>{!n&&!d.size&&r&&r()},[n]),e=i(Xp,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,popNode:p,children:e}),i(xe.Provider,{value:_,children:e})};function Qp(){return new Map}function $p(e=!0){let t=j(xe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=ce();M(()=>{if(e)return i(a)},[e]);let o=A(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function em(){return tm(j(xe))}function tm(e){return e===null||e.isPresent}var nm=e=>e.key||``;function rm(e){let t=[];return c.forEach(e,e=>{O(e)&&t.push(e)}),t}var im=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=$p(c),m=fe(()=>rm(e),[e]),h=c&&!f?[]:m.map(nm),g=N(!0),_=P(()=>new Map),v=N(new Set),[y,b]=he(m),[x,S]=he(m);F(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=N();M(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),F(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=nm(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let w=[];if(m!==y){let e=[...m],t=0;for(let n of x){let r=h.indexOf(nm(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(nm(e)))?e=m:s===`wait`&&(e=w),S(rm(e)),b(m),null}let{forceRender:T}=j(ye);return i(r,{children:x.map(e=>{let r=nm(e),y=c&&!f?!1:m===x||h.includes(r);return i(Zp,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:y?void 0:()=>{if(v.current.has(r))return;if(_.has(r))v.current.add(r),_.set(r,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(T?.(),b([]),c&&p?.(),C.current=a)},anchorX:l,anchorY:u,children:e},r)})})},am=w(null);function om(){let e=N(!1);return F(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sm(){let e=om(),[t,n]=he(0),r=A(()=>{e.current&&n(t+1)},[t]);return[A(()=>K.postRender(r),[r]),t]}var cm=e=>e===!0,lm=e=>cm(e===!0)||e===`id`,um=({children:e,id:t,inherit:n=!0})=>{let r=j(ye),a=j(am),[o,s]=sm(),c=N(null),l=r.id||a;c.current===null&&(lm(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:cm(n)&&r.group||zp()});let u=fe(()=>({...c.current,forceRender:o}),[s]);return i(ye.Provider,{value:u,children:e})},dm=w({strict:!1}),fm={animation:[`variants`,...tu],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},pm=!1;function mm(){if(pm)return;let e={};for(let t in fm)e[t]={isEnabled:e=>fm[t].some(t=>!!e[t])};fu(e),pm=!0}function hm(){return mm(),pu()}function gm(e){let t=hm();for(let n in e)t[n]={...t[n],...e[n]};fu(t)}function _m({children:e,features:t,strict:n=!1}){let[,r]=he(!vm(t)),a=N(void 0);if(!vm(t)){let{renderer:e,...n}=t;a.current=e,gm(n)}return M(()=>{vm(t)&&t().then(({renderer:e,...t})=>{gm(t),a.current=e,r(!0)})},[]),i(dm.Provider,{value:{renderer:a.current,strict:n},children:e})}function vm(e){return typeof e==`function`}function ym({children:e,...t}){let n=j(Up);t={...n,...t},t.transition=Va(t.transition,n.transition),t.isStatic=P(()=>t.isStatic);let r=fe(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Up.Provider,{value:r,children:e})}var bm=w({});function xm(e,t){if(ru(e)){let{initial:t,animate:n}=e;return{initial:t===!1||eu(t)?t:void 0,animate:eu(n)?n:void 0}}return e.inherit===!1?{}:t}function Sm(e){let{initial:t,animate:n}=xm(e,j(bm));return fe(()=>({initial:t,animate:n}),[Cm(t),Cm(n)])}function Cm(e){return Array.isArray(e)?e.join(` `):e}var wm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tm(e,t,n){for(let r in t)!X(t[r])&&!_u(r,n)&&(e[r]=t[r])}function Em({transformTemplate:e},t){return fe(()=>{let n=wm();return us(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dm(e,t){let n=e.style||{},r={};return Tm(r,n,e),Object.assign(r,Em(e,t)),r}function Om(e,t){let n={},r=Dm(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var km=()=>({...wm(),attrs:{}});function Am(e,t,n,r){let i=fe(()=>{let n=km();return hs(n,t,Ep(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return Tm(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var jm=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.tap.propagate.ignoreStrict.viewport.pinch`.split(`.`));function Mm(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||jm.has(e)}function Nm(e,t){return e.startsWith(`on`)?!Mm(e):t?.(e)??!Mm(e)}function Pm(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||X(e[a])||(Nm(a,r)||n===!0&&Mm(a)||!t&&!Mm(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Fm=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Im(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Fm.indexOf(e)>-1||/[A-Z]/u.test(e))}function Lm(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Im(e)?Am:Om)(t,r,i,e),l=Pm(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=fe(()=>X(f)?f.get():f,[f]);return T(e,{...d,children:p})}function Rm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:zm(n,r,i,e),renderState:t()}}function zm(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=pc(a[e]);let{initial:o,animate:s}=e,c=ru(e),l=iu(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!$l(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=so(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Bm=e=>(t,n)=>{let r=j(bm),i=j(xe),a=()=>Rm(e,t,r,i);return n?a():P(a)},Vm=Bm({scrapeMotionValuesFromProps:vu,createRenderState:wm}),Hm=Bm({scrapeMotionValuesFromProps:Op,createRenderState:km}),Um=Symbol.for(`motionComponentSymbol`);function Wm(e,t,n){let r=N(n);ue(()=>{r.current=n});let i=N(null);return A(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Gm=w({});function Km(e,t,n,r,i,a){let{visualElement:o}=j(bm),s=j(dm),c=j(xe),l=j(Up),u=l.reducedMotion,d=l.skipAnimations,f=N(null),p=N(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=j(Gm);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),ue(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[yo],_=N(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return F(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),F(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),M(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function qm(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&gm(r);let s=n?n===`svg`:Im(e),c=s?Hm:Vm;function l(n,l){let u,d=Jm(n);P(()=>!!Xl.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...j(Up),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=Sm(n),g=c(n,p);if(!p&&typeof window<`u`){Ym(f,r);let t=Xm(f);h.visualElement=Km(e,g,f,o,t.ProjectionNode,s),(t.isEnabled||h.visualElement?.projection?.options.layoutId)&&(u=t.MeasureLayout)}return a(bm.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,Lm(e,n,Wm(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=D(l);return u[Um]=e,u}function Jm({layoutId:e}){let t=j(ye).id;return t&&e!==void 0?t+`-`+e:e}function Ym(e,t){j(dm).strict}function Xm(e){let{drag:t,layout:n}=hm();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function Zm(e,t){if(typeof Proxy>`u`)return qm;let n=new Map,r=(n,r)=>qm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qm(a,void 0,e,t)),n.get(a))})}var Qm=Zm(),$m=(e,t)=>t.isSVG??Im(e)?new kp(t):new bu(t,{allowProjection:e!==u}),eh=class extends Sp{constructor(e){super(e),e.animationState||=Np(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();$l(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},th=0,nh={animation:{Feature:eh},exit:{Feature:class extends Sp{constructor(){super(...arguments),this.id=th++}update(){let{presenceContext:e,animationState:t}=this.node;if(!e||!t)return;let{isPresent:n,onExitComplete:r}=e;if(n===!this.exit)return;if(n){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=co(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,t.reset(),t.animateChanges()}else t.setActive(`exit`,!1);this.exit=void 0;return}let i=this.exit=t.setActive(`exit`,!0);r&&i.then(()=>{this.exit===i&&(this.exit=!0,r(this.id))})}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id,this.node)),this.update()}unmount(){}}}},rh=class extends Sp{constructor(e){super(e),this.removeGroupControls=R,this.removeListeners=R,this.controls=new Ld(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ih=e=>(t,n)=>{e&&K.update(()=>e(t,n),!1,!0)},ah=class extends Sp{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(e){this.session=new ld(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ih(e),onStart:ih(t),onMove:ih(n),onEnd:(e,t)=>{delete this.session,r&&K.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Gu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},oh=!1,sh=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),ch=(e,t)=>{let{snapshot:n}=e,r=e.getStack();r?.remove(e);let i=r?.lead;if(r?.prevLead===e&&i.resumeFrom===e&&(i.resumeFrom=i.currentAnimation=e.resumingFrom=void 0),e.options.layoutId=t,!t)e.needsShow=!0;else return e.root.registerSharedNode(t,e),()=>{let{resumeFrom:t}=e;t?.isPresent!==!1&&e.getStack().members.includes(t)&&(t.hide(),e.resumeFrom=void 0,e.snapshot=n)}},lh=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group?.add(i),r&&n?.register?.(i),oh&&i.root.didUpdate(),i.options.layoutId!==r&&ch(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...sh(this.props),onExitComplete:()=>this.safeToRemove()})),ml.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,layoutId:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,this.takeOver=e.layoutId===n?void 0:(o.willUpdate(),ch(o,n)),o.setOptions({...o.options,...sh(this.props)}),oh=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||K.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),nc.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;oh=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function uh(e){let[t,n]=$p(),r=j(ye);return i(lh,{...e,layoutGroup:r,switchLayoutGroup:j(Gm),isPresent:t,safeToRemove:n})}var dh={pan:{Feature:ah},drag:{Feature:rh,ProjectionNode:Zl,MeasureLayout:uh}};function fh(e,t,n,r,i){let{props:a}=e,o=`while`+n;!i&&e.animationState&&a[o]&&e.animationState.setActive(o,r===`Start`);let s=a[`on`+n+r];s&&K.postRender(()=>s(t,Uu(t)))}var ph=class extends Sp{mount(){let{current:e}=this.node;e&&(this.unmount=Zd(e,(e,t)=>(fh(this.node,t,`Hover`,`Start`),e=>fh(this.node,e,`Hover`,`End`))))}unmount(){}},mh=class extends Sp{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Me(Jl(this.node.current,`focus`,()=>this.onFocus()),Jl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function hh(e,t,n,r){e.current instanceof HTMLButtonElement&&e.current.disabled||fh(e,t,`Tap`,n,r)}var gh=class extends Sp{constructor(){super(...arguments),this.options={}}mount(){let{current:e}=this.node;e&&(this.update(),this.unmount=xf(e,(e,t)=>(hh(this.node,t,`Start`),{onComplete:(e,{success:t})=>hh(this.node,e,t?``:`Cancel`),onRepeat:()=>hh(this.node,t,``,!0)}),this.options))}update(){let{options:e,node:t}=this,{globalTapTarget:n,propagate:r,tap:i}=t.props;for(let t in e)delete e[t];Object.assign(e,i,{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}},_h=new WeakMap,vh=new WeakMap,yh=e=>{let t=_h.get(e.target);t&&t(e)},bh=e=>{e.forEach(yh)};function xh({root:e,...t}){let n=e||document;vh.has(n)||vh.set(n,{});let r=vh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bh,{root:e,...t})),r[i]}function Sh(e,t,n){let r=xh(t);return _h.set(e,n),r.observe(e),()=>{_h.delete(e),r.unobserve(e)}}var Ch={some:0,all:1},wh=class extends Sp{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ch[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Sh(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Th(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Th({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Eh={inView:{Feature:wh},tap:{Feature:gh},focus:{Feature:mh},hover:{Feature:ph}},Dh={layout:{ProjectionNode:Zl,MeasureLayout:uh}},Oh=Zm(Object.assign({},nh,Eh,dh,Dh),$m);function kh(e){return M(()=>()=>e(),[])}var Ah=Object.assign({renderer:$m},nh,Eh),jh=Object.assign({},Ah,dh,Dh),Mh={renderer:$m,...nh},Nh=[`scale`,`rotate`,`x`,`y`],Ph={renderer:$m,pinch:{Feature:class extends Sp{constructor(){super(...arguments),this.touchAction=``}mount(){let{current:e}=this.node;if(!e)return;this.touchAction=e.style.touchAction,this.update();let t={},n=e=>(n,r)=>t[e]?.(n,r);this.unmount=of(e,()=>Nh.map(e=>this.node.getValue(e,+(e===`scale`))),()=>{let{pinch:e}=this.node.getProps();return e&&(t=e===!0?{}:e)},(e,t,r)=>{let i=e=>this.node.animationState?.setActive(`whilePinch`,e);return i(!0),n(`onStart`)(t,r),{onPinch:n(`onMove`),onComplete:(e,t)=>{i(!1),n(`onEnd`)(e,t)}}})}update(){let e=this.node.current?.style;if(e){let{pinch:t,style:n}=this.node.getProps();e.touchAction=t?n?.touchAction||`none`:this.touchAction}}unmount(){}},isEnabled:e=>!!e.pinch}};function Fh(e,t,n){ue(()=>e.on(t,n),[e,t,n])}var Ih=50,Lh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Rh=()=>({time:0,x:Lh(),y:Lh()}),zh={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},Bh=new WeakMap;function Vh(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=Bh.get(r);i||Bh.set(r,i=getComputedStyle(r));let{writingMode:a,flexDirection:o}=i,s=t===`x`!==/^[vs]/.test(a);return(s?i.direction===`rtl`!=(a===`sideways-lr`):a.endsWith(`rl`))!==(!n&&i.display.includes(`flex`)&&(s===(o[0]===`c`)?i.flexWrap:o).endsWith(`reverse`))}function Hh(e,t,n,r){let i=n[t],{length:a,position:o}=zh[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=Vh(e,t)?-l||0:l,i.containerLength=e[`client${a}`],i.targetLength=e[`scroll${a}`],i.scrollLength=i.targetLength-i.containerLength,i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=I(0,1,Ne(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>Ih?0:Ie(i.current-s,u)}function Uh(e,t,n){for(let r in zh)Hh(e,r,t,n);t.time=n}var Wh={start:0,center:.5,end:1};function Gh(e,t,n=0){let r=0;if(e in Wh&&(e=Wh[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var Kh=[0,0];function qh(e,t,n,r){let i=Array.isArray(e)?e:Kh,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Wh[e]?e:`0`]),a=Gh(i[0],n,r),o=Gh(i[1],t),a-o}var Jh={All:[[0,0],[1,1]]};function Yh(e,t){let n=e.length-1;if(n<1)return 0;let r=e[0]>e[n],i=t=>e[r?n-t:t];if(e[0]===e[1]&&t<i(0))return+!!r;let a=0;for(;a<n-1&&t>=i(a+1);)a++;let o=(a+Ne(i(a),i(a+1),t))/n;return r?1-o:o}function Xh(e,{offset:t=Jh.All}){for(let n in zh){let r=e[n];r.offset.length=0;for(let e=0;e<t.length;e++)r.offset[e]=qh(t[e],r.containerLength,r.targetLength,r.targetOffset);r.progress=I(0,1,Yh(r.offset,r.current))}}function Zh(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Ko(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}function Qh(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function $h(e,t,n,r={}){let{target:i}=r,a=i||r.offset;return{measure:t=>{if(a){n.time=t.time;for(let e in zh){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=Zh(i,e),r=Qh(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}Xh(n,r)}},notify:e=>t(a?n:e)}}var eg=new WeakMap,tg=new WeakMap,ng=new WeakMap,rg=new WeakMap,ig=e=>e===document.scrollingElement?window:e;function ag(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return R;let i=ng.get(t);i||(i=new Set,ng.set(t,i));let a=$h(t,e,Rh(),r);if(i.add(a),!eg.has(t)){let e=Rh(),n=()=>{Uh(t,e,B.timestamp);for(let t of i)t.measure(e);K.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>K.read(n);eg.set(t,a);let o=ig(t);window.addEventListener(`resize`,a),t!==document.documentElement&&tg.set(t,ad(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!rg.has(t)){let e=eg.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=K.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);rg.set(t,r)}let o=eg.get(t);return K.read(o,!1,!0),()=>{q(o);let e=ng.get(t);if(!e||(e.delete(a),e.size))return;ng.delete(t);let n=eg.get(t);eg.delete(t),n&&(ig(t).removeEventListener(`scroll`,n),tg.get(t)?.(),window.removeEventListener(`resize`,n));let r=rg.get(t);r&&(q(r),rg.delete(t))}}function og(e){return typeof window>`u`?!1:e?wi():Ci()}var sg=new Map;function cg({container:e,target:t,axis:n}){let r=sg.get(e);r||(r=new Map,sg.set(e,r));let i=t??`self`,a=r.get(i);return a||(a={},r.set(i,a)),a[n]||(a[n]=t?new ViewTimeline({subject:t,axis:n}):new ScrollTimeline({source:e,axis:n}))}var lg=e=>{if(/v/u.test(e))return[];let t=qh(e,0,0,0);return[qh(e,0,1,0)-t,t-qh(e,1,0,0),t]},ug=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function dg(e=Jh.All){if(e.length!==2)return;let[t,n]=e.map(lg),r=[ug(t),ug(n)],i=n[0]-t[0],a=t[1]-n[1];if(r[0]&&r[1]&&(i||a))return{points:r,a:i,b:a,cover:!t[0]&&i===1&&a===1}}function fg(e,t){let{target:n,container:r,axis:i}=t,a=n&&dg(t.offset),o=og(n)&&(n?!!a:!t.offset),s=new Map,c=new Set,l,u=!1,d=(e,t)=>{let[n,r]=a.points;t.effect.updateTiming({direction:u?e===`normal`?`reverse`:`alternate-reverse`:e}),Object.assign(t,{rangeStart:u?r:n,rangeEnd:u?n:r}),t.play()},f=[e.attachTimeline({get timeline(){return o?cg(t):void 0},onAttach:a&&(e=>{let t=e.effect.getTiming().direction;s.set(e,t),d(t,e)}),observe:e=>(e.pause(),c.add(e),l||=ag(e=>{c.forEach(t=>{t.time=t.iterationDuration*e[i].progress})},t),()=>c.delete(e))})];if(o&&a){let{a:e,b:t}=a,o=i===`y`?`clientHeight`:`clientWidth`,c=()=>{u!==(u=e*n[o]+t*r[o]<0)&&s.forEach(d)};c(),e*t<0&&f.push(ad(c),ad([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function pg(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return R;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=Xo(e);return Jo(ag(e=>n(e[t].progress,e),a))}return Jo(fg(e,a))}var mg=()=>({scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0),scrollXLength:Y(0),scrollYLength:Y(0)}),hg=e=>e?!e.current:!1;function gg(e,t,n,r){return{factory:i=>{let a,o=()=>{hg(n)||hg(r)?nc.read(o):a=pg(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return nc.read(o),()=>{rc(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function _g(e,t){return typeof window>`u`?!1:e?wi()&&!!dg(t):Ci()&&!t}function vg({container:e,target:t,...n}={}){let r=P(mg);_g(t,n.offset)&&(r.scrollXProgress.accelerate=gg(`x`,n,e,t),r.scrollYProgress.accelerate=gg(`y`,n,e,t));let i=N(null),a=N(!1),o=A(()=>(i.current=pg((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollXLength.set(t.scrollLength),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress),r.scrollYLength.set(n.scrollLength)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return F(()=>{if(a.current=!1,hg(e)||hg(t))a.current=!0;else return o()},[o]),M(()=>{if(!a.current)return;let n,r=()=>{let r=hg(e),i=hg(t);!r&&!i&&(n=o())};return nc.read(r),()=>{rc(r),n?.()}},[o]),r}function yg(e){return vg({container:e})}function bg(){return vg()}function xg(e){let t=P(()=>Y(e)),{isStatic:n}=j(Up);if(n){let[,n]=he(e);M(()=>t.on(`change`,n),[])}return t}function Sg(e,t){let n=xg(t()),r=()=>n.set(t());return r(),F(()=>{let t=()=>K.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),q(r)}}),n}function Cg(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=X(n)?n.get():n)}return r}return Sg(t.filter(X),r)}function wg(e){za.current=[],e();let t=Sg(za.current,e);return za.current=void 0,t}function Tg(e,t={}){return Eg(e,t,Rf)}function Eg(e,t,n){let{isStatic:r}=j(Up),i=()=>X(e)?e.get():e;if(r)return wg(i);let a=xg(i());return ue(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function Dg(e,t={}){return Eg(e,t,Uf)}function Og(e){let t=N(0),{isStatic:n}=j(Up);M(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return K.update(r,!0),()=>q(r)},[e])}function kg(){let e=xg(0);return Og(t=>e.set(t)),e}function Ag(e,t,n,r){if(typeof e==`function`)return wg(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Mg(e,t,n,r);let i=typeof t==`function`?t:jf(t,n,r),a=Array.isArray(e)?jg(e,i):jg([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&!r?.mixer){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function jg(e,t){let n=P(()=>[]);return Sg(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Mg(e,t,n,r){let i=P(()=>Object.keys(n)),a=P(()=>({}));for(let o of i)a[o]=Ag(e,t,n[o],r);return a}function Ng(e){let t=xg(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&K.update(n)};return Fh(e,`change`,()=>{K.update(n,!1,!0)}),t}var Pg=class extends Ba{constructor(){super(...arguments),this.isEnabled=!1}add(e){(J.has(e)||Vi.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function Fg(){return P(()=>new Pg(`auto`))}function Ig(){!su.current&&lu();let[e]=he(ou.current);return e}function Lg(){let e=Ig(),{reducedMotion:t}=j(Up);return t===`never`?!1:t===`always`||e}function Rg(e){e.values.forEach(e=>e.stop())}function zg(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&ho(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{zg(e,t)})})}function Bg(e,t){if(Array.isArray(t))return zg(e,t);if(typeof t==`string`)return zg(e,[t]);ho(e,t)}function Vg(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(To(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Bg(e,t)})},stop(){e.forEach(e=>{Rg(e)})},mount(){return()=>{t.stop()}}};return t}function Hg(e){return typeof e==`object`&&!Array.isArray(e)}function Ug(e,t,n,r){return e==null?[]:typeof e==`string`&&Hg(t)?Zo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Wg(e,t,n){return e*(t+1)+n*t}function Gg(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function Kg(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):Gg(t,r)??e}function qg(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ce(e,i),r--)}}function Jg(e,t,n,r,i,a){qg(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:G(i,a,r[o]),easing:rt(n,o)})}function Yg(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Xg(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Zg=`easeInOut`,Qg=20;function $g(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:Kg(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=n_(e),{delay:l=0,times:u=sr(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=Ai(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&a_(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=z(b));let r=jn(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&or(u,T),c.length===1&&c.unshift(null),m&&m<Qg){let e=b>0?g/b:0;b=Wg(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?We(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:rt(f,e-1))}Yg(u,m,e)}let E=w+b;Jg(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(X(g)){let e=e_(g,c);b(_,v,t_(`default`,e))}else{let e=Ug(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=e_(r,c);for(let e in _)b(_[e],r_(v,e),t_(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};m(e,0),a&&(a.duration=p,a.labels=u);let{type:h,...g}=t;return c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Xg);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(Ne(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(Zg)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o,u.transition[i]={...g,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function e_(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function t_(e,t){return t[e]||(t[e]=[]),t[e]}function n_(e){return Array.isArray(e)?e:[e]}function r_(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var i_=e=>typeof e==`number`,a_=e=>e.every(i_);function o_(e,t){return X(e)||typeof e==`number`||typeof e==`string`&&!Hg(t)}function s_(e,t,n,r){let i=[];if(o_(e,t))i.push(ac(e,Hg(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Ug(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...Qs(r,t,s,Ql.get(r))):i.push(...Wo(Ho(r)??tc,r,t,s))}}return i}function c_(e,t,n,r){let i=[],a=$g(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Y(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:nr},r),o=t?.reduceMotion??t?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:e,transition:t},n)=>{i.push(...s_(n,e,{...t,reduceMotion:o}))}),i}var l_=0;function u_({repeat:e=0,repeatDelay:t=0,repeatType:n=`loop`,delay:r=0},i,a,o){let s=i+t,c=o===void 0;if(c){let t=Math.max(0,a-r);o=s&&t>0?Math.min(e,Math.ceil(t/s-1e-9)-1):0,a=Math.min(t-o*s,i)}return n!==`loop`&&o%2&&(a=i-a),[o,c?a:r+o*s+a]}function d_(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var f_=(e,t)=>t===void 0?e:{name:e,at:t};function p_(e){e.pause(),e.time=0,e.stop()}var m_=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=Z.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new ja(n),this.watch()):(this.invalidate(),this.flush())}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+l_++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+l_++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=this.iterationDuration,r=this.time,[i]=u_(this.options,n,r),a=u_(this.options,n,t,i)[1],o=Math.abs(this.speed);return this.speed=a<r?-o:o,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(p_(this.group),void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let t=this.group,n=0;t&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),t.cancel()):(n=t.animations.length?t.time:0,p_(t)),this.isRebuilding=!1);let{defaultTransition:r,onComplete:i,onUpdate:a,onRepeat:o,onReverseComplete:s,autoplay:c,scope:l,...u}=this.options,d={};l?.reduceMotion!==void 0&&(d.reduceMotion=l.reduceMotion),l?.skipAnimations!==void 0&&(d.skipAnimations=l.skipAnimations),Object.assign(d,u);let f=new Map,p={},m=Z.current;Z.current=this.motionScope;let h;try{h=c_(this.toSequence(f),{defaultTransition:r,...d},l,p)}finally{Z.current=m}let g=p.labels,_=d.duration??p.duration,v=p.duration?_/p.duration:1;if(g.forEach((e,t)=>g.set(t,e*v)),this.markers=[],f.forEach((e,t)=>{e.time=g.get(t),g.delete(t),_=Math.max(_,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=g,this.totalDuration=_,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||o){let e=this.clock=Y(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),h.unshift(this.clockAnimation=ac(e,[0,_],{...d,duration:_,ease:`linear`}))}let y=this.group=new ja(h),{delay:b=0,repeat:x=0,repeatDelay:S=0}=this.options,[C,w]=u_(this.options,e,n);n>b&&(n=u_(this.options,_,Math.min(w,_),C)[1]),this.isDone&&n<b+(x+1)*(_+S)-S&&this.newFinished(),this.scrollTimeline?this.detachScroll=y.attachTimeline(this.scrollTimeline):(y.speed=this.playbackSpeed,this.isPaused&&y.pause(),n&&(y.time=n)),this.repeatIndex=this.currentRepeat(),this.prevTime=n||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),f_(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?f_(n,r):r===void 0?n:Array.isArray(n)?d_(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:Gg(e,this.labels)??this.time}currentRepeat(){return u_(this.options,this.totalDuration,this.clockAnimation?.time??0)[0]}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat(),o=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let e=this.speed>0==(i===`loop`||!(this.repeatIndex%2)),n=e?this.totalDuration:0;if(this.cross(t,n))return;this.repeatIndex+=o,r?.(),t=i===`loop`?e?-1:1/0:n}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=u_(this.options,this.totalDuration,e,this.repeatIndex)[1],!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options,r=this.speed<0&&n||t,i=this.resolveFinished;r?.(),i()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let{scope:e}=this.options,t=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{t?.(),e&&Ce(e.animations,this)})}};function h_(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e)||e?.sequence)}function g_(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=Z.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(h_(e)){let r={...s,...i,scope:t};o&&(r.defaultTransition={...o,...r.defaultTransition}),r.reduceMotion=i?.reduceMotion??r.defaultTransition?.reduceMotion??n,c=new m_(e,r)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new m_([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},s_(e,i,l,t))}return c}return i}var __=Object.assign(g_(),{addEffect:Bo,removeEffect:Vo});function v_(){let e=P(()=>({current:null,animations:[]})),t=Lg()??void 0,{skipAnimations:n}=j(Up);e.reduceMotion=t,e.skipAnimations=n;let r=fe(()=>g_({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return kh(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function y_(e,t,{deps:n=[],...r}={}){let i=N(null),a=N(t);return a.current=t,F(()=>{let t=i.current=Tf(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function b_(e,t,n,r){let i=[];return x_(i,e,t,n,r),S_(i)}function x_(e,t,n,r,i){if(t==null)return;let a=Zo(t,i),o=a.length;for(let t=0;t<o;t++){let i=a[t],s={...r};typeof s.delay==`function`&&(s.delay=s.delay(t,o));for(let t in n){let r=n[t];Array.isArray(r)||(r=[r]);let a={...Ha(s,t)};a.duration&&=z(a.duration),a.delay&&=z(a.delay);let o=Fa(i),c=Pa(t,a.pseudoElement||``),l=o.get(c);l&&l.stop(),e.push({map:o,key:c,unresolvedKeyframes:r,options:{...a,element:i,name:t,allowFlatten:!s.type&&!s.ease}})}}}function S_(e){for(let t=0;t<e.length;t++){let{unresolvedKeyframes:n,options:r}=e[t],{element:i,name:a,pseudoElement:o}=r;!o&&n[0]===null&&(n[0]=Sf(i,a)),Hr(n),Io(n,a),!o&&n.length<2&&n.unshift(Sf(i,a)),r.keyframes=n}let t=[];for(let n=0;n<e.length;n++){let{map:r,key:i,options:a}=e[n],o=new Mi(a);r.set(i,o),o.finished.finally(()=>r.delete(i)),t.push(o)}return t}var C_=e=>{function t(t,n,r){return new ja(b_(t,n,r,e))}return t},w_=C_();function T_(){let e=P(()=>({current:null,animations:[]})),t=P(()=>C_(e));return kh(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function E_(){let e=P(Vg);return F(e.mount,[]),e}var D_=E_;function O_(){let e=j(xe);return e?e.custom:void 0}function k_(e,t,n,r){M(()=>{let i=e.current;if(n&&i)return Jl(i,t,n,r)},[e,t,n,r])}var A_=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},j_=()=>new A_;function M_(){return P(j_)}function N_(e){return typeof e==`object`&&!!e&&Um in e}function P_(e){if(N_(e))return e[Um]}function F_(){return I_}function I_(e){Xl.current&&(Xl.current.isUpdating=!1,Xl.current.blockUpdate(),e&&e())}function L_(){return A(()=>{let e=Xl.current;e&&e.resetTree()},[])}function R_(...e){let t=N(0),[n,r]=he(e[t.current]);return[n,A(n=>{t.current=typeof n==`number`?n:Be(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var z_={some:0,all:1};function B_(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Zo(e);t=Xo(t);let o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:z_[i]});return a.forEach(e=>s.observe(e)),Jo(()=>s.disconnect())}function V_(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=he(a),[c,l]=he({});return M(()=>{let a=c.current=e.current;return!a||i&&o?void 0:B_(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),M(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function H_(){let[e,t]=sm(),n=F_(),r=N(-1);return M(()=>{K.postRender(()=>K.postRender(()=>{t===r.current&&(L.instantAnimations=!1)}))},[t]),i=>{n(()=>{L.instantAnimations=!0,e(),i(),r.current=t+1})}}function U_(){L.instantAnimations=!1}function W_(){let[e,t]=he(!0);return M(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function G_(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function K_(e){return t=>{let n=e.current;if(!n)return t;let r=q_(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function q_(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var J_=new Map,Y_=new Map,X_=(e,t)=>`${e}: ${J.has(t)?`transform`:t}`;function Z_(e,t,n){let r=X_(e,t),i=J_.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var Q_,$_,ev=new Set;function tv(){ev.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),ev.clear()}function nv(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[vo];if(!a)return;window.MotionHandoffAnimation=Z_;let o=X_(a,t);$_||($_=ki(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),J_.set(o,{animation:$_,startTime:null}),window.MotionHandoffAnimation=Z_,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Y_.has(e);let n=X_(e,t);return!!J_.get(n)},window.MotionHandoffMarkAsComplete=e=>{Y_.has(e)&&Y_.set(e,!0)},window.MotionHandoffIsComplete=e=>Y_.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=X_(e,t),a=J_.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(ev.add(a),n.render(tv)):(J_.delete(i),J_.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=bo(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{$_.cancel();let a=ki(e,t,n,r);Q_===void 0&&(Q_=performance.now()),a.startTime=Q_,J_.set(o,{animation:a,startTime:Q_}),i&&i(a)};Y_.set(a,!1),$_.ready?$_.ready.then(s).catch(R):s()}var rv=()=>({}),iv=class extends mu{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return rv()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},av=Bm({scrapeMotionValuesFromProps:rv,createRenderState:rv});function ov(e){let[t,n]=he(e),r=av({},!1),i=P(()=>new iv({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return de(()=>(i.mount({}),()=>i.unmount()),[i]),[t,P(()=>e=>To(i,e))]}var sv=0,cv=({children:e})=>(M(()=>{},[]),i(um,{id:P(()=>`asl-${sv++}`),children:e})),lv=1e5,uv=e=>e>.001?1/e:lv;function dv(e){let t=xg(1),n=xg(1),{visualElement:r}=j(bm);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:Ag(t,uv),scaleY:Ag(n,uv)}}var fv=w(null),pv=w(null);function mv(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:gv(t.x)+n.x,y:gv(t.y)+n.y},i=_v(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>vv(r.y,t)<vv(r.y,e)?t:e);if(c!==s)return yv(e,o,r.x,c,a);let l=bv(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=bv(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:we(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=gv(u);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?we(e,o,o+s):e}function hv(e,t,n,r,i){let a=n>1==!!(n%2&&i)?-1:1,o=n>3?(n-4)*(e.length-1):t+a;if(r===`xy`&&n<4&&!(n%2)&&t>-1){let n=_v(e).sort((e,t)=>e.min-t.min),r=n[n.findIndex(({items:n})=>n.includes(e[t]))+a],i=n=>Math.abs(gv(n.layout.x)-gv(e[t].layout.x));o=r?e.indexOf(r.items.reduce((e,t)=>i(t)<i(e)?t:e)):-1}return t>-1&&o!==t&&e[o]?o:-1}var gv=({min:e,max:t})=>G(e,t,.5);function _v(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function vv(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function yv(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=gv(e.layout.x);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function bv(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var xv=(e,t)=>e.max<=t.min||t.max<=e.min;function Sv(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=xv(e[r].x,e[i].x),n||=xv(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}var Cv=(e,t)=>n=>{e.current=n;let r=typeof t==`function`?t(n):t&&(t.current=n);if(typeof r==`function`)return()=>{e.current=null,r()}};function wv({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l,u){let d=P(()=>u[t]),f=j(fv),p=N(new Map),m=N(new Map),[h,g]=he(),[_,v]=he(`y`),y=N(!1),b=N(!1),x=N(null),S=n||_,C=new Set(a);for(let e of[p.current,m.current])e.forEach((t,n)=>C.has(n)||e.delete(n));let w=C.has(h)?h:a[0],T=e=>m.current.get(e)?.current?.isConnected,E=e=>C.has(e)&&g(e),D=()=>{T(w)||E(a.find(T))};M(D);let O=()=>a.flatMap(e=>p.current.get(e)||[]),ee=()=>x.current?.ownerDocument.defaultView?.getComputedStyle(x.current).direction===`rtl`,te=(e,t)=>{let n=0,i=a.map(t=>p.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},k={axis:S,proxy:u,groupRef:x,hasReordered:b,values:a,onReorder:r,getOrder:O,isTabStop:e=>e===w||!C.has(e),setActive:E,checkTabStop:D,elements:m.current,onKeyDown:(e,t,n,r)=>{let{key:i,currentTarget:o}=e;if(e.defaultPrevented||e.target!==o||e.altKey||e.ctrlKey||e.metaKey)return;let s=O(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(c<0&&!(i===`Escape`&&n))return;else if(!f?.isMoving(o)){if(i===`Escape`&&n){if(r(o),!f?.restore(k,t,o,n)){let e=n.flatMap(e=>s.filter(t=>t.value===e));te(s.map(t=>n.includes(t.value)?e.shift():t),t)}}else{let e=c>3||S===`xy`||S===(l?`x`:`y`),r=n?s:s.filter(({value:e})=>T(e)),i=r.findIndex(({value:e})=>e===t),a=e?hv(r,i,c,S,!!l&&ee()):-1;if(a>-1)n?te(we(s,i,a),t):m.current.get(r[a].value)?.current?.focus();else if(!(n&&c<4&&f?.key(k,t,c,o,n))&&!e)return}}e.preventDefault()},registerItem:(e,t,r)=>{if(p.current.set(e,{value:e,layout:t,ref:r}),!n){let e=Sv(O().map(e=>e.layout));e!==_&&v(e)}},updateOrder:(e,t,n)=>{if(y.current)return;let r=O(),i=mv(r,e,t,n,S,ee()?`rtl`:`ltr`);r!==i&&(y.current=!0,b.current=!0,te(i,e))}};M(()=>{y.current=!1},[a]),F(()=>f?.add(k));let ne={overflowAnchor:`none`,...c.style};return i(d,{...c,style:ne,ref:Cv(x,l),onPointerDownCapture:e=>{b.current=!1,o?.(e)},onClickCapture:e=>{b.current&&e.detail&&(b.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(pv.Provider,{value:k,children:e})})}var Tv=e=>D((t,n)=>wv(t,n,e)),Ev=50,Dv=1.5,Ov=new Set([`auto`,`scroll`]),kv={x:new Map,y:new Map};function Av(){kv.x.clear(),kv.y.clear()}function jv(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY;return e===document.body||e===document.documentElement||Ov.has(r)&&(t===`x`?e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight)}function Mv(e,t){let n=e?.parentElement;for(;n;){if(jv(n,t))return n;n=n.parentElement}return null}function Nv(e){let t=Math.min(1,1-e/Ev);return Dv*t*t*B.delta}function Pv(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;return o<Ev?{amount:-Nv(o),edge:`start`}:s<Ev?{amount:Nv(s),edge:`end`}:{amount:0,edge:null}}function Fv(e,t,n,r){if(!e)return;let i=Mv(e,n);if(!i)return;let{amount:a,edge:o}=Pv(t-(n===`x`?window.scrollX:window.scrollY),i,n),s=kv[n];if(o===null){s.delete(i);return}let c=s.get(i),l=i===document.body||i===document.documentElement;if(c?.edge!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;c={edge:o,limit:n===`x`?i.scrollWidth-(l?window.innerWidth:i.clientWidth):i.scrollHeight-(l?window.innerHeight:i.clientHeight)},s.set(i,c)}a>0&&(n===`x`?l?window.scrollX:i.scrollLeft:l?window.scrollY:i.scrollTop)>=c.limit||(n===`x`?l?window.scrollBy({left:a}):i.scrollLeft+=a:l?window.scrollBy({top:a}):i.scrollTop+=a)}function Iv(e,t=0){return X(e)?e:xg(t)}function Lv({children:e,style:t={},value:n,as:r=`li`,onDragStart:a,onDrag:o,onDragEnd:s,onKeyDown:c,onFocus:l,onBlur:u,layout:d=!0,...f},p){let m=j(pv),h=j(fv),g=N(null),_=P(()=>m.proxy[r]),v=N(),y={x:Iv(t.x),y:Iv(t.y)},b=Ag([y.x,y.y],([e,t])=>e||t?1:`unset`),{axis:x,registerItem:S,updateOrder:C,groupRef:w,hasReordered:T,isTabStop:E,setActive:D,checkTabStop:O,elements:ee,onKeyDown:te}=m,k=x===`xy`||h?!0:x;ee.set(n,g),M(()=>O);let ne=(e,t)=>{v.current=t,t||h?.end(n),Ql.get(e)?.animationState?.setActive(`whileDrag`,!!t)},re=N(!1);return F(()=>{h?.receive(m,n,g.current,ne)&&(re.current=!0)},[]),i(_,{drag:k,tabIndex:E(n)?0:-1,...f,dragSnapToOrigin:!0,style:{...t,x:y.x,y:y.y,zIndex:b},layout:d,onDragStart:(e,t)=>{re.current?re.current=!1:a?.(e,t)},onDrag:(e,t)=>{let{velocity:r,point:i}=t,a={x:y.x.get(),y:y.y.get()};h?.drag(m,n,g.current,e)||C(n,a,r);let s=h?[`x`,`y`]:[x===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:x];for(let e of s)Fv(h&&!x.includes(e)?h.column(m):w.current,i[e],e,r[e]);o&&o(e,t)},onDragEnd:(e,t)=>{T.current=!1,Av(),h?.end(n),s&&s(e,t)},onKeyDown:e=>{c?.(e),te(e,n,v.current,ne)},onFocus:e=>{l?.(e),D(n)},onBlur:e=>{u?.(e),v.current&&ne(e.currentTarget)},onLayoutMeasure:e=>{S(n,e,g)},ref:Cv(g,p),ignoreStrict:!0,children:e})}var Rv=D(Lv),zv=e=>{let{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();return{x:t+r/2,y:n+i/2}},Bv=e=>{let{x:t,y:n}=zv(e),{scrollX:r,scrollY:i}=e.ownerDocument.defaultView;return{x:t+r,y:n+i}};function Vv(e,t,n,r){let{left:i,right:a,top:o,bottom:s}=t.getBoundingClientRect(),c=r?e.x>(i+a)/2:e.x<=(i+a)/2,l=e.y<=(o+s)/2;return n===`x`?c:n===`y`?l:e.y<o||e.y<s&&c}var Hv=(e,t)=>{let n=e.groupRef.current,r=t.groupRef.current;return n.contains(r)||r.contains(n)};function Uv(e){let t=new Set,n,r=(t,n,r)=>!Hv(t,n)&&e.current.canMove?.(r,t.values,n.values)!==!1,i,a=(e,t,r,i,a,o)=>{let s=zv(i),{values:c}=t;if(o===void 0){let e=t.getOrder().filter(e=>e.ref?.current?.isConnected),n=getComputedStyle(t.groupRef.current).direction===`rtl`,r=e.find(e=>Vv(s,e.ref.current,t.axis,n)),i=e[e.length-1];o=r?c.indexOf(r.value):i?c.indexOf(i.value)+1:c.length}n={value:r,to:t.groupRef,element:i,centre:Bv(i),...a},t.hasReordered.current=!0,e.onReorder(e.values.filter(e=>e!==r),r),t.onReorder([...c.slice(0,o),r,...c.slice(o)],r)};return{add:e=>(t.add(e),()=>t.delete(e)),drag:(e,i,o,s)=>{if(!o?.isConnected)return!1;if(n?.controls?.isDragging)return n.value===i&&(n.centre=Bv(o),n.event=s),!0;let c=zv(o),l;for(let e of o.ownerDocument.elementsFromPoint(c.x,c.y))if(!o.contains(e)){for(let n of t)n.groupRef.current===e&&(l=n);if(l)break}if(!l||!r(e,l,i))return!1;let u=Ql.get(o);return a(e,l,i,o,{controls:u&&Id.get(u),event:s}),!0},key:(e,n,o,s,c)=>{let l=zv(s),u=o%2?`x`:`y`,d=o>1?1:-1,f,p=1/0;for(let i of t){let t=i.groupRef.current;if(!t)continue;let{left:a,right:s,top:c,bottom:m,width:h,height:g}=t.getBoundingClientRect();if(!h&&!g||([m,s,c,a][o]-l[u])*d<=0)continue;let _=Math.max(a-l.x,0,l.x-s),v=Math.max(c-l.y,0,l.y-m);_*_+v*v<p&&r(e,i,n)&&(p=_*_+v*v,f=i)}return f?(i?.from!==c&&(i={group:e.groupRef,from:c}),a(e,f,n,s,{keys:!0,from:c}),!0):!1},restore:(e,n,r,o)=>{let s=i?.from===o&&[...t].find(e=>e.groupRef===i.group);if(!s||s.groupRef===e.groupRef)return!1;let c=o.slice(o.indexOf(n)+1),l=s.values.findIndex(e=>c.includes(e));return i=void 0,a(e,s,n,r,{keys:!0},l<0?s.values.length:l),!0},end:e=>{n?.value===e&&(n=void 0)},isMoving:e=>n?.element===e,receive:(e,t,r,i)=>{let a=Ql.get(r),o=a&&Id.get(a);o?.isDragging&&a.animationState?.setActive(`whileDrag`,!0);let s=n;if(!s||s.value!==t||s.to!==e.groupRef)return!1;let{keys:c,from:l,controls:u}=s,d=!s.element.isConnected;if(c){n=void 0;let{activeElement:e,body:t}=r.ownerDocument;return d&&(!e||e===t)&&(r.focus(),i(r,l)),!1}return!o||!u?.isDragging?!1:(nc.read(()=>{if(n!==s)return;n=void 0,Ql.get(s.element)?.values.forEach((e,t)=>{let n=e.get();a.getValue(t,a.readValue(t,n))?.set(n)});let e=a.getTransformPagePoint()||(e=>e),t=e(s.centre),i=e(Bv(r));a.getValue(`x`).set(t.x-i.x),a.getValue(`y`).set(t.y-i.y),a.render(),d?u.cancel():u.stop(),o.start(s.event,{immediate:!0})}),d)},column:({groupRef:e})=>{let n=e.current,r=n=>[...t].some(t=>t.groupRef!==e&&n.contains(t.groupRef.current));for(;n?.parentElement?.parentElement&&!r(n.parentElement);)n=n.parentElement;return n}}}function Wv({children:e,...t}){let n=N(t);return F(()=>{n.current=t}),i(fv.Provider,{value:P(()=>Uv(n)),children:e})}var Gv=t({Board:()=>Wv,Group:()=>Kv,Item:()=>Rv}),Kv=Tv(Oh),qv=t({AnimatePresence:()=>im,AnimateSharedLayout:()=>cv,AsyncMotionValueAnimation:()=>Oa,DOMKeyframesResolver:()=>No,DOMVisualElement:()=>hu,DeprecatedLayoutGroupContext:()=>am,DocumentProjectionNode:()=>Yl,DragControls:()=>A_,Feature:()=>Sp,FlatTree:()=>pl,GroupAnimation:()=>ka,GroupAnimationWithThen:()=>ja,HTMLProjectionNode:()=>Zl,HTMLVisualElement:()=>bu,JSAnimation:()=>Tr,KeyframeResolver:()=>vi,LayoutAnimationBuilder:()=>Bu,LayoutGroup:()=>um,LayoutGroupContext:()=>ye,LazyMotion:()=>_m,MotionConfig:()=>ym,MotionConfigContext:()=>Up,MotionContext:()=>bm,MotionGlobalConfig:()=>L,MotionValue:()=>Ba,MotionValueState:()=>$o,NativeAnimation:()=>Mi,NativeAnimationExtended:()=>Ii,NativeAnimationWrapper:()=>Ma,NodeStack:()=>al,ObjectVisualElement:()=>wp,PanSession:()=>ld,PopChild:()=>Xp,PresenceChild:()=>Zp,PresenceContext:()=>xe,Reorder:()=>Gv,SVGVisualElement:()=>kp,SubscriptionManager:()=>Pe,SwitchLayoutGroupContext:()=>Gm,ViewTransitionBuilder:()=>bp,VisualElement:()=>mu,VisualElementDragControls:()=>Ld,WillChangeMotionValue:()=>Pg,acceleratedValues:()=>Vi,acquireProjectionNode:()=>Fu,activeScope:()=>Z,addAttrValue:()=>_s,addBuilderToScope:()=>Yo,addDomEvent:()=>Jl,addEffect:()=>Bo,addPinchListeners:()=>of,addPointerEvent:()=>Gu,addPointerInfo:()=>Wu,addSVGValue:()=>bs,addScaleCorrector:()=>sc,addStyleValue:()=>is,addToScope:()=>Jo,addUniqueItem:()=>Se,addValueToWillChange:()=>_o,alpha:()=>vt,analyseComplexValue:()=>Yt,animate:()=>__,animateEffectSubject:()=>Wo,animateElement:()=>Qs,animateLayout:()=>Bp,animateMini:()=>w_,animateMotionValue:()=>Xa,animateSingleValue:()=>ac,animateTarget:()=>Co,animateValue:()=>Er,animateValues:()=>Uo,animateVariant:()=>wo,animateView:()=>xp,animateVisualElement:()=>To,animationControls:()=>Vg,animationMapKey:()=>Pa,animations:()=>nh,anticipate:()=>Je,applyAxisDelta:()=>Ls,applyBoxDelta:()=>Rs,applyGeneratorOptions:()=>ji,applyPointDelta:()=>Is,applyPxDefaults:()=>Io,applyTreeDeltas:()=>Vs,arc:()=>no,aspectRatio:()=>rl,attachFollow:()=>Rf,attachSpring:()=>Uf,attrEffect:()=>vs,axisDeltaEquals:()=>il,axisEquals:()=>$c,axisEqualsRounded:()=>tl,backIn:()=>Ke,backInOut:()=>qe,backOut:()=>Ge,bindToScope:()=>Xo,boxEquals:()=>el,boxEqualsRounded:()=>nl,buildHTMLStyles:()=>us,buildProjectionTransform:()=>ul,buildSVGAttrs:()=>hs,buildSVGPath:()=>ps,buildTransform:()=>ea,buildTransformer:()=>Zt,calcAxisDelta:()=>Mc,calcBoxDelta:()=>Nc,calcChildStagger:()=>Ia,calcGeneratorDuration:()=>An,calcLength:()=>Q,calcRelativeAxis:()=>Pc,calcRelativeAxisPosition:()=>Ic,calcRelativeBox:()=>Fc,calcRelativePosition:()=>Lc,camelCaseAttributes:()=>Tp,camelToDash:()=>ls,cancelFrame:()=>q,cancelMicrotask:()=>rc,cancelSync:()=>Hp,checkVariantsDidChange:()=>Pp,circIn:()=>Ye,circInOut:()=>Ze,circOut:()=>Xe,clamp:()=>I,cleanDirtyNodes:()=>El,collectMotionValues:()=>za,color:()=>U,compareByDepth:()=>fl,complex:()=>W,containsCSSVariable:()=>gt,convertBoundingBoxToBox:()=>Ts,convertBoxToBoundingBox:()=>Es,convertOffsetToTimes:()=>cr,copyAxisDeltaInto:()=>Ec,copyAxisInto:()=>wc,copyBoxInto:()=>Tc,correctBorderRadius:()=>sl,correctBoxShadow:()=>cl,correctParentTransform:()=>K_,createAnimationState:()=>Np,createAxis:()=>Xc,createAxisDelta:()=>Jc,createBox:()=>$,createDelta:()=>Yc,createEffect:()=>es,createGeneratorEasing:()=>jn,createProjectionNode:()=>Sl,createRenderBatcher:()=>Tn,createScopedAnimate:()=>g_,cubicBezier:()=>He,cubicBezierAsString:()=>Ei,defaultEasing:()=>lr,defaultOffset:()=>sr,defaultTransformValue:()=>Zr,defaultValueTypes:()=>Fr,degrees:()=>Mt,delay:()=>lc,delayInSeconds:()=>uc,dimensionValueTypes:()=>Oo,disableInstantTransitions:()=>U_,distance:()=>od,distance2D:()=>sd,domAnimation:()=>Ah,domMax:()=>jh,domMin:()=>Mh,drag:()=>Jd,eachAxis:()=>dl,easeIn:()=>Qe,easeInOut:()=>et,easeOut:()=>$e,easingDefinitionToFunction:()=>st,elementDragControls:()=>Id,expectsResolvedDragConstraints:()=>Wd,extractEventInfo:()=>Uu,fillOffset:()=>or,fillWildcards:()=>Hr,filterProps:()=>Pm,findDimensionValueType:()=>ko,findEffect:()=>Ho,findValueType:()=>Gf,flushKeyframeResolvers:()=>gi,flushLayoutSnapshots:()=>zu,followValue:()=>Lf,frame:()=>K,frameData:()=>B,frameSteps:()=>En,generateLinearEasing:()=>On,getAnimatableNone:()=>Vr,getAnimationMap:()=>Fa,getComputedStyle:()=>Sf,getDefaultTransition:()=>qa,getDefaultValueType:()=>Ir,getEasingForSegment:()=>rt,getFeatureDefinitions:()=>pu,getFinalKeyframe:()=>mr,getMixer:()=>mn,getOptimisedAppearId:()=>bo,getOriginIndex:()=>kf,getSpringOptions:()=>er,getValueAsType:()=>Ji,getValueTransition:()=>Ha,getVariableValue:()=>ao,getVariantContext:()=>Lp,getViewAnimationLayerInfo:()=>rp,getViewAnimations:()=>ip,globalProjectionState:()=>ml,handOffElementState:()=>ec,has2DTranslate:()=>Ns,hasComplexValues:()=>Jt,hasReducedMotionListener:()=>su,hasScale:()=>ks,hasTransform:()=>js,hasWarned:()=>Re,hex:()=>At,hover:()=>Zd,hsla:()=>Lt,hslaToRgba:()=>rn,inView:()=>B_,inertia:()=>rr,initPrefersReducedMotion:()=>lu,interpolate:()=>ar,invariant:()=>De,invisibleValues:()=>dn,isAnimationControls:()=>$l,isBezierDefinition:()=>it,isBrowser:()=>be,isCSSVariableName:()=>ft,isCSSVariableToken:()=>mt,isControllingVariants:()=>ru,isDeltaZero:()=>Qc,isDragActive:()=>Sd,isDragging:()=>xd,isEasingArray:()=>nt,isElementKeyboardAccessible:()=>vd,isElementTextInput:()=>bd,isForcedMotionValue:()=>_u,isGenerator:()=>Ai,isHTMLElement:()=>Ko,isKeyframesTarget:()=>fo,isMotionComponent:()=>N_,isMotionValue:()=>X,isNear:()=>jc,isNodeOrChild:()=>uf,isNumericalString:()=>Oe,isObject:()=>ke,isPrimaryPointer:()=>Hu,isSVGElement:()=>qo,isSVGSVGElement:()=>fc,isSVGTag:()=>Ep,isTransitionDefined:()=>Ya,isValidMotionProp:()=>Mm,isVariantLabel:()=>eu,isVariantNode:()=>iu,isWaapiSupportedEasing:()=>Lo,isWillChangeMotionValue:()=>go,isZeroValueString:()=>Ae,keyframes:()=>ur,m:()=>Qm,makeAnimationInstant:()=>Bi,makeUseVisualState:()=>Bm,mapEasingToNativeEasing:()=>Oi,mapValue:()=>Vf,maxGeneratorDuration:()=>kn,measurePageBox:()=>qs,measureViewportBox:()=>Ks,memo:()=>je,microtask:()=>nc,millisecondsToSeconds:()=>Fe,mirrorEasing:()=>Ue,mix:()=>xn,mixArray:()=>hn,mixColor:()=>un,mixComplex:()=>vn,mixImmediate:()=>an,mixLinearColor:()=>on,mixNumber:()=>G,mixObject:()=>gn,mixValues:()=>_c,mixVisibility:()=>fn,motion:()=>Oh,motionValue:()=>Y,moveItem:()=>we,nodeGroup:()=>zp,noop:()=>R,number:()=>_t,numberValueTypes:()=>Pr,optimizedAppearDataAttribute:()=>yo,optimizedAppearDataId:()=>vo,originProps:()=>ns,parseAnimateLayoutArgs:()=>Vu,parseCSSVariable:()=>io,parseValueFromTransform:()=>Qr,percent:()=>Nt,pinch:()=>lf,pinchFeatures:()=>Ph,pipe:()=>Me,pixelsToPercent:()=>ol,positionalKeys:()=>uo,prefersReducedMotion:()=>ou,press:()=>xf,processFrame:()=>ic,progress:()=>Ne,progressPercentage:()=>It,propEffect:()=>tc,propagateDirtyNodes:()=>Tl,px:()=>H,readSVGValue:()=>xs,readStyleValue:()=>os,readTransformValue:()=>$r,recordStats:()=>Of,releaseElement:()=>$s,removeAxisDelta:()=>zc,removeAxisTransforms:()=>Bc,removeBoxTransforms:()=>Uc,removeEffect:()=>Vo,removeItem:()=>Ce,removePointDelta:()=>Rc,renderHTML:()=>gu,renderSVG:()=>Dp,resize:()=>ad,resolveElements:()=>Zo,resolveMotionValue:()=>pc,resolveTransition:()=>Va,resolveVariant:()=>co,resolveVariantFromProps:()=>so,reverseEasing:()=>We,rgbUnit:()=>Et,rgba:()=>Dt,rootProjectionNode:()=>Xl,round:()=>wr,sampleDelta:()=>10,scale:()=>yt,scaleCorrectors:()=>oc,scalePoint:()=>Fs,scopeMotion:()=>Tf,scrapeHTMLMotionValuesFromProps:()=>vu,scrapeSVGMotionValuesFromProps:()=>Op,scroll:()=>pg,scrollInfo:()=>ag,secondsToMilliseconds:()=>z,setDragLock:()=>Cd,setFeatureDefinitions:()=>fu,setStyle:()=>bi,setTarget:()=>ho,spring:()=>nr,springValue:()=>Hf,stagger:()=>Af,startOptimizedAppearAnimation:()=>nv,startWaapiAnimation:()=>ki,statsBuffer:()=>cc,steps:()=>tt,styleEffect:()=>cs,styleSubjectEffect:()=>ss,supportedWaapiEasing:()=>Di,supportsBrowserAnimation:()=>qi,supportsFlags:()=>xi,supportsLinearEasing:()=>Ti,supportsPartialKeyframes:()=>Ro,supportsScrollTimeline:()=>Ci,supportsViewTimeline:()=>wi,supportsWaapi:()=>Ki,svgEffect:()=>Cs,svgSubjectEffect:()=>Ss,sync:()=>Vp,testValueType:()=>Do,time:()=>V,toMediaQuery:()=>wf,transform:()=>jf,transformAxis:()=>Us,transformBox:()=>Gs,transformBoxPoints:()=>Ds,transformPropOrder:()=>ei,transformProps:()=>J,transformValue:()=>Bf,transformValueTypes:()=>Nr,transformViewBoxPoint:()=>G_,translateAxis:()=>Hs,unwrapMotionComponent:()=>P_,updateMotionValuesFromProps:()=>au,useAnimate:()=>v_,useAnimateMini:()=>T_,useAnimation:()=>D_,useAnimationControls:()=>E_,useAnimationFrame:()=>Og,useComposedRefs:()=>Kp,useCycle:()=>R_,useDeprecatedAnimatedState:()=>ov,useDeprecatedInvertedScale:()=>dv,useDomEvent:()=>k_,useDragControls:()=>M_,useElementScroll:()=>yg,useFollowValue:()=>Tg,useForceUpdate:()=>sm,useInView:()=>V_,useInstantLayoutTransition:()=>F_,useInstantTransition:()=>H_,useIsPresent:()=>em,useIsomorphicLayoutEffect:()=>F,useMotionTemplate:()=>Cg,useMotionValue:()=>xg,useMotionValueEvent:()=>Fh,usePageInView:()=>W_,usePresence:()=>$p,usePresenceData:()=>O_,useReducedMotion:()=>Ig,useReducedMotionConfig:()=>Lg,useResetProjection:()=>L_,useScopeMotion:()=>y_,useScroll:()=>vg,useSpring:()=>Dg,useTime:()=>kg,useTransform:()=>Ag,useUnmountEffect:()=>kh,useVelocity:()=>Ng,useViewportScroll:()=>bg,useWillChange:()=>Fg,variantPriorityOrder:()=>tu,variantProps:()=>nu,velocityPerSecond:()=>Ie,vh:()=>Pt,visualElementStore:()=>Ql,vw:()=>Ft,warnOnce:()=>ze,warning:()=>Ee,wrap:()=>Be}),Jv=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},Yv=qv;Jv.register([`framer-motion`,`motion/react`,`motion`],Yv),window.Motion=Yv})();