@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.
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/Accordion/Accordion.d.ts +2 -2
- package/dist/src/Alert/Alert.d.ts +2 -2
- package/dist/src/Badge/Badge.d.ts +2 -2
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +3 -3
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +2 -2
- package/dist/src/Carousel/Carousel.d.ts +2 -2
- package/dist/src/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/Collapse/Collapse.d.ts +2 -2
- package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
- package/dist/src/ColorSwatch/ColorSwatch.d.ts +2 -2
- package/dist/src/EditorPanel/EditorPanel.d.ts +2 -2
- package/dist/src/ExternalLink/ExternalLink.d.ts +2 -2
- package/dist/src/Icon/Icon.d.ts +2 -2
- package/dist/src/InputGroup/InputGroup.d.ts +2 -2
- package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
- package/dist/src/Modal/Modal.d.ts +2 -2
- package/dist/src/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +2 -2
- package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
- package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/src/Select/Select.d.ts +2 -2
- package/dist/src/Slider/Slider.d.ts +2 -2
- package/dist/src/SvgIcon/SvgIcon.d.ts +2 -2
- package/dist/src/Tabs/Tabs.d.ts +2 -2
- package/dist/src/TextArea/TextArea.d.ts +2 -2
- package/dist/src/TextField/TextField.d.ts +10 -10
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +2 -2
- package/dist/src/Tooltip/Qtip.d.ts +2 -2
- package/dist/src/Tooltip/Tooltip.d.ts +2 -2
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +2 -2
- package/dist/styles.css +34 -63
- package/package.json +1 -1
package/dist/index.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)}},[t]),(0,p.jsx)(bh,{isPresent:t,childRef:a,sizeRef:o,children:f.cloneElement(e,{ref:c})})}const Sh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,root:c})=>{let l=Tu(Ch),u=(0,f.useId)(),d=!0,m=(0,f.useMemo)(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(let e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))}),[n,l,r]);return a&&d&&(m={...m}),(0,f.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),f.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o===`popLayout`&&(e=(0,p.jsx)(xh,{isPresent:n,anchorX:s,root:c,children:e})),(0,p.jsx)(Ou.Provider,{value:m,children:e})};function Ch(){return new Map}function wh(e=!0){let t=(0,f.useContext)(Ou);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,f.useId)();(0,f.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,f.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const Th=e=>e.key||``;function Eh(e){let t=[];return f.Children.forEach(e,e=>{(0,f.isValidElement)(e)&&t.push(e)}),t}const Dh=({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]=wh(o),d=(0,f.useMemo)(()=>Eh(e),[e]),m=o&&!l?[]:d.map(Th),h=(0,f.useRef)(!0),g=(0,f.useRef)(d),_=Tu(()=>new Map),[v,y]=(0,f.useState)(d),[b,x]=(0,f.useState)(d);Du(()=>{h.current=!1,g.current=d;for(let e=0;e<b.length;e++){let t=Th(b[e]);m.includes(t)?_.delete(t):_.get(t)!==!0&&_.set(t,!1)}},[b,m.length,m.join(`-`)]);let S=[];if(d!==v){let e=[...d];for(let t=0;t<b.length;t++){let n=b[t],r=Th(n);m.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Eh(e)),y(d),null}process.env.NODE_ENV!==`production`&&a===`wait`&&b.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:C}=(0,f.useContext)(wu);return(0,p.jsx)(p.Fragment,{children:b.map(e=>{let f=Th(e),v=o&&!l?!1:d===b||m.includes(f),y=()=>{if(_.has(f))_.set(f,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(g.current),o&&u?.(),r&&r())};return(0,p.jsx)(Sh,{isPresent:v,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:v?void 0:y,anchorX:s,children:e},f)})})},Oh=(0,f.createContext)({strict:!1}),kh={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`]},Ah={};for(let e in kh)Ah[e]={isEnabled:t=>kh[e].some(e=>!!t[e])};function jh(e){for(let t in e)Ah[t]={...Ah[t],...e[t]}}const Mh=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 Nh(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Mh.has(e)}function Ph(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fh=o((()=>{})),Ih={};c(Ih,{default:()=>Rh});var Lh,Rh,zh=o((()=>{Fh(),Lh=/^((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)-.*))$/,Rh=Ph(function(e){return Lh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let Bh=e=>!Nh(e);function Vh(e){typeof e==`function`&&(Bh=t=>t.startsWith(`on`)?!Nh(t):e(t))}try{Vh((zh(),d(Ih)).default)}catch{}function Hh(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(Bh(i)||n===!0&&Nh(i)||!t&&!Nh(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const Uh=(0,f.createContext)({});function Wh(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Gh(e){return typeof e==`string`||Array.isArray(e)}const Kh=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],qh=[`initial`,...Kh];function Jh(e){return Wh(e.animate)||qh.some(t=>Gh(e[t]))}function Yh(e){return!!(Jh(e)||e.variants)}function Xh(e,t){if(Jh(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Gh(t)?t:void 0,animate:Gh(n)?n:void 0}}return e.inherit===!1?{}:t}function Zh(e){let{initial:t,animate:n}=Xh(e,(0,f.useContext)(Uh));return(0,f.useMemo)(()=>({initial:t,animate:n}),[Qh(t),Qh(n)])}function Qh(e){return Array.isArray(e)?e.join(` `):e}function $h(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eg={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(W.test(e))e=parseFloat(e);else return e;let n=$h(e,t.target.x),r=$h(e,t.target.y);return`${n}% ${r}%`}},tg={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=vf.parse(e);if(i.length>5)return r;let a=vf.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)}},ng={borderRadius:{...eg,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:eg,borderTopRightRadius:eg,borderBottomLeftRadius:eg,borderBottomRightRadius:eg,boxShadow:tg};function rg(e,{layout:t,layoutId:n}){return Op.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ng[e]||e===`opacity`)}const ig={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ag=Dp.length;function og(e,t,n){let r=``,i=!0;for(let a=0;a<ag;a++){let o=Dp[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=Bm(s,Mm[o]);if(!c){i=!1;let t=ig[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function sg(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(Op.has(e)){o=!0;continue}else if(jd(e)){i[e]=n;continue}else{let t=Bm(n,Mm[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=og(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 cg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lg(e,t,n){for(let r in t)!ph(t[r])&&!rg(r,n)&&(e[r]=t[r])}function ug({transformTemplate:e},t){return(0,f.useMemo)(()=>{let n=cg();return sg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dg(e,t){let n=e.style||{},r={};return lg(r,n,e),Object.assign(r,ug(e,t)),r}function fg(e,t){let n={},r=dg(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 pg={offset:`stroke-dashoffset`,array:`stroke-dasharray`},mg={offset:`strokeDashoffset`,array:`strokeDasharray`};function hg(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?pg:mg;e[a.offset]=W.transform(-r);let o=W.transform(t),s=W.transform(n);e[a.array]=`${o} ${s}`}function gg(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(sg(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&&hg(d,i,a,o,!1)}const _g=()=>({...cg(),attrs:{}}),vg=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function yg(e,t,n,r){let i=(0,f.useMemo)(()=>{let n=_g();return gg(n,t,vg(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};lg(t,e.style,e),i.style={...t,...i.style}}return i}const bg=[`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 xg(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(bg.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sg(e,t,n,{latestValues:r},i,a=!1){let o=xg(e)?yg:fg,s=o(t,r,i,e),c=Hh(t,typeof e==`string`,a),l=e===f.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,f.useMemo)(()=>ph(u)?u.get():u,[u]);return(0,f.createElement)(e,{...l,children:d})}function Cg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function wg(e,t,n,r){if(typeof t==`function`){let[i,a]=Cg(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]=Cg(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Tg(e){return ph(e)?e.get():e}function Eg({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:Dg(n,r,i,e),renderState:t()};return a}function Dg(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Tg(a[e]);let{initial:o,animate:s}=e,c=Jh(e),l=Yh(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`&&!Wh(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=wg(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 Og=e=>(t,n)=>{let r=(0,f.useContext)(Uh),i=(0,f.useContext)(Ou),a=()=>Eg(e,t,r,i);return n?a():Tu(a)};function kg(e,t,n){let{style:r}=e,i={};for(let a in r)(ph(r[a])||t.style&&ph(t.style[a])||rg(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const Ag=Og({scrapeMotionValuesFromProps:kg,createRenderState:cg});function jg(e,t,n){let r=kg(e,t,n);for(let n in e)if(ph(e[n])||ph(t[n])){let t=Dp.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const Mg=Og({scrapeMotionValuesFromProps:jg,createRenderState:_g}),Ng=Symbol.for(`motionComponentSymbol`);function Pg(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Fg(e,t,n){return(0,f.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Pg(n)&&(n.current=r))},[t])}const Ig=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Lg=`framerAppearId`,Rg=`data-`+Ig(`framerAppearId`),zg=(0,f.createContext)({});function Bg(e,t,n,r,i){let{visualElement:a}=(0,f.useContext)(Uh),o=(0,f.useContext)(Oh),s=(0,f.useContext)(Ou),c=(0,f.useContext)(gh).reducedMotion,l=(0,f.useRef)(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,d=(0,f.useContext)(zg);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&Vg(l.current,n,i,d);let p=(0,f.useRef)(!1);(0,f.useInsertionEffect)(()=>{u&&p.current&&u.update(n,s)});let m=n[Rg],h=(0,f.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Du(()=>{u&&(p.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),h.current&&u.animationState&&u.animationState.animateChanges())}),(0,f.useEffect)(()=>{u&&(!h.current&&u.animationState&&u.animationState.animateChanges(),h.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),!1),u.enteringChildren=void 0)}),u}function Vg(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:Hg(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Pg(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Hg(e){if(e)return e.options.allowProjection===!1?Hg(e.parent):e.projection}function Ug(e,{forwardMotionProps:t=!1}={},n,r){n&&jh(n);let i=xg(e)?Mg:Ag;function a(a,o){let s,c={...(0,f.useContext)(gh),...a,layoutId:Wg(a)},{isStatic:l}=c,u=Zh(a),d=i(a,l);if(!l&&Eu){Gg(c,n);let t=Kg(c);s=t.MeasureLayout,u.visualElement=Bg(e,d,c,r,t.ProjectionNode)}return(0,p.jsxs)(Uh.Provider,{value:u,children:[s&&u.visualElement?(0,p.jsx)(s,{visualElement:u.visualElement,...c}):null,Sg(e,a,Fg(d,u.visualElement,o),d,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=(0,f.forwardRef)(a);return o[Ng]=e,o}function Wg({layoutId:e}){let t=(0,f.useContext)(wu).id;return t&&e!==void 0?t+`-`+e:e}function Gg(e,t){let n=(0,f.useContext)(Oh).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Nu(!1,t,`lazy-strict-mode`):Pu(!1,t,`lazy-strict-mode`)}}function Kg(e){let{drag:t,layout:n}=Ah;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function qg(e,t){if(typeof Proxy>`u`)return Ug;let n=new Map,r=(n,r)=>Ug(n,r,e,t),i=(e,t)=>(process.env.NODE_ENV!==`production`&&Yu(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t));return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Ug(a,void 0,e,t)),n.get(a))})}function Jg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Yg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Xg(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 Zg(e){return e===void 0||e===1}function Qg({scale:e,scaleX:t,scaleY:n}){return!Zg(e)||!Zg(t)||!Zg(n)}function $g(e){return Qg(e)||e_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function e_(e){return t_(e.x)||t_(e.y)}function t_(e){return e&&e!==`0%`}function n_(e,t,n){let r=e-n,i=t*r;return n+i}function r_(e,t,n,r,i){return i!==void 0&&(e=n_(e,i,r)),n_(e,n,r)+t}function i_(e,t=0,n=1,r,i){e.min=r_(e.min,t,n,r,i),e.max=r_(e.max,t,n,r,i)}function a_(e,{x:t,y:n}){i_(e.x,t.translate,t.scale,t.originPoint),i_(e.y,n.translate,n.scale,n.originPoint)}const o_=.999999999999,s_=1.0000000000001;function c_(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&&d_(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,a_(e,o)),r&&$g(a.latestValues)&&d_(e,a.latestValues))}t.x<s_&&t.x>o_&&(t.x=1),t.y<s_&&t.y>o_&&(t.y=1)}function l_(e,t){e.min+=t,e.max+=t}function u_(e,t,n,r,i=.5){let a=G(e.min,e.max,i);i_(e,t,n,a,r)}function d_(e,t){u_(e.x,t.x,t.scaleX,t.scale,t.originX),u_(e.y,t.y,t.scaleY,t.scale,t.originY)}function f_(e,t){return Jg(Xg(e.getBoundingClientRect(),t))}function p_(e,t,n){let r=f_(e,n),{scroll:i}=t;return i&&(l_(r.x,i.offset.x),l_(r.y,i.offset.y)),r}const m_=()=>({translate:0,scale:1,origin:0,originPoint:0}),h_=()=>({x:m_(),y:m_()}),g_=()=>({min:0,max:0}),__=()=>({x:g_(),y:g_()}),v_={current:null},y_={current:!1};function b_(){if(y_.current=!0,Eu)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>v_.current=e.matches;e.addEventListener(`change`,t),t()}else v_.current=!1}const x_=new WeakMap;function S_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(ph(i))e.addValue(r,i);else if(ph(a))e.addValue(r,Km(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,Km(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const C_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var w_=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=Vp,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=Od.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=Jh(t),this.isVariantNode=Yh(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&&ph(t)&&t.set(s[e])}}mount(e){this.current=e,x_.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)),y_.current||b_(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:v_.current,process.env.NODE_ENV!==`production`&&Yu(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),Cd(this.notifyUpdate),Cd(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=Op.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 Ah){let t=Ah[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):__()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(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<C_.length;t++){let n=C_[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=S_(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=Km(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`&&(Iu(n)||Ru(n))?n=parseFloat(n):!hh(n)&&vf.test(t)&&(n=Fm(e,t)),this.setBaseTarget(e,ph(n)?n.get():n)),ph(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=wg(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&&!ph(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 Wu),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qm.render(this.render)}},T_=class extends w_{constructor(){super(...arguments),this.KeyframeResolver=Rm}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;ph(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function E_(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 D_(e){return window.getComputedStyle(e)}var O_=class extends T_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=E_}readValueFromInstance(e,t){if(Op.has(t))return this.projection?.isProjecting?Cp(t):Tp(e,t);{let n=D_(e),r=(jd(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return f_(e,t)}build(e,t,n){sg(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return kg(e,t,n)}};const k_=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 A_(e,t,n,r){for(let n in E_(e,t,void 0,r),t.attrs)e.setAttribute(k_.has(n)?n:Ig(n),t.attrs[n])}var j_=class extends T_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=__}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Op.has(t)){let e=Pm(t);return e&&e.default||0}return t=k_.has(t)?t:Ig(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return jg(e,t,n)}build(e,t,n){gg(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){A_(e,t,n,r)}mount(e){this.isSVGTag=vg(e.tagName),super.mount(e)}};const M_=(e,t)=>xg(e)?new j_(t):new O_(t,{allowProjection:e!==f.Fragment});function N_(e,t,n){let r=e.getProps();return wg(r,t,n===void 0?r.custom:n,e)}const P_=e=>Array.isArray(e);function F_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Km(n))}function I_(e){return P_(e)?e[e.length-1]||0:e}function L_(e,t){let n=N_(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=I_(a[t]);F_(e,t,n)}}function R_(e){return!!(ph(e)&&e.add)}function z_(e,t){let n=e.getValue(`willChange`);if(R_(n))return n.add(t);if(!n&&Fu.WillChange){let n=new Fu.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function B_(e){return e.props[Rg]}const V_=e=>e!==null;function H_(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(V_),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const U_={type:`spring`,stiffness:500,damping:25,restSpeed:10},W_=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G_={type:`keyframes`,duration:.8},K_={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},q_=(e,{keyframes:t})=>t.length>2?G_:Op.has(e)?e.startsWith(`scale`)?W_(t[1]):U_:K_;function J_({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 Y_=(e,t,n,r={},i,a)=>o=>{let s=ym(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Gu(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};J_(s)||Object.assign(u,q_(e,u)),u.duration&&=Gu(u.duration),u.repeatDelay&&=Gu(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(lm(u),u.delay===0&&(d=!0)),(Fu.instantAnimations||Fu.skipAnimations)&&(d=!0,lm(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=H_(u.keyframes,s);if(e!==void 0){U.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new pp(u):new mm(u)};function X_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Z_(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&&X_(l,t))continue;let o={delay:n,...ym(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=B_(e);if(n){let e=window.MotionHandoffAnimation(n,t,U);e!==null&&(o.startTime=e,d=!0)}}z_(e,t),r.start(Y_(t,r,i,e.shouldReduceMotion&&bm.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{U.update(()=>{o&&L_(e,o)})}),c}function Q_(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 $_(e,t,n={}){let r=N_(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(Z_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ev(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 ev(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($_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Q_(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function tv(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>$_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=$_(e,t,n);else{let i=typeof t==`function`?N_(e,t,n.custom):t;r=Promise.all(Z_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function nv(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 rv=qh.length;function iv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&iv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<rv;n++){let r=qh[n],i=e.props[r];(Gh(i)||i===!1)&&(t[r]=i)}return t}const av=[...Kh].reverse(),ov=Kh.length;function sv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>tv(e,t,n)))}function cv(e){let t=sv(e),n=dv(),r=!0,i=t=>(n,r)=>{let i=N_(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=iv(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<ov;t++){let f=av[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Gh(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||Wh(m)||typeof m==`boolean`)continue;let v=lv(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=P_(t)&&P_(n)?!nv(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=N_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Q_(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=N_(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=dv()}}}function lv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!nv(t,e):!1}function uv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dv(){return{animate:uv(!0),whileInView:uv(),whileHover:uv(),whileTap:uv(),whileDrag:uv(),whileFocus:uv(),exit:uv()}}var fv=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},pv=class extends fv{constructor(e){super(e),e.animationState||=cv(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Wh(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 mv=0;var hv=class extends fv{constructor(){super(...arguments),this.id=mv++}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 gv={animation:{Feature:pv},exit:{Feature:hv}};function _v(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function vv(e){return{point:{x:e.pageX,y:e.pageY}}}const yv=e=>t=>nh(t)&&e(t,vv(t));function bv(e,t,n,r){return _v(e,t,yv(n),r)}const xv=1e-4,Sv=1-xv,Cv=1+xv,wv=.01,Tv=0-wv,Ev=0+wv;function Dv(e){return e.max-e.min}function Ov(e,t,n){return Math.abs(e-t)<=n}function kv(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Dv(n)/Dv(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 Av(e,t,n,r){kv(e.x,t.x,n.x,r?r.originX:void 0),kv(e.y,t.y,n.y,r?r.originY:void 0)}function jv(e,t,n){e.min=n.min+t.min,e.max=e.min+Dv(t)}function Mv(e,t,n){jv(e.x,t.x,n.x),jv(e.y,t.y,n.y)}function Nv(e,t,n){e.min=t.min-n.min,e.max=e.min+Dv(t)}function Pv(e,t,n){Nv(e.x,t.x,n.x),Nv(e.y,t.y,n.y)}function Fv(e){return[e(`x`),e(`y`)]}const Iv=({current:e})=>e?e.ownerDocument.defaultView:null,Lv=(e,t)=>Math.abs(e-t);function Rv(e,t){let n=Lv(e.x,t.x),r=Lv(e.y,t.y);return Math.sqrt(n**2+r**2)}var zv=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=Hv(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Rv(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=wd;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=Bv(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=Hv(e.type===`pointercancel`?this.lastMoveEventInfo:Bv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!nh(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=vv(e),s=Bv(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=wd;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Hv(s,this.history)),this.removeListeners=Hu(bv(this.contextWindow,`pointermove`,this.handlePointerMove),bv(this.contextWindow,`pointerup`,this.handlePointerUp),bv(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Cd(this.updatePoint)}};function Bv(e,t){return t?{point:t(e.point)}:e}function Vv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hv({point:e},t){return{point:e,delta:Vv(e,Wv(t)),offset:Vv(e,Uv(t)),velocity:Gv(t,.1)}}function Uv(e){return e[0]}function Wv(e){return e[e.length-1]}function Gv(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Wv(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gu(t)));)n--;if(!r)return{x:0,y:0};let a=Ku(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 qv(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:qv(e.x,n,i),y:qv(e.y,t,r)}}function Yv(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 Xv(e,t){return{x:Yv(e.x,t.x),y:Yv(e.y,t.y)}}function Zv(e,t){let n=.5,r=Dv(e),i=Dv(t);return i>r?n=Uu(t.min,t.max-r,e.min):r>i&&(n=Uu(e.min,e.max-i,t.min)),ju(0,1,n)}function Qv(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 $v=.35;function ey(e=$v){return e===!1?e=0:e===!0&&(e=$v),{x:ty(e,`left`,`right`),y:ty(e,`top`,`bottom`)}}function ty(e,t,n){return{min:ny(e,t),max:ny(e,n)}}function ny(e,t){return typeof e==`number`?e:e[t]||0}const ry=new WeakMap;var iy=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=__(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor: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(vv(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),Fv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Zd.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=Dv(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&U.postRender(()=>i(e,t)),z_(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=oy(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=()=>Fv(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new zv(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Iv(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||!ay(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&&Pg(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Jv(n.layoutBox,e):this.constraints=!1,this.elastic=ey(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Fv(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Qv(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Pg(e))return!1;let n=e.current;Pu(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=p_(n,r.root,this.visualElement.getTransformPagePoint()),a=Xv(r.layout.layoutBox,i);if(t){let e=t(Yg(a));this.hasMutatedConstraints=!!e,e&&(a=Jg(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Fv(o=>{if(!ay(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 z_(this.visualElement,e),n.start(Y_(e,n,0,t,this.visualElement,!1))}stopAnimation(){Fv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Fv(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){Fv(t=>{let{drag:n}=this.getProps();if(!ay(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(!Pg(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Fv(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Zv({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(),Fv(t=>{if(!ay(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;ry.set(this.visualElement,this);let e=this.visualElement.current,t=bv(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Pg(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=_v(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Fv(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=$v,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ay(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oy(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sy=class extends fv{constructor(e){super(e),this.removeGroupControls=Bu,this.removeListeners=Bu,this.controls=new iy(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bu}unmount(){this.removeGroupControls(),this.removeListeners()}};const cy=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};var ly=class extends fv{constructor(){super(...arguments),this.removePointerDownListener=Bu}onPointerDown(e){this.session=new zv(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Iv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cy(e),onStart:cy(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&U.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=bv(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 uy={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let dy=!1;var fy=class extends f.Component{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),dy&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),uy.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,dy=!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(),qm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;dy=!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 py(e){let[t,n]=wh(),r=(0,f.useContext)(wu);return(0,p.jsx)(fy,{...e,layoutGroup:r,switchLayoutGroup:(0,f.useContext)(zg),isPresent:t,safeToRemove:n})}function my(e,t,n){let r=ph(e)?e:Km(e);return r.start(Y_(``,r,t,n)),r.animation}const hy=(e,t)=>e.depth-t.depth;var gy=class{constructor(){this.children=[],this.isDirty=!1}add(e){ku(this.children,e),this.isDirty=!0}remove(e){Au(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hy),this.isDirty=!1,this.children.forEach(e)}};function _y(e,t){let n=Od.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Cd(r),e(a-t))};return U.setup(r,!0),()=>Cd(r)}const vy=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],yy=vy.length,by=e=>typeof e==`string`?parseFloat(e):e,xy=e=>typeof e==`number`||W.test(e);function Sy(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,wy(r)),e.opacityExit=G(t.opacity??1,0,Ty(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<yy;i++){let a=`border${vy[i]}Radius`,o=Cy(t,a),s=Cy(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||xy(o)===xy(s);c?(e[a]=Math.max(G(by(o),by(s),r),0),(Zd.test(s)||Zd.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=G(t.rotate||0,n.rotate||0,r))}function Cy(e,t){return e[t]===void 0?e.borderRadius:e[t]}const wy=Ey(0,.5,cd),Ty=Ey(.5,.95,Bu);function Ey(e,t,n){return r=>r<e?0:r>t?1:n(Uu(e,t,r))}function Dy(e,t){e.min=t.min,e.max=t.max}function Oy(e,t){Dy(e.x,t.x),Dy(e.y,t.y)}function ky(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ay(e,t,n,r,i){return e-=t,e=n_(e,1/n,r),i!==void 0&&(e=n_(e,1/i,r)),e}function jy(e,t=0,n=1,r=.5,i,a=e,o=e){if(Zd.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=Ay(e.min,t,n,s,i),e.max=Ay(e.max,t,n,s,i)}function My(e,t,[n,r,i],a,o){jy(e,t[n],t[r],t[i],t.scale,a,o)}const Ny=[`x`,`scaleX`,`originX`],Py=[`y`,`scaleY`,`originY`];function Fy(e,t,n,r){My(e.x,t,Ny,n?n.x:void 0,r?r.x:void 0),My(e.y,t,Py,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Ly(e){return Iy(e.x)&&Iy(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function zy(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function By(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vy(e,t){return By(e.x,t.x)&&By(e.y,t.y)}function Hy(e){return Dv(e.x)/Dv(e.y)}function Uy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Wy=class{constructor(){this.members=[]}add(e){ku(this.members,e),e.scheduleRender()}remove(e){if(Au(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 Gy(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},qy=[``,`X`,`Y`,`Z`],Jy=1e3;let Yy=0;function Xy(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=B_(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&&Zy(r)}function Qy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Yy++,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,yd.value&&(Ky.nodes=Ky.calculatedTargetDeltas=Ky.calculatedProjections=0),this.nodes.forEach(tb),this.nodes.forEach(cb),this.nodes.forEach(lb),this.nodes.forEach(nb),yd.addProjectionMetrics&&yd.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 gy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Wu),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=dh(t)&&!fh(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=_y(i,250),uy.hasAnimatedSinceResize&&(uy.hasAnimatedSinceResize=!1,this.nodes.forEach(sb)))})}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()||gb,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Vy(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={...ym(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||sb(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(),Cd(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(ub),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&&Zy(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(ib);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ab);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ob),this.nodes.forEach($y),this.nodes.forEach(eb)):this.nodes.forEach(ab),this.clearAllSnapshots();let t=Od.now();wd.delta=ju(0,1e3/60,t-wd.timestamp),wd.timestamp=t,wd.isProcessing=!0,Td.update.process(wd),Td.preRender.process(wd),Td.render.process(wd),wd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rb),this.sharedNodes.forEach(db)}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&&!Dv(this.snapshot.measuredBox.x)&&!Dv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let 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=__(),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&&!Ly(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||$g(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)),bb(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return __();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(Sb);if(!n){let{scroll:e}=this.root;e&&(l_(t.x,e.offset.x),l_(t.y,e.offset.y))}return t}removeElementScroll(e){let t=__();if(Oy(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&&Oy(t,e),l_(t.x,i.offset.x),l_(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=__();Oy(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&&d_(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),$g(r.latestValues)&&d_(n,r.latestValues)}return $g(this.latestValues)&&d_(n,this.latestValues),n}removeTransform(e){let t=__();Oy(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!$g(n.latestValues))continue;Qg(n.latestValues)&&n.updateSnapshot();let r=__(),i=n.measurePageBox();Oy(r,i),Fy(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return $g(this.latestValues)&&Fy(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!==wd.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=wd.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=__(),this.targetWithTransforms=__()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oy(this.target,this.layout.layoutBox),a_(this.target,this.targetDelta)):Oy(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),yd.value&&Ky.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Qg(this.parent.latestValues)||e_(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=__(),this.relativeTargetOrigin=__(),Pv(this.relativeTargetOrigin,t,n),Oy(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===wd.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;Oy(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;c_(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=__());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ky(this.prevProjectionDelta.x,this.projectionDelta.x),ky(this.prevProjectionDelta.y,this.projectionDelta.y)),Av(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Uy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),yd.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=h_(),this.projectionDelta=h_(),this.projectionDeltaWithTransform=h_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=h_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=__(),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(hb));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;fb(a.x,e.x,n),fb(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pv(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mb(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&zy(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=__(),Oy(p,this.relativeTarget)),l&&(this.animationValues=i,Sy(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&&=(Cd(this.pendingAnimation),void 0),this.pendingAnimation=U.update(()=>{uy.hasAnimatedSinceResize=!0,kd.layout++,this.motionValue||=Km(0),this.currentAnimation=my(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{kd.layout--},onComplete:()=>{kd.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&&xb(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||__();let t=Dv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Dv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Oy(t,n),d_(t,i),Av(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wy);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&&Xy(`z`,e,r,this.animationValues);for(let t=0;t<qy.length;t++)Xy(`rotate${qy[t]}`,e,r,this.animationValues),Xy(`skew${qy[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=Tg(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=Tg(t?.pointerEvents)||``),this.hasProjected&&!$g(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Gy(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,ng){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ng[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?Tg(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ib),this.root.sharedNodes.clear()}}}function $y(e){e.updateLayout()}function eb(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`?Fv(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Dv(r);r.min=n[e].min,r.max=r.min+i}):xb(i,t.layoutBox,n)&&Fv(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Dv(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=h_();Av(o,n,t.layoutBox);let s=h_();a?Av(s,e.applyTransform(r,!0),t.measuredBox):Av(s,n,t.layoutBox);let c=!Ly(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=__();Pv(o,t.layoutBox,i.layoutBox);let s=__();Pv(s,n,a.layoutBox),Vy(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 tb(e){yd.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 nb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rb(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function ab(e){e.isLayoutDirty=!1}function ob(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cb(e){e.resolveTargetDelta()}function lb(e){e.calcProjection()}function ub(e){e.resetSkewAndRotation()}function db(e){e.removeLeadSnapshot()}function fb(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 pb(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function mb(e,t,n,r){pb(e.x,t.x,n.x,r),pb(e.y,t.y,n.y,r)}function hb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gb={duration:.45,ease:[.4,0,.1,1]},_b=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vb=_b(`applewebkit/`)&&!_b(`chrome/`)?Math.round:Bu;function yb(e){e.min=vb(e.min),e.max=vb(e.max)}function bb(e){yb(e.x),yb(e.y)}function xb(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ov(Hy(t),Hy(n),.2)}function Sb(e){return e!==e.root&&e.scroll?.wasRoot}const Cb=Qy({attachResizeListener:(e,t)=>_v(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wb={current:void 0},Tb=Qy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wb.current){let e=new Cb({});e.mount(window),e.setOptions({layoutScroll:!0}),wb.current=e}return wb.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Eb={pan:{Feature:ly},drag:{Feature:sy,ProjectionNode:Tb,MeasureLayout:py}};function Db(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,vv(t)))}var Ob=class extends fv{mount(){let{current:e}=this.node;e&&(this.unmount=eh(e,(e,t)=>(Db(this.node,t,`Start`),e=>Db(this.node,e,`End`))))}unmount(){}},kb=class extends fv{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=Hu(_v(this.node.current,`focus`,()=>this.onFocus()),_v(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ab(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,vv(t)))}var jb=class extends fv{mount(){let{current:e}=this.node;e&&(this.unmount=uh(e,(e,t)=>(Ab(this.node,t,`Start`),(e,{success:t})=>Ab(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Mb=new WeakMap,Nb=new WeakMap,Pb=e=>{let t=Mb.get(e.target);t&&t(e)},Fb=e=>{e.forEach(Pb)};function Ib({root:e,...t}){let n=e||document;Nb.has(n)||Nb.set(n,{});let r=Nb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fb,{root:e,...t})),r[i]}function Lb(e,t,n){let r=Ib(t);return Mb.set(e,n),r.observe(e),()=>{Mb.delete(e),r.unobserve(e)}}const Rb={some:0,all:1};var zb=class extends fv{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:Rb[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 Lb(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(Bb(e,t));n&&this.startObserver()}unmount(){}};function Bb({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Vb={inView:{Feature:zb},tap:{Feature:jb},focus:{Feature:kb},hover:{Feature:Ob}},Hb={layout:{ProjectionNode:Tb,MeasureLayout:py}},Ub={...gv,...Vb,...Eb,...Hb},Wb=qg(Ub,M_),Gb=({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:m=[]})=>{let[h,g]=(0,f.useState)(t),_=e=>{let t=(e+m.length)%m.length;g(t),r(t,t>h?`right`:`left`)};(0,f.useEffect)(()=>{if(i){let e=setInterval(()=>{o||h<m.length-1?_(h+1):clearInterval(e)},s);return()=>clearInterval(e)}},[i,h,o,s,m.length]),(0,f.useEffect)(()=>{t!==h&&g(t)},[t]);let v=()=>{if(h===0&&!o)return;let e=h-1;e<0&&(e=m.length-1),_(e)},y=()=>{if(h===m.length-1){if(!o)return;_(0)}else _(h+1)},b={type:`spring`,damping:20,stiffness:100},x={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:b},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:b})};return(0,p.jsxs)(`div`,{"data-testid":e,className:`tw:flex tw:flex-col tw:items-center tw:justify-center tw:w-full tw:overflow-hidden ${n}`,children:[(0,p.jsxs)(`div`,{className:`tw:flex tw:items-center tw:w-full tw:h-max tw:gap-1`,children:[u&&(0,p.jsx)(Pt,{icon:c,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:`${h===0&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:v}),(0,p.jsx)(`div`,{className:`tw:h-full tw:w-full tw:overflow-hidden`,children:(0,p.jsx)(Wb.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:x,className:`tw:w-full`,children:m[h]},h)}),u&&(0,p.jsx)(Pt,{icon:l,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:`${h===m.length-1&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:y})]}),a&&(0,p.jsx)(`div`,{className:`tw:flex tw:gap-1 tw:mt-2`,children:m.map((e,t)=>(0,p.jsx)(`div`,{className:`tw:w-2 tw:h-2 tw:rounded-full tw:cursor-pointer ${t===h?`tw:bg-sq-theme-dark`:`tw:bg-sq-darkish-gray`}`,onClick:()=>_(t)},t))})]})};var Kb=Gb;const qb=`tw:flex`,Jb=`tw:ml-1.5 tw:text-sm tw:-mt-0.5`,Yb=`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`,Xb=`tw:rounded ${Yb}`,Zb=`tw:rounded-full ${Yb}`,Qb=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:m=``,extraLabelClassNames:h,testId:g,..._}=e,v=(0,f.useId)(),y=u??`checkbox${v}`,b=at(_);return(0,p.jsxs)(`span`,{className:`tw:flex ${m}`,children:[(0,p.jsx)(`input`,{value:n,type:t,"data-testid":g,name:d,id:y,readOnly:!a,checked:c,defaultChecked:l,className:`${t===`checkbox`?Xb:Zb} ${r?`tw:cursor-not-allowed`:`tw:cursor-pointer`}`,disabled:r,onClick:o,onChange:a,onKeyDown:s,...b}),i&&(0,p.jsx)(`label`,{htmlFor:y,className:`tw:ml-1.5 tw:text-sm tw:-mt-0.5 ${h} ${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})]})},$b=({isVisible:e,children:t})=>{let n=(0,f.useRef)(null),[r,i]=(0,f.useState)(0);return(0,f.useEffect)(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),(0,p.jsx)(Dh,{initial:!1,children:e&&(0,p.jsx)(Wb.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:(0,p.jsx)(`div`,{ref:n,children:t})})})};var ex=$b;const tx=`tw:cursor-pointer tw:border tw:border-gray-700 tw:dark:border-gray-500 tw:shadow-sm tw:focus-visible:outline-none`,nx={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`},rx=(0,f.forwardRef)(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,id:a,testId:o},s){return(0,p.jsx)(`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 ${nx[r]} ${i}`,"data-testid":o,id:a,onClick:t,style:{backgroundColor:e},type:`button`})});var ix=rx;const ax=[`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 ox({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,id:o,testId:s,onOpen:c}){let l=(0,f.useId)(),u=(0,p.jsx)(`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=(0,p.jsx)(ix,{"aria-label":t,color:e,id:o??l,size:`sm`,onClick:c});return n?(0,p.jsxs)(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[u,(0,p.jsxs)(mu,{children:[(0,p.jsx)(hu,{asChild:!0,children:d}),(0,p.jsx)(_u,{align:i,className:ax,"data-testid":s,side:r,sideOffset:2,children:n})]})]}):(0,p.jsxs)(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[(0,p.jsx)(`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 sx=ox;const cx=`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`,lx={normal:`tw:gap-2`,spacious:`tw:gap-3`},ux=`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,dx=`tw:flex tw:w-full tw:max-w-full tw:flex-wrap tw:items-center tw:justify-end tw:gap-2`,fx=({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})=>(0,p.jsxs)(`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 ${lx[s]} ${c}`,"data-testid":u,id:l,children:[(0,p.jsx)(`span`,{className:`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,children:e}),t,(0,p.jsxs)(`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&&(0,p.jsx)(Pt,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&(0,p.jsx)(Pt,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]});var px=fx,mx=u(bt());const hx=`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`,gx=``,_x=`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,vx={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:``},yx=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,testId:a})=>(0,p.jsxs)(p.Fragment,{children:[t&&(0,p.jsx)(`span`,{className:`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,children:t}),(0,p.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener`,className:(0,mx.default)(vx[e],i),"data-testid":a,children:r})]});var bx=yx;function xx(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Sx(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=xx(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():xx(e,null)}),t.clear()}}}function Cx(...e){return(0,f.useCallback)(Sx(...e),e)}const wx=(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},Tx=`tw:border-sq-danger`,Ex=[`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(` `),Dx=`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`,Ox=`tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30`,kx=`tw:text-sq-text-color tw:disabled:text-sq-darkish-gray`,Ax={sm:`tw:text-sm`,lg:`tw:text-xl`},jx=(0,f.forwardRef)((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:m=`sm`,value:h,placeholder:g,extraClassNames:_,testId:v,type:y=`text`,inputGroup:b,step:x,showError:S,errorText:C,min:w,max:T,maxLength:E,minLength:D,required:O=!1,autoComplete:k=`off`,inputWidth:A=void 0,inputHeight:j=void 0,autoFocus:M=!1,...N}=e,P=(0,f.useRef)(null),ee=Cx(t,P),[F,I]=(0,f.useState)(null),L=at(N),R=(0,f.useRef)(M);(0,f.useEffect)(()=>{R.current&&setTimeout(()=>{P.current?.focus()},0)},[]),(0,f.useEffect)(()=>{let e=P.current;e&&y!==`number`&&y!==`email`&&e.setSelectionRange(F,F)},[t,F,h,y]);let z=e=>{I(e.target.selectionStart),i&&i(e)};(0,f.useEffect)(()=>{h!=null&&h!==P.current?.value&&P.current&&(P.current.value=`${h}`)},[h]);let B=`tw:rounded-md`;b===`left`?B=`tw:rounded-l-md tw:border-r-0 tw:focus:border-r tw:active:border-r`:b===`right`&&(B=`tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l`);let te=`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 ${Ax[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-dark-text/30 ${B} ${S?`tw:border-sq-danger`:Ex} `,ne=wx(A,j)?{style:wx(A,j)}:{},re={};return E&&(re.maxLength=E),D&&(re.minLength=D),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`input`,{ref:ee,"data-testid":v,name:d,id:u,type:y,value:h,className:te,placeholder:g,disabled:r,readOnly:n,autoComplete:k,onChange:z,onPaste:a,onFocus:s,onBlur:c,onKeyDown:l,onKeyUp:o,step:x,required:O,min:w,max:T,...re,...ne,...L}),C&&S&&(0,p.jsx)(`div`,{className:`tw:text-sq-danger tw:text-xs tw:mt-1`,children:C})]})});jx.displayName=`TextField`;const Mx=`tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap`,Nx=`tw:border-sq-danger`,Px=[`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(` `),Fx=`tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:p-1 tw:border-solid tw:border`,Ix=`tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray`,Lx=`tw:text-sq-text-color tw:disabled:text-sq-darkish-gray`,Rx=(0,f.forwardRef)((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:a,onBlur:o,onKeyDown:s,name:c,value:l,placeholder:u,append:d=[],extraClassNames:m=``,id:h,testId:g,showError:_,required:v,autoComplete:y,autoFocus:b,disabled:x,type:S,step:C,min:w,max:T,field:E,maxLength:D,minLength:O,inputGroup:k,...A}=e,j=at(A),M=`tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap ${m}`,N=d.filter(Boolean),P=k??(N.length>0?`left`:void 0),ee=P===`left`?`tw:rounded-l-md tw:rounded-r-none`:P===`right`?`tw:rounded-r-md tw:rounded-l-none`:`tw:rounded-md`,F=`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 ${ee} ${_?`tw:border-sq-danger`:Px} `,I=(0,f.isValidElement)(E)&&typeof E.type!=`string`,L=I?(0,f.cloneElement)(E,{inputGroup:P}):E;return(0,p.jsxs)(`div`,{id:`input-group-${h}`,className:M,children:[E?(0,p.jsx)(`div`,{"data-testid":g,className:`tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50 ${F}`,children:L}):(0,p.jsx)(jx,{testId:g,readonly:n,onChange:r,onKeyUp:i,onFocus:a,onBlur:o,onKeyDown:s,name:c,ref:t,showError:_,value:l,required:v,placeholder:u,autoComplete:y,autoFocus:b,id:h,type:S,disabled:x,step:C,min:w,max:T,maxLength:D,minLength:O,inputGroup:P,extraClassNames:`tw:flex tw:flex-1 tw:w-full tw:focus:z-30 ${m}`,...j}),N.map((e,t)=>e?.variant===`button`?(0,p.jsx)(Pt,{extraClassNames:`$
|
|
58
|
+
`),()=>{m.contains(p)&&m.removeChild(p)}},[t]),(0,p.jsx)(bh,{isPresent:t,childRef:a,sizeRef:o,children:f.cloneElement(e,{ref:c})})}const Sh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,root:c})=>{let l=Tu(Ch),u=(0,f.useId)(),d=!0,m=(0,f.useMemo)(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(let e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))}),[n,l,r]);return a&&d&&(m={...m}),(0,f.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),f.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o===`popLayout`&&(e=(0,p.jsx)(xh,{isPresent:n,anchorX:s,root:c,children:e})),(0,p.jsx)(Ou.Provider,{value:m,children:e})};function Ch(){return new Map}function wh(e=!0){let t=(0,f.useContext)(Ou);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,f.useId)();(0,f.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,f.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const Th=e=>e.key||``;function Eh(e){let t=[];return f.Children.forEach(e,e=>{(0,f.isValidElement)(e)&&t.push(e)}),t}const Dh=({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]=wh(o),d=(0,f.useMemo)(()=>Eh(e),[e]),m=o&&!l?[]:d.map(Th),h=(0,f.useRef)(!0),g=(0,f.useRef)(d),_=Tu(()=>new Map),[v,y]=(0,f.useState)(d),[b,x]=(0,f.useState)(d);Du(()=>{h.current=!1,g.current=d;for(let e=0;e<b.length;e++){let t=Th(b[e]);m.includes(t)?_.delete(t):_.get(t)!==!0&&_.set(t,!1)}},[b,m.length,m.join(`-`)]);let S=[];if(d!==v){let e=[...d];for(let t=0;t<b.length;t++){let n=b[t],r=Th(n);m.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(Eh(e)),y(d),null}process.env.NODE_ENV!==`production`&&a===`wait`&&b.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:C}=(0,f.useContext)(wu);return(0,p.jsx)(p.Fragment,{children:b.map(e=>{let f=Th(e),v=o&&!l?!1:d===b||m.includes(f),y=()=>{if(_.has(f))_.set(f,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(g.current),o&&u?.(),r&&r())};return(0,p.jsx)(Sh,{isPresent:v,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:v?void 0:y,anchorX:s,children:e},f)})})},Oh=(0,f.createContext)({strict:!1}),kh={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`]},Ah={};for(let e in kh)Ah[e]={isEnabled:t=>kh[e].some(e=>!!t[e])};function jh(e){for(let t in e)Ah[t]={...Ah[t],...e[t]}}const Mh=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 Nh(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Mh.has(e)}function Ph(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fh=o((()=>{})),Ih={};c(Ih,{default:()=>Rh});var Lh,Rh,zh=o((()=>{Fh(),Lh=/^((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)-.*))$/,Rh=Ph(function(e){return Lh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let Bh=e=>!Nh(e);function Vh(e){typeof e==`function`&&(Bh=t=>t.startsWith(`on`)?!Nh(t):e(t))}try{Vh((zh(),d(Ih)).default)}catch{}function Hh(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(Bh(i)||n===!0&&Nh(i)||!t&&!Nh(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const Uh=(0,f.createContext)({});function Wh(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Gh(e){return typeof e==`string`||Array.isArray(e)}const Kh=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],qh=[`initial`,...Kh];function Jh(e){return Wh(e.animate)||qh.some(t=>Gh(e[t]))}function Yh(e){return!!(Jh(e)||e.variants)}function Xh(e,t){if(Jh(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Gh(t)?t:void 0,animate:Gh(n)?n:void 0}}return e.inherit===!1?{}:t}function Zh(e){let{initial:t,animate:n}=Xh(e,(0,f.useContext)(Uh));return(0,f.useMemo)(()=>({initial:t,animate:n}),[Qh(t),Qh(n)])}function Qh(e){return Array.isArray(e)?e.join(` `):e}function $h(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eg={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(W.test(e))e=parseFloat(e);else return e;let n=$h(e,t.target.x),r=$h(e,t.target.y);return`${n}% ${r}%`}},tg={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=vf.parse(e);if(i.length>5)return r;let a=vf.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)}},ng={borderRadius:{...eg,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:eg,borderTopRightRadius:eg,borderBottomLeftRadius:eg,borderBottomRightRadius:eg,boxShadow:tg};function rg(e,{layout:t,layoutId:n}){return Op.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ng[e]||e===`opacity`)}const ig={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ag=Dp.length;function og(e,t,n){let r=``,i=!0;for(let a=0;a<ag;a++){let o=Dp[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=Bm(s,Mm[o]);if(!c){i=!1;let t=ig[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function sg(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(Op.has(e)){o=!0;continue}else if(jd(e)){i[e]=n;continue}else{let t=Bm(n,Mm[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=og(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 cg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lg(e,t,n){for(let r in t)!ph(t[r])&&!rg(r,n)&&(e[r]=t[r])}function ug({transformTemplate:e},t){return(0,f.useMemo)(()=>{let n=cg();return sg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dg(e,t){let n=e.style||{},r={};return lg(r,n,e),Object.assign(r,ug(e,t)),r}function fg(e,t){let n={},r=dg(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 pg={offset:`stroke-dashoffset`,array:`stroke-dasharray`},mg={offset:`strokeDashoffset`,array:`strokeDasharray`};function hg(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?pg:mg;e[a.offset]=W.transform(-r);let o=W.transform(t),s=W.transform(n);e[a.array]=`${o} ${s}`}function gg(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(sg(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&&hg(d,i,a,o,!1)}const _g=()=>({...cg(),attrs:{}}),vg=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function yg(e,t,n,r){let i=(0,f.useMemo)(()=>{let n=_g();return gg(n,t,vg(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};lg(t,e.style,e),i.style={...t,...i.style}}return i}const bg=[`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 xg(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(bg.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sg(e,t,n,{latestValues:r},i,a=!1){let o=xg(e)?yg:fg,s=o(t,r,i,e),c=Hh(t,typeof e==`string`,a),l=e===f.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,f.useMemo)(()=>ph(u)?u.get():u,[u]);return(0,f.createElement)(e,{...l,children:d})}function Cg(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function wg(e,t,n,r){if(typeof t==`function`){let[i,a]=Cg(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]=Cg(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Tg(e){return ph(e)?e.get():e}function Eg({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:Dg(n,r,i,e),renderState:t()};return a}function Dg(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Tg(a[e]);let{initial:o,animate:s}=e,c=Jh(e),l=Yh(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`&&!Wh(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=wg(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 Og=e=>(t,n)=>{let r=(0,f.useContext)(Uh),i=(0,f.useContext)(Ou),a=()=>Eg(e,t,r,i);return n?a():Tu(a)};function kg(e,t,n){let{style:r}=e,i={};for(let a in r)(ph(r[a])||t.style&&ph(t.style[a])||rg(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const Ag=Og({scrapeMotionValuesFromProps:kg,createRenderState:cg});function jg(e,t,n){let r=kg(e,t,n);for(let n in e)if(ph(e[n])||ph(t[n])){let t=Dp.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const Mg=Og({scrapeMotionValuesFromProps:jg,createRenderState:_g}),Ng=Symbol.for(`motionComponentSymbol`);function Pg(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Fg(e,t,n){return(0,f.useCallback)(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):Pg(n)&&(n.current=r))},[t])}const Ig=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),Lg=`framerAppearId`,Rg=`data-`+Ig(`framerAppearId`),zg=(0,f.createContext)({});function Bg(e,t,n,r,i){let{visualElement:a}=(0,f.useContext)(Uh),o=(0,f.useContext)(Oh),s=(0,f.useContext)(Ou),c=(0,f.useContext)(gh).reducedMotion,l=(0,f.useRef)(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,d=(0,f.useContext)(zg);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&Vg(l.current,n,i,d);let p=(0,f.useRef)(!1);(0,f.useInsertionEffect)(()=>{u&&p.current&&u.update(n,s)});let m=n[Rg],h=(0,f.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Du(()=>{u&&(p.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),h.current&&u.animationState&&u.animationState.animateChanges())}),(0,f.useEffect)(()=>{u&&(!h.current&&u.animationState&&u.animationState.animateChanges(),h.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),!1),u.enteringChildren=void 0)}),u}function Vg(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:Hg(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Pg(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Hg(e){if(e)return e.options.allowProjection===!1?Hg(e.parent):e.projection}function Ug(e,{forwardMotionProps:t=!1}={},n,r){n&&jh(n);let i=xg(e)?Mg:Ag;function a(a,o){let s,c={...(0,f.useContext)(gh),...a,layoutId:Wg(a)},{isStatic:l}=c,u=Zh(a),d=i(a,l);if(!l&&Eu){Gg(c,n);let t=Kg(c);s=t.MeasureLayout,u.visualElement=Bg(e,d,c,r,t.ProjectionNode)}return(0,p.jsxs)(Uh.Provider,{value:u,children:[s&&u.visualElement?(0,p.jsx)(s,{visualElement:u.visualElement,...c}):null,Sg(e,a,Fg(d,u.visualElement,o),d,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=(0,f.forwardRef)(a);return o[Ng]=e,o}function Wg({layoutId:e}){let t=(0,f.useContext)(wu).id;return t&&e!==void 0?t+`-`+e:e}function Gg(e,t){let n=(0,f.useContext)(Oh).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Nu(!1,t,`lazy-strict-mode`):Pu(!1,t,`lazy-strict-mode`)}}function Kg(e){let{drag:t,layout:n}=Ah;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function qg(e,t){if(typeof Proxy>`u`)return Ug;let n=new Map,r=(n,r)=>Ug(n,r,e,t),i=(e,t)=>(process.env.NODE_ENV!==`production`&&Yu(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t));return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Ug(a,void 0,e,t)),n.get(a))})}function Jg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Yg({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Xg(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 Zg(e){return e===void 0||e===1}function Qg({scale:e,scaleX:t,scaleY:n}){return!Zg(e)||!Zg(t)||!Zg(n)}function $g(e){return Qg(e)||e_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function e_(e){return t_(e.x)||t_(e.y)}function t_(e){return e&&e!==`0%`}function n_(e,t,n){let r=e-n,i=t*r;return n+i}function r_(e,t,n,r,i){return i!==void 0&&(e=n_(e,i,r)),n_(e,n,r)+t}function i_(e,t=0,n=1,r,i){e.min=r_(e.min,t,n,r,i),e.max=r_(e.max,t,n,r,i)}function a_(e,{x:t,y:n}){i_(e.x,t.translate,t.scale,t.originPoint),i_(e.y,n.translate,n.scale,n.originPoint)}const o_=.999999999999,s_=1.0000000000001;function c_(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&&d_(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,a_(e,o)),r&&$g(a.latestValues)&&d_(e,a.latestValues))}t.x<s_&&t.x>o_&&(t.x=1),t.y<s_&&t.y>o_&&(t.y=1)}function l_(e,t){e.min+=t,e.max+=t}function u_(e,t,n,r,i=.5){let a=G(e.min,e.max,i);i_(e,t,n,a,r)}function d_(e,t){u_(e.x,t.x,t.scaleX,t.scale,t.originX),u_(e.y,t.y,t.scaleY,t.scale,t.originY)}function f_(e,t){return Jg(Xg(e.getBoundingClientRect(),t))}function p_(e,t,n){let r=f_(e,n),{scroll:i}=t;return i&&(l_(r.x,i.offset.x),l_(r.y,i.offset.y)),r}const m_=()=>({translate:0,scale:1,origin:0,originPoint:0}),h_=()=>({x:m_(),y:m_()}),g_=()=>({min:0,max:0}),__=()=>({x:g_(),y:g_()}),v_={current:null},y_={current:!1};function b_(){if(y_.current=!0,Eu)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>v_.current=e.matches;e.addEventListener(`change`,t),t()}else v_.current=!1}const x_=new WeakMap;function S_(e,t,n){for(let r in t){let i=t[r],a=n[r];if(ph(i))e.addValue(r,i);else if(ph(a))e.addValue(r,Km(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,Km(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const C_=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var w_=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=Vp,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=Od.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=Jh(t),this.isVariantNode=Yh(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&&ph(t)&&t.set(s[e])}}mount(e){this.current=e,x_.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)),y_.current||b_(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:v_.current,process.env.NODE_ENV!==`production`&&Yu(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),Cd(this.notifyUpdate),Cd(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=Op.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 Ah){let t=Ah[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):__()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(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<C_.length;t++){let n=C_[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=S_(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=Km(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`&&(Iu(n)||Ru(n))?n=parseFloat(n):!hh(n)&&vf.test(t)&&(n=Fm(e,t)),this.setBaseTarget(e,ph(n)?n.get():n)),ph(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=wg(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&&!ph(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 Wu),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qm.render(this.render)}},T_=class extends w_{constructor(){super(...arguments),this.KeyframeResolver=Rm}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;ph(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function E_(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 D_(e){return window.getComputedStyle(e)}var O_=class extends T_{constructor(){super(...arguments),this.type=`html`,this.renderInstance=E_}readValueFromInstance(e,t){if(Op.has(t))return this.projection?.isProjecting?Cp(t):Tp(e,t);{let n=D_(e),r=(jd(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return f_(e,t)}build(e,t,n){sg(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return kg(e,t,n)}};const k_=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 A_(e,t,n,r){for(let n in E_(e,t,void 0,r),t.attrs)e.setAttribute(k_.has(n)?n:Ig(n),t.attrs[n])}var j_=class extends T_{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=__}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Op.has(t)){let e=Pm(t);return e&&e.default||0}return t=k_.has(t)?t:Ig(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return jg(e,t,n)}build(e,t,n){gg(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){A_(e,t,n,r)}mount(e){this.isSVGTag=vg(e.tagName),super.mount(e)}};const M_=(e,t)=>xg(e)?new j_(t):new O_(t,{allowProjection:e!==f.Fragment});function N_(e,t,n){let r=e.getProps();return wg(r,t,n===void 0?r.custom:n,e)}const P_=e=>Array.isArray(e);function F_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Km(n))}function I_(e){return P_(e)?e[e.length-1]||0:e}function L_(e,t){let n=N_(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=I_(a[t]);F_(e,t,n)}}function R_(e){return!!(ph(e)&&e.add)}function z_(e,t){let n=e.getValue(`willChange`);if(R_(n))return n.add(t);if(!n&&Fu.WillChange){let n=new Fu.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function B_(e){return e.props[Rg]}const V_=e=>e!==null;function H_(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(V_),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const U_={type:`spring`,stiffness:500,damping:25,restSpeed:10},W_=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G_={type:`keyframes`,duration:.8},K_={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},q_=(e,{keyframes:t})=>t.length>2?G_:Op.has(e)?e.startsWith(`scale`)?W_(t[1]):U_:K_;function J_({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 Y_=(e,t,n,r={},i,a)=>o=>{let s=ym(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Gu(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};J_(s)||Object.assign(u,q_(e,u)),u.duration&&=Gu(u.duration),u.repeatDelay&&=Gu(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(lm(u),u.delay===0&&(d=!0)),(Fu.instantAnimations||Fu.skipAnimations)&&(d=!0,lm(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=H_(u.keyframes,s);if(e!==void 0){U.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new pp(u):new mm(u)};function X_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Z_(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&&X_(l,t))continue;let o={delay:n,...ym(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=B_(e);if(n){let e=window.MotionHandoffAnimation(n,t,U);e!==null&&(o.startTime=e,d=!0)}}z_(e,t),r.start(Y_(t,r,i,e.shouldReduceMotion&&bm.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{U.update(()=>{o&&L_(e,o)})}),c}function Q_(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 $_(e,t,n={}){let r=N_(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(Z_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ev(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 ev(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($_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Q_(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function tv(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>$_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=$_(e,t,n);else{let i=typeof t==`function`?N_(e,t,n.custom):t;r=Promise.all(Z_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function nv(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 rv=qh.length;function iv(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&iv(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<rv;n++){let r=qh[n],i=e.props[r];(Gh(i)||i===!1)&&(t[r]=i)}return t}const av=[...Kh].reverse(),ov=Kh.length;function sv(e){return t=>Promise.all(t.map(({animation:t,options:n})=>tv(e,t,n)))}function cv(e){let t=sv(e),n=dv(),r=!0,i=t=>(n,r)=>{let i=N_(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=iv(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<ov;t++){let f=av[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Gh(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||Wh(m)||typeof m==`boolean`)continue;let v=lv(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=P_(t)&&P_(n)?!nv(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=N_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Q_(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=N_(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=dv()}}}function lv(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!nv(t,e):!1}function uv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dv(){return{animate:uv(!0),whileInView:uv(),whileHover:uv(),whileTap:uv(),whileDrag:uv(),whileFocus:uv(),exit:uv()}}var fv=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},pv=class extends fv{constructor(e){super(e),e.animationState||=cv(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Wh(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 mv=0;var hv=class extends fv{constructor(){super(...arguments),this.id=mv++}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 gv={animation:{Feature:pv},exit:{Feature:hv}};function _v(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function vv(e){return{point:{x:e.pageX,y:e.pageY}}}const yv=e=>t=>nh(t)&&e(t,vv(t));function bv(e,t,n,r){return _v(e,t,yv(n),r)}const xv=1e-4,Sv=1-xv,Cv=1+xv,wv=.01,Tv=0-wv,Ev=0+wv;function Dv(e){return e.max-e.min}function Ov(e,t,n){return Math.abs(e-t)<=n}function kv(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Dv(n)/Dv(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 Av(e,t,n,r){kv(e.x,t.x,n.x,r?r.originX:void 0),kv(e.y,t.y,n.y,r?r.originY:void 0)}function jv(e,t,n){e.min=n.min+t.min,e.max=e.min+Dv(t)}function Mv(e,t,n){jv(e.x,t.x,n.x),jv(e.y,t.y,n.y)}function Nv(e,t,n){e.min=t.min-n.min,e.max=e.min+Dv(t)}function Pv(e,t,n){Nv(e.x,t.x,n.x),Nv(e.y,t.y,n.y)}function Fv(e){return[e(`x`),e(`y`)]}const Iv=({current:e})=>e?e.ownerDocument.defaultView:null,Lv=(e,t)=>Math.abs(e-t);function Rv(e,t){let n=Lv(e.x,t.x),r=Lv(e.y,t.y);return Math.sqrt(n**2+r**2)}var zv=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=Hv(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Rv(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=wd;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=Bv(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=Hv(e.type===`pointercancel`?this.lastMoveEventInfo:Bv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!nh(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=vv(e),s=Bv(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=wd;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Hv(s,this.history)),this.removeListeners=Hu(bv(this.contextWindow,`pointermove`,this.handlePointerMove),bv(this.contextWindow,`pointerup`,this.handlePointerUp),bv(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Cd(this.updatePoint)}};function Bv(e,t){return t?{point:t(e.point)}:e}function Vv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Hv({point:e},t){return{point:e,delta:Vv(e,Wv(t)),offset:Vv(e,Uv(t)),velocity:Gv(t,.1)}}function Uv(e){return e[0]}function Wv(e){return e[e.length-1]}function Gv(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Wv(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gu(t)));)n--;if(!r)return{x:0,y:0};let a=Ku(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 qv(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:qv(e.x,n,i),y:qv(e.y,t,r)}}function Yv(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 Xv(e,t){return{x:Yv(e.x,t.x),y:Yv(e.y,t.y)}}function Zv(e,t){let n=.5,r=Dv(e),i=Dv(t);return i>r?n=Uu(t.min,t.max-r,e.min):r>i&&(n=Uu(e.min,e.max-i,t.min)),ju(0,1,n)}function Qv(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 $v=.35;function ey(e=$v){return e===!1?e=0:e===!0&&(e=$v),{x:ty(e,`left`,`right`),y:ty(e,`top`,`bottom`)}}function ty(e,t,n){return{min:ny(e,t),max:ny(e,n)}}function ny(e,t){return typeof e==`number`?e:e[t]||0}const ry=new WeakMap;var iy=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=__(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor: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(vv(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),Fv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Zd.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=Dv(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&U.postRender(()=>i(e,t)),z_(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=oy(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=()=>Fv(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new zv(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Iv(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||!ay(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&&Pg(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Jv(n.layoutBox,e):this.constraints=!1,this.elastic=ey(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Fv(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Qv(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Pg(e))return!1;let n=e.current;Pu(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=p_(n,r.root,this.visualElement.getTransformPagePoint()),a=Xv(r.layout.layoutBox,i);if(t){let e=t(Yg(a));this.hasMutatedConstraints=!!e,e&&(a=Jg(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Fv(o=>{if(!ay(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 z_(this.visualElement,e),n.start(Y_(e,n,0,t,this.visualElement,!1))}stopAnimation(){Fv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Fv(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){Fv(t=>{let{drag:n}=this.getProps();if(!ay(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(!Pg(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Fv(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Zv({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(),Fv(t=>{if(!ay(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;ry.set(this.visualElement,this);let e=this.visualElement.current,t=bv(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Pg(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=_v(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Fv(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=$v,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ay(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function oy(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var sy=class extends fv{constructor(e){super(e),this.removeGroupControls=Bu,this.removeListeners=Bu,this.controls=new iy(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bu}unmount(){this.removeGroupControls(),this.removeListeners()}};const cy=e=>(t,n)=>{e&&U.postRender(()=>e(t,n))};var ly=class extends fv{constructor(){super(...arguments),this.removePointerDownListener=Bu}onPointerDown(e){this.session=new zv(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Iv(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:cy(e),onStart:cy(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&U.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=bv(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 uy={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let dy=!1;var fy=class extends f.Component{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),dy&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),uy.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,dy=!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(),qm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;dy=!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 py(e){let[t,n]=wh(),r=(0,f.useContext)(wu);return(0,p.jsx)(fy,{...e,layoutGroup:r,switchLayoutGroup:(0,f.useContext)(zg),isPresent:t,safeToRemove:n})}function my(e,t,n){let r=ph(e)?e:Km(e);return r.start(Y_(``,r,t,n)),r.animation}const hy=(e,t)=>e.depth-t.depth;var gy=class{constructor(){this.children=[],this.isDirty=!1}add(e){ku(this.children,e),this.isDirty=!0}remove(e){Au(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(hy),this.isDirty=!1,this.children.forEach(e)}};function _y(e,t){let n=Od.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Cd(r),e(a-t))};return U.setup(r,!0),()=>Cd(r)}const vy=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],yy=vy.length,by=e=>typeof e==`string`?parseFloat(e):e,xy=e=>typeof e==`number`||W.test(e);function Sy(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,wy(r)),e.opacityExit=G(t.opacity??1,0,Ty(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<yy;i++){let a=`border${vy[i]}Radius`,o=Cy(t,a),s=Cy(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||xy(o)===xy(s);c?(e[a]=Math.max(G(by(o),by(s),r),0),(Zd.test(s)||Zd.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=G(t.rotate||0,n.rotate||0,r))}function Cy(e,t){return e[t]===void 0?e.borderRadius:e[t]}const wy=Ey(0,.5,cd),Ty=Ey(.5,.95,Bu);function Ey(e,t,n){return r=>r<e?0:r>t?1:n(Uu(e,t,r))}function Dy(e,t){e.min=t.min,e.max=t.max}function Oy(e,t){Dy(e.x,t.x),Dy(e.y,t.y)}function ky(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ay(e,t,n,r,i){return e-=t,e=n_(e,1/n,r),i!==void 0&&(e=n_(e,1/i,r)),e}function jy(e,t=0,n=1,r=.5,i,a=e,o=e){if(Zd.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=Ay(e.min,t,n,s,i),e.max=Ay(e.max,t,n,s,i)}function My(e,t,[n,r,i],a,o){jy(e,t[n],t[r],t[i],t.scale,a,o)}const Ny=[`x`,`scaleX`,`originX`],Py=[`y`,`scaleY`,`originY`];function Fy(e,t,n,r){My(e.x,t,Ny,n?n.x:void 0,r?r.x:void 0),My(e.y,t,Py,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Ly(e){return Iy(e.x)&&Iy(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function zy(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function By(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vy(e,t){return By(e.x,t.x)&&By(e.y,t.y)}function Hy(e){return Dv(e.x)/Dv(e.y)}function Uy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Wy=class{constructor(){this.members=[]}add(e){ku(this.members,e),e.scheduleRender()}remove(e){if(Au(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 Gy(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},qy=[``,`X`,`Y`,`Z`],Jy=1e3;let Yy=0;function Xy(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=B_(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&&Zy(r)}function Qy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Yy++,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,yd.value&&(Ky.nodes=Ky.calculatedTargetDeltas=Ky.calculatedProjections=0),this.nodes.forEach(tb),this.nodes.forEach(cb),this.nodes.forEach(lb),this.nodes.forEach(nb),yd.addProjectionMetrics&&yd.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 gy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Wu),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=dh(t)&&!fh(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=_y(i,250),uy.hasAnimatedSinceResize&&(uy.hasAnimatedSinceResize=!1,this.nodes.forEach(sb)))})}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()||gb,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Vy(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={...ym(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||sb(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(),Cd(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(ub),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&&Zy(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(ib);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ab);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ob),this.nodes.forEach($y),this.nodes.forEach(eb)):this.nodes.forEach(ab),this.clearAllSnapshots();let t=Od.now();wd.delta=ju(0,1e3/60,t-wd.timestamp),wd.timestamp=t,wd.isProcessing=!0,Td.update.process(wd),Td.preRender.process(wd),Td.render.process(wd),wd.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rb),this.sharedNodes.forEach(db)}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&&!Dv(this.snapshot.measuredBox.x)&&!Dv(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let 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=__(),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&&!Ly(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||$g(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)),bb(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return __();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(Sb);if(!n){let{scroll:e}=this.root;e&&(l_(t.x,e.offset.x),l_(t.y,e.offset.y))}return t}removeElementScroll(e){let t=__();if(Oy(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&&Oy(t,e),l_(t.x,i.offset.x),l_(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=__();Oy(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&&d_(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),$g(r.latestValues)&&d_(n,r.latestValues)}return $g(this.latestValues)&&d_(n,this.latestValues),n}removeTransform(e){let t=__();Oy(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!$g(n.latestValues))continue;Qg(n.latestValues)&&n.updateSnapshot();let r=__(),i=n.measurePageBox();Oy(r,i),Fy(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return $g(this.latestValues)&&Fy(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!==wd.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=wd.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=__(),this.targetWithTransforms=__()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oy(this.target,this.layout.layoutBox),a_(this.target,this.targetDelta)):Oy(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),yd.value&&Ky.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Qg(this.parent.latestValues)||e_(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=__(),this.relativeTargetOrigin=__(),Pv(this.relativeTargetOrigin,t,n),Oy(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===wd.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;Oy(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;c_(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=__());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ky(this.prevProjectionDelta.x,this.projectionDelta.x),ky(this.prevProjectionDelta.y,this.projectionDelta.y)),Av(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Uy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Uy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),yd.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=h_(),this.projectionDelta=h_(),this.projectionDeltaWithTransform=h_()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=h_();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=__(),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(hb));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;fb(a.x,e.x,n),fb(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pv(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mb(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&zy(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=__(),Oy(p,this.relativeTarget)),l&&(this.animationValues=i,Sy(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&&=(Cd(this.pendingAnimation),void 0),this.pendingAnimation=U.update(()=>{uy.hasAnimatedSinceResize=!0,kd.layout++,this.motionValue||=Km(0),this.currentAnimation=my(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{kd.layout--},onComplete:()=>{kd.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&&xb(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||__();let t=Dv(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Dv(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Oy(t,n),d_(t,i),Av(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wy);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&&Xy(`z`,e,r,this.animationValues);for(let t=0;t<qy.length;t++)Xy(`rotate${qy[t]}`,e,r,this.animationValues),Xy(`skew${qy[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=Tg(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=Tg(t?.pointerEvents)||``),this.hasProjected&&!$g(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Gy(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,ng){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ng[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?Tg(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ib),this.root.sharedNodes.clear()}}}function $y(e){e.updateLayout()}function eb(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`?Fv(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Dv(r);r.min=n[e].min,r.max=r.min+i}):xb(i,t.layoutBox,n)&&Fv(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Dv(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=h_();Av(o,n,t.layoutBox);let s=h_();a?Av(s,e.applyTransform(r,!0),t.measuredBox):Av(s,n,t.layoutBox);let c=!Ly(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=__();Pv(o,t.layoutBox,i.layoutBox);let s=__();Pv(s,n,a.layoutBox),Vy(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 tb(e){yd.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 nb(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rb(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function ab(e){e.isLayoutDirty=!1}function ob(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cb(e){e.resolveTargetDelta()}function lb(e){e.calcProjection()}function ub(e){e.resetSkewAndRotation()}function db(e){e.removeLeadSnapshot()}function fb(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 pb(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function mb(e,t,n,r){pb(e.x,t.x,n.x,r),pb(e.y,t.y,n.y,r)}function hb(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gb={duration:.45,ease:[.4,0,.1,1]},_b=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vb=_b(`applewebkit/`)&&!_b(`chrome/`)?Math.round:Bu;function yb(e){e.min=vb(e.min),e.max=vb(e.max)}function bb(e){yb(e.x),yb(e.y)}function xb(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ov(Hy(t),Hy(n),.2)}function Sb(e){return e!==e.root&&e.scroll?.wasRoot}const Cb=Qy({attachResizeListener:(e,t)=>_v(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wb={current:void 0},Tb=Qy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wb.current){let e=new Cb({});e.mount(window),e.setOptions({layoutScroll:!0}),wb.current=e}return wb.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Eb={pan:{Feature:ly},drag:{Feature:sy,ProjectionNode:Tb,MeasureLayout:py}};function Db(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,vv(t)))}var Ob=class extends fv{mount(){let{current:e}=this.node;e&&(this.unmount=eh(e,(e,t)=>(Db(this.node,t,`Start`),e=>Db(this.node,e,`End`))))}unmount(){}},kb=class extends fv{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=Hu(_v(this.node.current,`focus`,()=>this.onFocus()),_v(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Ab(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,vv(t)))}var jb=class extends fv{mount(){let{current:e}=this.node;e&&(this.unmount=uh(e,(e,t)=>(Ab(this.node,t,`Start`),(e,{success:t})=>Ab(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Mb=new WeakMap,Nb=new WeakMap,Pb=e=>{let t=Mb.get(e.target);t&&t(e)},Fb=e=>{e.forEach(Pb)};function Ib({root:e,...t}){let n=e||document;Nb.has(n)||Nb.set(n,{});let r=Nb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fb,{root:e,...t})),r[i]}function Lb(e,t,n){let r=Ib(t);return Mb.set(e,n),r.observe(e),()=>{Mb.delete(e),r.unobserve(e)}}const Rb={some:0,all:1};var zb=class extends fv{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:Rb[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 Lb(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(Bb(e,t));n&&this.startObserver()}unmount(){}};function Bb({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Vb={inView:{Feature:zb},tap:{Feature:jb},focus:{Feature:kb},hover:{Feature:Ob}},Hb={layout:{ProjectionNode:Tb,MeasureLayout:py}},Ub={...gv,...Vb,...Eb,...Hb},Wb=qg(Ub,M_),Gb=({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:m=[]})=>{let[h,g]=(0,f.useState)(t),_=e=>{let t=(e+m.length)%m.length;g(t),r(t,t>h?`right`:`left`)};(0,f.useEffect)(()=>{if(i){let e=setInterval(()=>{o||h<m.length-1?_(h+1):clearInterval(e)},s);return()=>clearInterval(e)}},[i,h,o,s,m.length]),(0,f.useEffect)(()=>{t!==h&&g(t)},[t]);let v=()=>{if(h===0&&!o)return;let e=h-1;e<0&&(e=m.length-1),_(e)},y=()=>{if(h===m.length-1){if(!o)return;_(0)}else _(h+1)},b={type:`spring`,damping:20,stiffness:100},x={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:b},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:b})};return(0,p.jsxs)(`div`,{"data-testid":e,className:`tw:flex tw:flex-col tw:items-center tw:justify-center tw:w-full tw:overflow-hidden ${n}`,children:[(0,p.jsxs)(`div`,{className:`tw:flex tw:items-center tw:w-full tw:h-max tw:gap-1`,children:[u&&(0,p.jsx)(Pt,{icon:c,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:`${h===0&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:v}),(0,p.jsx)(`div`,{className:`tw:h-full tw:w-full tw:overflow-hidden`,children:(0,p.jsx)(Wb.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:x,className:`tw:w-full`,children:m[h]},h)}),u&&(0,p.jsx)(Pt,{icon:l,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:`${h===m.length-1&&!o?`tw:invisible`:``} ${d} tw:animate-fadeIn`,onClick:y})]}),a&&(0,p.jsx)(`div`,{className:`tw:flex tw:gap-1 tw:mt-2`,children:m.map((e,t)=>(0,p.jsx)(`div`,{className:`tw:w-2 tw:h-2 tw:rounded-full tw:cursor-pointer ${t===h?`tw:bg-sq-theme-dark`:`tw:bg-sq-darkish-gray`}`,onClick:()=>_(t)},t))})]})};var Kb=Gb;const qb=`tw:flex`,Jb=`tw:ml-1.5 tw:text-sm tw:-mt-0.5`,Yb=`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`,Xb=`tw:rounded ${Yb}`,Zb=`tw:rounded-full ${Yb}`,Qb=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:m=``,extraLabelClassNames:h,testId:g,..._}=e,v=(0,f.useId)(),y=u??`checkbox${v}`,b=at(_);return(0,p.jsxs)(`span`,{className:`tw:flex ${m}`,children:[(0,p.jsx)(`input`,{value:n,type:t,"data-testid":g,name:d,id:y,readOnly:!a,checked:c,defaultChecked:l,className:`${t===`checkbox`?Xb:Zb} ${r?`tw:cursor-not-allowed`:`tw:cursor-pointer`}`,disabled:r,onClick:o,onChange:a,onKeyDown:s,...b}),i&&(0,p.jsx)(`label`,{htmlFor:y,className:`tw:ml-1.5 tw:text-sm tw:-mt-0.5 ${h} ${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})]})},$b=({isVisible:e,children:t})=>{let n=(0,f.useRef)(null),[r,i]=(0,f.useState)(0);return(0,f.useEffect)(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),(0,p.jsx)(Dh,{initial:!1,children:e&&(0,p.jsx)(Wb.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:(0,p.jsx)(`div`,{ref:n,children:t})})})};var ex=$b;const tx=`tw:cursor-pointer tw:border tw:border-gray-700 tw:dark:border-gray-500 tw:shadow-sm tw:focus-visible:outline-none`,nx={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`},rx=(0,f.forwardRef)(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,id:a,testId:o},s){return(0,p.jsx)(`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 ${nx[r]} ${i}`,"data-testid":o,id:a,onClick:t,style:{backgroundColor:e},type:`button`})});var ix=rx;const ax=[`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 ox({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,id:o,testId:s,onOpen:c}){let l=(0,f.useId)(),u=(0,p.jsx)(`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=(0,p.jsx)(ix,{"aria-label":t,color:e,id:o??l,size:`sm`,onClick:c});return n?(0,p.jsxs)(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[u,(0,p.jsxs)(mu,{children:[(0,p.jsx)(hu,{asChild:!0,children:d}),(0,p.jsx)(_u,{align:i,className:ax,"data-testid":s,side:r,sideOffset:2,children:n})]})]}):(0,p.jsxs)(`div`,{className:`tw:flex tw:items-center tw:gap-2 ${a}`,children:[(0,p.jsx)(`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 sx=ox;const cx=`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`,lx={normal:`tw:gap-2`,spacious:`tw:gap-3`},ux=`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,dx=`tw:flex tw:w-full tw:max-w-full tw:flex-wrap tw:items-center tw:justify-end tw:gap-2`,fx=({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})=>(0,p.jsxs)(`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 ${lx[s]} ${c}`,"data-testid":u,id:l,children:[(0,p.jsx)(`span`,{className:`tw:text-xs tw:font-bold tw:uppercase tw:tracking-wide tw:text-sq-theme-dark`,children:e}),t,(0,p.jsxs)(`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&&(0,p.jsx)(Pt,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&(0,p.jsx)(Pt,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]});var px=fx,mx=u(bt());const hx=`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`,gx=``,_x=`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,vx={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:``},yx=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,testId:a})=>(0,p.jsxs)(p.Fragment,{children:[t&&(0,p.jsx)(`span`,{className:`tw:text-sq-text-color tw:dark:text-sq-text-color-dark tw:shrink-0`,children:t}),(0,p.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener`,className:(0,mx.default)(vx[e],i),"data-testid":a,children:r})]});var bx=yx;function xx(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Sx(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=xx(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():xx(e,null)}),t.clear()}}}function Cx(...e){return(0,f.useCallback)(Sx(...e),e)}const wx=(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},Tx=`tw:border-sq-danger`,Ex=[`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(` `),Dx=`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`,Ox=`tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30`,kx=`tw:text-sq-text-color tw:disabled:text-sq-darkish-gray`,Ax={sm:`tw:text-sm`,lg:`tw:text-xl`},jx=(0,f.forwardRef)((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:m=`sm`,value:h,placeholder:g,extraClassNames:_,testId:v,type:y=`text`,inputGroup:b,step:x,showError:S,errorText:C,min:w,max:T,maxLength:E,minLength:D,required:O=!1,autoComplete:k=`off`,inputWidth:A=void 0,inputHeight:j=void 0,autoFocus:M=!1,...N}=e,P=(0,f.useRef)(null),ee=Cx(t,P),[F,I]=(0,f.useState)(null),L=at(N),R=(0,f.useRef)(M);(0,f.useEffect)(()=>{R.current&&setTimeout(()=>{P.current?.focus()},0)},[]),(0,f.useEffect)(()=>{let e=P.current;e&&y!==`number`&&y!==`email`&&e.setSelectionRange(F,F)},[t,F,h,y]);let z=e=>{I(e.target.selectionStart),i&&i(e)},B=()=>y===`number`?w===void 0?!0:w%Number(x??1)===0:!1,te=e=>{if(B()){let t=e.currentTarget,n=t.value;t.defaultValue=``,t.value=t.validity.valid&&h!=null?`${h}`:n}c?.(e)};(0,f.useEffect)(()=>{let e=P.current;y===`number`&&h!=null&&h!==e?.value&&e&&(e.value=`${h}`)},[h,y]);let ne=`tw:rounded-md`;b===`left`?ne=`tw:rounded-l-md tw:border-r-0 tw:focus:border-r tw:active:border-r`:b===`right`&&(ne=`tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l`);let re=`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 ${Ax[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-dark-text/30 ${ne} ${S?`tw:border-sq-danger`:Ex} `,ie=wx(A,j)?{style:wx(A,j)}:{},V={};E&&(V.maxLength=E),D&&(V.minLength=D);let ae=y===`number`?{defaultValue:h}:{value:h};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`input`,{ref:ee,"data-testid":v,name:d,id:u,type:y,...ae,className:re,placeholder:g,disabled:r,readOnly:n,autoComplete:k,onChange:z,onPaste:a,onFocus:s,onBlur:te,onKeyDown:l,onKeyUp:o,step:x,required:O,min:w,max:T,...V,...ie,...L}),C&&S&&(0,p.jsx)(`div`,{className:`tw:text-sq-danger tw:text-xs tw:mt-1`,children:C})]})});jx.displayName=`TextField`;const Mx=`tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap`,Nx=`tw:border-sq-danger`,Px=[`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(` `),Fx=`tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:p-1 tw:border-solid tw:border`,Ix=`tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray`,Lx=`tw:text-sq-text-color tw:disabled:text-sq-darkish-gray`,Rx=(0,f.forwardRef)((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:a,onBlur:o,onKeyDown:s,name:c,value:l,placeholder:u,append:d=[],extraClassNames:m=``,id:h,testId:g,showError:_,required:v,autoComplete:y,autoFocus:b,disabled:x,type:S,step:C,min:w,max:T,field:E,maxLength:D,minLength:O,inputGroup:k,...A}=e,j=at(A),M=`tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap ${m}`,N=d.filter(Boolean),P=k??(N.length>0?`left`:void 0),ee=P===`left`?`tw:rounded-l-md tw:rounded-r-none`:P===`right`?`tw:rounded-r-md tw:rounded-l-none`:`tw:rounded-md`,F=`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 ${ee} ${_?`tw:border-sq-danger`:Px} `,I=(0,f.isValidElement)(E)&&typeof E.type!=`string`,L=I?(0,f.cloneElement)(E,{inputGroup:P}):E;return(0,p.jsxs)(`div`,{id:`input-group-${h}`,className:M,children:[E?(0,p.jsx)(`div`,{"data-testid":g,className:`tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50 ${F}`,children:L}):(0,p.jsx)(jx,{testId:g,readonly:n,onChange:r,onKeyUp:i,onFocus:a,onBlur:o,onKeyDown:s,name:c,ref:t,showError:_,value:l,required:v,placeholder:u,autoComplete:y,autoFocus:b,id:h,type:S,disabled:x,step:C,min:w,max:T,maxLength:D,minLength:O,inputGroup:P,extraClassNames:`tw:flex tw:flex-1 tw:w-full tw:focus:z-30 ${m}`,...j}),N.map((e,t)=>e?.variant===`button`?(0,p.jsx)(Pt,{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):(0,p.jsx)(`div`,{className:`${Px} ${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))]})});Rx.displayName=`InputGroup`;var zx=u(es(),1),Bx=u(Na(),1),Vx=`Dialog`,[Hx,Ux]=g(Vx),[Wx,Gx]=Hx(Vx),Kx=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=f.useRef(null),c=f.useRef(null),[l,u]=M({prop:r,defaultProp:i??!1,onChange:a,caller:Vx});return(0,p.jsx)(Wx,{scope:t,triggerRef:s,contentRef:c,contentId:V(),titleId:V(),descriptionId:V(),open:l,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};Kx.displayName=Vx;var qx=`DialogTrigger`,Jx=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Gx(qx,n),a=b(t,i.triggerRef);return(0,p.jsx)(I.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mS(i.open),...r,ref:a,onClick:k(e.onClick,i.onOpenToggle)})});Jx.displayName=qx;var Yx=`DialogPortal`,[Xx,Zx]=Hx(Yx,{forceMount:void 0}),Qx=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Gx(Yx,t);return(0,p.jsx)(Xx,{scope:t,forceMount:n,children:f.Children.map(r,e=>(0,p.jsx)(z,{present:n||a.open,children:(0,p.jsx)(da,{asChild:!0,container:i,children:e})}))})};Qx.displayName=Yx;var $x=`DialogOverlay`,eS=f.forwardRef((e,t)=>{let n=Zx($x,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gx($x,e.__scopeDialog);return a.modal?(0,p.jsx)(z,{present:r||a.open,children:(0,p.jsx)(nS,{...i,ref:t})}):null});eS.displayName=$x;var tS=x(`DialogOverlay.RemoveScroll`),nS=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Gx($x,n);return(0,p.jsx)(zx.RemoveScroll,{as:tS,allowPinchZoom:!0,shards:[i.contentRef],children:(0,p.jsx)(I.div,{"data-state":mS(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),rS=`DialogContent`,iS=f.forwardRef((e,t)=>{let n=Zx(rS,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Gx(rS,e.__scopeDialog);return(0,p.jsx)(z,{present:r||a.open,children:a.modal?(0,p.jsx)(aS,{...i,ref:t}):(0,p.jsx)(oS,{...i,ref:t})})});iS.displayName=rS;var aS=f.forwardRef((e,t)=>{let n=Gx(rS,e.__scopeDialog),r=f.useRef(null),i=b(t,n.contentRef,r);return f.useEffect(()=>{let e=r.current;if(e)return(0,Bx.hideOthers)(e)},[]),(0,p.jsx)(sS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()}),onFocusOutside:k(e.onFocusOutside,e=>e.preventDefault())})}),oS=f.forwardRef((e,t)=>{let n=Gx(rS,e.__scopeDialog),r=f.useRef(!1),i=f.useRef(!1);return(0,p.jsx)(sS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target,o=n.triggerRef.current?.contains(a);o&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),sS=f.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Gx(rS,n),c=f.useRef(null),l=b(t,c);return tn(),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(cn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,p.jsx)(qt,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":mS(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(vS,{titleId:s.titleId}),(0,p.jsx)(bS,{contentRef:c,descriptionId:s.descriptionId})]})]})}),cS=`DialogTitle`,lS=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Gx(cS,n);return(0,p.jsx)(I.h2,{id:i.titleId,...r,ref:t})});lS.displayName=cS;var uS=`DialogDescription`,dS=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Gx(uS,n);return(0,p.jsx)(I.p,{id:i.descriptionId,...r,ref:t})});dS.displayName=uS;var fS=`DialogClose`,pS=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=Gx(fS,n);return(0,p.jsx)(I.button,{type:`button`,...r,ref:t,onClick:k(e.onClick,()=>i.onOpenChange(!1))})});pS.displayName=fS;function mS(e){return e?`open`:`closed`}var hS=`DialogTitleWarning`,[gS,_S]=h(hS,{contentName:rS,titleName:cS,docsSlug:`dialog`}),vS=({titleId:e})=>{let t=_S(hS),n=`\`${t.contentName}\` requires a \`${t.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/${t.do
|
|
|
69
69
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
70
70
|
|
|
71
71
|
Defaulting to \`null\`.`}var hC=aC,gC=sC,_C=s(((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=ee(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:N[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]=te(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=ae(e)),typeof e==`object`&&(V(e.r)&&V(e.g)&&V(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):V(e.h)&&V(e.s)&&V(e.v)?(r=te(e.s),i=te(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):V(e.h)&&V(e.s)&&V(e.l)&&(r=te(e.s),a=te(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=ee(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=[B(a(e).toString(16)),B(a(t).toString(16)),B(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=[B(a(e).toString(16)),B(a(t).toString(16)),B(a(n).toString(16)),B(ne(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=[B(ne(r)),B(a(e).toString(16)),B(a(t).toString(16)),B(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=oe(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`},N=l.hexNames=P(M);function P(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ee(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(t,n){R(t)&&(t=`100%`);var r=z(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 z(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function B(e){return e.length==1?`0`+e:``+e}function te(e){return e<=1&&(e=e*100+`%`),e}function ne(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 V(e){return!!ie.CSS_UNIT.exec(e)}function ae(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 oe(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)})),vC=u(_C());const yC={duration:660,easing:`ease-in-out`,fill:`forwards`},bC=`tw:left-1 tw:text-xs tw:text-sq-text-color tw:dark:text-sq-dark-text tw:items-center tw:h-4.5`,xC=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,m=at(d),h=(0,f.useRef)(0),g=(0,f.useRef)(null),_=(0,f.useRef)(null),[v,y]=(0,f.useState)(``),b=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,x=``;u>=c?l===0&&s===1?x=`tw:rounded-[0.9375rem]`:l===0?x=`tw:rounded-l-[0.9375rem]`:l===s-1&&(x=`tw:rounded-r-[0.9375rem]`):l===0&&(x=`tw:rounded-l-[0.9375rem]`);let S=n||void 0,C=n?``:`tw:bg-sq-theme-dark`,w=r?`progress-bar-indicator-${r}`:`progress-bar-indicator`,T=Number(t)/Number(c)*100;return(0,f.useEffect)(()=>{if(!_.current)return;function e(){g.current&&=(g.current.cancel(),null)}let t=h.current;return e(),_.current.style.width=`${T}%`,!b&&T!==t&&(g.current=_.current.animate([{width:`${t}%`},{width:`${T}%`}],yC)),h.current=T,()=>e()},[T,b]),(0,f.useEffect)(()=>{let e=e=>{let t=getComputedStyle(e),n=t.backgroundColor,r=(0,vC.default)(n).isDark()?`tw:text-sq-white tw:dark:text-sq-white`:`tw:text-sq-text-color tw:dark:text-sq-text-color`;y(r)};_.current&&e(_.current)},[n]),(0,p.jsx)(gC,{className:`tw:w-full tw:h-4.5 tw:flex tw:justify-center tw:items-center ${s===1?``:`tw:overflow-hidden`} ${x} ${C} ${a}`,...m,"data-qtip-text":d.tooltip?d.tooltip:`${t}%`,"data-segment-value":t,"data-testid":w,ref:_,style:{backgroundColor:S,width:b?`${T}%`:void 0},children:i?(0,p.jsx)(`span`,{className:`${bC} ${o} ${v} ${s===1?`tw:absolute tw:z-50`:``}`,children:i}):void 0})},SC=({values:e=[],max:t=100,containerExtraClasses:n=``,zeroValueLabel:r=`No progress yet`})=>{let i=e.reduce((e,{value:t})=>e+t,0);return(0,p.jsx)(hC,{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)=>(0,f.createElement)(xC,{...n,max:t,valuesLength:e.length,index:r,totalValue:i,key:r})):(0,p.jsx)(`div`,{className:`${bC} tw:mx-auto tw:overflow-hidden`,children:r})})};var CC=SC;const wC=`svgpath:`;function TC(e){return e.startsWith(`svgpath:`)}function EC(e){return TC(e)?e.substring(8):``}const DC=({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=at(l),f=r===`default`?`currentColor`:`var(--theme-icon)`;return(0,p.jsx)(`div`,{onClick:e,...d,className:`svgContainer ${u}`,children:(0,p.jsx)(`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:(0,p.jsx)(`path`,{d:EC(t)})})})};var OC=DC,kC=u(bt());const AC=e=>{let t=(0,p.jsx)(p.Fragment,{});return e.icon&&(t=TC(e.icon)?(0,p.jsx)(OC,{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}):(0,p.jsx)(lt,{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}`})),(0,p.jsxs)(`div`,{className:`tw:flex-row tw:flex tw:p-2.5 tw:pl-5 tw:w-150 tw:gap-4`,children:[(0,p.jsx)(`div`,{className:(0,kC.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}),(0,p.jsxs)(`div`,{className:`tw:flex tw:flex-col tw:justify-center`,children:[(0,p.jsx)(`div`,{className:`tw:text-[20px] tw:font-semibold`,children:e.display}),(0,p.jsx)(`div`,{className:`tw:text-sq-13 tw:leading-4`,children:e.text})]})]})},jC=e=>{let t=(0,p.jsx)(p.Fragment,{});return e.icon&&(t=TC(e.icon)?(0,p.jsx)(OC,{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}):(0,p.jsx)(lt,{icon:e.icon,type:`text`,extraClassNames:`tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`})),(0,p.jsx)(`div`,{className:`tw:flex-col tw:flex tw:p-2.5`,children:(0,p.jsxs)(`div`,{className:`tw:flex tw:flex-row tw:gap-2 tw:items-end`,children:[(0,p.jsx)(`div`,{className:`tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center `,children:t}),(0,p.jsx)(`div`,{className:`tw:text-sq-13`,children:e.display})]})})},MC=e=>(0,p.jsxs)(`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:[(0,p.jsx)(`h5`,{className:`tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5`,children:e.display}),(0,p.jsx)(`div`,{className:`tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text tw:mt-1!`,children:e.text})]}),NC=[`tw:border-solid`,`tw:border`,`tw:rounded-md`,`tw:border-sq-disabled-gray`,`tw:dark:border-gray-500`].join(` `),PC=[`tw:bg-sq-white`,`tw:dark:bg-sq-dark-background`].join(` `),FC=[`tw:opacity-50`,`tw:cursor-not-allowed`].join(` `),IC=(e,t)=>{switch(e){case`create-workbench`:return(0,p.jsx)(AC,{...t});case`view-workbench`:return(0,p.jsx)(jC,{...t});case`insert-seeq-content`:return(0,p.jsx)(MC,{...t});default:return(0,p.jsx)(AC,{...t})}},LC=({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:m=!0,keepFocusInsideDropdown:h=!0,variant:g,..._})=>{let v=at(_);return(0,p.jsxs)(Cl,{defaultOpen:!1,open:f,onOpenChange:d,modal:h,children:[(0,p.jsx)(wl,{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:(0,p.jsx)(`div`,{...v,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?FC:``} ${r||``}`,children:t})}),(0,p.jsx)(El,{sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!m&&e.preventDefault(),className:`tw:focus-visible:outline-none tw:outline-none`,children:(0,p.jsxs)(`div`,{"data-testid":i,className:`${PC} 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 ${NC}`,children:[u&&(0,p.jsx)(Al,{asChild:!0,children:(0,p.jsx)(`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)=>(0,p.jsxs)(`div`,{children:[(0,p.jsx)(Ol,{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:IC(g,e)}),e.divider&&(0,p.jsx)(kl,{"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 RC=LC;const zC=`sq-segmented-control-pill tw:cursor-pointer tw:rounded-full tw:border tw:px-3 tw:py-1.5 tw:text-sm tw:
|
|
72
|
+
tw:outline-none`,d=at(l),f=r===`default`?`currentColor`:`var(--theme-icon)`;return(0,p.jsx)(`div`,{onClick:e,...d,className:`svgContainer ${u}`,children:(0,p.jsx)(`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:(0,p.jsx)(`path`,{d:EC(t)})})})};var OC=DC,kC=u(bt());const AC=e=>{let t=(0,p.jsx)(p.Fragment,{});return e.icon&&(t=TC(e.icon)?(0,p.jsx)(OC,{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}):(0,p.jsx)(lt,{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}`})),(0,p.jsxs)(`div`,{className:`tw:flex-row tw:flex tw:p-2.5 tw:pl-5 tw:w-150 tw:gap-4`,children:[(0,p.jsx)(`div`,{className:(0,kC.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}),(0,p.jsxs)(`div`,{className:`tw:flex tw:flex-col tw:justify-center`,children:[(0,p.jsx)(`div`,{className:`tw:text-[20px] tw:font-semibold`,children:e.display}),(0,p.jsx)(`div`,{className:`tw:text-sq-13 tw:leading-4`,children:e.text})]})]})},jC=e=>{let t=(0,p.jsx)(p.Fragment,{});return e.icon&&(t=TC(e.icon)?(0,p.jsx)(OC,{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}):(0,p.jsx)(lt,{icon:e.icon,type:`text`,extraClassNames:`tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ${e.iconExtraClassNames}`})),(0,p.jsx)(`div`,{className:`tw:flex-col tw:flex tw:p-2.5`,children:(0,p.jsxs)(`div`,{className:`tw:flex tw:flex-row tw:gap-2 tw:items-end`,children:[(0,p.jsx)(`div`,{className:`tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center `,children:t}),(0,p.jsx)(`div`,{className:`tw:text-sq-13`,children:e.display})]})})},MC=e=>(0,p.jsxs)(`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:[(0,p.jsx)(`h5`,{className:`tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5`,children:e.display}),(0,p.jsx)(`div`,{className:`tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text tw:mt-1!`,children:e.text})]}),NC=[`tw:border-solid`,`tw:border`,`tw:rounded-md`,`tw:border-sq-disabled-gray`,`tw:dark:border-gray-500`].join(` `),PC=[`tw:bg-sq-white`,`tw:dark:bg-sq-dark-background`].join(` `),FC=[`tw:opacity-50`,`tw:cursor-not-allowed`].join(` `),IC=(e,t)=>{switch(e){case`create-workbench`:return(0,p.jsx)(AC,{...t});case`view-workbench`:return(0,p.jsx)(jC,{...t});case`insert-seeq-content`:return(0,p.jsx)(MC,{...t});default:return(0,p.jsx)(AC,{...t})}},LC=({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:m=!0,keepFocusInsideDropdown:h=!0,variant:g,..._})=>{let v=at(_);return(0,p.jsxs)(Cl,{defaultOpen:!1,open:f,onOpenChange:d,modal:h,children:[(0,p.jsx)(wl,{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:(0,p.jsx)(`div`,{...v,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?FC:``} ${r||``}`,children:t})}),(0,p.jsx)(El,{sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!m&&e.preventDefault(),className:`tw:focus-visible:outline-none tw:outline-none`,children:(0,p.jsxs)(`div`,{"data-testid":i,className:`${PC} 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 ${NC}`,children:[u&&(0,p.jsx)(Al,{asChild:!0,children:(0,p.jsx)(`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)=>(0,p.jsxs)(`div`,{children:[(0,p.jsx)(Ol,{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:IC(g,e)}),e.divider&&(0,p.jsx)(kl,{"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 RC=LC;const zC=`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`,BC=`sq-segmented-control-pill--inactive`,VC=`sq-segmented-control-pill--active`;function HC({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(0,p.jsx)(`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(0,p.jsx)(`button`,{"aria-pressed":r,className:i,onClick:n?()=>n(e.value):void 0,type:`button`,children:e.label},String(e.value))})})}var UC=HC;function WC(e){"@babel/helpers - typeof";return WC=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},WC(e)}function GC(e,t){if(WC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function KC(e){var t=GC(e,`string`);return WC(t)==`symbol`?t:t+``}function qC(e,t,n){return(t=KC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JC(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?JC(Object(n),!0).forEach(function(t){qC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YC(e){if(Array.isArray(e))return e}function XC(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 ZC(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 QC(e,t){if(e){if(typeof e==`string`)return ZC(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)?ZC(e,t):void 0}}function $C(){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 ew(e,t){return YC(e)||XC(e,t)||QC(e,t)||$C()}function tw(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 nw(e,t){if(e==null)return{};var n,r,i=tw(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 rw=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function iw(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,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,m=e.value,h=nw(e,rw),g=(0,f.useState)(s===void 0?n:s),_=ew(g,2),v=_[0],y=_[1],b=(0,f.useState)(c===void 0?i:c),x=ew(b,2),S=x[0],C=x[1],w=(0,f.useState)(m===void 0?o:m),T=ew(w,2),E=T[0],D=T[1],O=(0,f.useCallback)(function(e,t){typeof l==`function`&&l(e,t),D(e)},[l]),k=(0,f.useCallback)(function(e,t){var n;typeof u==`function`&&(n=u(e,t)),y(n===void 0?e:n)},[u]),A=(0,f.useCallback)(function(){typeof p==`function`&&p(),C(!0)},[p]),j=(0,f.useCallback)(function(){typeof d==`function`&&d(),C(!1)},[d]),M=s===void 0?v:s,N=c===void 0?S:c,P=m===void 0?E:m;return q(q({},h),{},{inputValue:M,menuIsOpen:N,onChange:O,onInputChange:k,onMenuClose:j,onMenuOpen:A,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 aw(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ow(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,KC(r.key),r)}}function sw(e,t,n){return t&&ow(e.prototype,t),n&&ow(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function cw(e,t){return cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cw(e,t)}function lw(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&&cw(e,t)}function uw(e){return uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uw(e)}function dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dw=function(){return!!e})()}function fw(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function pw(e,t){if(t&&(WC(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return fw(e)}function mw(e){var t=dw();return function(){var n,r=uw(e);if(t){var i=uw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pw(this,n)}}function hw(e){if(Array.isArray(e))return ZC(e)}function gw(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function _w(){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 vw(e){return hw(e)||gw(e)||QC(e)||_w()}var yw=!1;function bw(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 xw(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 Sw=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?!yw: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(xw(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=bw(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}(),Cw=`-ms-`,ww=`-moz-`,Y=`-webkit-`,Tw=`comm`,Ew=`rule`,Dw=`decl`,Ow=`@import`,kw=`@keyframes`,Aw=`@layer`,jw=Math.abs,Mw=String.fromCharCode,Nw=Object.assign;function Pw(e,t){return Rw(e,0)^45?(((t<<2^Rw(e,0))<<2^Rw(e,1))<<2^Rw(e,2))<<2^Rw(e,3):0}function Fw(e){return e.trim()}function Iw(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,n){return e.replace(t,n)}function Lw(e,t){return e.indexOf(t)}function Rw(e,t){return e.charCodeAt(t)|0}function zw(e,t,n){return e.slice(t,n)}function Bw(e){return e.length}function Vw(e){return e.length}function Hw(e,t){return t.push(e),e}function Uw(e,t){return e.map(t).join(``)}var Ww=1,Gw=1,Kw=0,qw=0,Jw=0,Yw=``;function Xw(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Ww,column:Gw,length:o,return:``}}function Zw(e,t){return Nw(Xw(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Qw(){return Jw}function $w(){return Jw=qw>0?Rw(Yw,--qw):0,Gw--,Jw===10&&(Gw=1,Ww--),Jw}function eT(){return Jw=qw<Kw?Rw(Yw,qw++):0,Gw++,Jw===10&&(Gw=1,Ww++),Jw}function tT(){return Rw(Yw,qw)}function nT(){return qw}function rT(e,t){return zw(Yw,e,t)}function iT(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 aT(e){return Ww=Gw=1,Kw=Bw(Yw=e),qw=0,[]}function oT(e){return Yw=``,e}function sT(e){return Fw(rT(qw-1,uT(e===91?e+2:e===40?e+1:e)))}function cT(e){for(;(Jw=tT())&&Jw<33;)eT();return iT(e)>2||iT(Jw)>3?``:` `}function lT(e,t){for(;--t&&eT()&&!(Jw<48||Jw>102||Jw>57&&Jw<65||Jw>70&&Jw<97););return rT(e,nT()+(t<6&&tT()==32&&eT()==32))}function uT(e){for(;eT();)switch(Jw){case e:return qw;case 34:case 39:e!==34&&e!==39&&uT(Jw);break;case 40:e===41&&uT(e);break;case 92:eT();break}return qw}function dT(e,t){for(;eT()&&e+Jw!==57&&!(e+Jw===84&&tT()===47););return`/*`+rT(t,qw-1)+`*`+Mw(e===47?e:eT())}function fT(e){for(;!iT(tT());)eT();return rT(e,qw)}function pT(e){return oT(mT(``,null,null,null,[``],e=aT(e),0,[0],e))}function mT(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=eT()){case 40:if(m!=108&&Rw(C,d-1)==58){Lw(C+=X(sT(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=sT(v);break;case 9:case 10:case 13:case 32:C+=cT(m);break;case 92:C+=lT(nT()-1,7);continue;case 47:switch(tT()){case 42:case 47:Hw(gT(dT(eT(),nT()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Bw(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&&Bw(C)-d&&Hw(p>32?_T(C+`;`,r,n,d-1):_T(X(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Hw(S=hT(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)mT(C,t,S,S,b,a,d,s,x);else switch(f===99&&Rw(C,3)===110?100:f){case 100:case 108:case 109:case 115:mT(e,S,S,r&&Hw(hT(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:mT(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Bw(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&$w()==125)continue}switch(C+=Mw(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Bw(C)-1)*_,_=1;break;case 64:tT()===45&&(C+=sT(eT())),f=tT(),u=d=Bw(y=C+=fT(nT())),v++;break;case 45:m===45&&Bw(C)==2&&(h=0)}}return a}function hT(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Vw(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=zw(e,d+1,d=jw(h=o[m])),y=e;_<p;++_)(y=Fw(h>0?f[_]+` `+v:X(v,/&\f/g,f[_])))&&(c[g++]=y);return Xw(e,t,n,i===0?Ew:s,c,l,u)}function gT(e,t,n){return Xw(e,t,n,Tw,Mw(Qw()),zw(e,2,-2),0)}function _T(e,t,n,r){return Xw(e,t,n,Dw,zw(e,0,r),zw(e,r+1,-1),r)}function vT(e,t){for(var n=``,r=Vw(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function yT(e,t,n,r){switch(e.type){case Aw:if(e.children.length)break;case Ow:case Dw:return e.return=e.return||e.value;case Tw:return``;case kw:return e.return=e.value+`{`+vT(e.children,r)+`}`;case Ew:e.value=e.props.join(`,`)}return Bw(n=vT(e.children,r))?e.return=e.value+`{`+n+`}`:``}function bT(e){var t=Vw(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 xT(e){return function(t){t.root||(t=t.return)&&e(t)}}var ST=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};Fh();var CT=typeof document<`u`,wT=function(e,t,n){for(var r=0,i=0;r=i,i=tT(),r===38&&i===12&&(t[n]=1),!iT(i);)eT();return rT(e,qw)},TT=function(e,t){var n=-1,r=44;do switch(iT(r)){case 0:r===38&&tT()===12&&(t[n]=1),e[n]+=wT(qw-1,t,n);break;case 2:e[n]+=sT(r);break;case 4:if(r===44){e[++n]=tT()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=Mw(r)}while(r=eT());return e},ET=function(e,t){return oT(TT(aT(e),t))},DT=new WeakMap,OT=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&&!DT.get(n))&&!r){DT.set(e,!0);for(var i=[],a=ET(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]}}},kT=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function AT(e,t){switch(Pw(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+ww+e+Cw+e+e;case 6828:case 4268:return Y+e+Cw+e+e;case 6165:return Y+e+Cw+`flex-`+e+e;case 5187:return Y+e+X(e,/(\w+).+(:[^]+)/,Y+`box-$1$2`+Cw+`flex-$1$2`)+e;case 5443:return Y+e+Cw+`flex-item-`+X(e,/flex-|-self/,``)+e;case 4675:return Y+e+Cw+`flex-line-pack`+X(e,/align-content|flex-|-self/,``)+e;case 5548:return Y+e+Cw+X(e,`shrink`,`negative`)+e;case 5292:return Y+e+Cw+X(e,`basis`,`preferred-size`)+e;case 6060:return Y+`box-`+X(e,`-grow`,``)+Y+e+Cw+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`+Cw+`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(Bw(e)-1-t>6)switch(Rw(e,t+1)){case 109:if(Rw(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,`$1`+Y+`$2-$3$1`+ww+(Rw(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Lw(e,`stretch`)?AT(X(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(Rw(e,t+1)!==115)break;case 6444:switch(Rw(e,Bw(e)-3-(~Lw(e,`!important`)&&10))){case 107:return X(e,`:`,`:`+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Y+(Rw(e,14)===45?`inline-`:``)+`box$3$1`+Y+`$2$3$1`+Cw+`$2box$3`)+e}break;case 5936:switch(Rw(e,t+11)){case 114:return Y+e+Cw+X(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Y+e+Cw+X(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Y+e+Cw+X(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Y+e+Cw+e+e}return e}var jT=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dw:e.return=AT(e.value,e.length);break;case kw:return vT([Zw(e,{value:X(e.value,`@`,`@`+Y)})],r);case Ew:if(e.length)return Uw(e.props,function(t){switch(Iw(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return vT([Zw(e,{props:[X(t,/:(read-\w+)/,`:`+ww+`$1`)]})],r);case`::placeholder`:return vT([Zw(e,{props:[X(t,/:(plac\w+)/,`:`+Y+`input-$1`)]}),Zw(e,{props:[X(t,/:(plac\w+)/,`:`+ww+`$1`)]}),Zw(e,{props:[X(t,/:(plac\w+)/,Cw+`input-$1`)]})],r)}return``})}},MT=CT?void 0:ST(function(){return Ph(function(){return{}})}),NT=[jT],PT=function(e){var t=e.key;if(CT&&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||NT,i={},a,o=[];CT&&(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=[OT,kT];if(MT){var l=[yT],u=bT(c.concat(r,l)),d=function(e){return vT(pT(e),u)},f=MT(r)(t),p=function(e,t){var n=t.name;return f[n]===void 0&&(f[n]=d(e?e+`{`+t.styles+`}`:t.styles)),f[n]};s=function(e,t,n,r){var i=t.name,a=p(e,t);if(v.compat===void 0)return r&&(v.inserted[i]=!0),a;if(r)v.inserted[i]=a;else return a}}else{var m,h=[yT,xT(function(e){m.insert(e)})],g=bT(c.concat(r,h)),_=function(e){return vT(pT(e),g)};s=function(e,t,n,r){m=n,_(e?e+`{`+t.styles+`}`:t.styles),r&&(v.inserted[t.name]=!0)}}var v={key:t,sheet:new Sw({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 v.sheet.hydrate(o),v},FT=s((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})),IT=s((exports=>{process.env.NODE_ENV!==`production`&&(function(){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){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)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,ee=!1;function F(e){return ee||(ee=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),I(e)||x(e)===l}function I(e){return x(e)===u}function L(e){return x(e)===c}function R(e){return x(e)===s}function z(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function B(e){return x(e)===d}function te(e){return x(e)===i}function ne(e){return x(e)===h}function re(e){return x(e)===m}function ie(e){return x(e)===r}function V(e){return x(e)===o}function ae(e){return x(e)===a}function oe(e){return x(e)===f}exports.AsyncMode=S,exports.ConcurrentMode=C,exports.ContextConsumer=w,exports.ContextProvider=T,exports.Element=E,exports.ForwardRef=D,exports.Fragment=O,exports.Lazy=k,exports.Memo=A,exports.Portal=j,exports.Profiler=M,exports.StrictMode=N,exports.Suspense=P,exports.isAsyncMode=F,exports.isConcurrentMode=I,exports.isContextConsumer=L,exports.isContextProvider=R,exports.isElement=z,exports.isForwardRef=B,exports.isFragment=te,exports.isLazy=ne,exports.isMemo=re,exports.isPortal=ie,exports.isProfiler=V,exports.isStrictMode=ae,exports.isSuspense=oe,exports.isValidElementType=b,exports.typeOf=x})()})),LT=s(((exports,t)=>{process.env.NODE_ENV===`production`?t.exports=FT():t.exports=IT()})),RT=s(((exports,t)=>{var n=LT(),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})),zT=typeof document<`u`;function BT(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var VT=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||zT===!1&&e.compat!==void 0)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},HT=function(e,t,n){VT(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=``,a=t;do{var o=e.insert(t===a?`.`+r:``,a,e.sheet,!0);!zT&&o!==void 0&&(i+=o),a=a.next}while(a!==void 0);if(!zT&&i.length!==0)return i}};function UT(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 WT={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};Fh();var GT=!1,KT=/[A-Z]|^ms/g,qT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,JT=function(e){return e.charCodeAt(1)===45},YT=function(e){return e!=null&&typeof e!=`boolean`},XT=Ph(function(e){return JT(e)?e:e.replace(KT,`-$&`).toLowerCase()}),ZT=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(qT,function(e,t,n){return nE={name:t,styles:n,next:nE},t})}return WT[e]!==1&&!JT(e)&&typeof t==`number`&&t!==0?t+`px`:t},QT=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function $T(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 nE={name:i.name,styles:i.styles,next:nE},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)nE={name:o.name,styles:o.styles,next:nE},o=o.next;var s=a.styles+`;`;return s}return eE(e,t,n);case`function`:if(e!==void 0){var c=nE,l=n(e);return nE=c,$T(e,t,l)}break}var u=n;if(t==null)return u;var d=t[u];return d===void 0?u:d}function eE(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=$T(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]+`}`:YT(s)&&(r+=XT(a)+`:`+ZT(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&>)throw Error(QT);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)YT(o[c])&&(r+=XT(a)+`:`+ZT(a,o[c])+`;`);else{var l=$T(e,t,o);switch(a){case`animation`:case`animationName`:r+=XT(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var tE=/label:\s*([^\s;{]+)\s*(;|$)/g,nE;function rE(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=``;nE=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=$T(n,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=$T(n,t,e[s]),r){var c=a;i+=c[s]}tE.lastIndex=0;for(var l=``,u;(u=tE.exec(i))!==null;)l+=`-`+u[1];var d=UT(i)+l;return{name:d,styles:i,next:nE}}var iE=typeof document<`u`,aE=function(e){return e()},oE=f.useInsertionEffect?f.useInsertionEffect:!1,sE=iE&&oE||aE,cE=oE||f.useLayoutEffect,lE=!1,uE=typeof document<`u`,dE=f.createContext(typeof HTMLElement<`u`?PT({key:`css`}):null),fE=dE.Provider,pE=function(e){return(0,f.forwardRef)(function(t,n){var r=(0,f.useContext)(dE);return e(t,r,n)})};uE||(pE=function(e){return function(t){var n=(0,f.useContext)(dE);return n===null?(n=PT({key:`css`}),f.createElement(dE.Provider,{value:n},e(t,n))):e(t,n)}});var mE=f.createContext({}),hE={}.hasOwnProperty,gE=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,_E=function(e,t){var n={};for(var r in t)hE.call(t,r)&&(n[r]=t[r]);return n[gE]=e,n},vE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;VT(t,n,r);var i=sE(function(){return HT(t,n,r)});if(!uE&&i!==void 0){for(var a,o=n.name,s=n.next;s!==void 0;)o+=` `+s.name,s=s.next;return f.createElement(`style`,(a={},a[`data-emotion`]=t.key+` `+o,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},yE=pE(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[gE],a=[r],o=``;typeof e.className==`string`?o=BT(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=rE(a,void 0,f.useContext(mE));o+=t.key+`-`+s.name;var c={};for(var l in e)hE.call(e,l)&&l!==`css`&&l!==gE&&!lE&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),f.createElement(f.Fragment,null,f.createElement(vE,{cache:t,serialized:s,isStringTag:typeof i==`string`}),f.createElement(i,c))}),bE=yE,xE=s(((exports,t)=>{function n(){return t.exports=n=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},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(null,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),SE=u(xE()),CE=u(RT()),Z=function(e,t){var n=arguments;if(t==null||!hE.call(t,`css`))return f.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=bE,i[1]=_E(e,t);for(var a=2;a<r;a++)i[a]=n[a];return f.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Z||={});function wE(){var e=[...arguments];return rE(e)}function TE(){var e=wE.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 EE(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function DE(e){let t=H(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=gr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Cn(n)!==a||Cn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function OE(e){return hr(e)?e:e.contextElement}function kE(e){let t=OE(e);if(!gr(t))return Tn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=DE(t),o=(a?Cn(n.width):n.width)/r,s=(a?Cn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const AE=Tn(0);function jE(e){let t=fr(e);return!kr()||!t.visualViewport?AE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ME(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fr(e)?!1:t}function NE(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=OE(e),o=Tn(1);t&&(r?hr(r)&&(o=kE(r)):o=kE(e));let s=ME(a,n,r)?jE(a):Tn(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=fr(a),t=r&&hr(r)?fr(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=kE(i),t=i.getBoundingClientRect(),r=H(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=fr(i),i=n.frameElement}}return Yn({width:u,height:d,x:c,y:l})}const PE=[`:popover-open`,`:modal`];function FE(e){return PE.some(t=>{try{return e.matches(t)}catch{return!1}})}function IE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=pr(r),s=t?FE(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Tn(1),u=Tn(0),d=gr(r);if((d||!d&&!a)&&((dr(r)!==`body`||yr(o))&&(c=Mr(r)),gr(r))){let e=NE(r);l=kE(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 LE(e){return Array.from(e.getClientRects())}function RE(e){return NE(pr(e)).left+Mr(e).scrollLeft}function zE(e){let t=pr(e),n=Mr(e),r=e.ownerDocument.body,i=Sn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Sn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+RE(e),s=-n.scrollTop;return H(r).direction===`rtl`&&(o+=Sn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function BE(e,t){let n=fr(e),r=pr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=kr();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function VE(e,t){let n=NE(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=gr(e)?kE(e):Tn(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 HE(e,t,n){let r;if(t===`viewport`)r=BE(e,n);else if(t===`document`)r=zE(pr(e));else if(hr(t))r=VE(t,n);else{let n=jE(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Yn(r)}function UE(e,t){let n=Nr(e);return n===t||!hr(n)||jr(n)?!1:H(n).position===`fixed`||UE(n,t)}function WE(e,t){let n=t.get(e);if(n)return n;let r=Fr(e,[],!1).filter(e=>hr(e)&&dr(e)!==`body`),i=null,a=H(e).position===`fixed`,o=a?Nr(e):e;for(;hr(o)&&!jr(o);){let t=H(o),n=Dr(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||yr(o)&&!n&&UE(e,o);s?r=r.filter(e=>e!==o):i=t,o=Nr(o)}return t.set(e,r),r}function GE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?WE(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=HE(t,n,i);return e.top=Sn(r.top,e.top),e.right=xn(r.right,e.right),e.bottom=xn(r.bottom,e.bottom),e.left=Sn(r.left,e.left),e},HE(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function KE(e){let{width:t,height:n}=DE(e);return{width:t,height:n}}function qE(e,t,n){let r=gr(t),i=pr(t),a=n===`fixed`,o=NE(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Tn(0);if(r||!r&&!a)if((dr(t)!==`body`||yr(i))&&(s=Mr(t)),r){let e=NE(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=RE(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 JE(e,t){return!gr(e)||H(e).position===`fixed`?null:t?t(e):e.offsetParent}function YE(e,t){let n=fr(e);if(!gr(e)||FE(e))return n;let r=JE(e,t);for(;r&&xr(r)&&H(r).position===`static`;)r=JE(r,t);return r&&(dr(r)===`html`||dr(r)===`body`&&H(r).position===`static`&&!Dr(r))?n:r||Or(e)||n}const XE=async function(e){let t=this.getOffsetParent||YE,n=this.getDimensions;return{reference:qE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function ZE(e){return H(e).direction===`rtl`}const QE={convertOffsetParentRelativeRectToViewportRelativeRect:IE,getDocumentElement:pr,getClippingRect:GE,getOffsetParent:YE,getElementRects:XE,getClientRects:LE,getDimensions:KE,getScale:kE,isElement:hr,isRTL:ZE};function $E(e,t){let n=null,r,i=pr(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=wn(u),m=wn(i.clientWidth-(l+d)),h=wn(i.clientHeight-(u+f)),g=wn(l),_=-p+`px `+-m+`px `+-h+`px `+-g+`px`,v={rootMargin:_,threshold:Sn(0,xn(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 eD(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=OE(e),u=i||a?[...l?Fr(l):[],...Fr(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?$E(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?NE(e):null;c&&g();function g(){let t=NE(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 tD=sr,nD=er,rD=$n,iD=(e,t,n)=>{let r=new Map,i={platform:QE,...n},a={...i.platform,_c:r};return Zn(e,t,{...i,platform:a})};var aD=typeof document<`u`,oD=function(){},sD=aD?f.useLayoutEffect:oD,cD=[`className`,`clearValue`,`cx`,`getStyles`,`getClassNames`,`getValue`,`hasValue`,`isMulti`,`isRtl`,`options`,`selectOption`,`selectProps`,`setValue`,`theme`],lD=function(){};function uD(e,t){return t?t[0]===`-`?e+t:e+`__`+t:e}function dD(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(`${uD(e,i)}`);return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(` `)}var fD=function(e){return AD(e)?e.filter(Boolean):WC(e)===`object`&&e!==null?[e]:[]},pD=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=nw(e,cD);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 mD(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function hD(e){return mD(e)?window.innerHeight:e.clientHeight}function gD(e){return mD(e)?window.pageYOffset:e.scrollTop}function _D(e,t){if(mD(e)){window.scrollTo(0,t);return}e.scrollTop=t}function vD(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 yD(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function bD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:lD,i=gD(e),a=t-i,o=10,s=0;function c(){s+=o;var t=yD(s,i,a,n);_D(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function xD(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?_D(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&_D(e,Math.max(t.offsetTop-i,0))}function SD(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 CD(){try{return document.createEvent(`TouchEvent`),!0}catch{return!1}}function wD(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var TD=!1,ED={get passive(){return TD=!0}},DD=typeof window<`u`?window:{};DD.addEventListener&&DD.removeEventListener&&(DD.addEventListener(`p`,lD,ED),DD.removeEventListener(`p`,lD,!1));var OD=TD;function kD(e){return e!=null}function AD(e){return Array.isArray(e)}function jD(e,t,n){return e?t:n}function MD(e){return e}function ND(e){return e}var PD=function(e){var t=[...arguments].slice(1),n=Object.entries(e).filter(function(e){var n=ew(e,1),r=n[0];return!t.includes(r)});return n.reduce(function(e,t){var n=ew(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},FD=[`children`,`innerProps`],ID=[`children`,`innerProps`];function LD(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,c=vD(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:hD(c),y=gD(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&&bD(c,E,O),{placement:`bottom`,maxHeight:t};if(!o&&T>=r||o&&C>=r){a&&bD(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&&_D(c,E),{placement:`bottom`,maxHeight:t};break;case`top`:if(S>=m)return{placement:`top`,maxHeight:t};if(w>=m&&!o)return a&&bD(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&&bD(c,D,O),{placement:`top`,maxHeight:M}}return{placement:`bottom`,maxHeight:t};default:throw Error(`Invalid placement provided "${i}".`)}return l}function RD(e){var t={bottom:`top`,top:`bottom`};return e?t[e]:`bottom`}var zD=function(e){return e===`auto`?`bottom`:e},BD=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`},qC(n,RD(r),`100%`),qC(n,`position`,`absolute`),qC(n,`width`,`100%`),qC(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})},VD=(0,f.createContext)(null),HD=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=(0,f.useContext)(VD)||{},l=c.setPortalPlacement,u=(0,f.useRef)(null),d=(0,f.useState)(r),p=ew(d,2),m=p[0],h=p[1],g=(0,f.useState)(null),_=ew(g,2),v=_[0],y=_[1],b=s.spacing.controlHeight;return sD(function(){var e=u.current;if(e){var t=a===`fixed`,s=o&&!t,c=LD({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s,isFixedPosition:t,controlHeight:b});h(c.maxHeight),y(c.placement),l?.(c.placement)}},[r,i,a,o,n,l,b]),t({ref:u,placerProps:q(q({},e),{},{placement:v||zD(i),maxHeight:m})})},UD=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)},WD=UD,GD=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})},KD=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)},qD=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`})},JD=qD,YD=qD,XD=function(e){var t=e.children,n=t===void 0?`No options`:t,r=e.innerProps,i=nw(e,FD);return Z(`div`,J({},Q(q(q({},i),{},{children:n,innerProps:r}),`noOptionsMessage`,{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},ZD=function(e){var t=e.children,n=t===void 0?`Loading...`:t,r=e.innerProps,i=nw(e,ID);return Z(`div`,J({},Q(q(q({},i),{},{children:n,innerProps:r}),`loadingMessage`,{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},QD=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}},$D=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=(0,f.useRef)(null),c=(0,f.useRef)(null),l=(0,f.useState)(zD(a)),u=ew(l,2),d=u[0],p=u[1],h=(0,f.useMemo)(function(){return{setPortalPlacement:p}},[]),g=(0,f.useState)(null),_=ew(g,2),v=_[0],y=_[1],b=(0,f.useCallback)(function(){if(r){var e=SD(r),t=o===`fixed`?0:window.pageYOffset,n=e[d]+t;(n!==v?.offset||e.left!==v?.rect.left||e.width!==v?.rect.width)&&y({offset:n,rect:e})}},[r,o,d,v?.offset,v?.rect.left,v?.rect.width]);sD(function(){b()},[b]);var x=(0,f.useCallback)(function(){typeof c.current==`function`&&(c.current(),c.current=null),r&&s.current&&(c.current=eD(r,s.current,b,{elementResize:`ResizeObserver`in window}))},[r,b]);sD(function(){x()},[x]);var S=(0,f.useCallback)(function(e){s.current=e,x()},[x]);if(!t&&o!==`fixed`||!v)return null;var C=Z(`div`,J({ref:S},Q(q(q({},e),{},{offset:v.offset,position:o,rect:v.rect}),`menuPortal`,{"menu-portal":!0}),i),n);return Z(VD.Provider,{value:h},t?(0,m.createPortal)(C,t):C)},eO=function(e){var t=e.isDisabled,n=e.isRtl;return{label:`container`,direction:n?`rtl`:void 0,pointerEvents:t?`none`:void 0,position:`relative`}},tO=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)},nO=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`})},rO=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)},iO=function(){return{alignItems:`center`,alignSelf:`stretch`,display:`flex`,flexShrink:0}},aO=function(e){var t=e.children,n=e.innerProps;return Z(`div`,J({},Q(e,`indicatorsContainer`,{indicators:!0}),n),t)},oO,sO=[`size`],cO=[`innerProps`,`isRtl`,`size`];function lO(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var uO=process.env.NODE_ENV===`production`?{name:`8mmkcg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0`}:{name:`tj5bde-Svg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;`,map:`/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */`,toString:lO},dO=function(e){var t=e.size,n=nw(e,sO);return Z(`svg`,J({height:t,width:t,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,css:uO},n))},fO=function(e){return Z(dO,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`}))},pO=function(e){return Z(dO,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`}))},mO=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}})},hO=mO,gO=function(e){var t=e.children,n=e.innerProps;return Z(`div`,J({},Q(e,`dropdownIndicator`,{indicator:!0,"dropdown-indicator":!0}),n),t||Z(pO,null))},_O=mO,vO=function(e){var t=e.children,n=e.innerProps;return Z(`div`,J({},Q(e,`clearIndicator`,{indicator:!0,"clear-indicator":!0}),n),t||Z(fO,null))},yO=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})},bO=function(e){var t=e.innerProps;return Z(`span`,J({},t,Q(e,`indicatorSeparator`,{"indicator-separator":!0})))},xO=TE(oO||=EE([`
|
|
75
75
|
0%, 80%, 100% { opacity: 0; }
|