@latte-macchiat-io/latte-vanilla-components 0.0.154 → 0.0.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
@@ -12,5 +12,5 @@
|
|
12
12
|
*
|
13
13
|
* This source code is licensed under the MIT license found in the
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
15
|
-
*/var oi;function Tl(){return oi||(oi=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function w(E){return typeof E=="string"||typeof E=="function"||E===r||E===c||E===s||E===i||E===d||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===p||E.$$typeof===h||E.$$typeof===o||E.$$typeof===a||E.$$typeof===u||E.$$typeof===x||E.$$typeof===v||E.$$typeof===S||E.$$typeof===g)}function A(E){if(typeof E=="object"&&E!==null){var ot=E.$$typeof;switch(ot){case e:var wt=E.type;switch(wt){case l:case c:case r:case s:case i:case d:return wt;default:var Gt=wt&&wt.$$typeof;switch(Gt){case a:case u:case p:case h:case o:return Gt;default:return ot}}case n:return ot}}}var m=l,R=c,M=a,y=o,b=e,T=u,C=r,D=p,W=h,tt=n,et=s,H=i,_=d,N=!1;function st(E){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),nt(E)||A(E)===l}function nt(E){return A(E)===c}function _t(E){return A(E)===a}function Lt(E){return A(E)===o}function yt(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function pt(E){return A(E)===u}function Ot(E){return A(E)===r}function dt(E){return A(E)===p}function $t(E){return A(E)===h}function vt(E){return A(E)===n}function bt(E){return A(E)===s}function Wt(E){return A(E)===i}function qt(E){return A(E)===d}F.AsyncMode=m,F.ConcurrentMode=R,F.ContextConsumer=M,F.ContextProvider=y,F.Element=b,F.ForwardRef=T,F.Fragment=C,F.Lazy=D,F.Memo=W,F.Portal=tt,F.Profiler=et,F.StrictMode=H,F.Suspense=_,F.isAsyncMode=st,F.isConcurrentMode=nt,F.isContextConsumer=_t,F.isContextProvider=Lt,F.isElement=yt,F.isForwardRef=pt,F.isFragment=Ot,F.isLazy=dt,F.isMemo=$t,F.isPortal=vt,F.isProfiler=bt,F.isStrictMode=Wt,F.isSuspense=qt,F.isValidElementType=w,F.typeOf=A}()),F}var ai;function Cl(){return ai||(ai=1,process.env.NODE_ENV==="production"?He.exports=wl():He.exports=Tl()),He.exports}var En,li;function Pl(){if(li)return En;li=1;var t=Cl(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function o(p){return t.isMemo(p)?i:s[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,g,x){if(typeof g!="string"){if(f){var v=d(g);v&&v!==f&&h(p,v,x)}var S=l(g);c&&(S=S.concat(c(g)));for(var w=o(p),A=o(g),m=0;m<S.length;++m){var R=S[m];if(!n[R]&&!(x&&x[R])&&!(A&&A[R])&&!(w&&w[R])){var M=u(g,R);try{a(p,R,M)}catch{}}}}return p}return En=h,En}Pl();var Al=!0;function Vl(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Ws=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||Al===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Rl=function(e,n,r){Ws(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function El(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Ml={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kl=/[A-Z]|^ms/g,Dl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qs=function(e){return e.charCodeAt(1)===45},ci=function(e){return e!=null&&typeof e!="boolean"},Mn=dl(function(t){return qs(t)?t:t.replace(kl,"-$&").toLowerCase()}),ui=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Dl,function(r,i,s){return Ct={name:i,styles:s,next:Ct},i})}return Ml[e]!==1&&!qs(e)&&typeof n=="number"&&n!==0?n+"px":n};function _e(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Ct={name:i.name,styles:i.styles,next:Ct},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Ct={name:o.name,styles:o.styles,next:Ct},o=o.next;var a=s.styles+";";return a}return _l(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,_e(t,e,c)}break}}var u=n;return u}function _l(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=_e(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;ci(a)&&(r+=Mn(s)+":"+ui(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var l=0;l<o.length;l++)ci(o[l])&&(r+=Mn(s)+":"+ui(s,o[l])+";");else{var c=_e(t,e,o);switch(s){case"animation":case"animationName":{r+=Mn(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var di=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function Ll(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";Ct=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=_e(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=_e(n,e,t[a]),r){var l=s;i+=l[a]}di.lastIndex=0;for(var c="",u;(u=di.exec(i))!==null;)c+="-"+u[1];var d=El(i)+c;return{name:d,styles:i,next:Ct}}var Ol=function(e){return e()},$l=lt.useInsertionEffect?lt.useInsertionEffect:!1,Fl=$l||Ol,Gs=lt.createContext(typeof HTMLElement<"u"?bl({key:"css"}):null);Gs.Provider;var Bl=function(e){return P.forwardRef(function(n,r){var i=P.useContext(Gs);return e(n,i,r)})},Il=lt.createContext({}),wn={}.hasOwnProperty,Zn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Hs=function(e,n){var r={};for(var i in n)wn.call(n,i)&&(r[i]=n[i]);return r[Zn]=e,r},Nl=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Ws(n,r,i),Fl(function(){return Rl(n,r,i)}),null},jl=Bl(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[Zn],s=[r],o="";typeof t.className=="string"?o=Vl(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=Ll(s,void 0,lt.useContext(Il));o+=e.key+"-"+a.name;var l={};for(var c in t)wn.call(t,c)&&c!=="css"&&c!==Zn&&(l[c]=t[c]);return l.className=o,n&&(l.ref=n),lt.createElement(lt.Fragment,null,lt.createElement(Nl,{cache:e,serialized:a,isStringTag:typeof i=="string"}),lt.createElement(i,l))}),Ks=jl,Ul=Me.Fragment,V=function(e,n,r){return wn.call(n,"css")?Me.jsx(Ks,Hs(e,n),r):Me.jsx(e,n,r)},ht=function(e,n,r){return wn.call(n,"css")?Me.jsxs(Ks,Hs(e,n),r):Me.jsxs(e,n,r)};function zl(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function B(t,e){var n={};{var r=t;for(var i in r){var s=r[i];s!=null&&(n[zl(i)]=s)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}const fi='"Goudy Bookletter 1911", sans-serif',kn='"Gill Sans", sans-serif',Ys="#FF7377",Dn="#C8AE96",X="#FCEFE6",Wl="#2E2E2E",hi="#CCCCCC",ql=" #888888",rt="#000000",_n=Ys,I={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:fi,defaultFont:kn},colors:{defaultText:rt,defaultLightText:X,defaultTitle:"",defaultLink:rt,defaultIcon:rt},backgroundColors:{modal:X,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:X},borders:{hr:`1px solid ${Dn}`,cookieConsent:`2px solid ${rt}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:[15,15,30,30],paddingTop:[15,15,30,30],paddingBottom:[15,15,30,30]},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:X,secondary:Wl,disabled:ql},backgroundColor:{primary:_n,secondary:Dn,disabled:hi},border:{width:2,style:"solid",color:{primary:_n,secondary:Dn,disabled:hi}},borderRadius:50,paddingTop:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingBottom:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingLeft:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingRight:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},transition:"all 0.3s ease-in-out"},columns:{gap:30},keyNumber:{paddingBottom:[5,5,10,10,15,15]},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:fi,fontWeight:500,color:_n,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:kn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${rt}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:kn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${rt}`},error:{color:Ys}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:X,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],overlayGap:[15,15,15,15],overlayBackgroundColor:X,toggleNavColor:rt,toggleNavOpenColor:rt,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:X},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:X,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{border:"",borderRadius:0,width:[50,50,75,75],backgroundColor:X,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:rt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},languageSwitcher:{border:"",borderRadius:0,color:rt,width:[150,150,200,200],backgroundColor:X,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},carousel:{gap:[0,0,30,60],bullet:{borderRadius:0,width:[12,12,12,12],height:[12,12,12,12],backgroundColor:X}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:rt,backgroundColor:X},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:rt,backgroundColor:X},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:rt,backgroundColor:X},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:rt,backgroundColor:X}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:X,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:rt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],actionsGap:30,actionsPaddingTop:[15,100,100,100]},nav:{gap:[15,15,15,15]},navSocial:{gap:[15,15,15,15]},navLegal:{gap:[15,15,15,15]}},ve={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function St(){const[t,e]=P.useState("mobile");return P.useEffect(()=>{function r(){const i=window.innerWidth;i>=ve["2xl"]?e("2xl"):i>=ve.xl?e("xl"):i>=ve.lg?e("lg"):i>=ve.md?e("md"):i>=ve.sm?e("sm"):e("mobile")}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),["mobile","sm","md","lg","xl","2xl"].indexOf(t)}var Gl="var(--_1h0tdm50)",Hl="var(--_1h0tdm51)",Kl="var(--_1h0tdm52)",Yl="var(--_1h0tdm53)",Xl="var(--_1h0tdm54)",Zl="var(--_1h0tdm55)",Jl="var(--_1h0tdm56)",Ql="var(--_1h0tdm57)",tc="var(--_1h0tdm58)",ec="var(--_1h0tdm59)",nc="var(--_1h0tdm5a)",rc="var(--_1h0tdm5b)",ic="var(--_1h0tdm5c)",sc="var(--_1h0tdm5d)",oc={position:"relative",display:"inline-block",color:"var(--_1h0tdm50)",border:"var(--_1h0tdm52)",cursor:"var(--_1h0tdm51)",minWidth:"var(--_1h0tdm53)",fontWeight:"var(--_1h0tdm54)",transition:"var(--_1h0tdm55)",paddingTop:"var(--_1h0tdm56)",paddingLeft:"var(--_1h0tdm57)",paddingRight:"var(--_1h0tdm58)",paddingBottom:"var(--_1h0tdm59)",pointerEvent:"var(--_1h0tdm5a)",borderRadius:"var(--_1h0tdm5b)",letterSpacing:"var(--_1h0tdm5c)",backgroundColor:"var(--_1h0tdm5d)",selectors:{"&:hover":{opacity:.5}}},un=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(un||{}),dn=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(dn||{}),Te=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(Te||{}),xr=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(xr||{});const Jn=({children:t,className:e,staticColor:n="",isPending:r=!1,isDisabled:i=!1,type:s=xr.Button,style:o=dn.Fill,size:a=Te.Medium,onClick:l=void 0,theme:c=I,variant:u=un.Primary})=>{const d=St(),{button:{color:f,backgroundColor:h,border:p,minWidth:g,fontWeight:x,transition:v,borderRadius:S,letterSpacing:w,paddingTop:A,paddingBottom:m,paddingLeft:R,paddingRight:M}}=c,y=a===Te.Large,b=a===Te.Small,T=o===dn.Outline,C=u===un.Secondary;return V("button",{type:s,onClick:l,className:e,style:B({[Zl]:v,[Yl]:`${g}px`,[Xl]:`${x}px`,[rc]:`${S}px`,[ic]:`${w}px`,[Hl]:i||r?"default":"pointer",[nc]:i||r?"none":"auto",[Gl]:T&&n?n:T&&C?h.secondary:T?h.primary:C?f.secondary:i||r?f.disabled:f.primary,[sc]:T?"transparent":n||(C?h.secondary:i?h.disabled:h.primary),[Kl]:n?`${p.width}px ${p.style} ${n}`:C?`${p.width}px ${p.style} ${p.color.secondary}`:i?`${p.width}px ${p.style} ${p.color.disabled}`:`${p.width}px ${p.style} ${p.color.primary}`,[Jl]:b?`${A.small[d]}px`:y?`${A.large[d]}px`:`${A.medium[d]}px`,[ec]:b?`${m.small[d]}px`:y?`${m.large[d]}px`:`${m.medium[d]}px`,[Ql]:b?`${R.small[d]}px`:y?`${R.large[d]}px`:`${R.medium[d]}px`,[tc]:b?`${M.small[d]}px`:y?`${M.large[d]}px`:`${M.medium[d]}px`}),children:t})};var ac="var(--_1v7zi9y0)",lc="var(--_1v7zi9y1)",cc="var(--_1v7zi9y2)",uc="var(--_1v7zi9y3)",dc="var(--_1v7zi9y4)",fc={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"var(--_1v7zi9y0)",alignItems:"var(--_1v7zi9y1)",paddingTop:"var(--_1v7zi9y2)",paddingBottom:"var(--_1v7zi9y3)",justifyContent:"var(--_1v7zi9y4)"},te=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(te||{});const hc=({children:t,className:e,theme:n=I,align:r=te.Left})=>{const i=St(),{actions:{gap:s,paddingTop:o,paddingBottom:a}}=n;return V("div",{className:e,style:B({[ac]:`${s[i]}px`,[cc]:`${o[i]}px`,[uc]:`${a[i]}px`,[lc]:r===te.Center?"center":"flex-start",[dc]:r===te.Right?"flex-end":r===te.Left?"flex-start":"center"}),children:t})};var pi={iconSize:"var(--_1slxfz50)",iconColor:"var(--_1slxfz51)"},pc={margin:"0 auto",display:"inline-block",verticalAlign:"middle"},mc="_1slxfz53";const gc={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},Nt=({icon:t="",size:e=24,iconPath:n="",color:r,theme:i=I,viewBox:s="0 0 24 24",className:o})=>V("svg",{className:o,style:B({[pi.iconSize]:`${e}px`,[pi.iconColor]:r??i.colors.defaultIcon}),viewBox:s,width:`${e}px`,height:`${e}px`,children:V("path",{className:mc,d:n||gc[t]||""})});var at={overlayOpacity:"var(--_18bqyaq0)",overlayBackgroundColor:"var(--_18bqyaq1)",overlayBlur:"var(--_18bqyaq2)",modalWidth:"var(--_18bqyaq3)",modalPaddingTop:"var(--_18bqyaq4)",modalPaddingBottom:"var(--_18bqyaq5)",modalPaddingLeft:"var(--_18bqyaq6)",modalPaddingRight:"var(--_18bqyaq7)",modalMaxWidth:"var(--_18bqyaq8)",modalMaxHeight:"var(--_18bqyaq9)",modalContentTextAlign:"var(--_18bqyaqa)",modalContentBackgroundColor:"var(--_18bqyaqb)",modalContentBorderRadius:"var(--_18bqyaqc)",modalContentBorders:"var(--_18bqyaqd)"},yc={zIndex:100,position:"fixed",width:"100%",height:"100%",selectors:{"&:before":{content:"''",position:"fixed",top:0,left:0,right:0,bottom:0,opacity:"var(--_18bqyaq0)",backgroundColor:"var(--_18bqyaq1)",backdropFilter:"blur(var(--_18bqyaq2))"}}},vc="_18bqyaqf",bc="_18bqyaqg",rn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(rn||{});const xc=({children:t,align:e=rn.Left,theme:n=I,onModalHide:r,className:i})=>{const s=St(),{global:{paddingLeft:o,paddingRight:a},modal:{overlayBlur:l,overlayOpacity:c,overlayBackgroundColor:u,border:d,width:f,borderRadius:h,backgroundColor:p,paddingTop:g,paddingLeft:x,paddingRight:v,paddingBottom:S}}=n;return V("div",{className:i,style:B({[at.overlayOpacity]:`${c}`,[at.overlayBackgroundColor]:u,[at.overlayBlur]:`${l}px`,[at.modalWidth]:`${f[s]}px`,[at.modalPaddingTop]:`${g[s]}px`,[at.modalPaddingBottom]:`${S[s]}px`,[at.modalPaddingLeft]:`${x[s]}px`,[at.modalPaddingRight]:`${v[s]}px`,[at.modalMaxWidth]:`calc(100% - ${o[s]+a[s]}px)`,[at.modalMaxHeight]:`calc(100% - ${o[s]+a[s]}px)`}),children:ht("div",{className:vc,style:B({[at.modalContentTextAlign]:e===rn.Left?"left":e===rn.Right?"right":"center",[at.modalContentBackgroundColor]:p,[at.modalContentBorderRadius]:`${h}px`,[at.modalContentBorders]:d}),children:[r&&V("button",{className:bc,onClick:r,children:V(Nt,{className:"",theme:n,icon:"close"})}),t]})})};var Ln={videoMaxHeight:"var(--_18hbdtx0)",videoOpacity:"var(--_18hbdtx1)",videoPointerEvents:"var(--_18hbdtx2)"},Sc="_18hbdtx3",wc="_18hbdtx4",Tc="_18hbdtx5",Cc="_18hbdtx6",Pc="_18hbdtx7",Ac="_18hbdtx8";const Xs=({video:t,isAutoPlay:e,poster:n="",startMuted:r=!1,onPlay:i,onClose:s,onEnded:o,showControls:a=!1,theme:l=I,hidePlayButton:c=!1,isVideoFullWidth:u=!1,isPlayingFullScreen:d=!1,className:f})=>{const h=P.useRef(null),[p,g]=P.useState(!1),[x,v]=P.useState(e||r),S=()=>{var y;i&&i(),(y=h.current)==null||y.play(),g(!0)},w=()=>{var y;s&&s(),(y=h.current)==null||y.pause(),g(!1)},A=()=>{var y;(y=h.current)==null||y.pause(),g(!1)},m=()=>{const y=!x;v(y),h.current&&(h.current.muted=y)},R=()=>{o&&o(),w()},M=y=>{y.key==="Escape"&&w()};return P.useEffect(()=>(window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)),[]),V("div",{className:f,style:B({[Ln.videoMaxHeight]:u?"100vw":"100%",[Ln.videoOpacity]:p?"0":"1",[Ln.videoPointerEvents]:p?"none":"auto"}),children:ht("div",{className:Sc,children:[V("video",{ref:h,playsInline:!0,onEnded:R,children:V("source",{src:t,type:"video/mp4"})}),n&&V("div",{className:wc,children:V("img",{src:n,alt:""})}),(!c||!e)&&V("button",{className:Tc,onClick:S,"aria-label":"Play",children:V(Nt,{className:"",icon:"play",size:50,theme:l})}),d&&V("button",{className:Pc,onClick:w,"aria-label":"Close",children:V(Nt,{className:"",icon:"close",size:28,theme:l})}),p&&a&&V("button",{className:Cc,onClick:p?A:S,"aria-label":"Pause",children:V(Nt,{className:"",icon:"pause",size:28,theme:l})}),a&&V("button",{className:Ac,onClick:m,"aria-label":"Sound",children:V(Nt,{className:"",icon:x?"volumeUp":"volumeMute",size:28,theme:l})})]})})};var Vc={imgMaxWidth:"var(--_13pkfbg0)"},Rc={};const Ec=({children:t,theme:e=I,className:n})=>V("div",{className:n,style:B({[Vc.imgMaxWidth]:"100%"}),children:t});var On={gap:"var(--_1vea7fs0)",displayItem:"var(--_1vea7fs1)",isFullWidth:"var(--_1vea7fs2)"},Mc={gap:"var(--_1vea7fs0)",display:"flex",flexWrap:"nowrap",overflow:"hidden",width:"var(--_1vea7fs2)"};function kc(){const[t,e]=P.useState({width:void 0,height:void 0});return P.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const Dc=({data:t,theme:e=I,displayItem:n=1,isFullWidth:r=!1,displayNavBullets:i=!1,displayNavButtons:s=!1,className:o})=>{const{width:a}=kc(),[l,c]=P.useState(0),u=P.useRef(null),[d,f]=P.useState(n);return P.useEffect(()=>{a&&a>1024?f(n):a&&a>768?f(Math.min(n,2)):f(1)},[a,n]),ht("div",{ref:u,className:o,style:B({[On.gap]:`${e.carousel.gap[0]}px`,[On.displayItem]:`${d}`,[On.isFullWidth]:r?"100vw":"100%"}),children:[t.map((h,p)=>V("div",{children:h},p)),s&&V("button",{onClick:()=>c(Math.max(0,l-1)),children:"Prev"}),s&&V("button",{onClick:()=>c(Math.min(t.length-1,l+1)),children:"Next"}),i&&V("div",{children:t.map((h,p)=>V("span",{onClick:()=>c(p)},p))})]})};var be={},fn=function(){return fn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fn.apply(this,arguments)},_c=function(){function t(e,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(s){i.startTime||(i.startTime=s);var o=s-i.startTime;i.remaining=i.duration-o,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(o,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(o,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(o/i.duration);var a=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=a?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(s){var o,a,l,c,u=s<0?"-":"";o=Math.abs(s).toFixed(i.options.decimalPlaces);var d=(o+="").split(".");if(a=d[0],l=d.length>1?i.options.decimal+d[1]:"",i.options.useGrouping){c="";for(var f=3,h=0,p=0,g=a.length;p<g;++p)i.options.useIndianSeparators&&p===4&&(f=2,h=1),p!==0&&h%f==0&&(c=i.options.separator+c),h++,c=a[g-p-1]+c;a=c}return i.options.numerals&&i.options.numerals.length&&(a=a.replace(/[0-9]/g,function(x){return i.options.numerals[+x]}),l=l.replace(/[0-9]/g,function(x){return i.options.numerals[+x]})),u+i.options.prefix+a+l+i.options.suffix},this.easeOutExpo=function(s,o,a,l){return a*(1-Math.pow(2,-10*s/l))*1024/1023+o},this.options=fn(fn({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof e=="string"?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(s){return s()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,r=e.el.getBoundingClientRect(),i=r.top+window.pageYOffset,s=r.top+r.height+window.pageYOffset;s<n&&s>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>s||i>n)&&!e.paused&&e.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var r=this.countDown?1:-1;this.endVal=e+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(e){var n;if(this.el){var r=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},t.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},t.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();const Lc=Object.freeze(Object.defineProperty({__proto__:null,CountUp:_c},Symbol.toStringTag,{value:"Module"})),Oc=Sl(Lc);var mi;function $c(){if(mi)return be;mi=1,Object.defineProperty(be,"__esModule",{value:!0});var t=P,e=Oc;function n(y,b){var T=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(T!=null){var C,D,W,tt,et=[],H=!0,_=!1;try{if(W=(T=T.call(y)).next,b!==0)for(;!(H=(C=W.call(T)).done)&&(et.push(C.value),et.length!==b);H=!0);}catch(N){_=!0,D=N}finally{try{if(!H&&T.return!=null&&(tt=T.return(),Object(tt)!==tt))return}finally{if(_)throw D}}return et}}function r(y,b){var T=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);b&&(C=C.filter(function(D){return Object.getOwnPropertyDescriptor(y,D).enumerable})),T.push.apply(T,C)}return T}function i(y){for(var b=1;b<arguments.length;b++){var T=arguments[b]!=null?arguments[b]:{};b%2?r(Object(T),!0).forEach(function(C){a(y,C,T[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(T)):r(Object(T)).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(T,C))})}return y}function s(y,b){if(typeof y!="object"||!y)return y;var T=y[Symbol.toPrimitive];if(T!==void 0){var C=T.call(y,b||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}function o(y){var b=s(y,"string");return typeof b=="symbol"?b:String(b)}function a(y,b,T){return b=o(b),b in y?Object.defineProperty(y,b,{value:T,enumerable:!0,configurable:!0,writable:!0}):y[b]=T,y}function l(){return l=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var T=arguments[b];for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&(y[C]=T[C])}return y},l.apply(this,arguments)}function c(y,b){if(y==null)return{};var T={},C=Object.keys(y),D,W;for(W=0;W<C.length;W++)D=C[W],!(b.indexOf(D)>=0)&&(T[D]=y[D]);return T}function u(y,b){if(y==null)return{};var T=c(y,b),C,D;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(y);for(D=0;D<W.length;D++)C=W[D],!(b.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(y,C)&&(T[C]=y[C])}return T}function d(y,b){return f(y)||n(y,b)||h(y,b)||g()}function f(y){if(Array.isArray(y))return y}function h(y,b){if(y){if(typeof y=="string")return p(y,b);var T=Object.prototype.toString.call(y).slice(8,-1);if(T==="Object"&&y.constructor&&(T=y.constructor.name),T==="Map"||T==="Set")return Array.from(y);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return p(y,b)}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var T=0,C=new Array(b);T<b;T++)C[T]=y[T];return C}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?t.useLayoutEffect:t.useEffect;function v(y){var b=t.useRef(y);return x(function(){b.current=y}),t.useCallback(function(){for(var T=arguments.length,C=new Array(T),D=0;D<T;D++)C[D]=arguments[D];return b.current.apply(void 0,C)},[])}var S=function(b,T){var C=T.decimal,D=T.decimals,W=T.duration,tt=T.easingFn,et=T.end,H=T.formattingFn,_=T.numerals,N=T.prefix,st=T.separator,nt=T.start,_t=T.suffix,Lt=T.useEasing,yt=T.useGrouping,pt=T.useIndianSeparators,Ot=T.enableScrollSpy,dt=T.scrollSpyDelay,$t=T.scrollSpyOnce,vt=T.plugin;return new e.CountUp(b,et,{startVal:nt,duration:W,decimal:C,decimalPlaces:D,easingFn:tt,formattingFn:H,numerals:_,separator:st,prefix:N,suffix:_t,plugin:vt,useEasing:Lt,useIndianSeparators:pt,useGrouping:yt,enableScrollSpy:Ot,scrollSpyDelay:dt,scrollSpyOnce:$t})},w=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],A={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},m=function(b){var T=Object.fromEntries(Object.entries(b).filter(function(ot){var wt=d(ot,2),Gt=wt[1];return Gt!==void 0})),C=t.useMemo(function(){return i(i({},A),T)},[b]),D=C.ref,W=C.startOnMount,tt=C.enableReinitialize,et=C.delay,H=C.onEnd,_=C.onStart,N=C.onPauseResume,st=C.onReset,nt=C.onUpdate,_t=u(C,w),Lt=t.useRef(),yt=t.useRef(),pt=t.useRef(!1),Ot=v(function(){return S(typeof D=="string"?D:D.current,_t)}),dt=v(function(ot){var wt=Lt.current;if(wt&&!ot)return wt;var Gt=Ot();return Lt.current=Gt,Gt}),$t=v(function(){var ot=function(){return dt(!0).start(function(){H==null||H({pauseResume:vt,reset:bt,start:qt,update:Wt})})};et&&et>0?yt.current=setTimeout(ot,et*1e3):ot(),_==null||_({pauseResume:vt,reset:bt,update:Wt})}),vt=v(function(){dt().pauseResume(),N==null||N({reset:bt,start:qt,update:Wt})}),bt=v(function(){dt().el&&(yt.current&&clearTimeout(yt.current),dt().reset(),st==null||st({pauseResume:vt,start:qt,update:Wt}))}),Wt=v(function(ot){dt().update(ot),nt==null||nt({pauseResume:vt,reset:bt,start:qt})}),qt=v(function(){bt(),$t()}),E=v(function(ot){W&&(ot&&bt(),$t())});return t.useEffect(function(){pt.current?tt&&E(!0):(pt.current=!0,E())},[tt,pt,E,et,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.formattingFn]),t.useEffect(function(){return function(){bt()}},[bt]),{start:qt,pauseResume:vt,reset:bt,update:Wt,getCountUp:dt}},R=["className","redraw","containerProps","children","style"],M=function(b){var T=b.className,C=b.redraw,D=b.containerProps,W=b.children,tt=b.style,et=u(b,R),H=t.useRef(null),_=t.useRef(!1),N=m(i(i({},et),{},{ref:H,startOnMount:typeof W!="function"||b.delay===0,enableReinitialize:!1})),st=N.start,nt=N.reset,_t=N.update,Lt=N.pauseResume,yt=N.getCountUp,pt=v(function(){st()}),Ot=v(function(vt){b.preserveValue||nt(),_t(vt)}),dt=v(function(){if(typeof b.children=="function"&&!(H.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}yt()});t.useEffect(function(){dt()},[dt]),t.useEffect(function(){_.current&&Ot(b.end)},[b.end,Ot]);var $t=C&&b;return t.useEffect(function(){C&&_.current&&pt()},[pt,C,$t]),t.useEffect(function(){!C&&_.current&&pt()},[pt,C,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.className,b.formattingFn]),t.useEffect(function(){_.current=!0},[]),typeof W=="function"?W({countUpRef:H,start:st,reset:nt,update:_t,pauseResume:Lt,getCountUp:yt}):t.createElement("span",l({className:T,ref:H,style:tt},D),typeof b.start<"u"?yt().formattingFn(b.start):"")};return be.default=M,be.useCountUp=m,be}var Fc=$c();const Bc=xl(Fc);var Qn=new Map,Ke=new WeakMap,gi=0,Ic=void 0;function Nc(t){return t?(Ke.has(t)||(gi+=1,Ke.set(t,gi.toString())),Ke.get(t)):"0"}function jc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?Nc(t.root):t[e]}`).toString()}function Uc(t){const e=jc(t);let n=Qn.get(e);if(!n){const r=new Map;let i;const s=new IntersectionObserver(o=>{o.forEach(a=>{var l;const c=a.isIntersecting&&i.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=r.get(a.target))==null||l.forEach(u=>{u(c,a)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:s,elements:r},Qn.set(e,n)}return n}function zc(t,e,n={},r=Ic){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:i,observer:s,elements:o}=Uc(n),a=o.get(t)||[];return o.has(t)||o.set(t,a),a.push(e),s.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(t),s.unobserve(t)),o.size===0&&(s.disconnect(),Qn.delete(i))}}function Wc({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:i,triggerOnce:s,skip:o,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[d,f]=lt.useState(null),h=lt.useRef(c),[p,g]=lt.useState({inView:!!a,entry:void 0});h.current=c,lt.useEffect(()=>{if(o||!d)return;let w;return w=zc(d,(A,m)=>{g({inView:A,entry:m}),h.current&&h.current(A,m),m.isIntersecting&&s&&w&&(w(),w=void 0)},{root:i,rootMargin:r,threshold:t,trackVisibility:n,delay:e},l),()=>{w&&w()}},[Array.isArray(t)?t.toString():t,d,i,r,s,o,n,l,e]);const x=(u=p.entry)==null?void 0:u.target,v=lt.useRef(void 0);!d&&x&&!s&&!o&&v.current!==x&&(v.current=x,g({inView:!!a,entry:void 0}));const S=[f,p.inView,p.entry];return S.ref=S[0],S.inView=S[1],S.entry=S[2],S}var qc={keyNumberPaddingBottom:"var(--_177g97f0)"},Gc={display:"flex",flexDirection:"column"},Hc="_177g97f1";const Kc=({label:t,suffix:e,keyNumber:n,className:r,theme:i=I})=>{const s=St(),[o,a]=Wc({threshold:.3,triggerOnce:!0}),{keyNumber:{paddingBottom:l}}=i;return ht("div",{ref:o,className:r,children:[ht("div",{className:Hc,style:B({[qc.keyNumberPaddingBottom]:`${l[s]}px`}),children:[V("span",{children:V(Bc,{end:a?n:0,duration:8})}),e]}),V("p",{children:t})]})};var yi={videoFullWidthLeft:"var(--_29n9il0)",videoFullWidthRight:"var(--_29n9il1)"},Yc={height:0,width:"100vw",overflow:"hidden",position:"relative",paddingBottom:"56.25%",left:"var(--_29n9il0)",right:"var(--_29n9il1)"};const Xc=({video:t,poster:e,className:n,isAutoPlay:r,showControls:i,startMuted:s=!1,theme:o=I})=>{const a=St(),{global:{maxWidth:l,paddingLeft:c,paddingRight:u}}=o;return V("div",{className:n,style:B({[yi.videoFullWidthLeft]:`min(calc((100vw - ${l}px) / -2), -${c[a]}px)`,[yi.videoFullWidthRight]:`min(calc((100vw - ${l}px) / -2), -${u[a]}px)`}),children:V(Xs,{video:t,theme:o,poster:e,isVideoFullWidth:!0,isAutoPlay:r,startMuted:s,showControls:i})})};var Zc={languageSwitcherWidth:"var(--_9kkynw0)"},Jc={marginLeft:"auto",marginRight:"auto",position:"relative",width:"var(--_9kkynw0)"},Qc="_9kkynw1",tu="_9kkynw2";const eu=({currentLocale:t,handleChange:e,locales:n,theme:r=I,className:i,translations:s})=>{const o=St(),{languageSwitcher:a}=r;return ht("div",{className:i,style:B({[Zc.languageSwitcherWidth]:`${a.width[o]}px`}),children:[V("div",{className:Qc,children:V(Nt,{theme:r,icon:"caret"})}),V("select",{className:tu,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((l,c)=>V("option",{value:l,disabled:l===t,children:s[l]},`locale-${c}`))})]})};var nu="var(--_1wp326d0)",ru="var(--_1wp326d1)",iu={display:"flex",backgroundColor:"var(--_1wp326d1)",flex:"1 1 auto",minHeight:"45vh",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center","@media":{"screen and (min-width: 768px)":{minHeight:"var(--_1wp326d0)"}}};const su=({children:t,className:e,theme:n=I})=>{const{main:{backgroundColor:r,minHeight:i}}=n;return V("main",{className:e,style:B({[nu]:i,[ru]:r}),children:t})};var vi={overlayBottom:"var(--xr8l1e0)",overlayTransform:"var(--xr8l1e1)"},ou="xr8l1e2";const au=({theme:t=I,isOpen:e=!1,children:n,className:r})=>(P.useEffect(()=>{const i=document.getElementsByTagName("html")[0];i.style.overflow="",e&&(i.style.overflow="hidden")},[e]),V("div",{className:`${ou} ${r}`,style:B({[vi.overlayBottom]:e?"-100vh":"100%",[vi.overlayTransform]:e?"translate(0, 0)":"translate(0, -100%)"}),children:n}));var lu={displayOnDesktop:"var(--_1c0ak730)"},cu="_1c0ak731",bi="_1c0ak732";const uu=({theme:t=I,isNavOpen:e=!1,onToggleNav:n,displayOnDesktop:r,className:i})=>{const s=()=>{window.scrollTo({top:0,behavior:"smooth"}),n()};return ht("button",{className:`${cu} ${i}`,style:B({[lu.displayOnDesktop]:r?"block":"none"}),onClick:s,"aria-label":"Toggle nav",children:[V("span",{className:bi,"data-open":e?"true":"false"}),V("span",{className:bi,"data-open":e?"true":"false"})]})};var du={isFixed:"var(--_15wg1hu0)"},fu={zIndex:30,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",position:"var(--_15wg1hu0)",backgroundColor:"var(--header-bg, white)"},hu="_15wg1hu1",pu="_15wg1hu2";const mu=({children:t,isFixed:e=!1,childrenOverlay:n,theme:r=I,hideToggleNav:i=!1,displayToggleNavOnDesktop:s=!1,className:o})=>{const[a,l]=P.useState(!1);return ht(Ul,{children:[ht("header",{className:`${hu} ${o}`,style:B({[du.isFixed]:e?"fixed":"relative"}),children:[n&&V(au,{className:"",theme:r,isOpen:a,children:n}),t,!i&&V(uu,{className:"",theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),e&&V("div",{className:pu})]})};var Jt={footerGap:"var(--fl7h880)",footerBackgroundColor:"var(--fl7h881)",footerPaddingTop:"var(--fl7h882)",footerPaddingBottom:"var(--fl7h883)",footerPaddingLeft:"var(--fl7h884)",footerPaddingRight:"var(--fl7h885)"},gu={zIndex:20,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",justifyContent:"space-between",gap:"var(--fl7h880)",backgroundColor:"var(--fl7h881)",paddingTop:"var(--fl7h882)",paddingBottom:"var(--fl7h883)",paddingLeft:"var(--fl7h884)",paddingRight:"var(--fl7h885)"};const yu=({children:t,className:e,theme:n=I})=>{const r=St(),{global:{paddingLeft:i,paddingRight:s},footer:{gap:o,backgroundColor:a,paddingTop:l,paddingBottom:c}}=n;return V("footer",{className:e,style:B({[Jt.footerGap]:`${o[r]}px`,[Jt.footerBackgroundColor]:a,[Jt.footerPaddingTop]:`${l[r]}px`,[Jt.footerPaddingBottom]:`${c[r]}px`,[Jt.footerPaddingLeft]:`${i[r]}px`,[Jt.footerPaddingRight]:`${s[r]}px`}),children:t})};var Qt={columnsGap:"var(--mx2tfy0)",columnsTextAlign:"var(--mx2tfy1)",columnsJustifyContent:"var(--mx2tfy2)",isCentered:"var(--mx2tfy3)",isInverted:"var(--mx2tfy4)",column0:"var(--mx2tfy5)",column1:"var(--mx2tfy6)",column2:"var(--mx2tfy7)",column3:"var(--mx2tfy8)"},vu={},ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ee||{});const bu=({columns:t,children:e,align:n=ee.Left,isCentered:r=!1,isInverted:i=!1,theme:s=I,className:o})=>{const a=t.reduce((l,c,u)=>(l[Qt[`column${u}`]]=`${c}%`,l),{});return V("div",{className:o,style:B({...a,[Qt.columnsGap]:`${s.columns.gap}px`,[Qt.columnsTextAlign]:n===ee.Center?"center":"left",[Qt.columnsJustifyContent]:n===ee.Right?"flex-end":n===ee.Center?"center":"flex-start",[Qt.isCentered]:r?"center":"stretch",[Qt.isInverted]:i?"row-reverse":"row"}),children:e})},Zs=P.createContext({});function Js(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Sr=P.createContext(null),Qs=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function xu(t=!0){const e=P.useContext(Sr);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=P.useId();P.useEffect(()=>{if(t)return i(s)},[t]);const o=P.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const wr=typeof window<"u",to=wr?P.useLayoutEffect:P.useEffect,ct=t=>t;let pe=ct,Et=ct;process.env.NODE_ENV!=="production"&&(pe=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Et=(t,e)=>{if(!t)throw new Error(e)});function Tr(t){let e;return()=>(e===void 0&&(e=t()),e)}const ue=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},At=t=>t*1e3,kt=t=>t/1e3,Su={skipAnimations:!1,useManualTiming:!1},Ye=["read","resolveKeyframes","update","preRender","render","postRender"];function wu(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&i?n:r;return d&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(u))}};return c}const Tu=40;function eo(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ye.reduce((v,S)=>(v[S]=wu(s),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,h=()=>{const v=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,Tu),1),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(h))},p=()=>{n=!0,r=!0,i.isProcessing||t(h)};return{schedule:Ye.reduce((v,S)=>{const w=o[S];return v[S]=(A,m=!1,R=!1)=>(n||p(),w.schedule(A,m,R)),v},{}),cancel:v=>{for(let S=0;S<Ye.length;S++)o[Ye[S]].cancel(v)},state:i,steps:o}}const{schedule:j,cancel:jt,state:K,steps:$n}=eo(typeof requestAnimationFrame<"u"?requestAnimationFrame:ct,!0),no=P.createContext({strict:!1}),xi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},de={};for(const t in xi)de[t]={isEnabled:e=>xi[t].some(n=>!!e[n])};function Cu(t){for(const e in t)de[e]={...de[e],...t[e]}}const Pu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Pu.has(t)}let ro=t=>!hn(t);function Au(t){t&&(ro=e=>e.startsWith("on")?!hn(e):t(e))}try{Au(require("@emotion/is-prop-valid").default)}catch{}function Vu(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(ro(i)||n===!0&&hn(i)||!e&&!hn(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Si=new Set;function Tn(t,e,n){t||Si.has(e)||(console.warn(e),Si.add(e))}function Ru(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Tn(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Cn=P.createContext({});function Pn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Le(t){return typeof t=="string"||Array.isArray(t)}const Cr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pr=["initial",...Cr];function An(t){return Pn(t.animate)||Pr.some(e=>Le(t[e]))}function io(t){return!!(An(t)||t.variants)}function Eu(t,e){if(An(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Le(n)?n:void 0,animate:Le(r)?r:void 0}}return t.inherit!==!1?e:{}}function Mu(t){const{initial:e,animate:n}=Eu(t,P.useContext(Cn));return P.useMemo(()=>({initial:e,animate:n}),[wi(e),wi(n)])}function wi(t){return Array.isArray(t)?t.join(" "):t}const ku=Symbol.for("motionComponentSymbol");function ne(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Du(t,e,n){return P.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):ne(n)&&(n.current=r))},[e])}const Ar=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_u="framerAppearId",so="data-"+Ar(_u),{schedule:Vr,cancel:Cm}=eo(queueMicrotask,!1),oo=P.createContext({});function Lu(t,e,n,r,i){var s,o;const{visualElement:a}=P.useContext(Cn),l=P.useContext(no),c=P.useContext(Sr),u=P.useContext(Qs).reducedMotion,d=P.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=P.useContext(oo);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Ou(d.current,n,i,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{f&&p.current&&f.update(n,c)});const g=n[so],x=P.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return to(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Vr.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),x.current=!1))}),f}function Ou(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ao(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&ne(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function ao(t){if(t)return t.options.allowProjection!==!1?t.projection:ao(t.parent)}function $u({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var s,o;t&&Cu(t);function a(c,u){let d;const f={...P.useContext(Qs),...c,layoutId:Fu(c)},{isStatic:h}=f,p=Mu(c),g=r(c,h);if(!h&&wr){Bu(f,t);const x=Iu(f);d=x.MeasureLayout,p.visualElement=Lu(i,g,f,e,x.ProjectionNode)}return ln.jsxs(Cn.Provider,{value:p,children:[d&&p.visualElement?ln.jsx(d,{visualElement:p.visualElement,...f}):null,n(i,c,Du(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=P.forwardRef(a);return l[ku]=i,l}function Fu({layoutId:t}){const e=P.useContext(Zs).id;return e&&t!==void 0?e+"-"+t:t}function Bu(t,e){const n=P.useContext(no).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?pe(!1,r):Et(!1,r)}}function Iu(t){const{drag:e,layout:n}=de;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const lo=t=>e=>typeof e=="string"&&e.startsWith(t),Rr=lo("--"),Nu=lo("var(--"),Er=t=>Nu(t)?ju.test(t.split("/*")[0].trim()):!1,ju=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oe={};function Uu(t){for(const e in t)Oe[e]=t[e],Rr(e)&&(Oe[e].isCSSVariable=!0)}const me=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zt=new Set(me);function co(t,{layout:e,layoutId:n}){return Zt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Oe[t]||t==="opacity")}const Q=t=>!!(t&&t.getVelocity),uo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Dt=(t,e,n)=>n>e?e:n<t?t:n,ge={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},$e={...ge,transform:t=>Dt(0,1,t)},Xe={...ge,default:1},Ue=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),It=Ue("deg"),Vt=Ue("%"),k=Ue("px"),zu=Ue("vh"),Wu=Ue("vw"),Ti={...Vt,parse:t=>Vt.parse(t)/100,transform:t=>Vt.transform(t*100)},qu={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,radius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,backgroundPositionX:k,backgroundPositionY:k},Gu={rotate:It,rotateX:It,rotateY:It,rotateZ:It,scale:Xe,scaleX:Xe,scaleY:Xe,scaleZ:Xe,skew:It,skewX:It,skewY:It,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:$e,originX:Ti,originY:Ti,originZ:k},Ci={...ge,transform:Math.round},Mr={...qu,...Gu,zIndex:Ci,size:k,fillOpacity:$e,strokeOpacity:$e,numOctaves:Ci},Hu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ku=me.length;function Yu(t,e,n){let r="",i=!0;for(let s=0;s<Ku;s++){const o=me[s],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=uo(a,Mr[o]);if(!l){i=!1;const u=Hu[o]||o;r+=`${u}(${c}) `}n&&(e[o]=c)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function kr(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Zt.has(l)){o=!0;continue}else if(Rr(l)){i[l]=c;continue}else{const u=uo(c,Mr[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(e.transform||(o||n?r.transform=Yu(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${c} ${u}`}}const Dr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fo(t,e,n){for(const r in e)!Q(e[r])&&!co(r,n)&&(t[r]=e[r])}function Xu({transformTemplate:t},e){return P.useMemo(()=>{const n=Dr();return kr(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Zu(t,e){const n=t.style||{},r={};return fo(r,n,t),Object.assign(r,Xu(t,e)),r}function Ju(t,e){const n={},r=Zu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Qu=["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 _r(t){return typeof t!="string"||t.includes("-")?!1:!!(Qu.indexOf(t)>-1||/[A-Z]/u.test(t))}const td={offset:"stroke-dashoffset",array:"stroke-dasharray"},ed={offset:"strokeDashoffset",array:"strokeDasharray"};function nd(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?td:ed;t[s.offset]=k.transform(-r);const o=k.transform(e),a=k.transform(n);t[s.array]=`${o} ${a}`}function Pi(t,e,n){return typeof t=="string"?t:k.transform(e+n*t)}function rd(t,e,n){const r=Pi(e,t.x,t.width),i=Pi(n,t.y,t.height);return`${r} ${i}`}function Lr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(kr(t,c,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:p}=t;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=rd(p,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&nd(f,o,a,l,!1)}const ho=()=>({...Dr(),attrs:{}}),Or=t=>typeof t=="string"&&t.toLowerCase()==="svg";function id(t,e,n,r){const i=P.useMemo(()=>{const s=ho();return Lr(s,e,Or(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};fo(s,t.style,t),i.style={...s,...i.style}}return i}function sd(t=!1){return(n,r,i,{latestValues:s},o)=>{const l=(_r(n)?id:Ju)(r,s,o,n),c=Vu(r,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:i}:{},{children:d}=r,f=P.useMemo(()=>Q(d)?d.get():d,[d]);return P.createElement(n,{...u,children:f})}}function Ai(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function $r(t,e,n,r){if(typeof e=="function"){const[i,s]=Ai(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=Ai(r);e=e(n!==void 0?n:t.custom,i,s)}return e}const tr=t=>Array.isArray(t),od=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),ad=t=>tr(t)?t[t.length-1]||0:t;function sn(t){const e=Q(t)?t.get():t;return od(e)?e.toValue():e}function ld({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,s){const o={latestValues:cd(r,i,s,t),renderState:e()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const po=t=>(e,n)=>{const r=P.useContext(Cn),i=P.useContext(Sr),s=()=>ld(t,e,r,i);return n?s():Js(s)};function cd(t,e,n,r){const i={},s=r(t,{});for(const f in s)i[f]=sn(s[f]);let{initial:o,animate:a}=t;const l=An(t),c=io(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Pn(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=$r(t,f[h]);if(p){const{transitionEnd:g,transition:x,...v}=p;for(const S in v){let w=v[S];if(Array.isArray(w)){const A=u?w.length-1:0;w=w[A]}w!==null&&(i[S]=w)}for(const S in g)i[S]=g[S]}}}return i}function Fr(t,e,n){var r;const{style:i}=t,s={};for(const o in i)(Q(i[o])||e.style&&Q(e.style[o])||co(o,t)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const ud={useVisualState:po({scrapeMotionValuesFromProps:Fr,createRenderState:Dr})};function mo(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function go(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const yo=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 vo(t,e,n,r){go(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(yo.has(i)?i:Ar(i),e.attrs[i])}function bo(t,e,n){const r=Fr(t,e,n);for(const i in t)if(Q(t[i])||Q(e[i])){const s=me.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const Vi=["x","y","width","height","cx","cy","r"],dd={useVisualState:po({scrapeMotionValuesFromProps:bo,createRenderState:ho,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in i)if(Zt.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a<Vi.length;a++){const l=Vi[a];t[l]!==e[l]&&(o=!0)}o&&j.read(()=>{mo(n,r),j.render(()=>{Lr(r,i,Or(n.tagName),t.transformTemplate),vo(n,r)})})}})};function fd(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={..._r(r)?dd:ud,preloadedFeatures:t,useRender:sd(i),createVisualElement:e,Component:r};return $u(o)}}function Fe(t,e,n){const r=t.getProps();return $r(r,e,n!==void 0?n:r.custom,t)}const hd=Tr(()=>window.ScrollTimeline!==void 0);class pd{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(hd()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class md extends pd{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Br(t,e){return t?t[e]||t.default||t:void 0}const er=2e4;function xo(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<er;)e+=n,r=t.next(e);return e>=er?1/0:e}function Ir(t){return typeof t=="function"}function Ri(t,e){t.timeline=e,t.onfinish=null}const Nr=t=>Array.isArray(t)&&typeof t[0]=="number",gd={linearEasing:void 0};function yd(t,e){const n=Tr(t);return()=>{var r;return(r=gd[e])!==null&&r!==void 0?r:n()}}const pn=yd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),So=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=t(ue(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function wo(t){return!!(typeof t=="function"&&pn()||!t||typeof t=="string"&&(t in nr||pn())||Nr(t)||Array.isArray(t)&&t.every(wo))}const Se=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,nr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Se([0,.65,.55,1]),circOut:Se([.55,0,1,.45]),backIn:Se([.31,.01,.66,-.59]),backOut:Se([.33,1.53,.69,.99])};function To(t,e){if(t)return typeof t=="function"&&pn()?So(t,e):Nr(t)?Se(t):Array.isArray(t)?t.map(n=>To(n,e)||nr.easeOut):nr[t]}const xt={x:!1,y:!1};function Co(){return xt.x||xt.y}function Po(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function Ao(t,e){const n=Po(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Ei(t){return!(t.pointerType==="touch"||Co())}function vd(t,e,n={}){const[r,i,s]=Ao(t,n),o=a=>{if(!Ei(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ei(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}function mn(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const Vo=(t,e)=>e?t===e?!0:Vo(t,e.parentElement):!1,jr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,bd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xd(t){return bd.has(t.tagName)||t.tabIndex!==-1}const we=new WeakSet;function Mi(t){return e=>{e.key==="Enter"&&t(e)}}function Fn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sd=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Mi(()=>{if(we.has(n))return;Fn(n,"down");const i=Mi(()=>{Fn(n,"up")}),s=()=>Fn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function ki(t){return jr(t)&&!Co()}function wd(t,e,n={}){const[r,i,s]=Ao(t,n),o=a=>{const l=a.currentTarget;if(!l||!ki(a)||we.has(l))return;we.add(l),mn(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",d),l.removeEventListener("pointercancel",f),mn(h,"release"),!(!ki(h)||!we.has(l))&&(we.delete(l),typeof c=="function"&&c(h,{success:p}))},d=h=>{(h.isTrusted?Td(h,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(h,!1):u(h,!(l instanceof Element)||Vo(l,h.target))},f=h=>{u(h,!1)};l.addEventListener("pointerup",d,i),l.addEventListener("pointercancel",f,i),l.addEventListener("lostpointercapture",f,i)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!xd(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,i),l&&a.addEventListener("focus",c=>Sd(c,i),i)}),s}function Td(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Cd(t){return t==="x"||t==="y"?xt[t]?null:(xt[t]=!0,()=>{xt[t]=!1}):xt.x||xt.y?null:(xt.x=xt.y=!0,()=>{xt.x=xt.y=!1})}const Ro=new Set(["width","height","top","left","right","bottom",...me]);let on;function Pd(){on=void 0}const Rt={now:()=>(on===void 0&&Rt.set(K.isProcessing||Su.useManualTiming?K.timestamp:performance.now()),on),set:t=>{on=t,queueMicrotask(Pd)}};function Ur(t,e){t.indexOf(e)===-1&&t.push(e)}function zr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Wr{constructor(){this.subscriptions=[]}add(e){return Ur(this.subscriptions,e),()=>zr(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Eo(t,e){return e?t*(1e3/e):0}const Di=30,Ad=t=>!isNaN(parseFloat(t));class Vd{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Rt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Rt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ad(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Tn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Wr);const r=this.events[e].add(n);return e==="change"?()=>{r(),j.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Di)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Di);return Eo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Be(t,e){return new Vd(t,e)}function Rd(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Be(n))}function qr(t,e){const n=Fe(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=ad(s[o]);Rd(t,o,a)}}function Ed(t){return!!(Q(t)&&t.add)}function rr(t,e){const n=t.getValue("willChange");if(Ed(n))return n.add(e)}function Mo(t){return t.props[so]}const ko=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Md=1e-7,kd=12;function Dd(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=ko(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>Md&&++a<kd);return o}function ze(t,e,n,r){if(t===e&&n===r)return ct;const i=s=>Dd(s,0,1,t,n);return s=>s===0||s===1?s:ko(i(s),e,r)}const Do=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_o=t=>e=>1-t(1-e),Lo=ze(.33,1.53,.69,.99),Gr=_o(Lo),Oo=Do(Gr),$o=t=>(t*=2)<1?.5*Gr(t):.5*(2-Math.pow(2,-10*(t-1))),Hr=t=>1-Math.sin(Math.acos(t)),Fo=_o(Hr),Bo=Do(Hr),Io=t=>/^0[^.\s]+$/u.test(t);function _d(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Io(t):!0}const Ce=t=>Math.round(t*1e5)/1e5,Kr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ld(t){return t==null}const Od=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yr=(t,e)=>n=>!!(typeof n=="string"&&Od.test(n)&&n.startsWith(t)||e&&!Ld(n)&&Object.prototype.hasOwnProperty.call(n,e)),No=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Kr);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},$d=t=>Dt(0,255,t),Bn={...ge,transform:t=>Math.round($d(t))},Yt={test:Yr("rgb","red"),parse:No("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Bn.transform(t)+", "+Bn.transform(e)+", "+Bn.transform(n)+", "+Ce($e.transform(r))+")"};function Fd(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ir={test:Yr("#"),parse:Fd,transform:Yt.transform},re={test:Yr("hsl","hue"),parse:No("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Vt.transform(Ce(e))+", "+Vt.transform(Ce(n))+", "+Ce($e.transform(r))+")"},J={test:t=>Yt.test(t)||ir.test(t)||re.test(t),parse:t=>Yt.test(t)?Yt.parse(t):re.test(t)?re.parse(t):ir.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Yt.transform(t):re.transform(t)},Bd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Id(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Kr))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Bd))===null||n===void 0?void 0:n.length)||0)>0}const jo="number",Uo="color",Nd="var",jd="var(",_i="${}",Ud=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ie(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(Ud,l=>(J.test(l)?(r.color.push(s),i.push(Uo),n.push(J.parse(l))):l.startsWith(jd)?(r.var.push(s),i.push(Nd),n.push(l)):(r.number.push(s),i.push(jo),n.push(parseFloat(l))),++s,_i)).split(_i);return{values:n,split:a,indexes:r,types:i}}function zo(t){return Ie(t).values}function Wo(t){const{split:e,types:n}=Ie(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===jo?s+=Ce(i[o]):a===Uo?s+=J.transform(i[o]):s+=i[o]}return s}}const zd=t=>typeof t=="number"?0:t;function Wd(t){const e=zo(t);return Wo(t)(e.map(zd))}const Ut={test:Id,parse:zo,createTransformer:Wo,getAnimatableNone:Wd},qd=new Set(["brightness","contrast","saturate","opacity"]);function Gd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Kr)||[];if(!r)return t;const i=n.replace(r,"");let s=qd.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const Hd=/\b([a-z-]*)\(.*?\)/gu,sr={...Ut,getAnimatableNone:t=>{const e=t.match(Hd);return e?e.map(Gd).join(" "):t}},Kd={...Mr,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:sr,WebkitFilter:sr},Xr=t=>Kd[t];function qo(t,e){let n=Xr(t);return n!==sr&&(n=Ut),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Yd=new Set(["auto","none","0"]);function Xd(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!Yd.has(s)&&Ie(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=qo(n,i)}const Li=t=>t===ge||t===k,Oi=(t,e)=>parseFloat(t.split(", ")[e]),$i=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Oi(i[1],e);{const s=r.match(/^matrix\((.+)\)$/u);return s?Oi(s[1],t):0}},Zd=new Set(["x","y","z"]),Jd=me.filter(t=>!Zd.has(t));function Qd(t){const e=[];return Jd.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const fe={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:$i(4,13),y:$i(5,14)};fe.translateX=fe.x;fe.translateY=fe.y;const Xt=new Set;let or=!1,ar=!1;function Go(){if(ar){const t=Array.from(Xt).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Qd(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ar=!1,or=!1,Xt.forEach(t=>t.complete()),Xt.clear()}function Ho(){Xt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ar=!0)})}function tf(){Ho(),Go()}class Zr{constructor(e,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xt.add(this),or||(or=!0,j.read(Ho),j.resolveKeyframes(Go))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ko=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ef=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nf(t){const e=ef.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const rf=4;function Yo(t,e,n=1){Et(n<=rf,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=nf(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return Ko(o)?parseFloat(o):o}return Er(i)?Yo(i,e,n+1):i}const Xo=t=>e=>e.test(t),sf={test:t=>t==="auto",parse:t=>t},Zo=[ge,k,Vt,It,Wu,zu,sf],Fi=t=>Zo.find(Xo(t));class Jo extends Zr{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Er(c))){const u=Yo(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ro.has(r)||e.length!==2)return;const[i,s]=e,o=Fi(i),a=Fi(s);if(o!==a)if(Li(o)&&Li(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)_d(e[i])&&r.push(i);r.length&&Xd(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fe[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=fe[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Bi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ut.test(t)||t==="0")&&!t.startsWith("url("));function of(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function af(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=Bi(i,e),a=Bi(s,e);return pe(o===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!a?!1:of(t)||(n==="spring"||Ir(n))&&r}const lf=t=>t!==null;function Vn(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(lf),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const cf=40;class Qo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Rt.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>cf?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&tf(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Rt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!af(e,r,i,s))if(o)this.options.duration=0;else{l&&l(Vn(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const z=(t,e,n)=>t+(e-t)*n;function In(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function uf({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=In(l,a,t+1/3),s=In(l,a,t),o=In(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function gn(t,e){return n=>n>0?e:t}const Nn=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},df=[ir,Yt,re],ff=t=>df.find(e=>e.test(t));function Ii(t){const e=ff(t);if(pe(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===re&&(n=uf(n)),n}const Ni=(t,e)=>{const n=Ii(t),r=Ii(e);if(!n||!r)return gn(t,e);const i={...n};return s=>(i.red=Nn(n.red,r.red,s),i.green=Nn(n.green,r.green,s),i.blue=Nn(n.blue,r.blue,s),i.alpha=z(n.alpha,r.alpha,s),Yt.transform(i))},hf=(t,e)=>n=>e(t(n)),We=(...t)=>t.reduce(hf),lr=new Set(["none","hidden"]);function pf(t,e){return lr.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function mf(t,e){return n=>z(t,e,n)}function Jr(t){return typeof t=="number"?mf:typeof t=="string"?Er(t)?gn:J.test(t)?Ni:vf:Array.isArray(t)?ta:typeof t=="object"?J.test(t)?Ni:gf:gn}function ta(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>Jr(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function gf(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Jr(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function yf(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const vf=(t,e)=>{const n=Ut.createTransformer(e),r=Ie(t),i=Ie(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?lr.has(t)&&!i.values.length||lr.has(e)&&!r.values.length?pf(t,e):We(ta(yf(r,i),i.values),n):(pe(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),gn(t,e))};function ea(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?z(t,e,n):Jr(t)(t,e)}const bf=5;function na(t,e,n){const r=Math.max(e-bf,0);return Eo(n-t(r),e-r)}const U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ji=.001;function xf({duration:t=U.duration,bounce:e=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,s;pe(t<=At(U.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=Dt(U.minDamping,U.maxDamping,o),t=Dt(U.minDuration,U.maxDuration,kt(t)),o<1?(i=c=>{const u=c*o,d=u*t,f=u-n,h=cr(c,o),p=Math.exp(-d);return ji-f/h*p},s=c=>{const d=c*o*t,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-d),g=cr(Math.pow(c,2),o);return(-i(c)+ji>0?-1:1)*((f-h)*p)/g}):(i=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-.001+u*d},s=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=wf(i,s,a);if(t=At(t),isNaN(l))return{stiffness:U.stiffness,damping:U.damping,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:t}}}const Sf=12;function wf(t,e,n){let r=n;for(let i=1;i<Sf;i++)r=r-t(r)/e(r);return r}function cr(t,e){return t*Math.sqrt(1-e*e)}const Tf=["duration","bounce"],Cf=["stiffness","damping","mass"];function Ui(t,e){return e.some(n=>t[n]!==void 0)}function Pf(t){let e={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...t};if(!Ui(t,Cf)&&Ui(t,Tf))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Dt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:U.mass,stiffness:i,damping:s}}else{const n=xf(t);e={...e,...n,mass:U.mass},e.isResolvedFromDuration=!0}return e}function ra(t=U.visualDuration,e=U.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Pf({...n,velocity:-kt(n.velocity||0)}),p=f||0,g=c/(2*Math.sqrt(l*u)),x=o-s,v=kt(Math.sqrt(l/u)),S=Math.abs(x)<5;r||(r=S?U.restSpeed.granular:U.restSpeed.default),i||(i=S?U.restDelta.granular:U.restDelta.default);let w;if(g<1){const m=cr(v,g);w=R=>{const M=Math.exp(-g*v*R);return o-M*((p+g*v*x)/m*Math.sin(m*R)+x*Math.cos(m*R))}}else if(g===1)w=m=>o-Math.exp(-v*m)*(x+(p+v*x)*m);else{const m=v*Math.sqrt(g*g-1);w=R=>{const M=Math.exp(-g*v*R),y=Math.min(m*R,300);return o-M*((p+g*v*x)*Math.sinh(y)+m*x*Math.cosh(y))/m}}const A={calculatedDuration:h&&d||null,next:m=>{const R=w(m);if(h)a.done=m>=d;else{let M=0;g<1&&(M=m===0?At(p):na(w,m,R));const y=Math.abs(M)<=r,b=Math.abs(o-R)<=i;a.done=y&&b}return a.value=a.done?o:R,a},toString:()=>{const m=Math.min(xo(A),er),R=So(M=>A.next(m*M).value,m,30);return m+"ms "+R}};return A}function zi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},h=y=>a!==void 0&&y<a||l!==void 0&&y>l,p=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const x=d+g,v=o===void 0?x:o(x);v!==x&&(g=v-d);const S=y=>-g*Math.exp(-y/r),w=y=>v+S(y),A=y=>{const b=S(y),T=w(y);f.done=Math.abs(b)<=c,f.value=f.done?v:T};let m,R;const M=y=>{h(f.value)&&(m=y,R=ra({keyframes:[f.value,p(f.value)],velocity:na(w,y,f.value),damping:i,stiffness:s,restDelta:c,restSpeed:u}))};return M(0),{calculatedDuration:null,next:y=>{let b=!1;return!R&&m===void 0&&(b=!0,A(y),M(y)),m!==void 0&&y>=m?R.next(y-m):(!b&&A(y),f)}}}const Af=ze(.42,0,1,1),Vf=ze(0,0,.58,1),ia=ze(.42,0,.58,1),Rf=t=>Array.isArray(t)&&typeof t[0]!="number",Wi={linear:ct,easeIn:Af,easeInOut:ia,easeOut:Vf,circIn:Hr,circInOut:Bo,circOut:Fo,backIn:Gr,backInOut:Oo,backOut:Lo,anticipate:$o},qi=t=>{if(Nr(t)){Et(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return ze(e,n,r,i)}else if(typeof t=="string")return Et(Wi[t]!==void 0,`Invalid easing type '${t}'`),Wi[t];return t};function Ef(t,e,n){const r=[],i=n||ea,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||ct:e;a=We(l,a)}r.push(a)}return r}function Mf(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(Et(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ef(e,r,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=ue(t[d],t[d+1],u);return a[d](f)};return n?u=>c(Dt(t[0],t[s-1],u)):c}function kf(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=ue(0,e,r);t.push(z(n,1,i))}}function Df(t){const e=[0];return kf(e,t.length-1),e}function _f(t,e){return t.map(n=>n*e)}function Lf(t,e){return t.map(()=>e||ia).splice(0,t.length-1)}function Pe({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Rf(r)?r.map(qi):qi(r),s={done:!1,value:e[0]},o=_f(n&&n.length===e.length?n:Df(e),t),a=Mf(o,e,{ease:Array.isArray(i)?i:Lf(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}const Of=t=>{const e=({timestamp:n})=>t(n);return{start:()=>j.update(e,!0),stop:()=>jt(e),now:()=>K.isProcessing?K.timestamp:Rt.now()}},$f={decay:zi,inertia:zi,tween:Pe,keyframes:Pe,spring:ra},Ff=t=>t/100;class Qr extends Qo{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Zr,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Ir(n)?n:$f[n]||Pe;let l,c;process.env.NODE_ENV!=="production"&&a!==Pe&&Et(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==Pe&&typeof e[0]!="number"&&(l=We(Ff,ea(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});s==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=xo(u));const{calculatedDuration:d}=u,f=d+i,h=f*(r+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:p,repeatDelay:g,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),S=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,A=s;if(h){const y=Math.min(this.currentTime,u)/d;let b=Math.floor(y),T=y%1;!T&&y>=1&&(T=1),T===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(p==="reverse"?(T=1-T,g&&(T-=g/d)):p==="mirror"&&(A=o)),w=Dt(0,1,T)*d}const m=S?{done:!1,value:l[0]}:A.next(w);a&&(m.value=a(m.value));let{done:R}=m;!S&&c!==null&&(R=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return M&&i!==void 0&&(m.value=Vn(l,this.options,i)),x&&x(m.value),M&&this.finish(),m}get duration(){const{resolved:e}=this;return e?kt(e.calculatedDuration):0}get time(){return kt(this.currentTime)}set time(e){e=At(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=kt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Of,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Bf=new Set(["opacity","clipPath","filter","transform"]);function If(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=To(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Nf=Tr(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yn=10,jf=2e4;function Uf(t){return Ir(t.type)||t.type==="spring"||!wo(t.ease)}function zf(t,e){const n=new Qr({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let s=0;for(;!r.done&&s<jf;)r=n.sample(s),i.push(r.value),s+=yn;return{times:void 0,keyframes:i,duration:s-yn,ease:"linear"}}const sa={anticipate:$o,backInOut:Oo,circInOut:Bo};function Wf(t){return t in sa}class Gi extends Qo{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Jo(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&pn()&&Wf(s)&&(s=sa[s]),Uf(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:p,...g}=this.options,x=zf(e,g);e=x.keyframes,e.length===1&&(e[1]=e[0]),r=x.duration,i=x.times,s=x.ease,o="keyframes"}const u=If(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:s});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ri(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Vn(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return kt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return kt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=At(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ct;const{animation:r}=n;Ri(r,e)}return ct}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...h}=this.options,p=new Qr({...h,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),g=At(this.time);c.setWithVelocity(p.sample(g-yn).value,p.sample(g).value,yn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Nf()&&r&&Bf.has(r)&&!l&&!c&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const qf={type:"spring",stiffness:500,damping:25,restSpeed:10},Gf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Hf={type:"keyframes",duration:.8},Kf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yf=(t,{keyframes:e})=>e.length>2?Hf:Zt.has(t)?t.startsWith("scale")?Gf(e[1]):qf:Kf;function Xf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ti=(t,e,n,r={},i,s)=>o=>{const a=Br(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-At(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};Xf(a)||(u={...u,...Yf(t,u)}),u.duration&&(u.duration=At(u.duration)),u.repeatDelay&&(u.repeatDelay=At(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!s&&e.get()!==void 0){const f=Vn(u.keyframes,a);if(f!==void 0)return j.update(()=>{u.onUpdate(f),u.onComplete()}),new md([])}return!s&&Gi.supports(u)?new Gi(u):new Qr(u)};function Zf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function oa(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in l){const f=t.getValue(d,(s=t.latestValues[d])!==null&&s!==void 0?s:null),h=l[d];if(h===void 0||u&&Zf(u,d))continue;const p={delay:n,...Br(o||{},d)};let g=!1;if(window.MotionHandoffAnimation){const v=Mo(t);if(v){const S=window.MotionHandoffAnimation(v,d,j);S!==null&&(p.startTime=S,g=!0)}}rr(t,d),f.start(ti(d,f,h,t.shouldReduceMotion&&Ro.has(d)?{type:!1}:p,t,g));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{j.update(()=>{a&&qr(t,a)})}),c}function ur(t,e,n={}){var r;const i=Fe(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(oa(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return Jf(t,e,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Jf(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(Qf).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(ur(c,e,{...s,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function Qf(t,e){return t.sortNodePosition(e)}function aa(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>ur(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=ur(t,e,n);else{const i=typeof e=="function"?Fe(t,e,n.custom):e;r=Promise.all(oa(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function la(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const th=Pr.length;function ca(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ca(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<th;n++){const r=Pr[n],i=t.props[r];(Le(i)||i===!1)&&(e[r]=i)}return e}const eh=[...Cr].reverse(),nh=Cr.length;function rh(t){return e=>Promise.all(e.map(({animation:n,options:r})=>aa(t,n,r)))}function ih(t){let e=rh(t),n=Hi(),r=!0;const i=l=>(c,u)=>{var d;const f=Fe(t,u,l==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...g}=f;c={...c,...g,...p}}return c};function s(l){e=l(t)}function o(l){const{props:c}=t,u=ca(t.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let x=0;x<nh;x++){const v=eh[x],S=n[v],w=c[v]!==void 0?c[v]:u[v],A=Le(w),m=v===l?S.isActive:null;m===!1&&(p=x);let R=w===u[v]&&w!==c[v]&&A;if(R&&r&&t.manuallyAnimateOnMount&&(R=!1),S.protectedKeys={...h},!S.isActive&&m===null||!w&&!S.prevProp||Pn(w)||typeof w=="boolean")continue;const M=sh(S.prevProp,w);let y=M||v===l&&S.isActive&&!R&&A||x>p&&A,b=!1;const T=Array.isArray(w)?w:[w];let C=T.reduce(i(v),{});m===!1&&(C={});const{prevResolvedValues:D={}}=S,W={...D,...C},tt=_=>{y=!0,f.has(_)&&(b=!0,f.delete(_)),S.needsAnimating[_]=!0;const N=t.getValue(_);N&&(N.liveStyle=!1)};for(const _ in W){const N=C[_],st=D[_];if(h.hasOwnProperty(_))continue;let nt=!1;tr(N)&&tr(st)?nt=!la(N,st):nt=N!==st,nt?N!=null?tt(_):f.add(_):N!==void 0&&f.has(_)?tt(_):S.protectedKeys[_]=!0}S.prevProp=w,S.prevResolvedValues=C,S.isActive&&(h={...h,...C}),r&&t.blockInitialAnimation&&(y=!1),y&&(!(R&&M)||b)&&d.push(...T.map(_=>({animation:_,options:{type:v}})))}if(f.size){const x={};if(typeof c.initial!="boolean"){const v=Fe(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}f.forEach(v=>{const S=t.getBaseTarget(v),w=t.getValue(v);w&&(w.liveStyle=!0),x[v]=S??null}),d.push({animation:x})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Hi(),r=!0}}}function sh(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!la(e,t):!1}function Ht(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hi(){return{animate:Ht(!0),whileInView:Ht(),whileHover:Ht(),whileTap:Ht(),whileDrag:Ht(),whileFocus:Ht(),exit:Ht()}}class zt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class oh extends zt{constructor(e){super(e),e.animationState||(e.animationState=ih(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Pn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let ah=0;class lh extends zt{constructor(){super(...arguments),this.id=ah++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ch={animation:{Feature:oh},exit:{Feature:lh}};function Ne(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function qe(t){return{point:{x:t.pageX,y:t.pageY}}}const uh=t=>e=>jr(e)&&t(e,qe(e));function ie(t,e,n,r){return Ne(t,e,uh(n),r)}function ua({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function dh({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fh(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const da=1e-4,hh=1-da,ph=1+da,fa=.01,mh=0-fa,gh=0+fa;function it(t){return t.max-t.min}function yh(t,e,n){return Math.abs(t-e)<=n}function Ki(t,e,n,r=.5){t.origin=r,t.originPoint=z(e.min,e.max,t.origin),t.scale=it(n)/it(e),t.translate=z(n.min,n.max,t.origin)-t.originPoint,(t.scale>=hh&&t.scale<=ph||isNaN(t.scale))&&(t.scale=1),(t.translate>=mh&&t.translate<=gh||isNaN(t.translate))&&(t.translate=0)}function Ae(t,e,n,r){Ki(t.x,e.x,n.x,r?r.originX:void 0),Ki(t.y,e.y,n.y,r?r.originY:void 0)}function Yi(t,e,n){t.min=n.min+e.min,t.max=t.min+it(e)}function vh(t,e,n){Yi(t.x,e.x,n.x),Yi(t.y,e.y,n.y)}function Xi(t,e,n){t.min=e.min-n.min,t.max=t.min+it(e)}function Ve(t,e,n){Xi(t.x,e.x,n.x),Xi(t.y,e.y,n.y)}const Zi=()=>({translate:0,scale:1,origin:0,originPoint:0}),se=()=>({x:Zi(),y:Zi()}),Ji=()=>({min:0,max:0}),q=()=>({x:Ji(),y:Ji()});function gt(t){return[t("x"),t("y")]}function jn(t){return t===void 0||t===1}function dr({scale:t,scaleX:e,scaleY:n}){return!jn(t)||!jn(e)||!jn(n)}function Kt(t){return dr(t)||ha(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ha(t){return Qi(t.x)||Qi(t.y)}function Qi(t){return t&&t!=="0%"}function vn(t,e,n){const r=t-n,i=e*r;return n+i}function ts(t,e,n,r,i){return i!==void 0&&(t=vn(t,i,r)),vn(t,n,r)+e}function fr(t,e=0,n=1,r,i){t.min=ts(t.min,e,n,r,i),t.max=ts(t.max,e,n,r,i)}function pa(t,{x:e,y:n}){fr(t.x,e.translate,e.scale,e.originPoint),fr(t.y,n.translate,n.scale,n.originPoint)}const es=.999999999999,ns=1.0000000000001;function bh(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ae(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,pa(t,o)),r&&Kt(s.latestValues)&&ae(t,s.latestValues))}e.x<ns&&e.x>es&&(e.x=1),e.y<ns&&e.y>es&&(e.y=1)}function oe(t,e){t.min=t.min+e,t.max=t.max+e}function rs(t,e,n,r,i=.5){const s=z(t.min,t.max,i);fr(t,e,n,s,r)}function ae(t,e){rs(t.x,e.x,e.scaleX,e.scale,e.originX),rs(t.y,e.y,e.scaleY,e.scale,e.originY)}function ma(t,e){return ua(fh(t.getBoundingClientRect(),e))}function xh(t,e,n){const r=ma(t,n),{scroll:i}=e;return i&&(oe(r.x,i.offset.x),oe(r.y,i.offset.y)),r}const is=(t,e)=>Math.abs(t-e);function Sh(t,e){const n=is(t.x,e.x),r=is(t.y,e.y);return Math.sqrt(n**2+r**2)}class ga{constructor(e,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=zn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Sh(u.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:h}=u,{timestamp:p}=K;this.history.push({...h,timestamp:p});const{onStart:g,onMove:x}=this.handlers;d||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{if(u.target instanceof Element&&u.target.hasPointerCapture&&u.pointerId!==void 0)try{if(!u.target.hasPointerCapture(u.pointerId))return}catch{}this.lastMoveEvent=u,this.lastMoveEventInfo=Un(d,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{mn(u,"release"),this.end();const{onEnd:f,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=zn(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Un(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,g),h&&h(u,g)},!jr(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=qe(e),o=Un(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=K;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,zn(o,this.history)),mn(e,"set"),this.removeListeners=We(ie(e.currentTarget,"pointermove",this.handlePointerMove),ie(e.currentTarget,"pointerup",this.handlePointerUp),ie(e.currentTarget,"pointercancel",this.handlePointerUp),ie(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jt(this.updatePoint)}}function Un(t,e){return e?{point:e(t.point)}:t}function ss(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zn({point:t},e){return{point:t,delta:ss(t,ya(e)),offset:ss(t,wh(e)),velocity:Th(e,.1)}}function wh(t){return t[0]}function ya(t){return t[t.length-1]}function Th(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=ya(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>At(e)));)n--;if(!r)return{x:0,y:0};const s=kt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ch(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?z(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?z(n,t,r.max):Math.min(t,n)),t}function os(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ph(t,{top:e,left:n,bottom:r,right:i}){return{x:os(t.x,n,i),y:os(t.y,e,r)}}function as(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Ah(t,e){return{x:as(t.x,e.x),y:as(t.y,e.y)}}function Vh(t,e){let n=.5;const r=it(t),i=it(e);return i>r?n=ue(e.min,e.max-r,t.min):r>i&&(n=ue(t.min,t.max-i,e.min)),Dt(0,1,n)}function Rh(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const hr=.35;function Eh(t=hr){return t===!1?t=0:t===!0&&(t=hr),{x:ls(t,"left","right"),y:ls(t,"top","bottom")}}function ls(t,e,n){return{min:cs(t,e),max:cs(t,n)}}function cs(t,e){return typeof t=="number"?t:t[e]||0}const Mh=new WeakMap;class kh{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qe(u).point)},s=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cd(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gt(x=>{let v=this.getAxisMotionValue(x).get()||0;if(Vt.test(v)){const{projection:S}=this.visualElement;if(S&&S.layout){const w=S.layout.layoutBox[x];w&&(v=it(w)*(parseFloat(v)/100))}}this.originPoint[x]=v}),p&&j.postRender(()=>p(u,d)),rr(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=Dh(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),g&&g(u,d)},a=(u,d)=>this.stop(u,d),l=()=>gt(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ga(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&j.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ze(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Ch(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&ne(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ph(i.layoutBox,n):this.constraints=!1,this.elastic=Eh(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&>(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Rh(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ne(e))return!1;const r=e.current;Et(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=xh(r,i.root,this.visualElement.getTransformPagePoint());let o=Ah(i.layout.layoutBox,s);if(n){const a=n(dh(o));this.hasMutatedConstraints=!!a,a&&(o=ua(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=gt(u=>{if(!Ze(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return rr(this.visualElement,e),r.start(ti(e,r,0,n,this.visualElement,!1))}stopAnimation(){gt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){gt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){gt(n=>{const{drag:r}=this.getProps();if(!Ze(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-z(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ne(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Vh({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),gt(o=>{if(!Ze(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(z(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Mh.set(this.visualElement,this);const e=this.visualElement.current,n=ie(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ne(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(r);const o=Ne(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(gt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=hr,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ze(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Dh(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class _h extends zt{constructor(e){super(e),this.removeGroupControls=ct,this.removeListeners=ct,this.controls=new kh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ct}unmount(){this.removeGroupControls(),this.removeListeners()}}const us=t=>(e,n)=>{t&&j.postRender(()=>t(e,n))};class Lh extends zt{constructor(){super(...arguments),this.removePointerDownListener=ct}onPointerDown(e){this.session=new ga(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:us(e),onStart:us(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&j.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=ie(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const an={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ds(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(k.test(t))t=parseFloat(t);else return t;const n=ds(t,e.target.x),r=ds(t,e.target.y);return`${n}% ${r}%`}},Oh={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ut.parse(t);if(i.length>5)return r;const s=Ut.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=z(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class $h extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;Uu(Fh),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),an.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||j.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Vr.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function va(t){const[e,n]=xu(),r=P.useContext(Zs);return ln.jsx($h,{...t,layoutGroup:r,switchLayoutGroup:P.useContext(oo),isPresent:e,safeToRemove:n})}const Fh={borderRadius:{...xe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomLeftRadius:xe,borderBottomRightRadius:xe,boxShadow:Oh};function Bh(t,e,n){const r=Q(t)?t:Be(t);return r.start(ti("",r,e,n)),r.animation}function Ih(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Nh=(t,e)=>t.depth-e.depth;class jh{constructor(){this.children=[],this.isDirty=!1}add(e){Ur(this.children,e),this.isDirty=!0}remove(e){zr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Nh),this.isDirty=!1,this.children.forEach(e)}}function Uh(t,e){const n=Rt.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(jt(r),t(s-e))};return j.read(r,!0),()=>jt(r)}const ba=["TopLeft","TopRight","BottomLeft","BottomRight"],zh=ba.length,fs=t=>typeof t=="string"?parseFloat(t):t,hs=t=>typeof t=="number"||k.test(t);function Wh(t,e,n,r,i,s){i?(t.opacity=z(0,n.opacity!==void 0?n.opacity:1,qh(r)),t.opacityExit=z(e.opacity!==void 0?e.opacity:1,0,Gh(r))):s&&(t.opacity=z(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<zh;o++){const a=`border${ba[o]}Radius`;let l=ps(e,a),c=ps(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||hs(l)===hs(c)?(t[a]=Math.max(z(fs(l),fs(c),r),0),(Vt.test(c)||Vt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=z(e.rotate||0,n.rotate||0,r))}function ps(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const qh=xa(0,.5,Fo),Gh=xa(.5,.95,ct);function xa(t,e,n){return r=>r<t?0:r>e?1:n(ue(t,e,r))}function ms(t,e){t.min=e.min,t.max=e.max}function mt(t,e){ms(t.x,e.x),ms(t.y,e.y)}function gs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ys(t,e,n,r,i){return t-=e,t=vn(t,1/n,r),i!==void 0&&(t=vn(t,1/i,r)),t}function Hh(t,e=0,n=1,r=.5,i,s=t,o=t){if(Vt.test(e)&&(e=parseFloat(e),e=z(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=z(s.min,s.max,r);t===s&&(a-=e),t.min=ys(t.min,e,n,a,i),t.max=ys(t.max,e,n,a,i)}function vs(t,e,[n,r,i],s,o){Hh(t,e[n],e[r],e[i],e.scale,s,o)}const Kh=["x","scaleX","originX"],Yh=["y","scaleY","originY"];function bs(t,e,n,r){vs(t.x,e,Kh,n?n.x:void 0,r?r.x:void 0),vs(t.y,e,Yh,n?n.y:void 0,r?r.y:void 0)}function xs(t){return t.translate===0&&t.scale===1}function Sa(t){return xs(t.x)&&xs(t.y)}function Ss(t,e){return t.min===e.min&&t.max===e.max}function Xh(t,e){return Ss(t.x,e.x)&&Ss(t.y,e.y)}function ws(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function wa(t,e){return ws(t.x,e.x)&&ws(t.y,e.y)}function Ts(t){return it(t.x)/it(t.y)}function Cs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Zh{constructor(){this.members=[]}add(e){Ur(this.members,e),e.scheduleRender()}remove(e){if(zr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jh(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Wn=["","X","Y","Z"],Qh={visibility:"hidden"},Ps=1e3;let tp=0;function qn(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Ta(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Ta(r)}function Ca({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=tp++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rp),this.nodes.forEach(lp),this.nodes.forEach(cp),this.nodes.forEach(ip)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jh)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Wr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ih(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let d;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Uh(f,250),an.hasAnimatedSinceResize&&(an.hasAnimatedSinceResize=!1,this.nodes.forEach(Vs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||pp,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),S=!this.targetLayout||!wa(this.targetLayout,p),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const A={...Br(g,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||Vs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jt(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(up),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ta(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(As);return}this.isUpdating||this.nodes.forEach(op),this.isUpdating=!1,this.nodes.forEach(ap),this.nodes.forEach(ep),this.nodes.forEach(np),this.clearAllSnapshots();const a=Rt.now();K.delta=Dt(0,1e3/60,a-K.timestamp),K.timestamp=a,K.isProcessing=!0,$n.update.process(K),$n.preRender.process(K),$n.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sp),this.sharedNodes.forEach(dp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!it(this.snapshot.measuredBox.x)&&!it(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Sa(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||Kt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),mp(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return q();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gp))){const{scroll:u}=this.root;u&&(oe(l.x,u.offset.x),oe(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=q();if(mt(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&mt(l,o),oe(l.x,d.offset.x),oe(l.y,d.offset.y))}return l}applyTransform(o,a=!1){const l=q();mt(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ae(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Kt(u.latestValues)&&ae(l,u.latestValues)}return Kt(this.latestValues)&&ae(l,this.latestValues),l}removeTransform(o){const a=q();mt(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Kt(c.latestValues))continue;dr(c.latestValues)&&c.updateSnapshot();const u=q(),d=c.measurePageBox();mt(u,d),bs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Kt(this.latestValues)&&bs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Ve(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mt(this.target,this.layout.layoutBox),pa(this.target,this.targetDelta)):mt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Ve(this.relativeTargetOrigin,this.target,h.target),mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||dr(this.parent.latestValues)||ha(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===K.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;mt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;bh(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=q());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gs(this.prevProjectionDelta.x,this.projectionDelta.x),gs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ae(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Cs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=se(),this.projectionDelta=se(),this.projectionDeltaWithTransform=se()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=se();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=q(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,x=this.getStack(),v=!x||x.members.length<=1,S=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(hp));this.animationProgress=0;let w;this.mixTargetDelta=A=>{const m=A/1e3;Rs(d.x,o.x,m),Rs(d.y,o.y,m),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ve(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fp(this.relativeTarget,this.relativeTargetOrigin,f,m),w&&Xh(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=q()),mt(w,this.relativeTarget)),g&&(this.animationValues=u,Wh(u,c,this.latestValues,m,S,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{an.hasAnimatedSinceResize=!0,this.currentAnimation=Bh(0,Ps,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ps),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Pa(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||q();const d=it(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=it(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}mt(a,l),ae(a,u),Ae(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Zh),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&qn("z",o,c,this.animationValues);for(let u=0;u<Wn.length;u++)qn(`rotate${Wn[u]}`,o,c,this.animationValues),qn(`skew${Wn[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qh;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=sn(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=sn(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Kt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=Jh(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:h,y:p}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in Oe){if(f[g]===void 0)continue;const{correct:x,applyTo:v,isCSSVariable:S}=Oe[g],w=c.transform==="none"?f[g]:x(f[g],d);if(v){const A=v.length;for(let m=0;m<A;m++)c[v[m]]=w}else S?this.options.visualElement.renderState.vars[g]=w:c[g]=w}return this.options.layoutId&&(c.pointerEvents=d===this?sn(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(As),this.root.sharedNodes.clear()}}}function ep(t){t.updateLayout()}function np(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?gt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=it(f);f.min=r[d].min,f.max=f.min+h}):Pa(s,n.layoutBox,r)&>(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=it(r[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=se();Ae(a,r,n.layoutBox);const l=se();o?Ae(l,t.applyTransform(i,!0),n.measuredBox):Ae(l,r,n.layoutBox);const c=!Sa(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=q();Ve(p,n.layoutBox,f.layoutBox);const g=q();Ve(g,r,h.layoutBox),wa(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function rp(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ip(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sp(t){t.clearSnapshot()}function As(t){t.clearMeasurements()}function op(t){t.isLayoutDirty=!1}function ap(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lp(t){t.resolveTargetDelta()}function cp(t){t.calcProjection()}function up(t){t.resetSkewAndRotation()}function dp(t){t.removeLeadSnapshot()}function Rs(t,e,n){t.translate=z(e.translate,0,n),t.scale=z(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Es(t,e,n,r){t.min=z(e.min,n.min,r),t.max=z(e.max,n.max,r)}function fp(t,e,n,r){Es(t.x,e.x,n.x,r),Es(t.y,e.y,n.y,r)}function hp(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pp={duration:.45,ease:[.4,0,.1,1]},Ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ks=Ms("applewebkit/")&&!Ms("chrome/")?Math.round:ct;function Ds(t){t.min=ks(t.min),t.max=ks(t.max)}function mp(t){Ds(t.x),Ds(t.y)}function Pa(t,e,n){return t==="position"||t==="preserve-aspect"&&!yh(Ts(e),Ts(n),.2)}function gp(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const yp=Ca({attachResizeListener:(t,e)=>Ne(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gn={current:void 0},Aa=Ca({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Gn.current){const t=new yp({});t.mount(window),t.setOptions({layoutScroll:!0}),Gn.current=t}return Gn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),vp={pan:{Feature:Lh},drag:{Feature:_h,ProjectionNode:Aa,MeasureLayout:va}};function _s(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&j.postRender(()=>s(e,qe(e)))}class bp extends zt{mount(){const{current:e}=this.node;e&&(this.unmount=vd(e,(n,r)=>(_s(this.node,r,"Start"),i=>_s(this.node,i,"End"))))}unmount(){}}class xp extends zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=We(Ne(this.node.current,"focus",()=>this.onFocus()),Ne(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ls(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&j.postRender(()=>s(e,qe(e)))}class Sp extends zt{mount(){const{current:e}=this.node;e&&(this.unmount=wd(e,(n,r)=>(Ls(this.node,r,"Start"),(i,{success:s})=>Ls(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pr=new WeakMap,Hn=new WeakMap,wp=t=>{const e=pr.get(t.target);e&&e(t)},Tp=t=>{t.forEach(wp)};function Cp({root:t,...e}){const n=t||document;Hn.has(n)||Hn.set(n,{});const r=Hn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Tp,{root:t,...e})),r[i]}function Pp(t,e,n){const r=Cp(e);return pr.set(t,n),r.observe(t),()=>{pr.delete(t),r.unobserve(t)}}const Ap={some:0,all:1};class Vp extends zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ap[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Pp(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Rp(e,n))&&this.startObserver()}unmount(){}}function Rp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ep={inView:{Feature:Vp},tap:{Feature:Sp},focus:{Feature:xp},hover:{Feature:bp}},Mp={layout:{ProjectionNode:Aa,MeasureLayout:va}},mr={current:null},Va={current:!1};function kp(){if(Va.current=!0,!!wr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mr.current=t.matches;t.addListener(e),e()}else mr.current=!1}const Dp=[...Zo,J,Ut],_p=t=>Dp.find(Xo(t)),Lp=new WeakMap;function Op(t,e,n){for(const r in e){const i=e[r],s=n[r];if(Q(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Tn(i.version==="12.4.7",`Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);else if(Q(s))t.addValue(r,Be(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,Be(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $p{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Rt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,j.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=An(n),this.isVariantNode=io(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];l[h]!==void 0&&Q(p)&&p.set(l[h],!1)}}mount(e){this.current=e,Lp.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Va.current||kp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mr.current,process.env.NODE_ENV!=="production"&&Tn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Zt.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&j.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in de){const n=de[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Os.length;r++){const i=Os[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Op(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Be(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ko(i)||Io(i))?i=parseFloat(i):!_p(i)&&Ut.test(n)&&(i=qo(e,n)),this.setBaseTarget(e,Q(i)?i.get():i)),Q(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=$r(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Q(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Wr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ra extends $p{constructor(){super(...arguments),this.KeyframeResolver=Jo}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Q(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fp(t){return window.getComputedStyle(t)}class Bp extends Ra{constructor(){super(...arguments),this.type="html",this.renderInstance=go}readValueFromInstance(e,n){if(Zt.has(n)){const r=Xr(n);return r&&r.default||0}else{const r=Fp(e),i=(Rr(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ma(e,n)}build(e,n,r){kr(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Fr(e,n,r)}}class Ip extends Ra{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&mo(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Zt.has(n)){const r=Xr(n);return r&&r.default||0}return n=yo.has(n)?n:Ar(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return bo(e,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&j.postRender(this.updateDimensions)}build(e,n,r){Lr(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){vo(e,n,r,i)}mount(e){this.isSVGTag=Or(e.tagName),super.mount(e)}}const Np=(t,e)=>_r(t)?new Ip(e):new Bp(e,{allowProjection:t!==P.Fragment}),jp=fd({...ch,...Ep,...vp,...Mp},Np),Up=Ru(jp);function zp(t){t.values.forEach(e=>e.stop())}function gr(t,e){[...e].reverse().forEach(r=>{const i=t.getVariant(r);i&&qr(t,i),t.variantChildren&&t.variantChildren.forEach(s=>{gr(s,e)})})}function Wp(t,e){if(Array.isArray(e))return gr(t,e);if(typeof e=="string")return gr(t,[e]);qr(t,e)}function qp(){let t=!1;const e=new Set,n={subscribe(r){return e.add(r),()=>void e.delete(r)},start(r,i){Et(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return e.forEach(o=>{s.push(aa(o,r,{transitionOverride:i}))}),Promise.all(s)},set(r){return Et(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(i=>{Wp(i,r)})},stop(){e.forEach(r=>{zp(r)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function Gp(){const t=Js(qp);return to(t.mount,[]),t}const Hp=Gp,Kp={some:0,all:1};function Yp(t,e,{root:n,margin:r,amount:i="some"}={}){const s=Po(t),o=new WeakMap,a=c=>{c.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):l.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:Kp[i]});return s.forEach(c=>l.observe(c)),()=>l.disconnect()}function Xp(t,{root:e,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=P.useState(s);return P.useEffect(()=>{if(!t.current||i&&o)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:r};return Yp(t.current,l,c)},[e,t,n,i,r]),o}var Ea="var(--_14qm28z0)",Ma="var(--_14qm28z1)",ka="var(--_14qm28z2)",Da="var(--_14qm28z3)",_a="var(--_14qm28z4)",La="var(--_14qm28z5)",Oa="var(--_14qm28z6)",$a="var(--_14qm28z7)",Fa="var(--_14qm28z8)",Ba="var(--_14qm28z9)",Ia={width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",animation:"background 0.5s ease-in-out",color:"var(--_14qm28z2)",zIndex:"var(--_14qm28z1)",minHeight:"var(--_14qm28z7)",paddingTop:"var(--_14qm28z3)",paddingLeft:"var(--_14qm28z4)",paddingRight:"var(--_14qm28z5)",paddingBottom:"var(--_14qm28z6)",background:"var(--_14qm28z9)",justifyContent:"var(--_14qm28z8)"},Zp="_14qm28za",Na="_14qm28zb";const Jp=Object.freeze(Object.defineProperty({__proto__:null,sectionAlignVar:Ea,sectionBackgroundColorVar:Ba,sectionColorVar:ka,sectionContentStyle:Na,sectionJustifyContentVar:Fa,sectionMinHeightVar:$a,sectionPaddingBottomVar:Oa,sectionPaddingLeftVar:_a,sectionPaddingRightVar:La,sectionPaddingTopVar:Da,sectionStyle:Zp,sectionZIndexVar:Ma,styles:Ia},Symbol.toStringTag,{value:"Module"}));var Re=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Re||{});const Qp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},tm=({children:t,className:e,zIndex:n=20,id:r=void 0,isDark:i=!1,align:s=Re.Left,isFullHeight:o=!1,noPaddingTop:a=!1,theme:l=I,backgroundColor:c="",noPaddingBottom:u=!1})=>{const d=Hp(),f=St(),h=P.createRef(),{colors:p,header:{height:g},footer:{height:x},global:{paddingRight:v,paddingLeft:S},section:{paddingTop:w,paddingBottom:A}}=l,m=Xp(h,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{m&&d.start("visible")},[d,m]),V("section",{id:r,ref:h,className:e,style:B({[Ma]:`${n}`,[Ba]:c,[Fa]:o?"center":"flex-start",[ka]:i?p.defaultLightText:p.defaultText,[$a]:o?`calc(100vh - ${g[f]}px - ${x[f]}px)`:"0",[_a]:`${S[f]}px`,[La]:`${v[f]}px`,[Da]:a?"0px":`${w[f]}px`,[Oa]:u?"0px":`${A[f]}px`}),children:V(Up.div,{className:Na,initial:"hidden",animate:d,variants:Qp,style:B({[Ea]:s===Re.Center?"center":s===Re.Right?"right":"left"}),children:t})})};var em={navGap:"var(--_1h6zt340)"},nm={display:"flex",flexDirection:"column",gap:"var(--_1h6zt340)"};const rm=({children:t,theme:e=I,className:n})=>{const r=St(),{nav:{gap:i}}=e;return V("nav",{className:n,style:B({[em.navGap]:`${i[r]}px`}),children:t})};var im={navSocialGap:"var(--g7q46n0)"},sm={display:"flex",flexDirection:"row",marginLeft:0,marginRight:0,gap:"var(--g7q46n0)"},om="g7q46n1";const am=({navSocial:t,className:e,theme:n=I})=>{const r=St(),{navSocial:{gap:i}}=n;return V("div",{className:e,style:B({[im.navSocialGap]:`${i[r]}px`}),children:t.map(({name:s,link:o},a)=>{const l=s[0].toUpperCase()+s.slice(1);return V("div",{className:om,children:V("a",{target:"_blank",rel:"noopener noreferrer","aria-label":s,href:o,children:V(Nt,{theme:n,icon:`social${l}`})})},`navSocialItem-${a}`)})})};var lm={navLegalGap:"var(--vehv9e0)"},cm={display:"flex",flexDirection:"row",gap:"var(--vehv9e0)"};const um=({children:t,className:e,theme:n=I})=>{const r=St(),{navLegal:{gap:i}}=n;return V("nav",{className:e,style:B({[lm.navLegalGap]:`${i[r]}px`}),children:t})};var Kn={formWidth:"var(--dvq5w80)",formPadding:"var(--dvq5w81)",formBackgroundColor:"var(--dvq5w82)"},dm={width:"100%",maxWidth:"var(--dvq5w80)",backgroundColor:"var(--dvq5w82)",padding:"var(--dvq5w81)",position:"relative","@media":{"(min-width: 768px)":{padding:"var(--formPadding)"}}};const fm=({action:t,children:e,theme:n=I,className:r})=>V("form",{className:r,action:typeof t=="string"?t:void 0,style:B({[Kn.formWidth]:`${n.form.width}px`,[Kn.formPadding]:`${n.form.padding[0]}px`,[Kn.formBackgroundColor]:n.form.backgroundColor}),children:e});var Je={rowGap:"var(--_223sdz0)",rowPadding:"var(--_223sdz1)",rowFontSize:"var(--_223sdz2)",rowJustifyContent:"var(--_223sdz3)"},Ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Ee||{});const hm=({children:t,theme:e=I,className:n,align:r=Ee.Left,isMessage:i=!1,isActions:s=!1})=>V("div",{className:n,style:B({[Je.rowGap]:`${e.form.row.gap[0]}px`,[Je.rowPadding]:`${e.form.row.padding[0]}px`,[Je.rowFontSize]:i?"0.8em":"inherit",[Je.rowJustifyContent]:r===Ee.Right?"flex-end":r===Ee.Center?"center":"flex-start"}),children:t});var Ft={font:"var(--k6gj0i0)",color:"var(--k6gj0i1)",border:"var(--k6gj0i2)",borderRadius:"var(--k6gj0i3)",backgroundColor:"var(--k6gj0i4)",padding:"var(--k6gj0i5)",placeholderColor:"var(--k6gj0i6)",placeholderOpacity:"var(--k6gj0i7)"},pm={width:"100%",fontSize:"inherit",lineHeight:"1.5em",fontFamily:"var(--k6gj0i0)",color:"var(--k6gj0i1)",border:"var(--k6gj0i2)",borderRadius:"var(--k6gj0i3)",backgroundColor:"var(--k6gj0i4)",padding:"var(--k6gj0i5)",selectors:{"&:focus":{outline:"var(--k6gj0i2)"}}},Rn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(Rn||{});const ja=({name:t,value:e="",type:n=Rn.Text,disabled:r=!1,placeholder:i="",theme:s=I,onChange:o=void 0,className:a})=>V("input",{id:t,name:t,type:n,defaultValue:e,disabled:r,placeholder:i,onChange:o,className:a,style:B({[Ft.font]:`var(--font-${s.form.input.font})`,[Ft.color]:s.form.input.color,[Ft.border]:s.form.input.border,[Ft.borderRadius]:`${s.form.input.borderRadius}`,[Ft.backgroundColor]:s.form.input.backgroundColor,[Ft.padding]:`${s.form.input.padding[0]}px`,[Ft.placeholderColor]:s.form.input.placeholder.color,[Ft.placeholderOpacity]:`${s.form.input.placeholder.opacity}`})});var Bt={font:"var(--l5ei120)",color:"var(--l5ei121)",border:"var(--l5ei122)",borderRadius:"var(--l5ei123)",padding:"var(--l5ei124)",backgroundColor:"var(--l5ei125)",placeholderColor:"var(--l5ei126)",placeholderOpacity:"var(--l5ei127)"},mm={};const Ua=({name:t,value:e,rows:n=2,disabled:r=!1,placeholder:i="",onChange:s=void 0,theme:o=I,className:a})=>V("textarea",{id:t,name:t,rows:n,className:a,defaultValue:e,placeholder:i,disabled:r,onChange:s,style:B({[Bt.font]:`var(--font-${o.form.textarea.font})`,[Bt.color]:o.form.textarea.color,[Bt.border]:o.form.textarea.border,[Bt.borderRadius]:`${o.form.textarea.borderRadius}px`,[Bt.padding]:`${o.form.textarea.padding[0]}px`,[Bt.backgroundColor]:o.form.textarea.backgroundColor,[Bt.placeholderColor]:o.form.textarea.placeholder.color,[Bt.placeholderOpacity]:`${o.form.textarea.placeholder.opacity}`})});var Qe={font:"var(--_1s956dc0)",color:"var(--_1s956dc1)",fontWeight:"var(--_1s956dc2)",paddingBottom:"var(--_1s956dc3)"},gm={width:"100%",textAlign:"left",fontFamily:"var(--_1s956dc0)",color:"var(--_1s956dc1)",fontWeight:"var(--_1s956dc2)",paddingBottom:"var(--_1s956dc3)"};const za=({name:t,label:e,required:n=!1,theme:r=I,className:i})=>ht("label",{htmlFor:t,className:i,style:B({[Qe.font]:`var(--font-${r.form.label.font})`,[Qe.color]:r.form.label.color,[Qe.fontWeight]:`${r.form.label.fontWeight}`,[Qe.paddingBottom]:`${r.form.label.paddingBottom}px`}),children:[e,n?V("span",{children:" *"}):null]});var ym={errorColor:"var(--_1e95ziv0)"},vm={},ei=(t=>(t.Textarea="textarea",t))(ei||{});const bm=({name:t,label:e="",value:n="",rows:r=2,required:i=!1,disabled:s=!1,placeholder:o="",errors:a=void 0,theme:l=I,onChange:c=void 0,type:u=Rn.Text,className:d})=>ht("div",{className:d,style:B({[ym.errorColor]:l.form.error.color}),children:[e&&V(za,{className:"",theme:l,label:e,name:t,required:i}),u===ei.Textarea?V(Ua,{className:"",value:n,rows:r,name:t,theme:l,onChange:c,disabled:s,placeholder:o}):V(ja,{className:"",value:n,type:u,name:t,theme:l,onChange:c,disabled:s,placeholder:o}),a&&V("div",{children:a instanceof Array?a.map((f,h)=>V("span",{children:f},h)):a})]});var Mt={overlayBlur:"var(--pewdww0)",overlayOpacity:"var(--pewdww1)",overlayBackgroundColor:"var(--pewdww2)",width:"var(--pewdww3)",backgroundColor:"var(--pewdww4)",borderRadius:"var(--pewdww5)",borders:"var(--pewdww6)",actionsGap:"var(--pewdww7)",actionsPaddingTop:"var(--pewdww8)"},xm={};function Sm(t){const e=t+"=",r=decodeURIComponent(document.cookie).split(";");for(let i=0;i<r.length;i++){let s=r[i];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(e)==0)return s.substring(e.length,s.length)}return""}function wm(t,e,n){const r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);const i="expires="+r.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}const Tm=({children:t,theme:e=I,cookieName:n="consent",translations:r,cookieExpirationDays:i=365,className:s})=>{const[o,a]=P.useState(!1),l=c=>{a(!1),wm(n,`${c}`,i)};return P.useEffect(()=>{const c=Sm(n),u=c!=="true"&&c!=="false",d=c==="true";u&&a(!0);const f=d?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:f})},[o]),o?ht("div",{className:s,style:B({[Mt.overlayBlur]:`${e.consentCookie.overlayBlur}`,[Mt.overlayOpacity]:`${e.consentCookie.overlayOpacity}`,[Mt.overlayBackgroundColor]:e.consentCookie.overlayBackgroundColor,[Mt.backgroundColor]:e.consentCookie.backgroundColor,[Mt.width]:`${e.consentCookie.width[0]}`,[Mt.borderRadius]:`${e.consentCookie.borderRadius}`,[Mt.borders]:`${e.consentCookie.borders}`,[Mt.actionsGap]:`${e.consentCookie.actionsGap}`,[Mt.actionsPaddingTop]:`${e.consentCookie.actionsPaddingTop[0]}px`}),children:[t,ht("div",{children:[V(Jn,{className:"",onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),V(Jn,{className:"",onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]}):null};exports.Actions=hc;exports.ActionsAlign=te;exports.ActionsStyles=fc;exports.Button=Jn;exports.ButtonSize=Te;exports.ButtonStyle=dn;exports.ButtonStyles=oc;exports.ButtonType=xr;exports.ButtonVariant=un;exports.Carousel=Dc;exports.CarouselStyles=Mc;exports.Columns=bu;exports.ColumnsAlign=ee;exports.ColumnsStyles=vu;exports.ConsentCookie=Tm;exports.ConsentCookieStyles=xm;exports.Footer=yu;exports.FooterStyles=gu;exports.Form=fm;exports.FormRow=hm;exports.FormRowAlign=Ee;exports.FormStyles=dm;exports.Header=mu;exports.HeaderStyles=fu;exports.Icon=Nt;exports.IconStyles=pc;exports.InputStyles=pm;exports.InputType=Rn;exports.KeyNumber=Kc;exports.KeyNumberStyles=Gc;exports.LanguageSwitcher=eu;exports.LanguageSwitcherStyles=Jc;exports.Logo=Ec;exports.LogoStyles=Rc;exports.Main=su;exports.MainStyles=iu;exports.Modal=xc;exports.ModalStyles=yc;exports.Nav=rm;exports.NavLegal=um;exports.NavLegalStyles=cm;exports.NavSocial=am;exports.NavSocialStyles=sm;exports.NavStyles=nm;exports.Section=tm;exports.SectionAlign=Re;exports.SectionStyles=Ia;exports.TextField=bm;exports.TextFieldInput=ja;exports.TextFieldLabel=za;exports.TextFieldLabelStyles=gm;exports.TextFieldStyles=vm;exports.TextFieldTextarea=Ua;exports.TextareaStyles=mm;exports.TextareaType=ei;exports.Video=Xs;exports.VideoFullWidth=Xc;exports.VideoFullWidthStyles=Yc;exports.allStyles=Jp;
|
15
|
+
*/var oi;function Tl(){return oi||(oi=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,x=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function w(E){return typeof E=="string"||typeof E=="function"||E===r||E===c||E===s||E===i||E===d||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===p||E.$$typeof===h||E.$$typeof===o||E.$$typeof===a||E.$$typeof===u||E.$$typeof===x||E.$$typeof===v||E.$$typeof===S||E.$$typeof===g)}function A(E){if(typeof E=="object"&&E!==null){var ot=E.$$typeof;switch(ot){case e:var wt=E.type;switch(wt){case l:case c:case r:case s:case i:case d:return wt;default:var Gt=wt&&wt.$$typeof;switch(Gt){case a:case u:case p:case h:case o:return Gt;default:return ot}}case n:return ot}}}var m=l,R=c,M=a,y=o,b=e,T=u,C=r,D=p,W=h,tt=n,et=s,H=i,_=d,N=!1;function st(E){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),nt(E)||A(E)===l}function nt(E){return A(E)===c}function _t(E){return A(E)===a}function Lt(E){return A(E)===o}function yt(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function pt(E){return A(E)===u}function Ot(E){return A(E)===r}function dt(E){return A(E)===p}function $t(E){return A(E)===h}function vt(E){return A(E)===n}function bt(E){return A(E)===s}function Wt(E){return A(E)===i}function qt(E){return A(E)===d}F.AsyncMode=m,F.ConcurrentMode=R,F.ContextConsumer=M,F.ContextProvider=y,F.Element=b,F.ForwardRef=T,F.Fragment=C,F.Lazy=D,F.Memo=W,F.Portal=tt,F.Profiler=et,F.StrictMode=H,F.Suspense=_,F.isAsyncMode=st,F.isConcurrentMode=nt,F.isContextConsumer=_t,F.isContextProvider=Lt,F.isElement=yt,F.isForwardRef=pt,F.isFragment=Ot,F.isLazy=dt,F.isMemo=$t,F.isPortal=vt,F.isProfiler=bt,F.isStrictMode=Wt,F.isSuspense=qt,F.isValidElementType=w,F.typeOf=A}()),F}var ai;function Cl(){return ai||(ai=1,process.env.NODE_ENV==="production"?He.exports=wl():He.exports=Tl()),He.exports}var En,li;function Pl(){if(li)return En;li=1;var t=Cl(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function o(p){return t.isMemo(p)?i:s[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,g,x){if(typeof g!="string"){if(f){var v=d(g);v&&v!==f&&h(p,v,x)}var S=l(g);c&&(S=S.concat(c(g)));for(var w=o(p),A=o(g),m=0;m<S.length;++m){var R=S[m];if(!n[R]&&!(x&&x[R])&&!(A&&A[R])&&!(w&&w[R])){var M=u(g,R);try{a(p,R,M)}catch{}}}}return p}return En=h,En}Pl();var Al=!0;function Vl(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Ws=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||Al===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Rl=function(e,n,r){Ws(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function El(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Ml={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kl=/[A-Z]|^ms/g,Dl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qs=function(e){return e.charCodeAt(1)===45},ci=function(e){return e!=null&&typeof e!="boolean"},Mn=dl(function(t){return qs(t)?t:t.replace(kl,"-$&").toLowerCase()}),ui=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Dl,function(r,i,s){return Ct={name:i,styles:s,next:Ct},i})}return Ml[e]!==1&&!qs(e)&&typeof n=="number"&&n!==0?n+"px":n};function _e(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Ct={name:i.name,styles:i.styles,next:Ct},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Ct={name:o.name,styles:o.styles,next:Ct},o=o.next;var a=s.styles+";";return a}return _l(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,_e(t,e,c)}break}}var u=n;return u}function _l(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=_e(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;ci(a)&&(r+=Mn(s)+":"+ui(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var l=0;l<o.length;l++)ci(o[l])&&(r+=Mn(s)+":"+ui(s,o[l])+";");else{var c=_e(t,e,o);switch(s){case"animation":case"animationName":{r+=Mn(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var di=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function Ll(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";Ct=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=_e(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=_e(n,e,t[a]),r){var l=s;i+=l[a]}di.lastIndex=0;for(var c="",u;(u=di.exec(i))!==null;)c+="-"+u[1];var d=El(i)+c;return{name:d,styles:i,next:Ct}}var Ol=function(e){return e()},$l=lt.useInsertionEffect?lt.useInsertionEffect:!1,Fl=$l||Ol,Gs=lt.createContext(typeof HTMLElement<"u"?bl({key:"css"}):null);Gs.Provider;var Bl=function(e){return P.forwardRef(function(n,r){var i=P.useContext(Gs);return e(n,i,r)})},Il=lt.createContext({}),wn={}.hasOwnProperty,Zn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Hs=function(e,n){var r={};for(var i in n)wn.call(n,i)&&(r[i]=n[i]);return r[Zn]=e,r},Nl=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Ws(n,r,i),Fl(function(){return Rl(n,r,i)}),null},jl=Bl(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[Zn],s=[r],o="";typeof t.className=="string"?o=Vl(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=Ll(s,void 0,lt.useContext(Il));o+=e.key+"-"+a.name;var l={};for(var c in t)wn.call(t,c)&&c!=="css"&&c!==Zn&&(l[c]=t[c]);return l.className=o,n&&(l.ref=n),lt.createElement(lt.Fragment,null,lt.createElement(Nl,{cache:e,serialized:a,isStringTag:typeof i=="string"}),lt.createElement(i,l))}),Ks=jl,Ul=Me.Fragment,V=function(e,n,r){return wn.call(n,"css")?Me.jsx(Ks,Hs(e,n),r):Me.jsx(e,n,r)},ht=function(e,n,r){return wn.call(n,"css")?Me.jsxs(Ks,Hs(e,n),r):Me.jsxs(e,n,r)};function zl(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function B(t,e){var n={};{var r=t;for(var i in r){var s=r[i];s!=null&&(n[zl(i)]=s)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}const fi='"Goudy Bookletter 1911", sans-serif',kn='"Gill Sans", sans-serif',Ys="#FF7377",Dn="#C8AE96",X="#FCEFE6",Wl="#2E2E2E",hi="#CCCCCC",ql=" #888888",rt="#000000",_n=Ys,I={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:fi,defaultFont:kn},colors:{defaultText:rt,defaultLightText:X,defaultTitle:"",defaultLink:rt,defaultIcon:rt},backgroundColors:{modal:X,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:X},borders:{hr:`1px solid ${Dn}`,cookieConsent:`2px solid ${rt}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:[15,15,30,30],paddingTop:[15,15,30,30],paddingBottom:[15,15,30,30]},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:X,secondary:Wl,disabled:ql},backgroundColor:{primary:_n,secondary:Dn,disabled:hi},border:{width:2,style:"solid",color:{primary:_n,secondary:Dn,disabled:hi}},borderRadius:50,paddingTop:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingBottom:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingLeft:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},paddingRight:{small:[5,5,10,10,15,15],medium:[10,10,15,15,20,20],large:[15,15,20,20,25,25]},transition:"all 0.3s ease-in-out"},columns:{gap:30},keyNumber:{paddingBottom:[5,5,10,10,15,15]},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:fi,fontWeight:500,color:_n,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:kn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${rt}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:kn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${rt}`},error:{color:Ys}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:X,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],overlayGap:[15,15,15,15],overlayBackgroundColor:X,toggleNavColor:rt,toggleNavOpenColor:rt,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:X},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:X,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{border:"",borderRadius:0,width:[50,50,75,75],backgroundColor:X,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:rt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},languageSwitcher:{border:"",borderRadius:0,color:rt,width:[150,150,200,200],backgroundColor:X,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100]},carousel:{gap:[0,0,30,60],bullet:{borderRadius:0,width:[12,12,12,12],height:[12,12,12,12],backgroundColor:X}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:rt,backgroundColor:X},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:rt,backgroundColor:X},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:rt,backgroundColor:X},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:rt,backgroundColor:X}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:X,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:rt,paddingTop:[15,30,50,100],paddingLeft:[15,30,50,100],paddingRight:[15,30,50,100],paddingBottom:[15,30,50,100],actionsGap:30,actionsPaddingTop:[15,100,100,100]},nav:{gap:[15,15,15,15]},navSocial:{gap:[15,15,15,15]},navLegal:{gap:[15,15,15,15]}},ve={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function St(){const[t,e]=P.useState("mobile");return P.useEffect(()=>{function r(){const i=window.innerWidth;i>=ve["2xl"]?e("2xl"):i>=ve.xl?e("xl"):i>=ve.lg?e("lg"):i>=ve.md?e("md"):i>=ve.sm?e("sm"):e("mobile")}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),["mobile","sm","md","lg","xl","2xl"].indexOf(t)}var Gl="var(--_1h0tdm50)",Hl="var(--_1h0tdm51)",Kl="var(--_1h0tdm52)",Yl="var(--_1h0tdm53)",Xl="var(--_1h0tdm54)",Zl="var(--_1h0tdm55)",Jl="var(--_1h0tdm56)",Ql="var(--_1h0tdm57)",tc="var(--_1h0tdm58)",ec="var(--_1h0tdm59)",nc="var(--_1h0tdm5a)",rc="var(--_1h0tdm5b)",ic="var(--_1h0tdm5c)",sc="var(--_1h0tdm5d)",oc={position:"relative",display:"inline-block",color:"var(--_1h0tdm50)",border:"var(--_1h0tdm52)",cursor:"var(--_1h0tdm51)",minWidth:"var(--_1h0tdm53)",fontWeight:"var(--_1h0tdm54)",transition:"var(--_1h0tdm55)",paddingTop:"var(--_1h0tdm56)",paddingLeft:"var(--_1h0tdm57)",paddingRight:"var(--_1h0tdm58)",paddingBottom:"var(--_1h0tdm59)",pointerEvent:"var(--_1h0tdm5a)",borderRadius:"var(--_1h0tdm5b)",letterSpacing:"var(--_1h0tdm5c)",backgroundColor:"var(--_1h0tdm5d)",selectors:{"&:hover":{opacity:.5}}},un=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(un||{}),dn=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(dn||{}),Te=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(Te||{}),xr=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(xr||{});const Jn=({children:t,className:e,staticColor:n="",isPending:r=!1,isDisabled:i=!1,type:s=xr.Button,style:o=dn.Fill,size:a=Te.Medium,onClick:l=void 0,theme:c=I,variant:u=un.Primary})=>{const d=St(),{button:{color:f,backgroundColor:h,border:p,minWidth:g,fontWeight:x,transition:v,borderRadius:S,letterSpacing:w,paddingTop:A,paddingBottom:m,paddingLeft:R,paddingRight:M}}=c,y=a===Te.Large,b=a===Te.Small,T=o===dn.Outline,C=u===un.Secondary;return V("button",{type:s,onClick:l,className:e,style:B({[Zl]:v,[Yl]:`${g}px`,[Xl]:`${x}px`,[rc]:`${S}px`,[ic]:`${w}px`,[Hl]:i||r?"default":"pointer",[nc]:i||r?"none":"auto",[Gl]:T&&n?n:T&&C?h.secondary:T?h.primary:C?f.secondary:i||r?f.disabled:f.primary,[sc]:T?"transparent":n||(C?h.secondary:i?h.disabled:h.primary),[Kl]:n?`${p.width}px ${p.style} ${n}`:C?`${p.width}px ${p.style} ${p.color.secondary}`:i?`${p.width}px ${p.style} ${p.color.disabled}`:`${p.width}px ${p.style} ${p.color.primary}`,[Jl]:b?`${A.small[d]}px`:y?`${A.large[d]}px`:`${A.medium[d]}px`,[ec]:b?`${m.small[d]}px`:y?`${m.large[d]}px`:`${m.medium[d]}px`,[Ql]:b?`${R.small[d]}px`:y?`${R.large[d]}px`:`${R.medium[d]}px`,[tc]:b?`${M.small[d]}px`:y?`${M.large[d]}px`:`${M.medium[d]}px`}),children:t})};var ac="var(--_1v7zi9y0)",lc="var(--_1v7zi9y1)",cc="var(--_1v7zi9y2)",uc="var(--_1v7zi9y3)",dc="var(--_1v7zi9y4)",fc={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"var(--_1v7zi9y0)",alignItems:"var(--_1v7zi9y1)",paddingTop:"var(--_1v7zi9y2)",paddingBottom:"var(--_1v7zi9y3)",justifyContent:"var(--_1v7zi9y4)"},te=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(te||{});const hc=({children:t,className:e,theme:n=I,align:r=te.Left})=>{const i=St(),{actions:{gap:s,paddingTop:o,paddingBottom:a}}=n;return V("div",{className:e,style:B({[ac]:`${s[i]}px`,[cc]:`${o[i]}px`,[uc]:`${a[i]}px`,[lc]:r===te.Center?"center":"flex-start",[dc]:r===te.Right?"flex-end":r===te.Left?"flex-start":"center"}),children:t})};var pi={iconSize:"var(--_1slxfz50)",iconColor:"var(--_1slxfz51)"},pc={margin:"0 auto",display:"inline-block",verticalAlign:"middle"},mc="_1slxfz53";const gc={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},Nt=({icon:t="",size:e=24,iconPath:n="",color:r,theme:i=I,viewBox:s="0 0 24 24",className:o})=>V("svg",{className:o,style:B({[pi.iconSize]:`${e}px`,[pi.iconColor]:r??i.colors.defaultIcon}),viewBox:s,width:`${e}px`,height:`${e}px`,children:V("path",{className:mc,d:n||gc[t]||""})});var at={overlayOpacity:"var(--_18bqyaq0)",overlayBackgroundColor:"var(--_18bqyaq1)",overlayBlur:"var(--_18bqyaq2)",modalWidth:"var(--_18bqyaq3)",modalPaddingTop:"var(--_18bqyaq4)",modalPaddingBottom:"var(--_18bqyaq5)",modalPaddingLeft:"var(--_18bqyaq6)",modalPaddingRight:"var(--_18bqyaq7)",modalMaxWidth:"var(--_18bqyaq8)",modalMaxHeight:"var(--_18bqyaq9)",modalContentTextAlign:"var(--_18bqyaqa)",modalContentBackgroundColor:"var(--_18bqyaqb)",modalContentBorderRadius:"var(--_18bqyaqc)",modalContentBorders:"var(--_18bqyaqd)"},yc={zIndex:100,position:"fixed",width:"100%",height:"100%",selectors:{"&:before":{content:"''",position:"fixed",top:0,left:0,right:0,bottom:0,opacity:"var(--_18bqyaq0)",backgroundColor:"var(--_18bqyaq1)",backdropFilter:"blur(var(--_18bqyaq2))"}}},vc="_18bqyaqf",bc="_18bqyaqg",rn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(rn||{});const xc=({children:t,align:e=rn.Left,theme:n=I,onModalHide:r,className:i})=>{const s=St(),{global:{paddingLeft:o,paddingRight:a},modal:{overlayBlur:l,overlayOpacity:c,overlayBackgroundColor:u,border:d,width:f,borderRadius:h,backgroundColor:p,paddingTop:g,paddingLeft:x,paddingRight:v,paddingBottom:S}}=n;return V("div",{className:i,style:B({[at.overlayOpacity]:`${c}`,[at.overlayBackgroundColor]:u,[at.overlayBlur]:`${l}px`,[at.modalWidth]:`${f[s]}px`,[at.modalPaddingTop]:`${g[s]}px`,[at.modalPaddingBottom]:`${S[s]}px`,[at.modalPaddingLeft]:`${x[s]}px`,[at.modalPaddingRight]:`${v[s]}px`,[at.modalMaxWidth]:`calc(100% - ${o[s]+a[s]}px)`,[at.modalMaxHeight]:`calc(100% - ${o[s]+a[s]}px)`}),children:ht("div",{className:vc,style:B({[at.modalContentTextAlign]:e===rn.Left?"left":e===rn.Right?"right":"center",[at.modalContentBackgroundColor]:p,[at.modalContentBorderRadius]:`${h}px`,[at.modalContentBorders]:d}),children:[r&&V("button",{className:bc,onClick:r,children:V(Nt,{className:"",theme:n,icon:"close"})}),t]})})};var Ln={videoOpacity:"var(--_18hbdtx0)",videoMaxHeight:"var(--_18hbdtx1)",videoPointerEvents:"var(--_18hbdtx2)"},Sc={},wc="_18hbdtx4",Tc="_18hbdtx5",Cc="_18hbdtx6",Pc="_18hbdtx7",Ac="_18hbdtx8";const Xs=({video:t,isAutoPlay:e,poster:n="",startMuted:r=!1,onPlay:i,onClose:s,onEnded:o,showControls:a=!1,theme:l=I,hidePlayButton:c=!1,isVideoFullWidth:u=!1,isPlayingFullScreen:d=!1,className:f})=>{const h=P.useRef(null),[p,g]=P.useState(!1),[x,v]=P.useState(e||r),S=()=>{var y;i&&i(),(y=h.current)==null||y.play(),g(!0)},w=()=>{var y;s&&s(),(y=h.current)==null||y.pause(),g(!1)},A=()=>{var y;(y=h.current)==null||y.pause(),g(!1)},m=()=>{const y=!x;v(y),h.current&&(h.current.muted=y)},R=()=>{o&&o(),w()},M=y=>{y.key==="Escape"&&w()};return P.useEffect(()=>(window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)),[]),ht("div",{className:f,style:B({[Ln.videoMaxHeight]:u?"100vw":"100%",[Ln.videoOpacity]:p?"0":"1",[Ln.videoPointerEvents]:p?"none":"auto"}),children:[V("video",{ref:h,playsInline:!0,onEnded:R,children:V("source",{src:t,type:"video/mp4"})}),n&&V("div",{className:wc,children:V("img",{src:n,alt:""})}),(!c||!e)&&V("button",{className:Tc,onClick:S,"aria-label":"Play",children:V(Nt,{className:"",icon:"play",size:50,theme:l})}),d&&V("button",{className:Pc,onClick:w,"aria-label":"Close",children:V(Nt,{className:"",icon:"close",size:28,theme:l})}),p&&a&&V("button",{className:Cc,onClick:p?A:S,"aria-label":"Pause",children:V(Nt,{className:"",icon:"pause",size:28,theme:l})}),a&&V("button",{className:Ac,onClick:m,"aria-label":"Sound",children:V(Nt,{className:"",icon:x?"volumeUp":"volumeMute",size:28,theme:l})})]})};var Vc={imgMaxWidth:"var(--_13pkfbg0)"},Rc={};const Ec=({children:t,theme:e=I,className:n})=>V("div",{className:n,style:B({[Vc.imgMaxWidth]:"100%"}),children:t});var On={gap:"var(--_1vea7fs0)",displayItem:"var(--_1vea7fs1)",isFullWidth:"var(--_1vea7fs2)"},Mc={gap:"var(--_1vea7fs0)",display:"flex",flexWrap:"nowrap",overflow:"hidden",width:"var(--_1vea7fs2)"};function kc(){const[t,e]=P.useState({width:void 0,height:void 0});return P.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const Dc=({data:t,theme:e=I,displayItem:n=1,isFullWidth:r=!1,displayNavBullets:i=!1,displayNavButtons:s=!1,className:o})=>{const{width:a}=kc(),[l,c]=P.useState(0),u=P.useRef(null),[d,f]=P.useState(n);return P.useEffect(()=>{a&&a>1024?f(n):a&&a>768?f(Math.min(n,2)):f(1)},[a,n]),ht("div",{ref:u,className:o,style:B({[On.gap]:`${e.carousel.gap[0]}px`,[On.displayItem]:`${d}`,[On.isFullWidth]:r?"100vw":"100%"}),children:[t.map((h,p)=>V("div",{children:h},p)),s&&V("button",{onClick:()=>c(Math.max(0,l-1)),children:"Prev"}),s&&V("button",{onClick:()=>c(Math.min(t.length-1,l+1)),children:"Next"}),i&&V("div",{children:t.map((h,p)=>V("span",{onClick:()=>c(p)},p))})]})};var be={},fn=function(){return fn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fn.apply(this,arguments)},_c=function(){function t(e,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(s){i.startTime||(i.startTime=s);var o=s-i.startTime;i.remaining=i.duration-o,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(o,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(o,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(o/i.duration);var a=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=a?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(s){var o,a,l,c,u=s<0?"-":"";o=Math.abs(s).toFixed(i.options.decimalPlaces);var d=(o+="").split(".");if(a=d[0],l=d.length>1?i.options.decimal+d[1]:"",i.options.useGrouping){c="";for(var f=3,h=0,p=0,g=a.length;p<g;++p)i.options.useIndianSeparators&&p===4&&(f=2,h=1),p!==0&&h%f==0&&(c=i.options.separator+c),h++,c=a[g-p-1]+c;a=c}return i.options.numerals&&i.options.numerals.length&&(a=a.replace(/[0-9]/g,function(x){return i.options.numerals[+x]}),l=l.replace(/[0-9]/g,function(x){return i.options.numerals[+x]})),u+i.options.prefix+a+l+i.options.suffix},this.easeOutExpo=function(s,o,a,l){return a*(1-Math.pow(2,-10*s/l))*1024/1023+o},this.options=fn(fn({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof e=="string"?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(s){return s()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,r=e.el.getBoundingClientRect(),i=r.top+window.pageYOffset,s=r.top+r.height+window.pageYOffset;s<n&&s>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>s||i>n)&&!e.paused&&e.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var r=this.countDown?1:-1;this.endVal=e+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(e){var n;if(this.el){var r=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},t.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},t.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();const Lc=Object.freeze(Object.defineProperty({__proto__:null,CountUp:_c},Symbol.toStringTag,{value:"Module"})),Oc=Sl(Lc);var mi;function $c(){if(mi)return be;mi=1,Object.defineProperty(be,"__esModule",{value:!0});var t=P,e=Oc;function n(y,b){var T=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(T!=null){var C,D,W,tt,et=[],H=!0,_=!1;try{if(W=(T=T.call(y)).next,b!==0)for(;!(H=(C=W.call(T)).done)&&(et.push(C.value),et.length!==b);H=!0);}catch(N){_=!0,D=N}finally{try{if(!H&&T.return!=null&&(tt=T.return(),Object(tt)!==tt))return}finally{if(_)throw D}}return et}}function r(y,b){var T=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);b&&(C=C.filter(function(D){return Object.getOwnPropertyDescriptor(y,D).enumerable})),T.push.apply(T,C)}return T}function i(y){for(var b=1;b<arguments.length;b++){var T=arguments[b]!=null?arguments[b]:{};b%2?r(Object(T),!0).forEach(function(C){a(y,C,T[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(T)):r(Object(T)).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(T,C))})}return y}function s(y,b){if(typeof y!="object"||!y)return y;var T=y[Symbol.toPrimitive];if(T!==void 0){var C=T.call(y,b||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(y)}function o(y){var b=s(y,"string");return typeof b=="symbol"?b:String(b)}function a(y,b,T){return b=o(b),b in y?Object.defineProperty(y,b,{value:T,enumerable:!0,configurable:!0,writable:!0}):y[b]=T,y}function l(){return l=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var T=arguments[b];for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&(y[C]=T[C])}return y},l.apply(this,arguments)}function c(y,b){if(y==null)return{};var T={},C=Object.keys(y),D,W;for(W=0;W<C.length;W++)D=C[W],!(b.indexOf(D)>=0)&&(T[D]=y[D]);return T}function u(y,b){if(y==null)return{};var T=c(y,b),C,D;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(y);for(D=0;D<W.length;D++)C=W[D],!(b.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(y,C)&&(T[C]=y[C])}return T}function d(y,b){return f(y)||n(y,b)||h(y,b)||g()}function f(y){if(Array.isArray(y))return y}function h(y,b){if(y){if(typeof y=="string")return p(y,b);var T=Object.prototype.toString.call(y).slice(8,-1);if(T==="Object"&&y.constructor&&(T=y.constructor.name),T==="Map"||T==="Set")return Array.from(y);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return p(y,b)}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var T=0,C=new Array(b);T<b;T++)C[T]=y[T];return C}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?t.useLayoutEffect:t.useEffect;function v(y){var b=t.useRef(y);return x(function(){b.current=y}),t.useCallback(function(){for(var T=arguments.length,C=new Array(T),D=0;D<T;D++)C[D]=arguments[D];return b.current.apply(void 0,C)},[])}var S=function(b,T){var C=T.decimal,D=T.decimals,W=T.duration,tt=T.easingFn,et=T.end,H=T.formattingFn,_=T.numerals,N=T.prefix,st=T.separator,nt=T.start,_t=T.suffix,Lt=T.useEasing,yt=T.useGrouping,pt=T.useIndianSeparators,Ot=T.enableScrollSpy,dt=T.scrollSpyDelay,$t=T.scrollSpyOnce,vt=T.plugin;return new e.CountUp(b,et,{startVal:nt,duration:W,decimal:C,decimalPlaces:D,easingFn:tt,formattingFn:H,numerals:_,separator:st,prefix:N,suffix:_t,plugin:vt,useEasing:Lt,useIndianSeparators:pt,useGrouping:yt,enableScrollSpy:Ot,scrollSpyDelay:dt,scrollSpyOnce:$t})},w=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],A={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},m=function(b){var T=Object.fromEntries(Object.entries(b).filter(function(ot){var wt=d(ot,2),Gt=wt[1];return Gt!==void 0})),C=t.useMemo(function(){return i(i({},A),T)},[b]),D=C.ref,W=C.startOnMount,tt=C.enableReinitialize,et=C.delay,H=C.onEnd,_=C.onStart,N=C.onPauseResume,st=C.onReset,nt=C.onUpdate,_t=u(C,w),Lt=t.useRef(),yt=t.useRef(),pt=t.useRef(!1),Ot=v(function(){return S(typeof D=="string"?D:D.current,_t)}),dt=v(function(ot){var wt=Lt.current;if(wt&&!ot)return wt;var Gt=Ot();return Lt.current=Gt,Gt}),$t=v(function(){var ot=function(){return dt(!0).start(function(){H==null||H({pauseResume:vt,reset:bt,start:qt,update:Wt})})};et&&et>0?yt.current=setTimeout(ot,et*1e3):ot(),_==null||_({pauseResume:vt,reset:bt,update:Wt})}),vt=v(function(){dt().pauseResume(),N==null||N({reset:bt,start:qt,update:Wt})}),bt=v(function(){dt().el&&(yt.current&&clearTimeout(yt.current),dt().reset(),st==null||st({pauseResume:vt,start:qt,update:Wt}))}),Wt=v(function(ot){dt().update(ot),nt==null||nt({pauseResume:vt,reset:bt,start:qt})}),qt=v(function(){bt(),$t()}),E=v(function(ot){W&&(ot&&bt(),$t())});return t.useEffect(function(){pt.current?tt&&E(!0):(pt.current=!0,E())},[tt,pt,E,et,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.formattingFn]),t.useEffect(function(){return function(){bt()}},[bt]),{start:qt,pauseResume:vt,reset:bt,update:Wt,getCountUp:dt}},R=["className","redraw","containerProps","children","style"],M=function(b){var T=b.className,C=b.redraw,D=b.containerProps,W=b.children,tt=b.style,et=u(b,R),H=t.useRef(null),_=t.useRef(!1),N=m(i(i({},et),{},{ref:H,startOnMount:typeof W!="function"||b.delay===0,enableReinitialize:!1})),st=N.start,nt=N.reset,_t=N.update,Lt=N.pauseResume,yt=N.getCountUp,pt=v(function(){st()}),Ot=v(function(vt){b.preserveValue||nt(),_t(vt)}),dt=v(function(){if(typeof b.children=="function"&&!(H.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}yt()});t.useEffect(function(){dt()},[dt]),t.useEffect(function(){_.current&&Ot(b.end)},[b.end,Ot]);var $t=C&&b;return t.useEffect(function(){C&&_.current&&pt()},[pt,C,$t]),t.useEffect(function(){!C&&_.current&&pt()},[pt,C,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.className,b.formattingFn]),t.useEffect(function(){_.current=!0},[]),typeof W=="function"?W({countUpRef:H,start:st,reset:nt,update:_t,pauseResume:Lt,getCountUp:yt}):t.createElement("span",l({className:T,ref:H,style:tt},D),typeof b.start<"u"?yt().formattingFn(b.start):"")};return be.default=M,be.useCountUp=m,be}var Fc=$c();const Bc=xl(Fc);var Qn=new Map,Ke=new WeakMap,gi=0,Ic=void 0;function Nc(t){return t?(Ke.has(t)||(gi+=1,Ke.set(t,gi.toString())),Ke.get(t)):"0"}function jc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?Nc(t.root):t[e]}`).toString()}function Uc(t){const e=jc(t);let n=Qn.get(e);if(!n){const r=new Map;let i;const s=new IntersectionObserver(o=>{o.forEach(a=>{var l;const c=a.isIntersecting&&i.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=r.get(a.target))==null||l.forEach(u=>{u(c,a)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:s,elements:r},Qn.set(e,n)}return n}function zc(t,e,n={},r=Ic){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:i,observer:s,elements:o}=Uc(n),a=o.get(t)||[];return o.has(t)||o.set(t,a),a.push(e),s.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(t),s.unobserve(t)),o.size===0&&(s.disconnect(),Qn.delete(i))}}function Wc({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:i,triggerOnce:s,skip:o,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[d,f]=lt.useState(null),h=lt.useRef(c),[p,g]=lt.useState({inView:!!a,entry:void 0});h.current=c,lt.useEffect(()=>{if(o||!d)return;let w;return w=zc(d,(A,m)=>{g({inView:A,entry:m}),h.current&&h.current(A,m),m.isIntersecting&&s&&w&&(w(),w=void 0)},{root:i,rootMargin:r,threshold:t,trackVisibility:n,delay:e},l),()=>{w&&w()}},[Array.isArray(t)?t.toString():t,d,i,r,s,o,n,l,e]);const x=(u=p.entry)==null?void 0:u.target,v=lt.useRef(void 0);!d&&x&&!s&&!o&&v.current!==x&&(v.current=x,g({inView:!!a,entry:void 0}));const S=[f,p.inView,p.entry];return S.ref=S[0],S.inView=S[1],S.entry=S[2],S}var qc={keyNumberPaddingBottom:"var(--_177g97f0)"},Gc={display:"flex",flexDirection:"column"},Hc="_177g97f1";const Kc=({label:t,suffix:e,keyNumber:n,className:r,theme:i=I})=>{const s=St(),[o,a]=Wc({threshold:.3,triggerOnce:!0}),{keyNumber:{paddingBottom:l}}=i;return ht("div",{ref:o,className:r,children:[ht("div",{className:Hc,style:B({[qc.keyNumberPaddingBottom]:`${l[s]}px`}),children:[V("span",{children:V(Bc,{end:a?n:0,duration:8})}),e]}),V("p",{children:t})]})};var yi={videoFullWidthLeft:"var(--_29n9il0)",videoFullWidthRight:"var(--_29n9il1)"},Yc={height:0,width:"100vw",overflow:"hidden",position:"relative",paddingBottom:"56.25%",left:"var(--_29n9il0)",right:"var(--_29n9il1)"};const Xc=({video:t,poster:e,className:n,isAutoPlay:r,showControls:i,startMuted:s=!1,theme:o=I})=>{const a=St(),{global:{maxWidth:l,paddingLeft:c,paddingRight:u}}=o;return V("div",{className:n,style:B({[yi.videoFullWidthLeft]:`min(calc((100vw - ${l}px) / -2), -${c[a]}px)`,[yi.videoFullWidthRight]:`min(calc((100vw - ${l}px) / -2), -${u[a]}px)`}),children:V(Xs,{video:t,theme:o,poster:e,isVideoFullWidth:!0,isAutoPlay:r,startMuted:s,showControls:i})})};var Zc={languageSwitcherWidth:"var(--_9kkynw0)"},Jc={marginLeft:"auto",marginRight:"auto",position:"relative",width:"var(--_9kkynw0)"},Qc="_9kkynw1",tu="_9kkynw2";const eu=({currentLocale:t,handleChange:e,locales:n,theme:r=I,className:i,translations:s})=>{const o=St(),{languageSwitcher:a}=r;return ht("div",{className:i,style:B({[Zc.languageSwitcherWidth]:`${a.width[o]}px`}),children:[V("div",{className:Qc,children:V(Nt,{theme:r,icon:"caret"})}),V("select",{className:tu,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((l,c)=>V("option",{value:l,disabled:l===t,children:s[l]},`locale-${c}`))})]})};var nu="var(--_1wp326d0)",ru="var(--_1wp326d1)",iu={display:"flex",backgroundColor:"var(--_1wp326d1)",flex:"1 1 auto",minHeight:"45vh",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center","@media":{"screen and (min-width: 768px)":{minHeight:"var(--_1wp326d0)"}}};const su=({children:t,className:e,theme:n=I})=>{const{main:{backgroundColor:r,minHeight:i}}=n;return V("main",{className:e,style:B({[nu]:i,[ru]:r}),children:t})};var vi={overlayBottom:"var(--xr8l1e0)",overlayTransform:"var(--xr8l1e1)"},ou="xr8l1e2";const au=({theme:t=I,isOpen:e=!1,children:n,className:r})=>(P.useEffect(()=>{const i=document.getElementsByTagName("html")[0];i.style.overflow="",e&&(i.style.overflow="hidden")},[e]),V("div",{className:`${ou} ${r}`,style:B({[vi.overlayBottom]:e?"-100vh":"100%",[vi.overlayTransform]:e?"translate(0, 0)":"translate(0, -100%)"}),children:n}));var lu={displayOnDesktop:"var(--_1c0ak730)"},cu="_1c0ak731",bi="_1c0ak732";const uu=({theme:t=I,isNavOpen:e=!1,onToggleNav:n,displayOnDesktop:r,className:i})=>{const s=()=>{window.scrollTo({top:0,behavior:"smooth"}),n()};return ht("button",{className:`${cu} ${i}`,style:B({[lu.displayOnDesktop]:r?"block":"none"}),onClick:s,"aria-label":"Toggle nav",children:[V("span",{className:bi,"data-open":e?"true":"false"}),V("span",{className:bi,"data-open":e?"true":"false"})]})};var du={isFixed:"var(--_15wg1hu0)"},fu={zIndex:30,width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",position:"var(--_15wg1hu0)",backgroundColor:"var(--header-bg, white)"},hu="_15wg1hu1",pu="_15wg1hu2";const mu=({children:t,isFixed:e=!1,childrenOverlay:n,theme:r=I,hideToggleNav:i=!1,displayToggleNavOnDesktop:s=!1,className:o})=>{const[a,l]=P.useState(!1);return ht(Ul,{children:[ht("header",{className:`${hu} ${o}`,style:B({[du.isFixed]:e?"fixed":"relative"}),children:[n&&V(au,{className:"",theme:r,isOpen:a,children:n}),t,!i&&V(uu,{className:"",theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),e&&V("div",{className:pu})]})};var Jt={footerGap:"var(--fl7h880)",footerBackgroundColor:"var(--fl7h881)",footerPaddingTop:"var(--fl7h882)",footerPaddingBottom:"var(--fl7h883)",footerPaddingLeft:"var(--fl7h884)",footerPaddingRight:"var(--fl7h885)"},gu={zIndex:20,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",justifyContent:"space-between",gap:"var(--fl7h880)",backgroundColor:"var(--fl7h881)",paddingTop:"var(--fl7h882)",paddingBottom:"var(--fl7h883)",paddingLeft:"var(--fl7h884)",paddingRight:"var(--fl7h885)"};const yu=({children:t,className:e,theme:n=I})=>{const r=St(),{global:{paddingLeft:i,paddingRight:s},footer:{gap:o,backgroundColor:a,paddingTop:l,paddingBottom:c}}=n;return V("footer",{className:e,style:B({[Jt.footerGap]:`${o[r]}px`,[Jt.footerBackgroundColor]:a,[Jt.footerPaddingTop]:`${l[r]}px`,[Jt.footerPaddingBottom]:`${c[r]}px`,[Jt.footerPaddingLeft]:`${i[r]}px`,[Jt.footerPaddingRight]:`${s[r]}px`}),children:t})};var Qt={columnsGap:"var(--mx2tfy0)",columnsTextAlign:"var(--mx2tfy1)",columnsJustifyContent:"var(--mx2tfy2)",isCentered:"var(--mx2tfy3)",isInverted:"var(--mx2tfy4)",column0:"var(--mx2tfy5)",column1:"var(--mx2tfy6)",column2:"var(--mx2tfy7)",column3:"var(--mx2tfy8)"},vu={},ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ee||{});const bu=({columns:t,children:e,align:n=ee.Left,isCentered:r=!1,isInverted:i=!1,theme:s=I,className:o})=>{const a=t.reduce((l,c,u)=>(l[Qt[`column${u}`]]=`${c}%`,l),{});return V("div",{className:o,style:B({...a,[Qt.columnsGap]:`${s.columns.gap}px`,[Qt.columnsTextAlign]:n===ee.Center?"center":"left",[Qt.columnsJustifyContent]:n===ee.Right?"flex-end":n===ee.Center?"center":"flex-start",[Qt.isCentered]:r?"center":"stretch",[Qt.isInverted]:i?"row-reverse":"row"}),children:e})},Zs=P.createContext({});function Js(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Sr=P.createContext(null),Qs=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function xu(t=!0){const e=P.useContext(Sr);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=P.useId();P.useEffect(()=>{if(t)return i(s)},[t]);const o=P.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const wr=typeof window<"u",to=wr?P.useLayoutEffect:P.useEffect,ct=t=>t;let pe=ct,Et=ct;process.env.NODE_ENV!=="production"&&(pe=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Et=(t,e)=>{if(!t)throw new Error(e)});function Tr(t){let e;return()=>(e===void 0&&(e=t()),e)}const ue=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},At=t=>t*1e3,kt=t=>t/1e3,Su={skipAnimations:!1,useManualTiming:!1},Ye=["read","resolveKeyframes","update","preRender","render","postRender"];function wu(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&i?n:r;return d&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(u))}};return c}const Tu=40;function eo(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ye.reduce((v,S)=>(v[S]=wu(s),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,h=()=>{const v=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,Tu),1),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(h))},p=()=>{n=!0,r=!0,i.isProcessing||t(h)};return{schedule:Ye.reduce((v,S)=>{const w=o[S];return v[S]=(A,m=!1,R=!1)=>(n||p(),w.schedule(A,m,R)),v},{}),cancel:v=>{for(let S=0;S<Ye.length;S++)o[Ye[S]].cancel(v)},state:i,steps:o}}const{schedule:j,cancel:jt,state:K,steps:$n}=eo(typeof requestAnimationFrame<"u"?requestAnimationFrame:ct,!0),no=P.createContext({strict:!1}),xi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},de={};for(const t in xi)de[t]={isEnabled:e=>xi[t].some(n=>!!e[n])};function Cu(t){for(const e in t)de[e]={...de[e],...t[e]}}const Pu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Pu.has(t)}let ro=t=>!hn(t);function Au(t){t&&(ro=e=>e.startsWith("on")?!hn(e):t(e))}try{Au(require("@emotion/is-prop-valid").default)}catch{}function Vu(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(ro(i)||n===!0&&hn(i)||!e&&!hn(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Si=new Set;function Tn(t,e,n){t||Si.has(e)||(console.warn(e),Si.add(e))}function Ru(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Tn(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Cn=P.createContext({});function Pn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Le(t){return typeof t=="string"||Array.isArray(t)}const Cr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pr=["initial",...Cr];function An(t){return Pn(t.animate)||Pr.some(e=>Le(t[e]))}function io(t){return!!(An(t)||t.variants)}function Eu(t,e){if(An(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Le(n)?n:void 0,animate:Le(r)?r:void 0}}return t.inherit!==!1?e:{}}function Mu(t){const{initial:e,animate:n}=Eu(t,P.useContext(Cn));return P.useMemo(()=>({initial:e,animate:n}),[wi(e),wi(n)])}function wi(t){return Array.isArray(t)?t.join(" "):t}const ku=Symbol.for("motionComponentSymbol");function ne(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Du(t,e,n){return P.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):ne(n)&&(n.current=r))},[e])}const Ar=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_u="framerAppearId",so="data-"+Ar(_u),{schedule:Vr,cancel:Cm}=eo(queueMicrotask,!1),oo=P.createContext({});function Lu(t,e,n,r,i){var s,o;const{visualElement:a}=P.useContext(Cn),l=P.useContext(no),c=P.useContext(Sr),u=P.useContext(Qs).reducedMotion,d=P.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=P.useContext(oo);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Ou(d.current,n,i,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{f&&p.current&&f.update(n,c)});const g=n[so],x=P.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return to(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Vr.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),x.current=!1))}),f}function Ou(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:ao(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&ne(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function ao(t){if(t)return t.options.allowProjection!==!1?t.projection:ao(t.parent)}function $u({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var s,o;t&&Cu(t);function a(c,u){let d;const f={...P.useContext(Qs),...c,layoutId:Fu(c)},{isStatic:h}=f,p=Mu(c),g=r(c,h);if(!h&&wr){Bu(f,t);const x=Iu(f);d=x.MeasureLayout,p.visualElement=Lu(i,g,f,e,x.ProjectionNode)}return ln.jsxs(Cn.Provider,{value:p,children:[d&&p.visualElement?ln.jsx(d,{visualElement:p.visualElement,...f}):null,n(i,c,Du(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=P.forwardRef(a);return l[ku]=i,l}function Fu({layoutId:t}){const e=P.useContext(Zs).id;return e&&t!==void 0?e+"-"+t:t}function Bu(t,e){const n=P.useContext(no).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?pe(!1,r):Et(!1,r)}}function Iu(t){const{drag:e,layout:n}=de;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const lo=t=>e=>typeof e=="string"&&e.startsWith(t),Rr=lo("--"),Nu=lo("var(--"),Er=t=>Nu(t)?ju.test(t.split("/*")[0].trim()):!1,ju=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Oe={};function Uu(t){for(const e in t)Oe[e]=t[e],Rr(e)&&(Oe[e].isCSSVariable=!0)}const me=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zt=new Set(me);function co(t,{layout:e,layoutId:n}){return Zt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Oe[t]||t==="opacity")}const Q=t=>!!(t&&t.getVelocity),uo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Dt=(t,e,n)=>n>e?e:n<t?t:n,ge={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},$e={...ge,transform:t=>Dt(0,1,t)},Xe={...ge,default:1},Ue=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),It=Ue("deg"),Vt=Ue("%"),k=Ue("px"),zu=Ue("vh"),Wu=Ue("vw"),Ti={...Vt,parse:t=>Vt.parse(t)/100,transform:t=>Vt.transform(t*100)},qu={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,radius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,backgroundPositionX:k,backgroundPositionY:k},Gu={rotate:It,rotateX:It,rotateY:It,rotateZ:It,scale:Xe,scaleX:Xe,scaleY:Xe,scaleZ:Xe,skew:It,skewX:It,skewY:It,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:$e,originX:Ti,originY:Ti,originZ:k},Ci={...ge,transform:Math.round},Mr={...qu,...Gu,zIndex:Ci,size:k,fillOpacity:$e,strokeOpacity:$e,numOctaves:Ci},Hu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ku=me.length;function Yu(t,e,n){let r="",i=!0;for(let s=0;s<Ku;s++){const o=me[s],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=uo(a,Mr[o]);if(!l){i=!1;const u=Hu[o]||o;r+=`${u}(${c}) `}n&&(e[o]=c)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function kr(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(Zt.has(l)){o=!0;continue}else if(Rr(l)){i[l]=c;continue}else{const u=uo(c,Mr[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(e.transform||(o||n?r.transform=Yu(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${c} ${u}`}}const Dr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fo(t,e,n){for(const r in e)!Q(e[r])&&!co(r,n)&&(t[r]=e[r])}function Xu({transformTemplate:t},e){return P.useMemo(()=>{const n=Dr();return kr(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Zu(t,e){const n=t.style||{},r={};return fo(r,n,t),Object.assign(r,Xu(t,e)),r}function Ju(t,e){const n={},r=Zu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Qu=["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 _r(t){return typeof t!="string"||t.includes("-")?!1:!!(Qu.indexOf(t)>-1||/[A-Z]/u.test(t))}const td={offset:"stroke-dashoffset",array:"stroke-dasharray"},ed={offset:"strokeDashoffset",array:"strokeDasharray"};function nd(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?td:ed;t[s.offset]=k.transform(-r);const o=k.transform(e),a=k.transform(n);t[s.array]=`${o} ${a}`}function Pi(t,e,n){return typeof t=="string"?t:k.transform(e+n*t)}function rd(t,e,n){const r=Pi(e,t.x,t.width),i=Pi(n,t.y,t.height);return`${r} ${i}`}function Lr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(kr(t,c,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:p}=t;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(i!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=rd(p,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&nd(f,o,a,l,!1)}const ho=()=>({...Dr(),attrs:{}}),Or=t=>typeof t=="string"&&t.toLowerCase()==="svg";function id(t,e,n,r){const i=P.useMemo(()=>{const s=ho();return Lr(s,e,Or(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};fo(s,t.style,t),i.style={...s,...i.style}}return i}function sd(t=!1){return(n,r,i,{latestValues:s},o)=>{const l=(_r(n)?id:Ju)(r,s,o,n),c=Vu(r,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:i}:{},{children:d}=r,f=P.useMemo(()=>Q(d)?d.get():d,[d]);return P.createElement(n,{...u,children:f})}}function Ai(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function $r(t,e,n,r){if(typeof e=="function"){const[i,s]=Ai(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=Ai(r);e=e(n!==void 0?n:t.custom,i,s)}return e}const tr=t=>Array.isArray(t),od=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),ad=t=>tr(t)?t[t.length-1]||0:t;function sn(t){const e=Q(t)?t.get():t;return od(e)?e.toValue():e}function ld({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,s){const o={latestValues:cd(r,i,s,t),renderState:e()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const po=t=>(e,n)=>{const r=P.useContext(Cn),i=P.useContext(Sr),s=()=>ld(t,e,r,i);return n?s():Js(s)};function cd(t,e,n,r){const i={},s=r(t,{});for(const f in s)i[f]=sn(s[f]);let{initial:o,animate:a}=t;const l=An(t),c=io(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Pn(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=$r(t,f[h]);if(p){const{transitionEnd:g,transition:x,...v}=p;for(const S in v){let w=v[S];if(Array.isArray(w)){const A=u?w.length-1:0;w=w[A]}w!==null&&(i[S]=w)}for(const S in g)i[S]=g[S]}}}return i}function Fr(t,e,n){var r;const{style:i}=t,s={};for(const o in i)(Q(i[o])||e.style&&Q(e.style[o])||co(o,t)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const ud={useVisualState:po({scrapeMotionValuesFromProps:Fr,createRenderState:Dr})};function mo(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function go(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const yo=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 vo(t,e,n,r){go(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(yo.has(i)?i:Ar(i),e.attrs[i])}function bo(t,e,n){const r=Fr(t,e,n);for(const i in t)if(Q(t[i])||Q(e[i])){const s=me.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const Vi=["x","y","width","height","cx","cy","r"],dd={useVisualState:po({scrapeMotionValuesFromProps:bo,createRenderState:ho,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in i)if(Zt.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a<Vi.length;a++){const l=Vi[a];t[l]!==e[l]&&(o=!0)}o&&j.read(()=>{mo(n,r),j.render(()=>{Lr(r,i,Or(n.tagName),t.transformTemplate),vo(n,r)})})}})};function fd(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={..._r(r)?dd:ud,preloadedFeatures:t,useRender:sd(i),createVisualElement:e,Component:r};return $u(o)}}function Fe(t,e,n){const r=t.getProps();return $r(r,e,n!==void 0?n:r.custom,t)}const hd=Tr(()=>window.ScrollTimeline!==void 0);class pd{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(hd()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class md extends pd{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Br(t,e){return t?t[e]||t.default||t:void 0}const er=2e4;function xo(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<er;)e+=n,r=t.next(e);return e>=er?1/0:e}function Ir(t){return typeof t=="function"}function Ri(t,e){t.timeline=e,t.onfinish=null}const Nr=t=>Array.isArray(t)&&typeof t[0]=="number",gd={linearEasing:void 0};function yd(t,e){const n=Tr(t);return()=>{var r;return(r=gd[e])!==null&&r!==void 0?r:n()}}const pn=yd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),So=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=t(ue(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function wo(t){return!!(typeof t=="function"&&pn()||!t||typeof t=="string"&&(t in nr||pn())||Nr(t)||Array.isArray(t)&&t.every(wo))}const Se=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,nr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Se([0,.65,.55,1]),circOut:Se([.55,0,1,.45]),backIn:Se([.31,.01,.66,-.59]),backOut:Se([.33,1.53,.69,.99])};function To(t,e){if(t)return typeof t=="function"&&pn()?So(t,e):Nr(t)?Se(t):Array.isArray(t)?t.map(n=>To(n,e)||nr.easeOut):nr[t]}const xt={x:!1,y:!1};function Co(){return xt.x||xt.y}function Po(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function Ao(t,e){const n=Po(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Ei(t){return!(t.pointerType==="touch"||Co())}function vd(t,e,n={}){const[r,i,s]=Ao(t,n),o=a=>{if(!Ei(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ei(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}function mn(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const Vo=(t,e)=>e?t===e?!0:Vo(t,e.parentElement):!1,jr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,bd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xd(t){return bd.has(t.tagName)||t.tabIndex!==-1}const we=new WeakSet;function Mi(t){return e=>{e.key==="Enter"&&t(e)}}function Fn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sd=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Mi(()=>{if(we.has(n))return;Fn(n,"down");const i=Mi(()=>{Fn(n,"up")}),s=()=>Fn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function ki(t){return jr(t)&&!Co()}function wd(t,e,n={}){const[r,i,s]=Ao(t,n),o=a=>{const l=a.currentTarget;if(!l||!ki(a)||we.has(l))return;we.add(l),mn(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",d),l.removeEventListener("pointercancel",f),mn(h,"release"),!(!ki(h)||!we.has(l))&&(we.delete(l),typeof c=="function"&&c(h,{success:p}))},d=h=>{(h.isTrusted?Td(h,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(h,!1):u(h,!(l instanceof Element)||Vo(l,h.target))},f=h=>{u(h,!1)};l.addEventListener("pointerup",d,i),l.addEventListener("pointercancel",f,i),l.addEventListener("lostpointercapture",f,i)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!xd(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,i),l&&a.addEventListener("focus",c=>Sd(c,i),i)}),s}function Td(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Cd(t){return t==="x"||t==="y"?xt[t]?null:(xt[t]=!0,()=>{xt[t]=!1}):xt.x||xt.y?null:(xt.x=xt.y=!0,()=>{xt.x=xt.y=!1})}const Ro=new Set(["width","height","top","left","right","bottom",...me]);let on;function Pd(){on=void 0}const Rt={now:()=>(on===void 0&&Rt.set(K.isProcessing||Su.useManualTiming?K.timestamp:performance.now()),on),set:t=>{on=t,queueMicrotask(Pd)}};function Ur(t,e){t.indexOf(e)===-1&&t.push(e)}function zr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Wr{constructor(){this.subscriptions=[]}add(e){return Ur(this.subscriptions,e),()=>zr(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Eo(t,e){return e?t*(1e3/e):0}const Di=30,Ad=t=>!isNaN(parseFloat(t));class Vd{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Rt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Rt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ad(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Tn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Wr);const r=this.events[e].add(n);return e==="change"?()=>{r(),j.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Di)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Di);return Eo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Be(t,e){return new Vd(t,e)}function Rd(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Be(n))}function qr(t,e){const n=Fe(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=ad(s[o]);Rd(t,o,a)}}function Ed(t){return!!(Q(t)&&t.add)}function rr(t,e){const n=t.getValue("willChange");if(Ed(n))return n.add(e)}function Mo(t){return t.props[so]}const ko=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Md=1e-7,kd=12;function Dd(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=ko(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>Md&&++a<kd);return o}function ze(t,e,n,r){if(t===e&&n===r)return ct;const i=s=>Dd(s,0,1,t,n);return s=>s===0||s===1?s:ko(i(s),e,r)}const Do=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_o=t=>e=>1-t(1-e),Lo=ze(.33,1.53,.69,.99),Gr=_o(Lo),Oo=Do(Gr),$o=t=>(t*=2)<1?.5*Gr(t):.5*(2-Math.pow(2,-10*(t-1))),Hr=t=>1-Math.sin(Math.acos(t)),Fo=_o(Hr),Bo=Do(Hr),Io=t=>/^0[^.\s]+$/u.test(t);function _d(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Io(t):!0}const Ce=t=>Math.round(t*1e5)/1e5,Kr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ld(t){return t==null}const Od=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yr=(t,e)=>n=>!!(typeof n=="string"&&Od.test(n)&&n.startsWith(t)||e&&!Ld(n)&&Object.prototype.hasOwnProperty.call(n,e)),No=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Kr);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},$d=t=>Dt(0,255,t),Bn={...ge,transform:t=>Math.round($d(t))},Yt={test:Yr("rgb","red"),parse:No("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Bn.transform(t)+", "+Bn.transform(e)+", "+Bn.transform(n)+", "+Ce($e.transform(r))+")"};function Fd(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ir={test:Yr("#"),parse:Fd,transform:Yt.transform},re={test:Yr("hsl","hue"),parse:No("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Vt.transform(Ce(e))+", "+Vt.transform(Ce(n))+", "+Ce($e.transform(r))+")"},J={test:t=>Yt.test(t)||ir.test(t)||re.test(t),parse:t=>Yt.test(t)?Yt.parse(t):re.test(t)?re.parse(t):ir.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Yt.transform(t):re.transform(t)},Bd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Id(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Kr))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Bd))===null||n===void 0?void 0:n.length)||0)>0}const jo="number",Uo="color",Nd="var",jd="var(",_i="${}",Ud=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ie(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(Ud,l=>(J.test(l)?(r.color.push(s),i.push(Uo),n.push(J.parse(l))):l.startsWith(jd)?(r.var.push(s),i.push(Nd),n.push(l)):(r.number.push(s),i.push(jo),n.push(parseFloat(l))),++s,_i)).split(_i);return{values:n,split:a,indexes:r,types:i}}function zo(t){return Ie(t).values}function Wo(t){const{split:e,types:n}=Ie(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===jo?s+=Ce(i[o]):a===Uo?s+=J.transform(i[o]):s+=i[o]}return s}}const zd=t=>typeof t=="number"?0:t;function Wd(t){const e=zo(t);return Wo(t)(e.map(zd))}const Ut={test:Id,parse:zo,createTransformer:Wo,getAnimatableNone:Wd},qd=new Set(["brightness","contrast","saturate","opacity"]);function Gd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Kr)||[];if(!r)return t;const i=n.replace(r,"");let s=qd.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const Hd=/\b([a-z-]*)\(.*?\)/gu,sr={...Ut,getAnimatableNone:t=>{const e=t.match(Hd);return e?e.map(Gd).join(" "):t}},Kd={...Mr,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:sr,WebkitFilter:sr},Xr=t=>Kd[t];function qo(t,e){let n=Xr(t);return n!==sr&&(n=Ut),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Yd=new Set(["auto","none","0"]);function Xd(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!Yd.has(s)&&Ie(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=qo(n,i)}const Li=t=>t===ge||t===k,Oi=(t,e)=>parseFloat(t.split(", ")[e]),$i=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Oi(i[1],e);{const s=r.match(/^matrix\((.+)\)$/u);return s?Oi(s[1],t):0}},Zd=new Set(["x","y","z"]),Jd=me.filter(t=>!Zd.has(t));function Qd(t){const e=[];return Jd.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const fe={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:$i(4,13),y:$i(5,14)};fe.translateX=fe.x;fe.translateY=fe.y;const Xt=new Set;let or=!1,ar=!1;function Go(){if(ar){const t=Array.from(Xt).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Qd(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ar=!1,or=!1,Xt.forEach(t=>t.complete()),Xt.clear()}function Ho(){Xt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ar=!0)})}function tf(){Ho(),Go()}class Zr{constructor(e,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xt.add(this),or||(or=!0,j.read(Ho),j.resolveKeyframes(Go))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ko=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ef=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nf(t){const e=ef.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const rf=4;function Yo(t,e,n=1){Et(n<=rf,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=nf(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return Ko(o)?parseFloat(o):o}return Er(i)?Yo(i,e,n+1):i}const Xo=t=>e=>e.test(t),sf={test:t=>t==="auto",parse:t=>t},Zo=[ge,k,Vt,It,Wu,zu,sf],Fi=t=>Zo.find(Xo(t));class Jo extends Zr{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Er(c))){const u=Yo(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ro.has(r)||e.length!==2)return;const[i,s]=e,o=Fi(i),a=Fi(s);if(o!==a)if(Li(o)&&Li(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)_d(e[i])&&r.push(i);r.length&&Xd(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fe[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=fe[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Bi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ut.test(t)||t==="0")&&!t.startsWith("url("));function of(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function af(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=Bi(i,e),a=Bi(s,e);return pe(o===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!a?!1:of(t)||(n==="spring"||Ir(n))&&r}const lf=t=>t!==null;function Vn(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(lf),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const cf=40;class Qo{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Rt.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>cf?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&tf(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Rt.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!af(e,r,i,s))if(o)this.options.duration=0;else{l&&l(Vn(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const z=(t,e,n)=>t+(e-t)*n;function In(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function uf({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=In(l,a,t+1/3),s=In(l,a,t),o=In(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function gn(t,e){return n=>n>0?e:t}const Nn=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},df=[ir,Yt,re],ff=t=>df.find(e=>e.test(t));function Ii(t){const e=ff(t);if(pe(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===re&&(n=uf(n)),n}const Ni=(t,e)=>{const n=Ii(t),r=Ii(e);if(!n||!r)return gn(t,e);const i={...n};return s=>(i.red=Nn(n.red,r.red,s),i.green=Nn(n.green,r.green,s),i.blue=Nn(n.blue,r.blue,s),i.alpha=z(n.alpha,r.alpha,s),Yt.transform(i))},hf=(t,e)=>n=>e(t(n)),We=(...t)=>t.reduce(hf),lr=new Set(["none","hidden"]);function pf(t,e){return lr.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function mf(t,e){return n=>z(t,e,n)}function Jr(t){return typeof t=="number"?mf:typeof t=="string"?Er(t)?gn:J.test(t)?Ni:vf:Array.isArray(t)?ta:typeof t=="object"?J.test(t)?Ni:gf:gn}function ta(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>Jr(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function gf(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Jr(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function yf(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const vf=(t,e)=>{const n=Ut.createTransformer(e),r=Ie(t),i=Ie(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?lr.has(t)&&!i.values.length||lr.has(e)&&!r.values.length?pf(t,e):We(ta(yf(r,i),i.values),n):(pe(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),gn(t,e))};function ea(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?z(t,e,n):Jr(t)(t,e)}const bf=5;function na(t,e,n){const r=Math.max(e-bf,0);return Eo(n-t(r),e-r)}const U={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ji=.001;function xf({duration:t=U.duration,bounce:e=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,s;pe(t<=At(U.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=Dt(U.minDamping,U.maxDamping,o),t=Dt(U.minDuration,U.maxDuration,kt(t)),o<1?(i=c=>{const u=c*o,d=u*t,f=u-n,h=cr(c,o),p=Math.exp(-d);return ji-f/h*p},s=c=>{const d=c*o*t,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-d),g=cr(Math.pow(c,2),o);return(-i(c)+ji>0?-1:1)*((f-h)*p)/g}):(i=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-.001+u*d},s=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=wf(i,s,a);if(t=At(t),isNaN(l))return{stiffness:U.stiffness,damping:U.damping,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:t}}}const Sf=12;function wf(t,e,n){let r=n;for(let i=1;i<Sf;i++)r=r-t(r)/e(r);return r}function cr(t,e){return t*Math.sqrt(1-e*e)}const Tf=["duration","bounce"],Cf=["stiffness","damping","mass"];function Ui(t,e){return e.some(n=>t[n]!==void 0)}function Pf(t){let e={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...t};if(!Ui(t,Cf)&&Ui(t,Tf))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Dt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:U.mass,stiffness:i,damping:s}}else{const n=xf(t);e={...e,...n,mass:U.mass},e.isResolvedFromDuration=!0}return e}function ra(t=U.visualDuration,e=U.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=Pf({...n,velocity:-kt(n.velocity||0)}),p=f||0,g=c/(2*Math.sqrt(l*u)),x=o-s,v=kt(Math.sqrt(l/u)),S=Math.abs(x)<5;r||(r=S?U.restSpeed.granular:U.restSpeed.default),i||(i=S?U.restDelta.granular:U.restDelta.default);let w;if(g<1){const m=cr(v,g);w=R=>{const M=Math.exp(-g*v*R);return o-M*((p+g*v*x)/m*Math.sin(m*R)+x*Math.cos(m*R))}}else if(g===1)w=m=>o-Math.exp(-v*m)*(x+(p+v*x)*m);else{const m=v*Math.sqrt(g*g-1);w=R=>{const M=Math.exp(-g*v*R),y=Math.min(m*R,300);return o-M*((p+g*v*x)*Math.sinh(y)+m*x*Math.cosh(y))/m}}const A={calculatedDuration:h&&d||null,next:m=>{const R=w(m);if(h)a.done=m>=d;else{let M=0;g<1&&(M=m===0?At(p):na(w,m,R));const y=Math.abs(M)<=r,b=Math.abs(o-R)<=i;a.done=y&&b}return a.value=a.done?o:R,a},toString:()=>{const m=Math.min(xo(A),er),R=So(M=>A.next(m*M).value,m,30);return m+"ms "+R}};return A}function zi({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},h=y=>a!==void 0&&y<a||l!==void 0&&y>l,p=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l;let g=n*e;const x=d+g,v=o===void 0?x:o(x);v!==x&&(g=v-d);const S=y=>-g*Math.exp(-y/r),w=y=>v+S(y),A=y=>{const b=S(y),T=w(y);f.done=Math.abs(b)<=c,f.value=f.done?v:T};let m,R;const M=y=>{h(f.value)&&(m=y,R=ra({keyframes:[f.value,p(f.value)],velocity:na(w,y,f.value),damping:i,stiffness:s,restDelta:c,restSpeed:u}))};return M(0),{calculatedDuration:null,next:y=>{let b=!1;return!R&&m===void 0&&(b=!0,A(y),M(y)),m!==void 0&&y>=m?R.next(y-m):(!b&&A(y),f)}}}const Af=ze(.42,0,1,1),Vf=ze(0,0,.58,1),ia=ze(.42,0,.58,1),Rf=t=>Array.isArray(t)&&typeof t[0]!="number",Wi={linear:ct,easeIn:Af,easeInOut:ia,easeOut:Vf,circIn:Hr,circInOut:Bo,circOut:Fo,backIn:Gr,backInOut:Oo,backOut:Lo,anticipate:$o},qi=t=>{if(Nr(t)){Et(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return ze(e,n,r,i)}else if(typeof t=="string")return Et(Wi[t]!==void 0,`Invalid easing type '${t}'`),Wi[t];return t};function Ef(t,e,n){const r=[],i=n||ea,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||ct:e;a=We(l,a)}r.push(a)}return r}function Mf(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(Et(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ef(e,r,i),l=a.length,c=u=>{if(o&&u<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=ue(t[d],t[d+1],u);return a[d](f)};return n?u=>c(Dt(t[0],t[s-1],u)):c}function kf(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=ue(0,e,r);t.push(z(n,1,i))}}function Df(t){const e=[0];return kf(e,t.length-1),e}function _f(t,e){return t.map(n=>n*e)}function Lf(t,e){return t.map(()=>e||ia).splice(0,t.length-1)}function Pe({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Rf(r)?r.map(qi):qi(r),s={done:!1,value:e[0]},o=_f(n&&n.length===e.length?n:Df(e),t),a=Mf(o,e,{ease:Array.isArray(i)?i:Lf(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}const Of=t=>{const e=({timestamp:n})=>t(n);return{start:()=>j.update(e,!0),stop:()=>jt(e),now:()=>K.isProcessing?K.timestamp:Rt.now()}},$f={decay:zi,inertia:zi,tween:Pe,keyframes:Pe,spring:ra},Ff=t=>t/100;class Qr extends Qo{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Zr,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Ir(n)?n:$f[n]||Pe;let l,c;process.env.NODE_ENV!=="production"&&a!==Pe&&Et(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==Pe&&typeof e[0]!="number"&&(l=We(Ff,ea(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});s==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=xo(u));const{calculatedDuration:d}=u,f=d+i,h=f*(r+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:p,repeatDelay:g,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),S=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,A=s;if(h){const y=Math.min(this.currentTime,u)/d;let b=Math.floor(y),T=y%1;!T&&y>=1&&(T=1),T===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(p==="reverse"?(T=1-T,g&&(T-=g/d)):p==="mirror"&&(A=o)),w=Dt(0,1,T)*d}const m=S?{done:!1,value:l[0]}:A.next(w);a&&(m.value=a(m.value));let{done:R}=m;!S&&c!==null&&(R=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return M&&i!==void 0&&(m.value=Vn(l,this.options,i)),x&&x(m.value),M&&this.finish(),m}get duration(){const{resolved:e}=this;return e?kt(e.calculatedDuration):0}get time(){return kt(this.currentTime)}set time(e){e=At(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=kt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Of,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Bf=new Set(["opacity","clipPath","filter","transform"]);function If(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=To(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Nf=Tr(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),yn=10,jf=2e4;function Uf(t){return Ir(t.type)||t.type==="spring"||!wo(t.ease)}function zf(t,e){const n=new Qr({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let s=0;for(;!r.done&&s<jf;)r=n.sample(s),i.push(r.value),s+=yn;return{times:void 0,keyframes:i,duration:s-yn,ease:"linear"}}const sa={anticipate:$o,backInOut:Oo,circInOut:Bo};function Wf(t){return t in sa}class Gi extends Qo{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Jo(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&pn()&&Wf(s)&&(s=sa[s]),Uf(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:p,...g}=this.options,x=zf(e,g);e=x.keyframes,e.length===1&&(e[1]=e[0]),r=x.duration,i=x.times,s=x.ease,o="keyframes"}const u=If(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:s});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ri(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Vn(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return kt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return kt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=At(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return ct;const{animation:r}=n;Ri(r,e)}return ct}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...h}=this.options,p=new Qr({...h,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),g=At(this.time);c.setWithVelocity(p.sample(g-yn).value,p.sample(g).value,yn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Nf()&&r&&Bf.has(r)&&!l&&!c&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const qf={type:"spring",stiffness:500,damping:25,restSpeed:10},Gf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Hf={type:"keyframes",duration:.8},Kf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yf=(t,{keyframes:e})=>e.length>2?Hf:Zt.has(t)?t.startsWith("scale")?Gf(e[1]):qf:Kf;function Xf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const ti=(t,e,n,r={},i,s)=>o=>{const a=Br(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-At(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};Xf(a)||(u={...u,...Yf(t,u)}),u.duration&&(u.duration=At(u.duration)),u.repeatDelay&&(u.repeatDelay=At(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!s&&e.get()!==void 0){const f=Vn(u.keyframes,a);if(f!==void 0)return j.update(()=>{u.onUpdate(f),u.onComplete()}),new md([])}return!s&&Gi.supports(u)?new Gi(u):new Qr(u)};function Zf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function oa(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in l){const f=t.getValue(d,(s=t.latestValues[d])!==null&&s!==void 0?s:null),h=l[d];if(h===void 0||u&&Zf(u,d))continue;const p={delay:n,...Br(o||{},d)};let g=!1;if(window.MotionHandoffAnimation){const v=Mo(t);if(v){const S=window.MotionHandoffAnimation(v,d,j);S!==null&&(p.startTime=S,g=!0)}}rr(t,d),f.start(ti(d,f,h,t.shouldReduceMotion&&Ro.has(d)?{type:!1}:p,t,g));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{j.update(()=>{a&&qr(t,a)})}),c}function ur(t,e,n={}){var r;const i=Fe(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(oa(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return Jf(t,e,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Jf(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(Qf).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(ur(c,e,{...s,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function Qf(t,e){return t.sortNodePosition(e)}function aa(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>ur(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=ur(t,e,n);else{const i=typeof e=="function"?Fe(t,e,n.custom):e;r=Promise.all(oa(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function la(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const th=Pr.length;function ca(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ca(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<th;n++){const r=Pr[n],i=t.props[r];(Le(i)||i===!1)&&(e[r]=i)}return e}const eh=[...Cr].reverse(),nh=Cr.length;function rh(t){return e=>Promise.all(e.map(({animation:n,options:r})=>aa(t,n,r)))}function ih(t){let e=rh(t),n=Hi(),r=!0;const i=l=>(c,u)=>{var d;const f=Fe(t,u,l==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:p,...g}=f;c={...c,...g,...p}}return c};function s(l){e=l(t)}function o(l){const{props:c}=t,u=ca(t.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let x=0;x<nh;x++){const v=eh[x],S=n[v],w=c[v]!==void 0?c[v]:u[v],A=Le(w),m=v===l?S.isActive:null;m===!1&&(p=x);let R=w===u[v]&&w!==c[v]&&A;if(R&&r&&t.manuallyAnimateOnMount&&(R=!1),S.protectedKeys={...h},!S.isActive&&m===null||!w&&!S.prevProp||Pn(w)||typeof w=="boolean")continue;const M=sh(S.prevProp,w);let y=M||v===l&&S.isActive&&!R&&A||x>p&&A,b=!1;const T=Array.isArray(w)?w:[w];let C=T.reduce(i(v),{});m===!1&&(C={});const{prevResolvedValues:D={}}=S,W={...D,...C},tt=_=>{y=!0,f.has(_)&&(b=!0,f.delete(_)),S.needsAnimating[_]=!0;const N=t.getValue(_);N&&(N.liveStyle=!1)};for(const _ in W){const N=C[_],st=D[_];if(h.hasOwnProperty(_))continue;let nt=!1;tr(N)&&tr(st)?nt=!la(N,st):nt=N!==st,nt?N!=null?tt(_):f.add(_):N!==void 0&&f.has(_)?tt(_):S.protectedKeys[_]=!0}S.prevProp=w,S.prevResolvedValues=C,S.isActive&&(h={...h,...C}),r&&t.blockInitialAnimation&&(y=!1),y&&(!(R&&M)||b)&&d.push(...T.map(_=>({animation:_,options:{type:v}})))}if(f.size){const x={};if(typeof c.initial!="boolean"){const v=Fe(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}f.forEach(v=>{const S=t.getBaseTarget(v),w=t.getValue(v);w&&(w.liveStyle=!0),x[v]=S??null}),d.push({animation:x})}let g=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Hi(),r=!0}}}function sh(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!la(e,t):!1}function Ht(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hi(){return{animate:Ht(!0),whileInView:Ht(),whileHover:Ht(),whileTap:Ht(),whileDrag:Ht(),whileFocus:Ht(),exit:Ht()}}class zt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class oh extends zt{constructor(e){super(e),e.animationState||(e.animationState=ih(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Pn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let ah=0;class lh extends zt{constructor(){super(...arguments),this.id=ah++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ch={animation:{Feature:oh},exit:{Feature:lh}};function Ne(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function qe(t){return{point:{x:t.pageX,y:t.pageY}}}const uh=t=>e=>jr(e)&&t(e,qe(e));function ie(t,e,n,r){return Ne(t,e,uh(n),r)}function ua({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function dh({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fh(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const da=1e-4,hh=1-da,ph=1+da,fa=.01,mh=0-fa,gh=0+fa;function it(t){return t.max-t.min}function yh(t,e,n){return Math.abs(t-e)<=n}function Ki(t,e,n,r=.5){t.origin=r,t.originPoint=z(e.min,e.max,t.origin),t.scale=it(n)/it(e),t.translate=z(n.min,n.max,t.origin)-t.originPoint,(t.scale>=hh&&t.scale<=ph||isNaN(t.scale))&&(t.scale=1),(t.translate>=mh&&t.translate<=gh||isNaN(t.translate))&&(t.translate=0)}function Ae(t,e,n,r){Ki(t.x,e.x,n.x,r?r.originX:void 0),Ki(t.y,e.y,n.y,r?r.originY:void 0)}function Yi(t,e,n){t.min=n.min+e.min,t.max=t.min+it(e)}function vh(t,e,n){Yi(t.x,e.x,n.x),Yi(t.y,e.y,n.y)}function Xi(t,e,n){t.min=e.min-n.min,t.max=t.min+it(e)}function Ve(t,e,n){Xi(t.x,e.x,n.x),Xi(t.y,e.y,n.y)}const Zi=()=>({translate:0,scale:1,origin:0,originPoint:0}),se=()=>({x:Zi(),y:Zi()}),Ji=()=>({min:0,max:0}),q=()=>({x:Ji(),y:Ji()});function gt(t){return[t("x"),t("y")]}function jn(t){return t===void 0||t===1}function dr({scale:t,scaleX:e,scaleY:n}){return!jn(t)||!jn(e)||!jn(n)}function Kt(t){return dr(t)||ha(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ha(t){return Qi(t.x)||Qi(t.y)}function Qi(t){return t&&t!=="0%"}function vn(t,e,n){const r=t-n,i=e*r;return n+i}function ts(t,e,n,r,i){return i!==void 0&&(t=vn(t,i,r)),vn(t,n,r)+e}function fr(t,e=0,n=1,r,i){t.min=ts(t.min,e,n,r,i),t.max=ts(t.max,e,n,r,i)}function pa(t,{x:e,y:n}){fr(t.x,e.translate,e.scale,e.originPoint),fr(t.y,n.translate,n.scale,n.originPoint)}const es=.999999999999,ns=1.0000000000001;function bh(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ae(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,pa(t,o)),r&&Kt(s.latestValues)&&ae(t,s.latestValues))}e.x<ns&&e.x>es&&(e.x=1),e.y<ns&&e.y>es&&(e.y=1)}function oe(t,e){t.min=t.min+e,t.max=t.max+e}function rs(t,e,n,r,i=.5){const s=z(t.min,t.max,i);fr(t,e,n,s,r)}function ae(t,e){rs(t.x,e.x,e.scaleX,e.scale,e.originX),rs(t.y,e.y,e.scaleY,e.scale,e.originY)}function ma(t,e){return ua(fh(t.getBoundingClientRect(),e))}function xh(t,e,n){const r=ma(t,n),{scroll:i}=e;return i&&(oe(r.x,i.offset.x),oe(r.y,i.offset.y)),r}const is=(t,e)=>Math.abs(t-e);function Sh(t,e){const n=is(t.x,e.x),r=is(t.y,e.y);return Math.sqrt(n**2+r**2)}class ga{constructor(e,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=zn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Sh(u.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:h}=u,{timestamp:p}=K;this.history.push({...h,timestamp:p});const{onStart:g,onMove:x}=this.handlers;d||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{if(u.target instanceof Element&&u.target.hasPointerCapture&&u.pointerId!==void 0)try{if(!u.target.hasPointerCapture(u.pointerId))return}catch{}this.lastMoveEvent=u,this.lastMoveEventInfo=Un(d,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{mn(u,"release"),this.end();const{onEnd:f,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=zn(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Un(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,g),h&&h(u,g)},!jr(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=qe(e),o=Un(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=K;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,zn(o,this.history)),mn(e,"set"),this.removeListeners=We(ie(e.currentTarget,"pointermove",this.handlePointerMove),ie(e.currentTarget,"pointerup",this.handlePointerUp),ie(e.currentTarget,"pointercancel",this.handlePointerUp),ie(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jt(this.updatePoint)}}function Un(t,e){return e?{point:e(t.point)}:t}function ss(t,e){return{x:t.x-e.x,y:t.y-e.y}}function zn({point:t},e){return{point:t,delta:ss(t,ya(e)),offset:ss(t,wh(e)),velocity:Th(e,.1)}}function wh(t){return t[0]}function ya(t){return t[t.length-1]}function Th(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=ya(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>At(e)));)n--;if(!r)return{x:0,y:0};const s=kt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ch(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?z(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?z(n,t,r.max):Math.min(t,n)),t}function os(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ph(t,{top:e,left:n,bottom:r,right:i}){return{x:os(t.x,n,i),y:os(t.y,e,r)}}function as(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Ah(t,e){return{x:as(t.x,e.x),y:as(t.y,e.y)}}function Vh(t,e){let n=.5;const r=it(t),i=it(e);return i>r?n=ue(e.min,e.max-r,t.min):r>i&&(n=ue(t.min,t.max-i,e.min)),Dt(0,1,n)}function Rh(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const hr=.35;function Eh(t=hr){return t===!1?t=0:t===!0&&(t=hr),{x:ls(t,"left","right"),y:ls(t,"top","bottom")}}function ls(t,e,n){return{min:cs(t,e),max:cs(t,n)}}function cs(t,e){return typeof t=="number"?t:t[e]||0}const Mh=new WeakMap;class kh{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qe(u).point)},s=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Cd(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gt(x=>{let v=this.getAxisMotionValue(x).get()||0;if(Vt.test(v)){const{projection:S}=this.visualElement;if(S&&S.layout){const w=S.layout.layoutBox[x];w&&(v=it(w)*(parseFloat(v)/100))}}this.originPoint[x]=v}),p&&j.postRender(()=>p(u,d)),rr(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=Dh(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),g&&g(u,d)},a=(u,d)=>this.stop(u,d),l=()=>gt(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ga(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&j.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ze(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Ch(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&ne(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ph(i.layoutBox,n):this.constraints=!1,this.elastic=Eh(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&>(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Rh(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ne(e))return!1;const r=e.current;Et(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=xh(r,i.root,this.visualElement.getTransformPagePoint());let o=Ah(i.layout.layoutBox,s);if(n){const a=n(dh(o));this.hasMutatedConstraints=!!a,a&&(o=ua(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=gt(u=>{if(!Ze(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return rr(this.visualElement,e),r.start(ti(e,r,0,n,this.visualElement,!1))}stopAnimation(){gt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){gt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){gt(n=>{const{drag:r}=this.getProps();if(!Ze(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-z(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ne(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};gt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Vh({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),gt(o=>{if(!Ze(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(z(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Mh.set(this.visualElement,this);const e=this.visualElement.current,n=ie(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ne(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.read(r);const o=Ne(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(gt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=hr,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ze(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Dh(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class _h extends zt{constructor(e){super(e),this.removeGroupControls=ct,this.removeListeners=ct,this.controls=new kh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ct}unmount(){this.removeGroupControls(),this.removeListeners()}}const us=t=>(e,n)=>{t&&j.postRender(()=>t(e,n))};class Lh extends zt{constructor(){super(...arguments),this.removePointerDownListener=ct}onPointerDown(e){this.session=new ga(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:us(e),onStart:us(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&j.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=ie(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const an={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ds(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const xe={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(k.test(t))t=parseFloat(t);else return t;const n=ds(t,e.target.x),r=ds(t,e.target.y);return`${n}% ${r}%`}},Oh={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ut.parse(t);if(i.length>5)return r;const s=Ut.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=z(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class $h extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;Uu(Fh),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),an.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||j.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Vr.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function va(t){const[e,n]=xu(),r=P.useContext(Zs);return ln.jsx($h,{...t,layoutGroup:r,switchLayoutGroup:P.useContext(oo),isPresent:e,safeToRemove:n})}const Fh={borderRadius:{...xe,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomLeftRadius:xe,borderBottomRightRadius:xe,boxShadow:Oh};function Bh(t,e,n){const r=Q(t)?t:Be(t);return r.start(ti("",r,e,n)),r.animation}function Ih(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Nh=(t,e)=>t.depth-e.depth;class jh{constructor(){this.children=[],this.isDirty=!1}add(e){Ur(this.children,e),this.isDirty=!0}remove(e){zr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Nh),this.isDirty=!1,this.children.forEach(e)}}function Uh(t,e){const n=Rt.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(jt(r),t(s-e))};return j.read(r,!0),()=>jt(r)}const ba=["TopLeft","TopRight","BottomLeft","BottomRight"],zh=ba.length,fs=t=>typeof t=="string"?parseFloat(t):t,hs=t=>typeof t=="number"||k.test(t);function Wh(t,e,n,r,i,s){i?(t.opacity=z(0,n.opacity!==void 0?n.opacity:1,qh(r)),t.opacityExit=z(e.opacity!==void 0?e.opacity:1,0,Gh(r))):s&&(t.opacity=z(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<zh;o++){const a=`border${ba[o]}Radius`;let l=ps(e,a),c=ps(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||hs(l)===hs(c)?(t[a]=Math.max(z(fs(l),fs(c),r),0),(Vt.test(c)||Vt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=z(e.rotate||0,n.rotate||0,r))}function ps(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const qh=xa(0,.5,Fo),Gh=xa(.5,.95,ct);function xa(t,e,n){return r=>r<t?0:r>e?1:n(ue(t,e,r))}function ms(t,e){t.min=e.min,t.max=e.max}function mt(t,e){ms(t.x,e.x),ms(t.y,e.y)}function gs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ys(t,e,n,r,i){return t-=e,t=vn(t,1/n,r),i!==void 0&&(t=vn(t,1/i,r)),t}function Hh(t,e=0,n=1,r=.5,i,s=t,o=t){if(Vt.test(e)&&(e=parseFloat(e),e=z(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=z(s.min,s.max,r);t===s&&(a-=e),t.min=ys(t.min,e,n,a,i),t.max=ys(t.max,e,n,a,i)}function vs(t,e,[n,r,i],s,o){Hh(t,e[n],e[r],e[i],e.scale,s,o)}const Kh=["x","scaleX","originX"],Yh=["y","scaleY","originY"];function bs(t,e,n,r){vs(t.x,e,Kh,n?n.x:void 0,r?r.x:void 0),vs(t.y,e,Yh,n?n.y:void 0,r?r.y:void 0)}function xs(t){return t.translate===0&&t.scale===1}function Sa(t){return xs(t.x)&&xs(t.y)}function Ss(t,e){return t.min===e.min&&t.max===e.max}function Xh(t,e){return Ss(t.x,e.x)&&Ss(t.y,e.y)}function ws(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function wa(t,e){return ws(t.x,e.x)&&ws(t.y,e.y)}function Ts(t){return it(t.x)/it(t.y)}function Cs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Zh{constructor(){this.members=[]}add(e){Ur(this.members,e),e.scheduleRender()}remove(e){if(zr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jh(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Wn=["","X","Y","Z"],Qh={visibility:"hidden"},Ps=1e3;let tp=0;function qn(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Ta(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Mo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Ta(r)}function Ca({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=tp++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rp),this.nodes.forEach(lp),this.nodes.forEach(cp),this.nodes.forEach(ip)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new jh)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Wr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ih(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let d;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Uh(f,250),an.hasAnimatedSinceResize&&(an.hasAnimatedSinceResize=!1,this.nodes.forEach(Vs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||pp,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),S=!this.targetLayout||!wa(this.targetLayout,p),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const A={...Br(g,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||Vs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jt(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(up),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ta(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(As);return}this.isUpdating||this.nodes.forEach(op),this.isUpdating=!1,this.nodes.forEach(ap),this.nodes.forEach(ep),this.nodes.forEach(np),this.clearAllSnapshots();const a=Rt.now();K.delta=Dt(0,1e3/60,a-K.timestamp),K.timestamp=a,K.isProcessing=!0,$n.update.process(K),$n.preRender.process(K),$n.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sp),this.sharedNodes.forEach(dp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!it(this.snapshot.measuredBox.x)&&!it(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Sa(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||Kt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),mp(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return q();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gp))){const{scroll:u}=this.root;u&&(oe(l.x,u.offset.x),oe(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=q();if(mt(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&mt(l,o),oe(l.x,d.offset.x),oe(l.y,d.offset.y))}return l}applyTransform(o,a=!1){const l=q();mt(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ae(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Kt(u.latestValues)&&ae(l,u.latestValues)}return Kt(this.latestValues)&&ae(l,this.latestValues),l}removeTransform(o){const a=q();mt(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Kt(c.latestValues))continue;dr(c.latestValues)&&c.updateSnapshot();const u=q(),d=c.measurePageBox();mt(u,d),bs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Kt(this.latestValues)&&bs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=K.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Ve(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mt(this.target,this.layout.layoutBox),pa(this.target,this.targetDelta)):mt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),Ve(this.relativeTargetOrigin,this.target,h.target),mt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||dr(this.parent.latestValues)||ha(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===K.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;mt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;bh(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=q());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gs(this.prevProjectionDelta.x,this.projectionDelta.x),gs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ae(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Cs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=se(),this.projectionDelta=se(),this.projectionDeltaWithTransform=se()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=se();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=q(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,x=this.getStack(),v=!x||x.members.length<=1,S=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(hp));this.animationProgress=0;let w;this.mixTargetDelta=A=>{const m=A/1e3;Rs(d.x,o.x,m),Rs(d.y,o.y,m),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ve(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fp(this.relativeTarget,this.relativeTargetOrigin,f,m),w&&Xh(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=q()),mt(w,this.relativeTarget)),g&&(this.animationValues=u,Wh(u,c,this.latestValues,m,S,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{an.hasAnimatedSinceResize=!0,this.currentAnimation=Bh(0,Ps,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ps),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Pa(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||q();const d=it(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=it(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}mt(a,l),ae(a,u),Ae(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Zh),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&qn("z",o,c,this.animationValues);for(let u=0;u<Wn.length;u++)qn(`rotate${Wn[u]}`,o,c,this.animationValues),qn(`skew${Wn[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qh;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=sn(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=sn(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Kt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=Jh(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:h,y:p}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const g in Oe){if(f[g]===void 0)continue;const{correct:x,applyTo:v,isCSSVariable:S}=Oe[g],w=c.transform==="none"?f[g]:x(f[g],d);if(v){const A=v.length;for(let m=0;m<A;m++)c[v[m]]=w}else S?this.options.visualElement.renderState.vars[g]=w:c[g]=w}return this.options.layoutId&&(c.pointerEvents=d===this?sn(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(As),this.root.sharedNodes.clear()}}}function ep(t){t.updateLayout()}function np(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?gt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=it(f);f.min=r[d].min,f.max=f.min+h}):Pa(s,n.layoutBox,r)&>(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=it(r[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=se();Ae(a,r,n.layoutBox);const l=se();o?Ae(l,t.applyTransform(i,!0),n.measuredBox):Ae(l,r,n.layoutBox);const c=!Sa(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=q();Ve(p,n.layoutBox,f.layoutBox);const g=q();Ve(g,r,h.layoutBox),wa(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function rp(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ip(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sp(t){t.clearSnapshot()}function As(t){t.clearMeasurements()}function op(t){t.isLayoutDirty=!1}function ap(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lp(t){t.resolveTargetDelta()}function cp(t){t.calcProjection()}function up(t){t.resetSkewAndRotation()}function dp(t){t.removeLeadSnapshot()}function Rs(t,e,n){t.translate=z(e.translate,0,n),t.scale=z(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Es(t,e,n,r){t.min=z(e.min,n.min,r),t.max=z(e.max,n.max,r)}function fp(t,e,n,r){Es(t.x,e.x,n.x,r),Es(t.y,e.y,n.y,r)}function hp(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pp={duration:.45,ease:[.4,0,.1,1]},Ms=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ks=Ms("applewebkit/")&&!Ms("chrome/")?Math.round:ct;function Ds(t){t.min=ks(t.min),t.max=ks(t.max)}function mp(t){Ds(t.x),Ds(t.y)}function Pa(t,e,n){return t==="position"||t==="preserve-aspect"&&!yh(Ts(e),Ts(n),.2)}function gp(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const yp=Ca({attachResizeListener:(t,e)=>Ne(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gn={current:void 0},Aa=Ca({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Gn.current){const t=new yp({});t.mount(window),t.setOptions({layoutScroll:!0}),Gn.current=t}return Gn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),vp={pan:{Feature:Lh},drag:{Feature:_h,ProjectionNode:Aa,MeasureLayout:va}};function _s(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&j.postRender(()=>s(e,qe(e)))}class bp extends zt{mount(){const{current:e}=this.node;e&&(this.unmount=vd(e,(n,r)=>(_s(this.node,r,"Start"),i=>_s(this.node,i,"End"))))}unmount(){}}class xp extends zt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=We(Ne(this.node.current,"focus",()=>this.onFocus()),Ne(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ls(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&j.postRender(()=>s(e,qe(e)))}class Sp extends zt{mount(){const{current:e}=this.node;e&&(this.unmount=wd(e,(n,r)=>(Ls(this.node,r,"Start"),(i,{success:s})=>Ls(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pr=new WeakMap,Hn=new WeakMap,wp=t=>{const e=pr.get(t.target);e&&e(t)},Tp=t=>{t.forEach(wp)};function Cp({root:t,...e}){const n=t||document;Hn.has(n)||Hn.set(n,{});const r=Hn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Tp,{root:t,...e})),r[i]}function Pp(t,e,n){const r=Cp(e);return pr.set(t,n),r.observe(t),()=>{pr.delete(t),r.unobserve(t)}}const Ap={some:0,all:1};class Vp extends zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ap[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Pp(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Rp(e,n))&&this.startObserver()}unmount(){}}function Rp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ep={inView:{Feature:Vp},tap:{Feature:Sp},focus:{Feature:xp},hover:{Feature:bp}},Mp={layout:{ProjectionNode:Aa,MeasureLayout:va}},mr={current:null},Va={current:!1};function kp(){if(Va.current=!0,!!wr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mr.current=t.matches;t.addListener(e),e()}else mr.current=!1}const Dp=[...Zo,J,Ut],_p=t=>Dp.find(Xo(t)),Lp=new WeakMap;function Op(t,e,n){for(const r in e){const i=e[r],s=n[r];if(Q(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Tn(i.version==="12.4.7",`Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);else if(Q(s))t.addValue(r,Be(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,Be(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $p{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Rt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,j.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=An(n),this.isVariantNode=io(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const p=f[h];l[h]!==void 0&&Q(p)&&p.set(l[h],!1)}}mount(e){this.current=e,Lp.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Va.current||kp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mr.current,process.env.NODE_ENV!=="production"&&Tn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),jt(this.notifyUpdate),jt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Zt.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&j.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in de){const n=de[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Os.length;r++){const i=Os[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Op(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Be(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ko(i)||Io(i))?i=parseFloat(i):!_p(i)&&Ut.test(n)&&(i=qo(e,n)),this.setBaseTarget(e,Q(i)?i.get():i)),Q(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=$r(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!Q(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Wr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ra extends $p{constructor(){super(...arguments),this.KeyframeResolver=Jo}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Q(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fp(t){return window.getComputedStyle(t)}class Bp extends Ra{constructor(){super(...arguments),this.type="html",this.renderInstance=go}readValueFromInstance(e,n){if(Zt.has(n)){const r=Xr(n);return r&&r.default||0}else{const r=Fp(e),i=(Rr(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ma(e,n)}build(e,n,r){kr(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Fr(e,n,r)}}class Ip extends Ra{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&mo(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Zt.has(n)){const r=Xr(n);return r&&r.default||0}return n=yo.has(n)?n:Ar(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return bo(e,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&j.postRender(this.updateDimensions)}build(e,n,r){Lr(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){vo(e,n,r,i)}mount(e){this.isSVGTag=Or(e.tagName),super.mount(e)}}const Np=(t,e)=>_r(t)?new Ip(e):new Bp(e,{allowProjection:t!==P.Fragment}),jp=fd({...ch,...Ep,...vp,...Mp},Np),Up=Ru(jp);function zp(t){t.values.forEach(e=>e.stop())}function gr(t,e){[...e].reverse().forEach(r=>{const i=t.getVariant(r);i&&qr(t,i),t.variantChildren&&t.variantChildren.forEach(s=>{gr(s,e)})})}function Wp(t,e){if(Array.isArray(e))return gr(t,e);if(typeof e=="string")return gr(t,[e]);qr(t,e)}function qp(){let t=!1;const e=new Set,n={subscribe(r){return e.add(r),()=>void e.delete(r)},start(r,i){Et(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return e.forEach(o=>{s.push(aa(o,r,{transitionOverride:i}))}),Promise.all(s)},set(r){return Et(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(i=>{Wp(i,r)})},stop(){e.forEach(r=>{zp(r)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function Gp(){const t=Js(qp);return to(t.mount,[]),t}const Hp=Gp,Kp={some:0,all:1};function Yp(t,e,{root:n,margin:r,amount:i="some"}={}){const s=Po(t),o=new WeakMap,a=c=>{c.forEach(u=>{const d=o.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):l.unobserve(u.target)}else typeof d=="function"&&(d(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:Kp[i]});return s.forEach(c=>l.observe(c)),()=>l.disconnect()}function Xp(t,{root:e,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=P.useState(s);return P.useEffect(()=>{if(!t.current||i&&o)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:r};return Yp(t.current,l,c)},[e,t,n,i,r]),o}var Ea="var(--_14qm28z0)",Ma="var(--_14qm28z1)",ka="var(--_14qm28z2)",Da="var(--_14qm28z3)",_a="var(--_14qm28z4)",La="var(--_14qm28z5)",Oa="var(--_14qm28z6)",$a="var(--_14qm28z7)",Fa="var(--_14qm28z8)",Ba="var(--_14qm28z9)",Ia={width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",animation:"background 0.5s ease-in-out",color:"var(--_14qm28z2)",zIndex:"var(--_14qm28z1)",minHeight:"var(--_14qm28z7)",paddingTop:"var(--_14qm28z3)",paddingLeft:"var(--_14qm28z4)",paddingRight:"var(--_14qm28z5)",paddingBottom:"var(--_14qm28z6)",background:"var(--_14qm28z9)",justifyContent:"var(--_14qm28z8)"},Zp="_14qm28za",Na="_14qm28zb";const Jp=Object.freeze(Object.defineProperty({__proto__:null,sectionAlignVar:Ea,sectionBackgroundColorVar:Ba,sectionColorVar:ka,sectionContentStyle:Na,sectionJustifyContentVar:Fa,sectionMinHeightVar:$a,sectionPaddingBottomVar:Oa,sectionPaddingLeftVar:_a,sectionPaddingRightVar:La,sectionPaddingTopVar:Da,sectionStyle:Zp,sectionZIndexVar:Ma,styles:Ia},Symbol.toStringTag,{value:"Module"}));var Re=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Re||{});const Qp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},tm=({children:t,className:e,zIndex:n=20,id:r=void 0,isDark:i=!1,align:s=Re.Left,isFullHeight:o=!1,noPaddingTop:a=!1,theme:l=I,backgroundColor:c="",noPaddingBottom:u=!1})=>{const d=Hp(),f=St(),h=P.createRef(),{colors:p,header:{height:g},footer:{height:x},global:{paddingRight:v,paddingLeft:S},section:{paddingTop:w,paddingBottom:A}}=l,m=Xp(h,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{m&&d.start("visible")},[d,m]),V("section",{id:r,ref:h,className:e,style:B({[Ma]:`${n}`,[Ba]:c,[Fa]:o?"center":"flex-start",[ka]:i?p.defaultLightText:p.defaultText,[$a]:o?`calc(100vh - ${g[f]}px - ${x[f]}px)`:"0",[_a]:`${S[f]}px`,[La]:`${v[f]}px`,[Da]:a?"0px":`${w[f]}px`,[Oa]:u?"0px":`${A[f]}px`}),children:V(Up.div,{className:Na,initial:"hidden",animate:d,variants:Qp,style:B({[Ea]:s===Re.Center?"center":s===Re.Right?"right":"left"}),children:t})})};var em={navGap:"var(--_1h6zt340)"},nm={display:"flex",flexDirection:"column",gap:"var(--_1h6zt340)"};const rm=({children:t,theme:e=I,className:n})=>{const r=St(),{nav:{gap:i}}=e;return V("nav",{className:n,style:B({[em.navGap]:`${i[r]}px`}),children:t})};var im={navSocialGap:"var(--g7q46n0)"},sm={display:"flex",flexDirection:"row",marginLeft:0,marginRight:0,gap:"var(--g7q46n0)"},om="g7q46n1";const am=({navSocial:t,className:e,theme:n=I})=>{const r=St(),{navSocial:{gap:i}}=n;return V("div",{className:e,style:B({[im.navSocialGap]:`${i[r]}px`}),children:t.map(({name:s,link:o},a)=>{const l=s[0].toUpperCase()+s.slice(1);return V("div",{className:om,children:V("a",{target:"_blank",rel:"noopener noreferrer","aria-label":s,href:o,children:V(Nt,{theme:n,icon:`social${l}`})})},`navSocialItem-${a}`)})})};var lm={navLegalGap:"var(--vehv9e0)"},cm={display:"flex",flexDirection:"row",gap:"var(--vehv9e0)"};const um=({children:t,className:e,theme:n=I})=>{const r=St(),{navLegal:{gap:i}}=n;return V("nav",{className:e,style:B({[lm.navLegalGap]:`${i[r]}px`}),children:t})};var Kn={formWidth:"var(--dvq5w80)",formPadding:"var(--dvq5w81)",formBackgroundColor:"var(--dvq5w82)"},dm={width:"100%",maxWidth:"var(--dvq5w80)",backgroundColor:"var(--dvq5w82)",padding:"var(--dvq5w81)",position:"relative","@media":{"(min-width: 768px)":{padding:"var(--formPadding)"}}};const fm=({action:t,children:e,theme:n=I,className:r})=>V("form",{className:r,action:typeof t=="string"?t:void 0,style:B({[Kn.formWidth]:`${n.form.width}px`,[Kn.formPadding]:`${n.form.padding[0]}px`,[Kn.formBackgroundColor]:n.form.backgroundColor}),children:e});var Je={rowGap:"var(--_223sdz0)",rowPadding:"var(--_223sdz1)",rowFontSize:"var(--_223sdz2)",rowJustifyContent:"var(--_223sdz3)"},Ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Ee||{});const hm=({children:t,theme:e=I,className:n,align:r=Ee.Left,isMessage:i=!1,isActions:s=!1})=>V("div",{className:n,style:B({[Je.rowGap]:`${e.form.row.gap[0]}px`,[Je.rowPadding]:`${e.form.row.padding[0]}px`,[Je.rowFontSize]:i?"0.8em":"inherit",[Je.rowJustifyContent]:r===Ee.Right?"flex-end":r===Ee.Center?"center":"flex-start"}),children:t});var Ft={font:"var(--k6gj0i0)",color:"var(--k6gj0i1)",border:"var(--k6gj0i2)",borderRadius:"var(--k6gj0i3)",backgroundColor:"var(--k6gj0i4)",padding:"var(--k6gj0i5)",placeholderColor:"var(--k6gj0i6)",placeholderOpacity:"var(--k6gj0i7)"},pm={width:"100%",fontSize:"inherit",lineHeight:"1.5em",fontFamily:"var(--k6gj0i0)",color:"var(--k6gj0i1)",border:"var(--k6gj0i2)",borderRadius:"var(--k6gj0i3)",backgroundColor:"var(--k6gj0i4)",padding:"var(--k6gj0i5)",selectors:{"&:focus":{outline:"var(--k6gj0i2)"}}},Rn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(Rn||{});const ja=({name:t,value:e="",type:n=Rn.Text,disabled:r=!1,placeholder:i="",theme:s=I,onChange:o=void 0,className:a})=>V("input",{id:t,name:t,type:n,defaultValue:e,disabled:r,placeholder:i,onChange:o,className:a,style:B({[Ft.font]:`var(--font-${s.form.input.font})`,[Ft.color]:s.form.input.color,[Ft.border]:s.form.input.border,[Ft.borderRadius]:`${s.form.input.borderRadius}`,[Ft.backgroundColor]:s.form.input.backgroundColor,[Ft.padding]:`${s.form.input.padding[0]}px`,[Ft.placeholderColor]:s.form.input.placeholder.color,[Ft.placeholderOpacity]:`${s.form.input.placeholder.opacity}`})});var Bt={font:"var(--l5ei120)",color:"var(--l5ei121)",border:"var(--l5ei122)",borderRadius:"var(--l5ei123)",padding:"var(--l5ei124)",backgroundColor:"var(--l5ei125)",placeholderColor:"var(--l5ei126)",placeholderOpacity:"var(--l5ei127)"},mm={};const Ua=({name:t,value:e,rows:n=2,disabled:r=!1,placeholder:i="",onChange:s=void 0,theme:o=I,className:a})=>V("textarea",{id:t,name:t,rows:n,className:a,defaultValue:e,placeholder:i,disabled:r,onChange:s,style:B({[Bt.font]:`var(--font-${o.form.textarea.font})`,[Bt.color]:o.form.textarea.color,[Bt.border]:o.form.textarea.border,[Bt.borderRadius]:`${o.form.textarea.borderRadius}px`,[Bt.padding]:`${o.form.textarea.padding[0]}px`,[Bt.backgroundColor]:o.form.textarea.backgroundColor,[Bt.placeholderColor]:o.form.textarea.placeholder.color,[Bt.placeholderOpacity]:`${o.form.textarea.placeholder.opacity}`})});var Qe={font:"var(--_1s956dc0)",color:"var(--_1s956dc1)",fontWeight:"var(--_1s956dc2)",paddingBottom:"var(--_1s956dc3)"},gm={width:"100%",textAlign:"left",fontFamily:"var(--_1s956dc0)",color:"var(--_1s956dc1)",fontWeight:"var(--_1s956dc2)",paddingBottom:"var(--_1s956dc3)"};const za=({name:t,label:e,required:n=!1,theme:r=I,className:i})=>ht("label",{htmlFor:t,className:i,style:B({[Qe.font]:`var(--font-${r.form.label.font})`,[Qe.color]:r.form.label.color,[Qe.fontWeight]:`${r.form.label.fontWeight}`,[Qe.paddingBottom]:`${r.form.label.paddingBottom}px`}),children:[e,n?V("span",{children:" *"}):null]});var ym={errorColor:"var(--_1e95ziv0)"},vm={},ei=(t=>(t.Textarea="textarea",t))(ei||{});const bm=({name:t,label:e="",value:n="",rows:r=2,required:i=!1,disabled:s=!1,placeholder:o="",errors:a=void 0,theme:l=I,onChange:c=void 0,type:u=Rn.Text,className:d})=>ht("div",{className:d,style:B({[ym.errorColor]:l.form.error.color}),children:[e&&V(za,{className:"",theme:l,label:e,name:t,required:i}),u===ei.Textarea?V(Ua,{className:"",value:n,rows:r,name:t,theme:l,onChange:c,disabled:s,placeholder:o}):V(ja,{className:"",value:n,type:u,name:t,theme:l,onChange:c,disabled:s,placeholder:o}),a&&V("div",{children:a instanceof Array?a.map((f,h)=>V("span",{children:f},h)):a})]});var Mt={overlayBlur:"var(--pewdww0)",overlayOpacity:"var(--pewdww1)",overlayBackgroundColor:"var(--pewdww2)",width:"var(--pewdww3)",backgroundColor:"var(--pewdww4)",borderRadius:"var(--pewdww5)",borders:"var(--pewdww6)",actionsGap:"var(--pewdww7)",actionsPaddingTop:"var(--pewdww8)"},xm={};function Sm(t){const e=t+"=",r=decodeURIComponent(document.cookie).split(";");for(let i=0;i<r.length;i++){let s=r[i];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(e)==0)return s.substring(e.length,s.length)}return""}function wm(t,e,n){const r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);const i="expires="+r.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}const Tm=({children:t,theme:e=I,cookieName:n="consent",translations:r,cookieExpirationDays:i=365,className:s})=>{const[o,a]=P.useState(!1),l=c=>{a(!1),wm(n,`${c}`,i)};return P.useEffect(()=>{const c=Sm(n),u=c!=="true"&&c!=="false",d=c==="true";u&&a(!0);const f=d?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:f})},[o]),o?ht("div",{className:s,style:B({[Mt.overlayBlur]:`${e.consentCookie.overlayBlur}`,[Mt.overlayOpacity]:`${e.consentCookie.overlayOpacity}`,[Mt.overlayBackgroundColor]:e.consentCookie.overlayBackgroundColor,[Mt.backgroundColor]:e.consentCookie.backgroundColor,[Mt.width]:`${e.consentCookie.width[0]}`,[Mt.borderRadius]:`${e.consentCookie.borderRadius}`,[Mt.borders]:`${e.consentCookie.borders}`,[Mt.actionsGap]:`${e.consentCookie.actionsGap}`,[Mt.actionsPaddingTop]:`${e.consentCookie.actionsPaddingTop[0]}px`}),children:[t,ht("div",{children:[V(Jn,{className:"",onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),V(Jn,{className:"",onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]}):null};exports.Actions=hc;exports.ActionsAlign=te;exports.ActionsStyles=fc;exports.Button=Jn;exports.ButtonSize=Te;exports.ButtonStyle=dn;exports.ButtonStyles=oc;exports.ButtonType=xr;exports.ButtonVariant=un;exports.Carousel=Dc;exports.CarouselStyles=Mc;exports.Columns=bu;exports.ColumnsAlign=ee;exports.ColumnsStyles=vu;exports.ConsentCookie=Tm;exports.ConsentCookieStyles=xm;exports.Footer=yu;exports.FooterStyles=gu;exports.Form=fm;exports.FormRow=hm;exports.FormRowAlign=Ee;exports.FormStyles=dm;exports.Header=mu;exports.HeaderStyles=fu;exports.Icon=Nt;exports.IconStyles=pc;exports.InputStyles=pm;exports.InputType=Rn;exports.KeyNumber=Kc;exports.KeyNumberStyles=Gc;exports.LanguageSwitcher=eu;exports.LanguageSwitcherStyles=Jc;exports.Logo=Ec;exports.LogoStyles=Rc;exports.Main=su;exports.MainStyles=iu;exports.Modal=xc;exports.ModalStyles=yc;exports.Nav=rm;exports.NavLegal=um;exports.NavLegalStyles=cm;exports.NavSocial=am;exports.NavSocialStyles=sm;exports.NavStyles=nm;exports.Section=tm;exports.SectionAlign=Re;exports.SectionStyles=Ia;exports.TextField=bm;exports.TextFieldInput=ja;exports.TextFieldLabel=za;exports.TextFieldLabelStyles=gm;exports.TextFieldStyles=vm;exports.TextFieldTextarea=Ua;exports.TextareaStyles=mm;exports.TextareaType=ei;exports.Video=Xs;exports.VideoFullWidth=Xc;exports.VideoFullWidthStyles=Yc;exports.VideoStyles=Sc;exports.allStyles=Jp;
|