@seeqdev/qomponents 0.0.230 → 0.0.232

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 (37) hide show
  1. package/dist/index.esm.js +2 -2
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +2 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/Accordion/Accordion.d.ts +2 -2
  6. package/dist/src/Alert/Alert.d.ts +2 -2
  7. package/dist/src/Badge/Badge.d.ts +2 -2
  8. package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -2
  9. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +3 -3
  10. package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +2 -2
  11. package/dist/src/Carousel/Carousel.d.ts +2 -2
  12. package/dist/src/Checkbox/Checkbox.d.ts +2 -2
  13. package/dist/src/Collapse/Collapse.d.ts +2 -2
  14. package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
  15. package/dist/src/ColorSwatch/ColorSwatch.d.ts +2 -2
  16. package/dist/src/EditorPanel/EditorPanel.d.ts +2 -2
  17. package/dist/src/ExternalLink/ExternalLink.d.ts +2 -2
  18. package/dist/src/Icon/Icon.d.ts +2 -2
  19. package/dist/src/InputGroup/InputGroup.d.ts +2 -2
  20. package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
  21. package/dist/src/Modal/Modal.d.ts +2 -2
  22. package/dist/src/ProgressBar/ProgressBar.d.ts +2 -2
  23. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +2 -2
  24. package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
  25. package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
  26. package/dist/src/Select/Select.d.ts +2 -2
  27. package/dist/src/Slider/Slider.d.ts +2 -2
  28. package/dist/src/SvgIcon/SvgIcon.d.ts +2 -2
  29. package/dist/src/Tabs/Tabs.d.ts +2 -2
  30. package/dist/src/TextArea/TextArea.d.ts +2 -2
  31. package/dist/src/TextField/TextField.d.ts +10 -10
  32. package/dist/src/ToolbarButton/ToolbarButton.d.ts +2 -2
  33. package/dist/src/Tooltip/Qtip.d.ts +2 -2
  34. package/dist/src/Tooltip/Tooltip.d.ts +2 -2
  35. package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +2 -2
  36. package/dist/styles.css +34 -63
  37. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -55,7 +55,7 @@ http://jedwatson.github.io/classnames
55
55
  ${f}px !important;
56
56
  top: ${l}px !important;
57
57
  }
58
- `),()=>{m.contains(p)&&m.removeChild(p)}},[n]),b(ch,{isPresent:n,childRef:o,sizeRef:s,children:e.cloneElement(t,{ref:l})})}const uh=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=Au(dh),d=p(),f=!0,m=g(()=>(f=!1,{id:d,initial:n,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(m={...m}),g(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),e.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(t=b(lh,{isPresent:r,anchorX:c,root:l,children:t})),b(Nu.Provider,{value:m,children:t})};function dh(){return new Map}function fh(e=!0){let t=d(Nu);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=p();f(()=>{if(e)return i(a)},[e]);let o=u(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const ph=e=>e.key||``;function mh(e){let t=[];return n.forEach(e,e=>{l(e)&&t.push(e)}),t}const hh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=fh(o),f=g(()=>mh(e),[e]),p=o&&!l?[]:f.map(ph),m=_(!0),h=_(f),x=Au(()=>new Map),[S,C]=v(f),[w,T]=v(f);Mu(()=>{m.current=!1,h.current=f;for(let e=0;e<w.length;e++){let t=ph(w[e]);p.includes(t)?x.delete(t):x.get(t)!==!0&&x.set(t,!1)}},[w,p.length,p.join(`-`)]);let E=[];if(f!==S){let e=[...f];for(let t=0;t<w.length;t++){let n=w[t],r=ph(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return a===`wait`&&E.length&&(e=E),T(mh(e)),C(f),null}let{forceRender:D}=d(ku);return b(y,{children:w.map(e=>{let d=ph(e),g=o&&!l?!1:f===w||p.includes(d),_=()=>{if(x.has(d))x.set(d,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(D?.(),T(h.current),o&&u?.(),r&&r())};return b(uh,{isPresent:g,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:g?void 0:_,anchorX:s,children:e},d)})})},gh=o({strict:!1}),_h={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`]},vh={};for(let e in _h)vh[e]={isEnabled:t=>_h[e].some(e=>!!t[e])};function yh(e){for(let t in e)vh[t]={...vh[t],...e[t]}}const bh=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.ignoreStrict.viewport`.split(`.`));function xh(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||bh.has(e)}function Sh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ch=j((()=>{})),wh={};ee(wh,{default:()=>Eh});var Th,Eh,Dh=j((()=>{Ch(),Th=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Eh=Sh(function(e){return Th.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let Oh=e=>!xh(e);function kh(e){typeof e==`function`&&(Oh=t=>t.startsWith(`on`)?!xh(t):e(t))}try{kh((Dh(),F(wh)).default)}catch{}function Ah(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(Oh(i)||n===!0&&xh(i)||!t&&!xh(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const jh=o({});function Mh(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Nh(e){return typeof e==`string`||Array.isArray(e)}const Ph=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Fh=[`initial`,...Ph];function Ih(e){return Mh(e.animate)||Fh.some(t=>Nh(e[t]))}function Lh(e){return!!(Ih(e)||e.variants)}function Rh(e,t){if(Ih(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Nh(t)?t:void 0,animate:Nh(n)?n:void 0}}return e.inherit===!1?{}:t}function zh(e){let{initial:t,animate:n}=Rh(e,d(jh));return g(()=>({initial:t,animate:n}),[Bh(t),Bh(n)])}function Bh(e){return Array.isArray(e)?e.join(` `):e}function Vh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hh={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(W.test(e))e=parseFloat(e);else return e;let n=Vh(e,t.target.x),r=Vh(e,t.target.y);return`${n}% ${r}%`}},Uh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=ff.parse(e);if(i.length>5)return r;let a=ff.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=G(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Wh={borderRadius:{...Hh,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Hh,borderTopRightRadius:Hh,borderBottomLeftRadius:Hh,borderBottomRightRadius:Hh,boxShadow:Uh};function Gh(e,{layout:t,layoutId:n}){return bp.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Wh[e]||e===`opacity`)}const Kh={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},qh=yp.length;function Jh(e,t,n){let r=``,i=!0;for(let a=0;a<qh;a++){let o=yp[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=km(s,xm[o]);if(!c){i=!1;let t=Kh[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Yh(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(bp.has(e)){o=!0;continue}else if(Od(e)){i[e]=n;continue}else{let t=km(n,xm[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Jh(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const Xh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zh(e,t,n){for(let r in t)!th(t[r])&&!Gh(r,n)&&(e[r]=t[r])}function Qh({transformTemplate:e},t){return g(()=>{let n=Xh();return Yh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $h(e,t){let n=e.style||{},r={};return Zh(r,n,e),Object.assign(r,Qh(e,t)),r}function eg(e,t){let n={},r=$h(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const tg={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ng={offset:`strokeDashoffset`,array:`strokeDasharray`};function rg(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?tg:ng;e[a.offset]=W.transform(-r);let o=W.transform(t),s=W.transform(n);e[a.array]=`${o} ${s}`}function ig(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Yh(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&rg(d,i,a,o,!1)}const ag=()=>({...Xh(),attrs:{}}),og=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function sg(e,t,n,r){let i=g(()=>{let n=ag();return ig(n,t,og(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Zh(t,e.style,e),i.style={...t,...i.style}}return i}const cg=[`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 lg(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(cg.indexOf(e)>-1||/[A-Z]/u.test(e))}function ug(e,t,n,{latestValues:r},a,o=!1){let c=lg(e)?sg:eg,l=c(t,r,a,e),u=Ah(t,typeof e==`string`,o),d=e===i?{}:{...u,...l,ref:n},{children:f}=t,p=g(()=>th(f)?f.get():f,[f]);return s(e,{...d,children:p})}function dg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function fg(e,t,n,r){if(typeof t==`function`){let[i,a]=dg(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=dg(r);t=t(n===void 0?e.custom:n,i,a)}return t}function pg(e){return th(e)?e.get():e}function mg({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:hg(n,r,i,e),renderState:t()};return a}function hg(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=pg(a[e]);let{initial:o,animate:s}=e,c=Ih(e),l=Lh(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Mh(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=fg(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const gg=e=>(t,n)=>{let r=d(jh),i=d(Nu),a=()=>mg(e,t,r,i);return n?a():Au(a)};function _g(e,t,n){let{style:r}=e,i={};for(let a in r)(th(r[a])||t.style&&th(t.style[a])||Gh(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const vg=gg({scrapeMotionValuesFromProps:_g,createRenderState:Xh});function yg(e,t,n){let r=_g(e,t,n);for(let n in e)if(th(e[n])||th(t[n])){let t=yp.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const bg=gg({scrapeMotionValuesFromProps:yg,createRenderState:ag}),xg=Symbol.for(`motionComponentSymbol`);function Sg(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Cg(e,t,n){return u(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Sg(n)&&(n.current=r))},[t])}const wg=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Tg=`data-`+wg(`framerAppearId`),Eg=o({});function Dg(e,t,n,r,i){let{visualElement:a}=d(jh),o=d(gh),s=d(Nu),c=d(ih).reducedMotion,l=_(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,p=d(Eg);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&Og(l.current,n,i,p);let h=_(!1);m(()=>{u&&h.current&&u.update(n,s)});let g=n[Tg],v=_(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Mu(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),f(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),u.enteringChildren=void 0)}),u}function Og(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:kg(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Sg(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function kg(e){if(e)return e.options.allowProjection===!1?kg(e.parent):e.projection}function Ag(e,{forwardMotionProps:t=!1}={},n,r){n&&yh(n);let i=lg(e)?bg:vg;function a(a,o){let s,c={...d(ih),...a,layoutId:jg(a)},{isStatic:l}=c,u=zh(a),f=i(a,l);if(!l&&ju){Mg(c,n);let t=Ng(c);s=t.MeasureLayout,u.visualElement=Dg(e,f,c,r,t.ProjectionNode)}return x(jh.Provider,{value:u,children:[s&&u.visualElement?b(s,{visualElement:u.visualElement,...c}):null,ug(e,a,Cg(f,u.visualElement,o),f,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=c(a);return o[xg]=e,o}function jg({layoutId:e}){let t=d(ku).id;return t&&e!==void 0?t+`-`+e:e}function Mg(e,t){d(gh).strict}function Ng(e){let{drag:t,layout:n}=vh;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Pg(e,t){if(typeof Proxy>`u`)return Ag;let n=new Map,r=(n,r)=>Ag(n,r,e,t),i=(e,t)=>r(e,t);return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Ag(a,void 0,e,t)),n.get(a))})}function Fg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ig({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Lg(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rg(e){return e===void 0||e===1}function zg({scale:e,scaleX:t,scaleY:n}){return!Rg(e)||!Rg(t)||!Rg(n)}function Bg(e){return zg(e)||Vg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vg(e){return Hg(e.x)||Hg(e.y)}function Hg(e){return e&&e!==`0%`}function Ug(e,t,n){let r=e-n,i=t*r;return n+i}function Wg(e,t,n,r,i){return i!==void 0&&(e=Ug(e,i,r)),Ug(e,n,r)+t}function Gg(e,t=0,n=1,r,i){e.min=Wg(e.min,t,n,r,i),e.max=Wg(e.max,t,n,r,i)}function Kg(e,{x:t,y:n}){Gg(e.x,t.translate,t.scale,t.originPoint),Gg(e.y,n.translate,n.scale,n.originPoint)}const qg=.999999999999,Jg=1.0000000000001;function Yg(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Qg(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Kg(e,o)),r&&Bg(a.latestValues)&&Qg(e,a.latestValues))}t.x<Jg&&t.x>qg&&(t.x=1),t.y<Jg&&t.y>qg&&(t.y=1)}function Xg(e,t){e.min+=t,e.max+=t}function Zg(e,t,n,r,i=.5){let a=G(e.min,e.max,i);Gg(e,t,n,a,r)}function Qg(e,t){Zg(e.x,t.x,t.scaleX,t.scale,t.originX),Zg(e.y,t.y,t.scaleY,t.scale,t.originY)}function $g(e,t){return Fg(Lg(e.getBoundingClientRect(),t))}function e_(e,t,n){let r=$g(e,n),{scroll:i}=t;return i&&(Xg(r.x,i.offset.x),Xg(r.y,i.offset.y)),r}const t_=()=>({translate:0,scale:1,origin:0,originPoint:0}),n_=()=>({x:t_(),y:t_()}),r_=()=>({min:0,max:0}),i_=()=>({x:r_(),y:r_()}),a_={current:null},o_={current:!1};function s_(){if(o_.current=!0,ju)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>a_.current=e.matches;e.addEventListener(`change`,t),t()}else a_.current=!1}const c_=new WeakMap;function l_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(th(i))e.addValue(r,i);else if(th(a))e.addValue(r,Pm(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Pm(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const u_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var d_=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Np,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Td.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,U.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=Ih(t),this.isVariantNode=Lh(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&th(t)&&t.set(s[e])}}mount(e){this.current=e,c_.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((e,t)=>this.bindToMotionValue(t,e)),o_.current||s_(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:a_.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),bd(this.notifyUpdate),bd(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=bp.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&U.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}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 vh){let t=vh[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<u_.length;t++){let n=u_[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=l_(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 t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Pm(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Ru(n)||Bu(n))?n=parseFloat(n):!rh(n)&&ff.test(t)&&(n=wm(e,t)),this.setBaseTarget(e,th(n)?n.get():n)),th(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=fg(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!th(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ku),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Fm.render(this.render)}},f_=class extends d_{constructor(){super(...arguments),this.KeyframeResolver=Dm}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;th(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function p_(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function m_(e){return window.getComputedStyle(e)}var h_=class extends f_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=p_}readValueFromInstance(e,t){if(bp.has(t))return this.projection?.isProjecting?hp(t):_p(e,t);{let n=m_(e),r=(Od(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return $g(e,t)}build(e,t,n){Yh(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return _g(e,t,n)}};const g_=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function __(e,t,n,r){for(let n in p_(e,t,void 0,r),t.attrs)e.setAttribute(g_.has(n)?n:wg(n),t.attrs[n])}var v_=class extends f_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=i_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(bp.has(t)){let e=Cm(t);return e&&e.default||0}return t=g_.has(t)?t:wg(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yg(e,t,n)}build(e,t,n){ig(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){__(e,t,n,r)}mount(e){this.isSVGTag=og(e.tagName),super.mount(e)}};const y_=(e,t)=>lg(e)?new v_(t):new h_(t,{allowProjection:e!==i});function b_(e,t,n){let r=e.getProps();return fg(r,t,n===void 0?r.custom:n,e)}const x_=e=>Array.isArray(e);function S_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pm(n))}function C_(e){return x_(e)?e[e.length-1]||0:e}function w_(e,t){let n=b_(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=C_(a[t]);S_(e,t,n)}}function T_(e){return!!(th(e)&&e.add)}function E_(e,t){let n=e.getValue(`willChange`);if(T_(n))return n.add(t);if(!n&&Lu.WillChange){let n=new Lu.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function D_(e){return e.props[Tg]}const O_=e=>e!==null;function k_(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(O_),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const A_={type:`spring`,stiffness:500,damping:25,restSpeed:10},j_=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),M_={type:`keyframes`,duration:.8},N_={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},P_=(e,{keyframes:t})=>t.length>2?M_:bp.has(e)?e.startsWith(`scale`)?j_(t[1]):A_:N_;function F_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const I_=(e,t,n,r={},i,a)=>o=>{let s=cm(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=qu(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};F_(s)||Object.assign(u,P_(e,u)),u.duration&&=qu(u.duration),u.repeatDelay&&=qu(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(em(u),u.delay===0&&(d=!0)),(Lu.instantAnimations||Lu.skipAnimations)&&(d=!0,em(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=k_(u.keyframes,s);if(e!==void 0){U.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ap(u):new im(u)};function L_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function R_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&L_(l,t))continue;let o={delay:n,...cm(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=D_(e);if(n){let e=window.MotionHandoffAnimation(n,t,U);e!==null&&(o.startTime=e,d=!0)}}E_(e,t),r.start(I_(t,r,i,e.shouldReduceMotion&&lm.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{U.update(()=>{o&&w_(e,o)})}),c}function z_(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r,c=typeof n==`function`;return c?n(a,o):i===1?a*r:s-a*r}function B_(e,t,n={}){let r=b_(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(R_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return V_(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function V_(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(B_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+z_(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function H_(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>B_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=B_(e,t,n);else{let i=typeof t==`function`?b_(e,t,n.custom):t;r=Promise.all(R_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function U_(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const W_=Fh.length;function G_(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&G_(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<W_;n++){let r=Fh[n],i=e.props[r];(Nh(i)||i===!1)&&(t[r]=i)}return t}const K_=[...Ph].reverse(),q_=Ph.length;function J_(e){return t=>Promise.all(t.map(({animation:t,options:n})=>H_(e,t,n)))}function Y_(e){let t=J_(e),n=Q_(),r=!0,i=t=>(n,r)=>{let i=b_(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=G_(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<q_;t++){let f=K_[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Nh(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||Mh(m)||typeof m==`boolean`)continue;let v=X_(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=x_(t)&&x_(n)?!U_(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v,D=!E||b;y&&D&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=b_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=z_(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=b_(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Q_()}}}function X_(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!U_(t,e):!1}function Z_(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Q_(){return{animate:Z_(!0),whileInView:Z_(),whileHover:Z_(),whileTap:Z_(),whileDrag:Z_(),whileFocus:Z_(),exit:Z_()}}var $_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},ev=class extends $_{constructor(e){super(e),e.animationState||=Y_(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Mh(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let tv=0;var nv=class extends $_{constructor(){super(...arguments),this.id=tv++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};const rv={animation:{Feature:ev},exit:{Feature:nv}};function iv(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function av(e){return{point:{x:e.pageX,y:e.pageY}}}const ov=e=>t=>Wm(t)&&e(t,av(t));function sv(e,t,n,r){return iv(e,t,ov(n),r)}const cv=1e-4;1-cv,1+cv;const lv=.01;0-lv,0+lv;function uv(e){return e.max-e.min}function dv(e,t,n){return Math.abs(e-t)<=n}function fv(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=uv(n)/uv(t),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function pv(e,t,n,r){fv(e.x,t.x,n.x,r?r.originX:void 0),fv(e.y,t.y,n.y,r?r.originY:void 0)}function mv(e,t,n){e.min=n.min+t.min,e.max=e.min+uv(t)}function hv(e,t,n){mv(e.x,t.x,n.x),mv(e.y,t.y,n.y)}function gv(e,t,n){e.min=t.min-n.min,e.max=e.min+uv(t)}function _v(e,t,n){gv(e.x,t.x,n.x),gv(e.y,t.y,n.y)}function vv(e){return[e(`x`),e(`y`)]}const yv=({current:e})=>e?e.ownerDocument.defaultView:null,bv=(e,t)=>Math.abs(e-t);function xv(e,t){let n=bv(e.x,t.x),r=bv(e.y,t.y);return Math.sqrt(n**2+r**2)}var Sv=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Tv(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=xv(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=xd;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Cv(t,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Tv(e.type===`pointercancel`?this.lastMoveEventInfo:Cv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Wm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=av(e),s=Cv(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=xd;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Tv(s,this.history)),this.removeListeners=Wu(sv(this.contextWindow,`pointermove`,this.handlePointerMove),sv(this.contextWindow,`pointerup`,this.handlePointerUp),sv(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bd(this.updatePoint)}};function Cv(e,t){return t?{point:t(e.point)}:e}function wv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tv({point:e},t){return{point:e,delta:wv(e,Dv(t)),offset:wv(e,Ev(t)),velocity:Ov(t,.1)}}function Ev(e){return e[0]}function Dv(e){return e[e.length-1]}function Ov(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Dv(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qu(t)));)n--;if(!r)return{x:0,y:0};let a=Ju(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function kv(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?G(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Av(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function jv(e,{top:t,left:n,bottom:r,right:i}){return{x:Av(e.x,n,i),y:Av(e.y,t,r)}}function Mv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Nv(e,t){return{x:Mv(e.x,t.x),y:Mv(e.y,t.y)}}function Pv(e,t){let n=.5,r=uv(e),i=uv(t);return i>r?n=Gu(t.min,t.max-r,e.min):r>i&&(n=Gu(e.min,e.max-i,t.min)),Iu(0,1,n)}function Fv(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Iv=.35;function Lv(e=Iv){return e===!1?e=0:e===!0&&(e=Iv),{x:Rv(e,`left`,`right`),y:Rv(e,`top`,`bottom`)}}function Rv(e,t,n){return{min:zv(e,t),max:zv(e,n)}}function zv(e,t){return typeof e==`number`?e:e[t]||0}const Bv=new WeakMap;var Vv=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=i_(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(av(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zm(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Jd.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=uv(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&U.postRender(()=>i(e,t)),E_(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Uv(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>vv(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Sv(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:yv(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Hv(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=kv(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Sg(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=jv(n.layoutBox,e):this.constraints=!1,this.elastic=Lv(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&vv(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Fv(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sg(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=e_(n,r.root,this.visualElement.getTransformPagePoint()),a=Nv(r.layout.layoutBox,i);if(t){let e=t(Ig(a));this.hasMutatedConstraints=!!e,e&&(a=Fg(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=vv(o=>{if(!Hv(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return E_(this.visualElement,e),n.start(I_(e,n,0,t,this.visualElement,!1))}stopAnimation(){vv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){vv(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){vv(t=>{let{drag:n}=this.getProps();if(!Hv(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-G(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sg(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};vv(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Pv({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),vv(t=>{if(!Hv(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(G(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;Bv.set(this.visualElement,this);let e=this.visualElement.current,t=sv(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Sg(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(n);let a=iv(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(vv(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Iv,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Hv(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uv(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Wv=class extends $_{constructor(e){super(e),this.removeGroupControls=Hu,this.removeListeners=Hu,this.controls=new Vv(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Hu}unmount(){this.removeGroupControls(),this.removeListeners()}};const Gv=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};var Kv=class extends $_{constructor(){super(...arguments),this.removePointerDownListener=Hu}onPointerDown(e){this.session=new Sv(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Gv(e),onStart:Gv(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&U.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=sv(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const qv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Jv=!1;var Yv=class extends r{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Jv&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),qv.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,Jv=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||U.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Fm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Jv=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Xv(e){let[t,n]=fh(),r=d(ku);return b(Yv,{...e,layoutGroup:r,switchLayoutGroup:d(Eg),isPresent:t,safeToRemove:n})}function Zv(e,t,n){let r=th(e)?e:Pm(e);return r.start(I_(``,r,t,n)),r.animation}const Qv=(e,t)=>e.depth-t.depth;var $v=class{constructor(){this.children=[],this.isDirty=!1}add(e){Pu(this.children,e),this.isDirty=!0}remove(e){Fu(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qv),this.isDirty=!1,this.children.forEach(e)}};function ey(e,t){let n=Td.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(bd(r),e(a-t))};return U.setup(r,!0),()=>bd(r)}const ty=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],ny=ty.length,ry=e=>typeof e==`string`?parseFloat(e):e,iy=e=>typeof e==`number`||W.test(e);function ay(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,sy(r)),e.opacityExit=G(t.opacity??1,0,cy(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<ny;i++){let a=`border${ty[i]}Radius`,o=oy(t,a),s=oy(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||iy(o)===iy(s);c?(e[a]=Math.max(G(ry(o),ry(s),r),0),(Jd.test(s)||Jd.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=G(t.rotate||0,n.rotate||0,r))}function oy(e,t){return e[t]===void 0?e.borderRadius:e[t]}const sy=ly(0,.5,od),cy=ly(.5,.95,Hu);function ly(e,t,n){return r=>r<e?0:r>t?1:n(Gu(e,t,r))}function uy(e,t){e.min=t.min,e.max=t.max}function dy(e,t){uy(e.x,t.x),uy(e.y,t.y)}function fy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function py(e,t,n,r,i){return e-=t,e=Ug(e,1/n,r),i!==void 0&&(e=Ug(e,1/i,r)),e}function my(e,t=0,n=1,r=.5,i,a=e,o=e){if(Jd.test(t)){t=parseFloat(t);let e=G(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=G(a.min,a.max,r);e===a&&(s-=t),e.min=py(e.min,t,n,s,i),e.max=py(e.max,t,n,s,i)}function hy(e,t,[n,r,i],a,o){my(e,t[n],t[r],t[i],t.scale,a,o)}const gy=[`x`,`scaleX`,`originX`],_y=[`y`,`scaleY`,`originY`];function vy(e,t,n,r){hy(e.x,t,gy,n?n.x:void 0,r?r.x:void 0),hy(e.y,t,_y,n?n.y:void 0,r?r.y:void 0)}function yy(e){return e.translate===0&&e.scale===1}function by(e){return yy(e.x)&&yy(e.y)}function xy(e,t){return e.min===t.min&&e.max===t.max}function Sy(e,t){return xy(e.x,t.x)&&xy(e.y,t.y)}function Cy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wy(e,t){return Cy(e.x,t.x)&&Cy(e.y,t.y)}function Ty(e){return uv(e.x)/uv(e.y)}function Ey(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Dy=class{constructor(){this.members=[]}add(e){Pu(this.members,e),e.scheduleRender()}remove(e){if(Fu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function Oy(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const ky={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ay=[``,`X`,`Y`,`Z`];let jy=0;function My(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ny(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=D_(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,U,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ny(r)}function Py({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=jy++,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,_d.value&&(ky.nodes=ky.calculatedTargetDeltas=ky.calculatedProjections=0),this.nodes.forEach(Ly),this.nodes.forEach(Wy),this.nodes.forEach(Gy),this.nodes.forEach(Ry),_d.addProjectionMetrics&&_d.addProjectionMetrics(ky)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new $v)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ku),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=$m(t)&&!eh(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;U.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ey(i,250),qv.hasAnimatedSinceResize&&(qv.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Qy,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!wy(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...cm(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bd(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(Ky),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ny(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Hy),this.nodes.forEach(Fy),this.nodes.forEach(Iy)):this.nodes.forEach(Vy),this.clearAllSnapshots();let t=Td.now();xd.delta=Iu(0,1e3/60,t-xd.timestamp),xd.timestamp=t,xd.isProcessing=!0,Sd.update.process(xd),Sd.preRender.process(xd),Sd.render.process(xd),xd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zy),this.sharedNodes.forEach(qy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!uv(this.snapshot.measuredBox.x)&&!uv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=i_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!by(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Bg(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),nb(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return i_();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(ib);if(!n){let{scroll:e}=this.root;e&&(Xg(t.x,e.offset.x),Xg(t.y,e.offset.y))}return t}removeElementScroll(e){let t=i_();if(dy(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&dy(t,e),Xg(t.x,i.offset.x),Xg(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=i_();dy(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Qg(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Bg(r.latestValues)&&Qg(n,r.latestValues)}return Bg(this.latestValues)&&Qg(n,this.latestValues),n}removeTransform(e){let t=i_();dy(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Bg(n.latestValues))continue;zg(n.latestValues)&&n.updateSnapshot();let r=i_(),i=n.measurePageBox();dy(r,i),vy(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Bg(this.latestValues)&&vy(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xd.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t,r=!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(r)return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=xd.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=i_(),this.targetWithTransforms=i_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dy(this.target,this.layout.layoutBox),Kg(this.target,this.targetDelta)):dy(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),_d.value&&ky.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||zg(this.parent.latestValues)||Vg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i_(),this.relativeTargetOrigin=i_(),_v(this.relativeTargetOrigin,t,n),dy(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===xd.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;dy(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Yg(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=i_());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fy(this.prevProjectionDelta.x,this.projectionDelta.x),fy(this.prevProjectionDelta.y,this.projectionDelta.y)),pv(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ey(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ey(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),_d.value&&ky.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=n_(),this.projectionDelta=n_(),this.projectionDeltaWithTransform=n_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=n_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=i_(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(Zy));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;Jy(a.x,e.x,n),Jy(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_v(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xy(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&Sy(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=i_(),dy(p,this.relativeTarget)),l&&(this.animationValues=i,ay(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(bd(this.pendingAnimation),void 0),this.pendingAnimation=U.update(()=>{qv.hasAnimatedSinceResize=!0,Ed.layout++,this.motionValue||=Pm(0),this.currentAnimation=Zv(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Ed.layout--},onComplete:()=>{Ed.layout--,e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&rb(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||i_();let t=uv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=uv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}dy(t,n),Qg(t,i),pv(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dy);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&My(`z`,e,r,this.animationValues);for(let t=0;t<Ay.length;t++)My(`rotate${Ay[t]}`,e,r,this.animationValues),My(`skew${Ay[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=pg(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=pg(t?.pointerEvents)||``),this.hasProjected&&!Bg(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Oy(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,Wh){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Wh[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?pg(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function Fy(e){e.updateLayout()}function Iy(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?vv(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=uv(r);r.min=n[e].min,r.max=r.min+i}):rb(i,t.layoutBox,n)&&vv(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=uv(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=n_();pv(o,n,t.layoutBox);let s=n_();a?pv(s,e.applyTransform(r,!0),t.measuredBox):pv(s,n,t.layoutBox);let c=!by(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=i_();_v(o,t.layoutBox,i.layoutBox);let s=i_();_v(s,n,a.layoutBox),wy(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ly(e){_d.value&&ky.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ry(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zy(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function Vy(e){e.isLayoutDirty=!1}function Hy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wy(e){e.resolveTargetDelta()}function Gy(e){e.calcProjection()}function Ky(e){e.resetSkewAndRotation()}function qy(e){e.removeLeadSnapshot()}function Jy(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yy(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function Xy(e,t,n,r){Yy(e.x,t.x,n.x,r),Yy(e.y,t.y,n.y,r)}function Zy(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qy={duration:.45,ease:[.4,0,.1,1]},$y=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eb=$y(`applewebkit/`)&&!$y(`chrome/`)?Math.round:Hu;function tb(e){e.min=eb(e.min),e.max=eb(e.max)}function nb(e){tb(e.x),tb(e.y)}function rb(e,t,n){return e===`position`||e===`preserve-aspect`&&!dv(Ty(t),Ty(n),.2)}function ib(e){return e!==e.root&&e.scroll?.wasRoot}const ab=Py({attachResizeListener:(e,t)=>iv(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ob={current:void 0},sb=Py({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ob.current){let e=new ab({});e.mount(window),e.setOptions({layoutScroll:!0}),ob.current=e}return ob.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),cb={pan:{Feature:Kv},drag:{Feature:Wv,ProjectionNode:sb,MeasureLayout:Xv}};function lb(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&U.postRender(()=>a(t,av(t)))}var ub=class extends $_{mount(){let{current:e}=this.node;e&&(this.unmount=Hm(e,(e,t)=>(lb(this.node,t,`Start`),e=>lb(this.node,e,`End`))))}unmount(){}},db=class extends $_{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=Wu(iv(this.node.current,`focus`,()=>this.onFocus()),iv(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function fb(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&U.postRender(()=>a(t,av(t)))}var pb=class extends $_{mount(){let{current:e}=this.node;e&&(this.unmount=Qm(e,(e,t)=>(fb(this.node,t,`Start`),(e,{success:t})=>fb(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const mb=new WeakMap,hb=new WeakMap,gb=e=>{let t=mb.get(e.target);t&&t(e)},_b=e=>{e.forEach(gb)};function vb({root:e,...t}){let n=e||document;hb.has(n)||hb.set(n,{});let r=hb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(_b,{root:e,...t})),r[i]}function yb(e,t,n){let r=vb(t);return mb.set(e,n),r.observe(e),()=>{mb.delete(e),r.unobserve(e)}}const bb={some:0,all:1};var xb=class extends $_{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:bb[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return yb(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(Sb(e,t));n&&this.startObserver()}unmount(){}};function Sb({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Cb={inView:{Feature:xb},tap:{Feature:pb},focus:{Feature:db},hover:{Feature:ub}},wb={layout:{ProjectionNode:sb,MeasureLayout:Xv}},Tb={...rv,...Cb,...cb,...wb},Eb=Pg(Tb,y_),Db=({testId:e=`carousel-id`,activeIndex:t=0,extraClassNames:n=``,onSlide:r=()=>{},autoSlide:i,showIndicators:a=!0,continuous:o=!0,interval:s=4e3,prevIcon:c=`fc-arrow-dropdown tw:rotate-90`,nextIcon:l=`fc-arrow-dropdown tw:rotate-270`,showArrows:u=!0,iconExtraClassNames:d=``,carouselItems:p=[]})=>{let[m,h]=v(t),g=e=>{let t=(e+p.length)%p.length;h(t),r(t,t>m?`right`:`left`)};f(()=>{if(i){let e=setInterval(()=>{o||m<p.length-1?g(m+1):clearInterval(e)},s);return()=>clearInterval(e)}},[i,m,o,s,p.length]),f(()=>{t!==m&&h(t)},[t]);let _=()=>{if(m===0&&!o)return;let e=m-1;e<0&&(e=p.length-1),g(e)},y=()=>{if(m===p.length-1){if(!o)return;g(0)}else g(m+1)},S={type:`spring`,damping:20,stiffness:100},C={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:S},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:S})};return x(`div`,{"data-testid":e,className:`tw:flex tw:flex-col tw:items-center tw:justify-center tw:w-full tw:overflow-hidden ${n}`,children:[x(`div`,{className:`tw:flex tw:items-center tw:w-full tw:h-max tw:gap-1`,children:[u&&b(Kt,{icon:c,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:`${m===0&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:_}),b(`div`,{className:`tw:h-full tw:w-full tw:overflow-hidden`,children:b(Eb.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:C,className:`tw:w-full`,children:p[m]},m)}),u&&b(Kt,{icon:l,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:`${m===p.length-1&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:y})]}),a&&b(`div`,{className:`tw:flex tw:gap-1 tw:mt-2`,children:p.map((e,t)=>b(`div`,{className:`tw:w-2 tw:h-2 tw:rounded-full tw:cursor-pointer ${t===m?`tw:bg-sq-theme-dark`:`tw:bg-sq-darkish-gray`}`,onClick:()=>g(t)},t))})]})};var Ob=Db;const kb=`tw:appearance-none tw:border tw:h-3.5 tw:w-3.5 tw:shrink-0 tw:focus:ring-0 tw:focus:ring-offset-0 tw:outline-none tw:focus:outline-none tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:enabled:hover:bg-sq-dark-background tw:checked:text-white tw:checked:border-sq-text-color tw:checked:enabled:hover:border-sq-theme-dark tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background`,Ab=`tw:rounded ${kb}`,jb=`tw:rounded-full ${kb}`,Mb=e=>{let{type:t=`checkbox`,value:n,disabled:r=!1,label:i,onChange:a,onClick:o,onKeyDown:s,checked:c,defaultChecked:l,id:u,name:d,extraClassNames:f=``,extraLabelClassNames:m,testId:h,...g}=e,_=p(),v=u??`checkbox${_}`,y=Tt(g);return x(`span`,{className:`tw:flex ${f}`,children:[b(`input`,{value:n,type:t,"data-testid":h,name:d,id:v,readOnly:!a,checked:c,defaultChecked:l,className:`${t===`checkbox`?Ab:jb} ${r?`tw:cursor-not-allowed`:`tw:cursor-pointer`}`,disabled:r,onClick:o,onChange:a,onKeyDown:s,...y}),i&&b(`label`,{htmlFor:v,className:`tw:ml-1.5 tw:text-sm tw:-mt-0.5 ${m} ${r?`tw:cursor-not-allowed tw:dark:text-sq-fairly-dark-gray tw:text-sq-fairly-dark-gray`:`tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text`}`,children:i})]})},Nb=({isVisible:e,children:t})=>{let n=_(null),[r,i]=v(0);return f(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),b(hh,{initial:!1,children:e&&b(Eb.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:b(`div`,{ref:n,children:t})})})};var Pb=Nb;const Fb={sm:`tw:h-5 tw:w-5 tw:rounded`,md:`tw:h-6 tw:w-6 tw:rounded-md`,lg:`tw:h-8 tw:w-8 tw:rounded-lg`},Ib=c(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,id:a,testId:o},s){return b(`button`,{ref:s,"aria-label":n,className:`tw:cursor-pointer tw:border tw:border-gray-700 tw:dark:border-gray-500 tw:shadow-sm tw:focus-visible:outline-none ${Fb[r]} ${i}`,"data-testid":o,id:a,onClick:t,style:{backgroundColor:e},type:`button`})});var Lb=Ib;const Rb=[`tw:bg-sq-white tw:dark:bg-sq-dark-background`,`tw:border tw:border-solid tw:rounded-[0.5rem] tw:border-sq-disabled-gray tw:dark:border-gray-500`,`tw:relative tw:z-[1200] tw:min-w-6`,`tw:focus-visible:outline-none tw:outline-none`,`tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out`,`tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade`,`tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade`,`tw:text-sq-text-color tw:dark:text-sq-text-color-dark`].join(` `);function zb({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,id:o,testId:s,onOpen:c}){let l=p(),u=b(`label`,{className:`tw:cursor-pointer tw:whitespace-nowrap tw:text-sm tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,htmlFor:l,children:t}),d=b(Lb,{"aria-label":t,color:e,id:o??l,size:`sm`,onClick:c});return n?x(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[u,x(yu,{children:[b(bu,{asChild:!0,children:d}),b(Su,{align:i,className:Rb,"data-testid":s,side:r,sideOffset:2,children:n})]})]}):x(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[b(`span`,{className:`tw:cursor-pointer tw:whitespace-nowrap tw:text-sm tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,children:t}),d]})}var Bb=zb;const Vb={normal:`tw:gap-2`,spacious:`tw:gap-3`},Hb=({title:e,children:t,onApply:n,onCancel:r,isApplyDisabled:i=!1,applyLabel:a=`Apply`,cancelLabel:o=`Cancel`,spacing:s=`normal`,extraClassNames:c=``,id:l,testId:u})=>x(`div`,{className:`tw:mt-3 tw:mb-1 tw:flex tw:w-full tw:max-w-md tw:flex-col tw:items-start tw:rounded-3xl tw:border tw:border-sq-tool-btn-border tw:dark:border-gray-500 tw:bg-sq-surface tw:dark:bg-sq-tools-background-dark tw:px-4 tw:py-3 tw:shadow-sm ${Vb[s]} ${c}`,"data-testid":u,id:l,children:[b(`span`,{className:`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,children:e}),t,x(`div`,{className:`tw:flex tw:w-full tw:max-w-full tw:flex-wrap tw:items-center tw:justify-end tw:gap-2`,children:[r&&b(Kt,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&b(Kt,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]});var Ub=Hb,Wb=P(Pt());const Gb={link:`tw:inline-flex tw:text-sq-theme-link tw:underline tw:underline-offset-2 tw:transition-colors hover:tw:text-sq-theme-dark focus-visible:tw:outline-none focus-visible:tw:ring-2 focus-visible:tw:ring-sq-theme-link focus-visible:tw:ring-offset-2`,icon:``},Kb=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,testId:a})=>x(y,{children:[t&&b(`span`,{className:`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,children:t}),b(`a`,{href:n,target:`_blank`,rel:`noopener`,className:(0,Wb.default)(Gb[e],i),"data-testid":a,children:r})]});var qb=Kb;function Jb(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Yb(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Jb(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Jb(e,null)}),t.clear()}}}function Xb(...e){return u(Yb(...e),e)}const Zb=(e,t)=>{let n;return typeof e==`number`&&e>0&&(n={width:`${e}px`}),typeof t==`number`&&t>0&&(n||={},n.height=`${t}px`),n},Qb=[`tw:border-sq-disabled-gray`,`tw:dark:border-sq-dark-disabled-gray`,`tw:hover:border-sq-theme-dark`,`tw:dark:hover:border-sq-theme-dark-dark`,`tw:dark:focus:border-sq-theme-dark-dark`,`tw:dark:active:border-sq-theme-darker`,`tw:focus:border-sq-theme-dark`,`tw:active:border-sq-theme-dark`].join(` `),$b={sm:`tw:text-sm`,lg:`tw:text-xl`},ex=c((e,t)=>{let{readonly:n=!1,disabled:r=!1,onChange:i,onPaste:a,onKeyUp:o,onFocus:s,onBlur:c,onKeyDown:l,id:u,name:d,size:p=`sm`,value:m,placeholder:h,extraClassNames:g,testId:S,type:C=`text`,inputGroup:w,step:T,showError:E,errorText:D,min:O,max:k,maxLength:A,minLength:j,required:M=!1,autoComplete:ee=`off`,inputWidth:N=void 0,inputHeight:P=void 0,autoFocus:F=!1,...I}=e,L=_(null),R=Xb(t,L),[te,z]=v(null),ne=Tt(I),B=_(F);f(()=>{B.current&&setTimeout(()=>{L.current?.focus()},0)},[]),f(()=>{let e=L.current;e&&C!==`number`&&C!==`email`&&e.setSelectionRange(te,te)},[t,te,m,C]);let re=e=>{z(e.target.selectionStart),i&&i(e)};f(()=>{m!=null&&m!==L.current?.value&&L.current&&(L.current.value=`${m}`)},[m]);let ie=`tw:rounded-md`;w===`left`?ie=`tw:rounded-l-md tw:border-r-0 tw:focus:border-r tw:active:border-r`:w===`right`&&(ie=`tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l`);let ae=`tw:h-8.5 tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:placeholder-gray-400! tw:dark:placeholder-sq-dark-text/30! specTextField ${$b[p]} ${g} tw:text-sq-text-color tw:disabled:text-sq-darkish-gray tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30 ${ie} ${E?`tw:border-sq-danger`:Qb} `,oe=Zb(N,P)?{style:Zb(N,P)}:{},se={};return A&&(se.maxLength=A),j&&(se.minLength=j),x(y,{children:[b(`input`,{ref:R,"data-testid":S,name:d,id:u,type:C,value:m,className:ae,placeholder:h,disabled:r,readOnly:n,autoComplete:ee,onChange:re,onPaste:a,onFocus:s,onBlur:c,onKeyDown:l,onKeyUp:o,step:T,required:M,min:O,max:k,...se,...oe,...ne}),D&&E&&b(`div`,{className:`tw:text-sq-danger tw:text-xs tw:mt-1`,children:D})]})});ex.displayName=`TextField`;const tx=[`tw:border-sq-disabled-gray`,`tw:dark:border-sq-dark-disabled-gray`,`tw:dark:focus:border-sq-theme-darker`,`tw:dark:active:border-sq-theme-darker`,`tw:focus:border-sq-theme-dark`,`tw:active:border-sq-theme-dark`].join(` `),nx=c((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,value:d,placeholder:f,append:p=[],extraClassNames:m=``,id:h,testId:g,showError:_,required:v,autoComplete:y,autoFocus:S,disabled:C,type:w,step:T,min:E,max:D,field:O,maxLength:k,minLength:A,inputGroup:j,...M}=e,ee=Tt(M),N=`tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap ${m}`,P=p.filter(Boolean),F=j??(P.length>0?`left`:void 0),I=F===`left`?`tw:rounded-l-md tw:rounded-r-none`:F===`right`?`tw:rounded-r-md tw:rounded-l-none`:`tw:rounded-md`,L=`tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:p-1 tw:border-solid tw:border ${m} tw:text-sq-text-color tw:disabled:text-sq-darkish-gray tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray ${I} ${_?`tw:border-sq-danger`:tx} `,R=l(O)&&typeof O.type!=`string`,te=R?a(O,{inputGroup:F}):O;return x(`div`,{id:`input-group-${h}`,className:N,children:[O?b(`div`,{"data-testid":g,className:`tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50 ${L}`,children:te}):b(ex,{testId:g,readonly:n,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,ref:t,showError:_,value:d,required:v,placeholder:f,autoComplete:y,autoFocus:S,id:h,type:w,disabled:C,step:T,min:E,max:D,maxLength:k,minLength:A,inputGroup:F,extraClassNames:`tw:flex tw:flex-1 tw:w-full tw:focus:z-30 ${m}`,...ee}),P.map((e,t)=>e?.variant===`button`?b(Kt,{extraClassNames:`$
58
+ `),()=>{m.contains(p)&&m.removeChild(p)}},[n]),b(ch,{isPresent:n,childRef:o,sizeRef:s,children:e.cloneElement(t,{ref:l})})}const uh=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=Au(dh),d=p(),f=!0,m=g(()=>(f=!1,{id:d,initial:n,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(m={...m}),g(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),e.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(t=b(lh,{isPresent:r,anchorX:c,root:l,children:t})),b(Nu.Provider,{value:m,children:t})};function dh(){return new Map}function fh(e=!0){let t=d(Nu);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=p();f(()=>{if(e)return i(a)},[e]);let o=u(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const ph=e=>e.key||``;function mh(e){let t=[];return n.forEach(e,e=>{l(e)&&t.push(e)}),t}const hh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=fh(o),f=g(()=>mh(e),[e]),p=o&&!l?[]:f.map(ph),m=_(!0),h=_(f),x=Au(()=>new Map),[S,C]=v(f),[w,T]=v(f);Mu(()=>{m.current=!1,h.current=f;for(let e=0;e<w.length;e++){let t=ph(w[e]);p.includes(t)?x.delete(t):x.get(t)!==!0&&x.set(t,!1)}},[w,p.length,p.join(`-`)]);let E=[];if(f!==S){let e=[...f];for(let t=0;t<w.length;t++){let n=w[t],r=ph(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return a===`wait`&&E.length&&(e=E),T(mh(e)),C(f),null}let{forceRender:D}=d(ku);return b(y,{children:w.map(e=>{let d=ph(e),g=o&&!l?!1:f===w||p.includes(d),_=()=>{if(x.has(d))x.set(d,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(D?.(),T(h.current),o&&u?.(),r&&r())};return b(uh,{isPresent:g,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:g?void 0:_,anchorX:s,children:e},d)})})},gh=o({strict:!1}),_h={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`]},vh={};for(let e in _h)vh[e]={isEnabled:t=>_h[e].some(e=>!!t[e])};function yh(e){for(let t in e)vh[t]={...vh[t],...e[t]}}const bh=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.ignoreStrict.viewport`.split(`.`));function xh(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||bh.has(e)}function Sh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ch=j((()=>{})),wh={};ee(wh,{default:()=>Eh});var Th,Eh,Dh=j((()=>{Ch(),Th=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Eh=Sh(function(e){return Th.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let Oh=e=>!xh(e);function kh(e){typeof e==`function`&&(Oh=t=>t.startsWith(`on`)?!xh(t):e(t))}try{kh((Dh(),F(wh)).default)}catch{}function Ah(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(Oh(i)||n===!0&&xh(i)||!t&&!xh(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const jh=o({});function Mh(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Nh(e){return typeof e==`string`||Array.isArray(e)}const Ph=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Fh=[`initial`,...Ph];function Ih(e){return Mh(e.animate)||Fh.some(t=>Nh(e[t]))}function Lh(e){return!!(Ih(e)||e.variants)}function Rh(e,t){if(Ih(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Nh(t)?t:void 0,animate:Nh(n)?n:void 0}}return e.inherit===!1?{}:t}function zh(e){let{initial:t,animate:n}=Rh(e,d(jh));return g(()=>({initial:t,animate:n}),[Bh(t),Bh(n)])}function Bh(e){return Array.isArray(e)?e.join(` `):e}function Vh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hh={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(W.test(e))e=parseFloat(e);else return e;let n=Vh(e,t.target.x),r=Vh(e,t.target.y);return`${n}% ${r}%`}},Uh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=ff.parse(e);if(i.length>5)return r;let a=ff.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=G(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Wh={borderRadius:{...Hh,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Hh,borderTopRightRadius:Hh,borderBottomLeftRadius:Hh,borderBottomRightRadius:Hh,boxShadow:Uh};function Gh(e,{layout:t,layoutId:n}){return bp.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Wh[e]||e===`opacity`)}const Kh={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},qh=yp.length;function Jh(e,t,n){let r=``,i=!0;for(let a=0;a<qh;a++){let o=yp[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=km(s,xm[o]);if(!c){i=!1;let t=Kh[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Yh(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(bp.has(e)){o=!0;continue}else if(Od(e)){i[e]=n;continue}else{let t=km(n,xm[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Jh(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const Xh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Zh(e,t,n){for(let r in t)!th(t[r])&&!Gh(r,n)&&(e[r]=t[r])}function Qh({transformTemplate:e},t){return g(()=>{let n=Xh();return Yh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $h(e,t){let n=e.style||{},r={};return Zh(r,n,e),Object.assign(r,Qh(e,t)),r}function eg(e,t){let n={},r=$h(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const tg={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ng={offset:`strokeDashoffset`,array:`strokeDasharray`};function rg(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?tg:ng;e[a.offset]=W.transform(-r);let o=W.transform(t),s=W.transform(n);e[a.array]=`${o} ${s}`}function ig(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Yh(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&rg(d,i,a,o,!1)}const ag=()=>({...Xh(),attrs:{}}),og=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function sg(e,t,n,r){let i=g(()=>{let n=ag();return ig(n,t,og(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Zh(t,e.style,e),i.style={...t,...i.style}}return i}const cg=[`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 lg(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(cg.indexOf(e)>-1||/[A-Z]/u.test(e))}function ug(e,t,n,{latestValues:r},a,o=!1){let c=lg(e)?sg:eg,l=c(t,r,a,e),u=Ah(t,typeof e==`string`,o),d=e===i?{}:{...u,...l,ref:n},{children:f}=t,p=g(()=>th(f)?f.get():f,[f]);return s(e,{...d,children:p})}function dg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function fg(e,t,n,r){if(typeof t==`function`){let[i,a]=dg(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=dg(r);t=t(n===void 0?e.custom:n,i,a)}return t}function pg(e){return th(e)?e.get():e}function mg({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:hg(n,r,i,e),renderState:t()};return a}function hg(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=pg(a[e]);let{initial:o,animate:s}=e,c=Ih(e),l=Lh(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Mh(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=fg(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const gg=e=>(t,n)=>{let r=d(jh),i=d(Nu),a=()=>mg(e,t,r,i);return n?a():Au(a)};function _g(e,t,n){let{style:r}=e,i={};for(let a in r)(th(r[a])||t.style&&th(t.style[a])||Gh(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const vg=gg({scrapeMotionValuesFromProps:_g,createRenderState:Xh});function yg(e,t,n){let r=_g(e,t,n);for(let n in e)if(th(e[n])||th(t[n])){let t=yp.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const bg=gg({scrapeMotionValuesFromProps:yg,createRenderState:ag}),xg=Symbol.for(`motionComponentSymbol`);function Sg(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Cg(e,t,n){return u(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Sg(n)&&(n.current=r))},[t])}const wg=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Tg=`data-`+wg(`framerAppearId`),Eg=o({});function Dg(e,t,n,r,i){let{visualElement:a}=d(jh),o=d(gh),s=d(Nu),c=d(ih).reducedMotion,l=_(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,p=d(Eg);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&Og(l.current,n,i,p);let h=_(!1);m(()=>{u&&h.current&&u.update(n,s)});let g=n[Tg],v=_(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Mu(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),f(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),u.enteringChildren=void 0)}),u}function Og(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:kg(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Sg(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function kg(e){if(e)return e.options.allowProjection===!1?kg(e.parent):e.projection}function Ag(e,{forwardMotionProps:t=!1}={},n,r){n&&yh(n);let i=lg(e)?bg:vg;function a(a,o){let s,c={...d(ih),...a,layoutId:jg(a)},{isStatic:l}=c,u=zh(a),f=i(a,l);if(!l&&ju){Mg(c,n);let t=Ng(c);s=t.MeasureLayout,u.visualElement=Dg(e,f,c,r,t.ProjectionNode)}return x(jh.Provider,{value:u,children:[s&&u.visualElement?b(s,{visualElement:u.visualElement,...c}):null,ug(e,a,Cg(f,u.visualElement,o),f,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=c(a);return o[xg]=e,o}function jg({layoutId:e}){let t=d(ku).id;return t&&e!==void 0?t+`-`+e:e}function Mg(e,t){d(gh).strict}function Ng(e){let{drag:t,layout:n}=vh;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Pg(e,t){if(typeof Proxy>`u`)return Ag;let n=new Map,r=(n,r)=>Ag(n,r,e,t),i=(e,t)=>r(e,t);return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Ag(a,void 0,e,t)),n.get(a))})}function Fg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ig({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Lg(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rg(e){return e===void 0||e===1}function zg({scale:e,scaleX:t,scaleY:n}){return!Rg(e)||!Rg(t)||!Rg(n)}function Bg(e){return zg(e)||Vg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vg(e){return Hg(e.x)||Hg(e.y)}function Hg(e){return e&&e!==`0%`}function Ug(e,t,n){let r=e-n,i=t*r;return n+i}function Wg(e,t,n,r,i){return i!==void 0&&(e=Ug(e,i,r)),Ug(e,n,r)+t}function Gg(e,t=0,n=1,r,i){e.min=Wg(e.min,t,n,r,i),e.max=Wg(e.max,t,n,r,i)}function Kg(e,{x:t,y:n}){Gg(e.x,t.translate,t.scale,t.originPoint),Gg(e.y,n.translate,n.scale,n.originPoint)}const qg=.999999999999,Jg=1.0000000000001;function Yg(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Qg(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Kg(e,o)),r&&Bg(a.latestValues)&&Qg(e,a.latestValues))}t.x<Jg&&t.x>qg&&(t.x=1),t.y<Jg&&t.y>qg&&(t.y=1)}function Xg(e,t){e.min+=t,e.max+=t}function Zg(e,t,n,r,i=.5){let a=G(e.min,e.max,i);Gg(e,t,n,a,r)}function Qg(e,t){Zg(e.x,t.x,t.scaleX,t.scale,t.originX),Zg(e.y,t.y,t.scaleY,t.scale,t.originY)}function $g(e,t){return Fg(Lg(e.getBoundingClientRect(),t))}function e_(e,t,n){let r=$g(e,n),{scroll:i}=t;return i&&(Xg(r.x,i.offset.x),Xg(r.y,i.offset.y)),r}const t_=()=>({translate:0,scale:1,origin:0,originPoint:0}),n_=()=>({x:t_(),y:t_()}),r_=()=>({min:0,max:0}),i_=()=>({x:r_(),y:r_()}),a_={current:null},o_={current:!1};function s_(){if(o_.current=!0,ju)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>a_.current=e.matches;e.addEventListener(`change`,t),t()}else a_.current=!1}const c_=new WeakMap;function l_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(th(i))e.addValue(r,i);else if(th(a))e.addValue(r,Pm(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Pm(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const u_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var d_=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Np,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Td.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,U.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=Ih(t),this.isVariantNode=Lh(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&th(t)&&t.set(s[e])}}mount(e){this.current=e,c_.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((e,t)=>this.bindToMotionValue(t,e)),o_.current||s_(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:a_.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),bd(this.notifyUpdate),bd(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=bp.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&U.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}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 vh){let t=vh[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<u_.length;t++){let n=u_[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=l_(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 t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Pm(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Ru(n)||Bu(n))?n=parseFloat(n):!rh(n)&&ff.test(t)&&(n=wm(e,t)),this.setBaseTarget(e,th(n)?n.get():n)),th(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=fg(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!th(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ku),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Fm.render(this.render)}},f_=class extends d_{constructor(){super(...arguments),this.KeyframeResolver=Dm}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;th(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function p_(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function m_(e){return window.getComputedStyle(e)}var h_=class extends f_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=p_}readValueFromInstance(e,t){if(bp.has(t))return this.projection?.isProjecting?hp(t):_p(e,t);{let n=m_(e),r=(Od(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return $g(e,t)}build(e,t,n){Yh(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return _g(e,t,n)}};const g_=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function __(e,t,n,r){for(let n in p_(e,t,void 0,r),t.attrs)e.setAttribute(g_.has(n)?n:wg(n),t.attrs[n])}var v_=class extends f_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=i_}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(bp.has(t)){let e=Cm(t);return e&&e.default||0}return t=g_.has(t)?t:wg(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yg(e,t,n)}build(e,t,n){ig(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){__(e,t,n,r)}mount(e){this.isSVGTag=og(e.tagName),super.mount(e)}};const y_=(e,t)=>lg(e)?new v_(t):new h_(t,{allowProjection:e!==i});function b_(e,t,n){let r=e.getProps();return fg(r,t,n===void 0?r.custom:n,e)}const x_=e=>Array.isArray(e);function S_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pm(n))}function C_(e){return x_(e)?e[e.length-1]||0:e}function w_(e,t){let n=b_(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=C_(a[t]);S_(e,t,n)}}function T_(e){return!!(th(e)&&e.add)}function E_(e,t){let n=e.getValue(`willChange`);if(T_(n))return n.add(t);if(!n&&Lu.WillChange){let n=new Lu.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function D_(e){return e.props[Tg]}const O_=e=>e!==null;function k_(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(O_),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const A_={type:`spring`,stiffness:500,damping:25,restSpeed:10},j_=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),M_={type:`keyframes`,duration:.8},N_={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},P_=(e,{keyframes:t})=>t.length>2?M_:bp.has(e)?e.startsWith(`scale`)?j_(t[1]):A_:N_;function F_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const I_=(e,t,n,r={},i,a)=>o=>{let s=cm(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=qu(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};F_(s)||Object.assign(u,P_(e,u)),u.duration&&=qu(u.duration),u.repeatDelay&&=qu(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(em(u),u.delay===0&&(d=!0)),(Lu.instantAnimations||Lu.skipAnimations)&&(d=!0,em(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=k_(u.keyframes,s);if(e!==void 0){U.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ap(u):new im(u)};function L_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function R_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&L_(l,t))continue;let o={delay:n,...cm(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=D_(e);if(n){let e=window.MotionHandoffAnimation(n,t,U);e!==null&&(o.startTime=e,d=!0)}}E_(e,t),r.start(I_(t,r,i,e.shouldReduceMotion&&lm.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{U.update(()=>{o&&w_(e,o)})}),c}function z_(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r,c=typeof n==`function`;return c?n(a,o):i===1?a*r:s-a*r}function B_(e,t,n={}){let r=b_(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(R_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return V_(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function V_(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(B_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+z_(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function H_(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>B_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=B_(e,t,n);else{let i=typeof t==`function`?b_(e,t,n.custom):t;r=Promise.all(R_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function U_(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const W_=Fh.length;function G_(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&G_(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<W_;n++){let r=Fh[n],i=e.props[r];(Nh(i)||i===!1)&&(t[r]=i)}return t}const K_=[...Ph].reverse(),q_=Ph.length;function J_(e){return t=>Promise.all(t.map(({animation:t,options:n})=>H_(e,t,n)))}function Y_(e){let t=J_(e),n=Q_(),r=!0,i=t=>(n,r)=>{let i=b_(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=G_(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<q_;t++){let f=K_[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Nh(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||Mh(m)||typeof m==`boolean`)continue;let v=X_(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=x_(t)&&x_(n)?!U_(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v,D=!E||b;y&&D&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=b_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=z_(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=b_(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Q_()}}}function X_(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!U_(t,e):!1}function Z_(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Q_(){return{animate:Z_(!0),whileInView:Z_(),whileHover:Z_(),whileTap:Z_(),whileDrag:Z_(),whileFocus:Z_(),exit:Z_()}}var $_=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},ev=class extends $_{constructor(e){super(e),e.animationState||=Y_(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Mh(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let tv=0;var nv=class extends $_{constructor(){super(...arguments),this.id=tv++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};const rv={animation:{Feature:ev},exit:{Feature:nv}};function iv(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function av(e){return{point:{x:e.pageX,y:e.pageY}}}const ov=e=>t=>Wm(t)&&e(t,av(t));function sv(e,t,n,r){return iv(e,t,ov(n),r)}const cv=1e-4;1-cv,1+cv;const lv=.01;0-lv,0+lv;function uv(e){return e.max-e.min}function dv(e,t,n){return Math.abs(e-t)<=n}function fv(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=uv(n)/uv(t),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function pv(e,t,n,r){fv(e.x,t.x,n.x,r?r.originX:void 0),fv(e.y,t.y,n.y,r?r.originY:void 0)}function mv(e,t,n){e.min=n.min+t.min,e.max=e.min+uv(t)}function hv(e,t,n){mv(e.x,t.x,n.x),mv(e.y,t.y,n.y)}function gv(e,t,n){e.min=t.min-n.min,e.max=e.min+uv(t)}function _v(e,t,n){gv(e.x,t.x,n.x),gv(e.y,t.y,n.y)}function vv(e){return[e(`x`),e(`y`)]}const yv=({current:e})=>e?e.ownerDocument.defaultView:null,bv=(e,t)=>Math.abs(e-t);function xv(e,t){let n=bv(e.x,t.x),r=bv(e.y,t.y);return Math.sqrt(n**2+r**2)}var Sv=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Tv(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=xv(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=xd;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Cv(t,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Tv(e.type===`pointercancel`?this.lastMoveEventInfo:Cv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Wm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=av(e),s=Cv(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=xd;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Tv(s,this.history)),this.removeListeners=Wu(sv(this.contextWindow,`pointermove`,this.handlePointerMove),sv(this.contextWindow,`pointerup`,this.handlePointerUp),sv(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bd(this.updatePoint)}};function Cv(e,t){return t?{point:t(e.point)}:e}function wv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tv({point:e},t){return{point:e,delta:wv(e,Dv(t)),offset:wv(e,Ev(t)),velocity:Ov(t,.1)}}function Ev(e){return e[0]}function Dv(e){return e[e.length-1]}function Ov(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Dv(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qu(t)));)n--;if(!r)return{x:0,y:0};let a=Ju(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function kv(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?G(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Av(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function jv(e,{top:t,left:n,bottom:r,right:i}){return{x:Av(e.x,n,i),y:Av(e.y,t,r)}}function Mv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Nv(e,t){return{x:Mv(e.x,t.x),y:Mv(e.y,t.y)}}function Pv(e,t){let n=.5,r=uv(e),i=uv(t);return i>r?n=Gu(t.min,t.max-r,e.min):r>i&&(n=Gu(e.min,e.max-i,t.min)),Iu(0,1,n)}function Fv(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Iv=.35;function Lv(e=Iv){return e===!1?e=0:e===!0&&(e=Iv),{x:Rv(e,`left`,`right`),y:Rv(e,`top`,`bottom`)}}function Rv(e,t,n){return{min:zv(e,t),max:zv(e,n)}}function zv(e,t){return typeof e==`number`?e:e[t]||0}const Bv=new WeakMap;var Vv=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=i_(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(av(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zm(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Jd.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=uv(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&U.postRender(()=>i(e,t)),E_(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Uv(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>vv(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Sv(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:yv(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Hv(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=kv(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Sg(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=jv(n.layoutBox,e):this.constraints=!1,this.elastic=Lv(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&vv(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Fv(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sg(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=e_(n,r.root,this.visualElement.getTransformPagePoint()),a=Nv(r.layout.layoutBox,i);if(t){let e=t(Ig(a));this.hasMutatedConstraints=!!e,e&&(a=Fg(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=vv(o=>{if(!Hv(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return E_(this.visualElement,e),n.start(I_(e,n,0,t,this.visualElement,!1))}stopAnimation(){vv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){vv(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){vv(t=>{let{drag:n}=this.getProps();if(!Hv(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-G(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sg(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};vv(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Pv({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),vv(t=>{if(!Hv(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(G(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;Bv.set(this.visualElement,this);let e=this.visualElement.current,t=sv(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Sg(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(n);let a=iv(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(vv(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Iv,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Hv(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uv(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Wv=class extends $_{constructor(e){super(e),this.removeGroupControls=Hu,this.removeListeners=Hu,this.controls=new Vv(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Hu}unmount(){this.removeGroupControls(),this.removeListeners()}};const Gv=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};var Kv=class extends $_{constructor(){super(...arguments),this.removePointerDownListener=Hu}onPointerDown(e){this.session=new Sv(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Gv(e),onStart:Gv(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&U.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=sv(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const qv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Jv=!1;var Yv=class extends r{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Jv&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),qv.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,Jv=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||U.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Fm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Jv=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Xv(e){let[t,n]=fh(),r=d(ku);return b(Yv,{...e,layoutGroup:r,switchLayoutGroup:d(Eg),isPresent:t,safeToRemove:n})}function Zv(e,t,n){let r=th(e)?e:Pm(e);return r.start(I_(``,r,t,n)),r.animation}const Qv=(e,t)=>e.depth-t.depth;var $v=class{constructor(){this.children=[],this.isDirty=!1}add(e){Pu(this.children,e),this.isDirty=!0}remove(e){Fu(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Qv),this.isDirty=!1,this.children.forEach(e)}};function ey(e,t){let n=Td.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(bd(r),e(a-t))};return U.setup(r,!0),()=>bd(r)}const ty=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],ny=ty.length,ry=e=>typeof e==`string`?parseFloat(e):e,iy=e=>typeof e==`number`||W.test(e);function ay(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,sy(r)),e.opacityExit=G(t.opacity??1,0,cy(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<ny;i++){let a=`border${ty[i]}Radius`,o=oy(t,a),s=oy(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||iy(o)===iy(s);c?(e[a]=Math.max(G(ry(o),ry(s),r),0),(Jd.test(s)||Jd.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=G(t.rotate||0,n.rotate||0,r))}function oy(e,t){return e[t]===void 0?e.borderRadius:e[t]}const sy=ly(0,.5,od),cy=ly(.5,.95,Hu);function ly(e,t,n){return r=>r<e?0:r>t?1:n(Gu(e,t,r))}function uy(e,t){e.min=t.min,e.max=t.max}function dy(e,t){uy(e.x,t.x),uy(e.y,t.y)}function fy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function py(e,t,n,r,i){return e-=t,e=Ug(e,1/n,r),i!==void 0&&(e=Ug(e,1/i,r)),e}function my(e,t=0,n=1,r=.5,i,a=e,o=e){if(Jd.test(t)){t=parseFloat(t);let e=G(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=G(a.min,a.max,r);e===a&&(s-=t),e.min=py(e.min,t,n,s,i),e.max=py(e.max,t,n,s,i)}function hy(e,t,[n,r,i],a,o){my(e,t[n],t[r],t[i],t.scale,a,o)}const gy=[`x`,`scaleX`,`originX`],_y=[`y`,`scaleY`,`originY`];function vy(e,t,n,r){hy(e.x,t,gy,n?n.x:void 0,r?r.x:void 0),hy(e.y,t,_y,n?n.y:void 0,r?r.y:void 0)}function yy(e){return e.translate===0&&e.scale===1}function by(e){return yy(e.x)&&yy(e.y)}function xy(e,t){return e.min===t.min&&e.max===t.max}function Sy(e,t){return xy(e.x,t.x)&&xy(e.y,t.y)}function Cy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function wy(e,t){return Cy(e.x,t.x)&&Cy(e.y,t.y)}function Ty(e){return uv(e.x)/uv(e.y)}function Ey(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Dy=class{constructor(){this.members=[]}add(e){Pu(this.members,e),e.scheduleRender()}remove(e){if(Fu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function Oy(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const ky={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ay=[``,`X`,`Y`,`Z`];let jy=0;function My(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ny(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=D_(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,U,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ny(r)}function Py({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=jy++,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,_d.value&&(ky.nodes=ky.calculatedTargetDeltas=ky.calculatedProjections=0),this.nodes.forEach(Ly),this.nodes.forEach(Wy),this.nodes.forEach(Gy),this.nodes.forEach(Ry),_d.addProjectionMetrics&&_d.addProjectionMetrics(ky)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new $v)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ku),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=$m(t)&&!eh(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;U.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ey(i,250),qv.hasAnimatedSinceResize&&(qv.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Qy,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!wy(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...cm(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),bd(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(Ky),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ny(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Vy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Hy),this.nodes.forEach(Fy),this.nodes.forEach(Iy)):this.nodes.forEach(Vy),this.clearAllSnapshots();let t=Td.now();xd.delta=Iu(0,1e3/60,t-xd.timestamp),xd.timestamp=t,xd.isProcessing=!0,Sd.update.process(xd),Sd.preRender.process(xd),Sd.render.process(xd),xd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zy),this.sharedNodes.forEach(qy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!uv(this.snapshot.measuredBox.x)&&!uv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=i_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!by(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Bg(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),nb(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return i_();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(ib);if(!n){let{scroll:e}=this.root;e&&(Xg(t.x,e.offset.x),Xg(t.y,e.offset.y))}return t}removeElementScroll(e){let t=i_();if(dy(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&dy(t,e),Xg(t.x,i.offset.x),Xg(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=i_();dy(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Qg(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Bg(r.latestValues)&&Qg(n,r.latestValues)}return Bg(this.latestValues)&&Qg(n,this.latestValues),n}removeTransform(e){let t=i_();dy(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Bg(n.latestValues))continue;zg(n.latestValues)&&n.updateSnapshot();let r=i_(),i=n.measurePageBox();dy(r,i),vy(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Bg(this.latestValues)&&vy(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xd.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t,r=!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(r)return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=xd.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=i_(),this.targetWithTransforms=i_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):dy(this.target,this.layout.layoutBox),Kg(this.target,this.targetDelta)):dy(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),_d.value&&ky.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||zg(this.parent.latestValues)||Vg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i_(),this.relativeTargetOrigin=i_(),_v(this.relativeTargetOrigin,t,n),dy(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===xd.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;dy(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Yg(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=i_());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fy(this.prevProjectionDelta.x,this.projectionDelta.x),fy(this.prevProjectionDelta.y,this.projectionDelta.y)),pv(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ey(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ey(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),_d.value&&ky.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=n_(),this.projectionDelta=n_(),this.projectionDeltaWithTransform=n_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=n_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=i_(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(Zy));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;Jy(a.x,e.x,n),Jy(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(_v(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xy(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&Sy(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=i_(),dy(p,this.relativeTarget)),l&&(this.animationValues=i,ay(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(bd(this.pendingAnimation),void 0),this.pendingAnimation=U.update(()=>{qv.hasAnimatedSinceResize=!0,Ed.layout++,this.motionValue||=Pm(0),this.currentAnimation=Zv(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{Ed.layout--},onComplete:()=>{Ed.layout--,e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&rb(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||i_();let t=uv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=uv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}dy(t,n),Qg(t,i),pv(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Dy);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&My(`z`,e,r,this.animationValues);for(let t=0;t<Ay.length;t++)My(`rotate${Ay[t]}`,e,r,this.animationValues),My(`skew${Ay[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=pg(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=pg(t?.pointerEvents)||``),this.hasProjected&&!Bg(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Oy(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,Wh){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Wh[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?pg(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function Fy(e){e.updateLayout()}function Iy(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?vv(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=uv(r);r.min=n[e].min,r.max=r.min+i}):rb(i,t.layoutBox,n)&&vv(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=uv(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=n_();pv(o,n,t.layoutBox);let s=n_();a?pv(s,e.applyTransform(r,!0),t.measuredBox):pv(s,n,t.layoutBox);let c=!by(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=i_();_v(o,t.layoutBox,i.layoutBox);let s=i_();_v(s,n,a.layoutBox),wy(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ly(e){_d.value&&ky.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ry(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zy(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function Vy(e){e.isLayoutDirty=!1}function Hy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wy(e){e.resolveTargetDelta()}function Gy(e){e.calcProjection()}function Ky(e){e.resetSkewAndRotation()}function qy(e){e.removeLeadSnapshot()}function Jy(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yy(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function Xy(e,t,n,r){Yy(e.x,t.x,n.x,r),Yy(e.y,t.y,n.y,r)}function Zy(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qy={duration:.45,ease:[.4,0,.1,1]},$y=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),eb=$y(`applewebkit/`)&&!$y(`chrome/`)?Math.round:Hu;function tb(e){e.min=eb(e.min),e.max=eb(e.max)}function nb(e){tb(e.x),tb(e.y)}function rb(e,t,n){return e===`position`||e===`preserve-aspect`&&!dv(Ty(t),Ty(n),.2)}function ib(e){return e!==e.root&&e.scroll?.wasRoot}const ab=Py({attachResizeListener:(e,t)=>iv(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ob={current:void 0},sb=Py({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ob.current){let e=new ab({});e.mount(window),e.setOptions({layoutScroll:!0}),ob.current=e}return ob.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),cb={pan:{Feature:Kv},drag:{Feature:Wv,ProjectionNode:sb,MeasureLayout:Xv}};function lb(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&U.postRender(()=>a(t,av(t)))}var ub=class extends $_{mount(){let{current:e}=this.node;e&&(this.unmount=Hm(e,(e,t)=>(lb(this.node,t,`Start`),e=>lb(this.node,e,`End`))))}unmount(){}},db=class extends $_{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=Wu(iv(this.node.current,`focus`,()=>this.onFocus()),iv(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function fb(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&U.postRender(()=>a(t,av(t)))}var pb=class extends $_{mount(){let{current:e}=this.node;e&&(this.unmount=Qm(e,(e,t)=>(fb(this.node,t,`Start`),(e,{success:t})=>fb(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const mb=new WeakMap,hb=new WeakMap,gb=e=>{let t=mb.get(e.target);t&&t(e)},_b=e=>{e.forEach(gb)};function vb({root:e,...t}){let n=e||document;hb.has(n)||hb.set(n,{});let r=hb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(_b,{root:e,...t})),r[i]}function yb(e,t,n){let r=vb(t);return mb.set(e,n),r.observe(e),()=>{mb.delete(e),r.unobserve(e)}}const bb={some:0,all:1};var xb=class extends $_{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:bb[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return yb(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(Sb(e,t));n&&this.startObserver()}unmount(){}};function Sb({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Cb={inView:{Feature:xb},tap:{Feature:pb},focus:{Feature:db},hover:{Feature:ub}},wb={layout:{ProjectionNode:sb,MeasureLayout:Xv}},Tb={...rv,...Cb,...cb,...wb},Eb=Pg(Tb,y_),Db=({testId:e=`carousel-id`,activeIndex:t=0,extraClassNames:n=``,onSlide:r=()=>{},autoSlide:i,showIndicators:a=!0,continuous:o=!0,interval:s=4e3,prevIcon:c=`fc-arrow-dropdown tw:rotate-90`,nextIcon:l=`fc-arrow-dropdown tw:rotate-270`,showArrows:u=!0,iconExtraClassNames:d=``,carouselItems:p=[]})=>{let[m,h]=v(t),g=e=>{let t=(e+p.length)%p.length;h(t),r(t,t>m?`right`:`left`)};f(()=>{if(i){let e=setInterval(()=>{o||m<p.length-1?g(m+1):clearInterval(e)},s);return()=>clearInterval(e)}},[i,m,o,s,p.length]),f(()=>{t!==m&&h(t)},[t]);let _=()=>{if(m===0&&!o)return;let e=m-1;e<0&&(e=p.length-1),g(e)},y=()=>{if(m===p.length-1){if(!o)return;g(0)}else g(m+1)},S={type:`spring`,damping:20,stiffness:100},C={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:S},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:S})};return x(`div`,{"data-testid":e,className:`tw:flex tw:flex-col tw:items-center tw:justify-center tw:w-full tw:overflow-hidden ${n}`,children:[x(`div`,{className:`tw:flex tw:items-center tw:w-full tw:h-max tw:gap-1`,children:[u&&b(Kt,{icon:c,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:`${m===0&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:_}),b(`div`,{className:`tw:h-full tw:w-full tw:overflow-hidden`,children:b(Eb.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:C,className:`tw:w-full`,children:p[m]},m)}),u&&b(Kt,{icon:l,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:`${m===p.length-1&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:y})]}),a&&b(`div`,{className:`tw:flex tw:gap-1 tw:mt-2`,children:p.map((e,t)=>b(`div`,{className:`tw:w-2 tw:h-2 tw:rounded-full tw:cursor-pointer ${t===m?`tw:bg-sq-theme-dark`:`tw:bg-sq-darkish-gray`}`,onClick:()=>g(t)},t))})]})};var Ob=Db;const kb=`tw:appearance-none tw:border tw:h-3.5 tw:w-3.5 tw:shrink-0 tw:focus:ring-0 tw:focus:ring-offset-0 tw:outline-none tw:focus:outline-none tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:enabled:hover:bg-sq-dark-background tw:checked:text-white tw:checked:border-sq-text-color tw:checked:enabled:hover:border-sq-theme-dark tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background`,Ab=`tw:rounded ${kb}`,jb=`tw:rounded-full ${kb}`,Mb=e=>{let{type:t=`checkbox`,value:n,disabled:r=!1,label:i,onChange:a,onClick:o,onKeyDown:s,checked:c,defaultChecked:l,id:u,name:d,extraClassNames:f=``,extraLabelClassNames:m,testId:h,...g}=e,_=p(),v=u??`checkbox${_}`,y=Tt(g);return x(`span`,{className:`tw:flex ${f}`,children:[b(`input`,{value:n,type:t,"data-testid":h,name:d,id:v,readOnly:!a,checked:c,defaultChecked:l,className:`${t===`checkbox`?Ab:jb} ${r?`tw:cursor-not-allowed`:`tw:cursor-pointer`}`,disabled:r,onClick:o,onChange:a,onKeyDown:s,...y}),i&&b(`label`,{htmlFor:v,className:`tw:ml-1.5 tw:text-sm tw:-mt-0.5 ${m} ${r?`tw:cursor-not-allowed tw:dark:text-sq-fairly-dark-gray tw:text-sq-fairly-dark-gray`:`tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text`}`,children:i})]})},Nb=({isVisible:e,children:t})=>{let n=_(null),[r,i]=v(0);return f(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),b(hh,{initial:!1,children:e&&b(Eb.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:b(`div`,{ref:n,children:t})})})};var Pb=Nb;const Fb={sm:`tw:h-5 tw:w-5 tw:rounded`,md:`tw:h-6 tw:w-6 tw:rounded-md`,lg:`tw:h-8 tw:w-8 tw:rounded-lg`},Ib=c(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,id:a,testId:o},s){return b(`button`,{ref:s,"aria-label":n,className:`tw:cursor-pointer tw:border tw:border-gray-700 tw:dark:border-gray-500 tw:shadow-sm tw:focus-visible:outline-none ${Fb[r]} ${i}`,"data-testid":o,id:a,onClick:t,style:{backgroundColor:e},type:`button`})});var Lb=Ib;const Rb=[`tw:bg-sq-white tw:dark:bg-sq-dark-background`,`tw:border tw:border-solid tw:rounded-[0.5rem] tw:border-sq-disabled-gray tw:dark:border-gray-500`,`tw:relative tw:z-[1200] tw:min-w-6`,`tw:focus-visible:outline-none tw:outline-none`,`tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out`,`tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade`,`tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade`,`tw:text-sq-text-color tw:dark:text-sq-text-color-dark`].join(` `);function zb({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,id:o,testId:s,onOpen:c}){let l=p(),u=b(`label`,{className:`tw:cursor-pointer tw:whitespace-nowrap tw:text-sm tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,htmlFor:l,children:t}),d=b(Lb,{"aria-label":t,color:e,id:o??l,size:`sm`,onClick:c});return n?x(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[u,x(yu,{children:[b(bu,{asChild:!0,children:d}),b(Su,{align:i,className:Rb,"data-testid":s,side:r,sideOffset:2,children:n})]})]}):x(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[b(`span`,{className:`tw:cursor-pointer tw:whitespace-nowrap tw:text-sm tw:text-sq-text-color tw:dark:text-sq-text-color-dark`,children:t}),d]})}var Bb=zb;const Vb={normal:`tw:gap-2`,spacious:`tw:gap-3`},Hb=({title:e,children:t,onApply:n,onCancel:r,isApplyDisabled:i=!1,applyLabel:a=`Apply`,cancelLabel:o=`Cancel`,spacing:s=`normal`,extraClassNames:c=``,id:l,testId:u})=>x(`div`,{className:`tw:mt-3 tw:mb-1 tw:flex tw:w-full tw:max-w-md tw:flex-col tw:items-start tw:rounded-3xl tw:border tw:border-sq-tool-btn-border tw:dark:border-gray-500 tw:bg-sq-surface tw:dark:bg-sq-tools-background-dark tw:px-4 tw:py-3 tw:shadow-sm ${Vb[s]} ${c}`,"data-testid":u,id:l,children:[b(`span`,{className:`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,children:e}),t,x(`div`,{className:`tw:flex tw:w-full tw:max-w-full tw:flex-wrap tw:items-center tw:justify-end tw:gap-2`,children:[r&&b(Kt,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&b(Kt,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]});var Ub=Hb,Wb=P(Pt());const Gb={link:`tw:inline-flex tw:text-sq-theme-link tw:underline tw:underline-offset-2 tw:transition-colors hover:tw:text-sq-theme-dark focus-visible:tw:outline-none focus-visible:tw:ring-2 focus-visible:tw:ring-sq-theme-link focus-visible:tw:ring-offset-2`,icon:``},Kb=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,testId:a})=>x(y,{children:[t&&b(`span`,{className:`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,children:t}),b(`a`,{href:n,target:`_blank`,rel:`noopener`,className:(0,Wb.default)(Gb[e],i),"data-testid":a,children:r})]});var qb=Kb;function Jb(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Yb(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Jb(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Jb(e,null)}),t.clear()}}}function Xb(...e){return u(Yb(...e),e)}const Zb=(e,t)=>{let n;return typeof e==`number`&&e>0&&(n={width:`${e}px`}),typeof t==`number`&&t>0&&(n||={},n.height=`${t}px`),n},Qb=[`tw:border-sq-disabled-gray`,`tw:dark:border-sq-dark-disabled-gray`,`tw:hover:border-sq-theme-dark`,`tw:dark:hover:border-sq-theme-dark-dark`,`tw:dark:focus:border-sq-theme-dark-dark`,`tw:dark:active:border-sq-theme-darker`,`tw:focus:border-sq-theme-dark`,`tw:active:border-sq-theme-dark`].join(` `),$b={sm:`tw:text-sm`,lg:`tw:text-xl`},ex=c((e,t)=>{let{readonly:n=!1,disabled:r=!1,onChange:i,onPaste:a,onKeyUp:o,onFocus:s,onBlur:c,onKeyDown:l,id:u,name:d,size:p=`sm`,value:m,placeholder:h,extraClassNames:g,testId:S,type:C=`text`,inputGroup:w,step:T,showError:E,errorText:D,min:O,max:k,maxLength:A,minLength:j,required:M=!1,autoComplete:ee=`off`,inputWidth:N=void 0,inputHeight:P=void 0,autoFocus:F=!1,...I}=e,L=_(null),R=Xb(t,L),[te,z]=v(null),ne=Tt(I),B=_(F);f(()=>{B.current&&setTimeout(()=>{L.current?.focus()},0)},[]),f(()=>{let e=L.current;e&&C!==`number`&&C!==`email`&&e.setSelectionRange(te,te)},[t,te,m,C]);let re=e=>{z(e.target.selectionStart),i&&i(e)},ie=()=>C===`number`?O===void 0?!0:O%Number(T??1)===0:!1,ae=e=>{if(ie()){let t=e.currentTarget,n=t.value;t.defaultValue=``,t.value=t.validity.valid&&m!=null?`${m}`:n}c?.(e)};f(()=>{let e=L.current;C===`number`&&m!=null&&m!==e?.value&&e&&(e.value=`${m}`)},[m,C]);let oe=`tw:rounded-md`;w===`left`?oe=`tw:rounded-l-md tw:border-r-0 tw:focus:border-r tw:active:border-r`:w===`right`&&(oe=`tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l`);let se=`tw:h-8.5 tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:placeholder-gray-400! tw:dark:placeholder-sq-dark-text/30! specTextField ${$b[p]} ${g} tw:text-sq-text-color tw:disabled:text-sq-darkish-gray tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30 ${oe} ${E?`tw:border-sq-danger`:Qb} `,ce=Zb(N,P)?{style:Zb(N,P)}:{},le={};A&&(le.maxLength=A),j&&(le.minLength=j);let V=C===`number`?{defaultValue:m}:{value:m};return x(y,{children:[b(`input`,{ref:R,"data-testid":S,name:d,id:u,type:C,...V,className:se,placeholder:h,disabled:r,readOnly:n,autoComplete:ee,onChange:re,onPaste:a,onFocus:s,onBlur:ae,onKeyDown:l,onKeyUp:o,step:T,required:M,min:O,max:k,...le,...ce,...ne}),D&&E&&b(`div`,{className:`tw:text-sq-danger tw:text-xs tw:mt-1`,children:D})]})});ex.displayName=`TextField`;const tx=[`tw:border-sq-disabled-gray`,`tw:dark:border-sq-dark-disabled-gray`,`tw:dark:focus:border-sq-theme-darker`,`tw:dark:active:border-sq-theme-darker`,`tw:focus:border-sq-theme-dark`,`tw:active:border-sq-theme-dark`].join(` `),nx=c((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,value:d,placeholder:f,append:p=[],extraClassNames:m=``,id:h,testId:g,showError:_,required:v,autoComplete:y,autoFocus:S,disabled:C,type:w,step:T,min:E,max:D,field:O,maxLength:k,minLength:A,inputGroup:j,...M}=e,ee=Tt(M),N=`tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap ${m}`,P=p.filter(Boolean),F=j??(P.length>0?`left`:void 0),I=F===`left`?`tw:rounded-l-md tw:rounded-r-none`:F===`right`?`tw:rounded-r-md tw:rounded-l-none`:`tw:rounded-md`,L=`tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:p-1 tw:border-solid tw:border ${m} tw:text-sq-text-color tw:disabled:text-sq-darkish-gray tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray ${I} ${_?`tw:border-sq-danger`:tx} `,R=l(O)&&typeof O.type!=`string`,te=R?a(O,{inputGroup:F}):O;return x(`div`,{id:`input-group-${h}`,className:N,children:[O?b(`div`,{"data-testid":g,className:`tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50 ${L}`,children:te}):b(ex,{testId:g,readonly:n,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,ref:t,showError:_,value:d,required:v,placeholder:f,autoComplete:y,autoFocus:S,id:h,type:w,disabled:C,step:T,min:E,max:D,maxLength:k,minLength:A,inputGroup:F,extraClassNames:`tw:flex tw:flex-1 tw:w-full tw:focus:z-30 ${m}`,...ee}),P.map((e,t)=>e?.variant===`button`?b(Kt,{extraClassNames:`$
59
59
  index ? 'tw:-ml-px' : 'tw:ml-0'
60
60
  } tw:focus:z-40 tw:focus:border tw:rounded-none tw:last:rounded-r-md`,...e.buttonProps},t):b(`div`,{className:`${tx} ${t?`tw:-ml-px`:`tw:ml-0`} tw:flex tw:items-center tw:justify-center tw:rounded-none tw:last:rounded-r-md tw:active:z-30 tw:active:border tw:border`,children:e?.element},t))]})});nx.displayName=`InputGroup`;var rx=`Dialog`,[ix,ax]=R(rx),[ox,sx]=ix(rx),cx=t=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u,d]=fe({prop:i,defaultProp:a??!1,onChange:o,caller:rx});return b(ox,{scope:n,triggerRef:c,contentRef:l,contentId:we(),titleId:we(),descriptionId:we(),open:u,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};cx.displayName=rx;var lx=`DialogTrigger`,ux=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sx(lx,n),a=B(t,i.triggerRef);return b(H.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ax(i.open),...r,ref:a,onClick:V(e.onClick,i.onOpenToggle)})});ux.displayName=lx;var dx=`DialogPortal`,[fx,px]=ix(dx,{forceMount:void 0}),mx=t=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=t,o=sx(dx,n);return b(fx,{scope:n,forceMount:r,children:e.Children.map(i,e=>b(ve,{present:r||o.open,children:b(Sa,{asChild:!0,container:a,children:e})}))})};mx.displayName=dx;var hx=`DialogOverlay`,gx=e.forwardRef((e,t)=>{let n=px(hx,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=sx(hx,e.__scopeDialog);return a.modal?b(ve,{present:r||a.open,children:b(vx,{...i,ref:t})}):null});gx.displayName=hx;var _x=re(`DialogOverlay.RemoveScroll`),vx=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sx(hx,n);return b(ds,{as:_x,allowPinchZoom:!0,shards:[i.contentRef],children:b(H.div,{"data-state":Ax(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),yx=`DialogContent`,bx=e.forwardRef((e,t)=>{let n=px(yx,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=sx(yx,e.__scopeDialog);return b(ve,{present:r||a.open,children:a.modal?b(xx,{...i,ref:t}):b(Sx,{...i,ref:t})})});bx.displayName=yx;var xx=e.forwardRef((t,n)=>{let r=sx(yx,t.__scopeDialog),i=e.useRef(null),a=B(n,r.contentRef,i);return e.useEffect(()=>{let e=i.current;if(e)return Qa(e)},[]),b(Cx,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(t.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:V(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()}),onFocusOutside:V(t.onFocusOutside,e=>e.preventDefault())})}),Sx=e.forwardRef((t,n)=>{let r=sx(yx,t.__scopeDialog),i=e.useRef(!1),a=e.useRef(!1);return b(Cx,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),Cx=e.forwardRef((t,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=t,c=sx(yx,r),l=e.useRef(null),u=B(n,l);return pn(),x(y,{children:[b(yn,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:b(an,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ax(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),x(y,{children:[b(Px,{titleId:c.titleId}),b(Ix,{contentRef:l,descriptionId:c.descriptionId})]})]})}),wx=`DialogTitle`,Tx=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sx(wx,n);return b(H.h2,{id:i.titleId,...r,ref:t})});Tx.displayName=wx;var Ex=`DialogDescription`,Dx=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sx(Ex,n);return b(H.p,{id:i.descriptionId,...r,ref:t})});Dx.displayName=Ex;var Ox=`DialogClose`,kx=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=sx(Ox,n);return b(H.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})});kx.displayName=Ox;function Ax(e){return e?`open`:`closed`}var jx=`DialogTitleWarning`,[Mx,Nx]=L(jx,{contentName:yx,titleName:wx,docsSlug:`dialog`}),Px=({titleId:t})=>{let n=Nx(jx),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
61
61
 
@@ -69,7 +69,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
69
69
  - \`null\` or \`undefined\` if the progress is indeterminate.
70
70
 
71
71
  Defaulting to \`null\`.`}var AS=bS,jS=SS,MS=M(((exports,t)=>{(function(e){var n=/^\s+/,r=/\s+$/,i=0,a=e.round,o=e.min,s=e.max,c=e.random;function l(e,t){if(e||=``,t||={},e instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n=u(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),s=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=P(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`)`:`rgba(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:a(F(this._r,255)*100)+`%`,g:a(F(this._g,255)*100)+`%`,b:a(F(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+a(F(this._r,255)*100)+`%, `+a(F(this._g,255)*100)+`%, `+a(F(this._b,255)*100)+`%)`:`rgba(`+a(F(this._r,255)*100)+`%, `+a(F(this._g,255)*100)+`%, `+a(F(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:ee[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=l(e);n=`#`+v(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`);return i?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(e,t){if(typeof e==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=ne(e[r]));e=n}return l(e,t)};function u(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,c=!1,l=!1;return typeof e==`string`&&(e=oe(e)),typeof e==`object`&&(ae(e.r)&&ae(e.g)&&ae(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):ae(e.h)&&ae(e.s)&&ae(e.v)?(r=ne(e.s),i=ne(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):ae(e.h)&&ae(e.s)&&ae(e.l)&&(r=ne(e.s),a=ne(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=P(n),{ok:c,format:e.format||l,r:o(255,s(t.r,0)),g:o(255,s(t.g,0)),b:o(255,s(t.b,0)),a:n}}function d(e,t,n){return{r:F(e,255)*255,g:F(t,255)*255,b:F(n,255)*255}}function f(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=(r+i)/2;if(r==i)a=c=0;else{var u=r-i;switch(c=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,l}}function p(e,t,n){var r,i,a;e=F(e,360),t=F(t,100),n=F(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function m(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=r,u=r-i;if(c=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,v:l}}function h(t,n,r){t=F(t,360)*6,n=F(n,100),r=F(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6,u=[r,s,o,o,c,r][l],d=[c,r,r,s,o,o][l],f=[o,o,c,r,r,s][l];return{r:u*255,g:d*255,b:f*255}}function g(e,t,n,r){var i=[z(a(e).toString(16)),z(a(t).toString(16)),z(a(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function _(e,t,n,r,i){var o=[z(a(e).toString(16)),z(a(t).toString(16)),z(a(n).toString(16)),z(B(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(``)}function v(e,t,n,r){var i=[z(B(r)),z(a(e).toString(16)),z(a(t).toString(16)),z(a(n).toString(16))];return i.join(``)}l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:c(),g:c(),b:c()})};function y(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=I(n.s),l(n)}function b(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=I(n.s),l(n)}function x(e){return l(e).desaturate(100)}function S(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=I(n.l),l(n)}function C(e,t){t=t===0?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-a(255*-(t/100)))),n.g=s(0,o(255,n.g-a(255*-(t/100)))),n.b=s(0,o(255,n.b-a(255*-(t/100)))),l(n)}function w(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=I(n.l),l(n)}function T(e,t){var n=l(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,l(n)}function E(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function D(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function k(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t||=6,n||=30;var r=l(e).toHsl(),i=360/n,a=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(l(r));return a}function j(e,t){t||=6;for(var n=l(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(l({h:r,s:i,v:a})),a=(a+s)%1;return o}l.mix=function(e,t,n){n=n===0?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return l(o)},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(e,t,n){var r=l.readability(e,t),i,a;switch(a=!1,i=se(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},l.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var u=0;u<t.length;u++)a=l.readability(e,t[u]),a>i&&(i=a,r=l(t[u]));return l.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,l.mostReadable(e,[`#fff`,`#000`],n))};var M=l.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},ee=l.hexNames=N(M);function N(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(t,n){R(t)&&(t=`100%`);var r=te(t);return t=o(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function I(e){return o(1,s(0,e))}function L(e){return parseInt(e,16)}function R(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function te(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function z(e){return e.length==1?`0`+e:``+e}function ne(e){return e<=1&&(e=e*100+`%`),e}function B(t){return e.round(parseFloat(t)*255).toString(16)}function re(e){return L(e)/255}var ie=(function(){var e=`[-\\+]?\\d+%?`,t=`[-\\+]?\\d*\\.\\d+%?`,n=`(?:`+t+`)|(?:`+e+`)`,r=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`,i=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(n),rgb:RegExp(`rgb`+r),rgba:RegExp(`rgba`+i),hsl:RegExp(`hsl`+r),hsla:RegExp(`hsla`+i),hsv:RegExp(`hsv`+r),hsva:RegExp(`hsva`+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function ae(e){return!!ie.CSS_UNIT.exec(e)}function oe(e){e=e.replace(n,``).replace(r,``).toLowerCase();var t=!1;if(M[e])e=M[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var i;return(i=ie.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=ie.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=ie.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=ie.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=ie.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=ie.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=ie.hex8.exec(e))?{r:L(i[1]),g:L(i[2]),b:L(i[3]),a:re(i[4]),format:t?`name`:`hex8`}:(i=ie.hex6.exec(e))?{r:L(i[1]),g:L(i[2]),b:L(i[3]),format:t?`name`:`hex`}:(i=ie.hex4.exec(e))?{r:L(i[1]+``+i[1]),g:L(i[2]+``+i[2]),b:L(i[3]+``+i[3]),a:re(i[4]+``+i[4]),format:t?`name`:`hex8`}:(i=ie.hex3.exec(e))?{r:L(i[1]+``+i[1]),g:L(i[2]+``+i[2]),b:L(i[3]+``+i[3]),format:t?`name`:`hex`}:!1}function se(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}t!==void 0&&t.exports?t.exports=l:typeof define==`function`&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)})),NS=P(MS());const PS={duration:660,easing:`ease-in-out`,fill:`forwards`},FS=`tw:left-1 tw:text-xs tw:text-sq-text-color tw:dark:text-sq-dark-text tw:items-center tw:h-4.5`,IS=e=>{let{value:t,color:n=void 0,testId:r,label:i,extraClasses:a=``,labelClasses:o=``,valuesLength:s,max:c,index:l,totalValue:u,...d}=e,p=Tt(d),m=_(0),h=_(null),g=_(null),[y,x]=v(``),S=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,C=``;u>=c?l===0&&s===1?C=`tw:rounded-[0.9375rem]`:l===0?C=`tw:rounded-l-[0.9375rem]`:l===s-1&&(C=`tw:rounded-r-[0.9375rem]`):l===0&&(C=`tw:rounded-l-[0.9375rem]`);let w=n||void 0,T=n?``:`tw:bg-sq-theme-dark`,E=r?`progress-bar-indicator-${r}`:`progress-bar-indicator`,D=Number(t)/Number(c)*100;return f(()=>{if(!g.current)return;function e(){h.current&&=(h.current.cancel(),null)}let t=m.current;return e(),g.current.style.width=`${D}%`,!S&&D!==t&&(h.current=g.current.animate([{width:`${t}%`},{width:`${D}%`}],PS)),m.current=D,()=>e()},[D,S]),f(()=>{let e=e=>{let t=getComputedStyle(e),n=t.backgroundColor,r=(0,NS.default)(n).isDark()?`tw:text-sq-white tw:dark:text-sq-white`:`tw:text-sq-text-color tw:dark:text-sq-text-color`;x(r)};g.current&&e(g.current)},[n]),b(jS,{className:`tw:w-full tw:h-4.5 tw:flex tw:justify-center tw:items-center ${s===1?``:`tw:overflow-hidden`} ${C} ${T} ${a}`,...p,"data-qtip-text":d.tooltip?d.tooltip:`${t}%`,"data-segment-value":t,"data-testid":E,ref:g,style:{backgroundColor:w,width:S?`${D}%`:void 0},children:i?b(`span`,{className:`${FS} ${o} ${y} ${s===1?`tw:absolute tw:z-50`:``}`,children:i}):void 0})},LS=({values:e=[],max:t=100,containerExtraClasses:n=``,zeroValueLabel:r=`No progress yet`})=>{let i=e.reduce((e,{value:t})=>e+t,0);return b(AS,{className:`tw:relative tw:h-4.5 tw:w-full tw:overflow-hidden tw:rounded-[0.9375rem] tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray tw:flex tw:flex-1 ${n}`,max:t,value:i,children:i>0?e.map((n,r)=>s(IS,{...n,max:t,valuesLength:e.length,index:r,totalValue:i,key:r})):b(`div`,{className:`${FS} tw:mx-auto tw:overflow-hidden`,children:r})})};var RS=LS;function zS(e){return e.startsWith(`svgpath:`)}function BS(e){return zS(e)?e.substring(8):``}const VS=({onClick:e,icon:t,color:n,type:r=`default`,extraClassNames:i,viewBox:a=`0 0 19 19`,id:o,testId:s,customId:c,...l})=>{let u=`${e?`tw:cursor-pointer`:``} ${i} tw:focus:outline-none tw:focus-visible:outline-none
72
- tw:outline-none`,d=Tt(l),f=r===`default`?`currentColor`:`var(--theme-icon)`;return b(`div`,{onClick:e,...d,className:`svgContainer ${u}`,children:b(`svg`,{id:o,"data-customid":c,xmlns:`http://www.w3.org/2000/svg`,className:`tw:text-sq-theme-icon tw:dark:text-sq-white`,viewBox:a,fill:n||f,"data-testid":s,children:b(`path`,{d:BS(t)})})})};var HS=VS,US=P(Pt());const WS=e=>{let t=b(y,{});return e.icon&&(t=zS(e.icon)?b(HS,{icon:e.icon,extraClassNames:`${e.iconExtraClassNames}tw:p-1 tw:h-9 tw:w-9 tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white`,...e}):b(kt,{icon:e.icon,type:`text`,extraClassNames:`tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white tw:min-w-9 ${e.iconExtraClassNames}`})),x(`div`,{className:`tw:flex-row tw:flex tw:p-2.5 tw:pl-5 tw:w-150 tw:gap-4`,children:[b(`div`,{className:(0,US.default)(`tw:rounded-[0.1875rem] tw:h-9 tw:w-9 tw:bg-sq-theme-dark tw:flex tw:justify-center tw:items-center tw:mt-1.5`,e.iconContainerExtraClassNames),children:t}),x(`div`,{className:`tw:flex tw:flex-col tw:justify-center`,children:[b(`div`,{className:`tw:text-[20px] tw:font-semibold`,children:e.display}),b(`div`,{className:`tw:text-sq-13 tw:leading-4`,children:e.text})]})]})},GS=e=>{let t=b(y,{});return e.icon&&(t=zS(e.icon)?b(HS,{icon:e.icon,extraClassNames:`tw:w-4 tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`,type:`default`,...e}):b(kt,{icon:e.icon,type:`text`,extraClassNames:`tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`})),b(`div`,{className:`tw:flex-col tw:flex tw:p-2.5`,children:x(`div`,{className:`tw:flex tw:flex-row tw:gap-2 tw:items-end`,children:[b(`div`,{className:`tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center `,children:t}),b(`div`,{className:`tw:text-sq-13`,children:e.display})]})})},KS=e=>x(`div`,{className:`tw:flex-col tw:flex tw:justify-start tw:p-2.5 tw:font-normal tw:text-left tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:[b(`h5`,{className:`tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5`,children:e.display}),b(`div`,{className:`tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text tw:mt-1!`,children:e.text})]}),qS=[`tw:border-solid`,`tw:border`,`tw:rounded-md`,`tw:border-sq-disabled-gray`,`tw:dark:border-gray-500`].join(` `),JS=[`tw:bg-sq-white`,`tw:dark:bg-sq-dark-background`].join(` `),YS=[`tw:opacity-50`,`tw:cursor-not-allowed`].join(` `),XS=(e,t)=>{switch(e){case`create-workbench`:return b(WS,{...t});case`view-workbench`:return b(GS,{...t});case`insert-seeq-content`:return b(KS,{...t});default:return b(WS,{...t})}},ZS=({seeqActionDropdownItems:e,trigger:t,id:n,extraClassNames:r,containerTestId:i,disabled:a=!1,align:o=`end`,placement:s=`bottom`,placementOffset:c=5,alignOffset:l=-35,hasArrow:u=!1,onOpenChange:d,isOpen:f,setFocusOnTriggerOnClose:p=!0,keepFocusInsideDropdown:m=!0,variant:h,...g})=>{let _=Tt(g);return x(Al,{defaultOpen:!1,open:f,onOpenChange:d,modal:m,children:[b(jl,{id:n,"data-testid":n,className:`tw:border-none tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none`,asChild:!0,disabled:a,children:b(`div`,{..._,className:`tw:bg-transparent tw:flex tw:flex-col tw:items-center tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none ${a?YS:``} ${r||``}`,children:t})}),b(Nl,{sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!p&&e.preventDefault(),className:`tw:focus-visible:outline-none tw:outline-none`,children:x(`div`,{"data-testid":i,className:`${JS} tw:relative tw:z-[1200] tw:min-w-6 tw:py-2 tw:shadow-[0_4px_8px_rgba(0,0,0,0.2)] tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ${qS}`,children:[u&&b(Ll,{asChild:!0,children:b(`div`,{className:` tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500 tw:-mt-sq-7`})}),e.map((e,t)=>x(`div`,{children:[b(Fl,{onSelect:t=>{e.action(t)},className:`tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:relative tw:select-none tw:outline-none tw:data-[disabled]:text-sq-disabled-gray tw:data-[dim]:opacity-50 tw:aria-disabled:pointer-events-none`,"data-testid":e.testId,"data-dim":e.dim?``:void 0,disabled:!e.enabled,children:XS(h,e)}),e.divider&&b(Il,{"data-testid":`dropdown-divider-${t}`,className:`tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500 tw:my-2`})]},e.id??t))]})})]})};var QS=ZS;function $S({options:e,value:t,onChange:n,extraClassNames:r=``,id:i,testId:a,ariaLabel:o}){let s=`tw:flex tw:flex-wrap tw:gap-2 ${r}`;return b(`div`,{"aria-label":o,className:s,"data-testid":a,id:i,role:`group`,children:e.map(e=>{let r=e.value===t,i=`sq-segmented-control-pill tw:cursor-pointer tw:rounded-full tw:border tw:px-3 tw:py-1.5 tw:text-sm tw:shadow-sm tw:transition-all tw:duration-150 tw:ease-out tw:hover:-translate-y-px tw:hover:shadow-md tw:focus-visible:outline-none tw:focus-visible:ring-2 tw:focus-visible:ring-sq-theme-link/30 tw:focus-visible:ring-offset-1 tw:dark:focus-visible:ring-offset-sq-dark-background ${r?`sq-segmented-control-pill--active`:`sq-segmented-control-pill--inactive`}`;return b(`button`,{"aria-pressed":r,className:i,onClick:n?()=>n(e.value):void 0,type:`button`,children:e.label},String(e.value))})})}var eC=$S;function tC(e){"@babel/helpers - typeof";return tC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tC(e)}function nC(e,t){if(tC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(tC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rC(e){var t=nC(e,`string`);return tC(t)==`symbol`?t:t+``}function iC(e,t,n){return(t=rC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aC(Object(n),!0).forEach(function(t){iC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oC(e){if(Array.isArray(e))return e}function sC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function cC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lC(e,t){if(e){if(typeof e==`string`)return cC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cC(e,t):void 0}}function uC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ tw:outline-none`,d=Tt(l),f=r===`default`?`currentColor`:`var(--theme-icon)`;return b(`div`,{onClick:e,...d,className:`svgContainer ${u}`,children:b(`svg`,{id:o,"data-customid":c,xmlns:`http://www.w3.org/2000/svg`,className:`tw:text-sq-theme-icon tw:dark:text-sq-white`,viewBox:a,fill:n||f,"data-testid":s,children:b(`path`,{d:BS(t)})})})};var HS=VS,US=P(Pt());const WS=e=>{let t=b(y,{});return e.icon&&(t=zS(e.icon)?b(HS,{icon:e.icon,extraClassNames:`${e.iconExtraClassNames}tw:p-1 tw:h-9 tw:w-9 tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white`,...e}):b(kt,{icon:e.icon,type:`text`,extraClassNames:`tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white tw:min-w-9 ${e.iconExtraClassNames}`})),x(`div`,{className:`tw:flex-row tw:flex tw:p-2.5 tw:pl-5 tw:w-150 tw:gap-4`,children:[b(`div`,{className:(0,US.default)(`tw:rounded-[0.1875rem] tw:h-9 tw:w-9 tw:bg-sq-theme-dark tw:flex tw:justify-center tw:items-center tw:mt-1.5`,e.iconContainerExtraClassNames),children:t}),x(`div`,{className:`tw:flex tw:flex-col tw:justify-center`,children:[b(`div`,{className:`tw:text-[20px] tw:font-semibold`,children:e.display}),b(`div`,{className:`tw:text-sq-13 tw:leading-4`,children:e.text})]})]})},GS=e=>{let t=b(y,{});return e.icon&&(t=zS(e.icon)?b(HS,{icon:e.icon,extraClassNames:`tw:w-4 tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`,type:`default`,...e}):b(kt,{icon:e.icon,type:`text`,extraClassNames:`tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`})),b(`div`,{className:`tw:flex-col tw:flex tw:p-2.5`,children:x(`div`,{className:`tw:flex tw:flex-row tw:gap-2 tw:items-end`,children:[b(`div`,{className:`tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center `,children:t}),b(`div`,{className:`tw:text-sq-13`,children:e.display})]})})},KS=e=>x(`div`,{className:`tw:flex-col tw:flex tw:justify-start tw:p-2.5 tw:font-normal tw:text-left tw:text-sq-text-color tw:dark:text-sq-dark-text`,children:[b(`h5`,{className:`tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5`,children:e.display}),b(`div`,{className:`tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text tw:mt-1!`,children:e.text})]}),qS=[`tw:border-solid`,`tw:border`,`tw:rounded-md`,`tw:border-sq-disabled-gray`,`tw:dark:border-gray-500`].join(` `),JS=[`tw:bg-sq-white`,`tw:dark:bg-sq-dark-background`].join(` `),YS=[`tw:opacity-50`,`tw:cursor-not-allowed`].join(` `),XS=(e,t)=>{switch(e){case`create-workbench`:return b(WS,{...t});case`view-workbench`:return b(GS,{...t});case`insert-seeq-content`:return b(KS,{...t});default:return b(WS,{...t})}},ZS=({seeqActionDropdownItems:e,trigger:t,id:n,extraClassNames:r,containerTestId:i,disabled:a=!1,align:o=`end`,placement:s=`bottom`,placementOffset:c=5,alignOffset:l=-35,hasArrow:u=!1,onOpenChange:d,isOpen:f,setFocusOnTriggerOnClose:p=!0,keepFocusInsideDropdown:m=!0,variant:h,...g})=>{let _=Tt(g);return x(Al,{defaultOpen:!1,open:f,onOpenChange:d,modal:m,children:[b(jl,{id:n,"data-testid":n,className:`tw:border-none tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none`,asChild:!0,disabled:a,children:b(`div`,{..._,className:`tw:bg-transparent tw:flex tw:flex-col tw:items-center tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none ${a?YS:``} ${r||``}`,children:t})}),b(Nl,{sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!p&&e.preventDefault(),className:`tw:focus-visible:outline-none tw:outline-none`,children:x(`div`,{"data-testid":i,className:`${JS} tw:relative tw:z-[1200] tw:min-w-6 tw:py-2 tw:shadow-[0_4px_8px_rgba(0,0,0,0.2)] tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ${qS}`,children:[u&&b(Ll,{asChild:!0,children:b(`div`,{className:` tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500 tw:-mt-sq-7`})}),e.map((e,t)=>x(`div`,{children:[b(Fl,{onSelect:t=>{e.action(t)},className:`tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:relative tw:select-none tw:outline-none tw:data-[disabled]:text-sq-disabled-gray tw:data-[dim]:opacity-50 tw:aria-disabled:pointer-events-none`,"data-testid":e.testId,"data-dim":e.dim?``:void 0,disabled:!e.enabled,children:XS(h,e)}),e.divider&&b(Il,{"data-testid":`dropdown-divider-${t}`,className:`tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500 tw:my-2`})]},e.id??t))]})})]})};var QS=ZS;function $S({options:e,value:t,onChange:n,extraClassNames:r=``,id:i,testId:a,ariaLabel:o}){let s=`tw:flex tw:flex-wrap tw:gap-2 ${r}`;return b(`div`,{"aria-label":o,className:s,"data-testid":a,id:i,role:`group`,children:e.map(e=>{let r=e.value===t,i=`sq-segmented-control-pill tw:cursor-pointer tw:rounded-full tw:border tw:px-3 tw:py-1.5 tw:text-sm tw:transition-all tw:duration-150 tw:ease-out tw:focus-visible:outline-none tw:focus-visible:ring-2 tw:focus-visible:ring-sq-theme-link/30 tw:focus-visible:ring-offset-1 tw:dark:focus-visible:ring-offset-sq-dark-background ${r?`sq-segmented-control-pill--active`:`sq-segmented-control-pill--inactive`}`;return b(`button`,{"aria-pressed":r,className:i,onClick:n?()=>n(e.value):void 0,type:`button`,children:e.label},String(e.value))})})}var eC=$S;function tC(e){"@babel/helpers - typeof";return tC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tC(e)}function nC(e,t){if(tC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(tC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rC(e){var t=nC(e,`string`);return tC(t)==`symbol`?t:t+``}function iC(e,t,n){return(t=rC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aC(Object(n),!0).forEach(function(t){iC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oC(e){if(Array.isArray(e))return e}function sC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function cC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lC(e,t){if(e){if(typeof e==`string`)return cC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cC(e,t):void 0}}function uC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
73
73
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dC(e,t){return oC(e)||sC(e,t)||lC(e,t)||uC()}function fC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pC(e,t){if(e==null)return{};var n,r,i=fC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var mC=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function hC(e){var t=e.defaultInputValue,n=t===void 0?``:t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,m=e.value,h=pC(e,mC),g=v(s===void 0?n:s),_=dC(g,2),y=_[0],b=_[1],x=v(c===void 0?i:c),S=dC(x,2),C=S[0],w=S[1],T=v(m===void 0?o:m),E=dC(T,2),D=E[0],O=E[1],k=u(function(e,t){typeof l==`function`&&l(e,t),O(e)},[l]),A=u(function(e,t){var n;typeof d==`function`&&(n=d(e,t)),b(n===void 0?e:n)},[d]),j=u(function(){typeof p==`function`&&p(),w(!0)},[p]),M=u(function(){typeof f==`function`&&f(),w(!1)},[f]),ee=s===void 0?y:s,N=c===void 0?C:c,P=m===void 0?D:m;return q(q({},h),{},{inputValue:ee,menuIsOpen:N,onChange:k,onInputChange:A,onMenuClose:M,onMenuOpen:j,value:P})}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(null,arguments)}function gC(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,rC(r.key),r)}}function vC(e,t,n){return t&&_C(e.prototype,t),n&&_C(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yC(e,t){return yC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yC(e,t)}function bC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&yC(e,t)}function xC(e){return xC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xC(e)}function SC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SC=function(){return!!e})()}function CC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wC(e,t){if(t&&(tC(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return CC(e)}function TC(e){var t=SC();return function(){var n,r=xC(e);if(t){var i=xC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return wC(this,n)}}function EC(e){if(Array.isArray(e))return cC(e)}function DC(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function OC(){throw TypeError(`Invalid attempt to spread non-iterable instance.
74
74
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kC(e){return EC(e)||DC(e)||lC(e)||OC()}var AC=!1;function jC(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function MC(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var NC=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!AC:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(MC(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=jC(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return(t=e.parentNode)?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),PC=`-ms-`,FC=`-moz-`,Y=`-webkit-`,IC=`comm`,LC=`rule`,RC=`decl`,zC=`@import`,BC=`@keyframes`,VC=`@layer`,HC=Math.abs,UC=String.fromCharCode,WC=Object.assign;function GC(e,t){return YC(e,0)^45?(((t<<2^YC(e,0))<<2^YC(e,1))<<2^YC(e,2))<<2^YC(e,3):0}function KC(e){return e.trim()}function qC(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,n){return e.replace(t,n)}function JC(e,t){return e.indexOf(t)}function YC(e,t){return e.charCodeAt(t)|0}function XC(e,t,n){return e.slice(t,n)}function ZC(e){return e.length}function QC(e){return e.length}function $C(e,t){return t.push(e),e}function ew(e,t){return e.map(t).join(``)}var tw=1,nw=1,rw=0,iw=0,aw=0,ow=``;function sw(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:tw,column:nw,length:o,return:``}}function cw(e,t){return WC(sw(``,null,null,``,null,null,0),e,{length:-e.length},t)}function lw(){return aw}function uw(){return aw=iw>0?YC(ow,--iw):0,nw--,aw===10&&(nw=1,tw--),aw}function dw(){return aw=iw<rw?YC(ow,iw++):0,nw++,aw===10&&(nw=1,tw++),aw}function fw(){return YC(ow,iw)}function pw(){return iw}function mw(e,t){return XC(ow,e,t)}function hw(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function gw(e){return tw=nw=1,rw=ZC(ow=e),iw=0,[]}function _w(e){return ow=``,e}function vw(e){return KC(mw(iw-1,xw(e===91?e+2:e===40?e+1:e)))}function yw(e){for(;(aw=fw())&&aw<33;)dw();return hw(e)>2||hw(aw)>3?``:` `}function bw(e,t){for(;--t&&dw()&&!(aw<48||aw>102||aw>57&&aw<65||aw>70&&aw<97););return mw(e,pw()+(t<6&&fw()==32&&dw()==32))}function xw(e){for(;dw();)switch(aw){case e:return iw;case 34:case 39:e!==34&&e!==39&&xw(aw);break;case 40:e===41&&xw(e);break;case 92:dw();break}return iw}function Sw(e,t){for(;dw()&&e+aw!==57&&!(e+aw===84&&fw()===47););return`/*`+mw(t,iw-1)+`*`+UC(e===47?e:dw())}function Cw(e){for(;!hw(fw());)dw();return mw(e,iw)}function ww(e){return _w(Tw(``,null,null,null,[``],e=gw(e),0,[0],e))}function Tw(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=dw()){case 40:if(m!=108&&YC(C,d-1)==58){JC(C+=X(vw(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=vw(v);break;case 9:case 10:case 13:case 32:C+=yw(m);break;case 92:C+=bw(pw()-1,7);continue;case 47:switch(fw()){case 42:case 47:$C(Dw(Sw(dw(),pw()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=ZC(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=X(C,/\f/g,``)),p>0&&ZC(C)-d&&$C(p>32?Ow(C+`;`,r,n,d-1):Ow(X(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if($C(S=Ew(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Tw(C,t,S,S,b,a,d,s,x);else switch(f===99&&YC(C,3)===110?100:f){case 100:case 108:case 109:case 115:Tw(e,S,S,r&&$C(Ew(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Tw(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+ZC(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&uw()==125)continue}switch(C+=UC(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(ZC(C)-1)*_,_=1;break;case 64:fw()===45&&(C+=vw(dw())),f=fw(),u=d=ZC(y=C+=Cw(pw())),v++;break;case 45:m===45&&ZC(C)==2&&(h=0)}}return a}function Ew(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=QC(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=XC(e,d+1,d=HC(h=o[m])),y=e;_<p;++_)(y=KC(h>0?f[_]+` `+v:X(v,/&\f/g,f[_])))&&(c[g++]=y);return sw(e,t,n,i===0?LC:s,c,l,u)}function Dw(e,t,n){return sw(e,t,n,IC,UC(lw()),XC(e,2,-2),0)}function Ow(e,t,n,r){return sw(e,t,n,RC,XC(e,0,r),XC(e,r+1,-1),r)}function kw(e,t){for(var n=``,r=QC(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Aw(e,t,n,r){switch(e.type){case VC:if(e.children.length)break;case zC:case RC:return e.return=e.return||e.value;case IC:return``;case BC:return e.return=e.value+`{`+kw(e.children,r)+`}`;case LC:e.value=e.props.join(`,`)}return ZC(n=kw(e.children,r))?e.return=e.value+`{`+n+`}`:``}function jw(e){var t=QC(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Mw(e){return function(t){t.root||(t=t.return)&&e(t)}}var Nw=function(e,t,n){for(var r=0,i=0;r=i,i=fw(),r===38&&i===12&&(t[n]=1),!hw(i);)dw();return mw(e,iw)},Pw=function(e,t){var n=-1,r=44;do switch(hw(r)){case 0:r===38&&fw()===12&&(t[n]=1),e[n]+=Nw(iw-1,t,n);break;case 2:e[n]+=vw(r);break;case 4:if(r===44){e[++n]=fw()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=UC(r)}while(r=dw());return e},Fw=function(e,t){return _w(Pw(gw(e),t))},Iw=new WeakMap,Lw=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Iw.get(n))&&!r){Iw.set(e,!0);for(var i=[],a=Fw(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Rw=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function zw(e,t){switch(GC(e,t)){case 5103:return Y+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+FC+e+PC+e+e;case 6828:case 4268:return Y+e+PC+e+e;case 6165:return Y+e+PC+`flex-`+e+e;case 5187:return Y+e+X(e,/(\w+).+(:[^]+)/,Y+`box-$1$2`+PC+`flex-$1$2`)+e;case 5443:return Y+e+PC+`flex-item-`+X(e,/flex-|-self/,``)+e;case 4675:return Y+e+PC+`flex-line-pack`+X(e,/align-content|flex-|-self/,``)+e;case 5548:return Y+e+PC+X(e,`shrink`,`negative`)+e;case 5292:return Y+e+PC+X(e,`basis`,`preferred-size`)+e;case 6060:return Y+`box-`+X(e,`-grow`,``)+Y+e+PC+X(e,`grow`,`positive`)+e;case 4554:return Y+X(e,/([^-])(transform)/g,`$1`+Y+`$2`)+e;case 6187:return X(X(X(e,/(zoom-|grab)/,Y+`$1`),/(image-set)/,Y+`$1`),e,``)+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,Y+`box-pack:$3`+PC+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+Y+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,Y+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ZC(e)-1-t>6)switch(YC(e,t+1)){case 109:if(YC(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,`$1`+Y+`$2-$3$1`+FC+(YC(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~JC(e,`stretch`)?zw(X(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(YC(e,t+1)!==115)break;case 6444:switch(YC(e,ZC(e)-3-(~JC(e,`!important`)&&10))){case 107:return X(e,`:`,`:`+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Y+(YC(e,14)===45?`inline-`:``)+`box$3$1`+Y+`$2$3$1`+PC+`$2box$3`)+e}break;case 5936:switch(YC(e,t+11)){case 114:return Y+e+PC+X(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Y+e+PC+X(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Y+e+PC+X(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Y+e+PC+e+e}return e}var Bw=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case RC:e.return=zw(e.value,e.length);break;case BC:return kw([cw(e,{value:X(e.value,`@`,`@`+Y)})],r);case LC:if(e.length)return ew(e.props,function(t){switch(qC(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return kw([cw(e,{props:[X(t,/:(read-\w+)/,`:`+FC+`$1`)]})],r);case`::placeholder`:return kw([cw(e,{props:[X(t,/:(plac\w+)/,`:`+Y+`input-$1`)]}),cw(e,{props:[X(t,/:(plac\w+)/,`:`+FC+`$1`)]}),cw(e,{props:[X(t,/:(plac\w+)/,PC+`input-$1`)]})],r)}return``})}},Vw=[Bw],Hw=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){var t=e.getAttribute(`data-emotion`);t.indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Vw,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Lw,Rw],l,u=[Aw,Mw(function(e){l.insert(e)})],d=jw(c.concat(r,u)),f=function(e){return kw(ww(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new NC({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Uw=M((exports=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}exports.AsyncMode=l,exports.ConcurrentMode=u,exports.ContextConsumer=c,exports.ContextProvider=s,exports.Element=n,exports.ForwardRef=d,exports.Fragment=i,exports.Lazy=h,exports.Memo=m,exports.Portal=r,exports.Profiler=o,exports.StrictMode=a,exports.Suspense=f,exports.isAsyncMode=function(e){return x(e)||b(e)===l},exports.isConcurrentMode=x,exports.isContextConsumer=function(e){return b(e)===c},exports.isContextProvider=function(e){return b(e)===s},exports.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},exports.isForwardRef=function(e){return b(e)===d},exports.isFragment=function(e){return b(e)===i},exports.isLazy=function(e){return b(e)===h},exports.isMemo=function(e){return b(e)===m},exports.isPortal=function(e){return b(e)===r},exports.isProfiler=function(e){return b(e)===o},exports.isStrictMode=function(e){return b(e)===a},exports.isSuspense=function(e){return b(e)===f},exports.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},exports.typeOf=b})),Ww=M(((exports,t)=>{t.exports=Uw()})),Gw=M(((exports,t)=>{var n=Ww(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),Kw=!0;function qw(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Jw=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||Kw===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Yw=function(e,t,n){Jw(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Xw(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Zw={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};Ch();var Qw=!1,$w=/[A-Z]|^ms/g,eT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tT=function(e){return e.charCodeAt(1)===45},nT=function(e){return e!=null&&typeof e!=`boolean`},rT=Sh(function(e){return tT(e)?e:e.replace($w,`-$&`).toLowerCase()}),iT=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(eT,function(e,t,n){return lT={name:t,styles:n,next:lT},t})}return Zw[e]!==1&&!tT(e)&&typeof t==`number`&&t!==0?t+`px`:t},aT=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function oT(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return lT={name:i.name,styles:i.styles,next:lT},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)lT={name:o.name,styles:o.styles,next:lT},o=o.next;var s=a.styles+`;`;return s}return sT(e,t,n);case`function`:if(e!==void 0){var c=lT,l=n(e);return lT=c,oT(e,t,l)}break}var u=n;if(t==null)return u;var d=t[u];return d===void 0?u:d}function sT(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=oT(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:nT(s)&&(r+=rT(a)+`:`+iT(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Qw)throw Error(aT);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)nT(o[c])&&(r+=rT(a)+`:`+iT(a,o[c])+`;`);else{var l=oT(e,t,o);switch(a){case`animation`:case`animationName`:r+=rT(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var cT=/label:\s*([^\s;{]+)\s*(;|$)/g,lT;function uT(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;lT=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=oT(n,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=oT(n,t,e[s]),r){var c=a;i+=c[s]}cT.lastIndex=0;for(var l=``,u;(u=cT.exec(i))!==null;)l+=`-`+u[1];var d=Xw(i)+l;return{name:d,styles:i,next:lT}}var dT=function(e){return e()},fT=e.useInsertionEffect?e.useInsertionEffect:!1,pT=fT||dT;fT||e.useLayoutEffect;var mT=!1,hT=e.createContext(typeof HTMLElement<`u`?Hw({key:`css`}):null);hT.Provider;var gT=function(e){return c(function(t,n){var r=d(hT);return e(t,r,n)})},_T=e.createContext({}),vT={}.hasOwnProperty,yT=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,bT=function(e,t){var n={};for(var r in t)vT.call(t,r)&&(n[r]=t[r]);return n[yT]=e,n},xT=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Jw(t,n,r),pT(function(){return Yw(t,n,r)}),null},ST=gT(function(t,n,r){var i=t.css;typeof i==`string`&&n.registered[i]!==void 0&&(i=n.registered[i]);var a=t[yT],o=[i],s=``;typeof t.className==`string`?s=qw(n.registered,o,t.className):t.className!=null&&(s=t.className+` `);var c=uT(o,void 0,e.useContext(_T));s+=n.key+`-`+c.name;var l={};for(var u in t)vT.call(t,u)&&u!==`css`&&u!==yT&&!mT&&(l[u]=t[u]);return l.className=s,r&&(l.ref=r),e.createElement(e.Fragment,null,e.createElement(xT,{cache:n,serialized:c,isStringTag:typeof a==`string`}),e.createElement(a,l))}),CT=ST;Gw();var Z=function(t,n){var r=arguments;if(n==null||!vT.call(n,`css`))return e.createElement.apply(void 0,r);var i=r.length,a=Array(i);a[0]=CT,a[1]=bT(t,n);for(var o=2;o<i;o++)a[o]=r[o];return e.createElement.apply(null,a)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Z||={});function wT(){var e=[...arguments];return uT(e)}function TT(){var e=wT.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}function ET(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function DT(e){let t=Ur(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Dr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Pn(n)!==a||Pn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function OT(e){return Er(e)?e:e.contextElement}function kT(e){let t=OT(e);if(!Dr(t))return In(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=DT(t),o=(a?Pn(n.width):n.width)/r,s=(a?Pn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const AT=In(0);function jT(e){let t=Cr(e);return!Br()||!t.visualViewport?AT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function MT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Cr(e)?!1:t}function NT(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=OT(e),o=In(1);t&&(r?Er(r)&&(o=kT(r)):o=kT(e));let s=MT(a,n,r)?jT(a):In(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Cr(a),t=r&&Er(r)?Cr(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=kT(i),t=i.getBoundingClientRect(),r=Ur(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Cr(i),i=n.frameElement}}return or({width:u,height:d,x:c,y:l})}const PT=[`:popover-open`,`:modal`];function FT(e){return PT.some(t=>{try{return e.matches(t)}catch{return!1}})}function IT(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=wr(r),s=t?FT(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=In(1),u=In(0),d=Dr(r);if((d||!d&&!a)&&((Sr(r)!==`body`||Ar(o))&&(c=Wr(r)),Dr(r))){let e=NT(r);l=kT(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function LT(e){return Array.from(e.getClientRects())}function RT(e){return NT(wr(e)).left+Wr(e).scrollLeft}function zT(e){let t=wr(e),n=Wr(e),r=e.ownerDocument.body,i=Nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+RT(e),s=-n.scrollTop;return Ur(r).direction===`rtl`&&(o+=Nn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function BT(e,t){let n=Cr(e),r=wr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Br();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function VT(e,t){let n=NT(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Dr(e)?kT(e):In(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function HT(e,t,n){let r;if(t===`viewport`)r=BT(e,n);else if(t===`document`)r=zT(wr(e));else if(Er(t))r=VT(t,n);else{let n=jT(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return or(r)}function UT(e,t){let n=Gr(e);return n===t||!Er(n)||Hr(n)?!1:Ur(n).position===`fixed`||UT(n,t)}function WT(e,t){let n=t.get(e);if(n)return n;let r=qr(e,[],!1).filter(e=>Er(e)&&Sr(e)!==`body`),i=null,a=Ur(e).position===`fixed`,o=a?Gr(e):e;for(;Er(o)&&!Hr(o);){let t=Ur(o),n=Rr(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||Ar(o)&&!n&&UT(e,o);s?r=r.filter(e=>e!==o):i=t,o=Gr(o)}return t.set(e,r),r}function GT(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?WT(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=HT(t,n,i);return e.top=Nn(r.top,e.top),e.right=Mn(r.right,e.right),e.bottom=Mn(r.bottom,e.bottom),e.left=Nn(r.left,e.left),e},HT(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function KT(e){let{width:t,height:n}=DT(e);return{width:t,height:n}}function qT(e,t,n){let r=Dr(t),i=wr(t),a=n===`fixed`,o=NT(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=In(0);if(r||!r&&!a)if((Sr(t)!==`body`||Ar(i))&&(s=Wr(t)),r){let e=NT(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=RT(i));let l=o.left+s.scrollLeft-c.x,u=o.top+s.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function JT(e,t){return!Dr(e)||Ur(e).position===`fixed`?null:t?t(e):e.offsetParent}function YT(e,t){let n=Cr(e);if(!Dr(e)||FT(e))return n;let r=JT(e,t);for(;r&&Mr(r)&&Ur(r).position===`static`;)r=JT(r,t);return r&&(Sr(r)===`html`||Sr(r)===`body`&&Ur(r).position===`static`&&!Rr(r))?n:r||zr(e)||n}const XT=async function(e){let t=this.getOffsetParent||YT,n=this.getDimensions;return{reference:qT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function ZT(e){return Ur(e).direction===`rtl`}const QT={convertOffsetParentRelativeRectToViewportRelativeRect:IT,getDocumentElement:wr,getClippingRect:GT,getOffsetParent:YT,getElementRects:XT,getClientRects:LT,getDimensions:KT,getScale:kT,isElement:Er,isRTL:ZT};function $T(e,t){let n=null,r,i=wr(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=Fn(u),m=Fn(i.clientWidth-(l+d)),h=Fn(i.clientHeight-(u+f)),g=Fn(l),_=-p+`px `+-m+`px `+-h+`px `+-g+`px`,v={rootMargin:_,threshold:Nn(0,Mn(1,c))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==c){if(!y)return o();t?o(!1,t):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function eE(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=OT(e),u=i||a?[...l?qr(l):[],...qr(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?$T(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?NT(e):null;c&&g();function g(){let t=NT(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const tE=vr,nE=dr,rE=ur,iE=(e,t,n)=>{let r=new Map,i={platform:QT,...n},a={...i.platform,_c:r};return cr(e,t,{...i,platform:a})};var aE=h,oE=[`className`,`clearValue`,`cx`,`getStyles`,`getClassNames`,`getValue`,`hasValue`,`isMulti`,`isRtl`,`options`,`selectOption`,`selectProps`,`setValue`,`theme`],sE=function(){};function cE(e,t){return t?t[0]===`-`?e+t:e+`__`+t:e}function lE(e,t){var n=[...arguments].slice(2),r=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push(`${cE(e,i)}`);return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(` `)}var uE=function(e){return OE(e)?e.filter(Boolean):tC(e)===`object`&&e!==null?[e]:[]},dE=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=pC(e,oE);return q({},t)},Q=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(n??{},a(t,e),o)}};function fE(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function pE(e){return fE(e)?window.innerHeight:e.clientHeight}function mE(e){return fE(e)?window.pageYOffset:e.scrollTop}function hE(e,t){if(fE(e)){window.scrollTo(0,t);return}e.scrollTop=t}function gE(e){var t=getComputedStyle(e),n=t.position===`absolute`,r=/(auto|scroll)/;if(t.position===`fixed`)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position===`static`)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function _E(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function vE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:sE,i=mE(e),a=t-i,o=10,s=0;function c(){s+=o;var t=_E(s,i,a,n);hE(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function yE(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?hE(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&hE(e,Math.max(t.offsetTop-i,0))}function bE(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function xE(){try{return document.createEvent(`TouchEvent`),!0}catch{return!1}}function SE(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var CE=!1,wE={get passive(){return CE=!0}},TE=typeof window<`u`?window:{};TE.addEventListener&&TE.removeEventListener&&(TE.addEventListener(`p`,sE,wE),TE.removeEventListener(`p`,sE,!1));var EE=CE;function DE(e){return e!=null}function OE(e){return Array.isArray(e)}function kE(e,t,n){return e?t:n}function AE(e){return e}function jE(e){return e}var ME=function(e){var t=[...arguments].slice(1),n=Object.entries(e).filter(function(e){var n=dC(e,1),r=n[0];return!t.includes(r)});return n.reduce(function(e,t){var n=dC(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},NE=[`children`,`innerProps`],PE=[`children`,`innerProps`];function FE(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,c=gE(n),l={placement:`bottom`,maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect(),_=g.top,v=o?window.innerHeight:pE(c),y=mE(c),b=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),S=_-x,C=v-h,w=S+y,T=d-y-h,E=p-v+y+b,D=y+h-x,O=160;switch(i){case`auto`:case`bottom`:if(C>=m)return{placement:`bottom`,maxHeight:t};if(T>=m&&!o)return a&&vE(c,E,O),{placement:`bottom`,maxHeight:t};if(!o&&T>=r||o&&C>=r){a&&vE(c,E,O);var k=o?C-b:T-b;return{placement:`bottom`,maxHeight:k}}if(i===`auto`||o){var A=t,j=o?S:w;return j>=r&&(A=Math.min(j-b-s,t)),{placement:`top`,maxHeight:A}}if(i===`bottom`)return a&&hE(c,E),{placement:`bottom`,maxHeight:t};break;case`top`:if(S>=m)return{placement:`top`,maxHeight:t};if(w>=m&&!o)return a&&vE(c,D,O),{placement:`top`,maxHeight:t};if(!o&&w>=r||o&&S>=r){var M=t;return(!o&&w>=r||o&&S>=r)&&(M=o?S-x:w-x),a&&vE(c,D,O),{placement:`top`,maxHeight:M}}return{placement:`bottom`,maxHeight:t};default:throw Error(`Invalid placement provided "${i}".`)}return l}function IE(e){var t={bottom:`top`,top:`bottom`};return e?t[e]:`bottom`}var LE=function(e){return e===`auto`?`bottom`:e},RE=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return q((n={label:`menu`},iC(n,IE(r),`100%`),iC(n,`position`,`absolute`),iC(n,`width`,`100%`),iC(n,`zIndex`,1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:`0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)`,marginBottom:o.menuGutter,marginTop:o.menuGutter})},zE=o(null),BE=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,c=d(zE)||{},l=c.setPortalPlacement,u=_(null),f=v(r),p=dC(f,2),m=p[0],h=p[1],g=v(null),y=dC(g,2),b=y[0],x=y[1],S=s.spacing.controlHeight;return aE(function(){var e=u.current;if(e){var t=a===`fixed`,s=o&&!t,c=FE({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s,isFixedPosition:t,controlHeight:S});h(c.maxHeight),x(c.placement),l?.(c.placement)}},[r,i,a,o,n,l,S]),t({ref:u,placerProps:q(q({},e),{},{placement:b||LE(i),maxHeight:m})})},VE=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Z(`div`,J({},Q(e,`menu`,{menu:!0}),{ref:n},r),t)},HE=VE,UE=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return q({maxHeight:n,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},t?{}:{paddingBottom:r,paddingTop:r})},WE=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Z(`div`,J({},Q(e,`menuList`,{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},GE=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return q({textAlign:`center`},t?{}:{color:i.neutral40,padding:`${r*2}px ${r*3}px`})},KE=GE,qE=GE,JE=function(e){var t=e.children,n=t===void 0?`No options`:t,r=e.innerProps,i=pC(e,NE);return Z(`div`,J({},Q(q(q({},i),{},{children:n,innerProps:r}),`noOptionsMessage`,{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},YE=function(e){var t=e.children,n=t===void 0?`Loading...`:t,r=e.innerProps,i=pC(e,PE);return Z(`div`,J({},Q(q(q({},i),{},{children:n,innerProps:r}),`loadingMessage`,{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},XE=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},ZE=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=_(null),c=_(null),l=v(LE(a)),d=dC(l,2),f=d[0],p=d[1],m=g(function(){return{setPortalPlacement:p}},[]),h=v(null),y=dC(h,2),b=y[0],x=y[1],S=u(function(){if(r){var e=bE(r),t=o===`fixed`?0:window.pageYOffset,n=e[f]+t;(n!==b?.offset||e.left!==b?.rect.left||e.width!==b?.rect.width)&&x({offset:n,rect:e})}},[r,o,f,b?.offset,b?.rect.left,b?.rect.width]);aE(function(){S()},[S]);var C=u(function(){typeof c.current==`function`&&(c.current(),c.current=null),r&&s.current&&(c.current=eE(r,s.current,S,{elementResize:`ResizeObserver`in window}))},[r,S]);aE(function(){C()},[C]);var T=u(function(e){s.current=e,C()},[C]);if(!t&&o!==`fixed`||!b)return null;var E=Z(`div`,J({ref:T},Q(q(q({},e),{},{offset:b.offset,position:o,rect:b.rect}),`menuPortal`,{"menu-portal":!0}),i),n);return Z(zE.Provider,{value:m},t?w(E,t):E)},QE=function(e){var t=e.isDisabled,n=e.isRtl;return{label:`container`,direction:n?`rtl`:void 0,pointerEvents:t?`none`:void 0,position:`relative`}},$E=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Z(`div`,J({},Q(e,`container`,{"--is-disabled":r,"--is-rtl":i}),n),t)},eD=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return q({alignItems:`center`,display:r&&i&&a?`flex`:`grid`,flex:1,flexWrap:`wrap`,WebkitOverflowScrolling:`touch`,position:`relative`,overflow:`hidden`},t?{}:{padding:`${n.baseUnit/2}px ${n.baseUnit*2}px`})},tD=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Z(`div`,J({},Q(e,`valueContainer`,{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},nD=function(){return{alignItems:`center`,alignSelf:`stretch`,display:`flex`,flexShrink:0}},rD=function(e){var t=e.children,n=e.innerProps;return Z(`div`,J({},Q(e,`indicatorsContainer`,{indicators:!0}),n),t)},iD,aD=[`size`],oD=[`innerProps`,`isRtl`,`size`],sD={name:`8mmkcg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0`},cD=function(e){var t=e.size,n=pC(e,aD);return Z(`svg`,J({height:t,width:t,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,css:sD},n))},lD=function(e){return Z(cD,J({size:20},e),Z(`path`,{d:`M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z`}))},uD=function(e){return Z(cD,J({size:20},e),Z(`path`,{d:`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`}))},dD=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return q({label:`indicatorContainer`,display:`flex`,transition:`color 150ms`},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},fD=dD,pD=function(e){var t=e.children,n=e.innerProps;return Z(`div`,J({},Q(e,`dropdownIndicator`,{indicator:!0,"dropdown-indicator":!0}),n),t||Z(uD,null))},mD=dD,hD=function(e){var t=e.children,n=e.innerProps;return Z(`div`,J({},Q(e,`clearIndicator`,{indicator:!0,"clear-indicator":!0}),n),t||Z(lD,null))},gD=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return q({label:`indicatorSeparator`,alignSelf:`stretch`,width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},_D=function(e){var t=e.innerProps;return Z(`span`,J({},t,Q(e,`indicatorSeparator`,{"indicator-separator":!0})))},vD=TT(iD||=ET([`
75
75
  0%, 80%, 100% { opacity: 0; }