diff --git a/docs/assets/index-0e6c3762.js b/docs/assets/index-15544382.js similarity index 93% rename from docs/assets/index-0e6c3762.js rename to docs/assets/index-15544382.js index 049cd5d..f1afb3a 100644 --- a/docs/assets/index-0e6c3762.js +++ b/docs/assets/index-15544382.js @@ -21,7 +21,7 @@ function W8(e,t){for(var n=0;n=4;++r,a-=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(a){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 Vq={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,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},Uq=/[A-Z]|^ms/g,jq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HO=function(t){return t.charCodeAt(1)===45},xA=function(t){return t!=null&&typeof t!="boolean"},Fw=PO(function(e){return HO(e)?e:e.replace(Uq,"-$&").toLowerCase()}),wA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jq,function(r,a,i){return zi={name:a,styles:i,next:zi},a})}return Vq[t]!==1&&!HO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Im(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return zi={name:n.name,styles:n.styles,next:zi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)zi={name:r.name,styles:r.styles,next:zi},r=r.next;var a=n.styles+";";return a}return Hq(e,t,n)}case"function":{if(e!==void 0){var i=zi,s=n(e);return zi=i,Im(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function Hq(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?t7:n7},CA=function(t,n,r){var a;if(n){var i=n.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},r7=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return UO(n,r,a),qq(function(){return jO(n,r,a)}),null},a7=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var o=CA(t,n,r),l=o||IA(a),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,h=1;hD.forwardRef(e),Dw=(e,t)=>{const n=["@media screen"];return e&&n.push("and",`(min-width: ${e}px)`),t&&n.push("and",`(max-width: ${t}px)`),n.length>1?n.join(" "):void 0},s7=e=>Object.entries(e).map(([t,n],r,a)=>{var i;let[,s]=(i=a[r-1])!=null?i:[];return n=t!=="base"?n:void 0,s&&(s+=1),{breakpoint:t,minW:s,maxW:n,maxWQuery:Dw(void 0,n),minWQuery:Dw(s),minMaxQuery:Dw(s,n)}}),o7=e=>{const n=z2()?parseFloat(window.getComputedStyle(document.documentElement).fontSize):16;return Object.fromEntries(Object.entries(e).map(([r,a])=>a.includes("px")?(a=parseFloat(a),[r,a]):(a=parseFloat(a),a=a*n,[r,a])).sort((r,a)=>r[1]-a[1]))},l7=e=>{if(!e)return;e.base="9999px",e=o7(e);const t=tS(e),n=s7(e);return{keys:t,isResponsive:r=>{const a=Object.keys(r);return a.length>0&&a.every(i=>t.includes(i))},queries:n}},_A=z2()?new $O({key:"css",container:document.head}):void 0,sS={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},TA=["rotate(var(--ui-rotate, 0))","scaleX(var(--ui-scale-x, 1))","scaleY(var(--ui-scale-y, 1))","skewX(var(--ui-skew-x, 0))","skewY(var(--ui-skew-y, 0))"],u7=new Set(Object.values(sS)),XO=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),NA=e=>vO(e)&&e.includes("(")&&e.includes(")"),c7=e=>/^var\(--.+\)$/.test(e),d7=e=>{let t=parseFloat(e.toString());const n=e.toString().replace(String(t),"");return{isUnitless:!n,value:e,unit:n}},Eb=(e,t)=>n=>{const r=`${e}.${t}`;return Un(n.__cssMap)&&r in n.__cssMap?n.__cssMap[r].ref:t},oS=(e,t)=>{var n;if(e==null||XO.has(e))return e;if(!NA(e))return`url('${e}')`;const a=/(^[a-z-A-Z]+)\((.*)\)/g,[,i,s]=(n=a.exec(e))!=null?n:[];if(!i||!s)return e;const o=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=s.split(",").map(p=>p.trim()).filter(Boolean);if(!c.length)return e;const u=l in sS?sS[l]:l;c.unshift(u);const d=c.map(p=>{if(u7.has(p))return p;const h=p.indexOf(" ");let[f,m]=h!==-1?[p.slice(0,h),p.slice(h+1)]:[p];const g=NA(m)?m:m&&m.split(" "),y=`colors.${f}`;return f=y in t.__cssMap?t.__cssMap[y].ref:f,g?[f,...ut(g)?g:[g]].join(" "):f});return`${o}(${d.join(", ")})`},p7=e=>Object.entries(e).reduce((t,[n,r])=>(n==="duration"?t.animationDuration=r:n==="timingFunction"?t.animationTimingFunction=r:t[n]=r,t),{}),lS=(e,t)=>{if(e==null||XO.has(e))return e;if(Un(e)){const{keyframes:n,animationDuration:r="0s",animationTimingFunction:a="ease",delay:i="0s",iterationCount:s="1",direction:o="normal",fillMode:l="none",playState:c="running"}=xx(p7(e))(t),{name:u,styles:d}=Qq(n);return _A==null||_A.insert(d),`${u} ${r} ${a} ${i} ${s} ${o} ${l} ${c}`}else return e.includes(",")?(e=e.split(",").map(n=>(n=n.trim(),n=Eb("animations",n)(t),n)).join(","),e):(e=Eb("animations",e)(t),e)},h7=e=>e==="auto"?["translateX(var(--ui-translate-x, 0))","translateY(var(--ui-translate-y, 0))",...TA].join(" "):e==="auto-3d"?["translate3d(var(--ui-translate-x, 0), var(--ui-translate-y, 0), 0)",...TA].join(" "):e,f7=(e="filter")=>t=>t!=="auto"?t:e==="filter"?["var(--ui-blur, /*!*/ /*!*/)","var(--ui-brightness, /*!*/ /*!*/)","var(--ui-contrast, /*!*/ /*!*/)","var(--ui-drop-shadow, /*!*/ /*!*/)","var(--ui-grayscale, /*!*/ /*!*/)","var(--ui-hue-rotate, /*!*/ /*!*/)","var(--ui-invert, /*!*/ /*!*/)","var(--ui-opacity, /*!*/ /*!*/)","var(--ui-saturate, /*!*/ /*!*/)","var(--ui-sepia, /*!*/ /*!*/)"].join(" "):["var(--ui-backdrop-blur, /*!*/ /*!*/)","var(--ui-backdrop-brightness, /*!*/ /*!*/)","var(--ui-backdrop-contrast, /*!*/ /*!*/)","var(--ui-backdrop-drop-shadow, /*!*/ /*!*/)","var(--ui-backdrop-grayscale, /*!*/ /*!*/)","var(--ui-backdrop-hue-rotate, /*!*/ /*!*/)","var(--ui-backdrop-invert, /*!*/ /*!*/)","var(--ui-backdrop-opacity, /*!*/ /*!*/)","var(--ui-backdrop-saturate, /*!*/ /*!*/)","var(--ui-backdrop-sepia, /*!*/ /*!*/)"].join(" "),an=(e,t)=>(n="light")=>n==="light"?e:t,F={var:({name:e,token:t,value:n},r)=>{var a,i;if(Un(n))return{var:Object.entries(n).reduce((o,[l,c])=>(o[l]={name:e,token:t,value:c},o),{})};if(ut(n))return{var:n.map(o=>({name:e,token:t,value:o}))};{const s=(i=(a=r.__config.var)==null?void 0:a.prefix)!=null?i:"ui";return n=Eb(t,n)(r),e=`--${s}-${e}`,{[e]:n}}},token:(e,t,n)=>(r,a)=>{var i;r=Eb(e,r)(a);let s=(i=t==null?void 0:t(r,a))!=null?i:r;return n&&(s=n(s,a)),s},styles:e=>(t,n,r={})=>{const a={},i=qe(n,e?`styles.${e}.${t}`:`styles.${t}`,{});for(const s in i)s in r&&r[s]!=null||(a[s]=i[s]);return a},px:e=>{if(e==null)return e;const{isUnitless:t}=d7(e);return t||Is(e)?`${e}px`:e},deg:e=>c7(e)||e==null?e:typeof e=="string"&&!e.endsWith("deg")||Is(e)?`${e}deg`:e,fraction:e=>(t,...n)=>(Is(t)&&t<=1&&(t=`${t*100}%`),e&&(t=e(t,...n)),t),isTruncated:e=>{if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},bgClip:e=>e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},function:(e,t)=>(n,...r)=>(t&&(n=t(n,...r)),`${e}(${n})`),gradient:oS,animation:lS,transform:h7,filter:f7},Fo={_hover:"&:hover, &[data-hover]",_nativeHover:"&:hover",_active:"&:active, &[data-active]",_nativeActive:"&:active",_focus:"&:focus, &[data-focus]",_nativeFocus:"&:focus",_focusVisible:"&:focus-visible, &[data-focus-visible]",_nativeFocusVisible:"&:focus-visible",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[readonly], &[aria-readonly=true], &[data-readonly]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&:checked, &[data-checked], &[aria-checked=true]",_invalid:"&[data-invalid], &[aria-invalid=true]",_valid:"&:valid, &[data-valid], &[data-state=valid]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_visited:"&:visited",_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_autofill:"&:-webkit-autofill",_outside:"&[data-outside]",_weekend:"&[data-weekend]",_holiday:"&[data-holiday]",_today:"&[data-today]",_accept:"&[data-accept]",_reject:"&[data-reject]",_idle:"&[data-idle]",_loading:"&[data-loading]",_loaded:"&[data-loaded]",_ripple:"& .ui-ripple",_vertical:"&:vertical, &[data-orientation=vertical]",_horizontal:"&:horizontal, &[data-orientation=horizontal]",_scrollbar:"&::-webkit-scrollbar",_scrollbarTrack:"&::-webkit-scrollbar-track",_scrollbarTrackPiece:"&::-webkit-scrollbar-track-piece",_scrollbarThumb:"&::-webkit-scrollbar-thumb",_scrollbarButton:"&::-webkit-scrollbar-button",_scrollbarCorner:"&::-webkit-scrollbar-corner",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".ui-dark &:not([data-mode]), [data-mode=dark] &:not([data-mode]), &[data-mode=dark]",_light:".ui-light &:not([data-mode]), [data-mode=light] &:not([data-mode]), &[data-mode=light]"},m7=Object.keys(Fo),g7=(e,t)=>{const n=`--${[t,L9(e,"-")].filter(Boolean).join("-")}`,r=`var(${n})`;return{variable:n,reference:r}},EA=(e,t)=>(e=e.replace(/\./g,"-"),g7(e,t)),gd=(e,t="ui")=>({baseTokens:n,cssMap:r={},cssVars:a={}}={})=>{for(let[i,{isSemantic:s,value:o}]of Object.entries(e)){const l=(m="")=>{var g;const[y]=i.split("."),b=[y,m].join(".");if(!((g=e[b])!=null?g:n==null?void 0:n[b]))return[,m];const{variable:x,reference:w}=EA(b,t);return[x,w]},{variable:c,reference:u}=EA(i,t);let d,p;if(i.startsWith("animations."))ut(o)?d=o.map(m=>lS(m,{__cssMap:r})).join(","):d=lS(o,{__cssMap:r});else{let[m,g]=ut(o)?[...o]:[o];if(i.startsWith("gradients.")){const[y,b]=l(m),[v,x]=l(g);y?d=b:d=oS(l(m)[1],{__cssMap:r}),v?p=x:p=oS(g,{__cssMap:r})}else d=m,p=g}if(!s){if(i.startsWith("spaces")&&!ax(d)){const m=i.split("."),[g,...y]=m,b=`${g}.-${y.join(".")}`,v=$l.negate(d),x=$l.negate(u);r[b]={value:v,var:c,ref:x}}a[c]=d,p&&(a=Nn(a,{[Fo._dark]:{[c]:p}})),r[i]={value:d,var:c,ref:u};continue}const[h,f]=l(d);if(a=Nn(a,{[c]:f}),p){const[,m]=l(p);a=Nn(a,{[Fo._dark]:{[c]:m}})}r[i]={value:h??d,var:c,ref:u}}return{cssMap:r,cssVars:a}},we={accentColor:{properties:"accentColor",token:"colors",transform:F.token("colors")},alignContent:!0,alignItems:!0,alignSelf:!0,alignTracks:!0,all:!0,animation:{properties:"animation",token:"animations",transform:F.token("animations",F.animation)},animationComposition:!0,animationDelay:!0,animationDirection:!0,animationDuration:{properties:"animationDuration",token:"transitions.duration",transform:F.token("transitions.duration")},animationFillMode:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationRange:!0,animationRangeEnd:!0,animationRangeStart:!0,animationTimeline:!0,animationTimingFunction:{properties:"animationTimingFunction",token:"transitions.easing",transform:F.token("transitions.easing")},appearance:!0,aspectRatio:!0,backfaceVisibility:{properties:"backfaceVisibility",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},background:{properties:"background",token:"colors",transform:F.token("colors")},backgroundAttachment:!0,backgroundBlendMode:!0,backgroundClip:{properties:"backgroundClip",transform:F.bgClip},backgroundColor:{properties:"backgroundColor",token:"colors",transform:F.token("colors")},backgroundImage:{properties:"backgroundImage",token:"gradients",transform:F.token("gradients",F.gradient)},backgroundOrigin:!0,backgroundPosition:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0,backgroundSize:!0,blockSize:{properties:"blockSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},border:{properties:"border",token:"borders",transform:F.token("borders",F.px)},borderBlock:{properties:"borderBlock",token:"borders",transform:F.token("borders",F.px)},borderBlockColor:{properties:"borderBlockColor",token:"colors",transform:F.token("colors")},borderBlockEnd:{properties:"borderBlockEnd",token:"borders",transform:F.token("borders",F.px)},borderBlockEndColor:{properties:"borderBlockEndColor",token:"colors",transform:F.token("colors")},borderBlockEndStyle:!0,borderBlockEndWidth:{properties:"borderBlockEndWidth",transform:F.px},borderBlockStart:{properties:"borderBlockStart",token:"borders",transform:F.token("borders",F.px)},borderBlockStartColor:{properties:"borderBlockStartColor",token:"colors",transform:F.token("colors")},borderBlockStartStyle:!0,borderBlockStartWidth:{properties:"borderBlockStartWidth",transform:F.px},borderBlockStyle:!0,borderBlockWidth:{properties:"borderBlockWidth",transform:F.px},borderBottom:{properties:"borderBottom",token:"borders",transform:F.token("borders",F.px)},borderBottomColor:{properties:"borderBottomColor",token:"colors",transform:F.token("colors")},borderBottomLeftRadius:{properties:"borderBottomLeftRadius",token:"radii",transform:F.token("radii",F.px)},borderBottomRightRadius:{properties:"borderBottomRightRadius",token:"radii",transform:F.token("radii",F.px)},borderBottomStyle:!0,borderBottomWidth:{properties:"borderBottomWidth",transform:F.px},borderCollapse:!0,borderColor:{properties:"borderColor",token:"colors",transform:F.token("colors")},borderEndEndRadius:{properties:"borderEndEndRadius",token:"radii",transform:F.token("radii",F.px)},borderEndStartRadius:{properties:"borderEndStartRadius",token:"radii",transform:F.token("radii",F.px)},borderImage:{properties:"borderImage",token:"borders",transform:F.token("borders",F.px)},borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:{properties:"borderImageWidth",transform:F.px},borderInline:{properties:"borderInline",token:"borders",transform:F.token("borders",F.px)},borderInlineColor:{properties:"borderInlineColor",token:"colors",transform:F.token("colors")},borderInlineEnd:{properties:"borderInlineEnd",token:"borders",transform:F.token("borders",F.px)},borderInlineEndColor:{properties:"borderInlineEndColor",token:"colors",transform:F.token("colors")},borderInlineEndStyle:!0,borderInlineEndWidth:{properties:"borderInlineEndWidth",transform:F.px},borderInlineStart:{properties:"borderInlineStart",token:"borders",transform:F.token("borders",F.px)},borderInlineStartColor:{properties:"borderInlineStartColor",token:"colors",transform:F.token("colors")},borderInlineStartStyle:!0,borderInlineStartWidth:{properties:"borderInlineStartWidth",transform:F.px},borderInlineStyle:!0,borderInlineWidth:{properties:"borderInlineWidth",transform:F.px},borderLeft:{properties:"borderLeft",token:"borders",transform:F.token("borders",F.px)},borderLeftColor:{properties:"borderLeftColor",token:"colors",transform:F.token("colors")},borderLeftStyle:!0,borderLeftWidth:{properties:"borderLeftWidth",transform:F.px},borderRadius:{properties:"borderRadius",token:"radii",transform:F.token("radii",F.px)},borderRight:{properties:"borderRight",token:"borders",transform:F.token("borders",F.px)},borderRightColor:{properties:"borderRightColor",token:"colors",transform:F.token("colors")},borderRightStyle:!0,borderRightWidth:{properties:"borderRightWidth",transform:F.px},borderSpacing:!0,borderStartEndRadius:{properties:"borderStartEndRadius",token:"radii",transform:F.token("radii",F.px)},borderStartStartRadius:{properties:"borderStartStartRadius",token:"radii",transform:F.token("radii",F.px)},borderStyle:!0,borderTop:{properties:"borderTop",token:"borders",transform:F.token("borders",F.px)},borderTopColor:{properties:"borderTopColor",token:"colors",transform:F.token("colors")},borderTopLeftRadius:{properties:"borderTopLeftRadius",token:"radii",transform:F.token("radii",F.px)},borderTopRightRadius:{properties:"borderTopRightRadius",token:"radii",transform:F.token("radii",F.px)},borderTopStyle:!0,borderTopWidth:{properties:"borderTopWidth",transform:F.px},borderWidth:{properties:"borderWidth",transform:F.px},bottom:{properties:"bottom",token:"spaces",transform:F.token("spaces",F.px)},boxAlign:!0,boxDecorationBreak:!0,boxDirection:!0,boxFlex:!0,boxFlexGroup:!0,boxLines:!0,boxOrdinalGroup:!0,boxOrient:!0,boxPack:!0,boxShadow:{properties:"boxShadow",token:"shadows",transform:F.token("shadows")},boxSizing:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,captionSide:!0,caretColor:{properties:"caretColor",token:"colors",transform:F.token("colors")},clear:!0,clip:!0,clipPath:!0,color:{properties:"color",token:"colors",transform:F.token("colors")},colorScheme:!0,columnCount:!0,columnFill:!0,columnGap:{properties:"columnGap",token:"spaces",transform:F.token("spaces",F.px)},columnRule:{properties:"columnRule",transform:F.px},columnRuleColor:{properties:"columnRuleColor",token:"colors",transform:F.token("colors")},columnRuleStyle:!0,columnRuleWidth:{properties:"columnRuleWidth",transform:F.px},columnSpan:!0,columnWidth:{properties:"columnWidth",transform:F.px},columns:!0,contain:!0,containIntrinsicBlockSize:!0,containIntrinsicHeight:!0,containIntrinsicInlineSize:!0,containIntrinsicSize:!0,containIntrinsicWidth:{properties:"containIntrinsicWidth",transform:F.px},container:!0,containerName:!0,containerType:!0,content:!0,contentVisibility:!0,counterIncrement:!0,counterReset:!0,counterSet:!0,cursor:!0,direction:!0,display:!0,emptyCells:!0,flex:!0,flexBasis:{properties:"flexBasis",token:"sizes",transform:F.token("sizes",F.px)},flexDirection:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,float:!0,font:!0,fontFamily:{properties:"fontFamily",token:"fonts",transform:F.token("fonts")},fontFeatureSettings:!0,fontKerning:!0,fontLanguageOverride:!0,fontOpticalSizing:!0,fontPalette:!0,fontSize:{properties:"fontSize",token:"fontSizes",transform:F.token("fontSizes",F.px)},fontSizeAdjust:!0,fontSmooth:!0,fontStretch:!0,fontStyle:!0,fontSynthesis:!0,fontSynthesisPosition:!0,fontSynthesisSmallCaps:!0,fontSynthesisStyle:!0,fontSynthesisWeight:!0,fontVariant:!0,fontVariantAlternates:!0,fontVariantCaps:!0,fontVariantEastAsian:!0,fontVariantEmoji:!0,fontVariantLigatures:!0,fontVariantNumeric:!0,fontVariantPosition:!0,fontVariationSettings:!0,fontWeight:{properties:"fontWeight",token:"fontWeights",transform:F.token("fontWeights")},forcedColorAdjust:!0,gap:{properties:"gap",token:"spaces",transform:F.token("spaces",F.px)},grid:!0,gridArea:!0,gridAutoColumns:!0,gridAutoFlow:!0,gridAutoRows:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,gridTemplate:!0,gridTemplateAreas:!0,gridTemplateColumns:!0,gridTemplateRows:!0,hangingPunctuation:!0,height:{properties:"height",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},hyphenateCharacter:!0,hyphenateLimitChars:!0,hyphens:!0,imageOrientation:!0,imageRendering:!0,imageResolution:!0,initialLetter:!0,inlineSize:{properties:"inlineSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},inset:{properties:"inset",token:"spaces",transform:F.token("spaces",F.px)},insetBlock:{properties:"insetBlock",token:"spaces",transform:F.token("spaces",F.px)},insetBlockEnd:{properties:"insetBlockEnd",token:"spaces",transform:F.token("spaces",F.px)},insetBlockStart:{properties:"insetBlockStart",token:"spaces",transform:F.token("spaces",F.px)},insetInline:{properties:"insetInline",token:"spaces",transform:F.token("spaces",F.px)},insetInlineEnd:{properties:"insetInlineEnd",token:"spaces",transform:F.token("spaces",F.px)},insetInlineStart:{properties:"insetInlineStart",token:"spaces",transform:F.token("spaces",F.px)},isolation:!0,justifyContent:!0,justifyItems:!0,justifySelf:!0,justifyTracks:!0,left:{properties:"left",token:"spaces",transform:F.token("spaces",F.px)},letterSpacing:{properties:"letterSpacing",token:"letterSpacings",transform:F.token("letterSpacings")},lineBreak:!0,lineHeight:{properties:"lineHeight",token:"lineHeights",transform:F.token("lineHeights")},lineHeightStep:!0,listStyle:!0,listStyleImage:!0,listStylePosition:!0,listStyleType:!0,margin:{properties:"margin",token:"spaces",transform:F.token("spaces",F.px)},marginBlock:{properties:"marginBlock",token:"spaces",transform:F.token("spaces",F.px)},marginBlockEnd:{properties:"marginBlockEnd",token:"spaces",transform:F.token("spaces",F.px)},marginBlockStart:{properties:"marginBlockStart",token:"spaces",transform:F.token("spaces",F.px)},marginBottom:{properties:"marginBottom",token:"spaces",transform:F.token("spaces",F.px)},marginInline:{properties:"marginInline",token:"spaces",transform:F.token("spaces",F.px)},marginInlineEnd:{properties:"marginInlineEnd",token:"spaces",transform:F.token("spaces",F.px)},marginInlineStart:{properties:"marginInlineStart",token:"spaces",transform:F.token("spaces",F.px)},marginLeft:{properties:"marginLeft",token:"spaces",transform:F.token("spaces",F.px)},marginRight:{properties:"marginRight",token:"spaces",transform:F.token("spaces",F.px)},marginTop:{properties:"marginTop",token:"spaces",transform:F.token("spaces",F.px)},marginTrim:!0,mask:!0,maskBorder:!0,maskBorderMode:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorderSlice:!0,maskBorderSource:!0,maskBorderWidth:{properties:"maskBorderWidth",transform:F.px},maskClip:!0,maskComposite:!0,maskImage:!0,maskMode:!0,maskOrigin:!0,maskPosition:!0,maskRepeat:!0,maskSize:!0,maskType:!0,masonryAutoFlow:!0,mathDepth:!0,mathShift:!0,mathStyle:!0,maxBlockSize:{properties:"maxBlockSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},maxHeight:{properties:"maxHeight",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},maxInlineSize:{properties:"maxInlineSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},maxWidth:{properties:"maxWidth",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minBlockSize:{properties:"minBlockSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minHeight:{properties:"minHeight",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minInlineSize:{properties:"minInlineSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minWidth:{properties:"minWidth",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},mixBlendMode:!0,objectFit:!0,objectPosition:!0,offset:!0,offsetAnchor:!0,offsetDistance:!0,offsetPath:!0,offsetPosition:!0,offsetRotate:!0,opacity:!0,order:!0,orphans:!0,outline:!0,outlineColor:{properties:"outlineColor",token:"colors",transform:F.token("colors")},outlineOffset:!0,outlineStyle:!0,outlineWidth:{properties:"outlineWidth",transform:F.px},overflow:!0,overflowAnchor:!0,overflowBlock:!0,overflowClipMargin:!0,overflowInline:!0,overflowWrap:!0,overflowX:!0,overflowY:!0,overlay:!0,overscrollBehavior:!0,overscrollBehaviorBlock:!0,overscrollBehaviorInline:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,padding:{properties:"padding",token:"spaces",transform:F.token("spaces",F.px)},paddingBlock:{properties:"paddingBlock",token:"spaces",transform:F.token("spaces",F.px)},paddingBlockEnd:{properties:"paddingBlockEnd",token:"spaces",transform:F.token("spaces",F.px)},paddingBlockStart:{properties:"paddingBlockStart",token:"spaces",transform:F.token("spaces",F.px)},paddingBottom:{properties:"paddingBottom",token:"spaces",transform:F.token("spaces",F.px)},paddingInline:{properties:"paddingInline",token:"spaces",transform:F.token("spaces",F.px)},paddingInlineEnd:{properties:"paddingInlineEnd",token:"spaces",transform:F.token("spaces",F.px)},paddingInlineStart:{properties:"paddingInlineStart",token:"spaces",transform:F.token("spaces",F.px)},paddingLeft:{properties:"paddingLeft",token:"spaces",transform:F.token("spaces",F.px)},paddingRight:{properties:"paddingRight",token:"spaces",transform:F.token("spaces",F.px)},paddingTop:{properties:"paddingTop",token:"spaces",transform:F.token("spaces",F.px)},page:!0,pageBreakAfter:!0,pageBreakBefore:!0,pageBreakInside:!0,paintOrder:!0,perspective:!0,perspectiveOrigin:!0,placeContent:!0,placeItems:!0,placeSelf:!0,pointerEvents:!0,position:!0,printColorAdjust:!0,quotes:!0,resize:!0,right:{properties:"right",token:"spaces",transform:F.token("spaces",F.px)},rowGap:{properties:"rowGap",token:"spaces",transform:F.token("spaces",F.px)},rubyAlign:!0,rubyPosition:!0,scrollBehavior:!0,scrollMargin:{properties:"scrollMargin",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginBlock:!0,scrollMarginBlockEnd:!0,scrollMarginBlockStart:!0,scrollMarginBottom:{properties:"scrollMarginBottom",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginInline:!0,scrollMarginInlineEnd:!0,scrollMarginInlineStart:!0,scrollMarginLeft:{properties:"scrollMarginLeft",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginRight:{properties:"scrollMarginRight",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginTop:{properties:"scrollMarginTop",token:"spaces",transform:F.token("spaces",F.px)},scrollPadding:{properties:"scrollPadding",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingBlock:!0,scrollPaddingBlockEnd:!0,scrollPaddingBlockStart:!0,scrollPaddingBottom:{properties:"scrollPaddingBottom",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingInline:!0,scrollPaddingInlineEnd:!0,scrollPaddingInlineStart:!0,scrollPaddingLeft:{properties:"scrollPaddingLeft",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingRight:{properties:"scrollPaddingRight",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingTop:{properties:"scrollPaddingTop",token:"spaces",transform:F.token("spaces",F.px)},scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollTimeline:!0,scrollTimelineAxis:!0,scrollTimelineName:!0,scrollbarColor:!0,scrollbarGutter:!0,scrollbarWidth:{properties:"scrollbarWidth",transform:F.px},shapeImageThreshold:!0,shapeMargin:!0,shapeOutside:!0,tabSize:!0,tableLayout:!0,textAlign:!0,textAlignLast:!0,textCombineUpright:!0,textDecoration:!0,textDecorationColor:{properties:"textDecorationColor",token:"colors",transform:F.token("colors")},textDecorationLine:!0,textDecorationSkip:!0,textDecorationSkipInk:!0,textDecorationStyle:!0,textDecorationThickness:!0,textEmphasis:!0,textEmphasisColor:{properties:"textEmphasisColor",token:"colors",transform:F.token("colors")},textEmphasisPosition:!0,textEmphasisStyle:!0,textIndent:!0,textJustify:!0,textOrientation:!0,textOverflow:!0,textRendering:!0,textShadow:{properties:"textShadow",token:"shadows",transform:F.token("shadows")},textSizeAdjust:!0,textTransform:!0,textUnderlineOffset:!0,textUnderlinePosition:!0,textWrap:!0,timelineScope:!0,top:{properties:"top",token:"spaces",transform:F.token("spaces",F.px)},touchAction:!0,transform:{properties:"transform",transform:F.transform},transformBox:!0,transformOrigin:!0,transformStyle:!0,transitionBehavior:!0,transitionDelay:!0,transitionDuration:{properties:"transitionDuration",token:"transitions.duration",transform:F.token("transitions.duration")},transitionProperty:{properties:"transitionProperty",token:"transitions.property",transform:F.token("transitions.property")},transitionTimingFunction:{properties:"transitionTimingFunction",token:"transitions.easing",transform:F.token("transitions.easing")},translate:!0,unicodeBidi:!0,userSelect:!0,verticalAlign:!0,viewTimeline:!0,viewTimelineAxis:!0,viewTimelineInset:!0,viewTimelineName:!0,viewTransitionName:!0,visibility:!0,whiteSpace:!0,whiteSpaceCollapse:!0,widows:!0,width:{properties:"width",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},willChange:!0,wordBreak:!0,wordSpacing:!0,writingMode:!0,zIndex:{properties:"zIndex",token:"zIndices",transform:F.token("zIndices")},zoom:!0,alignmentBaseline:!0,azimuth:!0,baselineShift:!0,clipRule:!0,colorInterpolation:!0,dominantBaseline:!0,fill:{properties:"fill",token:"colors",transform:F.token("colors")},fillOpacity:!0,fillRule:!0,floodColor:{properties:"floodColor",token:"colors",transform:F.token("colors")},floodOpacity:!0,glyphOrientationVertical:!0,lightingColor:{properties:"lightingColor",token:"colors",transform:F.token("colors")},markerEnd:!0,markerMid:!0,markerStart:!0,shapeRendering:!0,stopColor:!0,stopOpacity:!0,stroke:{properties:"stroke",token:"colors",transform:F.token("colors")},strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:{properties:"strokeWidth",transform:F.px},textAnchor:!0,vectorEffect:!0,marginX:{properties:["marginInlineStart","marginInlineEnd"],token:"spaces",transform:F.token("spaces",F.px)},marginY:{properties:["marginTop","marginBottom"],token:"spaces",transform:F.token("spaces",F.px)},paddingX:{properties:["paddingInlineStart","paddingInlineEnd"],token:"spaces",transform:F.token("spaces",F.px)},paddingY:{properties:["paddingTop","paddingBottom"],token:"spaces",transform:F.token("spaces",F.px)},scrollMarginX:{properties:["scrollMarginLeft","scrollMarginRight"],token:"spaces",transform:F.token("spaces",F.px)},scrollMarginY:{properties:["scrollMarginTop","scrollMarginBottom"],token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingX:{properties:["scrollPaddingLeft","scrollPaddingRight"],token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingY:{properties:["scrollPaddingTop","scrollPaddingBottom"],token:"spaces",transform:F.token("spaces",F.px)},insetX:{properties:["left","right"],token:"spaces",transform:F.token("spaces",F.px)},insetY:{properties:["top","bottom"],token:"spaces",transform:F.token("spaces",F.px)},borderY:{properties:["borderTop","borderBottom"],token:"borders",transform:F.token("borders")},borderX:{properties:["borderLeft","borderRight"],token:"borders",transform:F.token("borders")},borderTopRadius:{properties:["borderTopLeftRadius","borderTopRightRadius"],token:"radii",transform:F.token("radii",F.px)},borderBottomRadius:{properties:["borderBottomLeftRadius","borderBottomRightRadius"],token:"radii",transform:F.token("radii",F.px)},borderRightRadius:{properties:["borderTopRightRadius","borderBottomRightRadius"],token:"radii",transform:F.token("radii",F.px)},borderLeftRadius:{properties:["borderTopLeftRadius","borderBottomLeftRadius"],token:"radii",transform:F.token("radii",F.px)},borderInlineStartRadius:{properties:["borderStartStartRadius","borderStartEndRadius"],token:"radii",transform:F.token("radii",F.px)},borderInlineEndRadius:{properties:["borderEndStartRadius","borderEndEndRadius"],token:"radii",transform:F.token("radii",F.px)},boxSize:{properties:["width","height"],token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minBoxSize:!0,maxBoxSize:!0,translateX:{properties:"--ui-translate-x",token:"spaces",transform:F.token("spaces",F.px)},translateY:{properties:"--ui-translate-y",token:"spaces",transform:F.token("spaces",F.px)},scale:!0,scaleX:!0,scaleY:!0,rotate:{properties:"--ui-rotate",transform:F.deg},skewX:{properties:"--ui-skew-x",transform:F.deg},skewY:{properties:"--ui-skew-y",transform:F.deg},filter:{transform:F.filter()},blur:{properties:"--ui-blur",token:"blurs",transform:F.token("blurs",F.function("blur"))},brightness:{properties:"--ui-brightness",transform:F.function("brightness")},contrast:{properties:"--ui-contrast",transform:F.function("contrast")},dropShadow:{properties:"--ui-drop-shadow",token:"shadows",transform:F.token("shadows",F.function("drop-shadow"))},grayscale:{properties:"--ui-grayscale",transform:F.function("grayscale")},hueRotate:{properties:"--ui-hue-rotate",transform:F.function("hue-rotate",F.deg)},invert:{properties:"--ui-invert",transform:F.function("invert")},saturate:{properties:"--ui-saturate",transform:F.function("saturate")},sepia:{properties:"--ui-sepia",transform:F.function("sepia")},backdropFilter:{transform:F.filter("backdrop")},backdropBlur:{properties:"--ui-backdrop-blur",token:"blurs",transform:F.token("blurs",F.function("blur"))},backdropBrightness:{properties:"--ui-backdrop-brightness",transform:F.function("brightness")},backdropContrast:{properties:"--ui-backdrop-contrast",transform:F.function("contrast")},backdropDropShadow:{properties:"--ui-backdrop-drop-shadow",token:"shadows",transform:F.token("shadows",F.function("drop-shadow"))},backdropGrayscale:{properties:"--ui-backdrop-grayscale",transform:F.function("grayscale")},backdropHueRotate:{properties:"--ui-backdrop-hue-rotate",transform:F.function("hue-rotate",F.deg)},backdropInvert:{properties:"--ui-backdrop-invert",transform:F.function("invert")},backdropSaturate:{properties:"--ui-backdrop-saturate",transform:F.function("saturate")},backdropSepia:{properties:"--ui-backdrop-sepia",transform:F.function("sepia")},lineClamp:{properties:"--ui-line-clamp",isSkip:!0,static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--ui-line-clamp)"}},isTruncated:{isSkip:!0,transform:F.isTruncated},layerStyle:{isProcessResult:!0,isSkip:!0,transform:F.styles("layerStyles")},textStyle:{isProcessResult:!0,isSkip:!0,transform:F.styles("textStyles")},apply:{isProcessResult:!0,isSkip:!0,transform:F.styles()},var:{isProcessSkip:!0,isSkip:!0,transform:F.var}},y7={accent:we.accentColor,bg:we.background,bgAttachment:{properties:"backgroundAttachment"},bgBlendMode:{properties:"backgroundBlendMode"},bgClip:we.backgroundClip,bgColor:we.backgroundColor,bgImage:we.backgroundImage,bgImg:we.backgroundImage,bgGradient:we.backgroundImage,bgOrigin:{properties:"backgroundOrigin"},bgPosition:{properties:"backgroundPosition"},bgPositionX:{properties:"backgroundPositionX"},bgPosX:{properties:"backgroundPositionX"},bgPositionY:{properties:"backgroundPositionY"},bgPosY:{properties:"backgroundPositionY"},bgRepeat:{properties:"backgroundRepeat"},bgSize:{properties:"backgroundSize"},roundedBottomLeft:we.borderBottomLeftRadius,roundedBottomRight:we.borderBottomRightRadius,borderBottomEndRadius:we.borderEndEndRadius,roundedBottomEnd:we.borderEndEndRadius,borderBottomStartRadius:we.borderEndStartRadius,roundedBottomStart:we.borderEndStartRadius,borderEnd:we.borderInlineEnd,borderEndColor:we.borderInlineEndColor,borderEndStyle:{properties:"borderInlineEndStyle"},borderEndWidth:we.borderInlineEndWidth,borderStart:we.borderInlineStart,borderStartColor:we.borderInlineStartColor,borderStartStyle:{properties:"borderInlineStartStyle"},borderStartWidth:we.borderInlineStartWidth,rounded:we.borderRadius,borderTopEndRadius:we.borderStartEndRadius,roundedTopEnd:we.borderStartEndRadius,borderTopStartRadius:we.borderStartStartRadius,roundedTopStart:we.borderStartStartRadius,roundedTopLeft:we.borderTopLeftRadius,roundedTopRight:we.borderTopRightRadius,shadow:we.boxShadow,caret:we.caretColor,textColor:we.color,gx:we.columnGap,gapX:we.columnGap,flexDir:{properties:"flexDirection"},text:we.fontSize,g:we.gap,h:we.height,insetEnd:we.insetInlineEnd,insetStart:we.insetInlineStart,tracking:we.letterSpacing,leading:we.lineHeight,listStyleImg:{properties:"listStyleImage"},listStylePos:{properties:"listStylePosition"},m:we.margin,mb:we.marginBottom,me:we.marginInlineEnd,marginEnd:we.marginInlineEnd,ms:we.marginInlineStart,marginStart:we.marginInlineStart,ml:we.marginLeft,mr:we.marginRight,mt:we.marginTop,maxH:we.maxHeight,maxW:we.maxWidth,minH:we.minHeight,minW:we.minWidth,blendMode:{properties:"mixBlendMode"},overscroll:{properties:"overscrollBehavior"},overscrollX:{properties:"overscrollBehaviorX"},overscrollY:{properties:"overscrollBehaviorY"},p:we.padding,pb:we.paddingBottom,pe:we.paddingInlineEnd,paddingEnd:we.paddingInlineEnd,ps:we.paddingInlineStart,paddingStart:we.paddingInlineStart,pl:we.paddingLeft,pr:we.paddingRight,pt:we.paddingTop,pos:{properties:"position"},gy:we.rowGap,gapY:we.rowGap,textDecor:{properties:"textDecoration"},w:we.width,z:we.zIndex,mx:we.marginX,my:we.marginY,px:we.paddingX,py:we.paddingY,roundedTop:we.borderTopRadius,roundedBottom:we.borderBottomRadius,roundedRight:we.borderRightRadius,roundedLeft:we.borderLeftRadius,borderStartRadius:we.borderInlineStartRadius,roundedStart:we.borderInlineStartRadius,borderEndRadius:we.borderInlineEndRadius,roundedEnd:we.borderInlineEndRadius},q2={...we,...y7},b7=Object.keys(q2),v7=["width","inlineSize","height","backfaceVisibility","blockSize","boxSize","minWidth","minInlineSize","minHeight","minBlockSize","maxWidth","maxInlineSize","maxHeight","maxBlockSize","overflow","overflowX","overflowY","overscrollBehavior","overscroll","overscrollX","textDecor","overscrollBehaviorY","overscrollY","display","aspectRatio","verticalAlign","boxSizing","boxDecorationBreak","float","objectFit","objectPosition","visibility","isolation","w","h","minW","maxW","minH","maxH","position","pos","zIndex","inset","insetX","insetInline","insetY","insetBlock","top","insetBlockStart","bottom","insetBlockEnd","left","insetInlineStart","right","insetInlineEnd","insetStart","insetEnd","margin","marginTop","marginBlockStart","marginRight","marginInlineEnd","marginBottom","marginBlockEnd","marginLeft","marginInlineStart","marginX","marginInline","marginY","marginBlock","padding","paddingTop","paddingBlockStart","paddingRight","paddingBottom","paddingBlockEnd","paddingLeft","paddingInlineStart","paddingInlineEnd","paddingX","paddingInline","paddingY","paddingBlock","m","mt","mr","me","marginEnd","mb","ml","ms","marginStart","mx","my","p","pt","py","px","pb","pl","ps","paddingStart","pr","pe","paddingEnd","alignItems","alignContent","justifyItems","justifyContent","flexWrap","flexDirection","flexDir","flex","flexFlow","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","placeItems","placeContent","placeSelf","gap","rowGap","columnGap","grid","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridAutoRows","gridTemplate","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea"],x7=(e,t)=>({[e]:t[0],[Fo._dark]:{[e]:t[1]}}),w7=(e,t,n)=>Object.entries(t).reduce((r,[a,i])=>{var s;if(a==="base")r[e]=i;else{const o=(s=n.find(({breakpoint:l})=>l===a))==null?void 0:s.maxWQuery;o&&(r[o]={[e]:i})}return r},{}),k7=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,queries:r}=t.__breakpoints;let a={};for(let[i,s]of Object.entries(e))if(s=ta(s,t),s!=null){if(ut(s)){a=Nn(a,x7(i,s));continue}if(Un(s)&&n(s)){a=Nn(a,w7(i,s,r));continue}a[i]=s}return a},S7=({theme:e,styles:t={},pseudos:n={}})=>{const r=(a,i=!1)=>{var s,o,l;const c=ta(a,e),u=k7(c)(e);let d={};for(let[p,h]of Object.entries(u)){if(h=ta(h,e),h==null)continue;p in n&&(p=n[p]);let f=t[p];if(f===!0&&(f={properties:p}),Un(h)&&!(f!=null&&f.isProcessSkip)){d[p]=(s=d[p])!=null?s:{},d[p]=Nn(d[p],r(h,!0));continue}if(h=(l=(o=f==null?void 0:f.transform)==null?void 0:o.call(f,h,e))!=null?l:h,(f!=null&&f.isProcessResult||f!=null&&f.isProcessSkip)&&(h=r(h,!0)),!i&&(f!=null&&f.static)){const g=ta(f.static,e);d=Nn(d,g)}const m=ta(f==null?void 0:f.properties,e);if(m)if(ut(m)){for(const g of m)d[g]=h;continue}else if(Un(h)){d=Nn(d,h);continue}else{d[m]=h;continue}if(Un(h)){d=Nn(d,h);continue}d[p]=h}return d};return r},xx=e=>t=>S7({theme:t,styles:q2,pseudos:Fo})(e),$A=["blurs","borders","colors","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","spaces","zIndices"],AA=["gradients"],I7=(e,t)=>{var n;e=C7(e);const{breakpoints:r,themeSchemes:a}=e??{},i=(n=t==null?void 0:t.var)==null?void 0:n.prefix,s=yd(e),o=yd(e,"secondary"),l=yd(e,"animation");let{cssMap:c,cssVars:u}=RA(gd(s,i),gd(o,i),gd(l,i))();if(a)for(const[p,h]of Object.entries(a)){const f=yd(h),m=yd(h,"secondary"),g=yd(h,"animation");let{cssVars:y}=RA(gd(f,i),gd(m,i),gd(g,i))({...s,...o,...l});u={...u,[`[data-theme=${p}] &:not([data-theme]), &[data-theme=${p}]`]:y}}return Object.assign(e,{__config:t,__cssVars:{...{},...u},__cssMap:c,__breakpoints:l7(r)}),e},yd=(e,t="primary")=>{var n;let r=[],a=[],i=[];switch(t){case"primary":r=[...$A,"transitions"],a=[...$A,"transitions","colorSchemes"];break;case"secondary":r=[...AA],a=[...AA];break;case"animation":r=["animations"],a=["animations"],i=["keyframes"];break}const s=Tb(e,r),o=Tb((n=e.semantics)!=null?n:{},a),l=Object.entries(eS(s,1/0,i)).map(([u,d])=>[u,{isSemantic:!1,value:d}]),c=Object.entries(eS(o,1/0,i)).reduce((u,[d,p])=>{if(d.startsWith("colorSchemes.")){const[,h]=d.split(".");C9.forEach(f=>{const m={isSemantic:!0,value:`${p}.${f}`};u.push([`colors.${h}.${f}`,m])})}else{const h={isSemantic:!0,value:p};u.push([d,h])}return u},[]);return D9([...l,...c])},RA=(...e)=>t=>{let n={},r={};for(const a of e){const{cssMap:i,cssVars:s}=a({baseTokens:t,cssMap:n,cssVars:r});n={...n,...i},r={...r,...s}}return{cssMap:n,cssVars:r}},C7=e=>tu(e,["__cssMap","__cssVar","__breakpoints"]),ai=e=>tu(e,["size","variant","colorScheme"]),YO=(e,...t)=>({omit:n=[],pick:r=[]}={})=>t.reduce((a,i)=>$b(ZO(a)({omit:n,pick:r}),i),e),qr=(e,...t)=>({omit:n=[],pick:r=[]}={})=>t.reduce((a,i)=>$b(ZO(a)({omit:n,pick:r,isMulti:!0}),i),e),$b=(e,t)=>{let n=Object.assign({},e);if(Un(t)&&Un(e))for(const[r,a]of Object.entries(t)){const i=e[r];e.hasOwnProperty(r)?!Fs(i)&&!Fs(a)?n[r]=$b(i,a):n[r]=s=>$b(ta(i,s),ta(a,s)):Object.assign(n,{[r]:a})}else n=t;return n},ZO=e=>({omit:t,pick:n,isMulti:r=!1})=>(Un(e)&&(t.length&&(e=Ab(e,t,r)(tu)),n.length&&(e=Ab(e,n,r)(Tb))),e),Ab=(e,t,n,r=[])=>a=>(Un(e)&&(e=a(e,t),Object.entries(e??{}).forEach(([i,s])=>{const o=t.filter(c=>c!==i),l=[...r,i];_7(l,n)&&(Fs(s)?e[i]=c=>Ab(s(c),o,n,l)(a):e[i]=Ab(s,o,n,l)(a))})),e),_7=(e,t)=>{switch(e[0]){case"baseStyle":return e.length<(t?2:1);case"variants":case"sizes":return e.length<(t?3:2);default:return!1}},T7=(e,t,n=!0)=>{const r={};return Object.entries(e).forEach(([a,i])=>{switch(a){case"baseStyle":Fs(i)?r[a]=s=>i(s)[t]:r[a]=i[t];break;case"variants":case"sizes":r[a]=Object.entries(i).reduce((s,[o,l])=>(Fs(l)?s[o]=c=>l(c)[t]:s[o]=l[t],s),{});break;case"defaultProps":n&&(r[a]=i);break}}),r},Mw="ui-color-mode",QO=!!(globalThis!=null&&globalThis.document),FA=e=>({ssr:!1,type:"localStorage",get:(t="light")=>{if(!QO)return t;try{return localStorage.getItem(e)||t}catch{return t}},set:t=>{try{localStorage.setItem(e,t)}catch{}}}),DA=(e,t)=>{const n=e.match(new RegExp(`(^| )${t}=([^;]+)`));return n==null?void 0:n[2]},Ow=(e,t)=>({ssr:!!t,type:"cookie",get:(n="light")=>t?DA(t,e)||n:QO&&DA(document.cookie,e)||n,set:n=>{document.cookie=`${e}=${n}; max-age=31536000; path=/`}}),N7={localStorage:FA(Mw),cookieStorage:Ow(Mw),ssr:e=>Ow(Mw,e),createLocalStorage:FA,createCookieStorage:Ow},r0={light:"ui-light",dark:"ui-dark"},E7={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},$7=({isPreventTransition:e=!0})=>{const t=o=>{const l=e?s():void 0;document.documentElement.dataset.mode=o,document.documentElement.style.colorScheme=o,l==null||l()},n=o=>{document.body.classList.add(o?r0.dark:r0.light),document.body.classList.remove(o?r0.light:r0.dark)},r=()=>window.matchMedia(E7.dark),a=o=>{var l;return((l=r().matches)!=null?l:o==="dark")?"dark":"light"},i=o=>{const l=r(),c=u=>{o(u.matches?"dark":"light")};return typeof l.addListener=="function"?l.addListener(c):l.addEventListener("change",c),()=>{typeof l.removeListener=="function"?l.removeListener(c):l.removeEventListener("change",c)}},s=()=>{const o=document.createElement("style"),l=document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}");return o.appendChild(l),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}};return{setDataset:t,setClassName:n,query:r,getSystemColorMode:a,addListener:i,preventTransition:s}},{localStorage:A7}=N7,R7=(e,t)=>e.type==="cookie"&&e.ssr?e.get(t):t,JO=D.createContext({}),F7=({colorMode:e,colorModeManager:t=A7,config:{initialColorMode:n="light",disableTransitionOnChange:r=!0}={},children:a})=>{const[i,s]=D.useState(()=>R7(t,n)),[o,l]=D.useState(void 0),u=i==="system"?o||(n==="dark"?"dark":"light"):i,{getSystemColorMode:d,setClassName:p,setDataset:h,addListener:f}=D.useMemo(()=>$7({isPreventTransition:r}),[r]),m=D.useCallback(v=>{const x=v==="system"?d():v;s(v),p(x==="dark"),h(x),t.set(v)},[t,d,p,h]),g=D.useCallback(v=>{l(v),i==="system"&&(p(v==="dark"),h(v))},[i,p,h]),y=D.useCallback(()=>{m(u==="dark"?"light":"dark")},[m,u]);wm(()=>{l(d())},[n,f,m]),D.useEffect(()=>{const v=t.get();v&&m(v)},[m,t]),D.useEffect(()=>f(g),[f,g]);const b=D.useMemo(()=>({colorMode:e??u,internalColorMode:i,changeColorMode:e?cA:m,toggleColorMode:e?cA:y,forced:e!==void 0}),[e,u,i,m,y]);return M.jsx(JO.Provider,{value:b,children:a})},Lp=()=>{const e=D.useContext(JO);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e},eP=(e,t)=>{const{colorMode:n}=Lp();return n==="light"?e:t},Pw="ui-theme-scheme",tP=!!(globalThis!=null&&globalThis.document),MA=e=>({ssr:!1,type:"localStorage",get:(t="base")=>{if(!tP)return t;try{return localStorage.getItem(e)||t}catch{return t}},set:t=>{try{localStorage.setItem(e,String(t))}catch{}}}),OA=(e,t)=>{const n=e.match(new RegExp(`(^| )${t}=([^;]+)`));return n==null?void 0:n[2]},zw=(e,t)=>({ssr:!!t,type:"cookie",get:(n="base")=>t?OA(t,e)||n:tP&&OA(document.cookie,e)||n,set:n=>{document.cookie=`${e}=${n}; max-age=31536000; path=/`}}),D7={localStorage:MA(Pw),cookieStorage:zw(Pw),ssr:e=>zw(Pw,e),createLocalStorage:MA,createCookieStorage:zw},{localStorage:M7}=D7,O7=({theme:e={},config:t,themeSchemeManager:n=M7,children:r})=>{const[a,i]=D.useState(n.get(t==null?void 0:t.initialThemeScheme)),s=D.useCallback(l=>{const c=t!=null&&t.disableTransitionOnChange?B7():void 0;document.documentElement.dataset.theme=l,c==null||c(),i(l),n.set(l)},[t,n]),o=D.useMemo(()=>I7(e,t),[e,t]);return D.useEffect(()=>{const l=n.get();l&&s(l)},[s,n]),M.jsxs(Yq,{theme:{themeScheme:a,changeThemeScheme:s,...o},children:[M.jsx(P7,{}),r]})},P7=()=>M.jsx(G2,{styles:({__cssVars:e})=>({":host, :root, [data-mode]":e})}),z7=()=>{const{colorMode:e}=Lp();return M.jsx(G2,{styles:t=>{const{themeScheme:n}=t;let r=qe(t,"styles.resetStyle",{});const a=ta(r,{theme:t,colorMode:e,themeScheme:n});if(a)return xx(a)(t)}})},L7=()=>{const{colorMode:e}=Lp();return M.jsx(G2,{styles:t=>{const{themeScheme:n}=t;let r=qe(t,"styles.globalStyle",{});const a=ta(r,{theme:t,colorMode:e,themeScheme:n});if(a)return xx(a)(t)}})},Bp=()=>{const{themeScheme:e,changeThemeScheme:t,...n}=D.useContext(Cm);if(!n)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in ``");const r=D.useMemo(()=>{var i;if(ax(e)||e==="base")return n;const s=(i=n.themeSchemes)==null?void 0:i[e];return s?Nn(n,s):n},[e,n]);return D.useMemo(()=>({themeScheme:e,changeThemeScheme:t,theme:r,internalTheme:n}),[e,t,r,n])},B7=()=>{const e=document.createElement("style"),t=document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}");return e.appendChild(t),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}},PA=(e,t,n)=>({isMulti:r})=>{var a;let i={};if(ut(e)){const[s,o]=e,l=Sl(t[s],n)({isMulti:r,query:Fo._light}),c=Sl(t[o],n)({isMulti:r,query:Fo._dark});i=Nn(l,c)}else if(Un(e))if(tS(e).length===1&&"base"in e)i=Sl(t[e.base],n)({isMulti:r});else{const{queries:s=[]}=(a=n.theme.__breakpoints)!=null?a:{},o=s.filter(({breakpoint:d})=>d!=="base"&&tS(e).includes(d)),l=o.sort((d,p)=>{var h,f;return((h=d.minW)!=null?h:0)-((f=p.minW)!=null?f:0)})[0],c=o.sort((d,p)=>{var h,f;return((h=p.minW)!=null?h:0)-((f=d.minW)!=null?f:0)})[0],u=s.filter(({minW:d})=>{var p;return(d??0)>((p=c==null?void 0:c.minW)!=null?p:0)}).sort((d,p)=>{var h,f;return((h=d.minW)!=null?h:0)-((f=p.minW)!=null?f:0)})[0];i=Object.entries(e).reduce((d,[p,h=""])=>{var f;if(p==="base"){const m=u.minWQuery,g=Sl(t[h],n)({isMulti:r,query:m});d=Nn(d,g)}else{const m=p===l.breakpoint,g=(f=s==null?void 0:s.find(({breakpoint:b})=>b===p))==null?void 0:f[m?"maxWQuery":"minMaxQuery"],y=Sl(t[h],n)({isMulti:r,query:g});d=Nn(d,y)}return d},{})}else i=Sl(t[e],n)({isMulti:r});return i},Sl=(e,t)=>({isMulti:n,query:r})=>{let a=ta(e,t);if(n)for(const[i,s]of Object.entries(a??{})){const o=ta(s,t);r?a=Nn(a,{[i]:{[r]:o}}):a=Nn(a,{[i]:o})}else if(r)return{[r]:a};return a},nP=(e,t,n=!1)=>{var r,a,i,s;const{theme:o,themeScheme:l}=Bp(),{colorMode:c}=Lp(),u=qe(o,`components.${e}`),d=D.useRef({}),p=D.useRef({});if(t=Nn((r=u==null?void 0:u.defaultProps)!=null?r:{},ix(t)),u){const f=tu(t,["children"]);let m=Sl((a=u.baseStyle)!=null?a:{},{theme:o,colorMode:c,themeScheme:l,...f})({isMulti:n});const g=PA(t.variant,(i=u.variants)!=null?i:{},{theme:o,colorMode:c,themeScheme:l,...f})({isMulti:n}),y=PA(t.size,(s=u.sizes)!=null?s:{},{theme:o,colorMode:c,themeScheme:l,...f})({isMulti:n});m=Nn(m,y),m=Nn(m,g),mA(p.current,m)||(p.current=m)}return mA(d.current,t)||(d.current=t),[p.current,d.current]},xg=(e,t)=>nP(e,t),Eu=(e,t)=>nP(e,t,!0),W7=new Set([...b7,...m7,"textStyle","layerStyle","apply","lineClamp","focusBorderColor","errorBorderColor","as","__css","css","sx"]),V7=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]),U7=e=>V7.has(e)||!W7.has(e),j7=TO(iS),H7={...q2,...Fo},G7=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:a,sx:i,...s}=t,o=_O(s,u=>u in H7),l=ta(e,t),c=xx(z9({},a,l,ix(o),i))(n);return r?[c,r]:c},Lw=(e,{baseStyle:t,...n}={})=>{n.shouldForwardProp||(n.shouldForwardProp=U7);const r=G7({baseStyle:t}),a=j7(e,n)(r),i=D.forwardRef((s,o)=>{const{colorMode:l,forced:c}=Lp();return D.createElement(a,{ref:o,"data-mode":c?l:void 0,...s})});return i.displayName="UIComponent",i},q7=()=>{const e=new Map;return new Proxy(Lw,{apply:(t,n,[r,a])=>Lw(r,a),get:(t,n)=>(e.has(n)||e.set(n,Lw(n)),e.get(n))})},He=q7(),_m=(e,t)=>{var n,r,a;const{theme:i}=Bp(),{colorMode:s}=Lp();e==="layerStyles"&&(e="styles.layerStyles"),e==="textStyles"&&(e="styles.textStyles"),e==="transitionProperty"&&(e="transitions.property"),e==="transitionDuration"&&(e="transitions.duration"),e==="transitionEasing"&&(e="transitions.easing");let o=qe(i,`${e}.${t}`);if(ax(o))if(o=qe(i,`semantics.${e}.${t}`),ut(o)?o=[(n=qe(i,`${e}.${o[0]}`))!=null?n:o[0],(r=qe(i,`${e}.${o[1]}`))!=null?r:o[1]]:o=(a=qe(i,`${e}.${o}`))!=null?a:o,ut(o)){const[l,c]=o;if(o=s==="light"?l:c,ut(o)){const[u,d]=o;return s==="light"?u:d}else return o}else return o;else if(ut(o)){const[l,c]=o;return s==="light"?l:c}else return o},ii=Re(({as:e,viewBox:t,size:n,className:r,__css:a,...i},s)=>{const o=M9(n,c=>c9(c)?c:_m("fontSizes",c)),l={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:"currentColor",...a};return e&&typeof e!="string"?M.jsx(He.svg,{as:e,className:Pe("ui-icon",r),__css:l,boxSize:o,...i}):M.jsx(He.svg,{ref:s,verticalAlign:"middle",viewBox:t,className:Pe("ui-icon",r),__css:l,boxSize:o,...i})}),K7=e=>M.jsx(ii,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})}),X7=e=>M.jsx(ii,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})}),zA=e=>M.jsx(ii,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})}),Y7=e=>M.jsx(ii,{focusable:"false","aria-hidden":!0,viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),rP=e=>M.jsx(ii,{focusable:"false","aria-hidden":!0,viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Z7=Re(({color:e,duration:t="1.8s",...n},r)=>M.jsx(ii,{ref:r,viewBox:"0 0 44 44",stroke:e,...n,children:M.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2",children:[M.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[M.jsx("animate",{attributeName:"r",begin:"0s",dur:t,values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:t,values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[M.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:t,values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:t,values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})})),Q7=Re(({color:e,duration:t="3s",...n},r)=>{const a=typeof t=="string"?parseFloat(t):t;return M.jsx(ii,{ref:r,viewBox:"0 0 45 45",stroke:e,...n,children:M.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[M.jsxs("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[M.jsx("animate",{attributeName:"r",begin:"1.5s",dur:`${a}s`,values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:`${a}s`,values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-width",begin:"1.5s",dur:`${a}s`,values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[M.jsx("animate",{attributeName:"r",begin:"3s",dur:`${a}s`,values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"3s",dur:`${a}s`,values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-width",begin:"3s",dur:`${a}s`,values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsx("circle",{cx:"22",cy:"22",r:"8",children:M.jsx("animate",{attributeName:"r",begin:"0s",dur:`${a/2}s`,values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}),J7=Re(({color:e,duration:t="1.4s",...n},r)=>{const a=typeof t=="string"?parseFloat(t):t;return M.jsx(ii,{ref:r,viewBox:"0 0 55 80",fill:e,...n,children:M.jsxs("g",{transform:"matrix(1 0 0 -1 0 80)",children:[M.jsx("rect",{width:"10",height:"20",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a*3}s`,values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("rect",{x:"15",width:"10",height:"80",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a*1.4}s`,values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("rect",{x:"30",width:"10",height:"50",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a}s`,values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("rect",{x:"45",width:"10",height:"30",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a*1.4}s`,values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})})]})})}),eK=Re(({color:e,duration:t="3s",...n},r)=>M.jsx(ii,{ref:r,viewBox:"0 0 58 58",stroke:e,...n,children:M.jsx("g",{fill:"none",fillRule:"evenodd",children:M.jsxs("g",{transform:"translate(2 1)",stroke:e,strokeWidth:"1.5",children:[M.jsx("circle",{cx:"42.601",cy:"11.462",r:"5",fillOpacity:"1",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"1;0;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"49.063",cy:"27.063",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;1;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"42.601",cy:"42.663",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;1;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"27",cy:"49.125",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;1;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"11.399",cy:"42.663",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;1;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"4.938",cy:"27.063",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;0;1;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"11.399",cy:"11.462",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;0;0;1;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"27",cy:"5",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;0;0;0;1",calcMode:"linear",repeatCount:"indefinite"})})]})})})),tK=Re(({color:e,duration:t="1s",...n},r)=>M.jsxs(ii,{ref:r,viewBox:"0 0 120 30",fill:e,...n,children:[M.jsxs("circle",{cx:"15",cy:"15",r:"15",children:[M.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:t,values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:t,values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3",children:[M.jsx("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:t,values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:t,values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"105",cy:"15",r:"15",children:[M.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:t,values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:t,values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})),nK=Re(({color:e,duration:t="1s",...n},r)=>M.jsxs(ii,{ref:r,viewBox:"0 0 105 105",fill:e,...n,children:[M.jsx("circle",{cx:"12.5",cy:"12.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"12.5",cy:"52.5",r:"12.5",fillOpacity:".5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"100ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"52.5",cy:"12.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"300ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"52.5",cy:"52.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"600ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"92.5",cy:"12.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"800ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"92.5",cy:"52.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"400ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"12.5",cy:"92.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"700ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"52.5",cy:"92.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"500ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"92.5",cy:"92.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"200ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})})]})),rK=Re(({color:e,secondaryColor:t,duration:n="1s",...r},a)=>M.jsx(ii,{ref:a,viewBox:"0 0 38 38",stroke:e,...r,children:M.jsx("g",{fill:"none",fillRule:"evenodd",children:M.jsxs("g",{transform:"translate(1 1)",strokeWidth:"2",children:[M.jsx("circle",{...t?{stroke:t}:{strokeOpacity:".5"},cx:"18",cy:"18",r:"18"}),M.jsx("path",{d:"M36 18c0-9.94-8.06-18-18-18",children:M.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:n,repeatCount:"indefinite"})})]})})})),aK=()=>{const{theme:e}=Bp();if(!e)throw Error("useBreakpoint: `theme` is undefined. Seems you forgot to wrap your app in ``");const t=e.__breakpoints;if(!t)throw Error("useBreakpoint: `breakpoints` is undefined. Seems you forgot to put theme in `breakpoints`");const n=D.useMemo(()=>t.queries.map(({breakpoint:i,minMaxQuery:s})=>{var o;return{breakpoint:i,query:(o=s==null?void 0:s.replace("@media screen and ",""))!=null?o:""}}),[t]),[r,a]=D.useState(()=>{if(!z2())return"base";for(const{breakpoint:s,query:o}of n)if(window.matchMedia(o).matches)return s});return D.useEffect(()=>{const i=n.map(({breakpoint:s,query:o})=>{const l=window.matchMedia(o),c=u=>{u.matches&&a(s)};return typeof l.addEventListener=="function"&&l.addEventListener("change",c),()=>{typeof l.removeEventListener=="function"&&l.removeEventListener("change",c)}});return()=>{i.forEach(s=>s())}},[n]),r},iK=e=>{var t;const{theme:n}=Bp();if(!n)throw Error("useBreakpoint: `theme` is undefined. Seems you forgot to wrap your app in ``");const r=(t=n.__breakpoints)==null?void 0:t.keys;if(!r)throw Error("useBreakpoint: `breakpoints` is undefined. Seems you forgot to put theme in `breakpoints`");const a=aK(),i=r.reduce((s,o)=>(s===a||o===a)&&(s==="base"||!e.hasOwnProperty(s)&&e.hasOwnProperty(o))?o:s,"base");return e[i]},Wt=e=>Un(e)?iK(e):ut(e)?eP(...e):e,ru=Re(({className:e,variant:t="oval",color:n="primary",secondaryColor:r,size:a="1em",duration:i,...s},o)=>{var l,c;const u=(l=_m("colors",Wt(n)))!=null?l:n,d=(c=_m("colors",Wt(r)))!=null?c:r,p=D.useMemo(()=>({className:Pe("ui-loading",e),size:a,color:u,duration:i,...s}),[e,u,i,s,a]);switch(t){case"grid":return M.jsx(nK,{ref:o,...p});case"audio":return M.jsx(J7,{ref:o,...p});case"dots":return M.jsx(tK,{ref:o,...p});case"puff":return M.jsx(Z7,{ref:o,...p});case"rings":return M.jsx(Q7,{ref:o,...p});case"circles":return M.jsx(eK,{ref:o,...p});default:return M.jsx(rK,{ref:o,...p,secondaryColor:d})}});const Rb=D.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),wx=D.createContext({});function sK(){return D.useContext(wx).visualElement}const wg=D.createContext(null),kx=typeof document<"u",Fb=kx?D.useLayoutEffect:D.useEffect,aP=D.createContext({strict:!1});function oK(e,t,n,r){const a=sK(),i=D.useContext(aP),s=D.useContext(wg),o=D.useContext(Rb).reducedMotion,l=D.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:o}));const c=l.current;return D.useInsertionEffect(()=>{c&&c.update(n,s)}),Fb(()=>{c&&c.render()}),D.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?Fb:D.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function Td(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lK(e,t,n){return D.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Td(n)&&(n.current=r))},[t])}function Tm(e){return typeof e=="string"||Array.isArray(e)}function Sx(e){return typeof e=="object"&&typeof e.start=="function"}const K2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],X2=["initial",...K2];function Ix(e){return Sx(e.animate)||X2.some(t=>Tm(e[t]))}function iP(e){return!!(Ix(e)||e.variants)}function uK(e,t){if(Ix(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Tm(n)?n:void 0,animate:Tm(r)?r:void 0}}return e.inherit!==!1?t:{}}function cK(e){const{initial:t,animate:n}=uK(e,D.useContext(wx));return D.useMemo(()=>({initial:t,animate:n}),[LA(t),LA(n)])}function LA(e){return Array.isArray(e)?e.join(" "):e}const BA={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],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"]},Nm={};for(const e in BA)Nm[e]={isEnabled:t=>BA[e].some(n=>!!t[n])};function dK(e){for(const t in e)Nm[t]={...Nm[t],...e[t]}}function Cx(e){const t=D.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let pK=1;function hK(){return Cx(()=>{if(Qf.hasEverUpdated)return pK++})}const Y2=D.createContext({}),sP=D.createContext({}),fK=Symbol.for("motionComponentSymbol");function mK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&dK(e);function i(o,l){let c;const u={...D.useContext(Rb),...o,layoutId:gK(o)},{isStatic:d}=u,p=cK(o),h=d?void 0:hK(),f=r(o,d);if(!d&&kx){p.visualElement=oK(a,f,u,t);const m=D.useContext(sP),g=D.useContext(aP).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,g,e,h,m))}return D.createElement(wx.Provider,{value:p},c&&p.visualElement?D.createElement(c,{visualElement:p.visualElement,...u}):null,n(a,o,h,lK(f,p.visualElement,l),f,d,p.visualElement))}const s=D.forwardRef(i);return s[fK]=a,s}function gK({layoutId:e}){const t=D.useContext(Y2).id;return t&&e!==void 0?t+"-"+e:e}function yK(e){function t(r,a={}){return mK(e(r,a))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,a)=>(n.has(a)||n.set(a,t(a)),n.get(a))})}const bK=["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 Z2(e){return typeof e!="string"||e.includes("-")?!1:!!(bK.indexOf(e)>-1||/[A-Z]/.test(e))}const Db={};function vK(e){Object.assign(Db,e)}const _x=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$u=new Set(_x);function oP(e,{layout:t,layoutId:n}){return $u.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Db[e]||e==="opacity")}const ca=e=>!!(e&&e.getVelocity),xK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wK=_x.length;function kK(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,a){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),uP=lP("--"),uS=lP("var(--"),SK=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sp=(e,t,n)=>Math.min(Math.max(n,e),t),Au={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jf={...Au,transform:e=>sp(0,1,e)},a0={...Au,default:1},em=e=>Math.round(e*1e5)/1e5,Em=/(-)?([\d]*\.?[\d])+/g,cS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,IK=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function kg(e){return typeof e=="string"}const Sg=e=>({test:t=>kg(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),eo=Sg("deg"),Gi=Sg("%"),Ge=Sg("px"),CK=Sg("vh"),_K=Sg("vw"),WA={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},VA={...Au,transform:Math.round},cP={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,size:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:a0,scaleX:a0,scaleY:a0,scaleZ:a0,skew:eo,skewX:eo,skewY:eo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Jf,originX:WA,originY:WA,originZ:Ge,zIndex:VA,fillOpacity:Jf,strokeOpacity:Jf,numOctaves:VA};function Q2(e,t,n,r){const{style:a,vars:i,transform:s,transformOrigin:o}=e;let l=!1,c=!1,u=!0;for(const d in t){const p=t[d];if(uP(d)){i[d]=p;continue}const h=cP[d],f=SK(p,h);if($u.has(d)){if(l=!0,s[d]=f,!u)continue;p!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,o[d]=f):a[d]=f}if(t.transform||(l||r?a.transform=kK(e.transform,n,u,r):a.transform&&(a.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:h=0}=o;a.transformOrigin=`${d} ${p} ${h}`}}const J2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dP(e,t,n){for(const r in t)!ca(t[r])&&!oP(r,n)&&(e[r]=t[r])}function TK({transformTemplate:e},t,n){return D.useMemo(()=>{const r=J2();return Q2(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function NK(e,t,n){const r=e.style||{},a={};return dP(a,r,e),Object.assign(a,TK(e,t,n)),e.transformValues?e.transformValues(a):a}function EK(e,t,n){const r={},a=NK(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}const $K=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Mb(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||$K.has(e)}let pP=e=>!Mb(e);function hP(e){e&&(pP=t=>t.startsWith("on")?!Mb(t):e(t))}try{hP(require("@emotion/is-prop-valid").default)}catch{}function AK(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(pP(a)||n===!0&&Mb(a)||!t&&!Mb(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function UA(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function RK(e,t,n){const r=UA(t,e.x,e.width),a=UA(n,e.y,e.height);return`${r} ${a}`}const FK={offset:"stroke-dashoffset",array:"stroke-dasharray"},DK={offset:"strokeDashoffset",array:"strokeDasharray"};function MK(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?FK:DK;e[i.offset]=Ge.transform(-r);const s=Ge.transform(t),o=Ge.transform(n);e[i.array]=`${s} ${o}`}function eC(e,{attrX:t,attrY:n,originX:r,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...l},c,u,d){if(Q2(e,l,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:f}=e;p.transform&&(f&&(h.transform=p.transform),delete p.transform),f&&(r!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=RK(f,r!==void 0?r:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),i!==void 0&&MK(p,i,s,o,!1)}const fP=()=>({...J2(),attrs:{}}),tC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OK(e,t,n,r){const a=D.useMemo(()=>{const i=fP();return eC(i,t,{enableHardwareAcceleration:!1},tC(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};dP(i,e.style,e),a.style={...i,...a.style}}return a}function PK(e=!1){return(n,r,a,i,{latestValues:s},o)=>{const c=(Z2(n)?OK:EK)(r,s,o,n),d={...AK(r,typeof n=="string",e),...c,ref:i},{children:p}=r,h=D.useMemo(()=>ca(p)?p.get():p,[p]);return a&&(d["data-projection-id"]=a),D.createElement(n,{...d,children:h})}}const nC=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function mP(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const gP=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 yP(e,t,n,r){mP(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(gP.has(a)?a:nC(a),t.attrs[a])}function rC(e,t){const{style:n}=e,r={};for(const a in n)(ca(n[a])||t.style&&ca(t.style[a])||oP(a,e))&&(r[a]=n[a]);return r}function bP(e,t){const n=rC(e,t);for(const r in e)if(ca(e[r])||ca(t[r])){const a=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[a]=e[r]}return n}function aC(e,t,n,r={},a={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,a)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,a)),t}const Ob=e=>Array.isArray(e),zK=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),LK=e=>Ob(e)?e[e.length-1]||0:e;function eb(e){const t=ca(e)?e.get():e;return zK(t)?t.toValue():t}function BK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,a,i){const s={latestValues:WK(r,a,i,e),renderState:t()};return n&&(s.mount=o=>n(r,o,s)),s}const vP=e=>(t,n)=>{const r=D.useContext(wx),a=D.useContext(wg),i=()=>BK(e,t,r,a);return n?i():Cx(i)};function WK(e,t,n,r){const a={},i=r(e,{});for(const p in i)a[p]=eb(i[p]);let{initial:s,animate:o}=e;const l=Ix(e),c=iP(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?o:s;return d&&typeof d!="boolean"&&!Sx(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const f=aC(e,h);if(!f)return;const{transitionEnd:m,transition:g,...y}=f;for(const b in y){let v=y[b];if(Array.isArray(v)){const x=u?v.length-1:0;v=v[x]}v!==null&&(a[b]=v)}for(const b in m)a[b]=m[b]}),a}const VK={useVisualState:vP({scrapeMotionValuesFromProps:bP,createRenderState:fP,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}eC(n,r,{enableHardwareAcceleration:!1},tC(t.tagName),e.transformTemplate),yP(t,n)}})},UK={useVisualState:vP({scrapeMotionValuesFromProps:rC,createRenderState:J2})};function jK(e,{forwardMotionProps:t=!1},n,r){return{...Z2(e)?VK:UK,preloadedFeatures:n,useRender:PK(t),createVisualElement:r,Component:e}}function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const xP=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Tx(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const HK=e=>t=>xP(t)&&e(t,Tx(t));function Cs(e,t,n,r){return ws(e,t,HK(n),r)}const GK=(e,t)=>n=>t(e(n)),vo=(...e)=>e.reduce(GK);function wP(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const jA=wP("dragHorizontal"),HA=wP("dragVertical");function kP(e){let t=!1;if(e==="y")t=HA();else if(e==="x")t=jA();else{const n=jA(),r=HA();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function SP(){const e=kP(!0);return e?(e(),!1):!0}class Yo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function GA(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),a=(i,s)=>{if(i.type==="touch"||SP())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&o[r](i,s)};return Cs(e.current,n,a,{passive:!e.getProps()[r]})}class qK extends Yo{mount(){this.unmount=vo(GA(this.node,!0),GA(this.node,!1))}unmount(){}}class KK extends Yo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=vo(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const IP=(e,t)=>t?e===t?!0:IP(e,t.parentElement):!1,Za=e=>e;function Bw(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Tx(n))}class XK extends Yo{constructor(){super(...arguments),this.removeStartListeners=Za,this.removeEndListeners=Za,this.removeAccessibleListeners=Za,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Cs(window,"pointerup",(o,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();IP(this.node.current,o.target)?c&&c(o,l):u&&u(o,l)},{passive:!(r.onTap||r.onPointerUp)}),s=Cs(window,"pointercancel",(o,l)=>this.cancelPress(o,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=vo(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=o=>{o.key!=="Enter"||!this.checkPressEnd()||Bw("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=ws(this.node.current,"keyup",s),Bw("down",(o,l)=>{this.startPress(o,l)})},n=ws(this.node.current,"keydown",t),r=()=>{this.isPressing&&Bw("cancel",(i,s)=>this.cancelPress(i,s))},a=ws(this.node.current,"blur",r);this.removeAccessibleListeners=vo(n,a)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!SP()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Cs(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ws(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dS=new WeakMap,Ww=new WeakMap,YK=e=>{const t=dS.get(e.target);t&&t(e)},ZK=e=>{e.forEach(YK)};function QK({root:e,...t}){const n=e||document;Ww.has(n)||Ww.set(n,{});const r=Ww.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(ZK,{root:e,...t})),r[a]}function JK(e,t,n){const r=QK(t);return dS.set(e,n),r.observe(e),()=>{dS.delete(e),r.unobserve(e)}}const eX={some:0,all:1};class tX extends Yo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i,fallback:s=!0}=t;if(typeof IntersectionObserver>"u"){s&&this.viewportFallback();return}const o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:eX[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),h=u?d:p;h&&h(c)};return JK(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nX(t,n))&&this.startObserver()}unmount(){}}function nX({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rX={inView:{Feature:tX},tap:{Feature:XK},focus:{Feature:KK},hover:{Feature:qK}};function CP(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(e),iX=e=>/^0[^.\s]+$/.test(e),_s={delta:0,timestamp:0},_P=1/60*1e3,sX=typeof performance<"u"?()=>performance.now():()=>Date.now(),TP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(sX()),_P);function oX(e){let t=[],n=[],r=0,a=!1,i=!1;const s=new WeakSet,o={schedule:(l,c=!1,u=!1)=>{const d=u&&a,p=d?t:n;return c&&s.add(l),p.indexOf(l)===-1&&(p.push(l),d&&a&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),s.delete(l)},process:l=>{if(a){i=!0;return}if(a=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c(e[t]=oX(()=>$m=!0),e),{}),kr=Ig.reduce((e,t)=>{const n=Nx[t];return e[t]=(r,a=!1,i=!1)=>($m||cX(),n.schedule(r,a,i)),e},{}),Do=Ig.reduce((e,t)=>(e[t]=Nx[t].cancel,e),{}),Vw=Ig.reduce((e,t)=>(e[t]=()=>Nx[t].process(_s),e),{}),uX=e=>Nx[e].process(_s),NP=e=>{$m=!1,_s.delta=pS?_P:Math.max(Math.min(e-_s.timestamp,lX),1),_s.timestamp=e,hS=!0,Ig.forEach(uX),hS=!1,$m&&(pS=!1,TP(NP))},cX=()=>{$m=!0,pS=!0,hS||TP(NP)};function iC(e,t){e.indexOf(t)===-1&&e.push(t)}function sC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oC{constructor(){this.subscriptions=[]}add(t){return iC(this.subscriptions,t),()=>sC(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class pX{constructor(t,n={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,a=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=_s;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,kr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>kr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=dX(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oC);const r=this.events[t].add(n);return t==="change"?()=>{r(),kr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function op(e,t){return new pX(e,t)}const uC=(e,t)=>n=>!!(kg(n)&&IK.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),EP=(e,t,n)=>r=>{if(!kg(r))return r;const[a,i,s,o]=r.match(Em);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},hX=e=>sp(0,255,e),Uw={...Au,transform:e=>Math.round(hX(e))},zl={test:uC("rgb","red"),parse:EP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uw.transform(e)+", "+Uw.transform(t)+", "+Uw.transform(n)+", "+em(Jf.transform(r))+")"};function fX(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const fS={test:uC("#"),parse:fX,transform:zl.transform},Nd={test:uC("hsl","hue"),parse:EP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(em(t))+", "+Gi.transform(em(n))+", "+em(Jf.transform(r))+")"},Dr={test:e=>zl.test(e)||fS.test(e)||Nd.test(e),parse:e=>zl.test(e)?zl.parse(e):Nd.test(e)?Nd.parse(e):fS.parse(e),transform:e=>kg(e)?e:e.hasOwnProperty("red")?zl.transform(e):Nd.transform(e)},$P="${c}",AP="${n}";function mX(e){var t,n;return isNaN(e)&&kg(e)&&(((t=e.match(Em))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cS))===null||n===void 0?void 0:n.length)||0)>0}function Pb(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const a=e.match(cS);a&&(n=a.length,e=e.replace(cS,$P),t.push(...a.map(Dr.parse)));const i=e.match(Em);return i&&(r=i.length,e=e.replace(Em,AP),t.push(...i.map(Au.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function RP(e){return Pb(e).values}function FP(e){const{values:t,numColors:n,tokenised:r}=Pb(e),a=t.length;return i=>{let s=r;for(let o=0;otypeof e=="number"?0:e;function yX(e){const t=RP(e);return FP(e)(t.map(gX))}const Mo={test:mX,parse:RP,createTransformer:FP,getAnimatableNone:yX},bX=new Set(["brightness","contrast","saturate","opacity"]);function vX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Em)||[];if(!r)return e;const a=n.replace(r,"");let i=bX.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const xX=/([a-z-]*)\(.*?\)/g,mS={...Mo,getAnimatableNone:e=>{const t=e.match(xX);return t?t.map(vX).join(" "):e}},wX={...cP,color:Dr,backgroundColor:Dr,outlineColor:Dr,fill:Dr,stroke:Dr,borderColor:Dr,borderTopColor:Dr,borderRightColor:Dr,borderBottomColor:Dr,borderLeftColor:Dr,filter:mS,WebkitFilter:mS},cC=e=>wX[e];function dC(e,t){let n=cC(e);return n!==mS&&(n=Mo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DP=e=>t=>t.test(e),kX={test:e=>e==="auto",parse:e=>e},MP=[Au,Ge,Gi,eo,_K,CK,kX],vf=e=>MP.find(DP(e)),SX=[...MP,Dr,Mo],IX=e=>SX.find(DP(e));function CX(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function _X(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ex(e,t,n){const r=e.getProps();return aC(r,t,n!==void 0?n:r.custom,CX(e),_X(e))}function TX(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,op(n))}function NX(e,t){const n=Ex(e,t);let{transitionEnd:r={},transition:a={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const o=LK(i[s]);TX(e,s,o)}}function EX(e,t,n){var r,a;const i=Object.keys(t).filter(o=>!e.hasValue(o)),s=i.length;if(s)for(let o=0;oe*1e3,MX={current:!1},pC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hC=e=>t=>1-e(1-t),fC=e=>e*e,OX=hC(fC),mC=pC(fC),sn=(e,t,n)=>-n*e+n*t+e;function jw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,s=0;if(!t)a=i=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=jw(l,o,e+1/3),i=jw(l,o,e),s=jw(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Hw=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zX=[fS,zl,Nd],LX=e=>zX.find(t=>t.test(e));function qA(e){const t=LX(e);let n=t.parse(e);return t===Nd&&(n=PX(n)),n}const OP=(e,t)=>{const n=qA(e),r=qA(t),a={...n};return i=>(a.red=Hw(n.red,r.red,i),a.green=Hw(n.green,r.green,i),a.blue=Hw(n.blue,r.blue,i),a.alpha=sn(n.alpha,r.alpha,i),zl.transform(a))};function PP(e,t){return typeof e=="number"?n=>sn(e,t,n):Dr.test(e)?OP(e,t):LP(e,t)}const zP=(e,t)=>{const n=[...e],r=n.length,a=e.map((i,s)=>PP(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=PP(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}},LP=(e,t)=>{const n=Mo.createTransformer(t),r=Pb(e),a=Pb(t);return r.numColors===a.numColors&&r.numNumbers>=a.numNumbers?vo(zP(r.values,a.values),n):s=>`${s>0?t:e}`},Am=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},KA=(e,t)=>n=>sn(e,t,n);function WX(e){return typeof e=="number"?KA:typeof e=="string"?Dr.test(e)?OP:LP:Array.isArray(e)?zP:typeof e=="object"?BX:KA}function VX(e,t,n){const r=[],a=n||WX(e[0]),i=e.length-1;for(let s=0;se[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=VX(t,r,a),o=s.length,l=c=>{let u=0;if(o>1)for(;ul(sp(e[0],e[i-1],c)):l}function UX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Am(0,t,r);e.push(sn(n,1,a))}}function jX(e){const t=[0];return UX(t,e.length-1),t}function HX(e,t){return e.map(n=>n*t)}const WP=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,GX=1e-7,qX=12;function KX(e,t,n,r,a){let i,s,o=0;do s=t+(n-t)/2,i=WP(s,r,a)-e,i>0?n=s:t=s;while(Math.abs(i)>GX&&++oKX(i,0,1,e,n);return i=>i===0||i===1?i:WP(a(i),t,r)}const UP=e=>1-Math.sin(Math.acos(e)),gC=hC(UP),XX=pC(gC),jP=VP(.33,1.53,.69,.99),yC=hC(jP),YX=pC(yC),ZX=e=>(e*=2)<1?.5*yC(e):.5*(2-Math.pow(2,-10*(e-1))),QX={linear:Za,easeIn:fC,easeInOut:mC,easeOut:OX,circIn:UP,circInOut:XX,circOut:gC,backIn:yC,backInOut:YX,backOut:jP,anticipate:ZX},XA=e=>{if(Array.isArray(e)){Lb(e.length===4);const[t,n,r,a]=e;return VP(t,n,r,a)}else if(typeof e=="string")return QX[e];return e},JX=e=>Array.isArray(e)&&typeof e[0]!="number";function eY(e,t){return e.map(()=>t||mC).splice(0,e.length-1)}function gS({keyframes:e,ease:t=mC,times:n,duration:r=300}){e=[...e];const a=JX(t)?t.map(XA):XA(t),i={done:!1,value:e[0]},s=HX(n&&n.length===e.length?n:jX(e),r);function o(){return BP(s,e,{ease:Array.isArray(a)?a:eY(e,a)})}let l=o();return{next:c=>(i.value=l(c),i.done=c>=r,i),flipTarget:()=>{e.reverse(),l=o()}}}const Gw=.001,tY=.01,YA=10,nY=.05,rY=1;function aY({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,i;DX(e<=YA*1e3);let s=1-t;s=sp(nY,rY,s),e=sp(tY,YA,e/1e3),s<1?(a=c=>{const u=c*s,d=u*e,p=u-n,h=yS(c,s),f=Math.exp(-d);return Gw-p/h*f},i=c=>{const d=c*s*e,p=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,f=Math.exp(-d),m=yS(Math.pow(c,2),s);return(-a(c)+Gw>0?-1:1)*((p-h)*f)/m}):(a=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Gw+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const o=5/e,l=sY(a,i,o);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const iY=12;function sY(e,t,n){let r=n;for(let a=1;ae[n]!==void 0)}function uY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ZA(e,lY)&&ZA(e,oY)){const n=aY(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const cY=5;function HP({keyframes:e,restDelta:t,restSpeed:n,...r}){let a=e[0],i=e[e.length-1];const s={done:!1,value:a},{stiffness:o,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=uY(r);let h=dY,f=u?-(u/1e3):0;const m=l/(2*Math.sqrt(o*c));function g(){const y=i-a,b=Math.sqrt(o/c)/1e3,v=Math.abs(y)<5;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const x=yS(b,m);h=w=>{const k=Math.exp(-m*b*w);return i-k*((f+m*b*y)/x*Math.sin(x*w)+y*Math.cos(x*w))}}else if(m===1)h=x=>i-Math.exp(-b*x)*(y+(f+b*y)*x);else{const x=b*Math.sqrt(m*m-1);h=w=>{const k=Math.exp(-m*b*w),C=Math.min(x*w,300);return i-k*((f+m*b*y)*Math.sinh(C)+x*y*Math.cosh(C))/x}}}return g(),{next:y=>{const b=h(y);if(p)s.done=y>=d;else{let v=f;if(y!==0)if(m<1){const k=Math.max(0,y-cY);v=lC(b-h(k),y-k)}else v=0;const x=Math.abs(v)<=n,w=Math.abs(i-b)<=t;s.done=x&&w}return s.value=s.done?i:b,s},flipTarget:()=>{f=-f,[a,i]=[i,a],g()}}}HP.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const dY=e=>0;function pY({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:i}){const s=e[0],o={done:!1,value:s};let l=n*t;const c=s+l,u=i===void 0?c:i(c);return u!==c&&(l=u-s),{next:d=>{const p=-l*Math.exp(-d/r);return o.done=!(p>a||p<-a),o.value=o.done?u:u+p,o},flipTarget:()=>{}}}const hY={decay:pY,keyframes:gS,tween:gS,spring:HP};function GP(e,t,n=0){return e-t-n}function fY(e,t=0,n=0,r=!0){return r?GP(t+-e,t,n):t-(e-t)+n}function mY(e,t,n,r){return r?e>=t+n:e<=-n}const gY=e=>{const t=({delta:n})=>e(n);return{start:()=>kr.update(t,!0),stop:()=>Do.update(t)}};function Bb({duration:e,driver:t=gY,elapsed:n=0,repeat:r=0,repeatType:a="loop",repeatDelay:i=0,keyframes:s,autoplay:o=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:d,onUpdate:p,type:h="keyframes",...f}){const m=n;let g,y=0,b=e,v=!1,x=!0,w;const k=hY[s.length>2?"keyframes":h]||gS,C=s[0],T=s[s.length-1];let E={done:!1,value:C};const{needsInterpolation:R}=k;R&&R(C,T)&&(w=BP([0,100],[C,T],{clamp:!1}),s=[0,100]);const $=k({...f,duration:e,keyframes:s});function _(){y++,a==="reverse"?(x=y%2===0,n=fY(n,b,i,x)):(n=GP(n,b,i),a==="mirror"&&$.flipTarget()),v=!1,d&&d()}function O(){g&&g.stop(),u&&u()}function L(V){x||(V=-V),n+=V,v||(E=$.next(Math.max(0,n)),w&&(E.value=w(E.value)),v=x?E.done:n<=0),p&&p(E.value),v&&(y===0&&(b=b!==void 0?b:n),y{c&&c(),g&&g.stop()},set currentTime(V){n=m,L(V)},sample:V=>{n=m;const Z=e&&typeof e=="number"?Math.max(e*.5,50):50;let z=0;for(L(0);z<=V;){const G=V-z;L(Math.min(G,Z)),z+=Z}return E}}}function yY(e){return!e||Array.isArray(e)||typeof e=="string"&&qP[e]}const Mf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mf([0,.65,.55,1]),circOut:Mf([.55,0,1,.45]),backIn:Mf([.31,.01,.66,-.59]),backOut:Mf([.33,1.53,.69,.99])};function bY(e){if(e)return Array.isArray(e)?Mf(e):qP[e]}function vY(e,t,n,{delay:r=0,duration:a,repeat:i=0,repeatType:s="loop",ease:o,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:a,easing:bY(o),fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const QA={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},qw={},KP={};for(const e in QA)KP[e]=()=>(qw[e]===void 0&&(qw[e]=QA[e]()),qw[e]);function xY(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const wY=new Set(["opacity","clipPath","filter","transform"]),i0=10;function kY(e,t,{onUpdate:n,onComplete:r,...a}){if(!(KP.waapi()&&wY.has(t)&&!a.repeatDelay&&a.repeatType!=="mirror"&&a.damping!==0))return!1;let{keyframes:s,duration:o=300,elapsed:l=0,ease:c}=a;if(a.type==="spring"||!yY(a.ease)){if(a.repeat===1/0)return;const d=Bb({...a,elapsed:0});let p={done:!1,value:s[0]};const h=[];let f=0;for(;!p.done&&f<2e4;)p=d.sample(f),h.push(p.value),f+=i0;s=h,o=f-i0,c="linear"}const u=vY(e.owner.current,t,s,{...a,delay:-l,duration:o,ease:c});return u.onfinish=()=>{e.set(xY(s,a)),kr.update(()=>u.cancel()),r&&r()},{get currentTime(){return u.currentTime||0},set currentTime(d){u.currentTime=d},stop:()=>{const{currentTime:d}=u;if(d){const p=Bb({...a,autoplay:!1});e.setWithVelocity(p.sample(d-i0).value,p.sample(d).value,i0)}kr.update(()=>u.cancel())}}}function XP(e,t){const n=performance.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(Do.read(r),e(i-t))};return kr.read(r,!0),()=>Do.read(r)}function SY({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const a=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:XP(a,-t)}:a()}function IY({keyframes:e,velocity:t=0,min:n,max:r,power:a=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:o=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:h}){const f=e[0];let m;function g(x){return n!==void 0&&xr}function y(x){return n===void 0?r:r===void 0||Math.abs(n-x){d&&d(w),x.onUpdate&&x.onUpdate(w)},onComplete:p,onStop:h})}function v(x){b({type:"spring",stiffness:s,damping:o,restDelta:l,...x})}if(g(f))v({velocity:t,keyframes:[f,y(f)]});else{let x=a*t+f;typeof c<"u"&&(x=c(x));const w=y(x),k=w===n?-1:1;let C,T;const E=R=>{C=T,T=R,t=lC(R-C,_s.delta),(k===1&&R>w||k===-1&&Rm&&m.stop()}}const CY={type:"spring",stiffness:500,damping:25,restSpeed:10},_Y=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TY={type:"keyframes",duration:.8},NY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EY=(e,{keyframes:t})=>t.length>2?TY:$u.has(e)?e.startsWith("scale")?_Y(t[1]):CY:NY,bS=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Mo.test(t)&&!t.startsWith("url("));function $Y({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function JA(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function eR(e){return typeof e=="number"?0:dC("",e)}function YP(e,t){return e[t]||e.default||e}function AY(e,t,n,r){const a=bS(t,n);let i=r.from!==void 0?r.from:e.get();return i==="none"&&a&&typeof n=="string"?i=dC(t,n):JA(i)&&typeof n=="string"?i=eR(n):!Array.isArray(n)&&JA(n)&&typeof i=="string"&&(n=eR(i)),Array.isArray(n)?(n[0]===null&&(n[0]=i),n):[i,n]}const bC=(e,t,n,r={})=>a=>{const i=YP(r,e)||{},s=i.delay||r.delay||0;let{elapsed:o=0}=r;o=o-tb(s);const l=AY(t,e,n,i),c=l[0],u=l[l.length-1],d=bS(e,c),p=bS(e,u);let h={keyframes:l,velocity:t.getVelocity(),...i,elapsed:o,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{a(),i.onComplete&&i.onComplete()}};if(!d||!p||MX.current||i.type===!1)return SY(h);if(i.type==="inertia")return IY(h);if($Y(i)||(h={...h,...EY(e,h)}),h.duration&&(h.duration=tb(h.duration)),h.repeatDelay&&(h.repeatDelay=tb(h.repeatDelay)),t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const f=kY(t,e,h);if(f)return f}return Bb(h)};function RY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>vS(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=vS(e,t,n);else{const a=typeof t=="function"?Ex(e,t,n.custom):t;r=ZP(e,a,n)}return r.then(()=>e.notify("AnimationComplete",t))}function vS(e,t,n={}){const r=Ex(e,t,n.custom);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>ZP(e,r,n):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=a;return FY(e,t,c+l,u,d,n)}:()=>Promise.resolve(),{when:o}=a;if(o){const[l,c]=o==="beforeChildren"?[i,s]:[s,i];return l().then(c)}else return Promise.all([i(),s(n.delay)])}function ZP(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...o}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=a&&e.animationState&&e.animationState.getState()[a];for(const d in o){const p=e.getValue(d),h=o[d];if(!p||h===void 0||u&&MY(u,d))continue;const f={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!p.hasAnimated){const g=e.getProps()[FX];g&&(f.elapsed=window.HandoffAppearAnimations(g,d,p,kr))}let m=p.start(bC(d,p,h,e.shouldReduceMotion&&$u.has(d)?{type:!1}:f));zb(l)&&(l.add(d),m=m.then(()=>l.remove(d))),c.push(m)}return Promise.all(c).then(()=>{s&&NX(e,s)})}function FY(e,t,n=0,r=0,a=1,i){const s=[],o=(e.variantChildren.size-1)*r,l=a===1?(c=0)=>c*r:(c=0)=>o-c*r;return Array.from(e.variantChildren).sort(DY).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(vS(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function DY(e,t){return e.sortNodePosition(t)}function MY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const OY=[...K2].reverse(),PY=K2.length;function zY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>RY(e,n,r)))}function LY(e){let t=zY(e);const n=WY();let r=!0;const a=(l,c)=>{const u=Ex(e,c);if(u){const{transition:d,transitionEnd:p,...h}=u;l={...l,...h,...p}}return l};function i(l){t=l(e)}function s(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},p=[],h=new Set;let f={},m=1/0;for(let y=0;ym&&w;const R=Array.isArray(x)?x:[x];let $=R.reduce(a,{});k===!1&&($={});const{prevResolvedValues:_={}}=v,O={..._,...$},L=B=>{E=!0,h.delete(B),v.needsAnimating[B]=!0};for(const B in O){const V=$[B],Z=_[B];f.hasOwnProperty(B)||(V!==Z?Ob(V)&&Ob(Z)?!CP(V,Z)||T?L(B):v.protectedKeys[B]=!0:V!==void 0?L(B):h.add(B):V!==void 0&&h.has(B)?L(B):v.protectedKeys[B]=!0)}v.prevProp=x,v.prevResolvedValues=$,v.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(E=!1),E&&!C&&p.push(...R.map(B=>({animation:B,options:{type:b,...l}})))}if(h.size){const y={};h.forEach(b=>{const v=e.getBaseTarget(b);v!==void 0&&(y[b]=v)}),p.push({animation:y})}let g=!!p.length;return r&&u.initial===!1&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(p):Promise.resolve()}function o(l,c,u){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var f;return(f=h.animationState)===null||f===void 0?void 0:f.setActive(l,c)}),n[l].isActive=c;const p=s(u,l);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>n}}function BY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CP(t,e):!1}function xl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WY(){return{animate:xl(!0),whileInView:xl(),whileHover:xl(),whileTap:xl(),whileDrag:xl(),whileFocus:xl(),exit:xl()}}class VY extends Yo{constructor(t){super(t),t.animationState||(t.animationState=LY(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Sx(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let UY=0;class jY extends Yo{constructor(){super(...arguments),this.id=UY++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const HY={animation:{Feature:VY},exit:{Feature:jY}},tR=(e,t)=>Math.abs(e-t);function GY(e,t){const n=tR(e.x,t.x),r=tR(e.y,t.y);return Math.sqrt(n**2+r**2)}class QP{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Xw(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,d=GY(c.offset,{x:0,y:0})>=3;if(!u&&!d)return;const{point:p}=c,{timestamp:h}=_s;this.history.push({...p,timestamp:h});const{onStart:f,onMove:m}=this.handlers;u||(f&&f(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Kw(u,this.transformPagePoint),kr.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:p}=this.handlers,h=Xw(c.type==="pointercancel"?this.lastMoveEventInfo:Kw(u,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,h),p&&p(c,h)},!xP(t))return;this.handlers=n,this.transformPagePoint=r;const a=Tx(t),i=Kw(a,this.transformPagePoint),{point:s}=i,{timestamp:o}=_s;this.history=[{...s,timestamp:o}];const{onSessionStart:l}=n;l&&l(t,Xw(i,this.history)),this.removeListeners=vo(Cs(window,"pointermove",this.handlePointerMove),Cs(window,"pointerup",this.handlePointerUp),Cs(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Do.update(this.updatePoint)}}function Kw(e,t){return t?{point:t(e.point)}:e}function nR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xw({point:e},t){return{point:e,delta:nR(e,JP(t)),offset:nR(e,qY(t)),velocity:KY(t,.1)}}function qY(e){return e[0]}function JP(e){return e[e.length-1]}function KY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=JP(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>tb(t)));)n--;if(!r)return{x:0,y:0};const i=(a.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};const s={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Aa(e){return e.max-e.min}function xS(e,t=0,n=.01){return Math.abs(e-t)<=n}function rR(e,t,n,r=.5){e.origin=r,e.originPoint=sn(t.min,t.max,e.origin),e.scale=Aa(n)/Aa(t),(xS(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=sn(n.min,n.max,e.origin)-e.originPoint,(xS(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tm(e,t,n,r){rR(e.x,t.x,n.x,r?r.originX:void 0),rR(e.y,t.y,n.y,r?r.originY:void 0)}function aR(e,t,n){e.min=n.min+t.min,e.max=e.min+Aa(t)}function XY(e,t,n){aR(e.x,t.x,n.x),aR(e.y,t.y,n.y)}function iR(e,t,n){e.min=t.min-n.min,e.max=e.min+Aa(t)}function nm(e,t,n){iR(e.x,t.x,n.x),iR(e.y,t.y,n.y)}function YY(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?sn(n,e,r.max):Math.min(e,n)),e}function sR(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZY(e,{top:t,left:n,bottom:r,right:a}){return{x:sR(e.x,n,a),y:sR(e.y,t,r)}}function oR(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Am(t.min,t.max-r,e.min):r>a&&(n=Am(e.min,e.max-a,t.min)),sp(0,1,n)}function eZ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wS=.35;function tZ(e=wS){return e===!1?e=0:e===!0&&(e=wS),{x:lR(e,"left","right"),y:lR(e,"top","bottom")}}function lR(e,t,n){return{min:uR(e,t),max:uR(e,n)}}function uR(e,t){return typeof e=="number"?e:e[t]||0}const cR=()=>({translate:0,scale:1,origin:0,originPoint:0}),rm=()=>({x:cR(),y:cR()}),dR=()=>({min:0,max:0}),Cn=()=>({x:dR(),y:dR()});function Di(e){return[e("x"),e("y")]}function e3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nZ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rZ(e,t){if(!t)return e;const 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 Yw(e){return e===void 0||e===1}function kS({scale:e,scaleX:t,scaleY:n}){return!Yw(e)||!Yw(t)||!Yw(n)}function Il(e){return kS(e)||t3(e)||e.z||e.rotate||e.rotateX||e.rotateY}function t3(e){return pR(e.x)||pR(e.y)}function pR(e){return e&&e!=="0%"}function Wb(e,t,n){const r=e-n,a=t*r;return n+a}function hR(e,t,n,r,a){return a!==void 0&&(e=Wb(e,a,r)),Wb(e,n,r)+t}function SS(e,t=0,n=1,r,a){e.min=hR(e.min,t,n,r,a),e.max=hR(e.max,t,n,r,a)}function n3(e,{x:t,y:n}){SS(e.x,t.translate,t.scale,t.originPoint),SS(e.y,n.translate,n.scale,n.originPoint)}function aZ(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,s;for(let o=0;o1.0000000000001||e<.999999999999?e:1}function ro(e,t){e.min=e.min+t,e.max=e.max+t}function mR(e,t,[n,r,a]){const i=t[a]!==void 0?t[a]:.5,s=sn(e.min,e.max,i);SS(e,t[n],t[r],s,t.scale)}const iZ=["x","scaleX","originX"],sZ=["y","scaleY","originY"];function Ed(e,t){mR(e.x,t,iZ),mR(e.y,t,sZ)}function r3(e,t){return e3(rZ(e.getBoundingClientRect(),t))}function oZ(e,t,n){const r=r3(e,n),{scroll:a}=t;return a&&(ro(r.x,a.offset.x),ro(r.y,a.offset.y)),r}const lZ=new WeakMap;class uZ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=l=>{this.stopAnimation(),n&&this.snapToCursor(Tx(l,"page").point)},i=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:p}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kP(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Di(f=>{let m=this.getAxisMotionValue(f).get()||0;if(Gi.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const y=g.layout.layoutBox[f];y&&(m=Aa(y)*(parseFloat(m)/100))}}this.originPoint[f]=m}),p&&p(l,c);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:p,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:f}=c;if(d&&this.currentDirection===null){this.currentDirection=cZ(f),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,f),this.updateAxis("y",c.point,f),this.visualElement.render(),h&&h(l,c)},o=(l,c)=>this.stop(l,c);this.panSession=new QP(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!s0(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=YY(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},a=this.constraints;t&&Td(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ZY(r.layoutBox,t):this.constraints=!1,this.elastic=tZ(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Di(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=eZ(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Td(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=oZ(r,a.root,this.visualElement.getTransformPagePoint());let s=QY(a.layout.layoutBox,i);if(n){const o=n(nZ(s));this.hasMutatedConstraints=!!o,o&&(s=e3(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=Di(u=>{if(!s0(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const p=a?200:1e6,h=a?40:1e7,f={type:"inertia",velocity:r?t[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,f)});return Promise.all(c).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(bC(t,r,0,n))}stopAnimation(){Di(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Di(n=>{const{drag:r}=this.getProps();if(!s0(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];i.set(t[n]-sn(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Td(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Di(s=>{const o=this.getAxisMotionValue(s);if(o){const l=o.get();a[s]=JY({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Di(s=>{if(!s0(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];o.set(sn(l,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;lZ.set(this.visualElement,this);const t=this.visualElement.current,n=Cs(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Td(l)&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),r();const s=ws(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Di(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=wS,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function s0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dZ extends Yo{constructor(t){super(t),this.removeGroupControls=Za,this.removeListeners=Za,this.controls=new uZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Za}unmount(){this.removeGroupControls(),this.removeListeners()}}class pZ extends Yo{constructor(){super(...arguments),this.removePointerDownListener=Za}onPointerDown(t){this.session=new QP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:t,onStart:n,onMove:r,onEnd:(i,s)=>{delete this.session,a&&a(i,s)}}}mount(){this.removePointerDownListener=Cs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function hZ(){const e=D.useContext(wg);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,a=D.useId();return D.useEffect(()=>r(a),[]),!t&&n?[!1,()=>n&&n(a)]:[!0]}function fZ(){return mZ(D.useContext(wg))}function mZ(e){return e===null?!0:e.isPresent}function gR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=gR(e,t.target.x),r=gR(e,t.target.y);return`${n}% ${r}%`}},a3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gZ(e){const t=a3.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function IS(e,t,n=1){const[r,a]=gZ(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():uS(a)?IS(a,t,n+1):a}function yZ(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(a=>{const i=a.get();if(!uS(i))return;const s=IS(i,r);s&&a.set(s)});for(const a in t){const i=t[a];if(!uS(i))continue;const s=IS(i,r);s&&(t[a]=s,n&&n[a]===void 0&&(n[a]=i))}return{target:t,transitionEnd:n}}const yR="_$css",bZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=e.includes("var("),i=[];a&&(e=e.replace(a3,h=>(i.push(h),yR)));const s=Mo.parse(e);if(s.length>5)return r;const o=Mo.createTransformer(e),l=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+l]/=c,s[1+l]/=u;const d=sn(c,u,.5);typeof s[2+l]=="number"&&(s[2+l]/=d),typeof s[3+l]=="number"&&(s[3+l]/=d);let p=o(s);if(a){let h=0;p=p.replace(yR,()=>{const f=i[h];return h++,f})}return p}};class vZ extends Ta.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;vK(xZ),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||kr.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i3(e){const[t,n]=hZ(),r=D.useContext(Y2);return Ta.createElement(vZ,{...e,layoutGroup:r,switchLayoutGroup:D.useContext(sP),isPresent:t,safeToRemove:n})}const xZ={borderRadius:{...xf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xf,borderTopRightRadius:xf,borderBottomLeftRadius:xf,borderBottomRightRadius:xf,boxShadow:bZ};function wZ(e,t,n={}){const r=ca(e)?e:op(e);return r.start(bC("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const s3=["TopLeft","TopRight","BottomLeft","BottomRight"],kZ=s3.length,bR=e=>typeof e=="string"?parseFloat(e):e,vR=e=>typeof e=="number"||Ge.test(e);function SZ(e,t,n,r,a,i){a?(e.opacity=sn(0,n.opacity!==void 0?n.opacity:1,IZ(r)),e.opacityExit=sn(t.opacity!==void 0?t.opacity:1,0,CZ(r))):i&&(e.opacity=sn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Am(e,t,r))}function wR(e,t){e.min=t.min,e.max=t.max}function Wa(e,t){wR(e.x,t.x),wR(e.y,t.y)}function kR(e,t,n,r,a){return e-=t,e=Wb(e,1/n,r),a!==void 0&&(e=Wb(e,1/a,r)),e}function _Z(e,t=0,n=1,r=.5,a,i=e,s=e){if(Gi.test(t)&&(t=parseFloat(t),t=sn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=sn(i.min,i.max,r);e===i&&(o-=t),e.min=kR(e.min,t,n,o,a),e.max=kR(e.max,t,n,o,a)}function SR(e,t,[n,r,a],i,s){_Z(e,t[n],t[r],t[a],t.scale,i,s)}const TZ=["x","scaleX","originX"],NZ=["y","scaleY","originY"];function IR(e,t,n,r){SR(e.x,t,TZ,n?n.x:void 0,r?r.x:void 0),SR(e.y,t,NZ,n?n.y:void 0,r?r.y:void 0)}function CR(e){return e.translate===0&&e.scale===1}function l3(e){return CR(e.x)&&CR(e.y)}function CS(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function _R(e){return Aa(e.x)/Aa(e.y)}class EZ{constructor(){this.members=[]}add(t){iC(this.members,t),t.scheduleRender()}remove(t){if(sC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TR(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y;if((a||i)&&(r=`translate3d(${a}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),u&&(r+=`rotateY(${u}deg) `)}const s=e.x.scale*t.x,o=e.y.scale*t.y;return(s!==1||o!==1)&&(r+=`scale(${s}, ${o})`),r||"none"}const $Z=(e,t)=>e.depth-t.depth;class AZ{constructor(){this.children=[],this.isDirty=!1}add(t){iC(this.children,t),this.isDirty=!0}remove(t){sC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($Z),this.isDirty=!1,this.children.forEach(t)}}function RZ(e){window.MotionDebug&&window.MotionDebug.record(e)}const NR=["","X","Y","Z"],ER=1e3;let FZ=0;const Cl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function u3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(s,o={},l=t==null?void 0:t()){this.id=FZ++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Cl.totalNodes=Cl.resolvedTargetDeltas=Cl.recalculatedProjection=0,this.nodes.forEach(OZ),this.nodes.forEach(BZ),this.nodes.forEach(WZ),this.nodes.forEach(PZ),RZ(Cl)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let c=0;cthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=XP(p,250),Qf.hasAnimatedSinceResize&&(Qf.hasAnimatedSinceResize=!1,this.nodes.forEach(AR))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||GZ,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),b=!this.targetLayout||!CS(this.targetLayout,f)||h,v=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||p&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const x={...YP(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else!p&&this.animationProgress===0&&AR(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Do.preRender(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(VZ),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const w=x/1e3;RR(d.x,s.x,w),RR(d.y,s.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nm(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jZ(this.relativeTarget,this.relativeTargetOrigin,p,w),v&&CS(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Cn()),Wa(v,this.relativeTarget)),m&&(this.animationValues=u,SZ(u,c,this.latestValues,w,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Do.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kr.update(()=>{Qf.hasAnimatedSinceResize=!0,this.currentAnimation=wZ(0,ER,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ER),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:u}=s;if(!(!o||!l||!c)){if(this!==s&&this.layout&&c&&c3(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Cn();const d=Aa(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=Aa(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}Wa(o,l),Ed(o,u),tm(this.projectionDeltaWithTransform,this.layoutCorrected,o,u)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new EZ),this.sharedNodes.get(s).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(o=!0),!o)return;const c={};for(let u=0;u{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach($R),this.root.sharedNodes.clear()}}}function DZ(e){e.updateLayout()}function MZ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Di(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],h=Aa(p);p.min=r[d].min,p.max=p.min+h}):c3(i,n.layoutBox,r)&&Di(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],h=Aa(r[d]);p.max=p.min+h});const o=rm();tm(o,r,n.layoutBox);const l=rm();s?tm(l,e.applyTransform(a,!0),n.measuredBox):tm(l,r,n.layoutBox);const c=!l3(o);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:h}=d;if(p&&h){const f=Cn();nm(f,n.layoutBox,p.layoutBox);const m=Cn();nm(m,r,h.layoutBox),CS(f,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=f,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function OZ(e){Cl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function PZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zZ(e){e.clearSnapshot()}function $R(e){e.clearMeasurements()}function LZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AR(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function BZ(e){e.resolveTargetDelta()}function WZ(e){e.calcProjection()}function VZ(e){e.resetRotation()}function UZ(e){e.removeLeadSnapshot()}function RR(e,t,n){e.translate=sn(t.translate,0,n),e.scale=sn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function FR(e,t,n,r){e.min=sn(t.min,n.min,r),e.max=sn(t.max,n.max,r)}function jZ(e,t,n,r){FR(e.x,t.x,n.x,r),FR(e.y,t.y,n.y,r)}function HZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GZ={duration:.45,ease:[.4,0,.1,1]};function qZ(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(e.path[i].instance){n=e.path[i];break}const a=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);a&&e.mount(a,!0)}function DR(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function KZ(e){DR(e.x),DR(e.y)}function c3(e,t,n){return e==="position"||e==="preserve-aspect"&&!xS(_R(t),_R(n),.2)}const XZ=u3({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zw={current:void 0},d3=u3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zw.current){const e=new XZ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Zw.current=e}return Zw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),YZ={pan:{Feature:pZ},drag:{Feature:dZ,ProjectionNode:d3,MeasureLayout:i3}},ZZ=new Set(["width","height","top","left","right","bottom","x","y"]),p3=e=>ZZ.has(e),QZ=e=>Object.keys(e).some(p3),MR=e=>e===Au||e===Ge,OR=(e,t)=>parseFloat(e.split(", ")[t]),PR=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/);if(a)return OR(a[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?OR(i[1],e):0}},JZ=new Set(["x","y","z"]),eQ=_x.filter(e=>!JZ.has(e));function tQ(e){const t=[];return eQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const zR={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:PR(4,13),y:PR(5,14)},nQ=(e,t,n)=>{const r=t.measureViewportBox(),a=t.current,i=getComputedStyle(a),{display:s}=i,o={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{o[c]=zR[c](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const u=t.getValue(c);u&&u.jump(o[c]),e[c]=zR[c](l,i)}),e},rQ=(e,t,n={},r={})=>{t={...t},r={...r};const a=Object.keys(t).filter(p3);let i=[],s=!1;const o=[];if(a.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=n[l],d=vf(u);const p=t[l];let h;if(Ob(p)){const f=p.length,m=p[0]===null?1:0;u=p[m],d=vf(u);for(let g=m;g=0?window.pageYOffset:null,c=nQ(t,e,o);return i.length&&i.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),kx&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function aQ(e,t,n,r){return QZ(t)?rQ(e,t,n,r):{target:t,transitionEnd:r}}const iQ=(e,t,n,r)=>{const a=yZ(e,t,r);return t=a.target,r=a.transitionEnd,aQ(e,t,n,r)},_S={current:null},h3={current:!1};function sQ(){if(h3.current=!0,!!kx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_S.current=e.matches;e.addListener(t),t()}else _S.current=!1}function oQ(e,t,n){const{willChange:r}=t;for(const a in t){const i=t[a],s=n[a];if(ca(i))e.addValue(a,i),zb(r)&&r.add(a);else if(ca(s))e.addValue(a,op(i,{owner:e})),zb(r)&&r.remove(a);else if(s!==i)if(e.hasValue(a)){const o=e.getValue(a);!o.hasAnimated&&o.set(i)}else{const o=e.getStaticValue(a);e.addValue(a,op(o!==void 0?o:i,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const f3=Object.keys(Nm),lQ=f3.length,LR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],uQ=X2.length;class cQ{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>kr.render(this.render,!1,!0);const{latestValues:o,renderState:l}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=n.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=s,this.isControllingVariants=Ix(n),this.isVariantNode=iP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const d in u){const p=u[d];o[d]!==void 0&&ca(p)&&(p.set(o[d],!1),zb(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),h3.current||sQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_S.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Do.update(this.notifyUpdate),Do.render(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=$u.has(t),a=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&kr.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,a,i,s){let o,l;for(let c=0;cthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:f})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update(this.props,this.prevProps):(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=op(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,a=typeof r=="string"||typeof r=="object"?(n=aC(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ca(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class m3 extends cQ{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:a},i){let s=AX(r,t||{},this);if(a&&(n&&(n=a(n)),r&&(r=a(r)),s&&(s=a(s))),i){EX(this,r,s);const o=iQ(this,r,s,n);n=o.transitionEnd,r=o.target}return{transition:t,transitionEnd:n,...r}}}function dQ(e){return window.getComputedStyle(e)}class pQ extends m3{readValueFromInstance(t,n){if($u.has(n)){const r=cC(n);return r&&r.default||0}else{const r=dQ(t),a=(uP(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return r3(t,n)}build(t,n,r,a){Q2(t,n,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,n){return rC(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ca(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,a){mP(t,n,r,a)}}class hQ extends m3{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($u.has(n)){const r=cC(n);return r&&r.default||0}return n=gP.has(n)?n:nC(n),t.getAttribute(n)}measureInstanceViewportBox(){return Cn()}scrapeMotionValuesFromProps(t,n){return bP(t,n)}build(t,n,r,a){eC(t,n,r,this.isSVGTag,a.transformTemplate)}renderInstance(t,n,r,a){yP(t,n,r,a)}mount(t){this.isSVGTag=tC(t.tagName),super.mount(t)}}const fQ=(e,t)=>Z2(e)?new hQ(t,{enableHardwareAcceleration:!1}):new pQ(t,{enableHardwareAcceleration:!0}),mQ={layout:{ProjectionNode:d3,MeasureLayout:i3}},gQ={...HY,...rX,...YZ,...mQ},Ws=yK((e,t)=>jK(e,t,gQ,fQ));function g3(){const e=D.useRef(!1);return Fb(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function yQ(){const e=g3(),[t,n]=D.useState(0),r=D.useCallback(()=>{e.current&&n(t+1)},[t]);return[D.useCallback(()=>kr.postRender(r),[r]),t]}class bQ extends D.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vQ({children:e,isPresent:t}){const n=D.useId(),r=D.useRef(null),a=D.useRef({width:0,height:0,top:0,left:0});return D.useInsertionEffect(()=>{const{width:i,height:s,top:o,left:l}=a.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + */var rr=typeof Symbol=="function"&&Symbol.for,V2=rr?Symbol.for("react.element"):60103,U2=rr?Symbol.for("react.portal"):60106,cx=rr?Symbol.for("react.fragment"):60107,dx=rr?Symbol.for("react.strict_mode"):60108,px=rr?Symbol.for("react.profiler"):60114,hx=rr?Symbol.for("react.provider"):60109,fx=rr?Symbol.for("react.context"):60110,j2=rr?Symbol.for("react.async_mode"):60111,mx=rr?Symbol.for("react.concurrent_mode"):60111,gx=rr?Symbol.for("react.forward_ref"):60112,yx=rr?Symbol.for("react.suspense"):60113,Aq=rr?Symbol.for("react.suspense_list"):60120,bx=rr?Symbol.for("react.memo"):60115,vx=rr?Symbol.for("react.lazy"):60116,Rq=rr?Symbol.for("react.block"):60121,Fq=rr?Symbol.for("react.fundamental"):60117,Dq=rr?Symbol.for("react.responder"):60118,Mq=rr?Symbol.for("react.scope"):60119;function Ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case V2:switch(e=e.type,e){case j2:case mx:case cx:case px:case dx:case yx:return e;default:switch(e=e&&e.$$typeof,e){case fx:case gx:case vx:case bx:case hx:return e;default:return t}}case U2:return t}}}function BO(e){return Ma(e)===mx}At.AsyncMode=j2;At.ConcurrentMode=mx;At.ContextConsumer=fx;At.ContextProvider=hx;At.Element=V2;At.ForwardRef=gx;At.Fragment=cx;At.Lazy=vx;At.Memo=bx;At.Portal=U2;At.Profiler=px;At.StrictMode=dx;At.Suspense=yx;At.isAsyncMode=function(e){return BO(e)||Ma(e)===j2};At.isConcurrentMode=BO;At.isContextConsumer=function(e){return Ma(e)===fx};At.isContextProvider=function(e){return Ma(e)===hx};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===V2};At.isForwardRef=function(e){return Ma(e)===gx};At.isFragment=function(e){return Ma(e)===cx};At.isLazy=function(e){return Ma(e)===vx};At.isMemo=function(e){return Ma(e)===bx};At.isPortal=function(e){return Ma(e)===U2};At.isProfiler=function(e){return Ma(e)===px};At.isStrictMode=function(e){return Ma(e)===dx};At.isSuspense=function(e){return Ma(e)===yx};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cx||e===mx||e===px||e===dx||e===yx||e===Aq||typeof e=="object"&&e!==null&&(e.$$typeof===vx||e.$$typeof===bx||e.$$typeof===hx||e.$$typeof===fx||e.$$typeof===gx||e.$$typeof===Fq||e.$$typeof===Dq||e.$$typeof===Mq||e.$$typeof===Rq)};At.typeOf=Ma;LO.exports=At;var Oq=LO.exports,WO=Oq,Pq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},VO={};VO[WO.ForwardRef]=Pq;VO[WO.Memo]=zq;var Lq=!0;function Bq(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):r+=a+" "}),r}var UO=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||Lq===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},jO=function(t,n,r){UO(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Wq(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 Vq={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,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},Uq=/[A-Z]|^ms/g,jq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HO=function(t){return t.charCodeAt(1)===45},xA=function(t){return t!=null&&typeof t!="boolean"},Fw=PO(function(e){return HO(e)?e:e.replace(Uq,"-$&").toLowerCase()}),wA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(jq,function(r,a,i){return zi={name:a,styles:i,next:zi},a})}return Vq[t]!==1&&!HO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Im(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return zi={name:n.name,styles:n.styles,next:zi},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)zi={name:r.name,styles:r.styles,next:zi},r=r.next;var a=n.styles+";";return a}return Hq(e,t,n)}case"function":{if(e!==void 0){var i=zi,s=n(e);return zi=i,Im(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function Hq(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?t7:n7},CA=function(t,n,r){var a;if(n){var i=n.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},r7=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return UO(n,r,a),qq(function(){return jO(n,r,a)}),null},a7=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var o=CA(t,n,r),l=o||IA(a),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,h=1;hD.forwardRef(e),Dw=(e,t)=>{const n=["@media screen"];return e&&n.push("and",`(min-width: ${e}px)`),t&&n.push("and",`(max-width: ${t}px)`),n.length>1?n.join(" "):void 0},s7=e=>Object.entries(e).map(([t,n],r,a)=>{var i;let[,s]=(i=a[r-1])!=null?i:[];return n=t!=="base"?n:void 0,s&&(s+=1),{breakpoint:t,minW:s,maxW:n,maxWQuery:Dw(void 0,n),minWQuery:Dw(s),minMaxQuery:Dw(s,n)}}),o7=e=>{const n=z2()?parseFloat(window.getComputedStyle(document.documentElement).fontSize):16;return Object.fromEntries(Object.entries(e).map(([r,a])=>a.includes("px")?(a=parseFloat(a),[r,a]):(a=parseFloat(a),a=a*n,[r,a])).sort((r,a)=>r[1]-a[1]))},l7=e=>{if(!e)return;e.base="9999px",e=o7(e);const t=tS(e),n=s7(e);return{keys:t,isResponsive:r=>{const a=Object.keys(r);return a.length>0&&a.every(i=>t.includes(i))},queries:n}},_A=z2()?new $O({key:"css",container:document.head}):void 0,sS={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},TA=["rotate(var(--ui-rotate, 0))","scaleX(var(--ui-scale-x, 1))","scaleY(var(--ui-scale-y, 1))","skewX(var(--ui-skew-x, 0))","skewY(var(--ui-skew-y, 0))"],u7=new Set(Object.values(sS)),XO=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),NA=e=>vO(e)&&e.includes("(")&&e.includes(")"),c7=e=>/^var\(--.+\)$/.test(e),d7=e=>{let t=parseFloat(e.toString());const n=e.toString().replace(String(t),"");return{isUnitless:!n,value:e,unit:n}},Eb=(e,t)=>n=>{const r=`${e}.${t}`;return Un(n.__cssMap)&&r in n.__cssMap?n.__cssMap[r].ref:t},oS=(e,t)=>{var n;if(e==null||XO.has(e))return e;if(!NA(e))return`url('${e}')`;const a=/(^[a-z-A-Z]+)\((.*)\)/g,[,i,s]=(n=a.exec(e))!=null?n:[];if(!i||!s)return e;const o=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=s.split(",").map(p=>p.trim()).filter(Boolean);if(!c.length)return e;const u=l in sS?sS[l]:l;c.unshift(u);const d=c.map(p=>{if(u7.has(p))return p;const h=p.indexOf(" ");let[f,m]=h!==-1?[p.slice(0,h),p.slice(h+1)]:[p];const g=NA(m)?m:m&&m.split(" "),y=`colors.${f}`;return f=y in t.__cssMap?t.__cssMap[y].ref:f,g?[f,...ut(g)?g:[g]].join(" "):f});return`${o}(${d.join(", ")})`},p7=e=>Object.entries(e).reduce((t,[n,r])=>(n==="duration"?t.animationDuration=r:n==="timingFunction"?t.animationTimingFunction=r:t[n]=r,t),{}),lS=(e,t)=>{if(e==null||XO.has(e))return e;if(Un(e)){const{keyframes:n,animationDuration:r="0s",animationTimingFunction:a="ease",delay:i="0s",iterationCount:s="1",direction:o="normal",fillMode:l="none",playState:c="running"}=xx(p7(e))(t),{name:u,styles:d}=Qq(n);return _A==null||_A.insert(d),`${u} ${r} ${a} ${i} ${s} ${o} ${l} ${c}`}else return e.includes(",")?(e=e.split(",").map(n=>(n=n.trim(),n=Eb("animations",n)(t),n)).join(","),e):(e=Eb("animations",e)(t),e)},h7=e=>e==="auto"?["translateX(var(--ui-translate-x, 0))","translateY(var(--ui-translate-y, 0))",...TA].join(" "):e==="auto-3d"?["translate3d(var(--ui-translate-x, 0), var(--ui-translate-y, 0), 0)",...TA].join(" "):e,f7=(e="filter")=>t=>t!=="auto"?t:e==="filter"?["var(--ui-blur, /*!*/ /*!*/)","var(--ui-brightness, /*!*/ /*!*/)","var(--ui-contrast, /*!*/ /*!*/)","var(--ui-drop-shadow, /*!*/ /*!*/)","var(--ui-grayscale, /*!*/ /*!*/)","var(--ui-hue-rotate, /*!*/ /*!*/)","var(--ui-invert, /*!*/ /*!*/)","var(--ui-opacity, /*!*/ /*!*/)","var(--ui-saturate, /*!*/ /*!*/)","var(--ui-sepia, /*!*/ /*!*/)"].join(" "):["var(--ui-backdrop-blur, /*!*/ /*!*/)","var(--ui-backdrop-brightness, /*!*/ /*!*/)","var(--ui-backdrop-contrast, /*!*/ /*!*/)","var(--ui-backdrop-drop-shadow, /*!*/ /*!*/)","var(--ui-backdrop-grayscale, /*!*/ /*!*/)","var(--ui-backdrop-hue-rotate, /*!*/ /*!*/)","var(--ui-backdrop-invert, /*!*/ /*!*/)","var(--ui-backdrop-opacity, /*!*/ /*!*/)","var(--ui-backdrop-saturate, /*!*/ /*!*/)","var(--ui-backdrop-sepia, /*!*/ /*!*/)"].join(" "),an=(e,t)=>(n="light")=>n==="light"?e:t,F={var:({name:e,token:t,value:n},r)=>{var a,i;if(Un(n))return{var:Object.entries(n).reduce((o,[l,c])=>(o[l]={name:e,token:t,value:c},o),{})};if(ut(n))return{var:n.map(o=>({name:e,token:t,value:o}))};{const s=(i=(a=r.__config.var)==null?void 0:a.prefix)!=null?i:"ui";return n=Eb(t,n)(r),e=`--${s}-${e}`,{[e]:n}}},token:(e,t,n)=>(r,a)=>{var i;r=Eb(e,r)(a);let s=(i=t==null?void 0:t(r,a))!=null?i:r;return n&&(s=n(s,a)),s},styles:e=>(t,n,r={})=>{const a={},i=qe(n,e?`styles.${e}.${t}`:`styles.${t}`,{});for(const s in i)s in r&&r[s]!=null||(a[s]=i[s]);return a},px:e=>{if(e==null)return e;const{isUnitless:t}=d7(e);return t||Is(e)?`${e}px`:e},deg:e=>c7(e)||e==null?e:typeof e=="string"&&!e.endsWith("deg")||Is(e)?`${e}deg`:e,fraction:e=>(t,...n)=>(Is(t)&&t<=1&&(t=`${t*100}%`),e&&(t=e(t,...n)),t),isTruncated:e=>{if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},bgClip:e=>e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},function:(e,t)=>(n,...r)=>(t&&(n=t(n,...r)),`${e}(${n})`),gradient:oS,animation:lS,transform:h7,filter:f7},Fo={_hover:"&:hover, &[data-hover]",_nativeHover:"&:hover",_active:"&:active, &[data-active]",_nativeActive:"&:active",_focus:"&:focus, &[data-focus]",_nativeFocus:"&:focus",_focusVisible:"&:focus-visible, &[data-focus-visible]",_nativeFocusVisible:"&:focus-visible",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[readonly], &[aria-readonly=true], &[data-readonly]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&:checked, &[data-checked], &[aria-checked=true]",_invalid:"&[data-invalid], &[aria-invalid=true]",_valid:"&:valid, &[data-valid], &[data-state=valid]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_visited:"&:visited",_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_autofill:"&:-webkit-autofill",_outside:"&[data-outside]",_weekend:"&[data-weekend]",_holiday:"&[data-holiday]",_today:"&[data-today]",_accept:"&[data-accept]",_reject:"&[data-reject]",_idle:"&[data-idle]",_loading:"&[data-loading]",_loaded:"&[data-loaded]",_ripple:"& .ui-ripple",_vertical:"&:vertical, &[data-orientation=vertical]",_horizontal:"&:horizontal, &[data-orientation=horizontal]",_scrollbar:"&::-webkit-scrollbar",_scrollbarTrack:"&::-webkit-scrollbar-track",_scrollbarTrackPiece:"&::-webkit-scrollbar-track-piece",_scrollbarThumb:"&::-webkit-scrollbar-thumb",_scrollbarButton:"&::-webkit-scrollbar-button",_scrollbarCorner:"&::-webkit-scrollbar-corner",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".ui-dark &:not([data-mode]), [data-mode=dark] &:not([data-mode]), &[data-mode=dark]",_light:".ui-light &:not([data-mode]), [data-mode=light] &:not([data-mode]), &[data-mode=light]"},m7=Object.keys(Fo),g7=(e,t)=>{const n=`--${[t,L9(e,"-")].filter(Boolean).join("-")}`,r=`var(${n})`;return{variable:n,reference:r}},EA=(e,t)=>(e=e.replace(/\./g,"-"),g7(e,t)),gd=(e,t="ui")=>({baseTokens:n,cssMap:r={},cssVars:a={}}={})=>{for(let[i,{isSemantic:s,value:o}]of Object.entries(e)){const l=(m="")=>{var g;const[y]=i.split("."),b=[y,m].join(".");if(!((g=e[b])!=null?g:n==null?void 0:n[b]))return[,m];const{variable:x,reference:w}=EA(b,t);return[x,w]},{variable:c,reference:u}=EA(i,t);let d,p;if(i.startsWith("animations."))ut(o)?d=o.map(m=>lS(m,{__cssMap:r})).join(","):d=lS(o,{__cssMap:r});else{let[m,g]=ut(o)?[...o]:[o];if(i.startsWith("gradients.")){const[y,b]=l(m),[v,x]=l(g);y?d=b:d=oS(l(m)[1],{__cssMap:r}),v?p=x:p=oS(g,{__cssMap:r})}else d=m,p=g}if(!s){if(i.startsWith("spaces")&&!ax(d)){const m=i.split("."),[g,...y]=m,b=`${g}.-${y.join(".")}`,v=$l.negate(d),x=$l.negate(u);r[b]={value:v,var:c,ref:x}}a[c]=d,p&&(a=Nn(a,{[Fo._dark]:{[c]:p}})),r[i]={value:d,var:c,ref:u};continue}const[h,f]=l(d);if(a=Nn(a,{[c]:f}),p){const[,m]=l(p);a=Nn(a,{[Fo._dark]:{[c]:m}})}r[i]={value:h??d,var:c,ref:u}}return{cssMap:r,cssVars:a}},we={accentColor:{properties:"accentColor",token:"colors",transform:F.token("colors")},alignContent:!0,alignItems:!0,alignSelf:!0,alignTracks:!0,all:!0,animation:{properties:"animation",token:"animations",transform:F.token("animations",F.animation)},animationComposition:!0,animationDelay:!0,animationDirection:!0,animationDuration:{properties:"animationDuration",token:"transitions.duration",transform:F.token("transitions.duration")},animationFillMode:!0,animationIterationCount:!0,animationName:!0,animationPlayState:!0,animationRange:!0,animationRangeEnd:!0,animationRangeStart:!0,animationTimeline:!0,animationTimingFunction:{properties:"animationTimingFunction",token:"transitions.easing",transform:F.token("transitions.easing")},appearance:!0,aspectRatio:!0,backfaceVisibility:{properties:"backfaceVisibility",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},background:{properties:"background",token:"colors",transform:F.token("colors")},backgroundAttachment:!0,backgroundBlendMode:!0,backgroundClip:{properties:"backgroundClip",transform:F.bgClip},backgroundColor:{properties:"backgroundColor",token:"colors",transform:F.token("colors")},backgroundImage:{properties:"backgroundImage",token:"gradients",transform:F.token("gradients",F.gradient)},backgroundOrigin:!0,backgroundPosition:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0,backgroundSize:!0,blockSize:{properties:"blockSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},border:{properties:"border",token:"borders",transform:F.token("borders",F.px)},borderBlock:{properties:"borderBlock",token:"borders",transform:F.token("borders",F.px)},borderBlockColor:{properties:"borderBlockColor",token:"colors",transform:F.token("colors")},borderBlockEnd:{properties:"borderBlockEnd",token:"borders",transform:F.token("borders",F.px)},borderBlockEndColor:{properties:"borderBlockEndColor",token:"colors",transform:F.token("colors")},borderBlockEndStyle:!0,borderBlockEndWidth:{properties:"borderBlockEndWidth",transform:F.px},borderBlockStart:{properties:"borderBlockStart",token:"borders",transform:F.token("borders",F.px)},borderBlockStartColor:{properties:"borderBlockStartColor",token:"colors",transform:F.token("colors")},borderBlockStartStyle:!0,borderBlockStartWidth:{properties:"borderBlockStartWidth",transform:F.px},borderBlockStyle:!0,borderBlockWidth:{properties:"borderBlockWidth",transform:F.px},borderBottom:{properties:"borderBottom",token:"borders",transform:F.token("borders",F.px)},borderBottomColor:{properties:"borderBottomColor",token:"colors",transform:F.token("colors")},borderBottomLeftRadius:{properties:"borderBottomLeftRadius",token:"radii",transform:F.token("radii",F.px)},borderBottomRightRadius:{properties:"borderBottomRightRadius",token:"radii",transform:F.token("radii",F.px)},borderBottomStyle:!0,borderBottomWidth:{properties:"borderBottomWidth",transform:F.px},borderCollapse:!0,borderColor:{properties:"borderColor",token:"colors",transform:F.token("colors")},borderEndEndRadius:{properties:"borderEndEndRadius",token:"radii",transform:F.token("radii",F.px)},borderEndStartRadius:{properties:"borderEndStartRadius",token:"radii",transform:F.token("radii",F.px)},borderImage:{properties:"borderImage",token:"borders",transform:F.token("borders",F.px)},borderImageOutset:!0,borderImageRepeat:!0,borderImageSlice:!0,borderImageSource:!0,borderImageWidth:{properties:"borderImageWidth",transform:F.px},borderInline:{properties:"borderInline",token:"borders",transform:F.token("borders",F.px)},borderInlineColor:{properties:"borderInlineColor",token:"colors",transform:F.token("colors")},borderInlineEnd:{properties:"borderInlineEnd",token:"borders",transform:F.token("borders",F.px)},borderInlineEndColor:{properties:"borderInlineEndColor",token:"colors",transform:F.token("colors")},borderInlineEndStyle:!0,borderInlineEndWidth:{properties:"borderInlineEndWidth",transform:F.px},borderInlineStart:{properties:"borderInlineStart",token:"borders",transform:F.token("borders",F.px)},borderInlineStartColor:{properties:"borderInlineStartColor",token:"colors",transform:F.token("colors")},borderInlineStartStyle:!0,borderInlineStartWidth:{properties:"borderInlineStartWidth",transform:F.px},borderInlineStyle:!0,borderInlineWidth:{properties:"borderInlineWidth",transform:F.px},borderLeft:{properties:"borderLeft",token:"borders",transform:F.token("borders",F.px)},borderLeftColor:{properties:"borderLeftColor",token:"colors",transform:F.token("colors")},borderLeftStyle:!0,borderLeftWidth:{properties:"borderLeftWidth",transform:F.px},borderRadius:{properties:"borderRadius",token:"radii",transform:F.token("radii",F.px)},borderRight:{properties:"borderRight",token:"borders",transform:F.token("borders",F.px)},borderRightColor:{properties:"borderRightColor",token:"colors",transform:F.token("colors")},borderRightStyle:!0,borderRightWidth:{properties:"borderRightWidth",transform:F.px},borderSpacing:!0,borderStartEndRadius:{properties:"borderStartEndRadius",token:"radii",transform:F.token("radii",F.px)},borderStartStartRadius:{properties:"borderStartStartRadius",token:"radii",transform:F.token("radii",F.px)},borderStyle:!0,borderTop:{properties:"borderTop",token:"borders",transform:F.token("borders",F.px)},borderTopColor:{properties:"borderTopColor",token:"colors",transform:F.token("colors")},borderTopLeftRadius:{properties:"borderTopLeftRadius",token:"radii",transform:F.token("radii",F.px)},borderTopRightRadius:{properties:"borderTopRightRadius",token:"radii",transform:F.token("radii",F.px)},borderTopStyle:!0,borderTopWidth:{properties:"borderTopWidth",transform:F.px},borderWidth:{properties:"borderWidth",transform:F.px},bottom:{properties:"bottom",token:"spaces",transform:F.token("spaces",F.px)},boxAlign:!0,boxDecorationBreak:!0,boxDirection:!0,boxFlex:!0,boxFlexGroup:!0,boxLines:!0,boxOrdinalGroup:!0,boxOrient:!0,boxPack:!0,boxShadow:{properties:"boxShadow",token:"shadows",transform:F.token("shadows")},boxSizing:!0,breakAfter:!0,breakBefore:!0,breakInside:!0,captionSide:!0,caretColor:{properties:"caretColor",token:"colors",transform:F.token("colors")},clear:!0,clip:!0,clipPath:!0,color:{properties:"color",token:"colors",transform:F.token("colors")},colorScheme:!0,columnCount:!0,columnFill:!0,columnGap:{properties:"columnGap",token:"spaces",transform:F.token("spaces",F.px)},columnRule:{properties:"columnRule",transform:F.px},columnRuleColor:{properties:"columnRuleColor",token:"colors",transform:F.token("colors")},columnRuleStyle:!0,columnRuleWidth:{properties:"columnRuleWidth",transform:F.px},columnSpan:!0,columnWidth:{properties:"columnWidth",transform:F.px},columns:!0,contain:!0,containIntrinsicBlockSize:!0,containIntrinsicHeight:!0,containIntrinsicInlineSize:!0,containIntrinsicSize:!0,containIntrinsicWidth:{properties:"containIntrinsicWidth",transform:F.px},container:!0,containerName:!0,containerType:!0,content:!0,contentVisibility:!0,counterIncrement:!0,counterReset:!0,counterSet:!0,cursor:!0,direction:!0,display:!0,emptyCells:!0,flex:!0,flexBasis:{properties:"flexBasis",token:"sizes",transform:F.token("sizes",F.px)},flexDirection:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,float:!0,font:!0,fontFamily:{properties:"fontFamily",token:"fonts",transform:F.token("fonts")},fontFeatureSettings:!0,fontKerning:!0,fontLanguageOverride:!0,fontOpticalSizing:!0,fontPalette:!0,fontSize:{properties:"fontSize",token:"fontSizes",transform:F.token("fontSizes",F.px)},fontSizeAdjust:!0,fontSmooth:!0,fontStretch:!0,fontStyle:!0,fontSynthesis:!0,fontSynthesisPosition:!0,fontSynthesisSmallCaps:!0,fontSynthesisStyle:!0,fontSynthesisWeight:!0,fontVariant:!0,fontVariantAlternates:!0,fontVariantCaps:!0,fontVariantEastAsian:!0,fontVariantEmoji:!0,fontVariantLigatures:!0,fontVariantNumeric:!0,fontVariantPosition:!0,fontVariationSettings:!0,fontWeight:{properties:"fontWeight",token:"fontWeights",transform:F.token("fontWeights")},forcedColorAdjust:!0,gap:{properties:"gap",token:"spaces",transform:F.token("spaces",F.px)},grid:!0,gridArea:!0,gridAutoColumns:!0,gridAutoFlow:!0,gridAutoRows:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,gridTemplate:!0,gridTemplateAreas:!0,gridTemplateColumns:!0,gridTemplateRows:!0,hangingPunctuation:!0,height:{properties:"height",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},hyphenateCharacter:!0,hyphenateLimitChars:!0,hyphens:!0,imageOrientation:!0,imageRendering:!0,imageResolution:!0,initialLetter:!0,inlineSize:{properties:"inlineSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},inset:{properties:"inset",token:"spaces",transform:F.token("spaces",F.px)},insetBlock:{properties:"insetBlock",token:"spaces",transform:F.token("spaces",F.px)},insetBlockEnd:{properties:"insetBlockEnd",token:"spaces",transform:F.token("spaces",F.px)},insetBlockStart:{properties:"insetBlockStart",token:"spaces",transform:F.token("spaces",F.px)},insetInline:{properties:"insetInline",token:"spaces",transform:F.token("spaces",F.px)},insetInlineEnd:{properties:"insetInlineEnd",token:"spaces",transform:F.token("spaces",F.px)},insetInlineStart:{properties:"insetInlineStart",token:"spaces",transform:F.token("spaces",F.px)},isolation:!0,justifyContent:!0,justifyItems:!0,justifySelf:!0,justifyTracks:!0,left:{properties:"left",token:"spaces",transform:F.token("spaces",F.px)},letterSpacing:{properties:"letterSpacing",token:"letterSpacings",transform:F.token("letterSpacings")},lineBreak:!0,lineHeight:{properties:"lineHeight",token:"lineHeights",transform:F.token("lineHeights")},lineHeightStep:!0,listStyle:!0,listStyleImage:!0,listStylePosition:!0,listStyleType:!0,margin:{properties:"margin",token:"spaces",transform:F.token("spaces",F.px)},marginBlock:{properties:"marginBlock",token:"spaces",transform:F.token("spaces",F.px)},marginBlockEnd:{properties:"marginBlockEnd",token:"spaces",transform:F.token("spaces",F.px)},marginBlockStart:{properties:"marginBlockStart",token:"spaces",transform:F.token("spaces",F.px)},marginBottom:{properties:"marginBottom",token:"spaces",transform:F.token("spaces",F.px)},marginInline:{properties:"marginInline",token:"spaces",transform:F.token("spaces",F.px)},marginInlineEnd:{properties:"marginInlineEnd",token:"spaces",transform:F.token("spaces",F.px)},marginInlineStart:{properties:"marginInlineStart",token:"spaces",transform:F.token("spaces",F.px)},marginLeft:{properties:"marginLeft",token:"spaces",transform:F.token("spaces",F.px)},marginRight:{properties:"marginRight",token:"spaces",transform:F.token("spaces",F.px)},marginTop:{properties:"marginTop",token:"spaces",transform:F.token("spaces",F.px)},marginTrim:!0,mask:!0,maskBorder:!0,maskBorderMode:!0,maskBorderOutset:!0,maskBorderRepeat:!0,maskBorderSlice:!0,maskBorderSource:!0,maskBorderWidth:{properties:"maskBorderWidth",transform:F.px},maskClip:!0,maskComposite:!0,maskImage:!0,maskMode:!0,maskOrigin:!0,maskPosition:!0,maskRepeat:!0,maskSize:!0,maskType:!0,masonryAutoFlow:!0,mathDepth:!0,mathShift:!0,mathStyle:!0,maxBlockSize:{properties:"maxBlockSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},maxHeight:{properties:"maxHeight",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},maxInlineSize:{properties:"maxInlineSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},maxWidth:{properties:"maxWidth",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minBlockSize:{properties:"minBlockSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minHeight:{properties:"minHeight",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minInlineSize:{properties:"minInlineSize",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minWidth:{properties:"minWidth",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},mixBlendMode:!0,objectFit:!0,objectPosition:!0,offset:!0,offsetAnchor:!0,offsetDistance:!0,offsetPath:!0,offsetPosition:!0,offsetRotate:!0,opacity:!0,order:!0,orphans:!0,outline:!0,outlineColor:{properties:"outlineColor",token:"colors",transform:F.token("colors")},outlineOffset:!0,outlineStyle:!0,outlineWidth:{properties:"outlineWidth",transform:F.px},overflow:!0,overflowAnchor:!0,overflowBlock:!0,overflowClipMargin:!0,overflowInline:!0,overflowWrap:!0,overflowX:!0,overflowY:!0,overlay:!0,overscrollBehavior:!0,overscrollBehaviorBlock:!0,overscrollBehaviorInline:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,padding:{properties:"padding",token:"spaces",transform:F.token("spaces",F.px)},paddingBlock:{properties:"paddingBlock",token:"spaces",transform:F.token("spaces",F.px)},paddingBlockEnd:{properties:"paddingBlockEnd",token:"spaces",transform:F.token("spaces",F.px)},paddingBlockStart:{properties:"paddingBlockStart",token:"spaces",transform:F.token("spaces",F.px)},paddingBottom:{properties:"paddingBottom",token:"spaces",transform:F.token("spaces",F.px)},paddingInline:{properties:"paddingInline",token:"spaces",transform:F.token("spaces",F.px)},paddingInlineEnd:{properties:"paddingInlineEnd",token:"spaces",transform:F.token("spaces",F.px)},paddingInlineStart:{properties:"paddingInlineStart",token:"spaces",transform:F.token("spaces",F.px)},paddingLeft:{properties:"paddingLeft",token:"spaces",transform:F.token("spaces",F.px)},paddingRight:{properties:"paddingRight",token:"spaces",transform:F.token("spaces",F.px)},paddingTop:{properties:"paddingTop",token:"spaces",transform:F.token("spaces",F.px)},page:!0,pageBreakAfter:!0,pageBreakBefore:!0,pageBreakInside:!0,paintOrder:!0,perspective:!0,perspectiveOrigin:!0,placeContent:!0,placeItems:!0,placeSelf:!0,pointerEvents:!0,position:!0,printColorAdjust:!0,quotes:!0,resize:!0,right:{properties:"right",token:"spaces",transform:F.token("spaces",F.px)},rowGap:{properties:"rowGap",token:"spaces",transform:F.token("spaces",F.px)},rubyAlign:!0,rubyPosition:!0,scrollBehavior:!0,scrollMargin:{properties:"scrollMargin",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginBlock:!0,scrollMarginBlockEnd:!0,scrollMarginBlockStart:!0,scrollMarginBottom:{properties:"scrollMarginBottom",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginInline:!0,scrollMarginInlineEnd:!0,scrollMarginInlineStart:!0,scrollMarginLeft:{properties:"scrollMarginLeft",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginRight:{properties:"scrollMarginRight",token:"spaces",transform:F.token("spaces",F.px)},scrollMarginTop:{properties:"scrollMarginTop",token:"spaces",transform:F.token("spaces",F.px)},scrollPadding:{properties:"scrollPadding",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingBlock:!0,scrollPaddingBlockEnd:!0,scrollPaddingBlockStart:!0,scrollPaddingBottom:{properties:"scrollPaddingBottom",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingInline:!0,scrollPaddingInlineEnd:!0,scrollPaddingInlineStart:!0,scrollPaddingLeft:{properties:"scrollPaddingLeft",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingRight:{properties:"scrollPaddingRight",token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingTop:{properties:"scrollPaddingTop",token:"spaces",transform:F.token("spaces",F.px)},scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollTimeline:!0,scrollTimelineAxis:!0,scrollTimelineName:!0,scrollbarColor:!0,scrollbarGutter:!0,scrollbarWidth:{properties:"scrollbarWidth",transform:F.px},shapeImageThreshold:!0,shapeMargin:!0,shapeOutside:!0,tabSize:!0,tableLayout:!0,textAlign:!0,textAlignLast:!0,textCombineUpright:!0,textDecoration:!0,textDecorationColor:{properties:"textDecorationColor",token:"colors",transform:F.token("colors")},textDecorationLine:!0,textDecorationSkip:!0,textDecorationSkipInk:!0,textDecorationStyle:!0,textDecorationThickness:!0,textEmphasis:!0,textEmphasisColor:{properties:"textEmphasisColor",token:"colors",transform:F.token("colors")},textEmphasisPosition:!0,textEmphasisStyle:!0,textIndent:!0,textJustify:!0,textOrientation:!0,textOverflow:!0,textRendering:!0,textShadow:{properties:"textShadow",token:"shadows",transform:F.token("shadows")},textSizeAdjust:!0,textTransform:!0,textUnderlineOffset:!0,textUnderlinePosition:!0,textWrap:!0,timelineScope:!0,top:{properties:"top",token:"spaces",transform:F.token("spaces",F.px)},touchAction:!0,transform:{properties:"transform",transform:F.transform},transformBox:!0,transformOrigin:!0,transformStyle:!0,transitionBehavior:!0,transitionDelay:!0,transitionDuration:{properties:"transitionDuration",token:"transitions.duration",transform:F.token("transitions.duration")},transitionProperty:{properties:"transitionProperty",token:"transitions.property",transform:F.token("transitions.property")},transitionTimingFunction:{properties:"transitionTimingFunction",token:"transitions.easing",transform:F.token("transitions.easing")},translate:!0,unicodeBidi:!0,userSelect:!0,verticalAlign:!0,viewTimeline:!0,viewTimelineAxis:!0,viewTimelineInset:!0,viewTimelineName:!0,viewTransitionName:!0,visibility:!0,whiteSpace:!0,whiteSpaceCollapse:!0,widows:!0,width:{properties:"width",token:"sizes",transform:F.token("sizes",F.fraction(F.px))},willChange:!0,wordBreak:!0,wordSpacing:!0,writingMode:!0,zIndex:{properties:"zIndex",token:"zIndices",transform:F.token("zIndices")},zoom:!0,alignmentBaseline:!0,azimuth:!0,baselineShift:!0,clipRule:!0,colorInterpolation:!0,dominantBaseline:!0,fill:{properties:"fill",token:"colors",transform:F.token("colors")},fillOpacity:!0,fillRule:!0,floodColor:{properties:"floodColor",token:"colors",transform:F.token("colors")},floodOpacity:!0,glyphOrientationVertical:!0,lightingColor:{properties:"lightingColor",token:"colors",transform:F.token("colors")},markerEnd:!0,markerMid:!0,markerStart:!0,shapeRendering:!0,stopColor:!0,stopOpacity:!0,stroke:{properties:"stroke",token:"colors",transform:F.token("colors")},strokeDasharray:!0,strokeDashoffset:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:{properties:"strokeWidth",transform:F.px},textAnchor:!0,vectorEffect:!0,marginX:{properties:["marginInlineStart","marginInlineEnd"],token:"spaces",transform:F.token("spaces",F.px)},marginY:{properties:["marginTop","marginBottom"],token:"spaces",transform:F.token("spaces",F.px)},paddingX:{properties:["paddingInlineStart","paddingInlineEnd"],token:"spaces",transform:F.token("spaces",F.px)},paddingY:{properties:["paddingTop","paddingBottom"],token:"spaces",transform:F.token("spaces",F.px)},scrollMarginX:{properties:["scrollMarginLeft","scrollMarginRight"],token:"spaces",transform:F.token("spaces",F.px)},scrollMarginY:{properties:["scrollMarginTop","scrollMarginBottom"],token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingX:{properties:["scrollPaddingLeft","scrollPaddingRight"],token:"spaces",transform:F.token("spaces",F.px)},scrollPaddingY:{properties:["scrollPaddingTop","scrollPaddingBottom"],token:"spaces",transform:F.token("spaces",F.px)},insetX:{properties:["left","right"],token:"spaces",transform:F.token("spaces",F.px)},insetY:{properties:["top","bottom"],token:"spaces",transform:F.token("spaces",F.px)},borderY:{properties:["borderTop","borderBottom"],token:"borders",transform:F.token("borders")},borderX:{properties:["borderLeft","borderRight"],token:"borders",transform:F.token("borders")},borderTopRadius:{properties:["borderTopLeftRadius","borderTopRightRadius"],token:"radii",transform:F.token("radii",F.px)},borderBottomRadius:{properties:["borderBottomLeftRadius","borderBottomRightRadius"],token:"radii",transform:F.token("radii",F.px)},borderRightRadius:{properties:["borderTopRightRadius","borderBottomRightRadius"],token:"radii",transform:F.token("radii",F.px)},borderLeftRadius:{properties:["borderTopLeftRadius","borderBottomLeftRadius"],token:"radii",transform:F.token("radii",F.px)},borderInlineStartRadius:{properties:["borderStartStartRadius","borderStartEndRadius"],token:"radii",transform:F.token("radii",F.px)},borderInlineEndRadius:{properties:["borderEndStartRadius","borderEndEndRadius"],token:"radii",transform:F.token("radii",F.px)},boxSize:{properties:["width","height"],token:"sizes",transform:F.token("sizes",F.fraction(F.px))},minBoxSize:!0,maxBoxSize:!0,translateX:{properties:"--ui-translate-x",token:"spaces",transform:F.token("spaces",F.px)},translateY:{properties:"--ui-translate-y",token:"spaces",transform:F.token("spaces",F.px)},scale:!0,scaleX:!0,scaleY:!0,rotate:{properties:"--ui-rotate",transform:F.deg},skewX:{properties:"--ui-skew-x",transform:F.deg},skewY:{properties:"--ui-skew-y",transform:F.deg},filter:{transform:F.filter()},blur:{properties:"--ui-blur",token:"blurs",transform:F.token("blurs",F.function("blur"))},brightness:{properties:"--ui-brightness",transform:F.function("brightness")},contrast:{properties:"--ui-contrast",transform:F.function("contrast")},dropShadow:{properties:"--ui-drop-shadow",token:"shadows",transform:F.token("shadows",F.function("drop-shadow"))},grayscale:{properties:"--ui-grayscale",transform:F.function("grayscale")},hueRotate:{properties:"--ui-hue-rotate",transform:F.function("hue-rotate",F.deg)},invert:{properties:"--ui-invert",transform:F.function("invert")},saturate:{properties:"--ui-saturate",transform:F.function("saturate")},sepia:{properties:"--ui-sepia",transform:F.function("sepia")},backdropFilter:{transform:F.filter("backdrop")},backdropBlur:{properties:"--ui-backdrop-blur",token:"blurs",transform:F.token("blurs",F.function("blur"))},backdropBrightness:{properties:"--ui-backdrop-brightness",transform:F.function("brightness")},backdropContrast:{properties:"--ui-backdrop-contrast",transform:F.function("contrast")},backdropDropShadow:{properties:"--ui-backdrop-drop-shadow",token:"shadows",transform:F.token("shadows",F.function("drop-shadow"))},backdropGrayscale:{properties:"--ui-backdrop-grayscale",transform:F.function("grayscale")},backdropHueRotate:{properties:"--ui-backdrop-hue-rotate",transform:F.function("hue-rotate",F.deg)},backdropInvert:{properties:"--ui-backdrop-invert",transform:F.function("invert")},backdropSaturate:{properties:"--ui-backdrop-saturate",transform:F.function("saturate")},backdropSepia:{properties:"--ui-backdrop-sepia",transform:F.function("sepia")},lineClamp:{properties:"--ui-line-clamp",isSkip:!0,static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--ui-line-clamp)"}},isTruncated:{isSkip:!0,transform:F.isTruncated},layerStyle:{isProcessResult:!0,isSkip:!0,transform:F.styles("layerStyles")},textStyle:{isProcessResult:!0,isSkip:!0,transform:F.styles("textStyles")},apply:{isProcessResult:!0,isSkip:!0,transform:F.styles()},var:{isProcessSkip:!0,isSkip:!0,transform:F.var}},y7={accent:we.accentColor,bg:we.background,bgAttachment:{properties:"backgroundAttachment"},bgBlendMode:{properties:"backgroundBlendMode"},bgClip:we.backgroundClip,bgColor:we.backgroundColor,bgImage:we.backgroundImage,bgImg:we.backgroundImage,bgGradient:we.backgroundImage,bgOrigin:{properties:"backgroundOrigin"},bgPosition:{properties:"backgroundPosition"},bgPositionX:{properties:"backgroundPositionX"},bgPosX:{properties:"backgroundPositionX"},bgPositionY:{properties:"backgroundPositionY"},bgPosY:{properties:"backgroundPositionY"},bgRepeat:{properties:"backgroundRepeat"},bgSize:{properties:"backgroundSize"},roundedBottomLeft:we.borderBottomLeftRadius,roundedBottomRight:we.borderBottomRightRadius,borderBottomEndRadius:we.borderEndEndRadius,roundedBottomEnd:we.borderEndEndRadius,borderBottomStartRadius:we.borderEndStartRadius,roundedBottomStart:we.borderEndStartRadius,borderEnd:we.borderInlineEnd,borderEndColor:we.borderInlineEndColor,borderEndStyle:{properties:"borderInlineEndStyle"},borderEndWidth:we.borderInlineEndWidth,borderStart:we.borderInlineStart,borderStartColor:we.borderInlineStartColor,borderStartStyle:{properties:"borderInlineStartStyle"},borderStartWidth:we.borderInlineStartWidth,rounded:we.borderRadius,borderTopEndRadius:we.borderStartEndRadius,roundedTopEnd:we.borderStartEndRadius,borderTopStartRadius:we.borderStartStartRadius,roundedTopStart:we.borderStartStartRadius,roundedTopLeft:we.borderTopLeftRadius,roundedTopRight:we.borderTopRightRadius,shadow:we.boxShadow,caret:we.caretColor,textColor:we.color,gx:we.columnGap,gapX:we.columnGap,flexDir:{properties:"flexDirection"},text:we.fontSize,g:we.gap,h:we.height,insetEnd:we.insetInlineEnd,insetStart:we.insetInlineStart,tracking:we.letterSpacing,leading:we.lineHeight,listStyleImg:{properties:"listStyleImage"},listStylePos:{properties:"listStylePosition"},m:we.margin,mb:we.marginBottom,me:we.marginInlineEnd,marginEnd:we.marginInlineEnd,ms:we.marginInlineStart,marginStart:we.marginInlineStart,ml:we.marginLeft,mr:we.marginRight,mt:we.marginTop,maxH:we.maxHeight,maxW:we.maxWidth,minH:we.minHeight,minW:we.minWidth,blendMode:{properties:"mixBlendMode"},overscroll:{properties:"overscrollBehavior"},overscrollX:{properties:"overscrollBehaviorX"},overscrollY:{properties:"overscrollBehaviorY"},p:we.padding,pb:we.paddingBottom,pe:we.paddingInlineEnd,paddingEnd:we.paddingInlineEnd,ps:we.paddingInlineStart,paddingStart:we.paddingInlineStart,pl:we.paddingLeft,pr:we.paddingRight,pt:we.paddingTop,pos:{properties:"position"},gy:we.rowGap,gapY:we.rowGap,textDecor:{properties:"textDecoration"},w:we.width,z:we.zIndex,mx:we.marginX,my:we.marginY,px:we.paddingX,py:we.paddingY,roundedTop:we.borderTopRadius,roundedBottom:we.borderBottomRadius,roundedRight:we.borderRightRadius,roundedLeft:we.borderLeftRadius,borderStartRadius:we.borderInlineStartRadius,roundedStart:we.borderInlineStartRadius,borderEndRadius:we.borderInlineEndRadius,roundedEnd:we.borderInlineEndRadius},q2={...we,...y7},b7=Object.keys(q2),v7=["width","inlineSize","height","backfaceVisibility","blockSize","boxSize","minWidth","minInlineSize","minHeight","minBlockSize","maxWidth","maxInlineSize","maxHeight","maxBlockSize","overflow","overflowX","overflowY","overscrollBehavior","overscroll","overscrollX","textDecor","overscrollBehaviorY","overscrollY","display","aspectRatio","verticalAlign","boxSizing","boxDecorationBreak","float","objectFit","objectPosition","visibility","isolation","w","h","minW","maxW","minH","maxH","position","pos","zIndex","inset","insetX","insetInline","insetY","insetBlock","top","insetBlockStart","bottom","insetBlockEnd","left","insetInlineStart","right","insetInlineEnd","insetStart","insetEnd","margin","marginTop","marginBlockStart","marginRight","marginInlineEnd","marginBottom","marginBlockEnd","marginLeft","marginInlineStart","marginX","marginInline","marginY","marginBlock","padding","paddingTop","paddingBlockStart","paddingRight","paddingBottom","paddingBlockEnd","paddingLeft","paddingInlineStart","paddingInlineEnd","paddingX","paddingInline","paddingY","paddingBlock","m","mt","mr","me","marginEnd","mb","ml","ms","marginStart","mx","my","p","pt","py","px","pb","pl","ps","paddingStart","pr","pe","paddingEnd","alignItems","alignContent","justifyItems","justifyContent","flexWrap","flexDirection","flexDir","flex","flexFlow","flexGrow","flexShrink","flexBasis","justifySelf","alignSelf","order","placeItems","placeContent","placeSelf","gap","rowGap","columnGap","grid","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridAutoRows","gridTemplate","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea"],x7=(e,t)=>({[e]:t[0],[Fo._dark]:{[e]:t[1]}}),w7=(e,t,n)=>[...n].reverse().reduce((r,{breakpoint:a,maxWQuery:i})=>{if(a==="base")r[e]=t[a];else{const s=t[a];s&&i&&(r[i]={[e]:s})}return r},{}),k7=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,queries:r}=t.__breakpoints;let a={};for(let[i,s]of Object.entries(e))if(s=ta(s,t),s!=null){if(ut(s)){a=Nn(a,x7(i,s));continue}if(Un(s)&&n(s)){a=Nn(a,w7(i,s,r));continue}a[i]=s}return a},S7=({theme:e,styles:t={},pseudos:n={}})=>{const r=(a,i=!1)=>{var s,o,l;const c=ta(a,e),u=k7(c)(e);let d={};for(let[p,h]of Object.entries(u)){if(h=ta(h,e),h==null)continue;p in n&&(p=n[p]);let f=t[p];if(f===!0&&(f={properties:p}),Un(h)&&!(f!=null&&f.isProcessSkip)){d[p]=(s=d[p])!=null?s:{},d[p]=Nn(d[p],r(h,!0));continue}if(h=(l=(o=f==null?void 0:f.transform)==null?void 0:o.call(f,h,e))!=null?l:h,(f!=null&&f.isProcessResult||f!=null&&f.isProcessSkip)&&(h=r(h,!0)),!i&&(f!=null&&f.static)){const g=ta(f.static,e);d=Nn(d,g)}const m=ta(f==null?void 0:f.properties,e);if(m)if(ut(m)){for(const g of m)d[g]=h;continue}else if(Un(h)){d=Nn(d,h);continue}else{d[m]=h;continue}if(Un(h)){d=Nn(d,h);continue}d[p]=h}return d};return r},xx=e=>t=>S7({theme:t,styles:q2,pseudos:Fo})(e),$A=["blurs","borders","colors","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","spaces","zIndices"],AA=["gradients"],I7=(e,t)=>{var n;e=C7(e);const{breakpoints:r,themeSchemes:a}=e??{},i=(n=t==null?void 0:t.var)==null?void 0:n.prefix,s=yd(e),o=yd(e,"secondary"),l=yd(e,"animation");let{cssMap:c,cssVars:u}=RA(gd(s,i),gd(o,i),gd(l,i))();if(a)for(const[p,h]of Object.entries(a)){const f=yd(h),m=yd(h,"secondary"),g=yd(h,"animation");let{cssVars:y}=RA(gd(f,i),gd(m,i),gd(g,i))({...s,...o,...l});u={...u,[`[data-theme=${p}] &:not([data-theme]), &[data-theme=${p}]`]:y}}return Object.assign(e,{__config:t,__cssVars:{...{},...u},__cssMap:c,__breakpoints:l7(r)}),e},yd=(e,t="primary")=>{var n;let r=[],a=[],i=[];switch(t){case"primary":r=[...$A,"transitions"],a=[...$A,"transitions","colorSchemes"];break;case"secondary":r=[...AA],a=[...AA];break;case"animation":r=["animations"],a=["animations"],i=["keyframes"];break}const s=Tb(e,r),o=Tb((n=e.semantics)!=null?n:{},a),l=Object.entries(eS(s,1/0,i)).map(([u,d])=>[u,{isSemantic:!1,value:d}]),c=Object.entries(eS(o,1/0,i)).reduce((u,[d,p])=>{if(d.startsWith("colorSchemes.")){const[,h]=d.split(".");C9.forEach(f=>{const m={isSemantic:!0,value:`${p}.${f}`};u.push([`colors.${h}.${f}`,m])})}else{const h={isSemantic:!0,value:p};u.push([d,h])}return u},[]);return D9([...l,...c])},RA=(...e)=>t=>{let n={},r={};for(const a of e){const{cssMap:i,cssVars:s}=a({baseTokens:t,cssMap:n,cssVars:r});n={...n,...i},r={...r,...s}}return{cssMap:n,cssVars:r}},C7=e=>tu(e,["__cssMap","__cssVar","__breakpoints"]),ai=e=>tu(e,["size","variant","colorScheme"]),YO=(e,...t)=>({omit:n=[],pick:r=[]}={})=>t.reduce((a,i)=>$b(ZO(a)({omit:n,pick:r}),i),e),qr=(e,...t)=>({omit:n=[],pick:r=[]}={})=>t.reduce((a,i)=>$b(ZO(a)({omit:n,pick:r,isMulti:!0}),i),e),$b=(e,t)=>{let n=Object.assign({},e);if(Un(t)&&Un(e))for(const[r,a]of Object.entries(t)){const i=e[r];e.hasOwnProperty(r)?!Fs(i)&&!Fs(a)?n[r]=$b(i,a):n[r]=s=>$b(ta(i,s),ta(a,s)):Object.assign(n,{[r]:a})}else n=t;return n},ZO=e=>({omit:t,pick:n,isMulti:r=!1})=>(Un(e)&&(t.length&&(e=Ab(e,t,r)(tu)),n.length&&(e=Ab(e,n,r)(Tb))),e),Ab=(e,t,n,r=[])=>a=>(Un(e)&&(e=a(e,t),Object.entries(e??{}).forEach(([i,s])=>{const o=t.filter(c=>c!==i),l=[...r,i];_7(l,n)&&(Fs(s)?e[i]=c=>Ab(s(c),o,n,l)(a):e[i]=Ab(s,o,n,l)(a))})),e),_7=(e,t)=>{switch(e[0]){case"baseStyle":return e.length<(t?2:1);case"variants":case"sizes":return e.length<(t?3:2);default:return!1}},T7=(e,t,n=!0)=>{const r={};return Object.entries(e).forEach(([a,i])=>{switch(a){case"baseStyle":Fs(i)?r[a]=s=>i(s)[t]:r[a]=i[t];break;case"variants":case"sizes":r[a]=Object.entries(i).reduce((s,[o,l])=>(Fs(l)?s[o]=c=>l(c)[t]:s[o]=l[t],s),{});break;case"defaultProps":n&&(r[a]=i);break}}),r},Mw="ui-color-mode",QO=!!(globalThis!=null&&globalThis.document),FA=e=>({ssr:!1,type:"localStorage",get:(t="light")=>{if(!QO)return t;try{return localStorage.getItem(e)||t}catch{return t}},set:t=>{try{localStorage.setItem(e,t)}catch{}}}),DA=(e,t)=>{const n=e.match(new RegExp(`(^| )${t}=([^;]+)`));return n==null?void 0:n[2]},Ow=(e,t)=>({ssr:!!t,type:"cookie",get:(n="light")=>t?DA(t,e)||n:QO&&DA(document.cookie,e)||n,set:n=>{document.cookie=`${e}=${n}; max-age=31536000; path=/`}}),N7={localStorage:FA(Mw),cookieStorage:Ow(Mw),ssr:e=>Ow(Mw,e),createLocalStorage:FA,createCookieStorage:Ow},r0={light:"ui-light",dark:"ui-dark"},E7={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},$7=({isPreventTransition:e=!0})=>{const t=o=>{const l=e?s():void 0;document.documentElement.dataset.mode=o,document.documentElement.style.colorScheme=o,l==null||l()},n=o=>{document.body.classList.add(o?r0.dark:r0.light),document.body.classList.remove(o?r0.light:r0.dark)},r=()=>window.matchMedia(E7.dark),a=o=>{var l;return((l=r().matches)!=null?l:o==="dark")?"dark":"light"},i=o=>{const l=r(),c=u=>{o(u.matches?"dark":"light")};return typeof l.addListener=="function"?l.addListener(c):l.addEventListener("change",c),()=>{typeof l.removeListener=="function"?l.removeListener(c):l.removeEventListener("change",c)}},s=()=>{const o=document.createElement("style"),l=document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}");return o.appendChild(l),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}};return{setDataset:t,setClassName:n,query:r,getSystemColorMode:a,addListener:i,preventTransition:s}},{localStorage:A7}=N7,R7=(e,t)=>e.type==="cookie"&&e.ssr?e.get(t):t,JO=D.createContext({}),F7=({colorMode:e,colorModeManager:t=A7,config:{initialColorMode:n="light",disableTransitionOnChange:r=!0}={},children:a})=>{const[i,s]=D.useState(()=>R7(t,n)),[o,l]=D.useState(void 0),u=i==="system"?o||(n==="dark"?"dark":"light"):i,{getSystemColorMode:d,setClassName:p,setDataset:h,addListener:f}=D.useMemo(()=>$7({isPreventTransition:r}),[r]),m=D.useCallback(v=>{const x=v==="system"?d():v;s(v),p(x==="dark"),h(x),t.set(v)},[t,d,p,h]),g=D.useCallback(v=>{l(v),i==="system"&&(p(v==="dark"),h(v))},[i,p,h]),y=D.useCallback(()=>{m(u==="dark"?"light":"dark")},[m,u]);wm(()=>{l(d())},[n,f,m]),D.useEffect(()=>{const v=t.get();v&&m(v)},[m,t]),D.useEffect(()=>f(g),[f,g]);const b=D.useMemo(()=>({colorMode:e??u,internalColorMode:i,changeColorMode:e?cA:m,toggleColorMode:e?cA:y,forced:e!==void 0}),[e,u,i,m,y]);return M.jsx(JO.Provider,{value:b,children:a})},Lp=()=>{const e=D.useContext(JO);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e},eP=(e,t)=>{const{colorMode:n}=Lp();return n==="light"?e:t},Pw="ui-theme-scheme",tP=!!(globalThis!=null&&globalThis.document),MA=e=>({ssr:!1,type:"localStorage",get:(t="base")=>{if(!tP)return t;try{return localStorage.getItem(e)||t}catch{return t}},set:t=>{try{localStorage.setItem(e,String(t))}catch{}}}),OA=(e,t)=>{const n=e.match(new RegExp(`(^| )${t}=([^;]+)`));return n==null?void 0:n[2]},zw=(e,t)=>({ssr:!!t,type:"cookie",get:(n="base")=>t?OA(t,e)||n:tP&&OA(document.cookie,e)||n,set:n=>{document.cookie=`${e}=${n}; max-age=31536000; path=/`}}),D7={localStorage:MA(Pw),cookieStorage:zw(Pw),ssr:e=>zw(Pw,e),createLocalStorage:MA,createCookieStorage:zw},{localStorage:M7}=D7,O7=({theme:e={},config:t,themeSchemeManager:n=M7,children:r})=>{const[a,i]=D.useState(n.get(t==null?void 0:t.initialThemeScheme)),s=D.useCallback(l=>{const c=t!=null&&t.disableTransitionOnChange?B7():void 0;document.documentElement.dataset.theme=l,c==null||c(),i(l),n.set(l)},[t,n]),o=D.useMemo(()=>I7(e,t),[e,t]);return D.useEffect(()=>{const l=n.get();l&&s(l)},[s,n]),M.jsxs(Yq,{theme:{themeScheme:a,changeThemeScheme:s,...o},children:[M.jsx(P7,{}),r]})},P7=()=>M.jsx(G2,{styles:({__cssVars:e})=>({":host, :root, [data-mode]":e})}),z7=()=>{const{colorMode:e}=Lp();return M.jsx(G2,{styles:t=>{const{themeScheme:n}=t;let r=qe(t,"styles.resetStyle",{});const a=ta(r,{theme:t,colorMode:e,themeScheme:n});if(a)return xx(a)(t)}})},L7=()=>{const{colorMode:e}=Lp();return M.jsx(G2,{styles:t=>{const{themeScheme:n}=t;let r=qe(t,"styles.globalStyle",{});const a=ta(r,{theme:t,colorMode:e,themeScheme:n});if(a)return xx(a)(t)}})},Bp=()=>{const{themeScheme:e,changeThemeScheme:t,...n}=D.useContext(Cm);if(!n)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in ``");const r=D.useMemo(()=>{var i;if(ax(e)||e==="base")return n;const s=(i=n.themeSchemes)==null?void 0:i[e];return s?Nn(n,s):n},[e,n]);return D.useMemo(()=>({themeScheme:e,changeThemeScheme:t,theme:r,internalTheme:n}),[e,t,r,n])},B7=()=>{const e=document.createElement("style"),t=document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}");return e.appendChild(t),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}},PA=(e,t,n)=>({isMulti:r})=>{var a;let i={};if(ut(e)){const[s,o]=e,l=Sl(t[s],n)({isMulti:r,query:Fo._light}),c=Sl(t[o],n)({isMulti:r,query:Fo._dark});i=Nn(l,c)}else if(Un(e))if(tS(e).length===1&&"base"in e)i=Sl(t[e.base],n)({isMulti:r});else{const{queries:s=[]}=(a=n.theme.__breakpoints)!=null?a:{},o=s.filter(({breakpoint:d})=>d!=="base"&&tS(e).includes(d)),l=o.sort((d,p)=>{var h,f;return((h=d.minW)!=null?h:0)-((f=p.minW)!=null?f:0)})[0],c=o.sort((d,p)=>{var h,f;return((h=p.minW)!=null?h:0)-((f=d.minW)!=null?f:0)})[0],u=s.filter(({minW:d})=>{var p;return(d??0)>((p=c==null?void 0:c.minW)!=null?p:0)}).sort((d,p)=>{var h,f;return((h=d.minW)!=null?h:0)-((f=p.minW)!=null?f:0)})[0];i=Object.entries(e).reduce((d,[p,h=""])=>{var f;if(p==="base"){const m=u.minWQuery,g=Sl(t[h],n)({isMulti:r,query:m});d=Nn(d,g)}else{const m=p===l.breakpoint,g=(f=s==null?void 0:s.find(({breakpoint:b})=>b===p))==null?void 0:f[m?"maxWQuery":"minMaxQuery"],y=Sl(t[h],n)({isMulti:r,query:g});d=Nn(d,y)}return d},{})}else i=Sl(t[e],n)({isMulti:r});return i},Sl=(e,t)=>({isMulti:n,query:r})=>{let a=ta(e,t);if(n)for(const[i,s]of Object.entries(a??{})){const o=ta(s,t);r?a=Nn(a,{[i]:{[r]:o}}):a=Nn(a,{[i]:o})}else if(r)return{[r]:a};return a},nP=(e,t,n=!1)=>{var r,a,i,s;const{theme:o,themeScheme:l}=Bp(),{colorMode:c}=Lp(),u=qe(o,`components.${e}`),d=D.useRef({}),p=D.useRef({});if(t=Nn((r=u==null?void 0:u.defaultProps)!=null?r:{},ix(t)),u){const f=tu(t,["children"]);let m=Sl((a=u.baseStyle)!=null?a:{},{theme:o,colorMode:c,themeScheme:l,...f})({isMulti:n});const g=PA(t.variant,(i=u.variants)!=null?i:{},{theme:o,colorMode:c,themeScheme:l,...f})({isMulti:n}),y=PA(t.size,(s=u.sizes)!=null?s:{},{theme:o,colorMode:c,themeScheme:l,...f})({isMulti:n});m=Nn(m,y),m=Nn(m,g),mA(p.current,m)||(p.current=m)}return mA(d.current,t)||(d.current=t),[p.current,d.current]},xg=(e,t)=>nP(e,t),Eu=(e,t)=>nP(e,t,!0),W7=new Set([...b7,...m7,"textStyle","layerStyle","apply","lineClamp","focusBorderColor","errorBorderColor","as","__css","css","sx"]),V7=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]),U7=e=>V7.has(e)||!W7.has(e),j7=TO(iS),H7={...q2,...Fo},G7=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:a,sx:i,...s}=t,o=_O(s,u=>u in H7),l=ta(e,t),c=xx(z9({},a,l,ix(o),i))(n);return r?[c,r]:c},Lw=(e,{baseStyle:t,...n}={})=>{n.shouldForwardProp||(n.shouldForwardProp=U7);const r=G7({baseStyle:t}),a=j7(e,n)(r),i=D.forwardRef((s,o)=>{const{colorMode:l,forced:c}=Lp();return D.createElement(a,{ref:o,"data-mode":c?l:void 0,...s})});return i.displayName="UIComponent",i},q7=()=>{const e=new Map;return new Proxy(Lw,{apply:(t,n,[r,a])=>Lw(r,a),get:(t,n)=>(e.has(n)||e.set(n,Lw(n)),e.get(n))})},He=q7(),_m=(e,t)=>{var n,r,a;const{theme:i}=Bp(),{colorMode:s}=Lp();e==="layerStyles"&&(e="styles.layerStyles"),e==="textStyles"&&(e="styles.textStyles"),e==="transitionProperty"&&(e="transitions.property"),e==="transitionDuration"&&(e="transitions.duration"),e==="transitionEasing"&&(e="transitions.easing");let o=qe(i,`${e}.${t}`);if(ax(o))if(o=qe(i,`semantics.${e}.${t}`),ut(o)?o=[(n=qe(i,`${e}.${o[0]}`))!=null?n:o[0],(r=qe(i,`${e}.${o[1]}`))!=null?r:o[1]]:o=(a=qe(i,`${e}.${o}`))!=null?a:o,ut(o)){const[l,c]=o;if(o=s==="light"?l:c,ut(o)){const[u,d]=o;return s==="light"?u:d}else return o}else return o;else if(ut(o)){const[l,c]=o;return s==="light"?l:c}else return o},ii=Re(({as:e,viewBox:t,size:n,className:r,__css:a,...i},s)=>{const o=M9(n,c=>c9(c)?c:_m("fontSizes",c)),l={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:"currentColor",...a};return e&&typeof e!="string"?M.jsx(He.svg,{as:e,className:Pe("ui-icon",r),__css:l,boxSize:o,...i}):M.jsx(He.svg,{ref:s,verticalAlign:"middle",viewBox:t,className:Pe("ui-icon",r),__css:l,boxSize:o,...i})}),K7=e=>M.jsx(ii,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})}),X7=e=>M.jsx(ii,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})}),zA=e=>M.jsx(ii,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})}),Y7=e=>M.jsx(ii,{focusable:"false","aria-hidden":!0,viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}),rP=e=>M.jsx(ii,{focusable:"false","aria-hidden":!0,viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Z7=Re(({color:e,duration:t="1.8s",...n},r)=>M.jsx(ii,{ref:r,viewBox:"0 0 44 44",stroke:e,...n,children:M.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2",children:[M.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[M.jsx("animate",{attributeName:"r",begin:"0s",dur:t,values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:t,values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[M.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:t,values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:t,values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})})),Q7=Re(({color:e,duration:t="3s",...n},r)=>{const a=typeof t=="string"?parseFloat(t):t;return M.jsx(ii,{ref:r,viewBox:"0 0 45 45",stroke:e,...n,children:M.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[M.jsxs("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[M.jsx("animate",{attributeName:"r",begin:"1.5s",dur:`${a}s`,values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:`${a}s`,values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-width",begin:"1.5s",dur:`${a}s`,values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[M.jsx("animate",{attributeName:"r",begin:"3s",dur:`${a}s`,values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-opacity",begin:"3s",dur:`${a}s`,values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"stroke-width",begin:"3s",dur:`${a}s`,values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsx("circle",{cx:"22",cy:"22",r:"8",children:M.jsx("animate",{attributeName:"r",begin:"0s",dur:`${a/2}s`,values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}),J7=Re(({color:e,duration:t="1.4s",...n},r)=>{const a=typeof t=="string"?parseFloat(t):t;return M.jsx(ii,{ref:r,viewBox:"0 0 55 80",fill:e,...n,children:M.jsxs("g",{transform:"matrix(1 0 0 -1 0 80)",children:[M.jsx("rect",{width:"10",height:"20",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a*3}s`,values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("rect",{x:"15",width:"10",height:"80",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a*1.4}s`,values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("rect",{x:"30",width:"10",height:"50",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a}s`,values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("rect",{x:"45",width:"10",height:"30",rx:"3",children:M.jsx("animate",{attributeName:"height",begin:"0s",dur:`${a*1.4}s`,values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})})]})})}),eK=Re(({color:e,duration:t="3s",...n},r)=>M.jsx(ii,{ref:r,viewBox:"0 0 58 58",stroke:e,...n,children:M.jsx("g",{fill:"none",fillRule:"evenodd",children:M.jsxs("g",{transform:"translate(2 1)",stroke:e,strokeWidth:"1.5",children:[M.jsx("circle",{cx:"42.601",cy:"11.462",r:"5",fillOpacity:"1",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"1;0;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"49.063",cy:"27.063",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;1;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"42.601",cy:"42.663",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;1;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"27",cy:"49.125",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;1;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"11.399",cy:"42.663",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;1;0;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"4.938",cy:"27.063",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;0;1;0;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"11.399",cy:"11.462",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;0;0;1;0",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"27",cy:"5",r:"5",fillOpacity:"0",fill:e,children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"0;0;0;0;0;0;0;1",calcMode:"linear",repeatCount:"indefinite"})})]})})})),tK=Re(({color:e,duration:t="1s",...n},r)=>M.jsxs(ii,{ref:r,viewBox:"0 0 120 30",fill:e,...n,children:[M.jsxs("circle",{cx:"15",cy:"15",r:"15",children:[M.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:t,values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:t,values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3",children:[M.jsx("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:t,values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:t,values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),M.jsxs("circle",{cx:"105",cy:"15",r:"15",children:[M.jsx("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:t,values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),M.jsx("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:t,values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})),nK=Re(({color:e,duration:t="1s",...n},r)=>M.jsxs(ii,{ref:r,viewBox:"0 0 105 105",fill:e,...n,children:[M.jsx("circle",{cx:"12.5",cy:"12.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"0s",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"12.5",cy:"52.5",r:"12.5",fillOpacity:".5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"100ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"52.5",cy:"12.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"300ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"52.5",cy:"52.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"600ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"92.5",cy:"12.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"800ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"92.5",cy:"52.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"400ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"12.5",cy:"92.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"700ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"52.5",cy:"92.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"500ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})}),M.jsx("circle",{cx:"92.5",cy:"92.5",r:"12.5",children:M.jsx("animate",{attributeName:"fill-opacity",begin:"200ms",dur:t,values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})})]})),rK=Re(({color:e,secondaryColor:t,duration:n="1s",...r},a)=>M.jsx(ii,{ref:a,viewBox:"0 0 38 38",stroke:e,...r,children:M.jsx("g",{fill:"none",fillRule:"evenodd",children:M.jsxs("g",{transform:"translate(1 1)",strokeWidth:"2",children:[M.jsx("circle",{...t?{stroke:t}:{strokeOpacity:".5"},cx:"18",cy:"18",r:"18"}),M.jsx("path",{d:"M36 18c0-9.94-8.06-18-18-18",children:M.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:n,repeatCount:"indefinite"})})]})})})),aK=()=>{const{theme:e}=Bp();if(!e)throw Error("useBreakpoint: `theme` is undefined. Seems you forgot to wrap your app in ``");const t=e.__breakpoints;if(!t)throw Error("useBreakpoint: `breakpoints` is undefined. Seems you forgot to put theme in `breakpoints`");const n=D.useMemo(()=>t.queries.map(({breakpoint:i,minMaxQuery:s})=>{var o;return{breakpoint:i,query:(o=s==null?void 0:s.replace("@media screen and ",""))!=null?o:""}}),[t]),[r,a]=D.useState(()=>{if(!z2())return"base";for(const{breakpoint:s,query:o}of n)if(window.matchMedia(o).matches)return s});return D.useEffect(()=>{const i=n.map(({breakpoint:s,query:o})=>{const l=window.matchMedia(o),c=u=>{u.matches&&a(s)};return typeof l.addEventListener=="function"&&l.addEventListener("change",c),()=>{typeof l.removeEventListener=="function"&&l.removeEventListener("change",c)}});return()=>{i.forEach(s=>s())}},[n]),r},iK=e=>{var t;const{theme:n}=Bp();if(!n)throw Error("useBreakpoint: `theme` is undefined. Seems you forgot to wrap your app in ``");const r=(t=n.__breakpoints)==null?void 0:t.keys;if(!r)throw Error("useBreakpoint: `breakpoints` is undefined. Seems you forgot to put theme in `breakpoints`");const a=aK(),i=r.indexOf(a);for(let s=i;sUn(e)?iK(e):ut(e)?eP(...e):e,ru=Re(({className:e,variant:t="oval",color:n="primary",secondaryColor:r,size:a="1em",duration:i,...s},o)=>{var l,c;const u=(l=_m("colors",Wt(n)))!=null?l:n,d=(c=_m("colors",Wt(r)))!=null?c:r,p=D.useMemo(()=>({className:Pe("ui-loading",e),size:a,color:u,duration:i,...s}),[e,u,i,s,a]);switch(t){case"grid":return M.jsx(nK,{ref:o,...p});case"audio":return M.jsx(J7,{ref:o,...p});case"dots":return M.jsx(tK,{ref:o,...p});case"puff":return M.jsx(Z7,{ref:o,...p});case"rings":return M.jsx(Q7,{ref:o,...p});case"circles":return M.jsx(eK,{ref:o,...p});default:return M.jsx(rK,{ref:o,...p,secondaryColor:d})}});const Rb=D.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),wx=D.createContext({});function sK(){return D.useContext(wx).visualElement}const wg=D.createContext(null),kx=typeof document<"u",Fb=kx?D.useLayoutEffect:D.useEffect,aP=D.createContext({strict:!1});function oK(e,t,n,r){const a=sK(),i=D.useContext(aP),s=D.useContext(wg),o=D.useContext(Rb).reducedMotion,l=D.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:o}));const c=l.current;return D.useInsertionEffect(()=>{c&&c.update(n,s)}),Fb(()=>{c&&c.render()}),D.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?Fb:D.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function Td(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lK(e,t,n){return D.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Td(n)&&(n.current=r))},[t])}function Tm(e){return typeof e=="string"||Array.isArray(e)}function Sx(e){return typeof e=="object"&&typeof e.start=="function"}const K2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],X2=["initial",...K2];function Ix(e){return Sx(e.animate)||X2.some(t=>Tm(e[t]))}function iP(e){return!!(Ix(e)||e.variants)}function uK(e,t){if(Ix(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Tm(n)?n:void 0,animate:Tm(r)?r:void 0}}return e.inherit!==!1?t:{}}function cK(e){const{initial:t,animate:n}=uK(e,D.useContext(wx));return D.useMemo(()=>({initial:t,animate:n}),[LA(t),LA(n)])}function LA(e){return Array.isArray(e)?e.join(" "):e}const BA={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],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"]},Nm={};for(const e in BA)Nm[e]={isEnabled:t=>BA[e].some(n=>!!t[n])};function dK(e){for(const t in e)Nm[t]={...Nm[t],...e[t]}}function Cx(e){const t=D.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let pK=1;function hK(){return Cx(()=>{if(Qf.hasEverUpdated)return pK++})}const Y2=D.createContext({}),sP=D.createContext({}),fK=Symbol.for("motionComponentSymbol");function mK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&dK(e);function i(o,l){let c;const u={...D.useContext(Rb),...o,layoutId:gK(o)},{isStatic:d}=u,p=cK(o),h=d?void 0:hK(),f=r(o,d);if(!d&&kx){p.visualElement=oK(a,f,u,t);const m=D.useContext(sP),g=D.useContext(aP).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,g,e,h,m))}return D.createElement(wx.Provider,{value:p},c&&p.visualElement?D.createElement(c,{visualElement:p.visualElement,...u}):null,n(a,o,h,lK(f,p.visualElement,l),f,d,p.visualElement))}const s=D.forwardRef(i);return s[fK]=a,s}function gK({layoutId:e}){const t=D.useContext(Y2).id;return t&&e!==void 0?t+"-"+e:e}function yK(e){function t(r,a={}){return mK(e(r,a))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,a)=>(n.has(a)||n.set(a,t(a)),n.get(a))})}const bK=["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 Z2(e){return typeof e!="string"||e.includes("-")?!1:!!(bK.indexOf(e)>-1||/[A-Z]/.test(e))}const Db={};function vK(e){Object.assign(Db,e)}const _x=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$u=new Set(_x);function oP(e,{layout:t,layoutId:n}){return $u.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Db[e]||e==="opacity")}const ca=e=>!!(e&&e.getVelocity),xK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wK=_x.length;function kK(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,a){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),uP=lP("--"),uS=lP("var(--"),SK=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sp=(e,t,n)=>Math.min(Math.max(n,e),t),Au={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jf={...Au,transform:e=>sp(0,1,e)},a0={...Au,default:1},em=e=>Math.round(e*1e5)/1e5,Em=/(-)?([\d]*\.?[\d])+/g,cS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,IK=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function kg(e){return typeof e=="string"}const Sg=e=>({test:t=>kg(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),eo=Sg("deg"),Gi=Sg("%"),Ge=Sg("px"),CK=Sg("vh"),_K=Sg("vw"),WA={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},VA={...Au,transform:Math.round},cP={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,size:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:a0,scaleX:a0,scaleY:a0,scaleZ:a0,skew:eo,skewX:eo,skewY:eo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Jf,originX:WA,originY:WA,originZ:Ge,zIndex:VA,fillOpacity:Jf,strokeOpacity:Jf,numOctaves:VA};function Q2(e,t,n,r){const{style:a,vars:i,transform:s,transformOrigin:o}=e;let l=!1,c=!1,u=!0;for(const d in t){const p=t[d];if(uP(d)){i[d]=p;continue}const h=cP[d],f=SK(p,h);if($u.has(d)){if(l=!0,s[d]=f,!u)continue;p!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,o[d]=f):a[d]=f}if(t.transform||(l||r?a.transform=kK(e.transform,n,u,r):a.transform&&(a.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:h=0}=o;a.transformOrigin=`${d} ${p} ${h}`}}const J2=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dP(e,t,n){for(const r in t)!ca(t[r])&&!oP(r,n)&&(e[r]=t[r])}function TK({transformTemplate:e},t,n){return D.useMemo(()=>{const r=J2();return Q2(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function NK(e,t,n){const r=e.style||{},a={};return dP(a,r,e),Object.assign(a,TK(e,t,n)),e.transformValues?e.transformValues(a):a}function EK(e,t,n){const r={},a=NK(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}const $K=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Mb(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||$K.has(e)}let pP=e=>!Mb(e);function hP(e){e&&(pP=t=>t.startsWith("on")?!Mb(t):e(t))}try{hP(require("@emotion/is-prop-valid").default)}catch{}function AK(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(pP(a)||n===!0&&Mb(a)||!t&&!Mb(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function UA(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function RK(e,t,n){const r=UA(t,e.x,e.width),a=UA(n,e.y,e.height);return`${r} ${a}`}const FK={offset:"stroke-dashoffset",array:"stroke-dasharray"},DK={offset:"strokeDashoffset",array:"strokeDasharray"};function MK(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?FK:DK;e[i.offset]=Ge.transform(-r);const s=Ge.transform(t),o=Ge.transform(n);e[i.array]=`${s} ${o}`}function eC(e,{attrX:t,attrY:n,originX:r,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...l},c,u,d){if(Q2(e,l,c,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:f}=e;p.transform&&(f&&(h.transform=p.transform),delete p.transform),f&&(r!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=RK(f,r!==void 0?r:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),i!==void 0&&MK(p,i,s,o,!1)}const fP=()=>({...J2(),attrs:{}}),tC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OK(e,t,n,r){const a=D.useMemo(()=>{const i=fP();return eC(i,t,{enableHardwareAcceleration:!1},tC(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};dP(i,e.style,e),a.style={...i,...a.style}}return a}function PK(e=!1){return(n,r,a,i,{latestValues:s},o)=>{const c=(Z2(n)?OK:EK)(r,s,o,n),d={...AK(r,typeof n=="string",e),...c,ref:i},{children:p}=r,h=D.useMemo(()=>ca(p)?p.get():p,[p]);return a&&(d["data-projection-id"]=a),D.createElement(n,{...d,children:h})}}const nC=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function mP(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const gP=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 yP(e,t,n,r){mP(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(gP.has(a)?a:nC(a),t.attrs[a])}function rC(e,t){const{style:n}=e,r={};for(const a in n)(ca(n[a])||t.style&&ca(t.style[a])||oP(a,e))&&(r[a]=n[a]);return r}function bP(e,t){const n=rC(e,t);for(const r in e)if(ca(e[r])||ca(t[r])){const a=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[a]=e[r]}return n}function aC(e,t,n,r={},a={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,a)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,a)),t}const Ob=e=>Array.isArray(e),zK=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),LK=e=>Ob(e)?e[e.length-1]||0:e;function eb(e){const t=ca(e)?e.get():e;return zK(t)?t.toValue():t}function BK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,a,i){const s={latestValues:WK(r,a,i,e),renderState:t()};return n&&(s.mount=o=>n(r,o,s)),s}const vP=e=>(t,n)=>{const r=D.useContext(wx),a=D.useContext(wg),i=()=>BK(e,t,r,a);return n?i():Cx(i)};function WK(e,t,n,r){const a={},i=r(e,{});for(const p in i)a[p]=eb(i[p]);let{initial:s,animate:o}=e;const l=Ix(e),c=iP(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?o:s;return d&&typeof d!="boolean"&&!Sx(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const f=aC(e,h);if(!f)return;const{transitionEnd:m,transition:g,...y}=f;for(const b in y){let v=y[b];if(Array.isArray(v)){const x=u?v.length-1:0;v=v[x]}v!==null&&(a[b]=v)}for(const b in m)a[b]=m[b]}),a}const VK={useVisualState:vP({scrapeMotionValuesFromProps:bP,createRenderState:fP,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}eC(n,r,{enableHardwareAcceleration:!1},tC(t.tagName),e.transformTemplate),yP(t,n)}})},UK={useVisualState:vP({scrapeMotionValuesFromProps:rC,createRenderState:J2})};function jK(e,{forwardMotionProps:t=!1},n,r){return{...Z2(e)?VK:UK,preloadedFeatures:n,useRender:PK(t),createVisualElement:r,Component:e}}function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const xP=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Tx(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const HK=e=>t=>xP(t)&&e(t,Tx(t));function Cs(e,t,n,r){return ws(e,t,HK(n),r)}const GK=(e,t)=>n=>t(e(n)),vo=(...e)=>e.reduce(GK);function wP(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const jA=wP("dragHorizontal"),HA=wP("dragVertical");function kP(e){let t=!1;if(e==="y")t=HA();else if(e==="x")t=jA();else{const n=jA(),r=HA();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function SP(){const e=kP(!0);return e?(e(),!1):!0}class Yo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function GA(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),a=(i,s)=>{if(i.type==="touch"||SP())return;const o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&o[r](i,s)};return Cs(e.current,n,a,{passive:!e.getProps()[r]})}class qK extends Yo{mount(){this.unmount=vo(GA(this.node,!0),GA(this.node,!1))}unmount(){}}class KK extends Yo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=vo(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const IP=(e,t)=>t?e===t?!0:IP(e,t.parentElement):!1,Za=e=>e;function Bw(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Tx(n))}class XK extends Yo{constructor(){super(...arguments),this.removeStartListeners=Za,this.removeEndListeners=Za,this.removeAccessibleListeners=Za,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Cs(window,"pointerup",(o,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();IP(this.node.current,o.target)?c&&c(o,l):u&&u(o,l)},{passive:!(r.onTap||r.onPointerUp)}),s=Cs(window,"pointercancel",(o,l)=>this.cancelPress(o,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=vo(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=o=>{o.key!=="Enter"||!this.checkPressEnd()||Bw("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=ws(this.node.current,"keyup",s),Bw("down",(o,l)=>{this.startPress(o,l)})},n=ws(this.node.current,"keydown",t),r=()=>{this.isPressing&&Bw("cancel",(i,s)=>this.cancelPress(i,s))},a=ws(this.node.current,"blur",r);this.removeAccessibleListeners=vo(n,a)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!SP()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=Cs(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ws(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vo(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dS=new WeakMap,Ww=new WeakMap,YK=e=>{const t=dS.get(e.target);t&&t(e)},ZK=e=>{e.forEach(YK)};function QK({root:e,...t}){const n=e||document;Ww.has(n)||Ww.set(n,{});const r=Ww.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(ZK,{root:e,...t})),r[a]}function JK(e,t,n){const r=QK(t);return dS.set(e,n),r.observe(e),()=>{dS.delete(e),r.unobserve(e)}}const eX={some:0,all:1};class tX extends Yo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i,fallback:s=!0}=t;if(typeof IntersectionObserver>"u"){s&&this.viewportFallback();return}const o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:eX[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),h=u?d:p;h&&h(c)};return JK(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nX(t,n))&&this.startObserver()}unmount(){}}function nX({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rX={inView:{Feature:tX},tap:{Feature:XK},focus:{Feature:KK},hover:{Feature:qK}};function CP(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r/^\-?\d*\.?\d+$/.test(e),iX=e=>/^0[^.\s]+$/.test(e),_s={delta:0,timestamp:0},_P=1/60*1e3,sX=typeof performance<"u"?()=>performance.now():()=>Date.now(),TP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(sX()),_P);function oX(e){let t=[],n=[],r=0,a=!1,i=!1;const s=new WeakSet,o={schedule:(l,c=!1,u=!1)=>{const d=u&&a,p=d?t:n;return c&&s.add(l),p.indexOf(l)===-1&&(p.push(l),d&&a&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),s.delete(l)},process:l=>{if(a){i=!0;return}if(a=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c(e[t]=oX(()=>$m=!0),e),{}),kr=Ig.reduce((e,t)=>{const n=Nx[t];return e[t]=(r,a=!1,i=!1)=>($m||cX(),n.schedule(r,a,i)),e},{}),Do=Ig.reduce((e,t)=>(e[t]=Nx[t].cancel,e),{}),Vw=Ig.reduce((e,t)=>(e[t]=()=>Nx[t].process(_s),e),{}),uX=e=>Nx[e].process(_s),NP=e=>{$m=!1,_s.delta=pS?_P:Math.max(Math.min(e-_s.timestamp,lX),1),_s.timestamp=e,hS=!0,Ig.forEach(uX),hS=!1,$m&&(pS=!1,TP(NP))},cX=()=>{$m=!0,pS=!0,hS||TP(NP)};function iC(e,t){e.indexOf(t)===-1&&e.push(t)}function sC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oC{constructor(){this.subscriptions=[]}add(t){return iC(this.subscriptions,t),()=>sC(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class pX{constructor(t,n={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,a=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=_s;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,kr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>kr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=dX(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oC);const r=this.events[t].add(n);return t==="change"?()=>{r(),kr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function op(e,t){return new pX(e,t)}const uC=(e,t)=>n=>!!(kg(n)&&IK.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),EP=(e,t,n)=>r=>{if(!kg(r))return r;const[a,i,s,o]=r.match(Em);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},hX=e=>sp(0,255,e),Uw={...Au,transform:e=>Math.round(hX(e))},zl={test:uC("rgb","red"),parse:EP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Uw.transform(e)+", "+Uw.transform(t)+", "+Uw.transform(n)+", "+em(Jf.transform(r))+")"};function fX(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const fS={test:uC("#"),parse:fX,transform:zl.transform},Nd={test:uC("hsl","hue"),parse:EP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(em(t))+", "+Gi.transform(em(n))+", "+em(Jf.transform(r))+")"},Dr={test:e=>zl.test(e)||fS.test(e)||Nd.test(e),parse:e=>zl.test(e)?zl.parse(e):Nd.test(e)?Nd.parse(e):fS.parse(e),transform:e=>kg(e)?e:e.hasOwnProperty("red")?zl.transform(e):Nd.transform(e)},$P="${c}",AP="${n}";function mX(e){var t,n;return isNaN(e)&&kg(e)&&(((t=e.match(Em))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cS))===null||n===void 0?void 0:n.length)||0)>0}function Pb(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const a=e.match(cS);a&&(n=a.length,e=e.replace(cS,$P),t.push(...a.map(Dr.parse)));const i=e.match(Em);return i&&(r=i.length,e=e.replace(Em,AP),t.push(...i.map(Au.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function RP(e){return Pb(e).values}function FP(e){const{values:t,numColors:n,tokenised:r}=Pb(e),a=t.length;return i=>{let s=r;for(let o=0;otypeof e=="number"?0:e;function yX(e){const t=RP(e);return FP(e)(t.map(gX))}const Mo={test:mX,parse:RP,createTransformer:FP,getAnimatableNone:yX},bX=new Set(["brightness","contrast","saturate","opacity"]);function vX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Em)||[];if(!r)return e;const a=n.replace(r,"");let i=bX.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const xX=/([a-z-]*)\(.*?\)/g,mS={...Mo,getAnimatableNone:e=>{const t=e.match(xX);return t?t.map(vX).join(" "):e}},wX={...cP,color:Dr,backgroundColor:Dr,outlineColor:Dr,fill:Dr,stroke:Dr,borderColor:Dr,borderTopColor:Dr,borderRightColor:Dr,borderBottomColor:Dr,borderLeftColor:Dr,filter:mS,WebkitFilter:mS},cC=e=>wX[e];function dC(e,t){let n=cC(e);return n!==mS&&(n=Mo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DP=e=>t=>t.test(e),kX={test:e=>e==="auto",parse:e=>e},MP=[Au,Ge,Gi,eo,_K,CK,kX],vf=e=>MP.find(DP(e)),SX=[...MP,Dr,Mo],IX=e=>SX.find(DP(e));function CX(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function _X(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ex(e,t,n){const r=e.getProps();return aC(r,t,n!==void 0?n:r.custom,CX(e),_X(e))}function TX(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,op(n))}function NX(e,t){const n=Ex(e,t);let{transitionEnd:r={},transition:a={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const o=LK(i[s]);TX(e,s,o)}}function EX(e,t,n){var r,a;const i=Object.keys(t).filter(o=>!e.hasValue(o)),s=i.length;if(s)for(let o=0;oe*1e3,MX={current:!1},pC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hC=e=>t=>1-e(1-t),fC=e=>e*e,OX=hC(fC),mC=pC(fC),sn=(e,t,n)=>-n*e+n*t+e;function jw(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,s=0;if(!t)a=i=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=jw(l,o,e+1/3),i=jw(l,o,e),s=jw(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const Hw=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},zX=[fS,zl,Nd],LX=e=>zX.find(t=>t.test(e));function qA(e){const t=LX(e);let n=t.parse(e);return t===Nd&&(n=PX(n)),n}const OP=(e,t)=>{const n=qA(e),r=qA(t),a={...n};return i=>(a.red=Hw(n.red,r.red,i),a.green=Hw(n.green,r.green,i),a.blue=Hw(n.blue,r.blue,i),a.alpha=sn(n.alpha,r.alpha,i),zl.transform(a))};function PP(e,t){return typeof e=="number"?n=>sn(e,t,n):Dr.test(e)?OP(e,t):LP(e,t)}const zP=(e,t)=>{const n=[...e],r=n.length,a=e.map((i,s)=>PP(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=PP(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}},LP=(e,t)=>{const n=Mo.createTransformer(t),r=Pb(e),a=Pb(t);return r.numColors===a.numColors&&r.numNumbers>=a.numNumbers?vo(zP(r.values,a.values),n):s=>`${s>0?t:e}`},Am=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},KA=(e,t)=>n=>sn(e,t,n);function WX(e){return typeof e=="number"?KA:typeof e=="string"?Dr.test(e)?OP:LP:Array.isArray(e)?zP:typeof e=="object"?BX:KA}function VX(e,t,n){const r=[],a=n||WX(e[0]),i=e.length-1;for(let s=0;se[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=VX(t,r,a),o=s.length,l=c=>{let u=0;if(o>1)for(;ul(sp(e[0],e[i-1],c)):l}function UX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Am(0,t,r);e.push(sn(n,1,a))}}function jX(e){const t=[0];return UX(t,e.length-1),t}function HX(e,t){return e.map(n=>n*t)}const WP=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,GX=1e-7,qX=12;function KX(e,t,n,r,a){let i,s,o=0;do s=t+(n-t)/2,i=WP(s,r,a)-e,i>0?n=s:t=s;while(Math.abs(i)>GX&&++oKX(i,0,1,e,n);return i=>i===0||i===1?i:WP(a(i),t,r)}const UP=e=>1-Math.sin(Math.acos(e)),gC=hC(UP),XX=pC(gC),jP=VP(.33,1.53,.69,.99),yC=hC(jP),YX=pC(yC),ZX=e=>(e*=2)<1?.5*yC(e):.5*(2-Math.pow(2,-10*(e-1))),QX={linear:Za,easeIn:fC,easeInOut:mC,easeOut:OX,circIn:UP,circInOut:XX,circOut:gC,backIn:yC,backInOut:YX,backOut:jP,anticipate:ZX},XA=e=>{if(Array.isArray(e)){Lb(e.length===4);const[t,n,r,a]=e;return VP(t,n,r,a)}else if(typeof e=="string")return QX[e];return e},JX=e=>Array.isArray(e)&&typeof e[0]!="number";function eY(e,t){return e.map(()=>t||mC).splice(0,e.length-1)}function gS({keyframes:e,ease:t=mC,times:n,duration:r=300}){e=[...e];const a=JX(t)?t.map(XA):XA(t),i={done:!1,value:e[0]},s=HX(n&&n.length===e.length?n:jX(e),r);function o(){return BP(s,e,{ease:Array.isArray(a)?a:eY(e,a)})}let l=o();return{next:c=>(i.value=l(c),i.done=c>=r,i),flipTarget:()=>{e.reverse(),l=o()}}}const Gw=.001,tY=.01,YA=10,nY=.05,rY=1;function aY({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let a,i;DX(e<=YA*1e3);let s=1-t;s=sp(nY,rY,s),e=sp(tY,YA,e/1e3),s<1?(a=c=>{const u=c*s,d=u*e,p=u-n,h=yS(c,s),f=Math.exp(-d);return Gw-p/h*f},i=c=>{const d=c*s*e,p=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,f=Math.exp(-d),m=yS(Math.pow(c,2),s);return(-a(c)+Gw>0?-1:1)*((p-h)*f)/m}):(a=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Gw+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const o=5/e,l=sY(a,i,o);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const iY=12;function sY(e,t,n){let r=n;for(let a=1;ae[n]!==void 0)}function uY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ZA(e,lY)&&ZA(e,oY)){const n=aY(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const cY=5;function HP({keyframes:e,restDelta:t,restSpeed:n,...r}){let a=e[0],i=e[e.length-1];const s={done:!1,value:a},{stiffness:o,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=uY(r);let h=dY,f=u?-(u/1e3):0;const m=l/(2*Math.sqrt(o*c));function g(){const y=i-a,b=Math.sqrt(o/c)/1e3,v=Math.abs(y)<5;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const x=yS(b,m);h=w=>{const k=Math.exp(-m*b*w);return i-k*((f+m*b*y)/x*Math.sin(x*w)+y*Math.cos(x*w))}}else if(m===1)h=x=>i-Math.exp(-b*x)*(y+(f+b*y)*x);else{const x=b*Math.sqrt(m*m-1);h=w=>{const k=Math.exp(-m*b*w),C=Math.min(x*w,300);return i-k*((f+m*b*y)*Math.sinh(C)+x*y*Math.cosh(C))/x}}}return g(),{next:y=>{const b=h(y);if(p)s.done=y>=d;else{let v=f;if(y!==0)if(m<1){const k=Math.max(0,y-cY);v=lC(b-h(k),y-k)}else v=0;const x=Math.abs(v)<=n,w=Math.abs(i-b)<=t;s.done=x&&w}return s.value=s.done?i:b,s},flipTarget:()=>{f=-f,[a,i]=[i,a],g()}}}HP.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const dY=e=>0;function pY({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:a=.5,modifyTarget:i}){const s=e[0],o={done:!1,value:s};let l=n*t;const c=s+l,u=i===void 0?c:i(c);return u!==c&&(l=u-s),{next:d=>{const p=-l*Math.exp(-d/r);return o.done=!(p>a||p<-a),o.value=o.done?u:u+p,o},flipTarget:()=>{}}}const hY={decay:pY,keyframes:gS,tween:gS,spring:HP};function GP(e,t,n=0){return e-t-n}function fY(e,t=0,n=0,r=!0){return r?GP(t+-e,t,n):t-(e-t)+n}function mY(e,t,n,r){return r?e>=t+n:e<=-n}const gY=e=>{const t=({delta:n})=>e(n);return{start:()=>kr.update(t,!0),stop:()=>Do.update(t)}};function Bb({duration:e,driver:t=gY,elapsed:n=0,repeat:r=0,repeatType:a="loop",repeatDelay:i=0,keyframes:s,autoplay:o=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:d,onUpdate:p,type:h="keyframes",...f}){const m=n;let g,y=0,b=e,v=!1,x=!0,w;const k=hY[s.length>2?"keyframes":h]||gS,C=s[0],T=s[s.length-1];let E={done:!1,value:C};const{needsInterpolation:R}=k;R&&R(C,T)&&(w=BP([0,100],[C,T],{clamp:!1}),s=[0,100]);const $=k({...f,duration:e,keyframes:s});function _(){y++,a==="reverse"?(x=y%2===0,n=fY(n,b,i,x)):(n=GP(n,b,i),a==="mirror"&&$.flipTarget()),v=!1,d&&d()}function O(){g&&g.stop(),u&&u()}function L(V){x||(V=-V),n+=V,v||(E=$.next(Math.max(0,n)),w&&(E.value=w(E.value)),v=x?E.done:n<=0),p&&p(E.value),v&&(y===0&&(b=b!==void 0?b:n),y{c&&c(),g&&g.stop()},set currentTime(V){n=m,L(V)},sample:V=>{n=m;const Z=e&&typeof e=="number"?Math.max(e*.5,50):50;let z=0;for(L(0);z<=V;){const G=V-z;L(Math.min(G,Z)),z+=Z}return E}}}function yY(e){return!e||Array.isArray(e)||typeof e=="string"&&qP[e]}const Mf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mf([0,.65,.55,1]),circOut:Mf([.55,0,1,.45]),backIn:Mf([.31,.01,.66,-.59]),backOut:Mf([.33,1.53,.69,.99])};function bY(e){if(e)return Array.isArray(e)?Mf(e):qP[e]}function vY(e,t,n,{delay:r=0,duration:a,repeat:i=0,repeatType:s="loop",ease:o,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:a,easing:bY(o),fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const QA={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},qw={},KP={};for(const e in QA)KP[e]=()=>(qw[e]===void 0&&(qw[e]=QA[e]()),qw[e]);function xY(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const wY=new Set(["opacity","clipPath","filter","transform"]),i0=10;function kY(e,t,{onUpdate:n,onComplete:r,...a}){if(!(KP.waapi()&&wY.has(t)&&!a.repeatDelay&&a.repeatType!=="mirror"&&a.damping!==0))return!1;let{keyframes:s,duration:o=300,elapsed:l=0,ease:c}=a;if(a.type==="spring"||!yY(a.ease)){if(a.repeat===1/0)return;const d=Bb({...a,elapsed:0});let p={done:!1,value:s[0]};const h=[];let f=0;for(;!p.done&&f<2e4;)p=d.sample(f),h.push(p.value),f+=i0;s=h,o=f-i0,c="linear"}const u=vY(e.owner.current,t,s,{...a,delay:-l,duration:o,ease:c});return u.onfinish=()=>{e.set(xY(s,a)),kr.update(()=>u.cancel()),r&&r()},{get currentTime(){return u.currentTime||0},set currentTime(d){u.currentTime=d},stop:()=>{const{currentTime:d}=u;if(d){const p=Bb({...a,autoplay:!1});e.setWithVelocity(p.sample(d-i0).value,p.sample(d).value,i0)}kr.update(()=>u.cancel())}}}function XP(e,t){const n=performance.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(Do.read(r),e(i-t))};return kr.read(r,!0),()=>Do.read(r)}function SY({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const a=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:XP(a,-t)}:a()}function IY({keyframes:e,velocity:t=0,min:n,max:r,power:a=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:o=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:p,onStop:h}){const f=e[0];let m;function g(x){return n!==void 0&&xr}function y(x){return n===void 0?r:r===void 0||Math.abs(n-x){d&&d(w),x.onUpdate&&x.onUpdate(w)},onComplete:p,onStop:h})}function v(x){b({type:"spring",stiffness:s,damping:o,restDelta:l,...x})}if(g(f))v({velocity:t,keyframes:[f,y(f)]});else{let x=a*t+f;typeof c<"u"&&(x=c(x));const w=y(x),k=w===n?-1:1;let C,T;const E=R=>{C=T,T=R,t=lC(R-C,_s.delta),(k===1&&R>w||k===-1&&Rm&&m.stop()}}const CY={type:"spring",stiffness:500,damping:25,restSpeed:10},_Y=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TY={type:"keyframes",duration:.8},NY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EY=(e,{keyframes:t})=>t.length>2?TY:$u.has(e)?e.startsWith("scale")?_Y(t[1]):CY:NY,bS=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Mo.test(t)&&!t.startsWith("url("));function $Y({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function JA(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function eR(e){return typeof e=="number"?0:dC("",e)}function YP(e,t){return e[t]||e.default||e}function AY(e,t,n,r){const a=bS(t,n);let i=r.from!==void 0?r.from:e.get();return i==="none"&&a&&typeof n=="string"?i=dC(t,n):JA(i)&&typeof n=="string"?i=eR(n):!Array.isArray(n)&&JA(n)&&typeof i=="string"&&(n=eR(i)),Array.isArray(n)?(n[0]===null&&(n[0]=i),n):[i,n]}const bC=(e,t,n,r={})=>a=>{const i=YP(r,e)||{},s=i.delay||r.delay||0;let{elapsed:o=0}=r;o=o-tb(s);const l=AY(t,e,n,i),c=l[0],u=l[l.length-1],d=bS(e,c),p=bS(e,u);let h={keyframes:l,velocity:t.getVelocity(),...i,elapsed:o,onUpdate:f=>{t.set(f),i.onUpdate&&i.onUpdate(f)},onComplete:()=>{a(),i.onComplete&&i.onComplete()}};if(!d||!p||MX.current||i.type===!1)return SY(h);if(i.type==="inertia")return IY(h);if($Y(i)||(h={...h,...EY(e,h)}),h.duration&&(h.duration=tb(h.duration)),h.repeatDelay&&(h.repeatDelay=tb(h.repeatDelay)),t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const f=kY(t,e,h);if(f)return f}return Bb(h)};function RY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>vS(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=vS(e,t,n);else{const a=typeof t=="function"?Ex(e,t,n.custom):t;r=ZP(e,a,n)}return r.then(()=>e.notify("AnimationComplete",t))}function vS(e,t,n={}){const r=Ex(e,t,n.custom);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>ZP(e,r,n):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=a;return FY(e,t,c+l,u,d,n)}:()=>Promise.resolve(),{when:o}=a;if(o){const[l,c]=o==="beforeChildren"?[i,s]:[s,i];return l().then(c)}else return Promise.all([i(),s(n.delay)])}function ZP(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...o}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=a&&e.animationState&&e.animationState.getState()[a];for(const d in o){const p=e.getValue(d),h=o[d];if(!p||h===void 0||u&&MY(u,d))continue;const f={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!p.hasAnimated){const g=e.getProps()[FX];g&&(f.elapsed=window.HandoffAppearAnimations(g,d,p,kr))}let m=p.start(bC(d,p,h,e.shouldReduceMotion&&$u.has(d)?{type:!1}:f));zb(l)&&(l.add(d),m=m.then(()=>l.remove(d))),c.push(m)}return Promise.all(c).then(()=>{s&&NX(e,s)})}function FY(e,t,n=0,r=0,a=1,i){const s=[],o=(e.variantChildren.size-1)*r,l=a===1?(c=0)=>c*r:(c=0)=>o-c*r;return Array.from(e.variantChildren).sort(DY).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(vS(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function DY(e,t){return e.sortNodePosition(t)}function MY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const OY=[...K2].reverse(),PY=K2.length;function zY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>RY(e,n,r)))}function LY(e){let t=zY(e);const n=WY();let r=!0;const a=(l,c)=>{const u=Ex(e,c);if(u){const{transition:d,transitionEnd:p,...h}=u;l={...l,...h,...p}}return l};function i(l){t=l(e)}function s(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},p=[],h=new Set;let f={},m=1/0;for(let y=0;ym&&w;const R=Array.isArray(x)?x:[x];let $=R.reduce(a,{});k===!1&&($={});const{prevResolvedValues:_={}}=v,O={..._,...$},L=B=>{E=!0,h.delete(B),v.needsAnimating[B]=!0};for(const B in O){const V=$[B],Z=_[B];f.hasOwnProperty(B)||(V!==Z?Ob(V)&&Ob(Z)?!CP(V,Z)||T?L(B):v.protectedKeys[B]=!0:V!==void 0?L(B):h.add(B):V!==void 0&&h.has(B)?L(B):v.protectedKeys[B]=!0)}v.prevProp=x,v.prevResolvedValues=$,v.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(E=!1),E&&!C&&p.push(...R.map(B=>({animation:B,options:{type:b,...l}})))}if(h.size){const y={};h.forEach(b=>{const v=e.getBaseTarget(b);v!==void 0&&(y[b]=v)}),p.push({animation:y})}let g=!!p.length;return r&&u.initial===!1&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(p):Promise.resolve()}function o(l,c,u){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var f;return(f=h.animationState)===null||f===void 0?void 0:f.setActive(l,c)}),n[l].isActive=c;const p=s(u,l);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>n}}function BY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CP(t,e):!1}function xl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WY(){return{animate:xl(!0),whileInView:xl(),whileHover:xl(),whileTap:xl(),whileDrag:xl(),whileFocus:xl(),exit:xl()}}class VY extends Yo{constructor(t){super(t),t.animationState||(t.animationState=LY(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Sx(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let UY=0;class jY extends Yo{constructor(){super(...arguments),this.id=UY++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const HY={animation:{Feature:VY},exit:{Feature:jY}},tR=(e,t)=>Math.abs(e-t);function GY(e,t){const n=tR(e.x,t.x),r=tR(e.y,t.y);return Math.sqrt(n**2+r**2)}class QP{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Xw(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,d=GY(c.offset,{x:0,y:0})>=3;if(!u&&!d)return;const{point:p}=c,{timestamp:h}=_s;this.history.push({...p,timestamp:h});const{onStart:f,onMove:m}=this.handlers;u||(f&&f(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Kw(u,this.transformPagePoint),kr.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:p}=this.handlers,h=Xw(c.type==="pointercancel"?this.lastMoveEventInfo:Kw(u,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,h),p&&p(c,h)},!xP(t))return;this.handlers=n,this.transformPagePoint=r;const a=Tx(t),i=Kw(a,this.transformPagePoint),{point:s}=i,{timestamp:o}=_s;this.history=[{...s,timestamp:o}];const{onSessionStart:l}=n;l&&l(t,Xw(i,this.history)),this.removeListeners=vo(Cs(window,"pointermove",this.handlePointerMove),Cs(window,"pointerup",this.handlePointerUp),Cs(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Do.update(this.updatePoint)}}function Kw(e,t){return t?{point:t(e.point)}:e}function nR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xw({point:e},t){return{point:e,delta:nR(e,JP(t)),offset:nR(e,qY(t)),velocity:KY(t,.1)}}function qY(e){return e[0]}function JP(e){return e[e.length-1]}function KY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=JP(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>tb(t)));)n--;if(!r)return{x:0,y:0};const i=(a.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};const s={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Aa(e){return e.max-e.min}function xS(e,t=0,n=.01){return Math.abs(e-t)<=n}function rR(e,t,n,r=.5){e.origin=r,e.originPoint=sn(t.min,t.max,e.origin),e.scale=Aa(n)/Aa(t),(xS(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=sn(n.min,n.max,e.origin)-e.originPoint,(xS(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tm(e,t,n,r){rR(e.x,t.x,n.x,r?r.originX:void 0),rR(e.y,t.y,n.y,r?r.originY:void 0)}function aR(e,t,n){e.min=n.min+t.min,e.max=e.min+Aa(t)}function XY(e,t,n){aR(e.x,t.x,n.x),aR(e.y,t.y,n.y)}function iR(e,t,n){e.min=t.min-n.min,e.max=e.min+Aa(t)}function nm(e,t,n){iR(e.x,t.x,n.x),iR(e.y,t.y,n.y)}function YY(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?sn(n,e,r.max):Math.min(e,n)),e}function sR(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZY(e,{top:t,left:n,bottom:r,right:a}){return{x:sR(e.x,n,a),y:sR(e.y,t,r)}}function oR(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Am(t.min,t.max-r,e.min):r>a&&(n=Am(e.min,e.max-a,t.min)),sp(0,1,n)}function eZ(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wS=.35;function tZ(e=wS){return e===!1?e=0:e===!0&&(e=wS),{x:lR(e,"left","right"),y:lR(e,"top","bottom")}}function lR(e,t,n){return{min:uR(e,t),max:uR(e,n)}}function uR(e,t){return typeof e=="number"?e:e[t]||0}const cR=()=>({translate:0,scale:1,origin:0,originPoint:0}),rm=()=>({x:cR(),y:cR()}),dR=()=>({min:0,max:0}),Cn=()=>({x:dR(),y:dR()});function Di(e){return[e("x"),e("y")]}function e3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nZ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rZ(e,t){if(!t)return e;const 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 Yw(e){return e===void 0||e===1}function kS({scale:e,scaleX:t,scaleY:n}){return!Yw(e)||!Yw(t)||!Yw(n)}function Il(e){return kS(e)||t3(e)||e.z||e.rotate||e.rotateX||e.rotateY}function t3(e){return pR(e.x)||pR(e.y)}function pR(e){return e&&e!=="0%"}function Wb(e,t,n){const r=e-n,a=t*r;return n+a}function hR(e,t,n,r,a){return a!==void 0&&(e=Wb(e,a,r)),Wb(e,n,r)+t}function SS(e,t=0,n=1,r,a){e.min=hR(e.min,t,n,r,a),e.max=hR(e.max,t,n,r,a)}function n3(e,{x:t,y:n}){SS(e.x,t.translate,t.scale,t.originPoint),SS(e.y,n.translate,n.scale,n.originPoint)}function aZ(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,s;for(let o=0;o1.0000000000001||e<.999999999999?e:1}function ro(e,t){e.min=e.min+t,e.max=e.max+t}function mR(e,t,[n,r,a]){const i=t[a]!==void 0?t[a]:.5,s=sn(e.min,e.max,i);SS(e,t[n],t[r],s,t.scale)}const iZ=["x","scaleX","originX"],sZ=["y","scaleY","originY"];function Ed(e,t){mR(e.x,t,iZ),mR(e.y,t,sZ)}function r3(e,t){return e3(rZ(e.getBoundingClientRect(),t))}function oZ(e,t,n){const r=r3(e,n),{scroll:a}=t;return a&&(ro(r.x,a.offset.x),ro(r.y,a.offset.y)),r}const lZ=new WeakMap;class uZ{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=l=>{this.stopAnimation(),n&&this.snapToCursor(Tx(l,"page").point)},i=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:p}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kP(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Di(f=>{let m=this.getAxisMotionValue(f).get()||0;if(Gi.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const y=g.layout.layoutBox[f];y&&(m=Aa(y)*(parseFloat(m)/100))}}this.originPoint[f]=m}),p&&p(l,c);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:p,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:f}=c;if(d&&this.currentDirection===null){this.currentDirection=cZ(f),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,f),this.updateAxis("y",c.point,f),this.visualElement.render(),h&&h(l,c)},o=(l,c)=>this.stop(l,c);this.panSession=new QP(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&i(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!s0(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=YY(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},a=this.constraints;t&&Td(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ZY(r.layoutBox,t):this.constraints=!1,this.elastic=tZ(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Di(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=eZ(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Td(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=oZ(r,a.root,this.visualElement.getTransformPagePoint());let s=QY(a.layout.layoutBox,i);if(n){const o=n(nZ(s));this.hasMutatedConstraints=!!o,o&&(s=e3(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=Di(u=>{if(!s0(u,n,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const p=a?200:1e6,h=a?40:1e7,f={type:"inertia",velocity:r?t[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,f)});return Promise.all(c).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(bC(t,r,0,n))}stopAnimation(){Di(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Di(n=>{const{drag:r}=this.getProps();if(!s0(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];i.set(t[n]-sn(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Td(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Di(s=>{const o=this.getAxisMotionValue(s);if(o){const l=o.get();a[s]=JY({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Di(s=>{if(!s0(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];o.set(sn(l,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;lZ.set(this.visualElement,this);const t=this.visualElement.current,n=Cs(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Td(l)&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),r();const s=ws(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Di(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=wS,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function s0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class dZ extends Yo{constructor(t){super(t),this.removeGroupControls=Za,this.removeListeners=Za,this.controls=new uZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Za}unmount(){this.removeGroupControls(),this.removeListeners()}}class pZ extends Yo{constructor(){super(...arguments),this.removePointerDownListener=Za}onPointerDown(t){this.session=new QP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:t,onStart:n,onMove:r,onEnd:(i,s)=>{delete this.session,a&&a(i,s)}}}mount(){this.removePointerDownListener=Cs(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function hZ(){const e=D.useContext(wg);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,a=D.useId();return D.useEffect(()=>r(a),[]),!t&&n?[!1,()=>n&&n(a)]:[!0]}function fZ(){return mZ(D.useContext(wg))}function mZ(e){return e===null?!0:e.isPresent}function gR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=gR(e,t.target.x),r=gR(e,t.target.y);return`${n}% ${r}%`}},a3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function gZ(e){const t=a3.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function IS(e,t,n=1){const[r,a]=gZ(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():uS(a)?IS(a,t,n+1):a}function yZ(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(a=>{const i=a.get();if(!uS(i))return;const s=IS(i,r);s&&a.set(s)});for(const a in t){const i=t[a];if(!uS(i))continue;const s=IS(i,r);s&&(t[a]=s,n&&n[a]===void 0&&(n[a]=i))}return{target:t,transitionEnd:n}}const yR="_$css",bZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=e.includes("var("),i=[];a&&(e=e.replace(a3,h=>(i.push(h),yR)));const s=Mo.parse(e);if(s.length>5)return r;const o=Mo.createTransformer(e),l=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+l]/=c,s[1+l]/=u;const d=sn(c,u,.5);typeof s[2+l]=="number"&&(s[2+l]/=d),typeof s[3+l]=="number"&&(s[3+l]/=d);let p=o(s);if(a){let h=0;p=p.replace(yR,()=>{const f=i[h];return h++,f})}return p}};class vZ extends Ta.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;vK(xZ),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Qf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||kr.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i3(e){const[t,n]=hZ(),r=D.useContext(Y2);return Ta.createElement(vZ,{...e,layoutGroup:r,switchLayoutGroup:D.useContext(sP),isPresent:t,safeToRemove:n})}const xZ={borderRadius:{...xf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xf,borderTopRightRadius:xf,borderBottomLeftRadius:xf,borderBottomRightRadius:xf,boxShadow:bZ};function wZ(e,t,n={}){const r=ca(e)?e:op(e);return r.start(bC("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const s3=["TopLeft","TopRight","BottomLeft","BottomRight"],kZ=s3.length,bR=e=>typeof e=="string"?parseFloat(e):e,vR=e=>typeof e=="number"||Ge.test(e);function SZ(e,t,n,r,a,i){a?(e.opacity=sn(0,n.opacity!==void 0?n.opacity:1,IZ(r)),e.opacityExit=sn(t.opacity!==void 0?t.opacity:1,0,CZ(r))):i&&(e.opacity=sn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Am(e,t,r))}function wR(e,t){e.min=t.min,e.max=t.max}function Wa(e,t){wR(e.x,t.x),wR(e.y,t.y)}function kR(e,t,n,r,a){return e-=t,e=Wb(e,1/n,r),a!==void 0&&(e=Wb(e,1/a,r)),e}function _Z(e,t=0,n=1,r=.5,a,i=e,s=e){if(Gi.test(t)&&(t=parseFloat(t),t=sn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=sn(i.min,i.max,r);e===i&&(o-=t),e.min=kR(e.min,t,n,o,a),e.max=kR(e.max,t,n,o,a)}function SR(e,t,[n,r,a],i,s){_Z(e,t[n],t[r],t[a],t.scale,i,s)}const TZ=["x","scaleX","originX"],NZ=["y","scaleY","originY"];function IR(e,t,n,r){SR(e.x,t,TZ,n?n.x:void 0,r?r.x:void 0),SR(e.y,t,NZ,n?n.y:void 0,r?r.y:void 0)}function CR(e){return e.translate===0&&e.scale===1}function l3(e){return CR(e.x)&&CR(e.y)}function CS(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function _R(e){return Aa(e.x)/Aa(e.y)}class EZ{constructor(){this.members=[]}add(t){iC(this.members,t),t.scheduleRender()}remove(t){if(sC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TR(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y;if((a||i)&&(r=`translate3d(${a}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),u&&(r+=`rotateY(${u}deg) `)}const s=e.x.scale*t.x,o=e.y.scale*t.y;return(s!==1||o!==1)&&(r+=`scale(${s}, ${o})`),r||"none"}const $Z=(e,t)=>e.depth-t.depth;class AZ{constructor(){this.children=[],this.isDirty=!1}add(t){iC(this.children,t),this.isDirty=!0}remove(t){sC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($Z),this.isDirty=!1,this.children.forEach(t)}}function RZ(e){window.MotionDebug&&window.MotionDebug.record(e)}const NR=["","X","Y","Z"],ER=1e3;let FZ=0;const Cl={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function u3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(s,o={},l=t==null?void 0:t()){this.id=FZ++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Cl.totalNodes=Cl.resolvedTargetDeltas=Cl.recalculatedProjection=0,this.nodes.forEach(OZ),this.nodes.forEach(BZ),this.nodes.forEach(WZ),this.nodes.forEach(PZ),RZ(Cl)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=s,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let c=0;cthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=XP(p,250),Qf.hasAnimatedSinceResize&&(Qf.hasAnimatedSinceResize=!1,this.nodes.forEach(AR))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||GZ,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),b=!this.targetLayout||!CS(this.targetLayout,f)||h,v=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||p&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const x={...YP(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else!p&&this.animationProgress===0&&AR(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Do.preRender(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(VZ),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const w=x/1e3;RR(d.x,s.x,w),RR(d.y,s.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nm(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jZ(this.relativeTarget,this.relativeTargetOrigin,p,w),v&&CS(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Cn()),Wa(v,this.relativeTarget)),m&&(this.animationValues=u,SZ(u,c,this.latestValues,w,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Do.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kr.update(()=>{Qf.hasAnimatedSinceResize=!0,this.currentAnimation=wZ(0,ER,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ER),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:u}=s;if(!(!o||!l||!c)){if(this!==s&&this.layout&&c&&c3(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Cn();const d=Aa(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=Aa(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}Wa(o,l),Ed(o,u),tm(this.projectionDeltaWithTransform,this.layoutCorrected,o,u)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new EZ),this.sharedNodes.get(s).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(o=!0),!o)return;const c={};for(let u=0;u{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach($R),this.root.sharedNodes.clear()}}}function DZ(e){e.updateLayout()}function MZ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Di(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],h=Aa(p);p.min=r[d].min,p.max=p.min+h}):c3(i,n.layoutBox,r)&&Di(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],h=Aa(r[d]);p.max=p.min+h});const o=rm();tm(o,r,n.layoutBox);const l=rm();s?tm(l,e.applyTransform(a,!0),n.measuredBox):tm(l,r,n.layoutBox);const c=!l3(o);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:h}=d;if(p&&h){const f=Cn();nm(f,n.layoutBox,p.layoutBox);const m=Cn();nm(m,r,h.layoutBox),CS(f,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=f,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function OZ(e){Cl.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function PZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zZ(e){e.clearSnapshot()}function $R(e){e.clearMeasurements()}function LZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AR(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function BZ(e){e.resolveTargetDelta()}function WZ(e){e.calcProjection()}function VZ(e){e.resetRotation()}function UZ(e){e.removeLeadSnapshot()}function RR(e,t,n){e.translate=sn(t.translate,0,n),e.scale=sn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function FR(e,t,n,r){e.min=sn(t.min,n.min,r),e.max=sn(t.max,n.max,r)}function jZ(e,t,n,r){FR(e.x,t.x,n.x,r),FR(e.y,t.y,n.y,r)}function HZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GZ={duration:.45,ease:[.4,0,.1,1]};function qZ(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(e.path[i].instance){n=e.path[i];break}const a=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);a&&e.mount(a,!0)}function DR(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function KZ(e){DR(e.x),DR(e.y)}function c3(e,t,n){return e==="position"||e==="preserve-aspect"&&!xS(_R(t),_R(n),.2)}const XZ=u3({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Zw={current:void 0},d3=u3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Zw.current){const e=new XZ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Zw.current=e}return Zw.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),YZ={pan:{Feature:pZ},drag:{Feature:dZ,ProjectionNode:d3,MeasureLayout:i3}},ZZ=new Set(["width","height","top","left","right","bottom","x","y"]),p3=e=>ZZ.has(e),QZ=e=>Object.keys(e).some(p3),MR=e=>e===Au||e===Ge,OR=(e,t)=>parseFloat(e.split(", ")[t]),PR=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/);if(a)return OR(a[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?OR(i[1],e):0}},JZ=new Set(["x","y","z"]),eQ=_x.filter(e=>!JZ.has(e));function tQ(e){const t=[];return eQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const zR={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:PR(4,13),y:PR(5,14)},nQ=(e,t,n)=>{const r=t.measureViewportBox(),a=t.current,i=getComputedStyle(a),{display:s}=i,o={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{o[c]=zR[c](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const u=t.getValue(c);u&&u.jump(o[c]),e[c]=zR[c](l,i)}),e},rQ=(e,t,n={},r={})=>{t={...t},r={...r};const a=Object.keys(t).filter(p3);let i=[],s=!1;const o=[];if(a.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=n[l],d=vf(u);const p=t[l];let h;if(Ob(p)){const f=p.length,m=p[0]===null?1:0;u=p[m],d=vf(u);for(let g=m;g=0?window.pageYOffset:null,c=nQ(t,e,o);return i.length&&i.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),kx&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function aQ(e,t,n,r){return QZ(t)?rQ(e,t,n,r):{target:t,transitionEnd:r}}const iQ=(e,t,n,r)=>{const a=yZ(e,t,r);return t=a.target,r=a.transitionEnd,aQ(e,t,n,r)},_S={current:null},h3={current:!1};function sQ(){if(h3.current=!0,!!kx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_S.current=e.matches;e.addListener(t),t()}else _S.current=!1}function oQ(e,t,n){const{willChange:r}=t;for(const a in t){const i=t[a],s=n[a];if(ca(i))e.addValue(a,i),zb(r)&&r.add(a);else if(ca(s))e.addValue(a,op(i,{owner:e})),zb(r)&&r.remove(a);else if(s!==i)if(e.hasValue(a)){const o=e.getValue(a);!o.hasAnimated&&o.set(i)}else{const o=e.getStaticValue(a);e.addValue(a,op(o!==void 0?o:i,{owner:e}))}}for(const a in n)t[a]===void 0&&e.removeValue(a);return t}const f3=Object.keys(Nm),lQ=f3.length,LR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],uQ=X2.length;class cQ{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>kr.render(this.render,!1,!0);const{latestValues:o,renderState:l}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=n.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=s,this.isControllingVariants=Ix(n),this.isVariantNode=iP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const d in u){const p=u[d];o[d]!==void 0&&ca(p)&&(p.set(o[d],!1),zb(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),h3.current||sQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_S.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Do.update(this.notifyUpdate),Do.render(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=$u.has(t),a=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&kr.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{a(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,a,i,s){let o,l;for(let c=0;cthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:f})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update(this.props,this.prevProps):(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=op(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,a=typeof r=="string"||typeof r=="object"?(n=aC(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ca(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class m3 extends cQ{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:a},i){let s=AX(r,t||{},this);if(a&&(n&&(n=a(n)),r&&(r=a(r)),s&&(s=a(s))),i){EX(this,r,s);const o=iQ(this,r,s,n);n=o.transitionEnd,r=o.target}return{transition:t,transitionEnd:n,...r}}}function dQ(e){return window.getComputedStyle(e)}class pQ extends m3{readValueFromInstance(t,n){if($u.has(n)){const r=cC(n);return r&&r.default||0}else{const r=dQ(t),a=(uP(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return r3(t,n)}build(t,n,r,a){Q2(t,n,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,n){return rC(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ca(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,a){mP(t,n,r,a)}}class hQ extends m3{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if($u.has(n)){const r=cC(n);return r&&r.default||0}return n=gP.has(n)?n:nC(n),t.getAttribute(n)}measureInstanceViewportBox(){return Cn()}scrapeMotionValuesFromProps(t,n){return bP(t,n)}build(t,n,r,a){eC(t,n,r,this.isSVGTag,a.transformTemplate)}renderInstance(t,n,r,a){yP(t,n,r,a)}mount(t){this.isSVGTag=tC(t.tagName),super.mount(t)}}const fQ=(e,t)=>Z2(e)?new hQ(t,{enableHardwareAcceleration:!1}):new pQ(t,{enableHardwareAcceleration:!0}),mQ={layout:{ProjectionNode:d3,MeasureLayout:i3}},gQ={...HY,...rX,...YZ,...mQ},Ws=yK((e,t)=>jK(e,t,gQ,fQ));function g3(){const e=D.useRef(!1);return Fb(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function yQ(){const e=g3(),[t,n]=D.useState(0),r=D.useCallback(()=>{e.current&&n(t+1)},[t]);return[D.useCallback(()=>kr.postRender(r),[r]),t]}class bQ extends D.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function vQ({children:e,isPresent:t}){const n=D.useId(),r=D.useRef(null),a=D.useRef({width:0,height:0,top:0,left:0});return D.useInsertionEffect(()=>{const{width:i,height:s,top:o,left:l}=a.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; @@ -52,7 +52,7 @@ function W8(e,t){for(var n=0;n")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{ek=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Of(e):""}function AQ(e){switch(e.tag){case 5:return Of(e.type);case 16:return Of("Lazy");case 13:return Of("Suspense");case 19:return Of("SuspenseList");case 0:case 2:case 15:return e=tk(e.type,!1),e;case 11:return e=tk(e.type.render,!1),e;case 1:return e=tk(e.type,!0),e;default:return""}}function AS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ad:return"Fragment";case $d:return"Portal";case NS:return"Profiler";case kC:return"StrictMode";case ES:return"Suspense";case $S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C3:return(e.displayName||"Context")+".Consumer";case I3:return(e._context.displayName||"Context")+".Provider";case SC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case IC:return t=e.displayName||null,t!==null?t:AS(e.type)||"Memo";case ao:t=e._payload,e=e._init;try{return AS(e(t))}catch{}}return null}function RQ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return AS(t);case 8:return t===kC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Oo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function T3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FQ(e){var t=T3(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u0(e){e._valueTracker||(e._valueTracker=FQ(e))}function N3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=T3(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vb(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function RS(e,t){var n=t.checked;return un({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jR(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Oo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function E3(e,t){t=t.checked,t!=null&&wC(e,"checked",t,!1)}function FS(e,t){E3(e,t);var n=Oo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?DS(e,t.type,n):t.hasOwnProperty("defaultValue")&&DS(e,t.type,Oo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HR(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function DS(e,t,n){(t!=="number"||Vb(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pf=Array.isArray;function Gd(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=c0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var am={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},DQ=["Webkit","ms","Moz","O"];Object.keys(am).forEach(function(e){DQ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),am[t]=am[e]})});function F3(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||am.hasOwnProperty(e)&&am[e]?(""+t).trim():t+"px"}function D3(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=F3(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var MQ=un({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function PS(e,t){if(t){if(MQ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(he(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(he(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(he(61))}if(t.style!=null&&typeof t.style!="object")throw Error(he(62))}}function zS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var LS=null;function CC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var BS=null,qd=null,Kd=null;function KR(e){if(e=Tg(e)){if(typeof BS!="function")throw Error(he(280));var t=e.stateNode;t&&(t=Ox(t),BS(e.stateNode,e.type,t))}}function M3(e){qd?Kd?Kd.push(e):Kd=[e]:qd=e}function O3(){if(qd){var e=qd,t=Kd;if(Kd=qd=null,KR(e),t)for(e=0;e>>=0,e===0?32:31-(GQ(e)/qQ|0)|0}var d0=64,p0=4194304;function zf(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gb(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~a;o!==0?r=zf(o):(i&=s,i!==0&&(r=zf(i)))}else s=n&~a,s!==0?r=zf(s):i!==0&&(r=zf(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bi(t),e[t]=n}function ZQ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=sm),rF=String.fromCharCode(32),aF=!1;function nz(e,t){switch(e){case"keyup":return CJ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rz(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rd=!1;function TJ(e,t){switch(e){case"compositionend":return rz(t);case"keypress":return t.which!==32?null:(aF=!0,rF);case"textInput":return e=t.data,e===rF&&aF?null:e;default:return null}}function NJ(e,t){if(Rd)return e==="compositionend"||!FC&&nz(e,t)?(e=ez(),rb=$C=ho=null,Rd=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lF(n)}}function oz(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oz(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lz(){for(var e=window,t=Vb();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vb(e.document)}return t}function DC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PJ(e){var t=lz(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oz(n.ownerDocument.documentElement,n)){if(r!==null&&DC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=uF(n,i);var s=uF(n,r);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fd=null,GS=null,lm=null,qS=!1;function cF(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qS||Fd==null||Fd!==Vb(r)||(r=Fd,"selectionStart"in r&&DC(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lm&&Bm(lm,r)||(lm=r,r=Xb(GS,"onSelect"),0Od||(e.current=JS[Od],JS[Od]=null,Od--)}function Ut(e,t){Od++,JS[Od]=e.current,e.current=t}var Po={},Ir=Jo(Po),ia=Jo(!1),au=Po;function up(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function sa(e){return e=e.childContextTypes,e!=null}function Zb(){Gt(ia),Gt(Ir)}function yF(e,t,n){if(Ir.current!==Po)throw Error(he(168));Ut(Ir,t),Ut(ia,n)}function yz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(he(108,RQ(e)||"Unknown",a));return un({},n,r)}function Qb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,au=Ir.current,Ut(Ir,e),Ut(ia,ia.current),!0}function bF(e,t,n){var r=e.stateNode;if(!r)throw Error(he(169));n?(e=yz(e,t,au),r.__reactInternalMemoizedMergedChildContext=e,Gt(ia),Gt(Ir),Ut(Ir,e)):Gt(ia),Ut(ia,n)}var ms=null,Px=!1,mk=!1;function bz(e){ms===null?ms=[e]:ms.push(e)}function XJ(e){Px=!0,bz(e)}function el(){if(!mk&&ms!==null){mk=!0;var e=0,t=Tt;try{var n=ms;for(Tt=1;e>=s,a-=s,ks=1<<32-bi(t)+a|n<T?(E=C,C=null):E=C.sibling;var R=p(y,C,v[T],x);if(R===null){C===null&&(C=E);break}e&&C&&R.alternate===null&&t(y,C),b=i(R,b,T),k===null?w=R:k.sibling=R,k=R,C=E}if(T===v.length)return n(y,C),Zt&&_l(y,T),w;if(C===null){for(;TT?(E=C,C=null):E=C.sibling;var $=p(y,C,R.value,x);if($===null){C===null&&(C=E);break}e&&C&&$.alternate===null&&t(y,C),b=i($,b,T),k===null?w=$:k.sibling=$,k=$,C=E}if(R.done)return n(y,C),Zt&&_l(y,T),w;if(C===null){for(;!R.done;T++,R=v.next())R=d(y,R.value,x),R!==null&&(b=i(R,b,T),k===null?w=R:k.sibling=R,k=R);return Zt&&_l(y,T),w}for(C=r(y,C);!R.done;T++,R=v.next())R=h(C,y,T,R.value,x),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?T:R.key),b=i(R,b,T),k===null?w=R:k.sibling=R,k=R);return e&&C.forEach(function(_){return t(y,_)}),Zt&&_l(y,T),w}function g(y,b,v,x){if(typeof v=="object"&&v!==null&&v.type===Ad&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case l0:e:{for(var w=v.key,k=b;k!==null;){if(k.key===w){if(w=v.type,w===Ad){if(k.tag===7){n(y,k.sibling),b=a(k,v.props.children),b.return=y,y=b;break e}}else if(k.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ao&&CF(w)===k.type){n(y,k.sibling),b=a(k,v.props),b.ref=_f(y,k,v),b.return=y,y=b;break e}n(y,k);break}else t(y,k);k=k.sibling}v.type===Ad?(b=Gl(v.props.children,y.mode,x,v.key),b.return=y,y=b):(x=db(v.type,v.key,v.props,null,y.mode,x),x.ref=_f(y,b,v),x.return=y,y=x)}return s(y);case $d:e:{for(k=v.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===v.containerInfo&&b.stateNode.implementation===v.implementation){n(y,b.sibling),b=a(b,v.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=Sk(v,y.mode,x),b.return=y,y=b}return s(y);case ao:return k=v._init,g(y,b,k(v._payload),x)}if(Pf(v))return f(y,b,v,x);if(wf(v))return m(y,b,v,x);v0(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,b!==null&&b.tag===6?(n(y,b.sibling),b=a(b,v),b.return=y,y=b):(n(y,b),b=kk(v,y.mode,x),b.return=y,y=b),s(y)):n(y,b)}return g}var dp=_z(!0),Tz=_z(!1),Ng={},Ki=Jo(Ng),jm=Jo(Ng),Hm=Jo(Ng);function Wl(e){if(e===Ng)throw Error(he(174));return e}function UC(e,t){switch(Ut(Hm,t),Ut(jm,e),Ut(Ki,Ng),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:OS(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=OS(t,e)}Gt(Ki),Ut(Ki,t)}function pp(){Gt(Ki),Gt(jm),Gt(Hm)}function Nz(e){Wl(Hm.current);var t=Wl(Ki.current),n=OS(t,e.type);t!==n&&(Ut(jm,e),Ut(Ki,n))}function jC(e){jm.current===e&&(Gt(Ki),Gt(jm))}var rn=Jo(0);function av(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gk=[];function HC(){for(var e=0;en?n:4,e(!0);var r=yk.transition;yk.transition={};try{e(!1),t()}finally{Tt=n,yk.transition=r}}function jz(){return ti().memoizedState}function JJ(e,t,n){var r=_o(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hz(e))Gz(t,n);else if(n=kz(e,t,n,r),n!==null){var a=Lr();vi(n,e,r,a),qz(n,t,r)}}function eee(e,t,n){var r=_o(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hz(e))Gz(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,n);if(a.hasEagerState=!0,a.eagerState=o,Ii(o,s)){var l=t.interleaved;l===null?(a.next=a,WC(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}n=kz(e,t,a,r),n!==null&&(a=Lr(),vi(n,e,r,a),qz(n,t,r))}}function Hz(e){var t=e.alternate;return e===ln||t!==null&&t===ln}function Gz(e,t){um=iv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qz(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,TC(e,n)}}var sv={readContext:ei,useCallback:fr,useContext:fr,useEffect:fr,useImperativeHandle:fr,useInsertionEffect:fr,useLayoutEffect:fr,useMemo:fr,useReducer:fr,useRef:fr,useState:fr,useDebugValue:fr,useDeferredValue:fr,useTransition:fr,useMutableSource:fr,useSyncExternalStore:fr,useId:fr,unstable_isNewReconciler:!1},tee={readContext:ei,useCallback:function(e,t){return Mi().memoizedState=[e,t===void 0?null:t],e},useContext:ei,useEffect:TF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ob(4194308,4,Lz.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ob(4194308,4,e,t)},useInsertionEffect:function(e,t){return ob(4,2,e,t)},useMemo:function(e,t){var n=Mi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=JJ.bind(null,ln,e),[r.memoizedState,e]},useRef:function(e){var t=Mi();return e={current:e},t.memoizedState=e},useState:_F,useDebugValue:YC,useDeferredValue:function(e){return Mi().memoizedState=e},useTransition:function(){var e=_F(!1),t=e[0];return e=QJ.bind(null,e[1]),Mi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ln,a=Mi();if(Zt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),tr===null)throw Error(he(349));su&30||Az(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,TF(Fz.bind(null,r,i,e),[e]),r.flags|=2048,Km(9,Rz.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mi(),t=tr.identifierPrefix;if(Zt){var n=Ss,r=ks;n=(r&~(1<<32-bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gm++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vi]=t,e[Um]=r,nL(e,t,!1,!1),t.stateNode=e;e:{switch(s=zS(n,r),n){case"dialog":Ht("cancel",e),Ht("close",e),a=r;break;case"iframe":case"object":case"embed":Ht("load",e),a=r;break;case"video":case"audio":for(a=0;afp&&(t.flags|=128,r=!0,Tf(i,!1),t.lanes=4194304)}else{if(!r)if(e=av(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Zt)return mr(t),null}else 2*vn()-i.renderingStartTime>fp&&n!==1073741824&&(t.flags|=128,r=!0,Tf(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vn(),t.sibling=null,n=rn.current,Ut(rn,r?n&1|2:n&1),t):(mr(t),null);case 22:case 23:return n_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?va&1073741824&&(mr(t),t.subtreeFlags&6&&(t.flags|=8192)):mr(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function uee(e,t){switch(OC(t),t.tag){case 1:return sa(t.type)&&Zb(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pp(),Gt(ia),Gt(Ir),HC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jC(t),null;case 13:if(Gt(rn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));cp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(rn),null;case 4:return pp(),null;case 10:return BC(t.type._context),null;case 22:case 23:return n_(),null;case 24:return null;default:return null}}var w0=!1,yr=!1,cee=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function Bd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){dn(e,t,r)}else n.current=null}function dI(e,t,n){try{n()}catch(r){dn(e,t,r)}}var OF=!1;function dee(e,t){if(KS=qb,e=lz(),DC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===a&&(o=s),p===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(XS={focusedElem:e,selectionRange:n},qb=!1,Ee=t;Ee!==null;)if(t=Ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ee=e;else for(;Ee!==null;){t=Ee;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var m=f.memoizedProps,g=f.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:pi(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(x){dn(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Ee=e;break}Ee=t.return}return f=OF,OF=!1,f}function cm(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&dI(t,n,i)}a=a.next}while(a!==r)}}function Bx(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pI(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function iL(e){var t=e.alternate;t!==null&&(e.alternate=null,iL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[Um],delete t[QS],delete t[qJ],delete t[KJ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sL(e){return e.tag===5||e.tag===3||e.tag===4}function PF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yb));else if(r!==4&&(e=e.child,e!==null))for(hI(e,t,n),e=e.sibling;e!==null;)hI(e,t,n),e=e.sibling}function fI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fI(e,t,n),e=e.sibling;e!==null;)fI(e,t,n),e=e.sibling}var sr=null,hi=!1;function Zs(e,t,n){for(n=n.child;n!==null;)oL(e,t,n),n=n.sibling}function oL(e,t,n){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(Rx,n)}catch{}switch(n.tag){case 5:yr||Bd(n,t);case 6:var r=sr,a=hi;sr=null,Zs(e,t,n),sr=r,hi=a,sr!==null&&(hi?(e=sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sr.removeChild(n.stateNode));break;case 18:sr!==null&&(hi?(e=sr,n=n.stateNode,e.nodeType===8?fk(e.parentNode,n):e.nodeType===1&&fk(e,n),zm(e)):fk(sr,n.stateNode));break;case 4:r=sr,a=hi,sr=n.stateNode.containerInfo,hi=!0,Zs(e,t,n),sr=r,hi=a;break;case 0:case 11:case 14:case 15:if(!yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&dI(n,t,s),a=a.next}while(a!==r)}Zs(e,t,n);break;case 1:if(!yr&&(Bd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){dn(n,t,o)}Zs(e,t,n);break;case 21:Zs(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,Zs(e,t,n),yr=r):Zs(e,t,n);break;default:Zs(e,t,n)}}function zF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cee),t.forEach(function(r){var a=xee.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function ci(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=s),r&=~i}if(r=a,r=vn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hee(r/1960))-r,10e?16:e,fo===null)var r=!1;else{if(e=fo,fo=null,uv=0,bt&6)throw Error(he(331));var a=bt;for(bt|=4,Ee=e.current;Ee!==null;){var i=Ee,s=i.child;if(Ee.flags&16){var o=i.deletions;if(o!==null){for(var l=0;lvn()-e_?Hl(e,0):JC|=n),oa(e,t)}function mL(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=Lr();e=Os(e,t),e!==null&&(Cg(e,t,n),oa(e,n))}function vee(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mL(e,n)}function xee(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),mL(e,n)}var gL;gL=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ia.current)na=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return na=!1,oee(e,t,n);na=!!(e.flags&131072)}else na=!1,Zt&&t.flags&1048576&&vz(t,ev,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lb(e,t),e=t.pendingProps;var a=up(t,Ir.current);Yd(t,n),a=qC(null,t,r,e,a,n);var i=KC();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sa(r)?(i=!0,Qb(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,VC(t),a.updater=zx,t.stateNode=a,a._reactInternals=t,aI(t,r,e,n),t=oI(null,t,r,!0,i,n)):(t.tag=0,Zt&&i&&MC(t),Mr(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lb(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=kee(r),e=pi(r,e),a){case 0:t=sI(null,t,r,e,n);break e;case 1:t=FF(null,t,r,e,n);break e;case 11:t=AF(null,t,r,e,n);break e;case 14:t=RF(null,t,r,pi(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),sI(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),FF(e,t,r,a,n);case 3:e:{if(Jz(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Sz(e,t),rv(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=hp(Error(he(423)),t),t=DF(e,t,r,n,a);break e}else if(r!==a){a=hp(Error(he(424)),t),t=DF(e,t,r,n,a);break e}else for(ka=So(t.stateNode.containerInfo.firstChild),Ea=t,Zt=!0,fi=null,n=Tz(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cp(),r===a){t=Ps(e,t,n);break e}Mr(e,t,r,n)}t=t.child}return t;case 5:return Nz(t),e===null&&tI(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,s=a.children,YS(r,a)?s=null:i!==null&&YS(r,i)&&(t.flags|=32),Qz(e,t),Mr(e,t,s,n),t.child;case 6:return e===null&&tI(t),null;case 13:return eL(e,t,n);case 4:return UC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dp(t,null,r,n):Mr(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),AF(e,t,r,a,n);case 7:return Mr(e,t,t.pendingProps,n),t.child;case 8:return Mr(e,t,t.pendingProps.children,n),t.child;case 12:return Mr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ut(tv,r._currentValue),r._currentValue=s,i!==null)if(Ii(i.value,s)){if(i.children===a.children&&!ia.current){t=Ps(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ts(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nI(i.return,n,t),o.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(he(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),nI(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Mr(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Yd(t,n),a=ei(a),r=r(a),t.flags|=1,Mr(e,t,r,n),t.child;case 14:return r=t.type,a=pi(r,t.pendingProps),a=pi(r.type,a),RF(e,t,r,a,n);case 15:return Yz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),lb(e,t),t.tag=1,sa(r)?(e=!0,Qb(t)):e=!1,Yd(t,n),Cz(t,r,a),aI(t,r,a,n),oI(null,t,r,!0,e,n);case 19:return tL(e,t,n);case 22:return Zz(e,t,n)}throw Error(he(156,t.tag))};function yL(e,t){return U3(e,t)}function wee(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(e,t,n,r){return new wee(e,t,n,r)}function a_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kee(e){if(typeof e=="function")return a_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===SC)return 11;if(e===IC)return 14}return 2}function To(e,t){var n=e.alternate;return n===null?(n=Ya(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function db(e,t,n,r,a,i){var s=2;if(r=e,typeof e=="function")a_(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ad:return Gl(n.children,a,i,t);case kC:s=8,a|=8;break;case NS:return e=Ya(12,n,t,a|2),e.elementType=NS,e.lanes=i,e;case ES:return e=Ya(13,n,t,a),e.elementType=ES,e.lanes=i,e;case $S:return e=Ya(19,n,t,a),e.elementType=$S,e.lanes=i,e;case _3:return Vx(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I3:s=10;break e;case C3:s=9;break e;case SC:s=11;break e;case IC:s=14;break e;case ao:s=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Ya(s,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Gl(e,t,n,r){return e=Ya(7,e,r,t),e.lanes=n,e}function Vx(e,t,n,r){return e=Ya(22,e,r,t),e.elementType=_3,e.lanes=n,e.stateNode={isHidden:!1},e}function kk(e,t,n){return e=Ya(6,e,null,t),e.lanes=n,e}function Sk(e,t,n){return t=Ya(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function See(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rk(0),this.expirationTimes=rk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rk(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function i_(e,t,n,r,a,i,s,o,l){return e=new See(e,t,n,o,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ya(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VC(i),e}function Iee(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wL)}catch(e){console.error(e)}}wL(),v3.exports=Oa;var u_=v3.exports,Eee=({children:e,containerRef:t,appendToParentPortal:n})=>{const r=t.current,a=r??(typeof window<"u"?document.body:void 0),i=D.useMemo(()=>{if(!r)return;const{ownerDocument:o}=r,l=o.createElement("div");return l&&(l.className="ui-portal"),l},[r]),[,s]=D.useState({});return wm(()=>s({}),[]),wm(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?u_.createPortal(M.jsx(b3,{value:n?i:null,children:e}),i):null},$ee=({appendToParentPortal:e,children:t})=>{const[n,r]=D.useState(null),a=D.useRef(null),[,i]=D.useState({});D.useEffect(()=>i({}),[]);const s=CQ();return wm(()=>{if(!n)return;const{ownerDocument:o}=n,l=e?s??o.body:o.body;if(!l)return;a.current=o.createElement("div"),a.current.className="ui-portal",l.appendChild(a.current),i({});const c=a.current;return()=>{l.contains(c)&&l.removeChild(c)}},[n]),a.current?u_.createPortal(M.jsx(b3,{value:a.current,children:t}),a.current):M.jsx("span",{ref:o=>o?r(o):void 0})},Eg=({containerRef:e,appendToParentPortal:t=!0,isDisabled:n,children:r})=>n?r:e?M.jsx(Eee,{containerRef:e,appendToParentPortal:t,children:r}):M.jsx($ee,{appendToParentPortal:t,children:r});Eg.className="ui-portal";Eg.selector=".ui-portal";function qx(e,t){const n=Ud(e);D.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(n,t),()=>{r&&window.clearTimeout(r)}},[t,n])}var Ui=function(){return Ui=Object.assign||function(t){for(var n,r=1,a=arguments.length;r"u")return Uee;var t=jee(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gee=EL(),qee=function(e,t,n,r){var a=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` +`+i.stack}return{value:e,source:t,stack:a,digest:null}}function xk(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function iI(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aee=typeof WeakMap=="function"?WeakMap:Map;function Kz(e,t,n){n=Ts(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lv||(lv=!0,mI=r),iI(e,t)},n}function Xz(e,t,n){n=Ts(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){iI(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){iI(e,t),typeof r!="function"&&(Co===null?Co=new Set([this]):Co.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function NF(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aee;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=bee.bind(null,e,t,n),t.then(e,e))}function EF(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $F(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ts(-1,1),t.tag=2,Io(n,t,1))),n.lanes|=1),e)}var iee=Vs.ReactCurrentOwner,na=!1;function Mr(e,t,n,r){t.child=e===null?Tz(t,null,n,r):dp(t,e.child,n,r)}function AF(e,t,n,r,a){n=n.render;var i=t.ref;return Yd(t,a),r=qC(e,t,n,r,i,a),n=KC(),e!==null&&!na?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ps(e,t,a)):(Zt&&n&&MC(t),t.flags|=1,Mr(e,t,r,a),t.child)}function RF(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!a_(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Yz(e,t,i,r,a)):(e=db(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bm,n(s,r)&&e.ref===t.ref)return Ps(e,t,a)}return t.flags|=1,e=To(i,r),e.ref=t.ref,e.return=t,t.child=e}function Yz(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Bm(i,r)&&e.ref===t.ref)if(na=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(na=!0);else return t.lanes=e.lanes,Ps(e,t,a)}return sI(e,t,n,r,a)}function Zz(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(Wd,va),va|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ut(Wd,va),va|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ut(Wd,va),va|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ut(Wd,va),va|=r;return Mr(e,t,a,n),t.child}function Qz(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sI(e,t,n,r,a){var i=sa(n)?au:Ir.current;return i=up(t,i),Yd(t,a),n=qC(e,t,n,r,i,a),r=KC(),e!==null&&!na?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ps(e,t,a)):(Zt&&r&&MC(t),t.flags|=1,Mr(e,t,n,a),t.child)}function FF(e,t,n,r,a){if(sa(n)){var i=!0;Qb(t)}else i=!1;if(Yd(t,a),t.stateNode===null)lb(e,t),Cz(t,n,r),aI(t,n,r,a),r=!0;else if(e===null){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ei(c):(c=sa(n)?au:Ir.current,c=up(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==r||l!==c)&&IF(t,s,r,c),io=!1;var p=t.memoizedState;s.state=p,rv(t,r,s,a),l=t.memoizedState,o!==r||p!==l||ia.current||io?(typeof u=="function"&&(rI(t,n,u,r),l=t.memoizedState),(o=io||SF(t,n,o,r,p,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=o):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Sz(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:pi(t.type,o),s.props=c,d=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ei(l):(l=sa(n)?au:Ir.current,l=up(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==d||p!==l)&&IF(t,s,r,l),io=!1,p=t.memoizedState,s.state=p,rv(t,r,s,a);var f=t.memoizedState;o!==d||p!==f||ia.current||io?(typeof h=="function"&&(rI(t,n,h,r),f=t.memoizedState),(c=io||SF(t,n,c,r,p,f,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,f,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,f,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return oI(e,t,n,r,i,a)}function oI(e,t,n,r,a,i){Qz(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return a&&bF(t,n,!1),Ps(e,t,i);r=t.stateNode,iee.current=t;var o=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=dp(t,e.child,null,i),t.child=dp(t,null,o,i)):Mr(e,t,o,i),t.memoizedState=r.state,a&&bF(t,n,!0),t.child}function Jz(e){var t=e.stateNode;t.pendingContext?yF(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yF(e,t.context,!1),UC(e,t.containerInfo)}function DF(e,t,n,r,a){return cp(),PC(a),t.flags|=256,Mr(e,t,n,r),t.child}var lI={dehydrated:null,treeContext:null,retryLane:0};function uI(e){return{baseLanes:e,cachePool:null,transitions:null}}function eL(e,t,n){var r=t.pendingProps,a=rn.current,i=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(a&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Ut(rn,a&1),e===null)return tI(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Vx(s,r,0,null),e=Gl(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=uI(n),t.memoizedState=lI,e):ZC(t,s));if(a=e.memoizedState,a!==null&&(o=a.dehydrated,o!==null))return see(e,t,s,r,o,a,n);if(i){i=r.fallback,s=t.mode,a=e.child,o=a.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=To(a,l),r.subtreeFlags=a.subtreeFlags&14680064),o!==null?i=To(o,i):(i=Gl(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?uI(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=lI,r}return i=e.child,e=i.sibling,r=To(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ZC(e,t){return t=Vx({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function x0(e,t,n,r){return r!==null&&PC(r),dp(t,e.child,null,n),e=ZC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function see(e,t,n,r,a,i,s){if(n)return t.flags&256?(t.flags&=-257,r=xk(Error(he(422))),x0(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Vx({mode:"visible",children:r.children},a,0,null),i=Gl(i,a,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&dp(t,e.child,null,s),t.child.memoizedState=uI(s),t.memoizedState=lI,i);if(!(t.mode&1))return x0(e,t,s,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(he(419)),r=xk(i,r,void 0),x0(e,t,s,r)}if(o=(s&e.childLanes)!==0,na||o){if(r=tr,r!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|s)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Os(e,a),vi(r,e,a,-1))}return r_(),r=xk(Error(he(421))),x0(e,t,s,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=vee.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ka=So(a.nextSibling),Ea=t,Zt=!0,fi=null,e!==null&&(Ka[Xa++]=ks,Ka[Xa++]=Ss,Ka[Xa++]=iu,ks=e.id,Ss=e.overflow,iu=t),t=ZC(t,r.children),t.flags|=4096,t)}function MF(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),nI(e.return,t,n)}function wk(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function tL(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Mr(e,t,r.children,n),r=rn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&MF(e,n,t);else if(e.tag===19)MF(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ut(rn,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&av(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),wk(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&av(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}wk(t,!0,n,null,i);break;case"together":wk(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lb(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ou|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(he(153));if(t.child!==null){for(e=t.child,n=To(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=To(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oee(e,t,n){switch(t.tag){case 3:Jz(t),cp();break;case 5:Nz(t);break;case 1:sa(t.type)&&Qb(t);break;case 4:UC(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ut(tv,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ut(rn,rn.current&1),t.flags|=128,null):n&t.child.childLanes?eL(e,t,n):(Ut(rn,rn.current&1),e=Ps(e,t,n),e!==null?e.sibling:null);Ut(rn,rn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tL(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ut(rn,rn.current),r)break;return null;case 22:case 23:return t.lanes=0,Zz(e,t,n)}return Ps(e,t,n)}var nL,cI,rL,aL;nL=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};cI=function(){};rL=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Wl(Ki.current);var i=null;switch(n){case"input":a=RS(e,a),r=RS(e,r),i=[];break;case"select":a=un({},a,{value:void 0}),r=un({},r,{value:void 0}),i=[];break;case"textarea":a=MS(e,a),r=MS(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yb)}PS(n,r);var s;n=null;for(c in a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&a[c]!=null)if(c==="style"){var o=a[c];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Fm.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(o=a!=null?a[c]:void 0,r.hasOwnProperty(c)&&l!==o&&(l!=null||o!=null))if(c==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Fm.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Ht("scroll",e),i||o===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};aL=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tf(e,t){if(!Zt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lee(e,t,n){var r=t.pendingProps;switch(OC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(t),null;case 1:return sa(t.type)&&Zb(),mr(t),null;case 3:return r=t.stateNode,pp(),Gt(ia),Gt(Ir),HC(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(b0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fi!==null&&(bI(fi),fi=null))),cI(e,t),mr(t),null;case 5:jC(t);var a=Wl(Hm.current);if(n=t.type,e!==null&&t.stateNode!=null)rL(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(he(166));return mr(t),null}if(e=Wl(Ki.current),b0(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Vi]=t,r[Um]=i,e=(t.mode&1)!==0,n){case"dialog":Ht("cancel",r),Ht("close",r);break;case"iframe":case"object":case"embed":Ht("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vi]=t,e[Um]=r,nL(e,t,!1,!1),t.stateNode=e;e:{switch(s=zS(n,r),n){case"dialog":Ht("cancel",e),Ht("close",e),a=r;break;case"iframe":case"object":case"embed":Ht("load",e),a=r;break;case"video":case"audio":for(a=0;afp&&(t.flags|=128,r=!0,Tf(i,!1),t.lanes=4194304)}else{if(!r)if(e=av(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Zt)return mr(t),null}else 2*vn()-i.renderingStartTime>fp&&n!==1073741824&&(t.flags|=128,r=!0,Tf(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=vn(),t.sibling=null,n=rn.current,Ut(rn,r?n&1|2:n&1),t):(mr(t),null);case 22:case 23:return n_(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?va&1073741824&&(mr(t),t.subtreeFlags&6&&(t.flags|=8192)):mr(t),null;case 24:return null;case 25:return null}throw Error(he(156,t.tag))}function uee(e,t){switch(OC(t),t.tag){case 1:return sa(t.type)&&Zb(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pp(),Gt(ia),Gt(Ir),HC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jC(t),null;case 13:if(Gt(rn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));cp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(rn),null;case 4:return pp(),null;case 10:return BC(t.type._context),null;case 22:case 23:return n_(),null;case 24:return null;default:return null}}var w0=!1,yr=!1,cee=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function Bd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){dn(e,t,r)}else n.current=null}function dI(e,t,n){try{n()}catch(r){dn(e,t,r)}}var OF=!1;function dee(e,t){if(KS=qb,e=lz(),DC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===a&&(o=s),p===i&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(XS={focusedElem:e,selectionRange:n},qb=!1,Ee=t;Ee!==null;)if(t=Ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ee=e;else for(;Ee!==null;){t=Ee;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var m=f.memoizedProps,g=f.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:pi(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(he(163))}}catch(x){dn(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Ee=e;break}Ee=t.return}return f=OF,OF=!1,f}function cm(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&dI(t,n,i)}a=a.next}while(a!==r)}}function Bx(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pI(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function iL(e){var t=e.alternate;t!==null&&(e.alternate=null,iL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[Um],delete t[QS],delete t[qJ],delete t[KJ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sL(e){return e.tag===5||e.tag===3||e.tag===4}function PF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yb));else if(r!==4&&(e=e.child,e!==null))for(hI(e,t,n),e=e.sibling;e!==null;)hI(e,t,n),e=e.sibling}function fI(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fI(e,t,n),e=e.sibling;e!==null;)fI(e,t,n),e=e.sibling}var sr=null,hi=!1;function Zs(e,t,n){for(n=n.child;n!==null;)oL(e,t,n),n=n.sibling}function oL(e,t,n){if(qi&&typeof qi.onCommitFiberUnmount=="function")try{qi.onCommitFiberUnmount(Rx,n)}catch{}switch(n.tag){case 5:yr||Bd(n,t);case 6:var r=sr,a=hi;sr=null,Zs(e,t,n),sr=r,hi=a,sr!==null&&(hi?(e=sr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):sr.removeChild(n.stateNode));break;case 18:sr!==null&&(hi?(e=sr,n=n.stateNode,e.nodeType===8?fk(e.parentNode,n):e.nodeType===1&&fk(e,n),zm(e)):fk(sr,n.stateNode));break;case 4:r=sr,a=hi,sr=n.stateNode.containerInfo,hi=!0,Zs(e,t,n),sr=r,hi=a;break;case 0:case 11:case 14:case 15:if(!yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&dI(n,t,s),a=a.next}while(a!==r)}Zs(e,t,n);break;case 1:if(!yr&&(Bd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){dn(n,t,o)}Zs(e,t,n);break;case 21:Zs(e,t,n);break;case 22:n.mode&1?(yr=(r=yr)||n.memoizedState!==null,Zs(e,t,n),yr=r):Zs(e,t,n);break;default:Zs(e,t,n)}}function zF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cee),t.forEach(function(r){var a=xee.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function ci(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=s),r&=~i}if(r=a,r=vn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hee(r/1960))-r,10e?16:e,fo===null)var r=!1;else{if(e=fo,fo=null,uv=0,bt&6)throw Error(he(331));var a=bt;for(bt|=4,Ee=e.current;Ee!==null;){var i=Ee,s=i.child;if(Ee.flags&16){var o=i.deletions;if(o!==null){for(var l=0;lvn()-e_?Hl(e,0):JC|=n),oa(e,t)}function mL(e,t){t===0&&(e.mode&1?(t=p0,p0<<=1,!(p0&130023424)&&(p0=4194304)):t=1);var n=Lr();e=Os(e,t),e!==null&&(Cg(e,t,n),oa(e,n))}function vee(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mL(e,n)}function xee(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(he(314))}r!==null&&r.delete(t),mL(e,n)}var gL;gL=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ia.current)na=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return na=!1,oee(e,t,n);na=!!(e.flags&131072)}else na=!1,Zt&&t.flags&1048576&&vz(t,ev,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lb(e,t),e=t.pendingProps;var a=up(t,Ir.current);Yd(t,n),a=qC(null,t,r,e,a,n);var i=KC();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sa(r)?(i=!0,Qb(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,VC(t),a.updater=zx,t.stateNode=a,a._reactInternals=t,aI(t,r,e,n),t=oI(null,t,r,!0,i,n)):(t.tag=0,Zt&&i&&MC(t),Mr(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lb(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=kee(r),e=pi(r,e),a){case 0:t=sI(null,t,r,e,n);break e;case 1:t=FF(null,t,r,e,n);break e;case 11:t=AF(null,t,r,e,n);break e;case 14:t=RF(null,t,r,pi(r.type,e),n);break e}throw Error(he(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),sI(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),FF(e,t,r,a,n);case 3:e:{if(Jz(t),e===null)throw Error(he(387));r=t.pendingProps,i=t.memoizedState,a=i.element,Sz(e,t),rv(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=hp(Error(he(423)),t),t=DF(e,t,r,n,a);break e}else if(r!==a){a=hp(Error(he(424)),t),t=DF(e,t,r,n,a);break e}else for(ka=So(t.stateNode.containerInfo.firstChild),Ea=t,Zt=!0,fi=null,n=Tz(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cp(),r===a){t=Ps(e,t,n);break e}Mr(e,t,r,n)}t=t.child}return t;case 5:return Nz(t),e===null&&tI(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,s=a.children,YS(r,a)?s=null:i!==null&&YS(r,i)&&(t.flags|=32),Qz(e,t),Mr(e,t,s,n),t.child;case 6:return e===null&&tI(t),null;case 13:return eL(e,t,n);case 4:return UC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dp(t,null,r,n):Mr(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),AF(e,t,r,a,n);case 7:return Mr(e,t,t.pendingProps,n),t.child;case 8:return Mr(e,t,t.pendingProps.children,n),t.child;case 12:return Mr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Ut(tv,r._currentValue),r._currentValue=s,i!==null)if(Ii(i.value,s)){if(i.children===a.children&&!ia.current){t=Ps(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Ts(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nI(i.return,n,t),o.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(he(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),nI(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Mr(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Yd(t,n),a=ei(a),r=r(a),t.flags|=1,Mr(e,t,r,n),t.child;case 14:return r=t.type,a=pi(r,t.pendingProps),a=pi(r.type,a),RF(e,t,r,a,n);case 15:return Yz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:pi(r,a),lb(e,t),t.tag=1,sa(r)?(e=!0,Qb(t)):e=!1,Yd(t,n),Cz(t,r,a),aI(t,r,a,n),oI(null,t,r,!0,e,n);case 19:return tL(e,t,n);case 22:return Zz(e,t,n)}throw Error(he(156,t.tag))};function yL(e,t){return U3(e,t)}function wee(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(e,t,n,r){return new wee(e,t,n,r)}function a_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kee(e){if(typeof e=="function")return a_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===SC)return 11;if(e===IC)return 14}return 2}function To(e,t){var n=e.alternate;return n===null?(n=Ya(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function db(e,t,n,r,a,i){var s=2;if(r=e,typeof e=="function")a_(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ad:return Gl(n.children,a,i,t);case kC:s=8,a|=8;break;case NS:return e=Ya(12,n,t,a|2),e.elementType=NS,e.lanes=i,e;case ES:return e=Ya(13,n,t,a),e.elementType=ES,e.lanes=i,e;case $S:return e=Ya(19,n,t,a),e.elementType=$S,e.lanes=i,e;case _3:return Vx(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I3:s=10;break e;case C3:s=9;break e;case SC:s=11;break e;case IC:s=14;break e;case ao:s=16,r=null;break e}throw Error(he(130,e==null?e:typeof e,""))}return t=Ya(s,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Gl(e,t,n,r){return e=Ya(7,e,r,t),e.lanes=n,e}function Vx(e,t,n,r){return e=Ya(22,e,r,t),e.elementType=_3,e.lanes=n,e.stateNode={isHidden:!1},e}function kk(e,t,n){return e=Ya(6,e,null,t),e.lanes=n,e}function Sk(e,t,n){return t=Ya(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function See(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rk(0),this.expirationTimes=rk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rk(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function i_(e,t,n,r,a,i,s,o,l){return e=new See(e,t,n,o,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ya(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},VC(i),e}function Iee(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wL)}catch(e){console.error(e)}}wL(),v3.exports=Oa;var u_=v3.exports,Eee=({children:e,containerRef:t,appendToParentPortal:n})=>{const r=t.current,a=r??(typeof window<"u"?document.body:void 0),i=D.useMemo(()=>{if(!r)return;const{ownerDocument:o}=r,l=o.createElement("div");return l&&(l.className="ui-portal"),l},[r]),[,s]=D.useState({});return wm(()=>s({}),[]),wm(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?u_.createPortal(M.jsx(b3,{value:n?i:null,children:e}),i):null},$ee=({appendToParentPortal:e,children:t})=>{const[n,r]=D.useState(null),a=D.useRef(null),[,i]=D.useState({});D.useEffect(()=>i({}),[]);const s=CQ();return wm(()=>{if(!n)return;const{ownerDocument:o}=n,l=e?s??o.body:o.body;if(!l)return;a.current=o.createElement("div"),a.current.className="ui-portal",l.appendChild(a.current),i({});const c=a.current;return()=>{l.contains(c)&&l.removeChild(c)}},[n]),a.current?u_.createPortal(M.jsx(b3,{value:a.current,children:t}),a.current):M.jsx("span",{ref:o=>o?r(o):void 0})},Eg=({containerRef:e,appendToParentPortal:t=!0,isDisabled:n,children:r})=>n?r:e?M.jsx(Eee,{containerRef:e,appendToParentPortal:t,children:r}):M.jsx($ee,{appendToParentPortal:t,children:r});Eg.className="ui-portal";Eg.selector=".ui-portal";var qx=(e,t)=>{const n=Ud(e);D.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(n,t),()=>{r&&window.clearTimeout(r)}},[t,n])},Ui=function(){return Ui=Object.assign||function(t){for(var n,r=1,a=arguments.length;r"u")return Uee;var t=jee(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gee=EL(),qee=function(e,t,n,r){var a=e.left,i=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` .`.concat(Ree,` { overflow: hidden `).concat(r,`; padding-right: `).concat(o,"px ").concat(r,`; diff --git a/docs/index.html b/docs/index.html index 080086b..160affc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,7 +6,7 @@ Face Masking App - +