@monkey-mini-app/ui 0.1.0 → 0.1.4

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 (203) hide show
  1. package/README.md +58 -0
  2. package/dist/globals.css +1 -1
  3. package/dist/index.js +12 -2
  4. package/dist/manifest.json +6 -6
  5. package/dist/runtime.js +9 -0
  6. package/dist/sdk.js +158 -0
  7. package/dist/src/blocks/activity-feed.tsx +7 -0
  8. package/dist/src/blocks/app-shell.tsx +1 -0
  9. package/dist/src/blocks/attachment-gallery.tsx +7 -0
  10. package/dist/src/blocks/bar-chart.tsx +15 -1
  11. package/dist/src/blocks/comment-thread.tsx +7 -0
  12. package/dist/src/blocks/dashboard-shell.tsx +109 -0
  13. package/dist/src/blocks/description-list.tsx +7 -0
  14. package/dist/src/blocks/detail-panel.tsx +1 -0
  15. package/dist/src/blocks/donut-chart.tsx +19 -2
  16. package/dist/src/blocks/env-badge.tsx +7 -0
  17. package/dist/src/blocks/env-table.tsx +316 -0
  18. package/dist/src/blocks/file-tree.tsx +7 -0
  19. package/dist/src/blocks/filter-bar.tsx +1 -0
  20. package/dist/src/blocks/form-sheet.tsx +160 -0
  21. package/dist/src/blocks/gauge.tsx +29 -6
  22. package/dist/src/blocks/list-detail.tsx +121 -0
  23. package/dist/src/blocks/notification-center.tsx +7 -0
  24. package/dist/src/blocks/page-header.tsx +1 -0
  25. package/dist/src/blocks/progress-ring.tsx +20 -2
  26. package/dist/src/blocks/radar-chart.tsx +18 -1
  27. package/dist/src/blocks/request-inspector.tsx +7 -0
  28. package/dist/src/blocks/reveal.tsx +56 -0
  29. package/dist/src/blocks/run-timeline.tsx +7 -0
  30. package/dist/src/blocks/scrollspy.tsx +7 -0
  31. package/dist/src/blocks/settings-split.tsx +154 -0
  32. package/dist/src/blocks/severity-chip.tsx +7 -0
  33. package/dist/src/blocks/sparkline.tsx +12 -3
  34. package/dist/src/blocks/stat-card.tsx +1 -0
  35. package/dist/src/blocks/status-badge.tsx +1 -0
  36. package/dist/src/blocks/table-page.tsx +83 -0
  37. package/dist/src/blocks/terminal.tsx +21 -3
  38. package/dist/src/blocks/test-step-list.tsx +7 -0
  39. package/dist/src/blocks/trend-card.tsx +7 -0
  40. package/dist/src/blocks/wizard-shell.tsx +132 -0
  41. package/dist/src/cdn-modules.d.ts +5 -0
  42. package/dist/src/components/accordion.tsx +7 -0
  43. package/dist/src/components/alert-dialog.tsx +7 -0
  44. package/dist/src/components/alert.tsx +7 -0
  45. package/dist/src/components/aspect-ratio.tsx +4 -0
  46. package/dist/src/components/attachment.tsx +4 -0
  47. package/dist/src/components/avatar.tsx +4 -0
  48. package/dist/src/components/badge.tsx +7 -0
  49. package/dist/src/components/breadcrumb.tsx +4 -0
  50. package/dist/src/components/bubble.tsx +4 -0
  51. package/dist/src/components/button-group.tsx +6 -0
  52. package/dist/src/components/button.tsx +7 -0
  53. package/dist/src/components/calendar.tsx +4 -0
  54. package/dist/src/components/card.tsx +8 -1
  55. package/dist/src/components/chart.tsx +7 -0
  56. package/dist/src/components/checkbox.tsx +5 -0
  57. package/dist/src/components/collapsible.tsx +4 -0
  58. package/dist/src/components/combobox.tsx +4 -0
  59. package/dist/src/components/command.tsx +6 -0
  60. package/dist/src/components/context-menu.tsx +4 -0
  61. package/dist/src/components/dialog.tsx +21 -0
  62. package/dist/src/components/drawer.tsx +4 -0
  63. package/dist/src/components/dropdown-menu.tsx +7 -0
  64. package/dist/src/components/empty.tsx +7 -0
  65. package/dist/src/components/field.tsx +6 -0
  66. package/dist/src/components/hover-card.tsx +4 -0
  67. package/dist/src/components/input-group.tsx +4 -0
  68. package/dist/src/components/input.tsx +7 -0
  69. package/dist/src/components/item.tsx +4 -0
  70. package/dist/src/components/kbd.tsx +4 -0
  71. package/dist/src/components/label.tsx +7 -0
  72. package/dist/src/components/marker.tsx +4 -0
  73. package/dist/src/components/menubar.tsx +4 -0
  74. package/dist/src/components/message-scroller.tsx +4 -0
  75. package/dist/src/components/message.tsx +4 -0
  76. package/dist/src/components/native-select.tsx +4 -0
  77. package/dist/src/components/navigation-menu.tsx +4 -0
  78. package/dist/src/components/pagination.tsx +4 -0
  79. package/dist/src/components/popover.tsx +7 -0
  80. package/dist/src/components/progress.tsx +7 -0
  81. package/dist/src/components/questionnaire.tsx +4 -0
  82. package/dist/src/components/radio-group.tsx +4 -0
  83. package/dist/src/components/resizable.tsx +7 -0
  84. package/dist/src/components/scroll-area.tsx +4 -0
  85. package/dist/src/components/select.tsx +7 -0
  86. package/dist/src/components/separator.tsx +5 -0
  87. package/dist/src/components/sheet.tsx +22 -0
  88. package/dist/src/components/sidebar.tsx +4 -0
  89. package/dist/src/components/skeleton.tsx +7 -0
  90. package/dist/src/components/slider.tsx +4 -0
  91. package/dist/src/components/spinner.tsx +6 -0
  92. package/dist/src/components/switch.tsx +7 -0
  93. package/dist/src/components/table.tsx +7 -0
  94. package/dist/src/components/tabs.tsx +7 -0
  95. package/dist/src/components/textarea.tsx +7 -0
  96. package/dist/src/components/toast.tsx +7 -0
  97. package/dist/src/components/toggle-group.tsx +4 -0
  98. package/dist/src/components/toggle.tsx +4 -0
  99. package/dist/src/components/tooltip.tsx +7 -0
  100. package/dist/src/composites/autocomplete.tsx +7 -0
  101. package/dist/src/composites/cascader.tsx +7 -0
  102. package/dist/src/composites/color-picker.tsx +7 -0
  103. package/dist/src/composites/confirm-dialog.tsx +7 -0
  104. package/dist/src/composites/copyable.tsx +9 -1
  105. package/dist/src/composites/currency-input.tsx +7 -0
  106. package/dist/src/composites/date-picker.tsx +7 -0
  107. package/dist/src/composites/date-range-picker.tsx +4 -0
  108. package/dist/src/composites/date-time-picker.tsx +7 -0
  109. package/dist/src/composites/date-time-range-picker.tsx +7 -0
  110. package/dist/src/composites/duration-input.tsx +7 -0
  111. package/dist/src/composites/mini-calendar.tsx +7 -0
  112. package/dist/src/composites/number-field.tsx +7 -0
  113. package/dist/src/composites/password-field.tsx +7 -0
  114. package/dist/src/composites/phone-input.tsx +7 -0
  115. package/dist/src/composites/rating.tsx +7 -0
  116. package/dist/src/composites/relative-date-picker.tsx +7 -0
  117. package/dist/src/composites/search-input.tsx +7 -0
  118. package/dist/src/composites/slider-range.tsx +7 -0
  119. package/dist/src/composites/tag-input.tsx +7 -0
  120. package/dist/src/composites/time-picker.tsx +11 -1
  121. package/dist/src/composites/time-range-picker.tsx +7 -0
  122. package/dist/src/composites/timezone-select.tsx +7 -0
  123. package/dist/src/composites/transfer.tsx +7 -0
  124. package/dist/src/composites/user-picker.tsx +7 -0
  125. package/dist/src/hooks/use-html-dark.ts +37 -0
  126. package/dist/src/hooks/use-mobile.ts +3 -0
  127. package/dist/src/i18n/en.ts +109 -2
  128. package/dist/src/i18n/zh.ts +99 -2
  129. package/dist/src/index.ts +147 -134
  130. package/dist/src/lib/clipboard.ts +10 -0
  131. package/dist/src/lib/illustrations.tsx +2 -2
  132. package/dist/src/products/code-block.tsx +35 -18
  133. package/dist/src/products/code-editor.tsx +156 -24
  134. package/dist/src/products/commit-graph.tsx +644 -0
  135. package/dist/src/products/data-grid.tsx +2 -1
  136. package/dist/src/products/diff-viewer.tsx +104 -8
  137. package/dist/src/products/event-calendar.tsx +28 -823
  138. package/dist/src/products/file-dropzone.tsx +7 -0
  139. package/dist/src/products/full-calendar/animations.ts +38 -0
  140. package/dist/src/products/full-calendar/calendar-body.tsx +77 -0
  141. package/dist/src/products/full-calendar/constants.ts +10 -0
  142. package/dist/src/products/full-calendar/contexts/calendar-context.tsx +255 -0
  143. package/dist/src/products/full-calendar/contexts/dnd-context.tsx +157 -0
  144. package/dist/src/products/full-calendar/dialogs/add-edit-event-dialog.tsx +187 -0
  145. package/dist/src/products/full-calendar/dialogs/delete-event-dialog.tsx +39 -0
  146. package/dist/src/products/full-calendar/dialogs/event-details-dialog.tsx +100 -0
  147. package/dist/src/products/full-calendar/dialogs/events-list-dialog.tsx +87 -0
  148. package/dist/src/products/full-calendar/dnd/draggable-event.tsx +45 -0
  149. package/dist/src/products/full-calendar/dnd/droppable-area.tsx +45 -0
  150. package/dist/src/products/full-calendar/dnd/resizable-event.tsx +179 -0
  151. package/dist/src/products/full-calendar/header/calendar-header.tsx +65 -0
  152. package/dist/src/products/full-calendar/header/date-navigator.tsx +110 -0
  153. package/dist/src/products/full-calendar/header/filter.tsx +58 -0
  154. package/dist/src/products/full-calendar/header/today-button.tsx +45 -0
  155. package/dist/src/products/full-calendar/header/user-select.tsx +64 -0
  156. package/dist/src/products/full-calendar/header/view-tabs.tsx +36 -0
  157. package/dist/src/products/full-calendar/helpers.ts +453 -0
  158. package/dist/src/products/full-calendar/hooks/use-time-range-create.ts +152 -0
  159. package/dist/src/products/full-calendar/hooks.ts +70 -0
  160. package/dist/src/products/full-calendar/interfaces.ts +23 -0
  161. package/dist/src/products/full-calendar/settings/settings.tsx +80 -0
  162. package/dist/src/products/full-calendar/shims/avatar-group.tsx +16 -0
  163. package/dist/src/products/full-calendar/shims/day-picker.tsx +1 -0
  164. package/dist/src/products/full-calendar/shims/motion.tsx +97 -0
  165. package/dist/src/products/full-calendar/shims/next-themes.ts +6 -0
  166. package/dist/src/products/full-calendar/shims/re-resizable.tsx +25 -0
  167. package/dist/src/products/full-calendar/shims/sonner.ts +4 -0
  168. package/dist/src/products/full-calendar/types.ts +8 -0
  169. package/dist/src/products/full-calendar/views/agenda-view/agenda-events.tsx +140 -0
  170. package/dist/src/products/full-calendar/views/month-view/calendar-month-view.tsx +69 -0
  171. package/dist/src/products/full-calendar/views/month-view/day-cell.tsx +201 -0
  172. package/dist/src/products/full-calendar/views/month-view/event-bullet.tsx +40 -0
  173. package/dist/src/products/full-calendar/views/month-view/month-event-badge.tsx +143 -0
  174. package/dist/src/products/full-calendar/views/week-and-day-view/calendar-day-view.tsx +295 -0
  175. package/dist/src/products/full-calendar/views/week-and-day-view/calendar-time-line.tsx +35 -0
  176. package/dist/src/products/full-calendar/views/week-and-day-view/calendar-week-view.tsx +253 -0
  177. package/dist/src/products/full-calendar/views/week-and-day-view/day-view-multi-day-events-row.tsx +73 -0
  178. package/dist/src/products/full-calendar/views/week-and-day-view/event-block.tsx +114 -0
  179. package/dist/src/products/full-calendar/views/week-and-day-view/render-grouped-events.tsx +49 -0
  180. package/dist/src/products/full-calendar/views/week-and-day-view/week-view-multi-day-events-row.tsx +143 -0
  181. package/dist/src/products/full-calendar/views/year-view/calendar-year-view.tsx +161 -0
  182. package/dist/src/products/gantt.tsx +7 -0
  183. package/dist/src/products/jira-wiki.tsx +1 -0
  184. package/dist/src/products/jql-input.tsx +340 -37
  185. package/dist/src/products/json-viewer.tsx +7 -0
  186. package/dist/src/products/kanban-issue-panel.tsx +7 -0
  187. package/dist/src/products/kanban.tsx +1 -0
  188. package/dist/src/products/log-viewer.tsx +390 -18
  189. package/dist/src/products/markdown-editor.tsx +21 -6
  190. package/dist/src/products/markdown.tsx +7 -0
  191. package/dist/src/products/rich-text-editor.tsx +65 -59
  192. package/dist/src/products/sortable-list.tsx +7 -0
  193. package/dist/src/products/stepper.tsx +219 -70
  194. package/dist/src/products/timeline.tsx +7 -0
  195. package/dist/src/products/tree-view.tsx +7 -0
  196. package/dist/src/sdk/app-error-boundary.tsx +240 -0
  197. package/dist/src/sdk/app-id.ts +7 -0
  198. package/dist/src/sdk/use-app.ts +126 -0
  199. package/dist/src/styles/globals.css +7 -7
  200. package/dist/vendors/lodash.js +20 -0
  201. package/dist/vendors/motion.js +12 -0
  202. package/package.json +23 -19
  203. package/dist/src/products/jql-language.ts +0 -70
@@ -0,0 +1,12 @@
1
+ var fp=Object.defineProperty;var _l=(t,e)=>{for(var o in e)fp(t,o,{get:e[o],enumerable:!0})};var Kl={};_l(Kl,{AnimatePresence:()=>tf,AnimateSharedLayout:()=>qm,AsyncMotionValueAnimation:()=>Ar,DOMKeyframesResolver:()=>Lr,DOMVisualElement:()=>co,DeprecatedLayoutGroupContext:()=>Ks,DocumentProjectionNode:()=>js,DragControls:()=>gi,Feature:()=>ut,FlatTree:()=>nn,GroupAnimation:()=>$t,GroupAnimationWithThen:()=>eo,HTMLProjectionNode:()=>yo,HTMLVisualElement:()=>ye,JSAnimation:()=>Ct,KeyframeResolver:()=>fe,LayoutAnimationBuilder:()=>Ws,LayoutGroup:()=>Hs,LayoutGroupContext:()=>qt,LazyMotion:()=>lf,MotionConfig:()=>cf,MotionConfigContext:()=>st,MotionContext:()=>_t,MotionGlobalConfig:()=>nt,MotionValue:()=>Bt,MotionValueState:()=>Or,NativeAnimation:()=>bt,NativeAnimationExtended:()=>br,NativeAnimationWrapper:()=>Oo,NodeStack:()=>an,ObjectVisualElement:()=>Zr,PopChild:()=>zs,PresenceChild:()=>$s,PresenceContext:()=>Ot,Reorder:()=>$l,SVGVisualElement:()=>po,SubscriptionManager:()=>ne,SwitchLayoutGroupContext:()=>hn,ViewTransitionBuilder:()=>Yn,VisualElement:()=>ee,WillChangeMotionValue:()=>Pn,acceleratedValues:()=>to,addAttrValue:()=>kr,addDomEvent:()=>Nt,addEffect:()=>$i,addPointerEvent:()=>xe,addPointerInfo:()=>ea,addScaleCorrector:()=>cl,addStyleValue:()=>Br,addUniqueItem:()=>je,addValueToWillChange:()=>Fo,alpha:()=>Zt,analyseComplexValue:()=>le,animate:()=>Mm,animateEffectSubject:()=>Hi,animateMini:()=>Lm,animateMotionValue:()=>Kt,animateSingleValue:()=>rn,animateTarget:()=>io,animateValue:()=>mc,animateVariant:()=>Er,animateView:()=>uu,animateVisualElement:()=>Pe,animationControls:()=>Ea,animationMapKey:()=>Fi,animations:()=>wo,anticipate:()=>er,applyAxisDelta:()=>Zn,applyBoxDelta:()=>Jn,applyGeneratorOptions:()=>Lo,applyPointDelta:()=>gs,applyPxDefaults:()=>zi,applyTreeDeltas:()=>xs,arc:()=>Ja,aspectRatio:()=>si,attachFollow:()=>Wo,attachSpring:()=>Jc,attrEffect:()=>Oc,axisDeltaEquals:()=>ai,axisEquals:()=>Ls,axisEqualsRounded:()=>Is,backIn:()=>To,backInOut:()=>tr,backOut:()=>Rn,boxEquals:()=>Os,boxEqualsRounded:()=>ii,buildHTMLStyles:()=>uo,buildProjectionTransform:()=>ks,buildSVGAttrs:()=>Jr,buildSVGPath:()=>Ts,buildTransform:()=>ti,calcAxisDelta:()=>As,calcBoxDelta:()=>ho,calcChildStagger:()=>Pr,calcGeneratorDuration:()=>_e,calcLength:()=>rt,calcRelativeAxis:()=>Ps,calcRelativeAxisPosition:()=>Cs,calcRelativeBox:()=>Ms,calcRelativePosition:()=>Ko,camelCaseAttributes:()=>Qr,camelToDash:()=>me,cancelFrame:()=>K,cancelMicrotask:()=>Hn,cancelSync:()=>Uu,checkVariantsDidChange:()=>ml,circIn:()=>or,circInOut:()=>nr,circOut:()=>rr,clamp:()=>q,cleanDirtyNodes:()=>yl,collectMotionValues:()=>Jt,color:()=>Z,compareByDepth:()=>Fs,complex:()=>it,containsCSSVariable:()=>Ln,convertBoundingBoxToBox:()=>_r,convertBoxToBoundingBox:()=>ds,convertOffsetToTimes:()=>Ri,copyAxisDeltaInto:()=>oi,copyAxisInto:()=>on,copyBoxInto:()=>Lt,correctBorderRadius:()=>fo,correctBoxShadow:()=>Ss,correctParentTransform:()=>Hm,createAnimationState:()=>bs,createAxis:()=>us,createAxisDelta:()=>cs,createBox:()=>_,createDelta:()=>De,createEffect:()=>de,createGeneratorEasing:()=>gr,createProjectionNode:()=>ln,createRenderBatcher:()=>lr,createScopedAnimate:()=>hi,cubicBezier:()=>ie,cubicBezierAsString:()=>Ae,defaultEasing:()=>Ua,defaultOffset:()=>Ye,defaultTransformValue:()=>vr,defaultValueTypes:()=>el,degrees:()=>kt,delay:()=>sn,delayInSeconds:()=>bu,dimensionValueTypes:()=>Gn,disableInstantTransitions:()=>zm,distance:()=>ra,distance2D:()=>na,domAnimation:()=>va,domMax:()=>zf,domMin:()=>$f,eachAxis:()=>It,easeIn:()=>Ti,easeInOut:()=>ir,easeOut:()=>Vi,easingDefinitionToFunction:()=>Vo,fillOffset:()=>yr,fillWildcards:()=>xr,filterProps:()=>Ys,findDimensionValueType:()=>Un,findEffect:()=>Ki,findValueType:()=>ns,flushKeyframeResolvers:()=>Oi,followValue:()=>os,frame:()=>T,frameData:()=>F,frameSteps:()=>se,generateLinearEasing:()=>dr,getAnimatableNone:()=>Rr,getAnimationMap:()=>ji,getComputedStyle:()=>Xn,getDefaultTransition:()=>Ni,getDefaultValueType:()=>Dr,getEasingForSegment:()=>ar,getFeatureDefinitions:()=>ps,getFinalKeyframe:()=>ue,getMixer:()=>mr,getOptimisedAppearId:()=>no,getOriginIndex:()=>il,getValueAsType:()=>Ce,getValueTransition:()=>pt,getVariableValue:()=>Nn,getVariantContext:()=>ei,getViewAnimationLayerInfo:()=>as,getViewAnimations:()=>ls,globalProjectionState:()=>go,has2DTranslate:()=>qn,hasReducedMotionListener:()=>lo,hasScale:()=>Xr,hasTransform:()=>jt,hasWarned:()=>Yl,hex:()=>Po,hover:()=>Yi,hsla:()=>ae,hslaToRgba:()=>Ei,inView:()=>Ia,inertia:()=>Co,initPrefersReducedMotion:()=>Kr,interpolate:()=>Xe,invariant:()=>k,invisibleValues:()=>fr,isAnimationControls:()=>ge,isBezierDefinition:()=>Ue,isBrowser:()=>wi,isCSSVariableName:()=>ze,isCSSVariableToken:()=>$e,isControllingVariants:()=>Re,isDeltaZero:()=>ni,isDragActive:()=>Fr,isDragging:()=>Mt,isEasingArray:()=>sr,isElementKeyboardAccessible:()=>qi,isElementTextInput:()=>Zi,isForcedMotionValue:()=>qr,isGenerator:()=>Qe,isHTMLElement:()=>Ht,isKeyframesTarget:()=>ko,isMotionComponent:()=>Ra,isMotionValue:()=>D,isNear:()=>Es,isNodeOrChild:()=>_n,isNumericalString:()=>qo,isObject:()=>Zo,isPrimaryPointer:()=>so,isSVGElement:()=>he,isSVGSVGElement:()=>Gr,isSVGTag:()=>tn,isTransitionDefined:()=>Wi,isValidMotionProp:()=>_o,isVariantLabel:()=>te,isVariantNode:()=>$r,isWaapiSupportedEasing:()=>ol,isWillChangeMotionValue:()=>Gi,isZeroValueString:()=>Jo,keyframes:()=>Te,m:()=>kx,makeAnimationInstant:()=>Io,makeUseVisualState:()=>xo,mapEasingToNativeEasing:()=>Je,mapValue:()=>qc,maxGeneratorDuration:()=>hr,measurePageBox:()=>vs,measureViewportBox:()=>Qn,memo:()=>Ne,microtask:()=>St,millisecondsToSeconds:()=>mt,mirrorEasing:()=>Qo,mix:()=>pr,mixArray:()=>Di,mixColor:()=>Fn,mixComplex:()=>Na,mixImmediate:()=>He,mixLinearColor:()=>Bn,mixNumber:()=>M,mixObject:()=>ja,mixValues:()=>Bs,mixVisibility:()=>Mi,motion:()=>Ox,motionValue:()=>H,moveItem:()=>Dn,nodeGroup:()=>li,noop:()=>N,number:()=>Ut,numberValueTypes:()=>Qt,observeTimeline:()=>Wr,optimizedAppearDataAttribute:()=>jo,optimizedAppearDataId:()=>Wn,parseAnimateLayoutArgs:()=>Wu,parseCSSVariable:()=>Qa,parseValueFromTransform:()=>wr,percent:()=>wt,pipe:()=>Gt,pixelsToPercent:()=>ws,positionalKeys:()=>Cr,prefersReducedMotion:()=>Le,press:()=>Ji,progress:()=>Tt,progressPercentage:()=>kn,propEffect:()=>kc,propagateDirtyNodes:()=>gl,px:()=>V,readTransformValue:()=>Ii,recordStats:()=>Hc,removeAxisDelta:()=>pl,removeAxisTransforms:()=>Rs,removeBoxTransforms:()=>ri,removeEffect:()=>Kn,removeItem:()=>vt,removePointDelta:()=>Ds,renderHTML:()=>Yr,renderSVG:()=>Vs,resize:()=>No,resolveElements:()=>ct,resolveMotionValue:()=>Oe,resolveTransition:()=>oo,resolveVariant:()=>Et,resolveVariantFromProps:()=>ro,reverseEasing:()=>Ge,rgbUnit:()=>In,rgba:()=>zt,rootProjectionNode:()=>oe,scale:()=>Ao,scaleCorrectors:()=>Ie,scalePoint:()=>Uo,scrapeHTMLMotionValuesFromProps:()=>mo,scrapeSVGMotionValuesFromProps:()=>en,scroll:()=>pi,scrollInfo:()=>Sn,secondsToMilliseconds:()=>B,setDragLock:()=>_i,setFeatureDefinitions:()=>Hr,setStyle:()=>Tr,setTarget:()=>Bo,spring:()=>ce,springValue:()=>Zc,stagger:()=>_c,startOptimizedAppearAnimation:()=>_m,startWaapiAnimation:()=>Ro,statsBuffer:()=>Dt,steps:()=>Zl,styleEffect:()=>Fc,supportedWaapiEasing:()=>Do,supportsBrowserAnimation:()=>Bi,supportsFlags:()=>ki,supportsLinearEasing:()=>be,supportsPartialKeyframes:()=>Ic,supportsScrollTimeline:()=>Ze,supportsViewTimeline:()=>Vr,svgEffect:()=>jc,sync:()=>Gu,testValueType:()=>Mr,time:()=>Y,transform:()=>Ur,transformAxis:()=>ys,transformBox:()=>zo,transformBoxPoints:()=>hs,transformPropOrder:()=>Vt,transformProps:()=>lt,transformValue:()=>rs,transformValueTypes:()=>Ui,transformViewBoxPoint:()=>Km,translateAxis:()=>Rt,unwrapMotionComponent:()=>jm,updateMotionValuesFromProps:()=>fs,useAnimate:()=>Dm,useAnimateMini:()=>Im,useAnimation:()=>Om,useAnimationControls:()=>Fl,useAnimationFrame:()=>Aa,useComposedRefs:()=>Gs,useCycle:()=>Wm,useDeprecatedAnimatedState:()=>Xm,useDeprecatedInvertedScale:()=>Qm,useDomEvent:()=>Bm,useDragControls:()=>Fm,useElementScroll:()=>um,useFollowValue:()=>ba,useForceUpdate:()=>un,useInView:()=>Gm,useInstantLayoutTransition:()=>La,useInstantTransition:()=>Um,useIsPresent:()=>Zu,useIsomorphicLayoutEffect:()=>xt,useMotionTemplate:()=>mm,useMotionValue:()=>At,useMotionValueEvent:()=>wa,usePageInView:()=>$m,usePresence:()=>cn,usePresenceData:()=>km,useReducedMotion:()=>Pa,useReducedMotionConfig:()=>Ca,useResetProjection:()=>Nm,useScroll:()=>bn,useSpring:()=>hm,useTime:()=>gm,useTransform:()=>ve,useUnmountEffect:()=>xn,useVelocity:()=>ym,useViewportScroll:()=>fm,useWillChange:()=>xm,variantPriorityOrder:()=>zr,variantProps:()=>Go,velocityPerSecond:()=>We,vh:()=>Pi,visualElementStore:()=>Ft,vw:()=>Ci,warnOnce:()=>Si,warning:()=>Pt,wrap:()=>Se});import{jsx as Ju,Fragment as ng}from"/mma/runtime.js";import{useMemo as ig,useRef as wl,useState as Qu,useContext as sg}from"/mma/runtime.js";import{createContext as mp}from"/mma/runtime.js";var qt=mp({});import{useRef as pp}from"/mma/runtime.js";function O(t){let e=pp(null);return e.current===null&&(e.current=t()),e.current}import{useLayoutEffect as dp,useEffect as hp}from"/mma/runtime.js";var wi=typeof window<"u";var xt=wi?dp:hp;import{jsx as Hu}from"/mma/runtime.js";import*as Yu from"/mma/runtime.js";import{useId as qh,useRef as _u,useMemo as Xu}from"/mma/runtime.js";import{createContext as gp}from"/mma/runtime.js";var Ot=gp(null);import{jsx as Hh}from"/mma/runtime.js";function je(t,e){t.indexOf(e)===-1&&t.push(e)}function vt(t,e){let o=t.indexOf(e);o>-1&&t.splice(o,1)}function Dn([...t],e,o){let r=e<0?t.length+e:e;if(r>=0&&r<t.length){let n=o<0?t.length+o:o,[s]=t.splice(e,1);t.splice(n,0,s)}return t}var q=(t,e,o)=>o>e?e:o<t?t:o;function Xl(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}var Pt=()=>{},k=()=>{};var nt={};var qo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Zo=t=>typeof t=="object"&&t!==null;var Jo=t=>/^0[^.\s]+$/u.test(t);function Ne(t){let e;return()=>(e===void 0&&(e=t()),e)}var N=t=>t;var Gt=(...t)=>t.reduce((e,o)=>r=>o(e(r)));var Tt=(t,e,o)=>{let r=e-t;return r?(o-t)/r:1};var ne=class{constructor(){this.subscriptions=[]}add(e){return je(this.subscriptions,e),()=>vt(this.subscriptions,e)}notify(e,o,r){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](e,o,r);else for(let s=0;s<n;s++){let i=this.subscriptions[s];i&&i(e,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var B=t=>t*1e3,mt=t=>t/1e3;var We=(t,e)=>e?t*(1e3/e):0;var Ba=new Set;function Yl(t){return Ba.has(t)}function Si(t,e,o){t||Ba.has(e)||(console.warn(Xl(e,o)),Ba.add(e))}var Se=(t,e,o)=>{let r=e-t;return((o-t)%r+r)%r+t};var ql=(t,e,o)=>(((1-3*o+3*e)*t+(3*o-6*e))*t+3*e)*t,yp=1e-7,xp=12;function vp(t,e,o,r,n){let s,i,a=0;do i=e+(o-e)/2,s=ql(i,r,n)-t,s>0?o=i:e=i;while(Math.abs(s)>yp&&++a<xp);return i}function ie(t,e,o,r){if(t===e&&o===r)return N;let n=s=>vp(s,0,1,t,o);return s=>s===0||s===1?s:ql(n(s),e,r)}var Qo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Ge=t=>e=>1-t(1-e);var Rn=ie(.33,1.53,.69,.99),To=Ge(Rn),tr=Qo(To);var er=t=>t>=1?1:(t*=2)<1?.5*To(t):.5*(2-Math.pow(2,-10*(t-1)));var or=t=>1-Math.sin(Math.acos(t)),rr=Ge(or),nr=Qo(or);var Ti=ie(.42,0,1,1),Vi=ie(0,0,.58,1),ir=ie(.42,0,.58,1);function Zl(t,e="end"){return o=>{o=e==="end"?Math.min(o,.999):Math.max(o,.001);let r=o*t,n=e==="end"?Math.floor(r):Math.ceil(r);return q(0,1,n/t)}}var sr=t=>Array.isArray(t)&&typeof t[0]!="number";function ar(t,e){return sr(t)?t[Se(0,t.length,e)]:t}var Ue=t=>Array.isArray(t)&&typeof t[0]=="number";var Jl={linear:N,easeIn:Ti,easeInOut:ir,easeOut:Vi,circIn:or,circInOut:nr,circOut:rr,backIn:To,backInOut:tr,backOut:Rn,anticipate:er},wp=t=>typeof t=="string",Vo=t=>{if(Ue(t)){k(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,o,r,n]=t;return ie(e,o,r,n)}else if(wp(t))return k(Jl[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Jl[t];return t};var bo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ql(t){let e=new Set,o=new Set,r=!1,n=!1,s=new WeakSet,i={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),t()),c(i)}let l={schedule:(c,u=!1,f=!1)=>{let p=f&&r?e:o;return u&&s.add(c),p.add(c),c},cancel:c=>{o.delete(c),s.delete(c)},process:c=>{if(i=c,r){n=!0;return}r=!0;let u=e;e=o,o=u,e.forEach(a),e.clear(),r=!1,n&&(n=!1,l.process(c))}};return l}var Sp=40;function lr(t,e){let o=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>o=!0,i=bo.reduce((v,w)=>(v[w]=Ql(s),v),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:f,preRender:m,render:p,postRender:d}=i,g=()=>{let v=nt.useManualTiming,w=v?n.timestamp:performance.now();o=!1,v||(n.delta=r?1e3/60:Math.max(Math.min(w-n.timestamp,Sp),1)),n.timestamp=w,n.isProcessing=!0,a.process(n),l.process(n),c.process(n),u.process(n),f.process(n),m.process(n),p.process(n),d.process(n),n.isProcessing=!1,o&&e&&(r=!1,t(g))},h=()=>{o=!0,r=!0,n.isProcessing||t(g)};return{schedule:bo.reduce((v,w)=>{let A=i[w];return v[w]=(E,S=!1,b=!1)=>(o||h(),A.schedule(E,S,b)),v},{}),cancel:v=>{for(let w=0;w<bo.length;w++)i[bo[w]].cancel(v)},state:n,steps:i}}var{schedule:T,cancel:K,state:F,steps:se}=lr(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0);var bi;function Tp(){bi=void 0}var Y={now:()=>(bi===void 0&&Y.set(F.isProcessing||nt.useManualTiming?F.timestamp:performance.now()),bi),set:t=>{bi=t,queueMicrotask(Tp)}};var tc=t=>e=>typeof e=="string"&&e.startsWith(t),ze=tc("--"),Vp=tc("var(--"),$e=t=>Vp(t)?bp.test(t.split("/*")[0].trim()):!1,bp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ln(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}var Ut={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Zt={...Ut,transform:t=>q(0,1,t)},Ao={...Ut,default:1};var Ke=t=>Math.round(t*1e5)/1e5;var cr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ec(t){return t==null}var oc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ur=(t,e)=>o=>!!(typeof o=="string"&&oc.test(o)&&o.startsWith(t)||e&&!ec(o)&&Object.prototype.hasOwnProperty.call(o,e)),Ai=(t,e,o)=>r=>{if(typeof r!="string")return r;let[n,s,i,a]=r.match(cr);return{[t]:parseFloat(n),[e]:parseFloat(s),[o]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}};var Ap=t=>q(0,255,t),In={...Ut,transform:t=>Math.round(Ap(t))},zt={test:ur("rgb","red"),parse:Ai("red","green","blue"),transform:({red:t,green:e,blue:o,alpha:r=1})=>"rgba("+In.transform(t)+", "+In.transform(e)+", "+In.transform(o)+", "+Ke(Zt.transform(r))+")"};function Pp(t){let e="",o="",r="",n="";return t.length>5?(e=t.substring(1,3),o=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),o=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,o+=o,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}}var Po={test:ur("#"),parse:Pp,transform:zt.transform};var On=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),kt=On("deg"),wt=On("%"),V=On("px"),Pi=On("vh"),Ci=On("vw"),kn={...wt,parse:t=>wt.parse(t)/100,transform:t=>wt.transform(t*100)};var ae={test:ur("hsl","hue"),parse:Ai("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:o,alpha:r=1})=>"hsla("+Math.round(t)+", "+wt.transform(Ke(e))+", "+wt.transform(Ke(o))+", "+Ke(Zt.transform(r))+")"};var Z={test:t=>zt.test(t)||Po.test(t)||ae.test(t),parse:t=>zt.test(t)?zt.parse(t):ae.test(t)?ae.parse(t):Po.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?zt.transform(t):ae.transform(t),getAnimatableNone:t=>{let e=Z.parse(t);return e.alpha=0,Z.transform(e)}};var rc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Cp(t){return isNaN(t)&&typeof t=="string"&&(t.match(cr)?.length||0)+(t.match(rc)?.length||0)>0}var ic="number",sc="color",Ep="var",Mp="var(",nc="${}",Dp=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function le(t){let e=t.toString(),o=[],r={color:[],number:[],var:[]},n=[],s=0,a=e.replace(Dp,l=>(Z.test(l)?(r.color.push(s),n.push(sc),o.push(Z.parse(l))):l.startsWith(Mp)?(r.var.push(s),n.push(Ep),o.push(l)):(r.number.push(s),n.push(ic),o.push(parseFloat(l))),++s,nc)).split(nc);return{values:o,split:a,indexes:r,types:n}}function Rp(t){return le(t).values}function ac({split:t,types:e}){let o=t.length;return r=>{let n="";for(let s=0;s<o;s++)if(n+=t[s],r[s]!==void 0){let i=e[s];i===ic?n+=Ke(r[s]):i===sc?n+=Z.transform(r[s]):n+=r[s]}return n}}function Lp(t){return ac(le(t))}var Ip=t=>typeof t=="number"?0:Z.test(t)?Z.getAnimatableNone(t):t,Op=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Ip(t);function kp(t){let e=le(t);return ac(e)(e.values.map((r,n)=>Op(r,e.split[n])))}var it={test:Cp,parse:Rp,createTransformer:Lp,getAnimatableNone:kp};function Fa(t,e,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(e-t)*6*o:o<1/2?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function Ei({hue:t,saturation:e,lightness:o,alpha:r}){t/=360,e/=100,o/=100;let n=0,s=0,i=0;if(!e)n=s=i=o;else{let a=o<.5?o*(1+e):o+e-o*e,l=2*o-a;n=Fa(l,a,t+1/3),s=Fa(l,a,t),i=Fa(l,a,t-1/3)}return{red:Math.round(n*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function He(t,e){return o=>o>0?e:t}var M=(t,e,o)=>t+(e-t)*o;var Bn=(t,e,o)=>{let r=t*t,n=o*(e*e-r)+r;return n<0?0:Math.sqrt(n)},Bp=[Po,zt,ae],Fp=t=>Bp.find(e=>e.test(t));function lc(t){let e=Fp(t);if(Pt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let o=e.parse(t);return e===ae&&(o=Ei(o)),o}var Fn=(t,e)=>{let o=lc(t),r=lc(e);if(!o||!r)return He(t,e);let n={...o};return s=>(n.red=Bn(o.red,r.red,s),n.green=Bn(o.green,r.green,s),n.blue=Bn(o.blue,r.blue,s),n.alpha=M(o.alpha,r.alpha,s),zt.transform(n))};var fr=new Set(["none","hidden"]);function Mi(t,e){return fr.has(t)?o=>o<=0?t:e:o=>o>=1?e:t}function jp(t,e){return o=>M(t,e,o)}function mr(t){return typeof t=="number"?jp:typeof t=="string"?$e(t)?He:Z.test(t)?Fn:Na:Array.isArray(t)?Di:typeof t=="object"?Z.test(t)?Fn:ja:He}function Di(t,e){let o=[...t],r=o.length,n=t.map((s,i)=>mr(s)(s,e[i]));return s=>{for(let i=0;i<r;i++)o[i]=n[i](s);return o}}function ja(t,e){let o={...t,...e},r={};for(let n in o)t[n]!==void 0&&e[n]!==void 0&&(r[n]=mr(t[n])(t[n],e[n]));return n=>{for(let s in r)o[s]=r[s](n);return o}}function Np(t,e){let o=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let s=e.types[n],i=t.indexes[s][r[s]],a=t.values[i]??0;o[n]=a,r[s]++}return o}var Na=(t,e)=>{let o=it.createTransformer(e),r=le(t),n=le(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?fr.has(t)&&!n.values.length||fr.has(e)&&!r.values.length?Mi(t,e):Gt(Di(Np(r,n),n.values),o):(Pt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),He(t,e))};function pr(t,e,o){return typeof t=="number"&&typeof e=="number"&&typeof o=="number"?M(t,e,o):mr(t)(t,e)}var cc=t=>{let e=({timestamp:o})=>t(o);return{start:(o=!0)=>T.update(e,o),stop:()=>K(e),now:()=>F.isProcessing?F.timestamp:Y.now()}};var dr=(t,e,o=10)=>{let r="",n=Math.max(Math.round(e/o),2);for(let s=0;s<n;s++)r+=Math.round(t(s/(n-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};var hr=2e4;function _e(t,e=50,o=2e4,r){let n=0,s=t.next(n);for(r?.push(s.value);!s.done&&n<o;)n+=e,s=t.next(n),r?.push(s.value);return n>=o?1/0:n}function gr(t,e=100,o){let r=o({...t,keyframes:[0,e]}),n=Math.min(_e(r),2e4);return{type:"keyframes",ease:s=>r.next(n*s).value/e,duration:mt(n)}}var et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ga(t,e){return t*Math.sqrt(1-e*e)}var Wp=12;function Gp(t,e,o){let r=o;for(let n=1;n<Wp;n++)r=r-t(r)/e(r);return r}var Wa=.001;function Up({duration:t=et.duration,bounce:e=et.bounce,velocity:o=et.velocity,mass:r=et.mass}){let n,s;Pt(t<=B(et.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-e;i=q(et.minDamping,et.maxDamping,i),t=q(et.minDuration,et.maxDuration,mt(t)),i<1?(n=c=>{let u=c*i,f=u*t,m=u-o,p=Ga(c,i),d=Math.exp(-f);return Wa-m/p*d},s=c=>{let f=c*i*t,m=f*o+o,p=i*i*c*c*t,d=Math.exp(-f),g=Ga(c*c,i);return(-n(c)+Wa>0?-1:1)*((m-p)*d)/g}):(n=c=>{let u=Math.exp(-c*t),f=(c-o)*t+1;return-Wa+u*f},s=c=>{let u=Math.exp(-c*t),f=(o-c)*(t*t);return u*f});let a=5/t,l=Gp(n,s,a);if(t=B(t),isNaN(l))return{stiffness:et.stiffness,damping:et.damping,duration:t};{let c=l*l*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:t}}}var zp=["duration","bounce"],$p=["stiffness","damping","mass"];function uc(t,e){return e.some(o=>t[o]!==void 0)}function Kp(t){let e={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...t};if(!uc(t,$p)&&uc(t,zp))if(e.velocity=0,t.visualDuration){let o=t.visualDuration,r=2*Math.PI/(o*1.2),n=r*r,s=2*q(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:et.mass,stiffness:n,damping:s}}else{let o=Up({...t,velocity:0});e={...e,...o,mass:et.mass},e.isResolvedFromDuration=!0}return e}function ce(t=et.visualDuration,e=et.bounce){let o=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:n}=o,s=o.keyframes[0],i=o.keyframes[o.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:f,velocity:m,isResolvedFromDuration:p}=Kp({...o,velocity:-mt(o.velocity||0)}),d=m||0,g=c/(2*Math.sqrt(l*u)),h=i-s,x=mt(Math.sqrt(l/u)),y=g*x,v=Math.abs(h)<5;r||(r=v?et.restSpeed.granular:et.restSpeed.default),n||(n=v?et.restDelta.granular:et.restDelta.default);let w,A;if(g<1){let S=Ga(x,g),b=(d+y*h)/S,C=y*b+h*S,W=y*h-b*S,G=-1,ot=0,J=0,re=at=>{if(at!==G){G=at;let L=Math.exp(-y*at),R=Math.sin(S*at),P=Math.cos(S*at);ot=i-L*(b*R+h*P),J=L*(C*R+W*P)}};w=at=>(re(at),ot),A=at=>(re(at),J)}else if(g===1){w=b=>i-Math.exp(-x*b)*(h+(d+x*h)*b);let S=d+x*h;A=b=>Math.exp(-x*b)*(x*S*b-d)}else{let S=x*Math.sqrt(g*g-1);w=G=>{let ot=Math.exp(-y*G),J=Math.min(S*G,300);return i-ot*((d+y*h)*Math.sinh(J)+S*h*Math.cosh(J))/S};let b=(d+y*h)/S,C=y*b-h*S,W=y*h-b*S;A=G=>{let ot=Math.exp(-y*G),J=Math.min(S*G,300);return ot*(C*Math.sinh(J)+W*Math.cosh(J))}}let E={calculatedDuration:p&&f||null,velocity:S=>B(A(S)),next:S=>{let b=w(S);if(p)a.done=S>=f;else{let C=B(A(S));a.done=Math.abs(C)<=r&&Math.abs(i-b)<=n}return a.value=a.done?i:b,a},toString:()=>{let S=Math.min(_e(E),2e4),b=dr(C=>E.next(S*C).value,S,30);return S+"ms "+b},toTransition:()=>{}};return E}ce.applyToOptions=t=>{let e=gr(t,100,ce);return t.ease=e.ease,t.duration=B(e.duration),t.type="keyframes",t};function Co({keyframes:t,velocity:e=0,power:o=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){let f=t[0],m={done:!1,value:f},p=S=>S<a||S>l,d=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l,g=o*e,h=f+g,x=i===void 0?h:i(h);x!==h&&(g=x-f);let y=S=>-g*Math.exp(-S/r),v=S=>{let b=y(S);m.done=Math.abs(b)<=c,m.value=m.done?x:x+b},w,A,E=S=>{p(m.value)&&(w=S,A=ce({keyframes:[m.value,d(m.value)],velocity:-y(S)/r*1e3,damping:n,stiffness:s,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:S=>{let b=!1;return!A&&w===void 0&&(b=!0,v(S),E(S)),w!==void 0&&S>=w?A.next(S-w):(!b&&v(S),m)}}}function Hp(t,e,o){let r=[],n=o||nt.mix||pr,s=t.length-1;for(let i=0;i<s;i++){let a=n(t[i],t[i+1]);if(e){let l=Array.isArray(e)?e[i]||N:e;a=Gt(l,a)}r.push(a)}return r}function Xe(t,e,{clamp:o=!0,ease:r,mixer:n}={}){let s=t.length;if(k(s===e.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];let i=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=Hp(e,r,n),l=a.length,c=u=>{if(i&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);let m=Tt(t[f],t[f+1],u);return a[f](m)};return o?u=>c(q(t[0],t[s-1],u)):c}function yr(t,e){let o=t[t.length-1];for(let r=1;r<=e;r++){let n=Tt(0,e,r);t.push(M(o,1,n))}}function Ye(t){let e=[0];return yr(e,t.length-1),e}function Ri(t,e){return t.map(o=>o*e)}function Ua(t,e){return t.map(()=>e||ir).splice(0,t.length-1)}function Te({duration:t=300,keyframes:e,times:o,ease:r="easeInOut"}){let n=sr(r)?r.map(Vo):Vo(r),s={done:!1,value:e[0]},i=Ri(o&&o.length===e.length?o:Ye(e),t),a=Xe(i,e,{ease:Array.isArray(n)?n:Ua(e,n)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}var _p=5;function fc(t,e,o){let r=Math.max(e-_p,0);return We(o-t(r),e-r)}var Xp=t=>t!==null;function ue(t,{repeat:e,repeatType:o="loop"},r,n=1){let s=t.filter(Xp),a=n<0||e&&o!=="loop"&&e%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}var Yp={decay:Co,inertia:Co,tween:Te,keyframes:Te,spring:ce};function Li(t){typeof t.type=="string"&&(t.type=Yp[t.type])}var qe=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,o){return this.finished.then(e,o)}};var qp=t=>t/100,Ct=class extends qe{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:o}=this.options;o&&o.updatedAt!==Y.now()&&this.tick(Y.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Li(e);let{type:o=Te,repeat:r=0,repeatDelay:n=0,repeatType:s,velocity:i=0}=e,{keyframes:a}=e,l=o||Te;l!==Te&&typeof a[0]!="number"&&(this.mixKeyframes=Gt(qp,pr(a[0],a[1])),a=[0,100]);let c=l({...e,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-i})),c.calculatedDuration===null&&(c.calculatedDuration=_e(c));let{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=c}updateTime(e){let o=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(e,o=!1){let{generator:r,totalDuration:n,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);let{delay:c=0,keyframes:u,repeat:f,repeatType:m,repeatDelay:p,type:d,onUpdate:g,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),o?this.currentTime=e:this.updateTime(e);let x=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?x<0:x>n;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let v=this.currentTime,w=r;if(f){let b=Math.min(this.currentTime,n)/a,C=Math.floor(b),W=b%1;!W&&b>=1&&(W=1),W===1&&C--,C=Math.min(C,f+1),C%2&&(m==="reverse"?(W=1-W,p&&(W-=p/a)):m==="mirror"&&(w=i)),v=q(0,1,W)*a}let A;y?(this.delayState.value=u[0],A=this.delayState):A=w.next(v),s&&!y&&(A.value=s(A.value));let{done:E}=A;!y&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return S&&d!==Co&&(A.value=ue(u,this.options,h,this.speed)),g&&g(A.value),S&&this.finish(),A}then(e,o){return this.finished.then(e,o)}get duration(){return mt(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+mt(e)}get time(){return mt(this.currentTime)}set time(e){e=B(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let o=this.generator.next(e).value;return fc(r=>this.generator.next(r).value,e,o)}get speed(){return this.playbackSpeed}set speed(e){let o=this.playbackSpeed!==e;o&&this.driver&&this.updateTime(Y.now()),this.playbackSpeed=e,o&&this.driver&&(this.time=mt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=cc,startTime:o}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();let r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),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(Y.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function mc(t){return new Ct(t)}function xr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var Eo=t=>t*180/Math.PI,za=t=>{let e=Eo(Math.atan2(t[1],t[0]));return $a(e)},Zp={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:za,rotateZ:za,skewX:t=>Eo(Math.atan(t[1])),skewY:t=>Eo(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},$a=t=>(t=t%360,t<0&&(t+=360),t),pc=za,dc=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),hc=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Jp={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dc,scaleY:hc,scale:t=>(dc(t)+hc(t))/2,rotateX:t=>$a(Eo(Math.atan2(t[6],t[5]))),rotateY:t=>$a(Eo(Math.atan2(-t[2],t[0]))),rotateZ:pc,rotate:pc,skewX:t=>Eo(Math.atan(t[4])),skewY:t=>Eo(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function vr(t){return t.includes("scale")?1:0}function wr(t,e){if(!t||t==="none")return vr(e);let o=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,n;if(o)r=Jp,n=o;else{let a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Zp,n=a}if(!n)return vr(e);let s=r[e],i=n[1].split(",").map(Qp);return typeof s=="function"?s(i):i[s]}var Ii=(t,e)=>{let{transform:o="none"}=getComputedStyle(t);return wr(o,e)};function Qp(t){return parseFloat(t.trim())}var Vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lt=new Set([...Vt,"pathRotation"]);var Ka=t=>t===Ut||t===V,td=new Set(["x","y","z"]),ed=Vt.filter(t=>!td.has(t));function gc(t){let e=[];return ed.forEach(o=>{let r=t.getValue(o);r!==void 0&&(e.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),e}var Ve={width:({x:t},{paddingLeft:e="0",paddingRight:o="0",boxSizing:r})=>{let n=t.max-t.min;return r==="border-box"?n:n-parseFloat(e)-parseFloat(o)},height:({y:t},{paddingTop:e="0",paddingBottom:o="0",boxSizing:r})=>{let n=t.max-t.min;return r==="border-box"?n:n-parseFloat(e)-parseFloat(o)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>wr(e,"x"),y:(t,{transform:e})=>wr(e,"y")};Ve.translateX=Ve.x;Ve.translateY=Ve.y;var Mo=new Set,Ha=!1,_a=!1,Xa=!1;function yc(){if(_a){let t=Array.from(Mo).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),o=new Map;e.forEach(r=>{let n=gc(r);n.length&&(o.set(r,n),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();let n=o.get(r);n&&n.forEach(([s,i])=>{r.getValue(s)?.set(i)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}_a=!1,Ha=!1,Mo.forEach(t=>t.complete(Xa)),Mo.clear()}function xc(){Mo.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_a=!0)})}function Oi(){Xa=!0,xc(),yc(),Xa=!1}var fe=class{constructor(e,o,r,n,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=o,this.name=r,this.motionValue=n,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Mo.add(this),Ha||(Ha=!0,T.read(xc),T.resolveKeyframes(yc))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:o,element:r,motionValue:n}=this;if(e[0]===null){let s=n?.get(),i=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&o){let a=r.readValue(o,i);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=i),n&&s===void 0&&n.set(e[0])}xr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mo.delete(this)}cancel(){this.state==="scheduled"&&(Mo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var Sr=t=>t.startsWith("--");function Tr(t,e,o){Sr(e)?t.style.setProperty(e,o):t.style[e]=o}var ki={};function jn(t,e){let o=Ne(t);return()=>ki[e]??o()}var Ze=jn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Vr=jn(()=>window.ViewTimeline!==void 0,"viewTimeline");var be=jn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Ae=([t,e,o,r])=>`cubic-bezier(${t}, ${e}, ${o}, ${r})`;var Do={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ae([0,.65,.55,1]),circOut:Ae([.55,0,1,.45]),backIn:Ae([.31,.01,.66,-.59]),backOut:Ae([.33,1.53,.69,.99])};function Je(t,e){if(t)return typeof t=="function"?be()?dr(t,e):"ease-out":Ue(t)?Ae(t):Array.isArray(t)?t.map(o=>Je(o,e)||Do.easeOut):Do[t]}function Ro(t,e,o,{delay:r=0,duration:n=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},c=void 0){let u={[e]:o};l&&(u.offset=l);let f=Je(a,n);Array.isArray(f)&&(u.easing=f);let m={delay:r,duration:n,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return c&&(m.pseudoElement=c),t.animate(u,m)}function Qe(t){return typeof t=="function"&&"applyToOptions"in t}function Lo({type:t,...e}){return Qe(t)&&be()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var bt=class extends qe{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:o,name:r,keyframes:n,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=e,k(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let c=Lo(e);this.animation=Ro(o,r,n,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let u=ue(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Tr(o,r,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return mt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+mt(e)}get time(){return mt(Number(this.animation.currentTime)||0)}set time(e){let o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=B(e),o&&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?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:o,rangeEnd:r,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Ze()?(this.animation.timeline=e,o&&(this.animation.rangeStart=o),r&&(this.animation.rangeEnd=r),N):n(this)}};var vc={anticipate:er,backInOut:tr,circInOut:nr};function od(t){return t in vc}function wc(t){typeof t.ease=="string"&&od(t.ease)&&(t.ease=vc[t.ease])}var Ya=10,br=class extends bt{constructor(e){wc(e),Li(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:o,onUpdate:r,onComplete:n,element:s,...i}=this.options;if(!o)return;if(e!==void 0){o.set(e);return}let a=new Ct({...i,autoplay:!1}),l=Math.max(Ya,Y.now()-this.startTime),c=q(0,Ya,l-Ya),u=a.sample(l).value,{name:f}=this.options;s&&f&&Tr(s,f,u),o.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}};var qa=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(it.test(t)||t==="0")&&!t.startsWith("url("));function rd(t){let e=t[0];if(t.length===1)return!0;for(let o=0;o<t.length;o++)if(t[o]!==e)return!0}function Sc(t,e,o,r){let n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;let s=t[t.length-1],i=qa(n,e),a=qa(s,e);return Pt(i===a,`You are trying to animate ${e} from "${n}" to "${s}". "${i?s:n}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:rd(t)||(o==="spring"||Qe(o))&&r}function Io(t){t.duration=0,t.type="keyframes"}var to=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);var nd=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Tc(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&nd.test(t[e]))return!0;return!1}var id=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sd=Ne(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Bi(t){let{motionValue:e,name:o,repeatDelay:r,repeatType:n,damping:s,type:i,keyframes:a}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=e.owner.getProps();return sd()&&o&&(to.has(o)||id.has(o)&&Tc(a))&&(o!=="transform"||!u)&&!c&&!r&&n!=="mirror"&&s!==0&&i!=="inertia"}var ad=40,Ar=class extends qe{constructor({autoplay:e=!0,delay:o=0,type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:c,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Y.now();let m={autoplay:e,delay:o,type:r,repeat:n,repeatDelay:s,repeatType:i,name:l,motionValue:c,element:u,...f},p=u?.KeyframeResolver||fe;this.keyframeResolver=new p(a,(d,g,h)=>this.onKeyframesResolved(d,g,m,!h),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,o,r,n){this.keyframeResolver=void 0;let{name:s,type:i,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=Y.now();let f=!0;Sc(e,s,i,a)||(f=!1,(nt.instantAnimations||!l)&&u?.(ue(e,r,o)),e[0]=e[e.length-1],Io(r),r.repeat=0);let p={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>ad?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:e},d=f&&!c&&Bi(p),g=p.motionValue?.owner?.current,h;if(d)try{h=new br({...p,element:g})}catch{h=new Ct(p)}else h=new Ct(p);h.finished.then(()=>{this.notifyFinished()}).catch(N),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,o){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Oi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var $t=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,o){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=o}attachTimeline(e){let o=this.animations.map(r=>r.attachTimeline(e));return()=>{o.forEach((r,n)=>{r&&r(),this.animations[n].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 Vc(this.animations,"duration")}get iterationDuration(){return Vc(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(o=>o[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Vc(t,e){let o=0;for(let r=0;r<t.length;r++){let n=t[r][e];n!==null&&n>o&&(o=n)}return o}var eo=class extends $t{then(e,o){return this.finished.finally(e).then(()=>{})}};var Oo=class extends bt{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}};var bc=new WeakMap,Fi=(t,e="")=>`${t}:${e}`;function ji(t){let e=bc.get(t);return e||(e=new Map,bc.set(t,e)),e}function Pr(t,e,o,r=0,n=1){let s=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),i=t.size,a=(i-1)*r;return typeof o=="function"?o(s,i):n===1?s*r:a-s*r}var Ac=30,ld=t=>!isNaN(parseFloat(t)),Jt={current:void 0},Bt=class{constructor(e,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{let n=Y.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=o.owner}setCurrent(e){this.current=e,this.updatedAt=Y.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ld(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,o){this.events[e]||(this.events[e]=new ne);let r=this.events[e].add(o);return e==="change"?()=>{r(),T.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,o){this.passiveEffect=e,this.stopPassiveEffect=o}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,o=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Jt.current&&Jt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Y.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ac)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,Ac);return We(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(e){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=e(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function H(t,e){return new Bt(t,e)}function oo(t,e){if(t?.inherit&&e){let{inherit:o,...r}=t;return{...e,...r}}return t}function pt(t,e){let o=t?.[e]??t?.default??t;return o!==t?oo(o,t):o}var cd={type:"spring",stiffness:500,damping:25,restSpeed:10},ud=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fd={type:"keyframes",duration:.8},md={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ni=(t,{keyframes:e})=>e.length>2?fd:lt.has(t)?t.startsWith("scale")?ud(e[1]):cd:md;var pd=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Wi(t){for(let e in t)if(!pd.has(e))return!0;return!1}var Kt=(t,e,o,r={},n,s)=>i=>{let a=pt(r,t)||{},l=a.delay||r.delay||0,{elapsed:c=0}=r;c=c-B(l);let u={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:m=>{e.set(m),a.onUpdate&&a.onUpdate(m)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};Wi(a)||Object.assign(u,Ni(t,u)),u.duration&&(u.duration=B(u.duration)),u.repeatDelay&&(u.repeatDelay=B(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Io(u),u.delay===0&&(f=!0)),(nt.instantAnimations||nt.skipAnimations||n?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,Io(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!s&&e.get()!==void 0){let m=ue(u.keyframes,a);if(m!==void 0){T.update(()=>{u.onUpdate(m),u.onComplete()});return}}return a.isSync?new Ct(u):new Ar(u)};var dd=20;function Pc(t,e,o,r){let n=1-t;return n*n*e+2*n*t*o+t*t*r}function Za(t,e,o,r,n,s,i){let a=2*(1-t)*(o-e)+2*t*(r-o),l=2*(1-t)*(s-n)+2*t*(i-s);return Math.atan2(l,a)*(180/Math.PI)}function Cc(t,e,o,r,n,s){let i=o-t,a=r-e,l=Math.sqrt(i*i+a*a);if(l>0){let c=-a/l,u=i/l,f=n*l;return{x:t+i*s+c*f,y:e+a*s+u*f}}return{x:t,y:e}}function hd({strength:t=.5,peak:e=.5,direction:o,rotate:r=!1}={}){let n=r===!0?1:typeof r=="number"?r:0,s;return(a,l)=>{let c=l.x-a.x,u=l.y-a.y,f;o==="cw"?f=-t:o==="ccw"?f=t:f=(Math.abs(c)>=Math.abs(u)?c:u)<0?-t:t;let m=Cc(a.x,a.y,l.x,l.y,f,e);if(o===void 0){let h=Math.abs(c)<Math.abs(u),x=a.x+c*e,y=a.y+u*e,v=Math.sign(h?m.x-x:m.y-y);s!==void 0&&v!==0&&v!==s?(f=-f,m=Cc(a.x,a.y,l.x,l.y,f,e)):v!==0&&(s=v)}let p=n?Za(0,a.x,m.x,l.x,a.y,m.y,l.y):0,d=n?Za(1,a.x,m.x,l.x,a.y,m.y,l.y):0,g=n?Se(-180,180,d-p):0;return h=>{let x={x:Pc(h,a.x,m.x,l.x),y:Pc(h,a.y,m.y,l.y)};if(n){let y=Za(h,a.x,m.x,l.x,a.y,m.y,l.y),v=p+g*h;x.rotate=Se(-180,180,y-v)*n}return x}}}function Ja(t={}){let e=hd(t);return{interpolateProjection(r){let n=r.x.translate,s=r.y.translate;if(!(Math.sqrt(n*n+s*s)<dd))return e({x:n,y:s},{x:0,y:0})},animateVisualElement(r,n,s,i,a){if(!("x"in n||"y"in n))return;let l=r.getValue("x",r.latestValues.x??0),c=r.getValue("y",r.latestValues.y??0),u=n.x,f=n.y,m=(Array.isArray(u)&&u[0]!=null?u[0]:l?.get())??0,p=(Array.isArray(f)&&f[0]!=null?f[0]:c?.get())??0,d=Array.isArray(u)?u[u.length-1]:u??m,g=Array.isArray(f)?f[f.length-1]:f??p,h=e({x:m,y:p},{x:d,y:g}),x=h(0).rotate!==void 0?r.getValue("pathRotation",0):void 0,y={delay:i,...pt(s||{},"x")};delete y.path;let v=H(0);v.start(Kt("",v,[0,1e3],{...y,isSync:!0,velocity:0,onUpdate:w=>{let A=h(w/1e3);l?.set(A.x),c?.set(A.y),x&&A.rotate!==void 0&&x.set(A.rotate)},onComplete:()=>{l?.set(d),c?.set(g),x?.set(0)},onStop:()=>x?.set(0),onCancel:()=>x?.set(0)})),v.animation&&a.push(v.animation),delete n.x,delete n.y}}}var gd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qa(t){let e=gd.exec(t);if(!e)return[,];let[,o,r,n]=e;return[`--${o??r}`,n]}var yd=4;function Nn(t,e,o=1){k(o<=yd,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,n]=Qa(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let i=s.trim();return qo(i)?parseFloat(i):i}return $e(n)?Nn(n,e,o+1):n}function Ec(t){let e=[{},{}];return t?.values.forEach((o,r)=>{e[0][r]=o.get(),e[1][r]=o.getVelocity()}),e}function ro(t,e,o,r){if(typeof e=="function"){let[n,s]=Ec(r);e=e(o!==void 0?o:t.custom,n,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[n,s]=Ec(r);e=e(o!==void 0?o:t.custom,n,s)}return e}function Et(t,e,o){let r=t.getProps();return ro(r,e,o!==void 0?o:r.custom,t)}var Cr=new Set(["width","height","top","left","right","bottom",...Vt]);var ko=t=>Array.isArray(t);function xd(t,e,o){t.hasValue(e)?t.getValue(e).set(o):t.addValue(e,H(o))}function vd(t){return ko(t)?t[t.length-1]||0:t}function Bo(t,e){let o=Et(t,e),{transitionEnd:r={},transition:n={},...s}=o||{};s={...s,...r};for(let i in s){let a=vd(s[i]);xd(t,i,a)}}var D=t=>!!(t&&t.getVelocity);function Gi(t){return!!(D(t)&&t.add)}function Fo(t,e){let o=t.getValue("willChange");if(Gi(o))return o.add(e);if(!o&&nt.WillChange){let r=new nt.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function me(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Wn="framerAppearId",jo="data-"+me(Wn);function no(t){return t.props[jo]}var wd=typeof window<"u";function Sd({protectedKeys:t,needsAnimating:e},o){let r=t.hasOwnProperty(o)&&e[o]!==!0;return e[o]=!1,r}function io(t,e,{delay:o=0,transitionOverride:r,type:n}={}){let{transition:s,transitionEnd:i,...a}=e,l=t.getDefaultTransition();s=s?oo(s,l):l;let c=s?.reduceMotion,u=s?.skipAnimations;r&&(s=r);let f=[],m=n&&t.animationState&&t.animationState.getState()[n],p=s?.path;p&&p.animateVisualElement(t,a,s,o,f);for(let d in a){let g=t.getValue(d,t.latestValues[d]??null),h=a[d];if(h===void 0||m&&Sd(m,d))continue;let x={delay:o,...pt(s||{},d)};u&&(x.skipAnimations=!0);let y=g.get();if(y!==void 0&&!g.isAnimating()&&!Array.isArray(h)&&h===y&&!x.velocity){T.update(()=>g.set(h));continue}let v=!1;if(wd&&window.MotionHandoffAnimation){let E=no(t);if(E){let S=window.MotionHandoffAnimation(E,d,T);S!==null&&(x.startTime=S,v=!0)}}Fo(t,d);let w=c??t.shouldReduceMotion;g.start(Kt(d,g,h,w&&Cr.has(d)?{type:!1}:x,t,v));let A=g.animation;A&&f.push(A)}if(i){let d=()=>T.update(()=>{i&&Bo(t,i)});f.length?Promise.all(f).then(d):d()}return f}function Er(t,e,o={}){let r=Et(t,e,o.type==="exit"?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(n=o.transitionOverride);let s=r?()=>Promise.all(io(t,r,o)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=n;return Td(t,e,l,c,u,f,o)}:()=>Promise.resolve(),{when:a}=n;if(a){let[l,c]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>c())}else return Promise.all([s(),i(o.delay)])}function Td(t,e,o=0,r=0,n=0,s=1,i){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(Er(l,e,{...i,delay:o+(typeof r=="function"?0:r)+Pr(t.variantChildren,l,r,n,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Pe(t,e,o={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){let n=e.map(s=>Er(t,s,o));r=Promise.all(n)}else if(typeof e=="string")r=Er(t,e,o);else{let n=typeof e=="function"?Et(t,e,o.custom):e;r=Promise.all(io(t,n,o))}return r.then(()=>{t.notify("AnimationComplete",e)})}var Mc={test:t=>t==="auto",parse:t=>t};var Mr=t=>e=>e.test(t);var Gn=[Ut,V,wt,kt,Ci,Pi,Mc],Un=t=>Gn.find(Mr(t));function Dc(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Jo(t):!0}var Vd=new Set(["brightness","contrast","saturate","opacity"]);function bd(t){let[e,o]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[r]=o.match(cr)||[];if(!r)return t;let n=o.replace(r,""),s=Vd.has(e)?1:0;return r!==o&&(s*=100),e+"("+s+n+")"}var Ad=/\b([a-z-]*)\(.*?\)/gu,zn={...it,getAnimatableNone:t=>{let e=t.match(Ad);return e?e.map(bd).join(" "):t}};var $n={...it,getAnimatableNone:t=>{let e=it.parse(t);return it.createTransformer(t)(e.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}};var tl={...Ut,transform:Math.round};var Ui={rotate:kt,pathRotation:kt,rotateX:kt,rotateY:kt,rotateZ:kt,scale:Ao,scaleX:Ao,scaleY:Ao,scaleZ:Ao,skew:kt,skewX:kt,skewY:kt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Zt,originX:kn,originY:kn,originZ:V};var Qt={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...Ui,zIndex:tl,fillOpacity:Zt,strokeOpacity:Zt,numOctaves:tl};var el={...Qt,color:Z,backgroundColor:Z,outlineColor:Z,fill:Z,stroke:Z,borderColor:Z,borderTopColor:Z,borderRightColor:Z,borderBottomColor:Z,borderLeftColor:Z,filter:zn,WebkitFilter:zn,mask:$n,WebkitMask:$n},Dr=t=>el[t];var Pd=new Set([zn,$n]);function Rr(t,e){let o=Dr(t);return Pd.has(o)||(o=it),o.getAnimatableNone?o.getAnimatableNone(e):void 0}var Cd=new Set(["auto","none","0"]);function Rc(t,e,o){let r=0,n;for(;r<t.length&&!n;){let s=t[r];typeof s=="string"&&!Cd.has(s)&&le(s).values.length&&(n=t[r]),r++}if(n&&o)for(let s of e)t[s]=Rr(o,n)}var Lr=class extends fe{constructor(e,o,r,n,s){super(e,o,r,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),$e(f))){let m=Nn(f,o.current);m!==void 0&&(e[u]=m),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Cr.has(r)||e.length!==2)return;let[n,s]=e,i=Un(n),a=Un(s),l=Ln(n),c=Ln(s);if(l!==c&&Ve[r]){this.needsMeasurement=!0;return}if(i!==a)if(Ka(i)&&Ka(a))for(let u=0;u<e.length;u++){let f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else Ve[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:o}=this,r=[];for(let n=0;n<e.length;n++)(e[n]===null||Dc(e[n]))&&r.push(n);r.length&&Rc(e,r,o)}measureInitialState(){let{element:e,unresolvedKeyframes:o,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ve[r](e.measureViewportBox(),window.getComputedStyle(e.current)),o[0]=this.measuredOrigin;let n=o[o.length-1];n!==void 0&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:o,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(o);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,i=r[s];r[s]=Ve[o](e.measureViewportBox(),window.getComputedStyle(e.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}};var pe=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];var Lc=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius",...pe,"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 zi(t,e){for(let o=0;o<t.length;o++)typeof t[o]=="number"&&Lc.has(e)&&(t[o]=t[o]+"px")}function ol(t){return!!(typeof t=="function"&&be()||!t||typeof t=="string"&&(t in Do||be())||Ue(t)||Array.isArray(t)&&t.every(ol))}var Ic=Ne(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0});var rl=[];function $i(t){k(typeof t.test=="function"&&typeof t.read=="function","Effects passed to animate.addEffect() need test() and read().","effect-missing-test"),Kn(t),rl.unshift(t)}function Kn(t){vt(rl,t)}function Ki(t){return rl.find(e=>e.test(t))}function Hi(t,e,o,r={}){let n=[];for(let s in o){let i=o[s],a=t.get(e,s);if(!a){let l=t.read(e,s,i)??Ed(i);k(l!==void 0,`"${s}" can't be read from the animated subject. Provide [from, to] keyframes.`,"effect-unreadable-value"),a=H(l),t(e,{[s]:a})}a.start(Kt(s,a,i,pt(r,s))),a.animation&&n.push(a.animation)}return n}function Ed(t){let e=Array.isArray(t)?t[0]:void 0;return e===null?void 0:e}function ct(t,e,o){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;e&&(r=e.current);let n=o?.[t]??r.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(r=>r!=null)}function Ir(t){return(e,o)=>{let r=ct(e),n=[];for(let s of r){let i=t(s,o);n.push(i)}return()=>{for(let s of n)s()}}}var Ce=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var Or=class{constructor(e=T.render){this.step=e,this.latest={},this.values=new Map}set(e,o,r,n,s=!0){let i=this.values.get(e);i&&i.onRemove();let a=()=>{let u=o.get();s?this.latest[e]=Ce(u,Qt[e]):this.latest[e]=u,r&&this.step(r)};a();let l=o.on("change",a);n&&o.addDependent(n);let c=()=>{l(),r&&K(r),this.values.delete(e),n&&o.removeDependent(n)};return this.values.set(e,{value:o,onRemove:c}),c}get(e){return this.values.get(e)?.value}};function de(t,{step:e,...o}={}){let r=new WeakMap;return Object.assign((s,i)=>{let a=r.get(s)??new Or(e);r.set(s,a);let l=[];for(let c in i){let u=i[c],f=t(s,a,c,u);l.push(f)}return()=>{for(let c of l)c()}},o,{get:(s,i)=>r.get(s)?.get(i)})}function Md(t,e){if(!(e in t))return!1;let o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return o&&typeof o.set=="function"}var kr=(t,e,o,r)=>{let n=Md(t,o),s=n?o:o.startsWith("data")||o.startsWith("aria")?me(o):o,i=n?()=>{t[s]=e.latest[o]}:()=>{let a=e.latest[o];a==null?t.removeAttribute(s):t.setAttribute(s,String(a))};return e.set(o,r,i)},Oc=Ir(de(kr));var kc=de((t,e,o,r)=>e.set(o,r,()=>{t[o]=e.latest[o]},void 0,!1));function Ht(t){return Zo(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}var Dd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Bc(t){let e="",o=!0;for(let n=0;n<Vt.length;n++){let s=Vt[n],i=t.latest[s];if(i===void 0)continue;let a=!0;if(typeof i=="number")a=i===(s.startsWith("scale")?1:0);else{let l=parseFloat(i);a=s.startsWith("scale")?l===1:l===0}if(!a){o=!1;let l=Dd[s]||s;e+=`${l}(${i}) `}}let r=t.latest.pathRotation;return r&&(o=!1,e+=`rotate(${typeof r=="number"?`${r}deg`:r}) `),o?"none":e.trim()}var Rd=new Set(["originX","originY","originZ"]),Br=(t,e,o,r)=>{let n,s;return lt.has(o)?(e.get("transform")||(!Ht(t)&&!e.get("transformBox")&&Br(t,e,"transformBox",new Bt("fill-box")),e.set("transform",new Bt("none"),()=>{t.style.transform=Bc(e)})),s=e.get("transform")):Rd.has(o)?(e.get("transformOrigin")||e.set("transformOrigin",new Bt(""),()=>{let i=e.latest.originX??"50%",a=e.latest.originY??"50%",l=e.latest.originZ??0;t.style.transformOrigin=`${i} ${a} ${l}`}),s=e.get("transformOrigin")):Sr(o)?n=()=>{t.style.setProperty(o,e.latest[o])}:n=()=>{t.style[o]=e.latest[o]},e.set(o,r,n,s)},Fc=Ir(de(Br));function Ld(t,e,o,r){return T.render(()=>t.setAttribute("pathLength","1")),o==="pathOffset"?e.set(o,r,()=>{let n=e.latest[o];t.setAttribute("stroke-dashoffset",`${-n}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new Bt("1 1"),()=>{let{pathLength:n=1,pathSpacing:s}=e.latest;t.setAttribute("stroke-dasharray",`${n} ${s??1-Number(n)}`)}),e.set(o,r,void 0,e.get("stroke-dasharray")))}var Id=(t,e,o,r)=>o.startsWith("path")?Ld(t,e,o,r):o.startsWith("attr")?kr(t,e,Od(o),r):(o in t.style?Br:kr)(t,e,o,r),jc=Ir(de(Id));function Od(t){return t.replace(/^attr([A-Z])/,(e,o)=>o.toLowerCase())}var{schedule:St,cancel:Hn}=lr(queueMicrotask,!1);var Mt={x:!1,y:!1};function Fr(){return Mt.x||Mt.y}function _i(t){return t==="x"||t==="y"?Mt[t]?null:(Mt[t]=!0,()=>{Mt[t]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}function Xi(t,e){let o=ct(t),r=new AbortController,n={passive:!0,...e,signal:r.signal};return[o,n,()=>r.abort()]}function kd(t){return!(t.pointerType==="touch"||Fr())}function Yi(t,e,o={}){let[r,n,s]=Xi(t,o);return r.forEach(i=>{let a=!1,l=!1,c,u=()=>{i.removeEventListener("pointerleave",d)},f=h=>{c&&(c(h),c=void 0),u()},m=h=>{a=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),l&&(l=!1,f(h))},p=()=>{a=!0,window.addEventListener("pointerup",m,n),window.addEventListener("pointercancel",m,n)},d=h=>{if(h.pointerType!=="touch"){if(a){l=!0;return}f(h)}},g=h=>{if(!kd(h))return;l=!1;let x=e(i,h);typeof x=="function"&&(c=x,i.addEventListener("pointerleave",d,n))};i.addEventListener("pointerenter",g,n),i.addEventListener("pointerdown",p,n)}),s}var _n=(t,e)=>e?t===e?!0:_n(t,e.parentElement):!1;var so=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;var Bd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qi(t){return Bd.has(t.tagName)||t.isContentEditable===!0}var Fd=new Set(["INPUT","SELECT","TEXTAREA"]);function Zi(t){return Fd.has(t.tagName)||t.isContentEditable===!0}var jr=new WeakSet;function Nc(t){return e=>{e.key==="Enter"&&t(e)}}function nl(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}var Wc=(t,e)=>{let o=t.currentTarget;if(!o)return;let r=Nc(()=>{if(jr.has(o))return;nl(o,"down");let n=Nc(()=>{nl(o,"up")}),s=()=>nl(o,"cancel");o.addEventListener("keyup",n,e),o.addEventListener("blur",s,e)});o.addEventListener("keydown",r,e),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),e)};function Gc(t){return so(t)&&!Fr()}var Uc=new WeakSet;function Ji(t,e,o={}){let[r,n,s]=Xi(t,o),i=a=>{let l=a.currentTarget;if(!Gc(a)||Uc.has(a))return;jr.add(l),o.stopPropagation&&Uc.add(a);let c=e(l,a),u={...n,capture:!0},f=(d,g)=>{window.removeEventListener("pointerup",m,u),window.removeEventListener("pointercancel",p,u),jr.has(l)&&jr.delete(l),Gc(d)&&typeof c=="function"&&c(d,{success:g})},m=d=>{f(d,l===window||l===document||o.useGlobalTarget||_n(l,d.target))},p=d=>{f(d,!1)};window.addEventListener("pointerup",m,u),window.addEventListener("pointercancel",p,u)};return r.forEach(a=>{(o.useGlobalTarget?window:a).addEventListener("pointerdown",i,n),Ht(a)&&(a.addEventListener("focus",c=>Wc(c,n)),!qi(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Xn(t,e){let o=window.getComputedStyle(t);return Sr(e)?o.getPropertyValue(e):o[e]}function he(t){return Zo(t)&&"ownerSVGElement"in t}var Qi=new WeakMap,ts,zc=(t,e,o)=>(r,n)=>n&&n[0]?n[0][t+"Size"]:he(r)&&"getBBox"in r?r.getBBox()[e]:r[o],jd=zc("inline","width","offsetWidth"),Nd=zc("block","height","offsetHeight");function Wd({target:t,borderBoxSize:e}){Qi.get(t)?.forEach(o=>{o(t,{get width(){return jd(t,e)},get height(){return Nd(t,e)}})})}function Gd(t){t.forEach(Wd)}function Ud(){typeof ResizeObserver>"u"||(ts=new ResizeObserver(Gd))}function $c(t,e){ts||Ud();let o=ct(t);return o.forEach(r=>{let n=Qi.get(r);n||(n=new Set,Qi.set(r,n)),n.add(e),ts?.observe(r)}),()=>{o.forEach(r=>{let n=Qi.get(r);n?.delete(e),n?.size||ts?.unobserve(r)})}}var es=new Set,Nr;function zd(){Nr=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};es.forEach(e=>e(t))},window.addEventListener("resize",Nr)}function Kc(t){return es.add(t),Nr||zd(),()=>{es.delete(t),!es.size&&typeof Nr=="function"&&(window.removeEventListener("resize",Nr),Nr=void 0)}}function No(t,e){return typeof t=="function"?Kc(t):$c(t,e)}function Wr(t,e){let o,r=()=>{let{currentTime:n}=e,i=(n===null?0:n.value)/100;o!==i&&t(i),o=i};return T.preUpdate(r,!0),()=>K(r)}var Dt={value:null,addProjectionMetrics:null};function $d(){Dt.value=null,Dt.addProjectionMetrics=null}function Hc(){if(Dt.value)throw $d(),new Error("Stats are already being measured");let t=Dt;t.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},t.addProjectionMetrics=e=>{let{layoutProjection:o}=t.value;o.nodes.push(e.nodes),o.calculatedTargetDeltas.push(e.calculatedTargetDeltas),o.calculatedProjections.push(e.calculatedProjections)}}function Gr(t){return he(t)&&t.tagName==="svg"}function il(t,e){if(t==="first")return 0;{let o=e-1;return t==="last"?o:o/2}}function _c(t=.1,{startDelay:e=0,from:o=0,ease:r}={}){return(n,s)=>{let i=typeof o=="number"?o:il(o,s),a=Math.abs(i-n),l=t*a;if(r){let c=s*t;l=Vo(r)(l/c)*c}return e+l}}function Ur(...t){let e=!Array.isArray(t[0]),o=e?0:-1,r=t[0+o],n=t[1+o],s=t[2+o],i=t[3+o],a=Xe(n,s,i);return e?a(r):a}function os(t,e){let o=D(t)?t.get():t,r=H(o);return Wo(r,t,e),r}function Wo(t,e,o={}){let r=t.get(),n=null,s=r,i,a=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,l=()=>{n&&(n.stop(),n=null),t.animation=void 0},c=()=>{let f=Xc(t.get()),m=Xc(s);if(f===m){l();return}let p=n?n.getGeneratorVelocity():t.getVelocity();l(),n=new Ct({keyframes:[f,m],velocity:p,type:"spring",restDelta:.001,restSpeed:.01,...o,onUpdate:i})},u=()=>{c(),t.animation=n??void 0,t.events.animationStart?.notify(),n?.then(()=>{t.animation=void 0,t.events.animationComplete?.notify()})};if(t.attach((f,m)=>{s=f,i=p=>m(sl(p,a)),T.postRender(u)},l),D(e)){let f=o.skipInitialAnimation===!0,m=e.on("change",d=>{f?(f=!1,t.jump(sl(d,a),!1)):t.set(sl(d,a))}),p=t.on("destroy",m);return()=>{m(),p()}}return l}function sl(t,e){return e?t+e:t}function Xc(t){return typeof t=="number"?t:parseFloat(t)}function Yc(t,e,o){let r=()=>e.set(o()),n=()=>T.preRender(r,!1,!0),s=t.map(i=>i.on("change",n));e.on("destroy",()=>{s.forEach(i=>i()),K(r)})}function rs(t){let e=[];Jt.current=e;let o=t();Jt.current=void 0;let r=H(o);return Yc(e,r,t),r}function qc(t,e,o,r){let n=Ur(e,o,r);return rs(()=>n(t.get()))}function Zc(t,e){return os(t,{type:"spring",...e})}function Jc(t,e,o){return Wo(t,e,{type:"spring",...o})}var Kd=[...Gn,Z,it],ns=t=>Kd.find(Mr(t));var Hd=0,Qc=()=>`motion-view-${Hd++}`,_d=t=>t.startsWith("motion-view-");function tu(t,e,o){e&&(t.style?.setProperty("view-transition-class",e),o.push(t))}function eu(t,e,o,r,n){if(o&&(t.style?.setProperty("view-transition-group",o),r.push(t),o!=="none"&&n)){let s=getComputedStyle(t);(s.overflowX!=="visible"||s.overflowY!=="visible")&&n.add(e)}}function is(t,e,o,r,n,s=[],i,a=[],l){let c=ct(t);if(r)return c.map((f,m)=>{let p=e.get(f);if(p)return p;let d=r[m]??Qc();return f.style?.setProperty("view-transition-name",d),o.push(f),e.set(f,d),tu(f,n,s),eu(f,d,i,a,l),d});let u=c.map(f=>e.has(f)?void 0:getComputedStyle(f).getPropertyValue("view-transition-name"));return c.map((f,m)=>{let p=e.get(f);if(p)return p;let d=u[m],g;return d&&d!=="none"&&d!=="auto"&&d!=="match-element"&&!_d(d)?g=d:(g=Qc(),f.style?.setProperty("view-transition-name",g),o.push(f)),e.set(f,g),tu(f,n,s),eu(f,g,i,a,l),g})}function ou(t,e=[],o=[]){for(let r of t)r.style?.removeProperty("view-transition-name");for(let r of e)r.style?.removeProperty("view-transition-class");for(let r of o)r.style?.removeProperty("view-transition-group")}function ru(t){return t==="layout"?"group":t==="enter"||t==="new"?"new":"old"}var ss={},Ee=null,ao={set:(t,e)=>{ss[t]=e},commit:()=>{Ee||(Ee=document.createElement("style"),Ee.id="motion-view");let t="";for(let e in ss){let o=ss[e];t+=`${e} {
2
+ `;for(let[r,n]of Object.entries(o))t+=` ${r}: ${n};
3
+ `;t+=`}
4
+ `}Ee.textContent=t,document.head.appendChild(Ee),ss={}},remove:()=>{Ee&&Ee.parentElement&&Ee.parentElement.removeChild(Ee)}};function as(t){let e=t.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return e?{layer:e[2],type:e[1]}:null}function ls(){return document.getAnimations().filter(t=>{let{effect:e}=t;return!!e&&e.target===document.documentElement&&e.pseudoElement?.startsWith("::view-transition")})}function nu(t,e){return e.has(t)&&Object.keys(e.get(t)).length>0}var Xd=["layout","enter","exit","new","old"],iu=t=>t.split(" ").every(e=>parseFloat(e)===0),Yd={group:["layout"],new:["new","enter"],old:["old","exit"]},qd={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},Zd=.2;function au(t){let{update:e,targets:o,resolveDefs:r,cropOverride:n,pairs:s,classNames:i,flatGroups:a,options:l}=t;if(!document.startViewTransition)return(async()=>(await e(),new $t([])))();let c=new Map,u=[],f=[],m=[],p=new Set,d=new Map,g=new Set,h=new Map,x=new Map,y=new Map,v=new Map,w=L=>{o.forEach((R,P)=>{let I=i.get(P),X=P==="root"||!r.has(P)?void 0:a.has(P)?"none":"contain",U;if(P==="root"||!r.has(P))U=[P];else if(s.has(P))if(L==="old")v.set(P,ct(P)),U=is(P,c,u,void 0,I,f,X,m,p),y.set(P,U);else{for(let $ of v.get(P)??[])$.style?.removeProperty("view-transition-name"),c.delete($);U=is(s.get(P),c,u,y.get(P),I,f,X,m,p)}else U=is(P,c,u,void 0,I,f,X,m,p);let z=n.get(P);U.forEach(($,gt)=>{let j=d.get($);d.set($,j&&j!==R?{...j,...R}:R),z!==void 0&&h.set($,z);let yt=x.get($)??{};yt[L]=[gt,U.length],x.set($,yt)})})},A=(L,R)=>{let P=x.get(L);return(R==="old"?P?.old:R==="new"?P?.new:P?.new??P?.old)??[-1,1]},E=(L,R,P,I,X)=>{let U=su(pt(l,P),pt(Jd(L,R)??{},P));return typeof U.delay=="function"&&(U.delay=U.delay(I,X)),U},S=L=>{let[R,P]=A(L,"group"),I=E(d.get(L),"group","layout",R===-1?0:R,P);I.duration&&(I.duration=B(I.duration));let{delay:X=0,duration:U,ease:z}=Lo(I);return{delay:B(X),duration:U,ease:z}},b=new Map,C=L=>c.forEach((R,P)=>{let I=P,X=I.getBoundingClientRect?.();if(X&&X.height){let U=getComputedStyle(I),z={};for(let gt of pe)z[gt]=U[gt];let $=b.get(R)??{};$[L]={width:X.width,height:X.height,radii:z},b.set(R,$)}}),W=()=>{g.clear();for(let L of x.keys())L!=="root"&&(h.get(L)??G(L))&&g.add(L)},G=L=>{let R=b.get(L);return!R?.old||!R?.new||!R.old.height||!R.new.height?!1:Math.abs(R.old.width/R.old.height-R.new.width/R.new.height)>Zd},ot=()=>{nu("root",o)||ao.set(":root",{"view-transition-name":"none"}),ao.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),g.forEach(L=>{ao.set(`::view-transition-group(${L})`,{overflow:"clip"}),ao.set(`::view-transition-old(${L}), ::view-transition-new(${L})`,{width:"100%",height:"100%","object-fit":"cover"})}),p.forEach(L=>{ao.set(`::view-transition-group-children(${L})`,{overflow:"clip"})}),ao.commit()},J=()=>{ou(u,f,m),ao.remove()},re=async()=>{await e(),w("new"),C("new"),W(),ot()},at;try{w("old"),C("old"),ot(),at=document.startViewTransition(re)}catch(L){return J(),Promise.reject(L)}return at.finished.finally(J),new Promise((L,R)=>{at.ready.then(()=>{let P=ls(),I=[],X=new Set,U=new Set;d.forEach((z,$)=>{let gt=x.get($),j=!!gt?.new&&!gt?.old,yt=!!gt?.old&&!gt?.new;for(let Q of Xd){if(!z[Q]||Q==="enter"&&!j||Q==="exit"&&!yt)continue;let dt=ru(Q),[Wt,Fe]=A($,dt);if(Wt===-1)continue;let{keyframes:Xt,options:ht}=z[Q];for(let[ft,we]of Object.entries(Xt)){if(we==null)continue;if(ft==="x"||ft==="y"){Si(!1,`animateView() animates view-transition layers with CSS properties; the "${ft}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(Q==="new"&&j&&z.enter?.keyframes[ft]!=null||Q==="old"&&yt&&z.exit?.keyframes[ft]!=null)continue;let tt=su(pt(l,ft),pt(ht,ft));if(!Array.isArray(we)){let Yt=Q==="enter"?z.exit?.keyframes[ft]:void 0,So=ft==="opacity"||(dt==="new"?j:yt),Hl=Yt!=null?Array.isArray(Yt)?Yt[Yt.length-1]:Yt:So?qd[dt]?.[ft]:void 0;Hl!==void 0&&(we=[Hl,we])}typeof tt.delay=="function"&&(tt.delay=tt.delay(Wt,Fe)),tt.duration&&(tt.duration=B(tt.duration)),tt.delay&&(tt.delay=B(tt.delay)),I.push(new bt({...tt,element:document.documentElement,name:ft,pseudoElement:`::view-transition-${dt}(${$})`,keyframes:we})),X.add(`${$}:${dt}`),ft==="opacity"&&U.add(`${$}:${dt}`)}}});for(let z of P){if(z.playState==="finished")continue;let{effect:$}=z;if(!$||!($ instanceof KeyframeEffect))continue;let{pseudoElement:gt}=$;if(!gt)continue;let j=as(gt);if(!j)continue;let yt=d.get(j.layer);if(X.has(`${j.layer}:${j.type}`)){U.has(`${j.layer}:new`)&&U.has(`${j.layer}:old`)&&$.getKeyframes().some(ht=>ht.mixBlendMode)?I.push(new Oo(z)):z.cancel();continue}let Q=j.type==="old"?"new":j.type==="new"?"old":void 0;if(Q&&X.has(`${j.layer}:${Q}`)&&!U.has(`${j.layer}:${Q}`)){z.cancel();continue}let dt=x.get(j.layer),Wt=(j.type==="old"||j.type==="new")&&!!dt?.old&&!!dt?.new,Fe;if(j.type.startsWith("group")){let{delay:Xt,duration:ht,ease:ft}=S(j.layer);Fe={delay:Xt,duration:ht,easing:Je(ft,ht)}}else{let Xt=Wt?"group":j.type,[ht,ft]=A(j.layer,Xt),tt=E(yt,Xt,Xt==="group"?"layout":"",ht===-1?0:ht,ft),Yt=tt.visualDuration;tt.duration&&(tt.duration=B(tt.duration)),tt=Lo(tt),Fe={delay:B(tt.delay??0),duration:Wt&&Yt!==void 0?B(Yt):tt.duration,easing:Wt?"linear":Je(tt.ease,tt.duration)}}$.updateTiming(Fe),I.push(new Oo(z))}b.forEach((z,$)=>{if(!g.has($))return;let{delay:gt,duration:j,ease:yt}=S($);for(let Q of pe){let dt=z.old?.radii[Q]||z.new?.radii[Q]||"0px",Wt=z.new?.radii[Q]||z.old?.radii[Q]||"0px";iu(dt)&&iu(Wt)||I.push(new bt({element:document.documentElement,name:Q,pseudoElement:`::view-transition-group(${$})`,keyframes:[dt,Wt],delay:gt,duration:j,ease:yt}))}}),L(new $t(I))}).catch(()=>at.updateCallbackDone.then(()=>L(new $t([])),R))})}function Jd(t,e){for(let o of Yd[e]??[]){let r=t?.[o]?.options;if(r)return r}}function su(t,e){let o={...t,...e};return e.duration!==void 0&&(e.visualDuration===void 0&&delete o.visualDuration,e.type===void 0&&delete o.type),o}var Me=[],al=null;function lu(){al=null;let[t]=Me;t&&Qd(t)}function Qd(t){vt(Me,t),al=t,au(t).then(e=>(t.notifyReady(e),e.finished)).catch(e=>t.notifyReject(e)).finally(lu)}function th(){for(let t=Me.length-1;t>=0;t--){let e=Me[t],{interrupt:o}=e.options;if(o==="immediate"){let r=Me.slice(0,t+1).map(s=>s.update),n=Me.slice(t+1);e.update=()=>{r.forEach(s=>s())},Me=[e,...n];break}}(!al||Me[0]?.options.interrupt==="immediate")&&lu()}function cu(t){Me.push(t),St.render(th)}var Yn=class{constructor(e,o={}){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=N,this.notifyReject=N,this.readyPromise=new Promise((r,n)=>{this.notifyReady=r,this.notifyReject=n}),this.update=e,this.options={interrupt:"wait",...o},this.readyPromise.catch(N),cu(this)}add(e,o){return this.currentSubject=e,this.resolveDefs.add(e),o!==void 0&&this.pairs.set(e,o),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,o){return this.updateTarget("enter",e,o),this}exit(e,o){return this.updateTarget("exit",e,o),this}new(e,o){return this.updateTarget("new",e,o),this}old(e,o){return this.updateTarget("old",e,o),this}updateTarget(e,o,r={}){let{currentSubject:n,targets:s}=this;s.has(n)||s.set(n,{});let i=s.get(n);i[e]={keyframes:o,options:r}}then(e,o){return this.readyPromise.then(e,o)}};function uu(t,e={}){return new Yn(t,e)}var cs=()=>({translate:0,scale:1,origin:0,originPoint:0}),De=()=>({x:cs(),y:cs()}),us=()=>({min:0,max:0}),_=()=>({x:us(),y:us()});var Ft=new WeakMap;function ge(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function te(t){return typeof t=="string"||Array.isArray(t)}var zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Go=["initial",...zr];function Re(t){return ge(t.animate)||Go.some(e=>te(t[e]))}function $r(t){return!!(Re(t)||t.variants)}function fs(t,e,o){for(let r in e){let n=e[r],s=o[r];if(D(n))t.addValue(r,n);else if(D(s))t.addValue(r,H(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let i=t.getValue(r);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=t.getStaticValue(r);t.addValue(r,H(i!==void 0?i:n,{owner:t}))}}for(let r in o)e[r]===void 0&&t.removeValue(r);return e}var Le={current:null},lo={current:!1};var eh=typeof window<"u";function Kr(){if(lo.current=!0,!!eh)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Le.current=t.matches;t.addEventListener("change",e),e()}else Le.current=!1}var fu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ms={};function Hr(t){ms=t}function ps(){return ms}var ee=class{scrapeMotionValuesFromProps(e,o,r){return{}}constructor({parent:e,props:o,presenceContext:r,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:i,visualState:a},l={}){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=fe,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 p=Y.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,T.render(this.render,!1,!0))};let{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=o.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=o,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=Re(o),this.isVariantNode=$r(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:f,...m}=this.scrapeMotionValuesFromProps(o,{},this);for(let p in m){let d=m[p];c[p]!==void 0&&D(d)&&d.set(c[p])}}mount(e){if(this.hasBeenMounted)for(let o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=e,Ft.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(lo.current||Kr(),this.shouldReduceMotion=Le.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),K(this.notifyUpdate),K(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let o=this.features[e];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,o){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),o.accelerate&&to.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:a,times:l,ease:c,duration:u}=o.accelerate,f=new bt({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:B(u)}),m=i(f);this.valueSubscriptions.set(e,()=>{m(),f.cancel()});return}let r=lt.has(e);r&&this.onBindTransform&&this.onBindTransform();let n=o.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&T.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,o)),this.valueSubscriptions.set(e,()=>{n(),s&&s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ms){let o=ms[e];if(!o)continue;let{isEnabled:r,Feature:n}=o;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.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,o){this.latestValues[e]=o}update(e,o){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<fu.length;r++){let n=fu[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let s="on"+n,i=e[s];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=fs(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(e),()=>o.variantChildren.delete(e)}addValue(e,o){let r=this.values.get(e);o!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,o),this.values.set(e,o),this.latestValues[e]=o.get())}removeValue(e){this.values.delete(e);let o=this.valueSubscriptions.get(e);o&&(o(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,o){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&o!==void 0&&(r=H(o===null?void 0:o,{owner:this}),this.addValue(e,r)),r}readValue(e,o){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(qo(r)||Jo(r))?r=parseFloat(r):!ns(r)&&it.test(o)&&(r=Rr(e,o)),this.setBaseTarget(e,D(r)?r.get():r)),D(r)?r.get():r}setBaseTarget(e,o){this.baseTarget[e]=o}getBaseTarget(e){let{initial:o}=this.props,r;if(typeof o=="string"||typeof o=="object"){let s=ro(this.props,o,this.presenceContext?.custom);s&&(r=s[e])}if(o&&r!==void 0)return r;let n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!D(n)?n:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,o){return this.events[e]||(this.events[e]=new ne),this.events[e].add(o)}notify(e,...o){this.events[e]&&this.events[e].notify(...o)}scheduleRenderMicrotask(){St.render(this.render)}};var co=class extends ee{constructor(){super(...arguments),this.KeyframeResolver=Lr}sortInstanceNodePosition(e,o){return e.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(e,o){let r=e.style;return r?r[o]:void 0}removeValueFromRenderState(e,{vars:o,style:r}){delete o[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};var ut=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function _r({top:t,left:e,right:o,bottom:r}){return{x:{min:e,max:o},y:{min:t,max:r}}}function ds({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function hs(t,e){if(!e)return t;let o=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function ll(t){return t===void 0||t===1}function Xr({scale:t,scaleX:e,scaleY:o}){return!ll(t)||!ll(e)||!ll(o)}function jt(t){return Xr(t)||qn(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function qn(t){return mu(t.x)||mu(t.y)}function mu(t){return t&&t!=="0%"}function Uo(t,e,o){let r=t-o,n=e*r;return o+n}function gs(t,e,o,r,n){return n!==void 0&&(t=Uo(t,n,r)),Uo(t,o,r)+e}function Zn(t,e=0,o=1,r,n){t.min=gs(t.min,e,o,r,n),t.max=gs(t.max,e,o,r,n)}function Jn(t,{x:e,y:o}){Zn(t.x,e.translate,e.scale,e.originPoint),Zn(t.y,o.translate,o.scale,o.originPoint)}var pu=.999999999999,du=1.0000000000001;function xs(t,e,o,r=!1){let n=o.length;if(!n)return;e.x=e.y=1;let s,i;for(let a=0;a<n;a++){s=o[a],i=s.projectionDelta;let{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Rt(t.x,-s.scroll.offset.x),Rt(t.y,-s.scroll.offset.y)),i&&(e.x*=i.x.scale,e.y*=i.y.scale,Jn(t,i)),r&&jt(s.latestValues)&&zo(t,s.latestValues,s.layout?.layoutBox))}e.x<du&&e.x>pu&&(e.x=1),e.y<du&&e.y>pu&&(e.y=1)}function Rt(t,e){t.min+=e,t.max+=e}function ys(t,e,o,r,n=.5){let s=M(t.min,t.max,n);Zn(t,e,o,s,r)}function hu(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function zo(t,e,o){let r=o??t;ys(t.x,hu(e.x,r.x),e.scaleX,e.scale,e.originX),ys(t.y,hu(e.y,r.y),e.scaleY,e.scale,e.originY)}function Qn(t,e){return _r(hs(t.getBoundingClientRect(),e))}function vs(t,e,o){let r=Qn(t,o),{scroll:n}=e;return n&&(Rt(r.x,n.offset.x),Rt(r.y,n.offset.y)),r}var oh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rh=Vt.length;function ti(t,e,o){let r="",n=!0;for(let i=0;i<rh;i++){let a=Vt[i],l=t[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{let u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||o){let u=Ce(l,Qt[a]);if(!c){n=!1;let f=oh[a]||a;r+=`${f}(${u}) `}o&&(e[a]=u)}}let s=t.pathRotation;return s&&(n=!1,r+=`rotate(${Ce(s,Qt.pathRotation)}) `),r=r.trim(),o?r=o(e,n?"":r):n&&(r="none"),r}function uo(t,e,o){let{style:r,vars:n,transformOrigin:s}=t,i=!1,a=!1;for(let l in e){let c=e[l];if(lt.has(l)){i=!0;continue}else if(ze(l)){n[l]=c;continue}else{let u=Ce(c,Qt[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(e.transform||(i||o?r.transform=ti(e,t.transform,o):r.transform&&(r.transform="none")),a){let{originX:l="50%",originY:c="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${c} ${u}`}}function Yr(t,{style:e,vars:o},r,n){let s=t.style,i;for(i in e)s[i]=e[i];n?.applyProjectionStyles(s,r);for(i in o)s.setProperty(i,o[i])}function ws(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var fo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(V.test(t))t=parseFloat(t);else return t;let o=ws(t,e.target.x),r=ws(t,e.target.y);return`${o}% ${r}%`}};var Ss={correct:(t,{treeScale:e,projectionDelta:o})=>{let r=t,n=it.parse(t);if(n.length>5)return r;let s=it.createTransformer(t),i=typeof n[0]!="number"?1:0,a=o.x.scale*e.x,l=o.y.scale*e.y;n[0+i]/=a,n[1+i]/=l;let c=M(a,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=c),typeof n[3+i]=="number"&&(n[3+i]/=c),s(n)}};var Ie={borderRadius:{...fo,applyTo:[...pe]},borderTopLeftRadius:fo,borderTopRightRadius:fo,borderBottomLeftRadius:fo,borderBottomRightRadius:fo,boxShadow:Ss};function cl(t){for(let e in t)Ie[e]=t[e],ze(e)&&(Ie[e].isCSSVariable=!0)}function qr(t,{layout:e,layoutId:o}){return lt.has(t)||t.startsWith("origin")||(e||o!==void 0)&&(!!Ie[t]||t==="opacity")}function mo(t,e,o){let r=t.style,n=e?.style,s={};if(!r)return s;for(let i in r)(D(r[i])||n&&D(n[i])||qr(i,t)||o?.getValue(i)?.liveStyle!==void 0)&&(s[i]=r[i]);return s}function nh(t){return window.getComputedStyle(t)}var ye=class extends co{constructor(){super(...arguments),this.type="html",this.renderInstance=Yr}mount(e){k(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,o){if(lt.has(o))return this.projection?.isProjecting?vr(o):Ii(e,o);{let r=nh(e),n=(ze(o)?r.getPropertyValue(o):r[o])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:o}){return Qn(e,o)}build(e,o,r){uo(e,o,r.transformTemplate)}scrapeMotionValuesFromProps(e,o,r){return mo(e,o,r)}};function ih(t,e){return t in e}var Zr=class extends ee{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,o){if(ih(o,e)){let r=e[o];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,o){delete o.output[e]}measureInstanceViewportBox(){return _()}build(e,o){Object.assign(e.output,o)}renderInstance(e,{output:o}){Object.assign(e,o)}sortInstanceNodePosition(){return 0}};var sh={offset:"stroke-dashoffset",array:"stroke-dasharray"},ah={offset:"strokeDashoffset",array:"strokeDasharray"};function Ts(t,e,o=1,r=0,n=!0){t.pathLength=1;let s=n?sh:ah;t[s.offset]=`${-r}`,t[s.array]=`${e} ${o}`}var ul=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Jr(t,{attrX:e,attrY:o,attrScale:r,pathLength:n,pathSpacing:s=1,pathOffset:i=0,...a},l,c,u){if(uo(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:m}=t;for(let p of ul)f[p]!==void 0&&(m[p]=f[p],delete f[p]);(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=u?.transformBox??"fill-box",delete f.transformBox),e!==void 0&&(f.x=e),o!==void 0&&(f.y=o),r!==void 0&&(f.scale=r),n!==void 0&&Ts(f,n,s,i,!1)}var Qr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var tn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Vs(t,e,o,r){Yr(t,e,void 0,r);for(let n in e.attrs)t.setAttribute(Qr.has(n)?n:me(n),e.attrs[n])}function en(t,e,o){let r=mo(t,e,o);for(let n in t)if(D(t[n])||D(e[n])){let s=Vt.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[s]=t[n]}return r}var po=class extends co{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(e,o){return e[o]}readValueFromInstance(e,o){if(lt.has(o)){let r=Dr(o);return r&&r.default||0}if(ul.includes(o)){let n=getComputedStyle(e)[o];if(typeof n=="string"&&n)return n.trim()}return o=Qr.has(o)?o:me(o),e.getAttribute(o)}scrapeMotionValuesFromProps(e,o,r){return en(e,o,r)}build(e,o,r){Jr(e,o,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,o,r,n){Vs(e,o,r,n)}mount(e){this.isSVGTag=tn(e.tagName),super.mount(e)}};var lh=Go.length;function ei(t){if(!t)return;if(!t.isControllingVariants){let o=t.parent?ei(t.parent)||{}:{};return t.props.initial!==void 0&&(o.initial=t.props.initial),o}let e={};for(let o=0;o<lh;o++){let r=Go[o],n=t.props[r];(te(n)||n===!1)&&(e[r]=n)}return e}function fl(t,e){if(!Array.isArray(e))return!1;let o=e.length;if(o!==t.length)return!1;for(let r=0;r<o;r++)if(e[r]!==t[r])return!1;return!0}var ch=[...zr].reverse(),uh=zr.length;function fh(t){return e=>Promise.all(e.map(({animation:o,options:r})=>Pe(t,o,r)))}function bs(t){let e=fh(t),o=gu(),r=!0,n=!1,s=c=>(u,f)=>{let m=Et(t,f,c==="exit"?t.presenceContext?.custom:void 0);if(m){let{transition:p,transitionEnd:d,...g}=m;u={...u,...g,...d}}return u};function i(c){e=c(t)}function a(c){let{props:u}=t,f=ei(t.parent)||{},m=[],p=new Set,d={},g=1/0;for(let x=0;x<uh;x++){let y=ch[x],v=o[y],w=u[y]!==void 0?u[y]:f[y],A=te(w),E=y===c?v.isActive:null;E===!1&&(g=x);let S=w===f[y]&&w!==u[y]&&A;if(S&&(r||n)&&t.manuallyAnimateOnMount&&(S=!1),v.protectedKeys={...d},!v.isActive&&E===null||!w&&!v.prevProp||ge(w)||typeof w=="boolean")continue;if(y==="exit"&&v.isActive&&E!==!0){v.prevResolvedValues&&(d={...d,...v.prevResolvedValues});continue}let b=ml(v.prevProp,w),C=b||y===c&&v.isActive&&!S&&A||x>g&&A,W=!1,G=Array.isArray(w)?w:[w],ot=G.reduce(s(y),{});E===!1&&(ot={});let{prevResolvedValues:J={}}=v,re={...J,...ot},at=P=>{C=!0,p.has(P)&&(W=!0,p.delete(P)),v.needsAnimating[P]=!0;let I=t.getValue(P);I&&(I.liveStyle=!1)};for(let P in re){let I=ot[P],X=J[P];if(d.hasOwnProperty(P))continue;let U=!1;ko(I)&&ko(X)?U=!fl(I,X)||b:U=I!==X,U?I!=null?at(P):p.add(P):I!==void 0&&p.has(P)?at(P):v.protectedKeys[P]=!0}v.prevProp=w,v.prevResolvedValues=ot,v.isActive&&(d={...d,...ot}),(r||n)&&t.blockInitialAnimation&&(C=!1);let L=S&&b;C&&(!L||W)&&m.push(...G.map(P=>{let I={type:y};if(typeof P=="string"&&(r||n)&&!L&&t.manuallyAnimateOnMount&&t.parent){let{parent:X}=t,U=Et(X,P);if(X.enteringChildren&&U){let{delayChildren:z}=U.transition||{};I.delay=Pr(X.enteringChildren,t,z)}}return{animation:P,options:I}}))}if(p.size){let x={};if(typeof u.initial!="boolean"){let y=Et(t,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(x.transition=y.transition)}p.forEach(y=>{let v=t.getBaseTarget(y),w=t.getValue(y);w&&(w.liveStyle=!0),x[y]=v??null}),m.push({animation:x})}let h=!!m.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(h=!1),r=!1,n=!1,h?e(m):Promise.resolve()}function l(c,u){if(o[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(m=>m.animationState?.setActive(c,u)),o[c].isActive=u;let f=a(c);for(let m in o)o[m].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>o,reset:()=>{o=gu(),n=!0}}}function ml(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!fl(e,t):!1}function $o(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gu(){return{animate:$o(!0),whileInView:$o(),whileHover:$o(),whileTap:$o(),whileDrag:$o(),whileFocus:$o(),exit:$o()}}function on(t,e){t.min=e.min,t.max=e.max}function Lt(t,e){on(t.x,e.x),on(t.y,e.y)}function oi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var yu=1e-4,mh=1-yu,ph=1+yu,xu=.01,dh=0-xu,hh=0+xu;function rt(t){return t.max-t.min}function Es(t,e,o){return Math.abs(t-e)<=o}function As(t,e,o,r=.5){t.origin=r,t.originPoint=M(e.min,e.max,t.origin),t.scale=rt(o)/rt(e),t.translate=M(o.min,o.max,t.origin)-t.originPoint,(t.scale>=mh&&t.scale<=ph||isNaN(t.scale))&&(t.scale=1),(t.translate>=dh&&t.translate<=hh||isNaN(t.translate))&&(t.translate=0)}function ho(t,e,o,r){As(t.x,e.x,o.x,r?r.originX:void 0),As(t.y,e.y,o.y,r?r.originY:void 0)}function Ps(t,e,o,r=0){let n=r?M(o.min,o.max,r):o.min;t.min=n+e.min,t.max=t.min+rt(e)}function Ms(t,e,o,r){Ps(t.x,e.x,o.x,r?.x),Ps(t.y,e.y,o.y,r?.y)}function Cs(t,e,o,r=0){let n=r?M(o.min,o.max,r):o.min;t.min=e.min-n,t.max=t.min+rt(e)}function Ko(t,e,o,r){Cs(t.x,e.x,o.x,r?.x),Cs(t.y,e.y,o.y,r?.y)}function Ds(t,e,o,r,n){return t-=e,t=Uo(t,1/o,r),n!==void 0&&(t=Uo(t,1/n,r)),t}function pl(t,e=0,o=1,r=.5,n,s=t,i=t){if(wt.test(e)&&(e=parseFloat(e),e=M(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=M(s.min,s.max,r);t===s&&(a-=e),t.min=Ds(t.min,e,o,a,n),t.max=Ds(t.max,e,o,a,n)}function Rs(t,e,[o,r,n],s,i){pl(t,e[o],e[r],e[n],e.scale,s,i)}var gh=["x","scaleX","originX"],yh=["y","scaleY","originY"];function ri(t,e,o,r){Rs(t.x,e,gh,o?o.x:void 0,r?r.x:void 0),Rs(t.y,e,yh,o?o.y:void 0,r?r.y:void 0)}function vu(t){return t.translate===0&&t.scale===1}function ni(t){return vu(t.x)&&vu(t.y)}function Ls(t,e){return t.min===e.min&&t.max===e.max}function Os(t,e){return Ls(t.x,e.x)&&Ls(t.y,e.y)}function Is(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ii(t,e){return Is(t.x,e.x)&&Is(t.y,e.y)}function si(t){return rt(t.x)/rt(t.y)}function ai(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function It(t){return[t("x"),t("y")]}function ks(t,e,o){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,i=o?.z||0;if((n||s||i)&&(r=`translate3d(${n}px, ${s}px, ${i}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),o){let{transformPerspective:c,rotate:u,pathRotation:f,rotateX:m,rotateY:p,skewX:d,skewY:g}=o;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotate(${f}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),d&&(r+=`skewX(${d}deg) `),g&&(r+=`skewY(${g}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}var xh=pe.length,wu=t=>typeof t=="string"?parseFloat(t):t,Su=t=>typeof t=="number"||V.test(t);function Bs(t,e,o,r,n,s){n?(t.opacity=M(0,o.opacity??1,vh(r)),t.opacityExit=M(e.opacity??1,0,wh(r))):s&&(t.opacity=M(e.opacity??1,o.opacity??1,r));for(let i=0;i<xh;i++){let a=pe[i],l=Tu(e,a),c=Tu(o,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Su(l)===Su(c)?(t[a]=Math.max(M(wu(l),wu(c),r),0),(wt.test(c)||wt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||o.rotate)&&(t.rotate=M(e.rotate||0,o.rotate||0,r))}function Tu(t,e){return t[e]!==void 0?t[e]:t.borderRadius}var vh=Vu(0,.5,rr),wh=Vu(.5,.95,N);function Vu(t,e,o){return r=>r<t?0:r>e?1:o(Tt(t,e,r))}function rn(t,e,o){let r=D(t)?t:H(t);return r.start(Kt("",r,e,o)),r.animation}function Nt(t,e,o,r={passive:!0}){return t.addEventListener(e,o,r),()=>t.removeEventListener(e,o,r)}var Fs=(t,e)=>t.depth-e.depth;var nn=class{constructor(){this.children=[],this.isDirty=!1}add(e){je(this.children,e),this.isDirty=!0}remove(e){vt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Fs),this.isDirty=!1,this.children.forEach(e)}};function sn(t,e){let o=Y.now(),r=({timestamp:n})=>{let s=n-o;s>=e&&(K(r),t(s-e))};return T.setup(r,!0),()=>K(r)}function bu(t,e){return sn(t,B(e))}function Oe(t){return D(t)?t.get():t}var an=class{constructor(){this.members=[]}add(e){je(this.members,e);for(let o=this.members.length-1;o>=0;o--){let r=this.members[o];if(r===e||r===this.lead||r===this.prevLead)continue;let n=r.instance;(!n||n.isConnected===!1)&&!r.snapshot&&(vt(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if(vt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(e){for(let o=this.members.indexOf(e)-1;o>=0;o--){let r=this.members[o];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(e,o){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=r.options,{layoutDependency:s}=e.options;(n===void 0||n!==s)&&(e.resumeFrom=r,o&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&r.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)}};var go={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Ho={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},dl=["","X","Y","Z"],Sh=1e3,Th=0;function hl(t,e,o,r){let{latestValues:n}=e;n[t]&&(o[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Iu(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let o=no(e);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:n,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(o,"transform",T,!(n||s))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Iu(r)}function ln({attachResizeListener:t,defaultParent:e,measureScroll:o,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(i={},a=e?.()){this.id=Th++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Dt.value&&(Ho.nodes=Ho.calculatedTargetDeltas=Ho.calculatedProjections=0),this.nodes.forEach(gl),this.nodes.forEach(Mh),this.nodes.forEach(Dh),this.nodes.forEach(yl),Dt.addProjectionMetrics&&Dt.addProjectionMetrics(Ho)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new nn)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ne),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){let l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=he(i)&&!Gr(i),this.instance=i;let{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,f=0,m=()=>this.root.updateBlockedByResize=!1;T.read(()=>{f=window.innerWidth}),t(i,()=>{let p=window.innerWidth;p!==f&&(f=p,this.root.updateBlockedByResize=!0,u&&u(),u=sn(m,250),go.hasAnimatedSinceResize&&(go.hasAnimatedSinceResize=!1,this.nodes.forEach(Cu)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let d=this.options.transition||c.getDefaultTransition()||kh,{onLayoutAnimationStart:g,onLayoutAnimationComplete:h}=c.getProps(),x=!this.targetLayout||!ii(this.targetLayout,p),y=!f&&m;if(this.options.layoutRoot||this.resumeFrom||y||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let v={...pt(d,"layout"),onPlay:g,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,y,v.path)}else f||Cu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),K(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Rh),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Iu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let f=this.path[u];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Ph),this.nodes.forEach(Au);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Pu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ch),this.nodes.forEach(Eh),this.nodes.forEach(Vh),this.nodes.forEach(bh)):this.nodes.forEach(Pu),this.clearAllSnapshots();let a=Y.now();F.delta=q(0,1e3/60,a-F.timestamp),F.timestamp=a,F.isProcessing=!0,se.update.process(F),se.preRender.process(F),se.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,St.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ah),this.sharedNodes.forEach(Lh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,T.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){T.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!rt(this.snapshot.measuredBox.x)&&!rt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=_()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ni(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;i&&this.instance&&(a||jt(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Bh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return _();let a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Fh))){let{scroll:c}=this.root;c&&(Rt(a.x,c.offset.x),Rt(a.y,c.offset.y))}return a}removeElementScroll(i){let a=_();if(Lt(a,i),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:u,options:f}=c;c!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Lt(a,i),Rt(a.x,u.offset.x),Rt(a.y,u.offset.y))}return a}applyTransform(i,a=!1,l){let c=l||_();Lt(c,i);for(let u=0;u<this.path.length;u++){let f=this.path[u];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Rt(c.x,-f.scroll.offset.x),Rt(c.y,-f.scroll.offset.y)),jt(f.latestValues)&&zo(c,f.latestValues,f.layout?.layoutBox)}return jt(this.latestValues)&&zo(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(i){let a=_();Lt(a,i);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!jt(c.latestValues))continue;let u;c.instance&&(Xr(c.latestValues)&&c.updateSnapshot(),u=_(),Lt(u,c.measurePageBox())),ri(a,c.latestValues,c.snapshot?.layoutBox,u)}return jt(this.latestValues)&&ri(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==a;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=F.timestamp;let m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.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(),Ms(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Lt(this.target,this.layout.layoutBox),Jn(this.target,this.targetDelta)):Lt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0),Dt.value&&Ho.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Xr(this.parent.latestValues)||qn(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,l){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),Ko(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Lt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let i=this.getLead(),a=!!this.resumingFrom||this!==i,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===F.timestamp&&(l=!1),l)return;let{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Lt(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,m=this.treeScale.y;xs(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=_());let{target:p}=i;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oi(this.prevProjectionDelta.x,this.projectionDelta.x),oi(this.prevProjectionDelta.y,this.projectionDelta.y)),ho(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!ai(this.projectionDelta.x,this.prevProjectionDelta.x)||!ai(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Dt.value&&Ho.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=De(),this.projectionDelta=De(),this.projectionDeltaWithTransform=De()}setAnimationOrigin(i,a=!1,l){let c=this.snapshot,u=c?c.latestValues:{},f={...this.latestValues},m=De();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let p=_(),d=c?c.source:void 0,g=this.layout?this.layout.source:void 0,h=d!==g,x=this.getStack(),y=!x||x.members.length<=1,v=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(Oh));this.animationProgress=0;let w,A=l?.interpolateProjection(i);this.mixTargetDelta=E=>{let S=E/1e3,b=A?.(S);b?(m.x.translate=b.x,m.x.scale=M(i.x.scale,1,S),m.x.origin=i.x.origin,m.x.originPoint=i.x.originPoint,m.y.translate=b.y,m.y.scale=M(i.y.scale,1,S),m.y.origin=i.y.origin,m.y.originPoint=i.y.originPoint):(Eu(m.x,i.x,S),Eu(m.y,i.y,S)),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ko(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ih(this.relativeTarget,this.relativeTargetOrigin,p,S),w&&Os(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=_()),Lt(w,this.relativeTarget)),h&&(this.animationValues=f,Bs(f,u,this.latestValues,S,v,y)),b&&b.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=b.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=T.update(()=>{go.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=H(0)),this.motionValue.jump(0,!1),this.currentAnimation=rn(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:a,target:l,layout:c,latestValues:u}=i;if(!(!a||!l||!c)){if(this!==i&&this.layout&&c&&Ou(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||_();let f=rt(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;let m=rt(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+m}Lt(a,l),zo(a,u),ho(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new an),this.sharedNodes.get(i).add(a);let c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let a=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let c={};l.z&&hl("z",i,c,this.animationValues);for(let u=0;u<dl.length;u++)hl(`rotate${dl[u]}`,i,c,this.animationValues),hl(`skew${dl[u]}`,i,c,this.animationValues);i.render();for(let u in c)i.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Oe(a?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Oe(a?.pointerEvents)||""),this.hasProjected&&!jt(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let f=ks(this.projectionDeltaWithTransform,this.treeScale,u);l&&(f=l(u,f)),i.transform=f;let{x:m,y:p}=this.projectionDelta;i.transformOrigin=`${m.origin*100}% ${p.origin*100}% 0`,c.animationValues?i.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:i.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(let d in Ie){if(u[d]===void 0)continue;let{correct:g,applyTo:h,isCSSVariable:x}=Ie[d],y=f==="none"?u[d]:g(u[d],c);if(h){let v=h.length;for(let w=0;w<v;w++)i[h[w]]=y}else x?this.options.visualElement.renderState.vars[d]=y:i[d]=y}this.options.layoutId&&(i.pointerEvents=c===this?Oe(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Au),this.root.sharedNodes.clear()}}}function Vh(t){t.updateLayout()}function bh(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:r}=t.layout,{animationType:n}=t.options,s=e.source!==t.layout.source;if(n==="size")It(u=>{let f=s?e.measuredBox[u]:e.layoutBox[u],m=rt(f);f.min=o[u].min,f.max=f.min+m});else if(n==="x"||n==="y"){let u=n==="x"?"y":"x";on(s?e.measuredBox[u]:e.layoutBox[u],o[u])}else Ou(n,e.layoutBox,o)&&It(u=>{let f=s?e.measuredBox[u]:e.layoutBox[u],m=rt(o[u]);f.max=f.min+m,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+m)});let i=De();ho(i,o,e.layoutBox);let a=De();s?ho(a,t.applyTransform(r,!0),e.measuredBox):ho(a,o,e.layoutBox);let l=!ni(i),c=!1;if(!t.resumeFrom){let u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){let{snapshot:f,layout:m}=u;if(f&&m){let p=t.options.layoutAnchor||void 0,d=_();Ko(d,e.layoutBox,f.layoutBox,p);let g=_();Ko(g,o,m.layoutBox,p),ii(d,g)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:o,snapshot:e,delta:a,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){let{onExitComplete:o}=t.options;o&&o()}t.options.transition=void 0}function gl(t){Dt.value&&Ho.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function yl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ah(t){t.clearSnapshot()}function Au(t){t.clearMeasurements()}function Ph(t){t.isLayoutDirty=!0,t.updateLayout()}function Pu(t){t.isLayoutDirty=!1}function Ch(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Eh(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Cu(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Mh(t){t.resolveTargetDelta()}function Dh(t){t.calcProjection()}function Rh(t){t.resetSkewAndRotation()}function Lh(t){t.removeLeadSnapshot()}function Eu(t,e,o){t.translate=M(e.translate,0,o),t.scale=M(e.scale,1,o),t.origin=e.origin,t.originPoint=e.originPoint}function Mu(t,e,o,r){t.min=M(e.min,o.min,r),t.max=M(e.max,o.max,r)}function Ih(t,e,o,r){Mu(t.x,e.x,o.x,r),Mu(t.y,e.y,o.y,r)}function Oh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var kh={duration:.45,ease:[.4,0,.1,1]},Du=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ru=Du("applewebkit/")&&!Du("chrome/")?Math.round:N;function Lu(t){t.min=Ru(t.min),t.max=Ru(t.max)}function Bh(t){Lu(t.x),Lu(t.y)}function Ou(t,e,o){return t==="position"||t==="preserve-aspect"&&!Es(si(e),si(o),.2)}function Fh(t){return t!==t.root&&t.scroll?.wasRoot}var js=ln({attachResizeListener:(t,e)=>Nt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var jh=t=>!t.isLayoutDirty&&t.willUpdate(!1);function li(){let t=new Set,e=new WeakMap,o=()=>t.forEach(jh);return{add:r=>{t.add(r),e.set(r,r.addEventListener("willUpdate",o))},remove:r=>{t.delete(r);let n=e.get(r);n&&(n(),e.delete(r)),o()},dirty:o}}var oe={current:void 0},yo=ln({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oe.current){let t=new js({});t.mount(window),t.setOptions({layoutScroll:!0}),oe.current=t}return oe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});var ku="[data-layout],[data-layout-id]",Ns=new WeakMap,ci;function Bu(t){let e=[];return t instanceof HTMLElement&&t.matches(ku)&&e.push(t),t.querySelectorAll(ku).forEach(o=>{o instanceof HTMLElement&&e.push(o)}),e}function Nh(){if(F.isProcessing)return;let t=Y.now();F.delta=q(0,1e3/60,t-F.timestamp),F.timestamp=t,F.isProcessing=!0,se.update.process(F),se.preRender.process(F),se.render.process(F),F.isProcessing=!1}function Wh(t){let e=t.parentElement;for(;e;){let o=Ns.get(e);if(o&&o.instance)return o;e=e.parentElement}}function Gh(){return new ye({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function Fu(t,e){let o=t.getAttribute("data-layout");return{layoutId:t.getAttribute("data-layout-id")??void 0,layout:o!==null?!0:void 0,animationType:!o||o==="true"?"both":o,transition:e}}function Nu(t,e){let o=Ns.get(t);if(o)o.setOptions(Fu(t,e));else{let r=Ft.get(t);r||(r=Gh()),t.style.transform&&!jt(r.latestValues)&&(t.style.transform=""),o=new yo(r.latestValues,Wh(t)),r.projection=o,o.setOptions({...Fu(t,e),visualElement:r}),o.mount(t),Ns.set(t,o)}return o.isPresent=!0,o.options.onExitComplete&&o.setOptions({onExitComplete:void 0}),o}function Uh(t){return[...t].sort((e,o)=>e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function ju(t,e){e.setOptions({onExitComplete:void 0}),(!e.getStack()||e.isLead())&&e.currentAnimation?.stop(),e.unmount(),Ns.delete(t)}function zh(){let t=ci;ci=void 0,Nh();let e=new Map;for(let s of t)for(let i of s.collectTargets()){let a=e.get(i);a?a.push(s):e.set(i,[s])}let o=new Map;for(let s of Uh(e.keys())){let i=e.get(s),a=Nu(s,i[i.length-1].transitionFor(s));for(let l of i)l.adopt(s,a);o.set(s,a)}o.forEach(s=>{s.isLayoutDirty=!1,s.willUpdate()});let r=[];for(let s of t){let i=s.runUpdate();i&&r.push(i)}let n=()=>{let s=new Set;for(let a of t)a.reconcileAdditions(s);for(let a of t)a.reconcileRemovals(s);let i;o.forEach(a=>i||(i=a.root));for(let a of t)i||(i=a.getRoot());i?.didUpdate(),St.render(()=>{for(let a of t)a.finalize()})};r.length?Promise.all(r).then(n):n()}var Ws=class{constructor(e,o,r){this.scope=e,this.updateDom=o,this.defaultOptions=r,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((n,s)=>{this.notifyReady=n,this.rejectReady=s}),ci||(ci=[],queueMicrotask(zh)),ci.push(this)}shared(e,o){return this.sharedTransitions.set(e,o),this}then(e,o){return this.readyPromise.then(e,o)}transitionFor(e){let o=e.getAttribute("data-layout-id");return o&&this.sharedTransitions.get(o)||this.defaultOptions}adopt(e,o){this.tracked.set(e,o),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return Bu(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then=="function")return e.then(void 0,o=>{this.updateError=o})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let o of Bu(this.scope)){if(this.tracked.has(o))continue;let r=Nu(o,this.transitionFor(o));this.adopt(o,r),r.options.layoutId&&e.add(r.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((o,r)=>{if(r.isConnected)return;let n=this.restorePoints.get(r);this.restorePoints.delete(r);let{layoutId:s}=o.options,i=o.getStack(),a=i&&i.members.some(l=>l!==o&&l.instance?.isConnected);if(s&&o.isLead()&&a&&!e.has(s)&&n&&n.parent.isConnected){if(n.parent.insertBefore(r,n.next&&n.next.parentNode===n.parent?n.next:null),o.isPresent=!1,o.setOptions({onExitComplete:()=>{r.remove(),ju(r,o)}}),o.relegate())return;r.remove()}ju(r,o),this.tracked.delete(r)})}getRoot(){let e;return this.tracked.forEach(o=>e||(e=o.root)),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(o=>{o.instance&&o.currentAnimation&&e.add(o.currentAnimation)}),this.notifyReady(new $t([...e]))}};function Wu(t,e,o){return typeof t=="function"?{scope:document,updateDom:t,defaultOptions:e}:{scope:t instanceof Document?t:ct(t)[0]??document,updateDom:e,defaultOptions:o}}var Gu=T,Uu=bo.reduce((t,e)=>(t[e]=o=>K(o),t),{});import*as Us from"/mma/runtime.js";import{useId as _h,useRef as Ku,useContext as Xh,useInsertionEffect as Yh}from"/mma/runtime.js";import{createContext as $h}from"/mma/runtime.js";var st=$h({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});import*as $u from"/mma/runtime.js";function zu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Kh(...t){return e=>{let o=!1,r=t.map(n=>{let s=zu(n,e);return!o&&typeof s=="function"&&(o=!0),s});if(o)return()=>{for(let n=0;n<r.length;n++){let s=r[n];typeof s=="function"?s():zu(t[n],null)}}}}function Gs(...t){return $u.useCallback(Kh(...t),t)}var xl=class extends Us.Component{getSnapshotBeforeUpdate(e){let o=this.props.childRef.current;if(Ht(o)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let r=o.offsetParent,n=Ht(r)&&r.offsetWidth||0,s=Ht(r)&&r.offsetHeight||0,i=getComputedStyle(o),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=o.offsetTop,a.left=o.offsetLeft,a.right=n-a.width-a.left,a.bottom=s-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function zs({children:t,isPresent:e,anchorX:o,anchorY:r,root:n,pop:s}){let i=_h(),a=Ku(null),l=Ku({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=Xh(st),u=s!==!1?t.props?.ref??t?.ref:void 0,f=Gs(a,u);return Yh(()=>{let{width:m,height:p,top:d,left:g,right:h,bottom:x,direction:y}=l.current;if(e||s===!1||!a.current||!m||!p)return;let v=y==="rtl",w=o==="left"?v?`right: ${h}`:`left: ${g}`:v?`left: ${g}`:`right: ${h}`,A=r==="bottom"?`bottom: ${x}`:`top: ${d}`;a.current.dataset.motionPopId=i;let E=document.createElement("style");c&&(E.nonce=c);let S=n??document.head;return S.appendChild(E),E.sheet&&E.sheet.insertRule(`
5
+ [data-motion-pop-id="${i}"] {
6
+ position: absolute !important;
7
+ width: ${m}px !important;
8
+ height: ${p}px !important;
9
+ ${w}px !important;
10
+ ${A}px !important;
11
+ }
12
+ `),()=>{a.current?.removeAttribute("data-motion-pop-id"),S.contains(E)&&S.removeChild(E)}},[e]),Hh(xl,{isPresent:e,childRef:a,sizeRef:l,pop:s,children:s===!1?t:Us.cloneElement(t,{ref:f})})}var $s=({children:t,initial:e,isPresent:o,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:i,anchorX:a,anchorY:l,root:c})=>{let u=O(Zh),f=qh(),m=_u(o),p=_u(r);xt(()=>{m.current=o,p.current=r});let d=!0,g=Xu(()=>(d=!1,{id:f,initial:e,isPresent:o,custom:n,onExitComplete:h=>{u.set(h,!0);for(let x of u.values())if(!x)return;r&&r()},register:h=>(u.set(h,!1),()=>{u.delete(h),!m.current&&!u.size&&p.current?.()})}),[o,u,r]);return s&&d&&(g={...g}),Xu(()=>{u.forEach((h,x)=>u.set(x,!1))},[o]),Yu.useEffect(()=>{!o&&!u.size&&r&&r()},[o]),t=Hu(zs,{pop:i==="popLayout",isPresent:o,anchorX:a,anchorY:l,root:c,children:t}),Hu(Ot.Provider,{value:g,children:t})};function Zh(){return new Map}import{useContext as qu,useId as Jh,useEffect as Qh,useCallback as tg}from"/mma/runtime.js";function cn(t=!0){let e=qu(Ot);if(e===null)return[!0,null];let{isPresent:o,onExitComplete:r,register:n}=e,s=Jh();Qh(()=>{if(t)return n(s)},[t]);let i=tg(()=>t&&r&&r(s),[s,r,t]);return!o&&r?[!1,i]:[!0]}function Zu(){return eg(qu(Ot))}function eg(t){return t===null?!0:t.isPresent}import{Children as og,isValidElement as rg}from"/mma/runtime.js";var ui=t=>t.key||"";function vl(t){let e=[];return og.forEach(t,o=>{rg(o)&&e.push(o)}),e}var tf=({children:t,custom:e,initial:o=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",anchorY:l="top",root:c})=>{let[u,f]=cn(i),m=ig(()=>vl(t),[t]),p=i&&!u?[]:m.map(ui),d=wl(!0),g=wl(m),h=O(()=>new Map),x=wl(new Set),[y,v]=Qu(m),[w,A]=Qu(m);xt(()=>{i&&!u&&!w.length&&f?.()},[u,i,w.length,f]),xt(()=>{d.current=!1,g.current=m;for(let b=0;b<w.length;b++){let C=ui(w[b]);p.includes(C)?(h.delete(C),x.current.delete(C)):h.get(C)!==!0&&h.set(C,!1)}},[w,p.length,p.join("-")]);let E=[];if(m!==y){let b=[...m],C=0;for(let W of w){let G=p.indexOf(ui(W));G===-1?(b.splice(C++,0,W),E.push(W)):C=G+E.length+1}return s==="wait"&&E.length&&(b=E),A(vl(b)),v(m),null}let{forceRender:S}=sg(qt);return Ju(ng,{children:w.map(b=>{let C=ui(b),W=i&&!u?!1:m===w||p.includes(C),G=()=>{if(x.current.has(C))return;if(h.has(C))x.current.add(C),h.set(C,!0);else return;let ot=!0;h.forEach(J=>{J||(ot=!1)}),ot&&(S?.(),A(g.current),i&&f?.(),r&&r())};return Ju($s,{isPresent:W,initial:!d.current||o?void 0:!1,custom:e,presenceAffectsLayout:n,mode:s,root:c,onExitComplete:W?void 0:G,anchorX:a,anchorY:l,children:b},C)})})};import{jsx as ug}from"/mma/runtime.js";import{useContext as rf,useRef as fg,useMemo as mg}from"/mma/runtime.js";import{createContext as ag}from"/mma/runtime.js";var Ks=ag(null);import{useState as cg,useCallback as of}from"/mma/runtime.js";import{useRef as lg}from"/mma/runtime.js";function ef(){let t=lg(!1);return xt(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function un(){let t=ef(),[e,o]=cg(0),r=of(()=>{t.current&&o(e+1)},[e]);return[of(()=>T.postRender(r),[r]),e]}var nf=t=>t===!0,pg=t=>nf(t===!0)||t==="id",Hs=({children:t,id:e,inherit:o=!0})=>{let r=rf(qt),n=rf(Ks),[s,i]=un(),a=fg(null),l=r.id||n;a.current===null&&(pg(o)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:nf(o)?r.group||li():li()});let c=mg(()=>({...a.current,forceRender:s}),[i]);return ug(qt.Provider,{value:c,children:t})};import{jsx as gg}from"/mma/runtime.js";import{useState as yg,useRef as xg,useEffect as vg}from"/mma/runtime.js";import{createContext as dg}from"/mma/runtime.js";var fn=dg({strict:!1});var sf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},af=!1;function hg(){if(af)return;let t={};for(let e in sf)t[e]={isEnabled:o=>sf[e].some(r=>!!o[r])};Hr(t),af=!0}function _s(){return hg(),ps()}function fi(t){let e=_s();for(let o in t)e[o]={...e[o],...t[o]};Hr(e)}function lf({children:t,features:e,strict:o=!1}){let[,r]=yg(!Sl(e)),n=xg(void 0);if(!Sl(e)){let{renderer:s,...i}=e;n.current=s,fi(i)}return vg(()=>{Sl(e)&&e().then(({renderer:s,...i})=>{fi(i),n.current=s,r(!0)})},[]),gg(fn.Provider,{value:{renderer:n.current,strict:o},children:t})}function Sl(t){return typeof t=="function"}import{jsx as wg}from"/mma/runtime.js";import{useContext as Sg,useMemo as Tg}from"/mma/runtime.js";function cf({children:t,...e}){let o=Sg(st);e={...o,...e},e.transition=oo(e.transition,o.transition),e.isStatic=O(()=>e.isStatic);let r=Tg(()=>e,[JSON.stringify(e.transition),e.transformPagePoint,e.reducedMotion,e.skipAnimations,e.isValidProp]);return wg(st.Provider,{value:r,children:t})}import{jsxs as zg,jsx as $g}from"/mma/runtime.js";import{forwardRef as Kg,useContext as Vl}from"/mma/runtime.js";import{createContext as Vg}from"/mma/runtime.js";var _t=Vg({});import{useContext as bg,useMemo as Ag}from"/mma/runtime.js";function uf(t,e){if(Re(t)){let{initial:o,animate:r}=t;return{initial:o===!1||te(o)?o:void 0,animate:te(r)?r:void 0}}return t.inherit!==!1?e:{}}function mf(t){let{initial:e,animate:o}=uf(t,bg(_t));return Ag(()=>({initial:e,animate:o}),[ff(e),ff(o)])}function ff(t){return Array.isArray(t)?t.join(" "):t}import{Fragment as Lg,useMemo as Ig,createElement as Og}from"/mma/runtime.js";import{useMemo as Pg}from"/mma/runtime.js";var mn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tl(t,e,o){for(let r in e)!D(e[r])&&!qr(r,o)&&(t[r]=e[r])}function Cg({transformTemplate:t},e){return Pg(()=>{let o=mn();return uo(o,e,t),Object.assign({},o.vars,o.style)},[e])}function Eg(t,e){let o=t.style||{},r={};return Tl(r,o,t),Object.assign(r,Cg(t,e)),r}function pf(t,e){let o={},r=Eg(t,e);return t.drag&&t.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=r,o}import{useMemo as Mg}from"/mma/runtime.js";var Xs=()=>({...mn(),attrs:{}});function df(t,e,o,r){let n=Mg(()=>{let s=Xs();return Jr(s,e,tn(r),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){let s={};Tl(s,t.style,t),n.style={...s,...n.style}}return n}var Dg=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function _o(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Dg.has(t)}function Rg(t,e){return t.startsWith("on")?!_o(t):e?.(t)??!_o(t)}function Ys(t,e,o,r){let n={};for(let s in t)s==="values"&&typeof t.values=="object"||D(t[s])||(Rg(s,r)||o===!0&&_o(s)||!e&&!_o(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}var hf=["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 pn(t){return typeof t!="string"||t.includes("-")?!1:!!(hf.indexOf(t)>-1||/[A-Z]/u.test(t))}function gf(t,e,o,{latestValues:r},n,s=!1,i,a){let c=(i??pn(t)?df:pf)(e,r,n,t),u=Ys(e,typeof t=="string",s,a),f=t!==Lg?{...u,...c,ref:o}:{},{children:m}=e,p=Ig(()=>D(m)?m.get():m,[m]);return Og(t,{...f,children:p})}import{useContext as yf}from"/mma/runtime.js";function kg({scrapeMotionValuesFromProps:t,createRenderState:e},o,r,n){return{latestValues:Bg(o,r,n,t),renderState:e()}}function Bg(t,e,o,r){let n={},s=r(t,{});for(let m in s)n[m]=Oe(s[m]);let{initial:i,animate:a}=t,l=Re(t),c=$r(t);e&&c&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let u=o?o.initial===!1:!1;u=u||i===!1;let f=u?a:i;if(f&&typeof f!="boolean"&&!ge(f)){let m=Array.isArray(f)?f:[f];for(let p=0;p<m.length;p++){let d=ro(t,m[p]);if(d){let{transitionEnd:g,transition:h,...x}=d;for(let y in x){let v=x[y];if(Array.isArray(v)){let w=u?v.length-1:0;v=v[w]}v!==null&&(n[y]=v)}for(let y in g)n[y]=g[y]}}}return n}var xo=t=>(e,o)=>{let r=yf(_t),n=yf(Ot),s=()=>kg(t,e,r,n);return o?s():O(s)};var xf=xo({scrapeMotionValuesFromProps:mo,createRenderState:mn});var vf=xo({scrapeMotionValuesFromProps:en,createRenderState:Xs});var dn=Symbol.for("motionComponentSymbol");import{useRef as wf,useInsertionEffect as Fg,useCallback as jg}from"/mma/runtime.js";function Sf(t,e,o){let r=wf(o);Fg(()=>{r.current=o});let n=wf(null);return jg(s=>{s&&t.onMount?.(s),e&&(s?e.mount(s):e.unmount());let i=r.current;if(typeof i=="function")if(s){let a=i(s);typeof a=="function"&&(n.current=a)}else n.current?(n.current(),n.current=null):i(s);else i&&(i.current=s)},[e])}import{useContext as mi,useRef as qs,useInsertionEffect as Wg,useEffect as Gg}from"/mma/runtime.js";import{createContext as Ng}from"/mma/runtime.js";var hn=Ng({});function vo(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Tf(t,e,o,r,n,s){let{visualElement:i}=mi(_t),a=mi(fn),l=mi(Ot),c=mi(st),u=c.reducedMotion,f=c.skipAnimations,m=qs(null),p=qs(!1);r=r||a.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:i,props:o,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:s}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let d=m.current,g=mi(hn);d&&!d.projection&&n&&(d.type==="html"||d.type==="svg")&&Ug(m.current,o,n,g);let h=qs(!1);Wg(()=>{d&&h.current&&d.update(o,l)});let x=o[jo],y=qs(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return xt(()=>{p.current=!0,d&&(h.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),y.current&&d.animationState&&d.animationState.animateChanges())}),Gg(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),y.current=!1),d.enteringChildren=void 0)}),d}function Ug(t,e,o,r){let{layoutId:n,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:f}=e;t.projection=new o(t.latestValues,e["data-framer-portal-id"]?void 0:Vf(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!i||a&&vo(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}function Vf(t){if(t)return t.options.allowProjection!==!1?t.projection:Vf(t.parent)}function Zs(t,{forwardMotionProps:e=!1,type:o}={},r,n){r&&fi(r);let s=o?o==="svg":pn(t),i=s?vf:xf;function a(c,u){let f,m={...Vl(st),...c,layoutId:Hg(c)},{isStatic:p,isValidProp:d}=m,g=mf(c),h=i(c,p);if(!p&&typeof window<"u"){_g(m,r);let x=Xg(m);f=x.MeasureLayout,g.visualElement=Tf(t,h,m,n,x.ProjectionNode,s)}return zg(_t.Provider,{value:g,children:[f&&g.visualElement?$g(f,{visualElement:g.visualElement,...m}):null,gf(t,c,Sf(h,g.visualElement,u),h,p,e,s,d)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;let l=Kg(a);return l[dn]=t,l}function Hg({layoutId:t}){let e=Vl(qt).id;return e&&t!==void 0?e+"-"+t:t}function _g(t,e){let o=Vl(fn).strict}function Xg(t){let e=_s(),{drag:o,layout:r}=e;if(!o&&!r)return{};let n={...o,...r};return{MeasureLayout:o?.isEnabled(t)||r?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function Js(t,e){if(typeof Proxy>"u")return Zs;let o=new Map,r=(s,i)=>Zs(s,i,t,e),n=(s,i)=>r(s,i);return new Proxy(n,{get:(s,i)=>i==="create"?r:(o.has(i)||o.set(i,Zs(i,void 0,t,e)),o.get(i))})}var bl=Js();import{Fragment as Yg}from"/mma/runtime.js";var gn=(t,e)=>e.isSVG??pn(t)?new po(e):new ye(e,{allowProjection:t!==Yg});var Qs=class extends ut{constructor(e){super(e),e.animationState||(e.animationState=bs(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ge(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:o}=this.node.prevProps||{};e!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var qg=0,ta=class extends ut{constructor(){super(...arguments),this.id=qg++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&r===!1){if(this.isExitComplete){let{initial:s,custom:i}=this.node.getProps();if(typeof s=="string"||typeof s=="object"&&s!==null&&!Array.isArray(s)){let a=Et(this.node,s,i);if(a){let{transition:l,transitionEnd:c,...u}=a;for(let f in u)this.node.getValue(f)?.jump(u[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!e);o&&!e&&n.then(()=>{this.isExitComplete=!0,o(this.id)})}mount(){let{register:e,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),e&&(this.unmount=e(this.id))}unmount(){}};var wo={animation:{Feature:Qs},exit:{Feature:ta}};function ke(t){return{point:{x:t.pageX,y:t.pageY}}}var ea=t=>e=>so(e)&&t(e,ke(e));function xe(t,e,o,r){return Nt(t,e,ea(o),r)}var oa=({current:t})=>t?t.ownerDocument.defaultView:null;var ra=(t,e)=>Math.abs(t-e);function na(t,e){let o=ra(t.x,e.x),r=ra(t.y,e.y);return Math.sqrt(o**2+r**2)}var bf=new Set(["auto","scroll"]),yn=class{constructor(e,o,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ia(this.lastRawMoveEventInfo,this.transformPagePoint));let d=Al(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,h=na(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!h)return;let{point:x}=d,{timestamp:y}=F;this.history.push({...x,timestamp:y});let{onStart:v,onMove:w}=this.handlers;g||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,d)},this.handlePointerMove=(d,g)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=ia(g,this.transformPagePoint),T.update(this.updatePoint,!0)},this.handlePointerUp=(d,g)=>{this.end();let{onEnd:h,onSessionEnd:x,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=Al(d.type==="pointercancel"?this.lastMoveEventInfo:ia(g,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,v),x&&x(d,v)},!so(e))return;this.dragSnapToOrigin=s,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=n||window;let l=ke(e),c=ia(l,this.transformPagePoint),{point:u}=c,{timestamp:f}=F;this.history=[{...u,timestamp:f}];let{onSessionStart:m}=o;m&&m(e,Al(c,this.history));let p={passive:!0,capture:!0};this.removeListeners=Gt(xe(this.contextWindow,"pointermove",this.handlePointerMove,p),xe(this.contextWindow,"pointerup",this.handlePointerUp,p),xe(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(e){let o=e.parentElement;for(;o;){let r=getComputedStyle(o);(bf.has(r.overflowX)||bf.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let o=this.scrollPositions.get(e);if(!o)return;let r=e===window,n=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},s={x:n.x-o.x,y:n.y-o.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(e,n),T.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),K(this.updatePoint)}};function ia(t,e){return e?{point:e(t.point)}:t}function Af(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Al({point:t},e){return{point:t,delta:Af(t,Pf(e)),offset:Af(t,Zg(e)),velocity:Jg(e,.1)}}function Zg(t){return t[0]}function Pf(t){return t[t.length-1]}function Jg(t,e){if(t.length<2)return{x:0,y:0};let o=t.length-1,r=null,n=Pf(t);for(;o>=0&&(r=t[o],!(n.timestamp-r.timestamp>B(e)));)o--;if(!r)return{x:0,y:0};r===t[0]&&t.length>2&&n.timestamp-r.timestamp>B(e)*2&&(r=t[1]);let s=mt(n.timestamp-r.timestamp);if(s===0)return{x:0,y:0};let i={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Rf(t,{min:e,max:o},r){return e!==void 0&&t<e?t=r?M(e,t,r.min):Math.max(t,e):o!==void 0&&t>o&&(t=r?M(o,t,r.max):Math.min(t,o)),t}function Cf(t,e,o){return{min:e!==void 0?t.min+e:void 0,max:o!==void 0?t.max+o-(t.max-t.min):void 0}}function Lf(t,{top:e,left:o,bottom:r,right:n}){return{x:Cf(t.x,o,n),y:Cf(t.y,e,r)}}function Ef(t,e){let o=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([o,r]=[r,o]),{min:o,max:r}}function If(t,e){return{x:Ef(t.x,e.x),y:Ef(t.y,e.y)}}function Of(t,e){let o=.5,r=rt(t),n=rt(e);return n>r?o=Tt(e.min,e.max-r,t.min):r>n&&(o=Tt(t.min,t.max-n,e.min)),q(0,1,o)}function kf(t,e){let o={};return e.min!==void 0&&(o.min=e.min-t.min),e.max!==void 0&&(o.max=e.max-t.min),o}var sa=.35;function Bf(t=sa){return t===!1?t=0:t===!0&&(t=sa),{x:Mf(t,"left","right"),y:Mf(t,"top","bottom")}}function Mf(t,e,o){return{min:Df(t,e),max:Df(t,o)}}function Df(t,e){return typeof t=="number"?t:t[e]||0}var Qg=new WeakMap,la=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:o=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let s=f=>{o&&this.snapToCursor(ke(f).point),this.stopAnimation()},i=(f,m)=>{let{drag:p,dragPropagation:d,onDragStart:g}=this.getProps();if(p&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_i(p),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),It(x=>{let y=this.getAxisMotionValue(x).get()||0;if(wt.test(y)){let{projection:v}=this.visualElement;if(v&&v.layout){let w=v.layout.layoutBox[x];w&&(y=rt(w)*(parseFloat(y)/100))}}this.originPoint[x]=y}),g&&T.update(()=>g(f,m),!1,!0),Fo(this.visualElement,"transform");let{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;let{dragPropagation:p,dragDirectionLock:d,onDirectionLock:g,onDrag:h}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:x}=m;if(d&&this.currentDirection===null){this.currentDirection=ey(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",m.point,x),this.updateAxis("y",m.point,x),this.visualElement.render(),h&&T.update(()=>h(f,m),!1,!0)},l=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new yn(e,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:oa(this.visualElement),element:this.visualElement.current})}stop(e,o){let r=e||this.latestPointerEvent,n=o||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!r)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:a}=this.getProps();a&&T.postRender(()=>a(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:o}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,o,r){let{drag:n}=this.getProps();if(!r||!aa(e,n,this.currentDirection))return;let s=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=Rf(i,this.constraints[e],this.elastic[e])),s.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&vo(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=Lf(r.layoutBox,e):this.constraints=!1,this.elastic=Bf(o),n!==this.constraints&&!vo(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&It(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=kf(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:o}=this.getProps();if(!e||!vo(e))return!1;let r=e.current;k(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let s=vs(r,n.root,this.visualElement.getTransformPagePoint()),i=If(n.layout.layoutBox,s);if(o){let a=o(ds(i));this.hasMutatedConstraints=!!a,a&&(i=_r(a))}return i}startAnimation(e){let{drag:o,dragMomentum:r,dragElastic:n,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=It(u=>{if(!aa(u,o,this.currentDirection))return;let f=l&&l[u]||{};(i===!0||i===u)&&(f={min:0,max:0});let m=n?200:1e6,p=n?40:1e7,d={type:"inertia",velocity:r?e[u]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(u,d)});return Promise.all(c).then(a)}startAxisValueAnimation(e,o){let r=this.getAxisMotionValue(e);return Fo(this.visualElement,e),r.start(Kt(e,r,0,o,this.visualElement,!1))}stopAnimation(){It(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let o=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps()[o];return n||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){It(o=>{let{drag:r}=this.getProps();if(!aa(o,r,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(o);if(n&&n.layout){let{min:i,max:a}=n.layout.layoutBox[o],l=s.get()||0;s.set(e[o]-M(i,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!vo(o)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};It(i=>{let a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){let l=a.get();n[i]=Of({min:l,max:l},this.constraints[i])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),It(i=>{if(!aa(i,e,null))return;let a=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];a.set(M(l,c,n[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Qg.set(this.visualElement,this);let e=this.visualElement.current,o=xe(e,"pointerdown",c=>{let{drag:u,dragListener:f=!0}=this.getProps(),m=c.target,p=m!==e&&Zi(m);u&&f&&!p&&this.start(c)}),r,n=()=>{let{dragConstraints:c}=this.getProps();vo(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),r||(r=ty(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),T.read(n);let a=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(It(f=>{let m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=c[f].translate,m.set(m.get()+c[f].translate))}),this.visualElement.render())}));return()=>{a(),o(),i(),l&&l(),r&&r()}}getProps(){let e=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:i=sa,dragMomentum:a=!0}=e;return{...e,drag:o,dragDirectionLock:r,dragPropagation:n,dragConstraints:s,dragElastic:i,dragMomentum:a}}};function Ff(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ty(t,e,o){let r=No(t,Ff(o)),n=No(e,Ff(o));return()=>{r(),n()}}function aa(t,e,o){return(e===!0||e===t)&&(o===null||o===t)}function ey(t,e=10){let o=null;return Math.abs(t.y)>e?o="y":Math.abs(t.x)>e&&(o="x"),o}var ca=class extends ut{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new la(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}update(){let{dragControls:e}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};e!==o&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var Pl=t=>(e,o)=>{t&&T.update(()=>t(e,o),!1,!0)},ua=class extends ut{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new yn(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oa(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:o,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Pl(e),onStart:Pl(o),onMove:Pl(r),onEnd:(s,i)=>{delete this.session,n&&T.postRender(()=>n(s,i))}}}mount(){this.removePointerDownListener=xe(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};import{jsx as oy}from"/mma/runtime.js";import{useContext as jf,Component as ry}from"/mma/runtime.js";var Cl=!1,El=class extends ry{componentDidMount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:r,layoutId:n}=this.props,{projection:s}=e;s&&(o.group&&o.group.add(s),r&&r.register&&n&&r.register(s),Cl&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),go.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:o,visualElement:r,drag:n,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,e.layoutDependency!==o&&i.setOptions({...i.options,layoutDependency:o}),Cl=!0,n||e.layoutDependency!==o||o===void 0||e.isPresent!==s?i.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?i.promote():i.relegate()||T.postRender(()=>{let a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:o}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=o,r.root.didUpdate(),St.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:n}=e;Cl=!0,n&&(n.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function fa(t){let[e,o]=cn(),r=jf(qt);return oy(El,{...t,layoutGroup:r,switchLayoutGroup:jf(hn),isPresent:e,safeToRemove:o})}var ma={pan:{Feature:ua},drag:{Feature:ca,ProjectionNode:yo,MeasureLayout:fa}};function Nf(t,e,o){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",o==="Start");let n="onHover"+o,s=r[n];s&&T.postRender(()=>s(e,ke(e)))}var pa=class extends ut{mount(){let{current:e}=this.node;e&&(this.unmount=Yi(e,(o,r)=>(Nf(this.node,r,"Start"),n=>Nf(this.node,n,"End"))))}unmount(){}};var da=class extends ut{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=Gt(Nt(this.node.current,"focus",()=>this.onFocus()),Nt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Wf(t,e,o){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",o==="Start");let n="onTap"+(o==="End"?"":o),s=r[n];s&&T.postRender(()=>s(e,ke(e)))}var ha=class extends ut{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:o,propagate:r}=this.node.props;this.unmount=Ji(e,(n,s)=>(Wf(this.node,s,"Start"),(i,{success:a})=>Wf(this.node,i,a?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:r?.tap===!1})}unmount(){}};var Dl=new WeakMap,Ml=new WeakMap,ny=t=>{let e=Dl.get(t.target);e&&e(t)},iy=t=>{t.forEach(ny)};function sy({root:t,...e}){let o=t||document;Ml.has(o)||Ml.set(o,{});let r=Ml.get(o),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(iy,{root:t,...e})),r[n]}function Gf(t,e,o){let r=sy(e);return Dl.set(t,o),r.observe(t),()=>{Dl.delete(t),r.unobserve(t)}}var ay={some:0,all:1},ga=class extends ut{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:o,margin:r,amount:n="some",once:s}=e,i={root:o?o.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:ay[n]},a=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),m=c?u:f;m&&m(l)};this.stopObserver=Gf(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:o}=this.node;["amount","margin","root"].some(ly(e,o))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function ly({viewport:t={}},{viewport:e={}}={}){return o=>t[o]!==e[o]}var ya={inView:{Feature:ga},tap:{Feature:ha},focus:{Feature:da},hover:{Feature:pa}};var xa={layout:{ProjectionNode:yo,MeasureLayout:fa}};var Uf={...wo,...ya,...ma,...xa};var Xo=Js(Uf,gn);import{useEffect as cy}from"/mma/runtime.js";function xn(t){return cy(()=>()=>t(),[])}var va={renderer:gn,...wo,...ya};var zf={...va,...ma,...xa};var $f={renderer:gn,...wo};import{useInsertionEffect as uy}from"/mma/runtime.js";function wa(t,e,o){uy(()=>t.on(e,o),[t,e,o])}import{useRef as lm,useCallback as Ty,useEffect as Vy}from"/mma/runtime.js";function vn(t){return typeof window>"u"?!1:t?Vr():Ze()}var fy=50,Kf=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),_f=()=>({time:0,x:Kf(),y:Kf()}),my={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Hf(t,e,o,r){let n=o[e],{length:s,position:i}=my[e],a=n.current,l=o.time;n.current=Math.abs(t[`scroll${i}`]),n.scrollLength=t[`scroll${s}`]-t[`client${s}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Tt(0,n.scrollLength,n.current);let c=r-l;n.velocity=c>fy?0:We(n.current-a,c)}function Xf(t,e,o){Hf(t,"x",e,o),Hf(t,"y",e,o),e.time=o}function Yf(t,e){let o={x:0,y:0},r=t;for(;r&&r!==e;)if(Ht(r))o.x+=r.offsetLeft,o.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){let n=r.getBoundingClientRect();r=r.parentElement;let s=r.getBoundingClientRect();o.x+=n.left-s.left,o.y+=n.top-s.top}else if(r instanceof SVGGraphicsElement){let{x:n,y:s}=r.getBBox();o.x+=n,o.y+=s;let i=null,a=r.parentNode;for(;!i;)a.tagName==="svg"&&(i=a),a=r.parentNode;r=i}else break;return o}var Sa={start:0,center:.5,end:1};function Rl(t,e,o=0){let r=0;if(t in Sa&&(t=Sa[t]),typeof t=="string"){let n=parseFloat(t);t.endsWith("px")?r=n:t.endsWith("%")?t=n/100:t.endsWith("vw")?r=n/100*document.documentElement.clientWidth:t.endsWith("vh")?r=n/100*document.documentElement.clientHeight:t=n}return typeof t=="number"&&(r=e*t),o+r}var py=[0,0];function qf(t,e,o,r){let n=Array.isArray(t)?t:py,s=0,i=0;return typeof t=="number"?n=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?n=t.split(" "):n=[t,Sa[t]?t:"0"]),s=Rl(n[0],o,r),i=Rl(n[1],e),s-i}var Yo={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]};var dy={x:0,y:0};function hy(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Zf(t,e,o){let{offset:r=Yo.All}=o,{target:n=t,axis:s="y"}=o,i=s==="y"?"height":"width",a=n!==t?Yf(n,t):dy,l=n===t?{width:t.scrollWidth,height:t.scrollHeight}:hy(n),c={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let u=!e[s].interpolate,f=r.length;for(let m=0;m<f;m++){let p=qf(r[m],c[i],l[i],a[s]);!u&&p!==e[s].interpolatorOffsets[m]&&(u=!0),e[s].offset[m]=p}u&&(e[s].interpolate=Xe(e[s].offset,Ye(r),{clamp:!1}),e[s].interpolatorOffsets=[...e[s].offset]),e[s].progress=q(0,1,e[s].interpolate(e[s].current))}function gy(t,e=t,o){if(o.x.targetOffset=0,o.y.targetOffset=0,e!==t){let r=e;for(;r&&r!==t;)o.x.targetOffset+=r.offsetLeft,o.y.targetOffset+=r.offsetTop,r=r.offsetParent}o.x.targetLength=e===t?e.scrollWidth:e.clientWidth,o.y.targetLength=e===t?e.scrollHeight:e.clientHeight,o.x.containerLength=t.clientWidth,o.y.containerLength=t.clientHeight}function Jf(t,e,o,r={}){return{measure:n=>{gy(t,r.target,o),Xf(t,o,n),(r.offset||r.target)&&Zf(t,o,r)},notify:()=>e(o)}}var wn=new WeakMap,Qf=new WeakMap,Ll=new WeakMap,tm=new WeakMap,Ta=new WeakMap,em=t=>t===document.scrollingElement?window:t;function Sn(t,{container:e=document.scrollingElement,trackContentSize:o=!1,...r}={}){if(!e)return N;let n=Ll.get(e);n||(n=new Set,Ll.set(e,n));let s=_f(),i=Jf(e,t,s,r);if(n.add(i),!wn.has(e)){let l=()=>{for(let m of n)m.measure(F.timestamp);T.preUpdate(c)},c=()=>{for(let m of n)m.notify()},u=()=>T.read(l);wn.set(e,u);let f=em(e);window.addEventListener("resize",u),e!==document.documentElement&&Qf.set(e,No(e,u)),f.addEventListener("scroll",u),u()}if(o&&!Ta.has(e)){let l=wn.get(e),c={width:e.scrollWidth,height:e.scrollHeight};tm.set(e,c);let u=()=>{let m=e.scrollWidth,p=e.scrollHeight;(c.width!==m||c.height!==p)&&(l(),c.width=m,c.height=p)},f=T.read(u,!0);Ta.set(e,f)}let a=wn.get(e);return T.read(a,!1,!0),()=>{K(a);let l=Ll.get(e);if(!l||(l.delete(i),l.size))return;let c=wn.get(e);wn.delete(e),c&&(em(e).removeEventListener("scroll",c),Qf.get(e)?.(),window.removeEventListener("resize",c));let u=Ta.get(e);u&&(K(u),Ta.delete(e)),tm.delete(e)}}var yy=[[Yo.Enter,"entry"],[Yo.Exit,"exit"],[Yo.Any,"cover"],[Yo.All,"contain"]],om={start:0,end:1};function xy(t){let e=t.trim().split(/\s+/);if(e.length!==2)return;let o=om[e[0]],r=om[e[1]];if(!(o===void 0||r===void 0))return[o,r]}function vy(t){if(t.length!==2)return;let e=[];for(let o of t)if(Array.isArray(o))e.push(o);else if(typeof o=="string"){let r=xy(o);if(!r)return;e.push(r)}else return;return e}function wy(t,e){let o=vy(t);if(!o)return!1;for(let r=0;r<2;r++){let n=o[r],s=e[r];if(n[0]!==s[0]||n[1]!==s[1])return!1}return!0}function Tn(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[e,o]of yy)if(wy(t,e))return{rangeStart:`${o} 0%`,rangeEnd:`${o} 100%`}}var rm=new Map;function nm(t){let e={value:0},o=Sn(r=>{e.value=r[t.axis].progress*100},t);return{currentTime:e,cancel:o}}function Va({source:t,container:e,...o}){let{axis:r}=o;t&&(e=t);let n=rm.get(e);n||(n=new Map,rm.set(e,n));let s=o.target??"self",i=n.get(s);i||(i={},n.set(s,i));let a=r+(o.offset??[]).join(",");return i[a]||(o.target&&vn(o.target)?Tn(o.offset)?i[a]=new ViewTimeline({subject:o.target,axis:r}):i[a]=nm({container:e,...o}):vn()?i[a]=new ScrollTimeline({source:e,axis:r}):i[a]=nm({container:e,...o})),i[a]}function im(t,e){let o=Va(e),r=e.target?Tn(e.offset):void 0,n=e.target?vn(e.target)&&!!r:vn();return t.attachTimeline({timeline:n?o:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:s=>(s.pause(),Wr(i=>{s.time=s.iterationDuration*i},o))})}function sm(t){return t&&(t.target||t.offset)}function Sy(t){return t.length===2}function am(t,e){return Sy(t)||sm(e)?Sn(o=>{t(o[e.axis].progress,o)},e):Wr(t,Va(e))}function pi(t,{axis:e="y",container:o=document.scrollingElement,...r}={}){if(!o)return N;let n={axis:e,container:o,...r};return typeof t=="function"?am(t,n):im(t,n)}var by=()=>({scrollX:H(0),scrollY:H(0),scrollXProgress:H(0),scrollYProgress:H(0)}),Vn=t=>t?!t.current:!1;function cm(t,e,o,r){return{factory:n=>{let s,i=()=>{if(Vn(o)||Vn(r)){St.read(i);return}s=pi(n,{...e,axis:t,container:o?.current||void 0,target:r?.current||void 0})};return St.read(i),()=>{Hn(i),s?.()}},times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function Ay(t,e){return typeof window>"u"?!1:t?Vr()&&!!Tn(e):Ze()}function bn({container:t,target:e,...o}={}){let r=O(by);Ay(e,o.offset)&&(r.scrollXProgress.accelerate=cm("x",o,t,e),r.scrollYProgress.accelerate=cm("y",o,t,e));let n=lm(null),s=lm(!1),i=Ty(()=>(n.current=pi((a,{x:l,y:c})=>{r.scrollX.set(l.current),r.scrollXProgress.set(l.progress),r.scrollY.set(c.current),r.scrollYProgress.set(c.progress)},{...o,container:t?.current||void 0,target:e?.current||void 0}),()=>{n.current?.()}),[t,e,JSON.stringify(o.offset)]);return xt(()=>{if(s.current=!1,Vn(t)||Vn(e)){s.current=!0;return}else return i()},[i]),Vy(()=>{if(!s.current)return;let a,l=()=>{let c=Vn(t),u=Vn(e);k(!c,"Container ref is defined but not hydrated","use-scroll-ref"),k(!u,"Target ref is defined but not hydrated","use-scroll-ref"),!c&&!u&&(a=i())};return St.read(l),()=>{Hn(l),a?.()}},[i]),r}function um(t){return bn({container:t})}function fm(){return bn()}import{useContext as Py,useState as Cy,useEffect as Ey}from"/mma/runtime.js";function At(t){let e=O(()=>H(t)),{isStatic:o}=Py(st);if(o){let[,r]=Cy(t);Ey(()=>e.on("change",r),[])}return e}function An(t,e){let o=At(e()),r=()=>o.set(e());return r(),xt(()=>{let n=()=>T.preRender(r,!1,!0),s=t.map(i=>i.on("change",n));return()=>{s.forEach(i=>i()),K(r)}}),o}function mm(t,...e){let o=t.length;function r(){let n="";for(let s=0;s<o;s++){n+=t[s];let i=e[s];i&&(n+=D(i)?i.get():i)}return n}return An(e.filter(D),r)}import{useContext as Dy,useInsertionEffect as Ry}from"/mma/runtime.js";function pm(t){Jt.current=[],t();let e=An(Jt.current,t);return Jt.current=void 0,e}function ve(t,e,o,r){if(typeof t=="function")return pm(t);if(o!==void 0&&!Array.isArray(o)&&typeof e!="function")return My(t,e,o,r);let i=typeof e=="function"?e:Ur(e,o,r),a=Array.isArray(t)?dm(t,i):dm([t],([c])=>i(c)),l=Array.isArray(t)?void 0:t.accelerate;return l&&!l.isTransformed&&typeof e!="function"&&Array.isArray(o)&&r?.clamp!==!1&&(a.accelerate={...l,times:e,keyframes:o,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function dm(t,e){let o=O(()=>[]);return An(t,()=>{o.length=0;let r=t.length;for(let n=0;n<r;n++)o[n]=t[n].get();return e(o)})}function My(t,e,o,r){let n=O(()=>Object.keys(o)),s=O(()=>({}));for(let i of n)s[i]=ve(t,e,o[i],r);return s}function ba(t,e={}){let{isStatic:o}=Dy(st),r=()=>D(t)?t.get():t;if(o)return ve(r);let n=At(r());return Ry(()=>Wo(n,t,e),[n,JSON.stringify(e)]),n}function hm(t,e={}){return ba(t,{type:"spring",...e})}import{useRef as Ly,useContext as Iy,useEffect as Oy}from"/mma/runtime.js";function Aa(t){let e=Ly(0),{isStatic:o}=Iy(st);Oy(()=>{if(o)return;let r=({timestamp:n,delta:s})=>{e.current||(e.current=n),t(n-e.current,s)};return T.update(r,!0),()=>K(r)},[t])}function gm(){let t=At(0);return Aa(e=>t.set(e)),t}function ym(t){let e=At(t.getVelocity()),o=()=>{let r=t.getVelocity();e.set(r),r&&T.update(o)};return wa(t,"change",()=>{T.update(o,!1,!0)}),e}var Pn=class extends Bt{constructor(){super(...arguments),this.isEnabled=!1}add(e){(lt.has(e)||to.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}};function xm(){return O(()=>new Pn("auto"))}import{useState as ky}from"/mma/runtime.js";function Pa(){!lo.current&&Kr();let[t]=ky(Le.current);return t}import{useContext as By}from"/mma/runtime.js";function Ca(){let t=Pa(),{reducedMotion:e}=By(st);return e==="never"?!1:e==="always"?!0:t}function Fy(t){t.values.forEach(e=>e.stop())}function Il(t,e){[...e].reverse().forEach(r=>{let n=t.getVariant(r);n&&Bo(t,n),t.variantChildren&&t.variantChildren.forEach(s=>{Il(s,e)})})}function jy(t,e){if(Array.isArray(e))return Il(t,e);if(typeof e=="string")return Il(t,[e]);Bo(t,e)}function Ea(){let t=!1,e=new Set,o={subscribe(r){return e.add(r),()=>{e.delete(r)}},start(r,n){k(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let s=[];return e.forEach(i=>{s.push(Pe(i,r,{transitionOverride:n}))}),Promise.all(s)},set(r){return k(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(n=>{jy(n,r)})},stop(){e.forEach(r=>{Fy(r)})},mount(){return t=!0,()=>{t=!1,o.stop()}}};return o}import{useContext as _y,useMemo as Xy}from"/mma/runtime.js";function di(t){return typeof t=="object"&&!Array.isArray(t)}function Ma(t,e,o,r){return t==null?[]:typeof t=="string"&&di(e)?ct(t,o,r):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(n=>n!=null):[t]}function vm(t,e,o){return t*(e+1)+o*e}function Ol(t,e,o,r){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?o:e.startsWith("<")?Math.max(0,o+parseFloat(e.slice(1))):r.get(e)??t}function Ny(t,e,o){for(let r=0;r<t.length;r++){let n=t[r];n.at>e&&n.at<o&&(vt(t,n),r--)}}function wm(t,e,o,r,n,s){Ny(t,n,s);for(let i=0;i<e.length;i++)t.push({value:e[i],at:M(n,s,r[i]),easing:ar(o,i)})}function Sm(t,e,o=0){let r=e+1+e*o;for(let n=0;n<t.length;n++)t[n]=t[n]/r}function Tm(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var Wy="easeInOut",kl=20;function Am(t,{defaultTransition:e={},...o}={},r,n){let s=e.duration||.3,i=new Map,a=new Map,l={},c=new Map,u=0,f=0,m=0;for(let p=0;p<t.length;p++){let d=t[p];if(typeof d=="string"){c.set(d,f);continue}else if(!Array.isArray(d)){c.set(d.name,Ol(f,d.at,u,c));continue}let[g,h,x={}]=d;x.at!==void 0&&(f=Ol(f,x.at,u,c));let y=0,v=(w,A,E,S=0,b=0)=>{let C=Gy(w),{delay:W=0,times:G=Ye(C),type:ot=e.type||"keyframes",repeat:J,repeatType:re,repeatDelay:at=0,...L}=A,{ease:R=e.ease||"easeOut",duration:P}=A,I=typeof W=="function"?W(S,b):W,X=C.length,U=Qe(ot)?ot:n?.[ot||"keyframes"];if(X<=2&&U){let j=100;if(X===2&&$y(C)){let dt=C[1]-C[0];j=Math.abs(dt)}let yt={...e,...L};P!==void 0&&(yt.duration=B(P));let Q=gr(yt,j,U);R=Q.ease,P=Q.duration}P??(P=s);let z=f+I;G.length===1&&G[0]===0&&(G[1]=1);let $=G.length-C.length;if($>0&&yr(G,$),C.length===1&&C.unshift(null),J&&Pt(J<kl,`Sequence segments can't repeat ${J} times \u2014 ignoring repeat option. Use a value below ${kl} or apply repeat at the sequence level instead.`),J&&J<kl){let j=P>0?at/P:0;P=vm(P,J,at);let yt=[...C],Q=[...G];R=Array.isArray(R)?[...R]:[R];let dt=[...R],Wt=re==="reverse"||re==="mirror",Fe=yt,Xt=dt;Wt&&(Fe=[...yt].reverse(),re==="reverse"&&(Xt=[...dt].reverse().map(ht=>typeof ht=="function"?Ge(ht):ht)));for(let ht=0;ht<J;ht++){let ft=Wt&&ht%2===0,we=ft?Fe:yt,tt=ft?Xt:dt,Yt=(ht+1)*(1+j);j>0&&(C.push(C[C.length-1]),G.push(Yt),R.push("linear")),C.push(...we);for(let So=0;So<we.length;So++)G.push(Q[So]+Yt),R.push(So===0?"linear":ar(tt,So-1))}Sm(G,J,j)}let gt=z+P;wm(E,C,R,G,z,gt),y=Math.max(I+P,y),m=Math.max(gt,m)};if(D(g)){let w=Vm(g,a);v(h,x,bm("default",w))}else{let w=Ma(g,h,r,l),A=w.length;for(let E=0;E<A;E++){h=h,x=x;let S=w[E],b=Vm(S,a);for(let C in h)v(h[C],Uy(x,C),bm(C,b),E,A)}}u=f,f+=y}return a.forEach((p,d)=>{for(let g in p){let h=p[g];h.sort(Tm);let x=[],y=[],v=[];for(let S=0;S<h.length;S++){let{at:b,value:C,easing:W}=h[S];x.push(C),y.push(Tt(0,m,b)),v.push(W||"easeOut")}y[0]!==0&&(y.unshift(0),x.unshift(x[0]),v.unshift(Wy)),y[y.length-1]!==1&&(y.push(1),x.push(null)),i.has(d)||i.set(d,{keyframes:{},transition:{}});let w=i.get(d);w.keyframes[g]=x;let{type:A,...E}=e;w.transition[g]={...E,duration:m,ease:v,times:y,...o}}}),i}function Vm(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function bm(t,e){return e[t]||(e[t]=[]),e[t]}function Gy(t){return Array.isArray(t)?t:[t]}function Uy(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var zy=t=>typeof t=="number",$y=t=>t.every(zy);function Pm(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},o=he(t)&&!Gr(t)?new po(e):new ye(e);o.mount(t),Ft.set(t,o)}function Cm(t){let e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},o=new Zr(e);o.mount(t),Ft.set(t,o)}function Ky(t,e){return D(t)||typeof t=="number"||typeof t=="string"&&!di(e)}function Da(t,e,o,r){let n=[];if(Ky(t,e))n.push(rn(t,di(e)&&e.default||e,o&&(o.default||o)));else{if(t==null)return n;let s=Ma(t,e,r),i=s.length;k(!!i,"No valid elements provided.","no-valid-elements");for(let a=0;a<i;a++){let l=s[a],c={...o};"delay"in c&&typeof c.delay=="function"&&(c.delay=c.delay(a,i));let u=l instanceof Element,f=u?void 0:Ki(l);if(f){n.push(...Hi(f,l,e,c));continue}let m=u?Pm:Cm;Ft.has(l)||m(l);let p=Ft.get(l);n.push(...io(p,{...e,transition:c},{}))}}return n}function Em(t,e,o){let r=[],n=t.map(i=>{if(Array.isArray(i)&&typeof i[0]=="function"){let a=i[0],l=H(0);return l.on("change",a),i.length===1?[l,[0,1]]:i.length===2?[l,[0,1],i[1]]:[l,i[1],i[2]]}return i});return Am(n,e,o,{spring:ce}).forEach(({keyframes:i,transition:a},l)=>{r.push(...Da(l,i,a))}),r}function Hy(t){return Array.isArray(t)&&t.some(Array.isArray)}function hi(t={}){let{scope:e,reduceMotion:o,skipAnimations:r}=t;function n(s,i,a){let l=[],c,u={};if(o!==void 0&&(u.reduceMotion=o),r!==void 0&&(u.skipAnimations=r),Hy(s)){let{onComplete:m,...p}=i||{};typeof m=="function"&&(c=m),l=Em(s,{...u,...p},e)}else{let{onComplete:m,...p}=a||{};typeof m=="function"&&(c=m),l=Da(s,i,{...u,...p},e)}let f=new eo(l);return c&&f.finished.then(c),e&&(e.animations.push(f),f.finished.then(()=>{vt(e.animations,f)})),f}return n}var Mm=Object.assign(hi(),{addEffect:$i,removeEffect:Kn});function Dm(){let t=O(()=>({current:null,animations:[]})),e=Ca()??void 0,{skipAnimations:o}=_y(st),r=Xy(()=>hi({scope:t,reduceMotion:e,skipAnimations:o}),[t,e,o]);return xn(()=>{t.animations.forEach(n=>n.stop()),t.animations.length=0}),[t,r]}function Rm(t,e,o,r){if(t==null)return[];let n=ct(t,r),s=n.length;k(!!s,"No valid elements provided.","no-valid-elements");let i=[];for(let l=0;l<s;l++){let c=n[l],u={...o};typeof u.delay=="function"&&(u.delay=u.delay(l,s));for(let f in e){let m=e[f];Array.isArray(m)||(m=[m]);let p={...pt(u,f)};p.duration&&(p.duration=B(p.duration)),p.delay&&(p.delay=B(p.delay));let d=ji(c),g=Fi(f,p.pseudoElement||""),h=d.get(g);h&&h.stop(),i.push({map:d,key:g,unresolvedKeyframes:m,options:{...p,element:c,name:f,allowFlatten:!u.type&&!u.ease}})}}for(let l=0;l<i.length;l++){let{unresolvedKeyframes:c,options:u}=i[l],{element:f,name:m,pseudoElement:p}=u;!p&&c[0]===null&&(c[0]=Xn(f,m)),xr(c),zi(c,m),!p&&c.length<2&&c.unshift(Xn(f,m)),u.keyframes=c}let a=[];for(let l=0;l<i.length;l++){let{map:c,key:u,options:f}=i[l],m=new bt(f);c.set(u,m),m.finished.finally(()=>c.delete(u)),a.push(m)}return a}var Bl=t=>{function e(o,r,n){return new eo(Rm(o,r,n,t))}return e},Lm=Bl();function Im(){let t=O(()=>({current:null,animations:[]})),e=O(()=>Bl(t));return xn(()=>{t.animations.forEach(o=>o.stop())}),[t,e]}function Fl(){let t=O(Ea);return xt(t.mount,[]),t}var Om=Fl;import{useContext as Yy}from"/mma/runtime.js";function km(){let t=Yy(Ot);return t?t.custom:void 0}import{useEffect as qy}from"/mma/runtime.js";function Bm(t,e,o,r){qy(()=>{let n=t.current;if(o&&n)return Nt(n,e,o,r)},[t,e,o,r])}var gi=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,o){this.componentControls.forEach(r=>{r.start(e.nativeEvent||e,o)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Zy=()=>new gi;function Fm(){return O(Zy)}function Ra(t){return t!==null&&typeof t=="object"&&dn in t}function jm(t){if(Ra(t))return t[dn]}function La(){return Jy}function Jy(t){oe.current&&(oe.current.isUpdating=!1,oe.current.blockUpdate(),t&&t())}import{useCallback as Qy}from"/mma/runtime.js";function Nm(){return Qy(()=>{let e=oe.current;e&&e.resetTree()},[])}import{useRef as tx,useState as ex,useCallback as ox}from"/mma/runtime.js";function Wm(...t){let e=tx(0),[o,r]=ex(t[e.current]),n=ox(s=>{e.current=typeof s!="number"?Se(0,t.length,e.current+1):s,r(t[e.current])},[t.length,...t]);return[o,n]}import{useState as nx,useEffect as ix}from"/mma/runtime.js";var rx={some:0,all:1};function Ia(t,e,{root:o,margin:r,amount:n="some"}={}){let s=ct(t),i=new WeakMap,a=c=>{c.forEach(u=>{let f=i.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){let m=e(u.target,u);typeof m=="function"?i.set(u.target,m):l.unobserve(u.target)}else typeof f=="function"&&(f(u),i.delete(u.target))})},l=new IntersectionObserver(a,{root:o,rootMargin:r,threshold:typeof n=="number"?n:rx[n]});return s.forEach(c=>l.observe(c)),()=>l.disconnect()}function Gm(t,{root:e,margin:o,amount:r,once:n=!1,initial:s=!1}={}){let[i,a]=nx(s);return ix(()=>{if(!t.current||n&&i)return;let l=()=>(a(!0),n?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:o,amount:r};return Ia(t.current,l,c)},[e,t,o,n,r]),i}import{useRef as sx,useEffect as ax}from"/mma/runtime.js";function Um(){let[t,e]=un(),o=La(),r=sx(-1);return ax(()=>{T.postRender(()=>T.postRender(()=>{e===r.current&&(nt.instantAnimations=!1)}))},[e]),n=>{o(()=>{nt.instantAnimations=!0,t(),n(),r.current=e+1})}}function zm(){nt.instantAnimations=!1}import{useState as lx,useEffect as cx}from"/mma/runtime.js";function $m(){let[t,e]=lx(!0);return cx(()=>{let o=()=>e(!document.hidden);return document.hidden&&o(),document.addEventListener("visibilitychange",o),()=>{document.removeEventListener("visibilitychange",o)}},[]),t}function Km(t){return e=>{let o=t.current;if(!o)return e;let r=o.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return e;let n=o.getBoundingClientRect();if(n.width===0||n.height===0)return e;let s=r.width/n.width,i=r.height/n.height,a=n.left+window.scrollX,l=n.top+window.scrollY;return{x:(e.x-a)*s+a,y:(e.y-l)*i+l}}}function Hm(t){return e=>{let o=t.current;if(!o)return e;let r=ux(o);if(!r)return e;let n=o.getBoundingClientRect(),s=n.left+window.scrollX+n.width/2,i=n.top+window.scrollY+n.height/2,a=e.x-s,l=e.y-i;return{x:s+r.a*a+r.c*l,y:i+r.b*a+r.d*l}}}function ux(t){let{transform:e}=getComputedStyle(t);if(!e||e==="none")return null;let o=e.match(/^matrix3d\((.*)\)$/u)||e.match(/^matrix\((.*)\)$/u);if(!o)return null;let r=o[1].split(",").map(Number),n=e.startsWith("matrix3d"),s=r[0],i=r[1],a=n?r[4]:r[2],l=n?r[5]:r[3],c=s*l-i*a;return Math.abs(c)<1e-10?null:{a:l/c,b:-i/c,c:-a/c,d:s/c}}var Be=new Map,Cn=new Map;var En=(t,e)=>{let o=lt.has(e)?"transform":e;return`${t}: ${o}`};function jl(t,e,o){let r=En(t,e),n=Be.get(r);if(!n)return null;let{animation:s,startTime:i}=n;function a(){window.MotionCancelOptimisedAnimation?.(t,e,o)}return s.onfinish=a,i===null||window.MotionHandoffIsComplete?.(t)?(a(),null):i}var Oa,Mn,Nl=new Set;function fx(){Nl.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),Nl.clear()}function _m(t,e,o,r,n){if(window.MotionIsMounted)return;let s=t.dataset[Wn];if(!s)return;window.MotionHandoffAnimation=jl;let i=En(s,e);Mn||(Mn=Ro(t,e,[o[0],o[0]],{duration:1e4,ease:"linear"}),Be.set(i,{animation:Mn,startTime:null}),window.MotionHandoffAnimation=jl,window.MotionHasOptimisedAnimation=(l,c)=>{if(!l)return!1;if(!c)return Cn.has(l);let u=En(l,c);return!!Be.get(u)},window.MotionHandoffMarkAsComplete=l=>{Cn.has(l)&&Cn.set(l,!0)},window.MotionHandoffIsComplete=l=>Cn.get(l)===!0,window.MotionCancelOptimisedAnimation=(l,c,u,f)=>{let m=En(l,c),p=Be.get(m);p&&(u&&f===void 0?u.postRender(()=>{u.postRender(()=>{p.animation.cancel()})}):p.animation.cancel(),u&&f?(Nl.add(p),u.render(fx)):(Be.delete(m),Be.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(l,c,u)=>{let f=no(l);if(!f)return;let m=window.MotionHasOptimisedAnimation?.(f,c),p=l.props.values?.[c];if(!m||!p)return;let d=u.on("change",g=>{p.get()!==g&&(window.MotionCancelOptimisedAnimation?.(f,c),d())});return d});let a=()=>{Mn.cancel();let l=Ro(t,e,o,r);Oa===void 0&&(Oa=performance.now()),l.startTime=Oa,Be.set(i,{animation:l,startTime:Oa}),n&&n(l)};Cn.set(s,!1),Mn.ready?Mn.ready.then(a).catch(N):a()}import{useState as mx,useLayoutEffect as px}from"/mma/runtime.js";var Wl=()=>({}),Gl=class extends ee{constructor(){super(...arguments),this.measureInstanceViewportBox=_}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Wl()}getBaseTargetFromProps(){}readValueFromInstance(e,o,r){return r.initialState[o]||0}sortInstanceNodePosition(){return 0}},dx=xo({scrapeMotionValuesFromProps:Wl,createRenderState:Wl});function Xm(t){let[e,o]=mx(t),r=dx({},!1),n=O(()=>new Gl({props:{onUpdate:i=>{o({...i})}},visualState:r,presenceContext:null},{initialState:t}));px(()=>(n.mount({}),()=>n.unmount()),[n]);let s=O(()=>i=>Pe(n,i));return[e,s]}import{jsx as hx}from"/mma/runtime.js";import*as Ym from"/mma/runtime.js";var gx=0,qm=({children:t})=>(Ym.useEffect(()=>{k(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),hx(Hs,{id:O(()=>`asl-${gx++}`),children:t}));import{useContext as yx}from"/mma/runtime.js";var xx=1e5,Zm=t=>t>.001?1/t:xx,Jm=!1;function Qm(t){let e=At(1),o=At(1),{visualElement:r}=yx(_t);k(!!(t||r),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),Pt(Jm,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Jm=!0,t?(e=t.scaleX||e,o=t.scaleY||o):r&&(e=r.getValue("scaleX",1),o=r.getValue("scaleY",1));let n=ve(e,Zm),s=ve(o,Zm);return{scaleX:n,scaleY:s}}var $l={};_l($l,{Group:()=>sp,Item:()=>up});import{jsx as ip}from"/mma/runtime.js";import{forwardRef as Tx,useRef as Ul,useState as Vx,useEffect as bx}from"/mma/runtime.js";import{createContext as vx}from"/mma/runtime.js";var ka=vx(null);function op(t,e,o,r,n,s="ltr"){let i=t.findIndex(p=>p.value===e);if(i===-1)return t;if(n==="xy"){let{layout:p}=t[i],d={x:M(p.x.min,p.x.max,.5)+o.x,y:M(p.y.min,p.y.max,.5)+o.y},g=wx(t),h=g.find(A=>A.items.includes(t[i])),x=g.reduce((A,E)=>tp(d.y,E)<tp(d.y,A)?E:A);if(x!==h)return Sx(t,i,d.x,x,s);let y=ep(d,p),v=-1,w=y;return t.forEach((A,E)=>{if(E===i)return;let S=ep(d,A.layout);S<w&&(v=E,w=S)}),v===-1?t:Dn(t,i,i+Math.sign(v-i))}if(!r[n])return t;let a=r[n]>0?1:-1,l=t[i+a];if(!l)return t;let u=t[i].layout[n],f=l.layout[n],m=M(f.min,f.max,.5);return a===1&&u.max+o[n]>m||a===-1&&u.min+o[n]<m?Dn(t,i,i+a):t}function wx(t){let e=[];return t.forEach(o=>{let{min:r,max:n}=o.layout.y,s=e[e.length-1];!s||r>=s.max||n<=s.min?e.push({items:[o],min:r,max:n}):(s.items.push(o),s.min=Math.min(s.min,r),s.max=Math.max(s.max,n))}),e}function tp(t,e){return t<e.min?e.min-t:t>e.max?t-e.max:0}function Sx(t,e,o,r,n){let s=t.filter((c,u)=>u!==e),i=r.items.find(c=>{let u=M(c.layout.x.min,c.layout.x.max,.5);return n==="ltr"?o<u:o>u}),a=i?s.indexOf(i):s.indexOf(r.items[r.items.length-1])+1,l=[...s];return l.splice(a,0,t[e]),l.every((c,u)=>c===t[u])?t:l}function ep(t,e){let o=Math.max(e.x.min-t.x,0,t.x-e.x.max),r=Math.max(e.y.min-t.y,0,t.y-e.y.max);return o*o+r*r}var rp=(t,e)=>t.max<=e.min||e.max<=t.min;function np(t){let e=!1,o=!1;for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++)if(e||(e=rp(t[r].x,t[n].x)),o||(o=rp(t[r].y,t[n].y)),e&&o)return"xy";return e?"x":"y"}function Ax({children:t,as:e="ul",axis:o,onReorder:r,values:n,...s},i){let a=O(()=>Xo[e]),l=Ul(new Map),[c,u]=Vx("y"),f=Ul(!1),m=Ul(null),p=o||c;k(!!n,"Reorder.Group must be provided a values prop","reorder-values");let d=new Set(n);l.current.forEach((y,v)=>{d.has(v)||l.current.delete(v)});let g={axis:p,groupRef:m,registerItem:(y,v)=>{if(l.current.set(y,v),!o){let w=np(n.flatMap(A=>{let E=l.current.get(A);return E?[E]:[]}));w!==c&&u(w)}},updateOrder:(y,v,w)=>{if(f.current)return;let A=n.flatMap(b=>{let C=l.current.get(b);return C?[{value:b,layout:C}]:[]}),E=m.current?.ownerDocument.defaultView?.getComputedStyle(m.current).direction==="rtl"?"rtl":"ltr",S=op(A,y,v,w,p,E);if(A!==S){f.current=!0;let b=[...n],C=A.map(({value:W})=>n.indexOf(W));S.forEach(({value:W},G)=>{b[C[G]]=W}),r(b)}}};bx(()=>{f.current=!1});let h=y=>{m.current=y,typeof i=="function"?i(y):i&&(i.current=y)},x={overflowAnchor:"none",...s.style};return ip(a,{...s,style:x,ref:h,ignoreStrict:!0,children:ip(ka.Provider,{value:g,children:t})})}var sp=Tx(Ax);import{jsx as Mx}from"/mma/runtime.js";import{forwardRef as Dx,useContext as Rx}from"/mma/runtime.js";var Px=new Set(["auto","scroll"]),xi=new WeakMap,vi=new WeakMap,yi=null;function ap(){if(yi){let t=zl(yi,"y");t&&(vi.delete(t),xi.delete(t));let e=zl(yi,"x");e&&e!==t&&(vi.delete(e),xi.delete(e)),yi=null}}function Cx(t,e){let o=getComputedStyle(t),r=e==="x"?o.overflowX:o.overflowY,n=t===document.body||t===document.documentElement;return Px.has(r)||n}function zl(t,e){let o=t?.parentElement;for(;o;){if(Cx(o,e))return o;o=o.parentElement}return null}function Ex(t,e,o){let r=e.getBoundingClientRect(),n=o==="x"?Math.max(0,r.left):Math.max(0,r.top),s=o==="x"?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),i=t-n,a=s-t;if(i<50){let l=1-i/50;return{amount:-25*l*l,edge:"start"}}else if(a<50){let l=1-a/50;return{amount:25*l*l,edge:"end"}}return{amount:0,edge:null}}function lp(t,e,o,r){if(!t)return;yi=t;let n=zl(t,o);if(!n)return;let s=e-(o==="x"?window.scrollX:window.scrollY),{amount:i,edge:a}=Ex(s,n,o);if(a===null){vi.delete(n),xi.delete(n);return}let l=vi.get(n),c=n===document.body||n===document.documentElement;if(l!==a){if(!(a==="start"&&r<0||a==="end"&&r>0))return;vi.set(n,a);let f=o==="x"?n.scrollWidth-(c?window.innerWidth:n.clientWidth):n.scrollHeight-(c?window.innerHeight:n.clientHeight);xi.set(n,f)}if(i>0){let u=xi.get(n);if((o==="x"?c?window.scrollX:n.scrollLeft:c?window.scrollY:n.scrollTop)>=u)return}o==="x"?c?window.scrollBy({left:i}):n.scrollLeft+=i:c?window.scrollBy({top:i}):n.scrollTop+=i}function cp(t,e=0){return D(t)?t:At(e)}function Lx({children:t,style:e={},value:o,as:r="li",onDrag:n,onDragEnd:s,layout:i=!0,...a},l){let c=O(()=>Xo[r]),u=Rx(ka),f={x:cp(e.x),y:cp(e.y)},m=ve([f.x,f.y],([y,v])=>y||v?1:"unset");k(!!u,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");let{axis:p,registerItem:d,updateOrder:g,groupRef:h}=u;return Mx(c,{drag:p==="xy"?!0:p,...a,dragSnapToOrigin:!0,style:{...e,x:f.x,y:f.y,zIndex:m},layout:i,onDrag:(y,v)=>{let{velocity:w,point:A}=v,E={x:f.x.get(),y:f.y.get()};g(o,E,w);let S=p==="xy"?Math.abs(w.x)>Math.abs(w.y)?"x":"y":p;lp(h.current,A[S],S,w[S]),n&&n(y,v)},onDragEnd:(y,v)=>{ap(),s&&s(y,v)},onLayoutMeasure:y=>{d(o,y)},ref:l,ignoreStrict:!0,children:t})}var up=Dx(Lx);var Ox=Xo,kx=bl;var pK=Kl;export{tf as AnimatePresence,qm as AnimateSharedLayout,Ar as AsyncMotionValueAnimation,Lr as DOMKeyframesResolver,co as DOMVisualElement,Ks as DeprecatedLayoutGroupContext,js as DocumentProjectionNode,gi as DragControls,ut as Feature,nn as FlatTree,$t as GroupAnimation,eo as GroupAnimationWithThen,yo as HTMLProjectionNode,ye as HTMLVisualElement,Ct as JSAnimation,fe as KeyframeResolver,Ws as LayoutAnimationBuilder,Hs as LayoutGroup,qt as LayoutGroupContext,lf as LazyMotion,cf as MotionConfig,st as MotionConfigContext,_t as MotionContext,nt as MotionGlobalConfig,Bt as MotionValue,Or as MotionValueState,bt as NativeAnimation,br as NativeAnimationExtended,Oo as NativeAnimationWrapper,an as NodeStack,Zr as ObjectVisualElement,zs as PopChild,$s as PresenceChild,Ot as PresenceContext,$l as Reorder,po as SVGVisualElement,ne as SubscriptionManager,hn as SwitchLayoutGroupContext,Yn as ViewTransitionBuilder,ee as VisualElement,Pn as WillChangeMotionValue,to as acceleratedValues,kr as addAttrValue,Nt as addDomEvent,$i as addEffect,xe as addPointerEvent,ea as addPointerInfo,cl as addScaleCorrector,Br as addStyleValue,je as addUniqueItem,Fo as addValueToWillChange,Zt as alpha,le as analyseComplexValue,Mm as animate,Hi as animateEffectSubject,Lm as animateMini,Kt as animateMotionValue,rn as animateSingleValue,io as animateTarget,mc as animateValue,Er as animateVariant,uu as animateView,Pe as animateVisualElement,Ea as animationControls,Fi as animationMapKey,wo as animations,er as anticipate,Zn as applyAxisDelta,Jn as applyBoxDelta,Lo as applyGeneratorOptions,gs as applyPointDelta,zi as applyPxDefaults,xs as applyTreeDeltas,Ja as arc,si as aspectRatio,Wo as attachFollow,Jc as attachSpring,Oc as attrEffect,ai as axisDeltaEquals,Ls as axisEquals,Is as axisEqualsRounded,To as backIn,tr as backInOut,Rn as backOut,Os as boxEquals,ii as boxEqualsRounded,uo as buildHTMLStyles,ks as buildProjectionTransform,Jr as buildSVGAttrs,Ts as buildSVGPath,ti as buildTransform,As as calcAxisDelta,ho as calcBoxDelta,Pr as calcChildStagger,_e as calcGeneratorDuration,rt as calcLength,Ps as calcRelativeAxis,Cs as calcRelativeAxisPosition,Ms as calcRelativeBox,Ko as calcRelativePosition,Qr as camelCaseAttributes,me as camelToDash,K as cancelFrame,Hn as cancelMicrotask,Uu as cancelSync,ml as checkVariantsDidChange,or as circIn,nr as circInOut,rr as circOut,q as clamp,yl as cleanDirtyNodes,Jt as collectMotionValues,Z as color,Fs as compareByDepth,it as complex,Ln as containsCSSVariable,_r as convertBoundingBoxToBox,ds as convertBoxToBoundingBox,Ri as convertOffsetToTimes,oi as copyAxisDeltaInto,on as copyAxisInto,Lt as copyBoxInto,fo as correctBorderRadius,Ss as correctBoxShadow,Hm as correctParentTransform,bs as createAnimationState,us as createAxis,cs as createAxisDelta,_ as createBox,De as createDelta,de as createEffect,gr as createGeneratorEasing,ln as createProjectionNode,lr as createRenderBatcher,hi as createScopedAnimate,ie as cubicBezier,Ae as cubicBezierAsString,pK as default,Ua as defaultEasing,Ye as defaultOffset,vr as defaultTransformValue,el as defaultValueTypes,kt as degrees,sn as delay,bu as delayInSeconds,Gn as dimensionValueTypes,zm as disableInstantTransitions,ra as distance,na as distance2D,va as domAnimation,zf as domMax,$f as domMin,It as eachAxis,Ti as easeIn,ir as easeInOut,Vi as easeOut,Vo as easingDefinitionToFunction,yr as fillOffset,xr as fillWildcards,Ys as filterProps,Un as findDimensionValueType,Ki as findEffect,ns as findValueType,Oi as flushKeyframeResolvers,os as followValue,T as frame,F as frameData,se as frameSteps,dr as generateLinearEasing,Rr as getAnimatableNone,ji as getAnimationMap,Xn as getComputedStyle,Ni as getDefaultTransition,Dr as getDefaultValueType,ar as getEasingForSegment,ps as getFeatureDefinitions,ue as getFinalKeyframe,mr as getMixer,no as getOptimisedAppearId,il as getOriginIndex,Ce as getValueAsType,pt as getValueTransition,Nn as getVariableValue,ei as getVariantContext,as as getViewAnimationLayerInfo,ls as getViewAnimations,go as globalProjectionState,qn as has2DTranslate,lo as hasReducedMotionListener,Xr as hasScale,jt as hasTransform,Yl as hasWarned,Po as hex,Yi as hover,ae as hsla,Ei as hslaToRgba,Ia as inView,Co as inertia,Kr as initPrefersReducedMotion,Xe as interpolate,k as invariant,fr as invisibleValues,ge as isAnimationControls,Ue as isBezierDefinition,wi as isBrowser,ze as isCSSVariableName,$e as isCSSVariableToken,Re as isControllingVariants,ni as isDeltaZero,Fr as isDragActive,Mt as isDragging,sr as isEasingArray,qi as isElementKeyboardAccessible,Zi as isElementTextInput,qr as isForcedMotionValue,Qe as isGenerator,Ht as isHTMLElement,ko as isKeyframesTarget,Ra as isMotionComponent,D as isMotionValue,Es as isNear,_n as isNodeOrChild,qo as isNumericalString,Zo as isObject,so as isPrimaryPointer,he as isSVGElement,Gr as isSVGSVGElement,tn as isSVGTag,Wi as isTransitionDefined,_o as isValidMotionProp,te as isVariantLabel,$r as isVariantNode,ol as isWaapiSupportedEasing,Gi as isWillChangeMotionValue,Jo as isZeroValueString,Te as keyframes,kx as m,Io as makeAnimationInstant,xo as makeUseVisualState,Je as mapEasingToNativeEasing,qc as mapValue,hr as maxGeneratorDuration,vs as measurePageBox,Qn as measureViewportBox,Ne as memo,St as microtask,mt as millisecondsToSeconds,Qo as mirrorEasing,pr as mix,Di as mixArray,Fn as mixColor,Na as mixComplex,He as mixImmediate,Bn as mixLinearColor,M as mixNumber,ja as mixObject,Bs as mixValues,Mi as mixVisibility,Ox as motion,H as motionValue,Dn as moveItem,li as nodeGroup,N as noop,Ut as number,Qt as numberValueTypes,Wr as observeTimeline,jo as optimizedAppearDataAttribute,Wn as optimizedAppearDataId,Wu as parseAnimateLayoutArgs,Qa as parseCSSVariable,wr as parseValueFromTransform,wt as percent,Gt as pipe,ws as pixelsToPercent,Cr as positionalKeys,Le as prefersReducedMotion,Ji as press,Tt as progress,kn as progressPercentage,kc as propEffect,gl as propagateDirtyNodes,V as px,Ii as readTransformValue,Hc as recordStats,pl as removeAxisDelta,Rs as removeAxisTransforms,ri as removeBoxTransforms,Kn as removeEffect,vt as removeItem,Ds as removePointDelta,Yr as renderHTML,Vs as renderSVG,No as resize,ct as resolveElements,Oe as resolveMotionValue,oo as resolveTransition,Et as resolveVariant,ro as resolveVariantFromProps,Ge as reverseEasing,In as rgbUnit,zt as rgba,oe as rootProjectionNode,Ao as scale,Ie as scaleCorrectors,Uo as scalePoint,mo as scrapeHTMLMotionValuesFromProps,en as scrapeSVGMotionValuesFromProps,pi as scroll,Sn as scrollInfo,B as secondsToMilliseconds,_i as setDragLock,Hr as setFeatureDefinitions,Tr as setStyle,Bo as setTarget,ce as spring,Zc as springValue,_c as stagger,_m as startOptimizedAppearAnimation,Ro as startWaapiAnimation,Dt as statsBuffer,Zl as steps,Fc as styleEffect,Do as supportedWaapiEasing,Bi as supportsBrowserAnimation,ki as supportsFlags,be as supportsLinearEasing,Ic as supportsPartialKeyframes,Ze as supportsScrollTimeline,Vr as supportsViewTimeline,jc as svgEffect,Gu as sync,Mr as testValueType,Y as time,Ur as transform,ys as transformAxis,zo as transformBox,hs as transformBoxPoints,Vt as transformPropOrder,lt as transformProps,rs as transformValue,Ui as transformValueTypes,Km as transformViewBoxPoint,Rt as translateAxis,jm as unwrapMotionComponent,fs as updateMotionValuesFromProps,Dm as useAnimate,Im as useAnimateMini,Om as useAnimation,Fl as useAnimationControls,Aa as useAnimationFrame,Gs as useComposedRefs,Wm as useCycle,Xm as useDeprecatedAnimatedState,Qm as useDeprecatedInvertedScale,Bm as useDomEvent,Fm as useDragControls,um as useElementScroll,ba as useFollowValue,un as useForceUpdate,Gm as useInView,La as useInstantLayoutTransition,Um as useInstantTransition,Zu as useIsPresent,xt as useIsomorphicLayoutEffect,mm as useMotionTemplate,At as useMotionValue,wa as useMotionValueEvent,$m as usePageInView,cn as usePresence,km as usePresenceData,Pa as useReducedMotion,Ca as useReducedMotionConfig,Nm as useResetProjection,bn as useScroll,hm as useSpring,gm as useTime,ve as useTransform,xn as useUnmountEffect,ym as useVelocity,fm as useViewportScroll,xm as useWillChange,zr as variantPriorityOrder,Go as variantProps,We as velocityPerSecond,Pi as vh,Ft as visualElementStore,Ci as vw,Si as warnOnce,Pt as warning,Se as wrap};