@latte-macchiat-io/latte-vanilla-components 0.0.131 → 0.0.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/index.cjs.js +4 -4
  2. package/dist/index.es.js +2378 -2632
  3. package/dist/latte-vanilla-components.css +1 -1
  4. package/dist/types/components/Button/export.d.ts +1 -0
  5. package/dist/types/components/Button/index.d.ts +3 -4
  6. package/dist/types/components/Button/styles.css.d.ts +38 -0
  7. package/dist/types/components/Carousel/styles.css.d.ts +49 -0
  8. package/dist/types/components/Footer/export.d.ts +1 -0
  9. package/dist/types/components/Footer/index.d.ts +2 -3
  10. package/dist/types/components/Footer/styles.css.d.ts +10 -0
  11. package/dist/types/components/NavLegal/export.d.ts +1 -0
  12. package/dist/types/components/NavLegal/index.d.ts +2 -3
  13. package/dist/types/components/NavLegal/styles.css.d.ts +5 -0
  14. package/dist/types/components/NavSocial/export.d.ts +1 -0
  15. package/dist/types/components/NavSocial/index.d.ts +3 -4
  16. package/dist/types/components/NavSocial/styles.css.d.ts +6 -0
  17. package/dist/types/components/Video/index.d.ts +2 -3
  18. package/dist/types/components/Video/styles.css.d.ts +10 -0
  19. package/dist/types/components/VideoFullWidth/export.d.ts +1 -0
  20. package/dist/types/components/VideoFullWidth/index.d.ts +3 -4
  21. package/dist/types/components/VideoFullWidth/styles.css.d.ts +6 -0
  22. package/package.json +1 -1
  23. package/dist/types/components/Button/styles.d.ts +0 -17
  24. package/dist/types/components/Footer/styles.d.ts +0 -11
  25. package/dist/types/components/NavLegal/styles.d.ts +0 -11
  26. package/dist/types/components/NavSocial/styles.d.ts +0 -15
  27. package/dist/types/components/Video/styles.d.ts +0 -49
  28. package/dist/types/components/VideoFullWidth/styles.d.ts +0 -11
package/dist/index.cjs.js CHANGED
@@ -1,16 +1,16 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qe=require("react/jsx-runtime"),P=require("react"),O=require("@emotion/styled");function Ps(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ce=Ps(Qe),ct=Ps(P);function wa(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Ta(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Ca=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ta(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=wa(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),et="-ms-",tn="-moz-",I="-webkit-",As="comm",li="rule",ci="decl",Pa="@import",Vs="@keyframes",Aa="@layer",Va=Math.abs,hn=String.fromCharCode,Ea=Object.assign;function Ra(t,e){return Q(t,0)^45?(((e<<2^Q(t,0))<<2^Q(t,1))<<2^Q(t,2))<<2^Q(t,3):0}function Es(t){return t.trim()}function Ma(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function _n(t,e){return t.indexOf(e)}function Q(t,e){return t.charCodeAt(e)|0}function Pe(t,e,n){return t.slice(e,n)}function Tt(t){return t.length}function ui(t){return t.length}function Ne(t,e){return e.push(t),t}function Da(t,e){return t.map(e).join("")}var pn=1,se=1,Rs=0,ft=0,Y=0,ce="";function mn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:pn,column:se,length:s,return:""}}function he(t,e){return Ea(mn("",null,null,"",null,null,0),t,{length:-t.length},e)}function La(){return Y}function Oa(){return Y=ft>0?Q(ce,--ft):0,se--,Y===10&&(se=1,pn--),Y}function pt(){return Y=ft<Rs?Q(ce,ft++):0,se++,Y===10&&(se=1,pn++),Y}function At(){return Q(ce,ft)}function Ke(){return ft}function Ie(t,e){return Pe(ce,t,e)}function Ae(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ms(t){return pn=se=1,Rs=Tt(ce=t),ft=0,[]}function Ds(t){return ce="",t}function qe(t){return Es(Ie(ft-1,Nn(t===91?t+2:t===40?t+1:t)))}function ka(t){for(;(Y=At())&&Y<33;)pt();return Ae(t)>2||Ae(Y)>3?"":" "}function Fa(t,e){for(;--e&&pt()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Ie(t,Ke()+(e<6&&At()==32&&pt()==32))}function Nn(t){for(;pt();)switch(Y){case t:return ft;case 34:case 39:t!==34&&t!==39&&Nn(Y);break;case 40:t===41&&Nn(t);break;case 92:pt();break}return ft}function Ia(t,e){for(;pt()&&t+Y!==57;)if(t+Y===84&&At()===47)break;return"/*"+Ie(e,ft-1)+"*"+hn(t===47?t:pt())}function Ba(t){for(;!Ae(At());)pt();return Ie(t,ft)}function $a(t){return Ds(Ye("",null,null,null,[""],t=Ms(t),0,[0],t))}function Ye(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,f=s,d=0,h=0,p=0,g=1,S=1,v=1,w=0,T="",A=r,m=o,R=i,D=T;S;)switch(p=w,w=pt()){case 40:if(p!=108&&Q(D,f-1)==58){_n(D+=B(qe(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:D+=qe(w);break;case 9:case 10:case 13:case 32:D+=ka(p);break;case 92:D+=Fa(Ke()-1,7);continue;case 47:switch(At()){case 42:case 47:Ne(ja(Ia(pt(),Ke()),e,n),l);break;default:D+="/"}break;case 123*g:a[c++]=Tt(D)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+u:v==-1&&(D=B(D,/\f/g,"")),h>0&&Tt(D)-f&&Ne(h>32?qi(D+";",i,n,f-1):qi(B(D," ","")+";",i,n,f-2),l);break;case 59:D+=";";default:if(Ne(R=Ki(D,e,n,c,u,r,a,T,A=[],m=[],f),o),w===123)if(u===0)Ye(D,e,R,R,A,o,f,a,m);else switch(d===99&&Q(D,3)===110?100:d){case 100:case 108:case 109:case 115:Ye(t,R,R,i&&Ne(Ki(t,R,R,0,0,r,a,T,r,A=[],f),m),r,m,f,a,i?A:m);break;default:Ye(D,R,R,R,[""],m,0,a,m)}}c=u=h=0,g=v=1,T=D="",f=s;break;case 58:f=1+Tt(D),h=p;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Oa()==125)continue}switch(D+=hn(w),w*g){case 38:v=u>0?1:(D+="\f",-1);break;case 44:a[c++]=(Tt(D)-1)*v,v=1;break;case 64:At()===45&&(D+=qe(pt())),d=At(),u=f=Tt(T=D+=Ba(Ke())),w++;break;case 45:p===45&&Tt(D)==2&&(g=0)}}return o}function Ki(t,e,n,i,r,o,s,a,l,c,u){for(var f=r-1,d=r===0?o:[""],h=ui(d),p=0,g=0,S=0;p<i;++p)for(var v=0,w=Pe(t,f+1,f=Va(g=s[p])),T=t;v<h;++v)(T=Es(g>0?d[v]+" "+w:B(w,/&\f/g,d[v])))&&(l[S++]=T);return mn(t,e,n,r===0?li:a,l,c,u)}function ja(t,e,n){return mn(t,e,n,As,hn(La()),Pe(t,2,-2),0)}function qi(t,e,n,i){return mn(t,e,n,ci,Pe(t,0,i),Pe(t,i+1,-1),i)}function ie(t,e){for(var n="",i=ui(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function _a(t,e,n,i){switch(t.type){case Aa:if(t.children.length)break;case Pa:case ci:return t.return=t.return||t.value;case As:return"";case Vs:return t.return=t.value+"{"+ie(t.children,i)+"}";case li:t.value=t.props.join(",")}return Tt(n=ie(t.children,i))?t.return=t.value+"{"+n+"}":""}function Na(t){var e=ui(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function Ua(t){return function(e){e.root||(e=e.return)&&t(e)}}function za(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Wa=function(e,n,i){for(var r=0,o=0;r=o,o=At(),r===38&&o===12&&(n[i]=1),!Ae(o);)pt();return Ie(e,ft)},Ha=function(e,n){var i=-1,r=44;do switch(Ae(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=Wa(ft-1,n,i);break;case 2:e[i]+=qe(r);break;case 4:if(r===44){e[++i]=At()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=hn(r)}while(r=pt());return e},Ga=function(e,n){return Ds(Ha(Ms(e),n))},Yi=new WeakMap,Ka=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Yi.get(i))&&!r){Yi.set(e,!0);for(var o=[],s=Ga(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},qa=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ls(t,e){switch(Ra(t,e)){case 5103:return I+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+tn+t+et+t+t;case 6828:case 4268:return I+t+et+t+t;case 6165:return I+t+et+"flex-"+t+t;case 5187:return I+t+B(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+et+"flex-$1$2")+t;case 5443:return I+t+et+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return I+t+et+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+et+B(t,"shrink","negative")+t;case 5292:return I+t+et+B(t,"basis","preferred-size")+t;case 6060:return I+"box-"+B(t,"-grow","")+I+t+et+B(t,"grow","positive")+t;case 4554:return I+B(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,I+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(t)-1-e>6)switch(Q(t,e+1)){case 109:if(Q(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+tn+(Q(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~_n(t,"stretch")?Ls(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Q(t,e+1)!==115)break;case 6444:switch(Q(t,Tt(t)-3-(~_n(t,"!important")&&10))){case 107:return B(t,":",":"+I)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(Q(t,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+et+"$2box$3")+t}break;case 5936:switch(Q(t,e+11)){case 114:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+et+t+t}return t}var Ya=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case ci:e.return=Ls(e.value,e.length);break;case Vs:return ie([he(e,{value:B(e.value,"@","@"+I)})],r);case li:if(e.length)return Da(e.props,function(o){switch(Ma(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([he(e,{props:[B(o,/:(read-\w+)/,":"+tn+"$1")]})],r);case"::placeholder":return ie([he(e,{props:[B(o,/:(plac\w+)/,":"+I+"input-$1")]}),he(e,{props:[B(o,/:(plac\w+)/,":"+tn+"$1")]}),he(e,{props:[B(o,/:(plac\w+)/,et+"input-$1")]})],r)}return""})}},Xa=[Ya],Za=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||Xa,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),v=1;v<S.length;v++)o[S[v]]=!0;a.push(g)});var l,c=[Ka,qa];{var u,f=[_a,Ua(function(g){u.insert(g)})],d=Na(c.concat(r,f)),h=function(S){return ie($a(S),d)};l=function(S,v,w,T){u=w,h(S?S+"{"+v.styles+"}":v.styles),T&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new Ca({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};function Ja(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var Ue={exports:{}},$={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const nn=require("react/jsx-runtime"),P=require("react"),k=require("@emotion/styled");function Es(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ve=Es(nn),ct=Es(P);function Ca(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Pa(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Aa=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Pa(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Ca(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t}(),tt="-ms-",rn="-moz-",I="-webkit-",Rs="comm",ui="rule",di="decl",Va="@import",Ms="@keyframes",Ea="@layer",Ra=Math.abs,mn=String.fromCharCode,Ma=Object.assign;function Da(t,e){return J(t,0)^45?(((e<<2^J(t,0))<<2^J(t,1))<<2^J(t,2))<<2^J(t,3):0}function Ds(t){return t.trim()}function La(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function Un(t,e){return t.indexOf(e)}function J(t,e){return t.charCodeAt(e)|0}function Ee(t,e,n){return t.slice(e,n)}function Tt(t){return t.length}function fi(t){return t.length}function We(t,e){return e.push(t),t}function Oa(t,e){return t.map(e).join("")}var gn=1,le=1,Ls=0,dt=0,q=0,fe="";function yn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:gn,column:le,length:s,return:""}}function ge(t,e){return Ma(yn("",null,null,"",null,null,0),t,{length:-t.length},e)}function ka(){return q}function Fa(){return q=dt>0?J(fe,--dt):0,le--,q===10&&(le=1,gn--),q}function pt(){return q=dt<Ls?J(fe,dt++):0,le++,q===10&&(le=1,gn++),q}function At(){return J(fe,dt)}function Xe(){return dt}function _e(t,e){return Ee(fe,t,e)}function Re(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Os(t){return gn=le=1,Ls=Tt(fe=t),dt=0,[]}function ks(t){return fe="",t}function Ze(t){return Ds(_e(dt-1,zn(t===91?t+2:t===40?t+1:t)))}function Ia(t){for(;(q=At())&&q<33;)pt();return Re(t)>2||Re(q)>3?"":" "}function Ba(t,e){for(;--e&&pt()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return _e(t,Xe()+(e<6&&At()==32&&pt()==32))}function zn(t){for(;pt();)switch(q){case t:return dt;case 34:case 39:t!==34&&t!==39&&zn(q);break;case 40:t===41&&zn(t);break;case 92:pt();break}return dt}function $a(t,e){for(;pt()&&t+q!==57;)if(t+q===84&&At()===47)break;return"/*"+_e(e,dt-1)+"*"+mn(t===47?t:pt())}function _a(t){for(;!Re(At());)pt();return _e(t,dt)}function ja(t){return ks(Je("",null,null,null,[""],t=Os(t),0,[0],t))}function Je(t,e,n,i,r,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,p=0,g=1,S=1,v=1,w=0,T="",A=r,m=o,E=i,R=T;S;)switch(p=w,w=pt()){case 40:if(p!=108&&J(R,d-1)==58){Un(R+=B(Ze(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:R+=Ze(w);break;case 9:case 10:case 13:case 32:R+=Ia(p);break;case 92:R+=Ba(Xe()-1,7);continue;case 47:switch(At()){case 42:case 47:We(Na($a(pt(),Xe()),e,n),l);break;default:R+="/"}break;case 123*g:a[c++]=Tt(R)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+u:v==-1&&(R=B(R,/\f/g,"")),h>0&&Tt(R)-d&&We(h>32?Xi(R+";",i,n,d-1):Xi(B(R," ","")+";",i,n,d-2),l);break;case 59:R+=";";default:if(We(E=Yi(R,e,n,c,u,r,a,T,A=[],m=[],d),o),w===123)if(u===0)Je(R,e,E,E,A,o,d,a,m);else switch(f===99&&J(R,3)===110?100:f){case 100:case 108:case 109:case 115:Je(t,E,E,i&&We(Yi(t,E,E,0,0,r,a,T,r,A=[],d),m),r,m,d,a,i?A:m);break;default:Je(R,E,E,E,[""],m,0,a,m)}}c=u=h=0,g=v=1,T=R="",d=s;break;case 58:d=1+Tt(R),h=p;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&Fa()==125)continue}switch(R+=mn(w),w*g){case 38:v=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(Tt(R)-1)*v,v=1;break;case 64:At()===45&&(R+=Ze(pt())),f=At(),u=d=Tt(T=R+=_a(Xe())),w++;break;case 45:p===45&&Tt(R)==2&&(g=0)}}return o}function Yi(t,e,n,i,r,o,s,a,l,c,u){for(var d=r-1,f=r===0?o:[""],h=fi(f),p=0,g=0,S=0;p<i;++p)for(var v=0,w=Ee(t,d+1,d=Ra(g=s[p])),T=t;v<h;++v)(T=Ds(g>0?f[v]+" "+w:B(w,/&\f/g,f[v])))&&(l[S++]=T);return yn(t,e,n,r===0?ui:a,l,c,u)}function Na(t,e,n){return yn(t,e,n,Rs,mn(ka()),Ee(t,2,-2),0)}function Xi(t,e,n,i){return yn(t,e,n,di,Ee(t,0,i),Ee(t,i+1,-1),i)}function oe(t,e){for(var n="",i=fi(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function Ua(t,e,n,i){switch(t.type){case Ea:if(t.children.length)break;case Va:case di:return t.return=t.return||t.value;case Rs:return"";case Ms:return t.return=t.value+"{"+oe(t.children,i)+"}";case ui:t.value=t.props.join(",")}return Tt(n=oe(t.children,i))?t.return=t.value+"{"+n+"}":""}function za(t){var e=fi(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function Wa(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ha(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ga=function(e,n,i){for(var r=0,o=0;r=o,o=At(),r===38&&o===12&&(n[i]=1),!Re(o);)pt();return _e(e,dt)},Ka=function(e,n){var i=-1,r=44;do switch(Re(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=Ga(dt-1,n,i);break;case 2:e[i]+=Ze(r);break;case 4:if(r===44){e[++i]=At()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=mn(r)}while(r=pt());return e},qa=function(e,n){return ks(Ka(Os(e),n))},Zi=new WeakMap,Ya=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Zi.get(i))&&!r){Zi.set(e,!0);for(var o=[],s=qa(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Xa=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Fs(t,e){switch(Da(t,e)){case 5103:return I+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+rn+t+tt+t+t;case 6828:case 4268:return I+t+tt+t+t;case 6165:return I+t+tt+"flex-"+t+t;case 5187:return I+t+B(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+tt+"flex-$1$2")+t;case 5443:return I+t+tt+"flex-item-"+B(t,/flex-|-self/,"")+t;case 4675:return I+t+tt+"flex-line-pack"+B(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+tt+B(t,"shrink","negative")+t;case 5292:return I+t+tt+B(t,"basis","preferred-size")+t;case 6060:return I+"box-"+B(t,"-grow","")+I+t+tt+B(t,"grow","positive")+t;case 4554:return I+B(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,I+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(t)-1-e>6)switch(J(t,e+1)){case 109:if(J(t,e+4)!==45)break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+rn+(J(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Un(t,"stretch")?Fs(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(J(t,e+1)!==115)break;case 6444:switch(J(t,Tt(t)-3-(~Un(t,"!important")&&10))){case 107:return B(t,":",":"+I)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(J(t,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+tt+"$2box$3")+t}break;case 5936:switch(J(t,e+11)){case 114:return I+t+tt+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+tt+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+tt+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+tt+t+t}return t}var Za=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case di:e.return=Fs(e.value,e.length);break;case Ms:return oe([ge(e,{value:B(e.value,"@","@"+I)})],r);case ui:if(e.length)return Oa(e.props,function(o){switch(La(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([ge(e,{props:[B(o,/:(read-\w+)/,":"+rn+"$1")]})],r);case"::placeholder":return oe([ge(e,{props:[B(o,/:(plac\w+)/,":"+I+"input-$1")]}),ge(e,{props:[B(o,/:(plac\w+)/,":"+rn+"$1")]}),ge(e,{props:[B(o,/:(plac\w+)/,tt+"input-$1")]})],r)}return""})}},Ja=[Za],Qa=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||Ja,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var S=g.getAttribute("data-emotion").split(" "),v=1;v<S.length;v++)o[S[v]]=!0;a.push(g)});var l,c=[Ya,Xa];{var u,d=[Ua,Wa(function(g){u.insert(g)})],f=za(c.concat(r,d)),h=function(S){return oe(ja(S),f)};l=function(S,v,w,T){u=w,h(S?S+"{"+v.styles+"}":v.styles),T&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new Aa({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p};function tl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function el(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var He={exports:{}},$={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Xi;function tl(){if(Xi)return $;Xi=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=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,f=t?Symbol.for("react.suspense"):60113,d=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,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(m){if(typeof m=="object"&&m!==null){var R=m.$$typeof;switch(R){case e:switch(m=m.type,m){case l:case c:case i:case o:case r:case f:return m;default:switch(m=m&&m.$$typeof,m){case a:case u:case p:case h:case s:return m;default:return R}}case n:return R}}}function A(m){return T(m)===c}return $.AsyncMode=l,$.ConcurrentMode=c,$.ContextConsumer=a,$.ContextProvider=s,$.Element=e,$.ForwardRef=u,$.Fragment=i,$.Lazy=p,$.Memo=h,$.Portal=n,$.Profiler=o,$.StrictMode=r,$.Suspense=f,$.isAsyncMode=function(m){return A(m)||T(m)===l},$.isConcurrentMode=A,$.isContextConsumer=function(m){return T(m)===a},$.isContextProvider=function(m){return T(m)===s},$.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},$.isForwardRef=function(m){return T(m)===u},$.isFragment=function(m){return T(m)===i},$.isLazy=function(m){return T(m)===p},$.isMemo=function(m){return T(m)===h},$.isPortal=function(m){return T(m)===n},$.isProfiler=function(m){return T(m)===o},$.isStrictMode=function(m){return T(m)===r},$.isSuspense=function(m){return T(m)===f},$.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===i||m===c||m===o||m===r||m===f||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===s||m.$$typeof===a||m.$$typeof===u||m.$$typeof===S||m.$$typeof===v||m.$$typeof===w||m.$$typeof===g)},$.typeOf=T,$}var j={};/** @license React v16.13.1
8
+ */var Ji;function nl(){if(Ji)return $;Ji=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=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,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(m){if(typeof m=="object"&&m!==null){var E=m.$$typeof;switch(E){case e:switch(m=m.type,m){case l:case c:case i:case o:case r:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case u:case p:case h:case s:return m;default:return E}}case n:return E}}}function A(m){return T(m)===c}return $.AsyncMode=l,$.ConcurrentMode=c,$.ContextConsumer=a,$.ContextProvider=s,$.Element=e,$.ForwardRef=u,$.Fragment=i,$.Lazy=p,$.Memo=h,$.Portal=n,$.Profiler=o,$.StrictMode=r,$.Suspense=d,$.isAsyncMode=function(m){return A(m)||T(m)===l},$.isConcurrentMode=A,$.isContextConsumer=function(m){return T(m)===a},$.isContextProvider=function(m){return T(m)===s},$.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},$.isForwardRef=function(m){return T(m)===u},$.isFragment=function(m){return T(m)===i},$.isLazy=function(m){return T(m)===p},$.isMemo=function(m){return T(m)===h},$.isPortal=function(m){return T(m)===n},$.isProfiler=function(m){return T(m)===o},$.isStrictMode=function(m){return T(m)===r},$.isSuspense=function(m){return T(m)===d},$.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===i||m===c||m===o||m===r||m===d||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===s||m.$$typeof===a||m.$$typeof===u||m.$$typeof===S||m.$$typeof===v||m.$$typeof===w||m.$$typeof===g)},$.typeOf=T,$}var _={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
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 Zi;function el(){return Zi||(Zi=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,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=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,f=t?Symbol.for("react.suspense"):60113,d=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,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(M){return typeof M=="string"||typeof M=="function"||M===i||M===c||M===o||M===r||M===f||M===d||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===h||M.$$typeof===s||M.$$typeof===a||M.$$typeof===u||M.$$typeof===S||M.$$typeof===v||M.$$typeof===w||M.$$typeof===g)}function A(M){if(typeof M=="object"&&M!==null){var lt=M.$$typeof;switch(lt){case e:var wt=M.type;switch(wt){case l:case c:case i:case o:case r:case f:return wt;default:var zt=wt&&wt.$$typeof;switch(zt){case a:case u:case p:case h:case s:return zt;default:return lt}}case n:return lt}}}var m=l,R=c,D=a,y=s,b=e,x=u,C=i,k=p,W=h,X=n,Z=o,z=r,F=f,N=!1;function at(M){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.")),rt(M)||A(M)===l}function rt(M){return A(M)===c}function Ot(M){return A(M)===a}function kt(M){return A(M)===s}function vt(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function mt(M){return A(M)===u}function Ft(M){return A(M)===i}function ht(M){return A(M)===p}function It(M){return A(M)===h}function xt(M){return A(M)===n}function bt(M){return A(M)===o}function Nt(M){return A(M)===r}function Ut(M){return A(M)===f}j.AsyncMode=m,j.ConcurrentMode=R,j.ContextConsumer=D,j.ContextProvider=y,j.Element=b,j.ForwardRef=x,j.Fragment=C,j.Lazy=k,j.Memo=W,j.Portal=X,j.Profiler=Z,j.StrictMode=z,j.Suspense=F,j.isAsyncMode=at,j.isConcurrentMode=rt,j.isContextConsumer=Ot,j.isContextProvider=kt,j.isElement=vt,j.isForwardRef=mt,j.isFragment=Ft,j.isLazy=ht,j.isMemo=It,j.isPortal=xt,j.isProfiler=bt,j.isStrictMode=Nt,j.isSuspense=Ut,j.isValidElementType=T,j.typeOf=A}()),j}var Ji;function nl(){return Ji||(Ji=1,process.env.NODE_ENV==="production"?Ue.exports=tl():Ue.exports=el()),Ue.exports}var Tn,Qi;function il(){if(Qi)return Tn;Qi=1;var t=nl(),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},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=i,o[t.Memo]=r;function s(p){return t.isMemo(p)?r:o[p.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(p,g,S){if(typeof g!="string"){if(d){var v=f(g);v&&v!==d&&h(p,v,S)}var w=l(g);c&&(w=w.concat(c(g)));for(var T=s(p),A=s(g),m=0;m<w.length;++m){var R=w[m];if(!n[R]&&!(S&&S[R])&&!(A&&A[R])&&!(T&&T[R])){var D=u(g,R);try{a(p,R,D)}catch{}}}}return p}return Tn=h,Tn}il();var rl=!0;function sl(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Os=function(e,n,i){var r=e.key+"-"+n.name;(i===!1||rl===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},ol=function(e,n,i){Os(e,n,i);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function al(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&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(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&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 ll={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},cl=/[A-Z]|^ms/g,ul=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ks=function(e){return e.charCodeAt(1)===45},tr=function(e){return e!=null&&typeof e!="boolean"},Cn=za(function(t){return ks(t)?t:t.replace(cl,"-$&").toLowerCase()}),er=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ul,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return ll[e]!==1&&!ks(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ve(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ct={name:r.name,styles:r.styles,next:Ct},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=o.styles+";";return a}return fl(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,Ve(t,e,c)}break}}var u=n;return u}function fl(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Ve(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;tr(a)&&(i+=Cn(o)+":"+er(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)tr(s[l])&&(i+=Cn(o)+":"+er(o,s[l])+";");else{var c=Ve(t,e,s);switch(o){case"animation":case"animationName":{i+=Cn(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var nr=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function dl(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Ct=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Ve(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Ve(n,e,t[a]),i){var l=o;r+=l[a]}nr.lastIndex=0;for(var c="",u;(u=nr.exec(r))!==null;)c+="-"+u[1];var f=al(r)+c;return{name:f,styles:r,next:Ct}}var hl=function(e){return e()},pl=ct.useInsertionEffect?ct.useInsertionEffect:!1,ml=pl||hl,Fs=ct.createContext(typeof HTMLElement<"u"?Za({key:"css"}):null);Fs.Provider;var gl=function(e){return P.forwardRef(function(n,i){var r=P.useContext(Fs);return e(n,r,i)})},yl=ct.createContext({}),gn={}.hasOwnProperty,Un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Is=function(e,n){var i={};for(var r in n)gn.call(n,r)&&(i[r]=n[r]);return i[Un]=e,i},vl=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return Os(n,i,r),ml(function(){return ol(n,i,r)}),null},xl=gl(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[Un],o=[i],s="";typeof t.className=="string"?s=sl(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=dl(o,void 0,ct.useContext(yl));s+=e.key+"-"+a.name;var l={};for(var c in t)gn.call(t,c)&&c!=="css"&&c!==Un&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),ct.createElement(ct.Fragment,null,ct.createElement(vl,{cache:e,serialized:a,isStringTag:typeof r=="string"}),ct.createElement(r,l))}),Bs=xl,bl=Ce.Fragment,E=function(e,n,i){return gn.call(n,"css")?Ce.jsx(Bs,Is(e,n),i):Ce.jsx(e,n,i)},dt=function(e,n,i){return gn.call(n,"css")?Ce.jsxs(Bs,Is(e,n),i):Ce.jsxs(e,n,i)};const Sl=[640,768,1024,1680],V=Sl.map(t=>`(min-width: ${t}px)`),Gt={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},K=(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(e[n]instanceof Object&&t[n]instanceof Object?t[n]=K(t[n],e[n]):t[n]=e[n]);return t},wl=O.button(({theme:{button:{minWidth:t,letterSpacing:e,fontWeight:n,color:i,backgroundColor:r,border:o,padding:s,borderRadius:a,transition:l}},styles:c,isSmall:u,isLarge:f,isDisabled:d,isOutlined:h,isSecondary:p,staticColor:g})=>K({minWidth:t,fontWeight:n,transition:l,borderRadius:a,letterSpacing:e,position:"relative",display:"inline-block",cursor:d?"default":"pointer",pointerEvents:d?"none":"auto",padding:u?`${s.small[0]/2}px ${s.small[1]/2}px`:f?`${s.large[0]/2}px ${s.large[1]/2}px`:`${s.medium[0]/2}px ${s.medium[1]/2}px`,border:g?`${o.width}px ${o.style} ${g}`:p?`${o.width}px ${o.style} ${o.color.secondary}`:d?`${o.width}px ${o.style} ${o.color.disabled}`:`${o.width}px ${o.style} ${o.color.primary}`,color:h&&g?g:h&&p?r.secondary:h?r.primary:p?i.secondary:d?i.disabled:i.primary,backgroundColor:h?"transparent":g||(p?r.secondary:d?r.disabled:r.primary),[V[1]]:{padding:u?`${s.small[0]}px ${s.small[1]}px`:f?`${s.large[0]}px ${s.large[1]}px`:`${s.medium[0]}px ${s.medium[1]}px`},"&:hover":{opacity:.5}},c));var en=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(en||{}),nn=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(nn||{}),ve=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(ve||{}),fi=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(fi||{});const ir='"Goudy Bookletter 1911", sans-serif',Pn='"Gill Sans", sans-serif',$s="#FF7377",An="#C8AE96",tt="#FCEFE6",Tl="#2E2E2E",rr="#CCCCCC",Cl=" #888888",st="#000000",Vn=$s,_={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:ir,defaultFont:Pn},colors:{defaultText:st,defaultLightText:tt,defaultTitle:"",defaultLink:st,defaultIcon:st},backgroundColors:{modal:tt,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:tt},borders:{hr:`1px solid ${An}`,cookieConsent:`2px solid ${st}`},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:tt,secondary:Tl,disabled:Cl},backgroundColor:{primary:Vn,secondary:An,disabled:rr},border:{width:2,style:"solid",color:{primary:Vn,secondary:An,disabled:rr}},borderRadius:50,padding:{small:[5,10],medium:[10,15],large:[15,30]},transition:"all 0.3s ease-in-out"},columns:{gap:30},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:ir,fontWeight:500,color:Vn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:Pn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:Pn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},error:{color:$s}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:tt,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:tt,toggleNavColor:st,toggleNavOpenColor:st,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:tt},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:tt,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:tt,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,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:st,width:[150,150,200,200],backgroundColor:tt,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:tt}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:st,backgroundColor:tt},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:tt}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:tt,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,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]}},zn=({children:t,styles:e={},staticColor:n="",isPending:i=!1,isDisabled:r=!1,type:o=fi.Button,style:s=nn.Fill,size:a=ve.Medium,onClick:l=void 0,theme:c=_,variant:u=en.Primary})=>E(wl,{type:o,theme:c,onClick:l,staticColor:n,isLarge:a===ve.Large,isSmall:a===ve.Small,styles:e,isDisabled:r||i,isOutlined:s===nn.Outline,isSecondary:u===en.Secondary,children:t});function Pl(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function rn(t,e){var n={};{var i=t;for(var r in i){var o=i[r];o!=null&&(n[Pl(r)]=o)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}function js(){const[t,e]=P.useState("mobile");return P.useEffect(()=>{function i(){const r=window.innerWidth;r>=Gt["2xl"]?e("2xl"):r>=Gt.xl?e("xl"):r>=Gt.lg?e("lg"):r>=Gt.md?e("md"):r>=Gt.sm?e("sm"):e("mobile")}return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),["mobile","sm","md","lg","xl","2xl"].indexOf(t)}var Al="var(--_1v7zi9y0)",Vl="var(--_1v7zi9y1)",El="var(--_1v7zi9y2)",Rl="var(--_1v7zi9y3)",Ml="var(--_1v7zi9y4)",Dl={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"var(--_1v7zi9y0)",alignItems:"var(--_1v7zi9y1)",paddingTop:"var(--_1v7zi9y2)",paddingBottom:"var(--_1v7zi9y3)",justifyContent:"var(--_1v7zi9y4)"},Xt=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Xt||{});const Ll=({children:t,className:e,theme:n=_,align:i=Xt.Left})=>{const r=js(),{actions:{gap:o,paddingTop:s,paddingBottom:a}}=n;return E("div",{className:e,style:rn({[Al]:`${o[r]}px`,[El]:`${s[r]}px`,[Rl]:`${a[r]}px`,[Vl]:i===Xt.Center?"center":"flex-start",[Ml]:i===Xt.Right?"flex-end":i===Xt.Left?"flex-start":"center"}),children:t})},Ol={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"},kl=O.svg(({styles:t})=>K({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),Fl=O.path(({fill:t})=>({fill:t,transition:"color .5s ease"})),Pt=({icon:t="",size:e=24,styles:n={},iconPath:i="",color:r=void 0,theme:o=_,viewBox:s="0 0 24 24"})=>E(kl,{viewBox:s,width:`${e}px`,height:`${e}px`,styles:n,children:E(Fl,{d:i||Ol[t],fill:r||o.colors.defaultIcon})});var sn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(sn||{});const Il=O.div(({theme:{modal:{overlayBlur:t,overlayOpacity:e,overlayBackgroundColor:n}},styles:i})=>K({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:e,backgroundColor:n,backdropFilter:`blur(${t}px)`}},i)),Bl=O.div(({theme:{global:{paddingLeft:t,paddingRight:e},modal:{borders:n,width:i,borderRadius:r,backgroundColor:o,paddingTop:s,paddingLeft:a,paddingRight:l,paddingBottom:c}},align:u})=>({top:"50%",zIndex:20,left:"50%",borderRadius:r,border:n,display:"flex",backgroundColor:o,width:i[0],position:"fixed",overflowY:"auto",flexDirection:"column",paddingTop:s[0],paddingLeft:a[0],paddingRight:l[0],paddingBottom:c[0],transform:"translate(-50%, -50%)",maxWidth:`calc(100% - ${t[0]+e[0]}px)`,maxHeight:`calc(100% - ${t[0]+e[0]}px)`,textAlign:u===sn.Left?"left":u===sn.Right?"right":"center",[V[0]]:{width:i[1],paddingTop:s[1],paddingLeft:a[1],paddingRight:l[1],paddingBottom:c[1],maxWidth:`calc(100% - ${t[1]+e[1]}px)`,maxHeight:`calc(100% - ${t[1]+e[1]}px)`},[V[1]]:{width:i[2],paddingTop:s[2],paddingLeft:a[2],paddingRight:l[2],paddingBottom:c[2],maxWidth:`calc(100% - ${t[2]+e[2]}px)`,maxHeight:`calc(100% - ${t[2]+e[2]}px)`},[V[2]]:{width:i[3],paddingTop:s[3],paddingLeft:a[3],paddingRight:l[3],paddingBottom:c[3],maxWidth:`calc(100% - ${t[3]+e[3]}px)`,maxHeight:`calc(100% - ${t[3]+e[3]}px)`}})),$l=O.button({top:15,border:0,right:15,zIndex:20,cursor:"pointer",position:"absolute",backgroundColor:"transparent",transition:"all 0.5s ease-in-out","&:hover":{transform:"scale(1.2)"}}),jl=({children:t,styles:e={},align:n=sn.Left,theme:i=_,onModalHide:r=void 0})=>E(Il,{theme:i,styles:e,children:dt(Bl,{theme:i,align:n,children:[r&&E($l,{onClick:r,children:E(Pt,{theme:i,icon:"close"})}),t]})}),_l=O.div(({styles:t,isVideoFullWidth:e})=>K({video:{top:"50%",left:"50%",width:"auto",minWidth:"100%",minHeight:"100%",position:"absolute",transform:"translate(-50%, -50%)",maxHeight:e?"100vw":"100%"}},t)),Nl=O.div(({isPlaying:t})=>({top:0,left:0,width:"100%",height:"100%",position:"absolute",opacity:t?0:1,pointerEvents:t?"none":"auto",img:{minWidth:"100%",minHeight:"100%",objectFit:"cover"}})),Ul=O.button(({theme:{header:{height:t},video:{closeButton:{border:e,width:n,height:i,borderRadius:r,color:o,backgroundColor:s}}}})=>({border:e,right:15,bottom:0,borderRadius:r,backgroundColor:s,width:n[0],height:i[0],cursor:"pointer",position:"absolute",top:t[0],[V[0]]:{width:n[1],height:i[1]},[V[1]]:{right:30,width:n[2],height:i[2],top:t[2]+15},[V[2]]:{width:n[3],height:i[3]},svg:{path:{fill:o}}})),zl=O.button(({isPlaying:t,theme:{video:{playButton:{border:e,width:n,height:i,borderRadius:r,color:o,backgroundColor:s}}}})=>({border:e,top:"50%",left:"50%",borderRadius:r,width:n[0],height:i[0],cursor:"pointer",position:"absolute",opacity:t?0:1,backgroundColor:s,transition:"all 0.5s ease-in-out",transform:"translate(-50%, -50%)",pointerEvents:t?"none":"auto",[V[0]]:{width:n[1],height:i[1]},[V[1]]:{width:n[2],height:i[2]},[V[2]]:{width:n[3],height:i[3]},"&:hover":{svg:{transform:"scale(1.2)"}},svg:{transform:"scale(1)",transition:"all 0.5s ease-in-out",path:{fill:o}}})),Wl=O.button(({theme:{video:{pauseButton:{border:t,width:e,height:n,borderRadius:i,color:r,backgroundColor:o}}}})=>({border:t,right:50,bottom:-10,borderRadius:i,width:e[0],backgroundColor:o,height:n[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[V[0]]:{width:e[1],height:n[1]},[V[1]]:{right:75,bottom:15,width:e[2],height:n[2]},[V[2]]:{width:e[3],height:n[3]},svg:{path:{fill:r}}})),Hl=O.button(({theme:{video:{soundButton:{width:t,height:e,border:n,color:i,borderRadius:r,backgroundColor:o}}}})=>({border:n,right:0,bottom:-10,borderRadius:r,backgroundColor:o,width:t[0],height:e[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[V[0]]:{width:t[1],height:e[1]},[V[1]]:{right:15,bottom:15,width:t[2],height:e[2]},[V[0]]:{width:t[3],height:e[3]},svg:{path:{fill:i}}})),_s=({video:t,isAutoPlay:e,styles:n={},poster:i="",startMuted:r=!1,onPlay:o=void 0,onClose:s=void 0,onEnded:a=void 0,showControls:l=!1,theme:c=_,hidePlayButton:u=!1,isVideoFullWidth:f=!1,isPlayingFullScreen:d=!1})=>{const h=P.useRef(null),[p,g]=P.useState(!1),[S,v]=P.useState(e||r),w=()=>{var y;o&&o(),(y=h.current)==null||y.play(),g(!0)},T=()=>{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=!S;v(y),h.current&&(h.current.muted=y)},R=()=>{a&&a(),T()},D=y=>{y.key==="Escape"&&T()};return P.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)}),[h.current]),dt(_l,{isVideoFullWidth:f,styles:n,children:[E("video",{ref:h,playsInline:!0,onEnded:R,children:E("source",{src:t,type:"video/mp4"})}),i&&E(Nl,{isPlaying:p,children:E("img",{src:i,alt:"",sizes:"2560"})}),(!u||!e)&&E(zl,{theme:c,isPlaying:p,onClick:w,"aria-label":"Play",children:E(Pt,{icon:"play",size:50,theme:c})}),d&&E(Ul,{theme:c,isPlaying:p,onClick:T,"aria-label":"Pause",children:E(Pt,{icon:"close",size:28,theme:c})}),p&&l&&E(Wl,{theme:c,isPlaying:p,"aria-label":"Pause",onClick:p?A:w,children:E(Pt,{icon:"pause",size:28,theme:c})}),l&&E(Hl,{theme:c,isMuted:r,onClick:m,"aria-label":"Sound",children:E(Pt,{icon:S?"volumeUp":"volumeMute",size:28,theme:c})})]})},Gl=O.div(({styles:t})=>K({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),Kl=({children:t,styles:e={},theme:n=_})=>E(Gl,{theme:n,styles:e,children:t}),ql=O.div(({styles:t,isFullWidth:e,theme:{global:{paddingLeft:n,paddingRight:i}}})=>K({overflow:"hidden",position:"relative",width:e?"100vw":"100%",marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[0]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[0]}px)`:0,[V[0]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[1]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[1]}px)`:0},[V[1]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[2]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[2]}px)`:0},[V[2]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[3]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[3]}px)`:0}},t)),Yl=O.div({width:"100%",position:"relative"}),Xl=O.div(({left:t,width:e,gap:n})=>({gap:n,left:t,width:e,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),Zl=O.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),Jl=O.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),sr=O.button(({isDisabled:t})=>({border:0,display:"block",position:"relative",pointerEvents:"auto",opacity:t?.5:1,transition:"all 0.5s ease-in-out",cursor:t?"default":"pointer","&:hover":{transform:t?"scale(1)":"scale(1.1)"}})),Ql=O.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[V[1]]:{marginTop:60}}),tc=O.div(({isActive:t,theme:{carousel:{bullet:{borderRadius:e,width:n,height:i,backgroundColor:r}}}})=>({borderRadius:e,backgroundColor:r,width:n[0],height:i[0],cursor:"pointer",opacity:t?1:.5,transition:"all 0.5s ease-in-out",pointerEvents:t?"none":"auto",[V[0]]:{width:n[1],height:i[1]},[V[1]]:{width:n[2],height:i[2]},[V[2]]:{width:n[3],height:i[3]},"&:hover":{transform:"scale(1.2)"}}));function ec(){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 nc=({data:t,styles:e={},displayItem:n=1,theme:i=_,isFullWidth:r=!1,displayNavBullets:o=!1,displayNavButtons:s=!1})=>{const{width:a}=ec(),[l,c]=P.useState(0),[u,f]=P.useState(i.carousel.gap[0]),d=a!==void 0&&a>Gt[1],h=a!==void 0&&a>Gt[2],[p,g]=P.useState(0),[S,v]=P.useState(0),[w,T]=P.useState(0),[A,m]=P.useState(n),R=P.useRef(null),D=P.useRef(null),y=P.useRef(null),b=(x,C)=>{C<x&&-(C-x)>100&&c(k=>k!==t.length-1*A?k+1:t.length-1),C>x&&C-x>100&&c(k=>k!==0?k-1:0)};return P.useEffect(()=>{if(h){n!==1&&f(i.carousel.gap[3]),m(n);return}if(d){if(f(i.carousel.gap[2]),n===1){f(0),m(1);return}if(n===2){m(2);return}if(n===3){m(2);return}m(n/2);return}f(0),m(1)},[d,h,n]),P.useEffect(()=>{const x=R.current;return x&&g(x.getBoundingClientRect().width),window.addEventListener("resize",()=>g(x.getBoundingClientRect().width)),()=>window.removeEventListener("resize",()=>g(x.getBoundingClientRect().width))},[]),P.useEffect(()=>{var X,Z;let x=0,C=0;const k=z=>{x=z.changedTouches[0].screenX},W=z=>{C=z.changedTouches[0].screenX,b(x,C)};(X=R.current)==null||X.addEventListener("touchstart",z=>k(z),{passive:!0}),(Z=R.current)==null||Z.addEventListener("touchend",z=>W(z),{passive:!0})},[]),P.useEffect(()=>{const C=(A-1)*u;y.current&&T((p-C)/A)},[A,p,u]),P.useEffect(()=>{const C=(t.length-1)*u;v(w*t.length+C)},[t,w,v,u]),dt(ql,{ref:R,theme:i,styles:e,isFullWidth:r,children:[E(Yl,{children:E(Xl,{ref:D,width:S,gap:A===1?0:u,left:-l*w-l*u,children:t.map((x,C)=>E(Zl,{ref:y,children:x},`children-${C}`))})}),s&&dt(Jl,{children:[E(sr,{"aria-label":"Previous",disabled:l===0,isDisabled:l===0,onClick:()=>c(x=>x-1),children:E(Pt,{theme:i,icon:"arrowBack",size:30})}),E(sr,{"aria-label":"Next",onClick:()=>c(x=>x+1),disabled:l===t.length-1*A,isDisabled:l===t.length-1*A,children:E(Pt,{theme:i,icon:"arrowForward",size:30})})]}),o&&E(Ql,{children:[...Array(t.length+1-A||1)].map((x,C)=>E(tc,{theme:i,isActive:C===l,onClick:()=>c(C)},`carousselItem-${C}`))})]})};var pe={},on=function(){return on=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},on.apply(this,arguments)},ic=function(){function t(e,n,i){var r=this;this.endVal=n,this.options=i,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(o){r.startTime||(r.startTime=o);var s=o-r.startTime;r.remaining=r.duration-s,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(s,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(s,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(s/r.duration);var a=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=a?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),s<r.duration?r.rAF=requestAnimationFrame(r.count):r.finalEndVal!==null?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(o){var s,a,l,c,u=o<0?"-":"";s=Math.abs(o).toFixed(r.options.decimalPlaces);var f=(s+="").split(".");if(a=f[0],l=f.length>1?r.options.decimal+f[1]:"",r.options.useGrouping){c="";for(var d=3,h=0,p=0,g=a.length;p<g;++p)r.options.useIndianSeparators&&p===4&&(d=2,h=1),p!==0&&h%d==0&&(c=r.options.separator+c),h++,c=a[g-p-1]+c;a=c}return r.options.numerals&&r.options.numerals.length&&(a=a.replace(/[0-9]/g,function(S){return r.options.numerals[+S]}),l=l.replace(/[0-9]/g,function(S){return r.options.numerals[+S]})),u+r.options.prefix+a+l+r.options.suffix},this.easeOutExpo=function(o,s,a,l){return a*(1-Math.pow(2,-10*o/l))*1024/1023+s},this.options=on(on({},this.defaults),i),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 r.handleScroll(r)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,i=e.el.getBoundingClientRect(),r=i.top+window.pageYOffset,o=i.top+i.height+window.pageYOffset;o<n&&o>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>o||r>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 i=this.countDown?1:-1;this.endVal=e+i*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 i=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,i):this.el.tagName==="INPUT"?this.el.value=i:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=i:this.el.innerHTML=i}},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 rc=Object.freeze(Object.defineProperty({__proto__:null,CountUp:ic},Symbol.toStringTag,{value:"Module"})),sc=Qa(rc);var or;function oc(){if(or)return pe;or=1,Object.defineProperty(pe,"__esModule",{value:!0});var t=P,e=sc;function n(y,b){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var C,k,W,X,Z=[],z=!0,F=!1;try{if(W=(x=x.call(y)).next,b!==0)for(;!(z=(C=W.call(x)).done)&&(Z.push(C.value),Z.length!==b);z=!0);}catch(N){F=!0,k=N}finally{try{if(!z&&x.return!=null&&(X=x.return(),Object(X)!==X))return}finally{if(F)throw k}}return Z}}function i(y,b){var x=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);b&&(C=C.filter(function(k){return Object.getOwnPropertyDescriptor(y,k).enumerable})),x.push.apply(x,C)}return x}function r(y){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?i(Object(x),!0).forEach(function(C){a(y,C,x[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(x)):i(Object(x)).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(x,C))})}return y}function o(y,b){if(typeof y!="object"||!y)return y;var x=y[Symbol.toPrimitive];if(x!==void 0){var C=x.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 s(y){var b=o(y,"string");return typeof b=="symbol"?b:String(b)}function a(y,b,x){return b=s(b),b in y?Object.defineProperty(y,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[b]=x,y}function l(){return l=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var x=arguments[b];for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&(y[C]=x[C])}return y},l.apply(this,arguments)}function c(y,b){if(y==null)return{};var x={},C=Object.keys(y),k,W;for(W=0;W<C.length;W++)k=C[W],!(b.indexOf(k)>=0)&&(x[k]=y[k]);return x}function u(y,b){if(y==null)return{};var x=c(y,b),C,k;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(y);for(k=0;k<W.length;k++)C=W[k],!(b.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(y,C)&&(x[C]=y[C])}return x}function f(y,b){return d(y)||n(y,b)||h(y,b)||g()}function d(y){if(Array.isArray(y))return y}function h(y,b){if(y){if(typeof y=="string")return p(y,b);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return p(y,b)}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var x=0,C=new Array(b);x<b;x++)C[x]=y[x];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 S=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 S(function(){b.current=y}),t.useCallback(function(){for(var x=arguments.length,C=new Array(x),k=0;k<x;k++)C[k]=arguments[k];return b.current.apply(void 0,C)},[])}var w=function(b,x){var C=x.decimal,k=x.decimals,W=x.duration,X=x.easingFn,Z=x.end,z=x.formattingFn,F=x.numerals,N=x.prefix,at=x.separator,rt=x.start,Ot=x.suffix,kt=x.useEasing,vt=x.useGrouping,mt=x.useIndianSeparators,Ft=x.enableScrollSpy,ht=x.scrollSpyDelay,It=x.scrollSpyOnce,xt=x.plugin;return new e.CountUp(b,Z,{startVal:rt,duration:W,decimal:C,decimalPlaces:k,easingFn:X,formattingFn:z,numerals:F,separator:at,prefix:N,suffix:Ot,plugin:xt,useEasing:kt,useIndianSeparators:mt,useGrouping:vt,enableScrollSpy:Ft,scrollSpyDelay:ht,scrollSpyOnce:It})},T=["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 x=Object.fromEntries(Object.entries(b).filter(function(lt){var wt=f(lt,2),zt=wt[1];return zt!==void 0})),C=t.useMemo(function(){return r(r({},A),x)},[b]),k=C.ref,W=C.startOnMount,X=C.enableReinitialize,Z=C.delay,z=C.onEnd,F=C.onStart,N=C.onPauseResume,at=C.onReset,rt=C.onUpdate,Ot=u(C,T),kt=t.useRef(),vt=t.useRef(),mt=t.useRef(!1),Ft=v(function(){return w(typeof k=="string"?k:k.current,Ot)}),ht=v(function(lt){var wt=kt.current;if(wt&&!lt)return wt;var zt=Ft();return kt.current=zt,zt}),It=v(function(){var lt=function(){return ht(!0).start(function(){z==null||z({pauseResume:xt,reset:bt,start:Ut,update:Nt})})};Z&&Z>0?vt.current=setTimeout(lt,Z*1e3):lt(),F==null||F({pauseResume:xt,reset:bt,update:Nt})}),xt=v(function(){ht().pauseResume(),N==null||N({reset:bt,start:Ut,update:Nt})}),bt=v(function(){ht().el&&(vt.current&&clearTimeout(vt.current),ht().reset(),at==null||at({pauseResume:xt,start:Ut,update:Nt}))}),Nt=v(function(lt){ht().update(lt),rt==null||rt({pauseResume:xt,reset:bt,start:Ut})}),Ut=v(function(){bt(),It()}),M=v(function(lt){W&&(lt&&bt(),It())});return t.useEffect(function(){mt.current?X&&M(!0):(mt.current=!0,M())},[X,mt,M,Z,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.formattingFn]),t.useEffect(function(){return function(){bt()}},[bt]),{start:Ut,pauseResume:xt,reset:bt,update:Nt,getCountUp:ht}},R=["className","redraw","containerProps","children","style"],D=function(b){var x=b.className,C=b.redraw,k=b.containerProps,W=b.children,X=b.style,Z=u(b,R),z=t.useRef(null),F=t.useRef(!1),N=m(r(r({},Z),{},{ref:z,startOnMount:typeof W!="function"||b.delay===0,enableReinitialize:!1})),at=N.start,rt=N.reset,Ot=N.update,kt=N.pauseResume,vt=N.getCountUp,mt=v(function(){at()}),Ft=v(function(xt){b.preserveValue||rt(),Ot(xt)}),ht=v(function(){if(typeof b.children=="function"&&!(z.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}vt()});t.useEffect(function(){ht()},[ht]),t.useEffect(function(){F.current&&Ft(b.end)},[b.end,Ft]);var It=C&&b;return t.useEffect(function(){C&&F.current&&mt()},[mt,C,It]),t.useEffect(function(){!C&&F.current&&mt()},[mt,C,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.className,b.formattingFn]),t.useEffect(function(){F.current=!0},[]),typeof W=="function"?W({countUpRef:z,start:at,reset:rt,update:Ot,pauseResume:kt,getCountUp:vt}):t.createElement("span",l({className:x,ref:z,style:X},k),typeof b.start<"u"?vt().formattingFn(b.start):"")};return pe.default=D,pe.useCountUp=m,pe}var ac=oc();const lc=Ja(ac);var Wn=new Map,ze=new WeakMap,ar=0,cc=void 0;function uc(t){return t?(ze.has(t)||(ar+=1,ze.set(t,ar.toString())),ze.get(t)):"0"}function fc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?uc(t.root):t[e]}`).toString()}function dc(t){const e=fc(t);let n=Wn.get(e);if(!n){const i=new Map;let r;const o=new IntersectionObserver(s=>{s.forEach(a=>{var l;const c=a.isIntersecting&&r.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=i.get(a.target))==null||l.forEach(u=>{u(c,a)})})},t);r=o.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:o,elements:i},Wn.set(e,n)}return n}function hc(t,e,n={},i=cc){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const l=t.getBoundingClientRect();return e(i,{isIntersecting:i,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:r,observer:o,elements:s}=dc(n),a=s.get(t)||[];return s.has(t)||s.set(t,a),a.push(e),o.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(s.delete(t),o.unobserve(t)),s.size===0&&(o.disconnect(),Wn.delete(r))}}function pc({threshold:t,delay:e,trackVisibility:n,rootMargin:i,root:r,triggerOnce:o,skip:s,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[f,d]=ct.useState(null),h=ct.useRef(c),[p,g]=ct.useState({inView:!!a,entry:void 0});h.current=c,ct.useEffect(()=>{if(s||!f)return;let T;return T=hc(f,(A,m)=>{g({inView:A,entry:m}),h.current&&h.current(A,m),m.isIntersecting&&o&&T&&(T(),T=void 0)},{root:r,rootMargin:i,threshold:t,trackVisibility:n,delay:e},l),()=>{T&&T()}},[Array.isArray(t)?t.toString():t,f,r,i,o,s,n,l,e]);const S=(u=p.entry)==null?void 0:u.target,v=ct.useRef(void 0);!f&&S&&!o&&!s&&v.current!==S&&(v.current=S,g({inView:!!a,entry:void 0}));const w=[d,p.inView,p.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}const mc=O.div(({styles:t})=>K({display:"flex",flexDirection:"column"},t)),gc=O.div({fontSize:"1.2em",paddingBottom:15,[V[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),yc=({label:t,suffix:e,keyNumber:n,styles:i={},theme:r=_})=>{const[o,s]=pc({threshold:.3,triggerOnce:!0});return dt(mc,{ref:o,theme:r,styles:i,children:[dt(gc,{children:[E("span",{children:E(lc,{end:s?n:0,duration:8})}),e]}),E("p",{children:t})]})},vc=O.div(({styles:t,theme:{global:{maxWidth:e,paddingLeft:n,paddingRight:i}}})=>K({height:0,width:"100vw",overflow:"hidden",position:"relative",left:-n[0],right:-i[0],paddingBottom:"56.25%",[V[0]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[1]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[1]}px)`},[V[1]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[2]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[2]}px)`},[V[2]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[3]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[3]}px)`}},t)),xc=({video:t,poster:e,isAutoPlay:n,styles:i={},showControls:r,startMuted:o=!1,theme:s=_})=>E(vc,{theme:s,styles:i,children:E(_s,{isVideoFullWidth:!0,video:t,theme:s,poster:e,isAutoPlay:n,startMuted:o,showControls:r})}),bc=O.div(({styles:t,theme:{languageSwitcher:{width:e}}})=>K({width:e[0],marginLeft:"auto",marginRight:"auto",position:"relative",[V[0]]:{width:e[1]},[V[1]]:{width:e[2]},[V[2]]:{width:e[3]}},t)),Sc=O.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),wc=O.select(({theme:{global:{defaultFont:t},languageSwitcher:{color:e,border:n,borderRadius:i,backgroundColor:r,paddingTop:o,paddingLeft:s,paddingRight:a,paddingBottom:l}}})=>({color:e,border:n,width:"100%",backgroundColor:r,appearance:"none",padding:"15px 30px",borderRadius:i,fontFamily:`var(--font-${t})`,paddingTop:o[0],paddingLeft:s[0],paddingRight:a[0],paddingBottom:l[0],[V[0]]:{paddingTop:o[1],paddingLeft:s[1],paddingRight:a[1],paddingBottom:l[1]},[V[1]]:{paddingTop:o[2],paddingLeft:s[2],paddingRight:a[2],paddingBottom:l[2]},[V[2]]:{paddingTop:o[3],paddingLeft:s[3],paddingRight:a[3],paddingBottom:l[3]},"&:focus":{outline:"none"}})),Tc=({currentLocale:t,handleChange:e,locales:n,styles:i={},theme:r=_,translations:o})=>dt(bc,{theme:r,styles:i,children:[E(Sc,{children:E(Pt,{theme:r,icon:"caret"})}),E(wc,{theme:r,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((s,a)=>E("option",{value:s,disabled:s===t,children:o[s]},`locale-${a}`))})]});var Cc="var(--_1wp326d0)",Pc="var(--_1wp326d1)",Ac={display:"flex",backgroundColor:"var(--_1wp326d1)",flex:"1 1 auto",minHeight:"45vh",textAlign:"center",alignItems:"center",flexDirection:"column",justifyContent:"center","@media":{"(min-width: 768px)":{minHeight:"var(--_1wp326d0)"}}};const Vc=({children:t,className:e,theme:n=_})=>{const{main:{backgroundColor:i,minHeight:r}}=n;return E("main",{className:e,style:rn({[Cc]:r,[Pc]:i}),children:t})},Ec=O.div(({isOpen:t,theme:{header:{overlayGap:e,overlayBackgroundColor:n}}})=>({top:0,left:0,zIndex:40,gap:e[0],width:"100vw",display:"flex",backgroundColor:n,height:"100vh",position:"fixed",overflow:"hidden",textAlign:"center",alignItems:"center",flexDirection:"column",transformOrigin:"0% 0%",justifyContent:"center",bottom:t?"-100vh":"100%",transform:t?"translate(0, 0)":"translate(0, -100%)",transition:"transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0)",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2]},[V[2]]:{gap:e[3]}})),Rc=({isOpen:t,theme:e=_,children:n})=>(P.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),E(Ec,{isOpen:t,theme:e,children:n})),Mc=O.header(({styles:t,isFixed:e,theme:{global:{paddingLeft:n,paddingRight:i},header:{height:r,gap:o,backgroundColor:s,paddingTop:a,paddingBottom:l}}})=>K({zIndex:30,gap:o[0],width:"100%",display:"flex",backgroundColor:s,height:r[0],alignItems:"center",paddingTop:a[0],paddingLeft:n[0],paddingRight:i[0],paddingBottom:l[0],justifyContent:"space-between",position:e?"fixed":"relative",[V[0]]:{gap:o[1],height:r[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:i[1],paddingBottom:l[1]},[V[1]]:{gap:o[2],height:r[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:i[2],paddingBottom:l[2]},[V[2]]:{gap:o[3],height:r[3],paddingTop:a[3],paddingLeft:n[3],paddingRight:i[3],paddingBottom:l[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),Dc=O.div(({theme:{header:{height:t}}})=>({height:t[0],[V[0]]:{height:t[1]},[V[1]]:{height:t[2]},[V[2]]:{height:t[3]}})),Lc=O.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[V[1]]:{display:t?"block":"none"}})),lr=O.span(({isNavOpen:t,theme:{header:{toggleNavColor:e,toggleNavOpenColor:n,toggleNavBorderRadius:i}}})=>({height:2,width:25,borderRadius:i,marginBottom:8,display:"block",position:"relative",transformOrigin:"center center",transition:"all 0.5s ease-in-out",background:t?n:e,"&:nth-of-type(1)":{transform:t?"rotate(45deg) translate(4px, 3px)":"none"},"&:nth-of-type(2)":{transform:t?"rotate(-45deg) translate(4px, -3px)":"none"}})),Oc=({onToggleNav:t,theme:e=_,isNavOpen:n=!1,displayOnDesktop:i})=>dt(Lc,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),t()},"aria-label":"Toggle nav",displayOnDesktop:i,children:[E(lr,{theme:e,isNavOpen:n}),E(lr,{theme:e,isNavOpen:n})]}),kc=({children:t,styles:e={},isFixed:n=!1,childrenOverlay:i,theme:r=_,hideToggleNav:o=!1,displayToggleNavOnDesktop:s=!1})=>{const[a,l]=P.useState(!1);return dt(bl,{children:[dt(Mc,{theme:r,styles:e,isFixed:n,children:[i&&E(Rc,{theme:r,isOpen:a,children:i}),t,!o&&E(Oc,{theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),n&&E(Dc,{theme:r})]})},Fc=O.footer(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},footer:{gap:i,backgroundColor:r,paddingTop:o,paddingBottom:s}}})=>K({zIndex:20,gap:i[0],backgroundColor:r,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",paddingTop:o[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:s[0],justifyContent:"space-between",[V[0]]:{gap:i[1],paddingTop:o[1],paddingLeft:e[1],paddingRight:n[1],paddingBottom:s[1]},[V[1]]:{gap:i[2],flexDirection:"row",paddingTop:o[2],paddingLeft:e[2],paddingRight:n[2],paddingBottom:s[2]},[V[2]]:{gap:i[3],paddingTop:o[3],paddingLeft:e[3],paddingRight:n[3],paddingBottom:s[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),Ic=({children:t,styles:e={},theme:n=_})=>E(Fc,{theme:n,styles:e,children:t});var re=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(re||{});const Bc=O.div(({theme:t,styles:e,align:n,columns:i,isCentered:r,isInverted:o})=>{const s={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start",gap:t.columns.gap/2,justifyContent:"space-between",textAlign:n===re.Center?"center":"left",[V[1]]:{gap:t.columns.gap,alignItems:r?"center":"stretch",flexDirection:o?"row-reverse":"row",justifyContent:n===re.Right?"flex-end":n===re.Center?"center":"flex-start"},[V[2]]:{gap:t.columns.gap*2}},a=i.map((l,c)=>({[`>:nth-of-type(${c+1})`]:{minWidth:"100%",position:"relative","&:empty":{marginTop:-t.columns.gap/2,[V[1]]:{marginTop:0}},[V[1]]:{flex:l,minWidth:"auto",maxWidth:`${l}%`}}}));return K(Object.assign(s,...a),e)}),$c=({columns:t,children:e,styles:n={},align:i=re.Left,isCentered:r=!1,isInverted:o=!1,theme:s=_})=>E(Bc,{align:i,theme:s,columns:t,isCentered:r,isInverted:o,styles:n,children:e}),Ns=P.createContext({});function Us(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const di=P.createContext(null),zs=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function jc(t=!0){const e=P.useContext(di);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,o=P.useId();P.useEffect(()=>{if(t)return r(o)},[t]);const s=P.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,s]:[!0]}const hi=typeof window<"u",Ws=hi?P.useLayoutEffect:P.useEffect,ut=t=>t;let ue=ut,Mt=ut;process.env.NODE_ENV!=="production"&&(ue=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Mt=(t,e)=>{if(!t)throw new Error(e)});function pi(t){let e;return()=>(e===void 0&&(e=t()),e)}const oe=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Vt=t=>t*1e3,Dt=t=>t/1e3,_c={skipAnimations:!1,useManualTiming:!1},We=["read","resolveKeyframes","update","preRender","render","postRender"];function Nc(t,e){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,f=!1,d=!1)=>{const p=d&&r?n:i;return f&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{i.delete(u),s.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,c.process(u))}};return c}const Uc=40;function Hs(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=We.reduce((v,w)=>(v[w]=Nc(o),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,h=()=>{const v=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(v-r.timestamp,Uc),1),r.timestamp=v,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},p=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:We.reduce((v,w)=>{const T=s[w];return v[w]=(A,m=!1,R=!1)=>(n||p(),T.schedule(A,m,R)),v},{}),cancel:v=>{for(let w=0;w<We.length;w++)s[We[w]].cancel(v)},state:r,steps:s}}const{schedule:U,cancel:$t,state:J,steps:En}=Hs(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),Gs=P.createContext({strict:!1}),cr={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"]},ae={};for(const t in cr)ae[t]={isEnabled:e=>cr[t].some(n=>!!e[n])};function zc(t){for(const e in t)ae[e]={...ae[e],...t[e]}}const Wc=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 an(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Wc.has(t)}let Ks=t=>!an(t);function Hc(t){t&&(Ks=e=>e.startsWith("on")?!an(e):t(e))}try{Hc(require("@emotion/is-prop-valid").default)}catch{}function Gc(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Ks(r)||n===!0&&an(r)||!e&&!an(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const ur=new Set;function yn(t,e,n){t||ur.has(e)||(console.warn(e),ur.add(e))}function Kc(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&yn(!1,"motion() is deprecated. Use motion.create() instead."),t(...i));return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const vn=P.createContext({});function xn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ee(t){return typeof t=="string"||Array.isArray(t)}const mi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gi=["initial",...mi];function bn(t){return xn(t.animate)||gi.some(e=>Ee(t[e]))}function qs(t){return!!(bn(t)||t.variants)}function qc(t,e){if(bn(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ee(n)?n:void 0,animate:Ee(i)?i:void 0}}return t.inherit!==!1?e:{}}function Yc(t){const{initial:e,animate:n}=qc(t,P.useContext(vn));return P.useMemo(()=>({initial:e,animate:n}),[fr(e),fr(n)])}function fr(t){return Array.isArray(t)?t.join(" "):t}const Xc=Symbol.for("motionComponentSymbol");function Zt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Zc(t,e,n){return P.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Zt(n)&&(n.current=i))},[e])}const yi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jc="framerAppearId",Ys="data-"+yi(Jc),{schedule:vi,cancel:tm}=Hs(queueMicrotask,!1),Xs=P.createContext({});function Qc(t,e,n,i,r){var o,s;const{visualElement:a}=P.useContext(vn),l=P.useContext(Gs),c=P.useContext(di),u=P.useContext(zs).reducedMotion,f=P.useRef(null);i=i||l.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const d=f.current,h=P.useContext(Xs);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&tu(f.current,n,r,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const g=n[Ys],S=P.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Ws(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),vi.render(d.render),S.current&&d.animationState&&d.animationState.animateChanges())}),P.useEffect(()=>{d&&(!S.current&&d.animationState&&d.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),S.current=!1))}),d}function tu(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Zs(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&Zt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function Zs(t){if(t)return t.options.allowProjection!==!1?t.projection:Zs(t.parent)}function eu({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var o,s;t&&zc(t);function a(c,u){let f;const d={...P.useContext(zs),...c,layoutId:nu(c)},{isStatic:h}=d,p=Yc(c),g=i(c,h);if(!h&&hi){iu(d,t);const S=ru(d);f=S.MeasureLayout,p.visualElement=Qc(r,g,d,e,S.ProjectionNode)}return Qe.jsxs(vn.Provider,{value:p,children:[f&&p.visualElement?Qe.jsx(f,{visualElement:p.visualElement,...d}):null,n(r,c,Zc(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(s=(o=r.displayName)!==null&&o!==void 0?o:r.name)!==null&&s!==void 0?s:""})`}`;const l=P.forwardRef(a);return l[Xc]=r,l}function nu({layoutId:t}){const e=P.useContext(Ns).id;return e&&t!==void 0?e+"-"+t:t}function iu(t,e){const n=P.useContext(Gs).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ue(!1,i):Mt(!1,i)}}function ru(t){const{drag:e,layout:n}=ae;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Js=t=>e=>typeof e=="string"&&e.startsWith(t),xi=Js("--"),su=Js("var(--"),bi=t=>su(t)?ou.test(t.split("/*")[0].trim()):!1,ou=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Re={};function au(t){for(const e in t)Re[e]=t[e],xi(e)&&(Re[e].isCSSVariable=!0)}const fe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yt=new Set(fe);function Qs(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Re[t]||t==="opacity")}const it=t=>!!(t&&t.getVelocity),to=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Lt=(t,e,n)=>n>e?e:n<t?t:n,de={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Me={...de,transform:t=>Lt(0,1,t)},He={...de,default:1},Be=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=Be("deg"),Et=Be("%"),L=Be("px"),lu=Be("vh"),cu=Be("vw"),dr={...Et,parse:t=>Et.parse(t)/100,transform:t=>Et.transform(t*100)},uu={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L},fu={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:He,scaleX:He,scaleY:He,scaleZ:He,skew:Bt,skewX:Bt,skewY:Bt,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Me,originX:dr,originY:dr,originZ:L},hr={...de,transform:Math.round},Si={...uu,...fu,zIndex:hr,size:L,fillOpacity:Me,strokeOpacity:Me,numOctaves:hr},du={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hu=fe.length;function pu(t,e,n){let i="",r=!0;for(let o=0;o<hu;o++){const s=fe[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=to(a,Si[s]);if(!l){r=!1;const u=du[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}function wi(t,e,n){const{style:i,vars:r,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Yt.has(l)){s=!0;continue}else if(xi(l)){r[l]=c;continue}else{const u=to(c,Si[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=pu(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;i.transformOrigin=`${l} ${c} ${u}`}}const Ti=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eo(t,e,n){for(const i in e)!it(e[i])&&!Qs(i,n)&&(t[i]=e[i])}function mu({transformTemplate:t},e){return P.useMemo(()=>{const n=Ti();return wi(n,e,t),Object.assign({},n.vars,n.style)},[e])}function gu(t,e){const n=t.style||{},i={};return eo(i,n,t),Object.assign(i,mu(t,e)),i}function yu(t,e){const n={},i=gu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const vu=["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 Ci(t){return typeof t!="string"||t.includes("-")?!1:!!(vu.indexOf(t)>-1||/[A-Z]/u.test(t))}const xu={offset:"stroke-dashoffset",array:"stroke-dasharray"},bu={offset:"strokeDashoffset",array:"strokeDasharray"};function Su(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?xu:bu;t[o.offset]=L.transform(-i);const s=L.transform(e),a=L.transform(n);t[o.array]=`${s} ${a}`}function pr(t,e,n){return typeof t=="string"?t:L.transform(e+n*t)}function wu(t,e,n){const i=pr(e,t.x,t.width),r=pr(n,t.y,t.height);return`${i} ${r}`}function Pi(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(wi(t,c,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:p}=t;d.transform&&(p&&(h.transform=d.transform),delete d.transform),p&&(r!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=wu(p,r!==void 0?r:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),s!==void 0&&Su(d,s,a,l,!1)}const no=()=>({...Ti(),attrs:{}}),Ai=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Tu(t,e,n,i){const r=P.useMemo(()=>{const o=no();return Pi(o,e,Ai(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};eo(o,t.style,t),r.style={...o,...r.style}}return r}function Cu(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Ci(n)?Tu:yu)(i,o,s,n),c=Gc(i,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:r}:{},{children:f}=i,d=P.useMemo(()=>it(f)?f.get():f,[f]);return P.createElement(n,{...u,children:d})}}function mr(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Vi(t,e,n,i){if(typeof e=="function"){const[r,o]=mr(i);e=e(n!==void 0?n:t.custom,r,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,o]=mr(i);e=e(n!==void 0?n:t.custom,r,o)}return e}const Hn=t=>Array.isArray(t),Pu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Au=t=>Hn(t)?t[t.length-1]||0:t;function Xe(t){const e=it(t)?t.get():t;return Pu(e)?e.toValue():e}function Vu({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,o){const s={latestValues:Eu(i,r,o,t),renderState:e()};return n&&(s.onMount=a=>n({props:i,current:a,...s}),s.onUpdate=a=>n(a)),s}const io=t=>(e,n)=>{const i=P.useContext(vn),r=P.useContext(di),o=()=>Vu(t,e,i,r);return n?o():Us(o)};function Eu(t,e,n,i){const r={},o=i(t,{});for(const d in o)r[d]=Xe(o[d]);let{initial:s,animate:a}=t;const l=bn(t),c=qs(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const f=u?a:s;if(f&&typeof f!="boolean"&&!xn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Vi(t,d[h]);if(p){const{transitionEnd:g,transition:S,...v}=p;for(const w in v){let T=v[w];if(Array.isArray(T)){const A=u?T.length-1:0;T=T[A]}T!==null&&(r[w]=T)}for(const w in g)r[w]=g[w]}}}return r}function Ei(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(it(r[s])||e.style&&it(e.style[s])||Qs(s,t)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const Ru={useVisualState:io({scrapeMotionValuesFromProps:Ei,createRenderState:Ti})};function ro(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 so(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const oo=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 ao(t,e,n,i){so(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(oo.has(r)?r:yi(r),e.attrs[r])}function lo(t,e,n){const i=Ei(t,e,n);for(const r in t)if(it(t[r])||it(e[r])){const o=fe.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=t[r]}return i}const gr=["x","y","width","height","cx","cy","r"],Mu={useVisualState:io({scrapeMotionValuesFromProps:lo,createRenderState:no,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:r})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in r)if(Yt.has(a)){o=!0;break}}if(!o)return;let s=!e;if(e)for(let a=0;a<gr.length;a++){const l=gr[a];t[l]!==e[l]&&(s=!0)}s&&U.read(()=>{ro(n,i),U.render(()=>{Pi(i,r,Ai(n.tagName),t.transformTemplate),ao(n,i)})})}})};function Du(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Ci(i)?Mu:Ru,preloadedFeatures:t,useRender:Cu(r),createVisualElement:e,Component:i};return eu(s)}}function De(t,e,n){const i=t.getProps();return Vi(i,e,n!==void 0?n:i.custom,t)}const Lu=pi(()=>window.ScrollTimeline!==void 0);class Ou{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 i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(r=>{if(Lu()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].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 ku extends Ou{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Ri(t,e){return t?t[e]||t.default||t:void 0}const Gn=2e4;function co(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Gn;)e+=n,i=t.next(e);return e>=Gn?1/0:e}function Mi(t){return typeof t=="function"}function yr(t,e){t.timeline=e,t.onfinish=null}const Di=t=>Array.isArray(t)&&typeof t[0]=="number",Fu={linearEasing:void 0};function Iu(t,e){const n=pi(t);return()=>{var i;return(i=Fu[e])!==null&&i!==void 0?i:n()}}const ln=Iu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uo=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let o=0;o<r;o++)i+=t(oe(0,r-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function fo(t){return!!(typeof t=="function"&&ln()||!t||typeof t=="string"&&(t in Kn||ln())||Di(t)||Array.isArray(t)&&t.every(fo))}const ge=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ge([0,.65,.55,1]),circOut:ge([.55,0,1,.45]),backIn:ge([.31,.01,.66,-.59]),backOut:ge([.33,1.53,.69,.99])};function ho(t,e){if(t)return typeof t=="function"&&ln()?uo(t,e):Di(t)?ge(t):Array.isArray(t)?t.map(n=>ho(n,e)||Kn.easeOut):Kn[t]}const St={x:!1,y:!1};function po(){return St.x||St.y}function mo(t,e,n){var i;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const o=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function go(t,e){const n=mo(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function vr(t){return!(t.pointerType==="touch"||po())}function Bu(t,e,n={}){const[i,r,o]=go(t,n),s=a=>{if(!vr(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=f=>{vr(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}function cn(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 yo=(t,e)=>e?t===e?!0:yo(t,e.parentElement):!1,Li=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,$u=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ju(t){return $u.has(t.tagName)||t.tabIndex!==-1}const ye=new WeakSet;function xr(t){return e=>{e.key==="Enter"&&t(e)}}function Rn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const _u=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=xr(()=>{if(ye.has(n))return;Rn(n,"down");const r=xr(()=>{Rn(n,"up")}),o=()=>Rn(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function br(t){return Li(t)&&!po()}function Nu(t,e,n={}){const[i,r,o]=go(t,n),s=a=>{const l=a.currentTarget;if(!l||!br(a)||ye.has(l))return;ye.add(l),cn(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",d),cn(h,"release"),!(!br(h)||!ye.has(l))&&(ye.delete(l),typeof c=="function"&&c(h,{success:p}))},f=h=>{(h.isTrusted?Uu(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)||yo(l,h.target))},d=h=>{u(h,!1)};l.addEventListener("pointerup",f,r),l.addEventListener("pointercancel",d,r),l.addEventListener("lostpointercapture",d,r)};return i.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!ju(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,r),l&&a.addEventListener("focus",c=>_u(c,r),r)}),o}function Uu(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function zu(t){return t==="x"||t==="y"?St[t]?null:(St[t]=!0,()=>{St[t]=!1}):St.x||St.y?null:(St.x=St.y=!0,()=>{St.x=St.y=!1})}const vo=new Set(["width","height","top","left","right","bottom",...fe]);let Ze;function Wu(){Ze=void 0}const Rt={now:()=>(Ze===void 0&&Rt.set(J.isProcessing||_c.useManualTiming?J.timestamp:performance.now()),Ze),set:t=>{Ze=t,queueMicrotask(Wu)}};function Oi(t,e){t.indexOf(e)===-1&&t.push(e)}function ki(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Fi{constructor(){this.subscriptions=[]}add(e){return Oi(this.subscriptions,e),()=>ki(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function xo(t,e){return e?t*(1e3/e):0}const Sr=30,Hu=t=>!isNaN(parseFloat(t));class Gu{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=Rt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=Hu(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&yn(!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 Fi);const i=this.events[e].add(n);return e==="change"?()=>{i(),U.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}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>Sr)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Sr);return xo(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 Le(t,e){return new Gu(t,e)}function Ku(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Le(n))}function Ii(t,e){const n=De(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=Au(o[s]);Ku(t,s,a)}}function qu(t){return!!(it(t)&&t.add)}function qn(t,e){const n=t.getValue("willChange");if(qu(n))return n.add(e)}function bo(t){return t.props[Ys]}const So=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Yu=1e-7,Xu=12;function Zu(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=So(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>Yu&&++a<Xu);return s}function $e(t,e,n,i){if(t===e&&n===i)return ut;const r=o=>Zu(o,0,1,t,n);return o=>o===0||o===1?o:So(r(o),e,i)}const wo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,To=t=>e=>1-t(1-e),Co=$e(.33,1.53,.69,.99),Bi=To(Co),Po=wo(Bi),Ao=t=>(t*=2)<1?.5*Bi(t):.5*(2-Math.pow(2,-10*(t-1))),$i=t=>1-Math.sin(Math.acos(t)),Vo=To($i),Eo=wo($i),Ro=t=>/^0[^.\s]+$/u.test(t);function Ju(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ro(t):!0}const xe=t=>Math.round(t*1e5)/1e5,ji=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qu(t){return t==null}const tf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_i=(t,e)=>n=>!!(typeof n=="string"&&tf.test(n)&&n.startsWith(t)||e&&!Qu(n)&&Object.prototype.hasOwnProperty.call(n,e)),Mo=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(ji);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},ef=t=>Lt(0,255,t),Mn={...de,transform:t=>Math.round(ef(t))},Kt={test:_i("rgb","red"),parse:Mo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Mn.transform(t)+", "+Mn.transform(e)+", "+Mn.transform(n)+", "+xe(Me.transform(i))+")"};function nf(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Yn={test:_i("#"),parse:nf,transform:Kt.transform},Jt={test:_i("hsl","hue"),parse:Mo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Et.transform(xe(e))+", "+Et.transform(xe(n))+", "+xe(Me.transform(i))+")"},nt={test:t=>Kt.test(t)||Yn.test(t)||Jt.test(t),parse:t=>Kt.test(t)?Kt.parse(t):Jt.test(t)?Jt.parse(t):Yn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Kt.transform(t):Jt.transform(t)},rf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function sf(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ji))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(rf))===null||n===void 0?void 0:n.length)||0)>0}const Do="number",Lo="color",of="var",af="var(",wr="${}",lf=/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 Oe(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(lf,l=>(nt.test(l)?(i.color.push(o),r.push(Lo),n.push(nt.parse(l))):l.startsWith(af)?(i.var.push(o),r.push(of),n.push(l)):(i.number.push(o),r.push(Do),n.push(parseFloat(l))),++o,wr)).split(wr);return{values:n,split:a,indexes:i,types:r}}function Oo(t){return Oe(t).values}function ko(t){const{split:e,types:n}=Oe(t),i=e.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],r[s]!==void 0){const a=n[s];a===Do?o+=xe(r[s]):a===Lo?o+=nt.transform(r[s]):o+=r[s]}return o}}const cf=t=>typeof t=="number"?0:t;function uf(t){const e=Oo(t);return ko(t)(e.map(cf))}const jt={test:sf,parse:Oo,createTransformer:ko,getAnimatableNone:uf},ff=new Set(["brightness","contrast","saturate","opacity"]);function df(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(ji)||[];if(!i)return t;const r=n.replace(i,"");let o=ff.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const hf=/\b([a-z-]*)\(.*?\)/gu,Xn={...jt,getAnimatableNone:t=>{const e=t.match(hf);return e?e.map(df).join(" "):t}},pf={...Si,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:Xn,WebkitFilter:Xn},Ni=t=>pf[t];function Fo(t,e){let n=Ni(t);return n!==Xn&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const mf=new Set(["auto","none","0"]);function gf(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!mf.has(o)&&Oe(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Fo(n,r)}const Tr=t=>t===de||t===L,Cr=(t,e)=>parseFloat(t.split(", ")[e]),Pr=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Cr(r[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?Cr(o[1],t):0}},yf=new Set(["x","y","z"]),vf=fe.filter(t=>!yf.has(t));function xf(t){const e=[];return vf.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const le={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:Pr(4,13),y:Pr(5,14)};le.translateX=le.x;le.translateY=le.y;const qt=new Set;let Zn=!1,Jn=!1;function Io(){if(Jn){const t=Array.from(qt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=xf(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Jn=!1,Zn=!1,qt.forEach(t=>t.complete()),qt.clear()}function Bo(){qt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Jn=!0)})}function bf(){Bo(),Io()}class Ui{constructor(e,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qt.add(this),Zn||(Zn=!0,U.read(Bo),U.resolveKeyframes(Io))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const s=r==null?void 0:r.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),r&&s===void 0&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),qt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,qt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $o=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Sf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wf(t){const e=Sf.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const Tf=4;function jo(t,e,n=1){Mt(n<=Tf,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=wf(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return $o(s)?parseFloat(s):s}return bi(r)?jo(r,e,n+1):r}const _o=t=>e=>e.test(t),Cf={test:t=>t==="auto",parse:t=>t},No=[de,L,Et,Bt,cu,lu,Cf],Ar=t=>No.find(_o(t));class Uo extends Ui{constructor(e,n,i,r,o){super(e,n,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=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(),bi(c))){const u=jo(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!vo.has(i)||e.length!==2)return;const[r,o]=e,s=Ar(r),a=Ar(o);if(s!==a)if(Tr(s)&&Tr(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,i=[];for(let r=0;r<e.length;r++)Ju(e[r])&&i.push(r);i.length&&gf(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=le[i](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 Vr=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jt.test(t)||t==="0")&&!t.startsWith("url("));function Pf(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,i){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Vr(r,e),a=Vr(o,e);return ue(s===a,`You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:Pf(t)||(n==="spring"||Mi(n))&&i}const Vf=t=>t!==null;function Sn(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(Vf),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const Ef=40;class zo{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Rt.now(),this.options={autoplay:e,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ef?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bf(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Rt.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Af(e,i,r,o))if(s)this.options.duration=0;else{l&&l(Sn(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 G=(t,e,n)=>t+(e-t)*n;function Dn(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 Rf({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,o=0,s=0;if(!e)r=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Dn(l,a,t+1/3),o=Dn(l,a,t),s=Dn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function un(t,e){return n=>n>0?e:t}const Ln=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Mf=[Yn,Kt,Jt],Df=t=>Mf.find(e=>e.test(t));function Er(t){const e=Df(t);if(ue(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Jt&&(n=Rf(n)),n}const Rr=(t,e)=>{const n=Er(t),i=Er(e);if(!n||!i)return un(t,e);const r={...n};return o=>(r.red=Ln(n.red,i.red,o),r.green=Ln(n.green,i.green,o),r.blue=Ln(n.blue,i.blue,o),r.alpha=G(n.alpha,i.alpha,o),Kt.transform(r))},Lf=(t,e)=>n=>e(t(n)),je=(...t)=>t.reduce(Lf),Qn=new Set(["none","hidden"]);function Of(t,e){return Qn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function kf(t,e){return n=>G(t,e,n)}function zi(t){return typeof t=="number"?kf:typeof t=="string"?bi(t)?un:nt.test(t)?Rr:Bf:Array.isArray(t)?Wo:typeof t=="object"?nt.test(t)?Rr:Ff:un}function Wo(t,e){const n=[...t],i=n.length,r=t.map((o,s)=>zi(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Ff(t,e){const n={...t,...e},i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=zi(t[r])(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function If(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;i[o]=l,r[s]++}return i}const Bf=(t,e)=>{const n=jt.createTransformer(e),i=Oe(t),r=Oe(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Qn.has(t)&&!r.values.length||Qn.has(e)&&!i.values.length?Of(t,e):je(Wo(If(i,r),r.values),n):(ue(!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.`),un(t,e))};function Ho(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?G(t,e,n):zi(t)(t,e)}const $f=5;function Go(t,e,n){const i=Math.max(e-$f,0);return xo(n-t(i),e-i)}const H={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},Mr=.001;function jf({duration:t=H.duration,bounce:e=H.bounce,velocity:n=H.velocity,mass:i=H.mass}){let r,o;ue(t<=Vt(H.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=Lt(H.minDamping,H.maxDamping,s),t=Lt(H.minDuration,H.maxDuration,Dt(t)),s<1?(r=c=>{const u=c*s,f=u*t,d=u-n,h=ti(c,s),p=Math.exp(-f);return Mr-d/h*p},o=c=>{const f=c*s*t,d=f*n+n,h=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-f),g=ti(Math.pow(c,2),s);return(-r(c)+Mr>0?-1:1)*((d-h)*p)/g}):(r=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-.001+u*f},o=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=Nf(r,o,a);if(t=Vt(t),isNaN(l))return{stiffness:H.stiffness,damping:H.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const _f=12;function Nf(t,e,n){let i=n;for(let r=1;r<_f;r++)i=i-t(i)/e(i);return i}function ti(t,e){return t*Math.sqrt(1-e*e)}const Uf=["duration","bounce"],zf=["stiffness","damping","mass"];function Dr(t,e){return e.some(n=>t[n]!==void 0)}function Wf(t){let e={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...t};if(!Dr(t,zf)&&Dr(t,Uf))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*Lt(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:H.mass,stiffness:r,damping:o}}else{const n=jf(t);e={...e,...n,mass:H.mass},e.isResolvedFromDuration=!0}return e}function Ko(t=H.visualDuration,e=H.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=Wf({...n,velocity:-Dt(n.velocity||0)}),p=d||0,g=c/(2*Math.sqrt(l*u)),S=s-o,v=Dt(Math.sqrt(l/u)),w=Math.abs(S)<5;i||(i=w?H.restSpeed.granular:H.restSpeed.default),r||(r=w?H.restDelta.granular:H.restDelta.default);let T;if(g<1){const m=ti(v,g);T=R=>{const D=Math.exp(-g*v*R);return s-D*((p+g*v*S)/m*Math.sin(m*R)+S*Math.cos(m*R))}}else if(g===1)T=m=>s-Math.exp(-v*m)*(S+(p+v*S)*m);else{const m=v*Math.sqrt(g*g-1);T=R=>{const D=Math.exp(-g*v*R),y=Math.min(m*R,300);return s-D*((p+g*v*S)*Math.sinh(y)+m*S*Math.cosh(y))/m}}const A={calculatedDuration:h&&f||null,next:m=>{const R=T(m);if(h)a.done=m>=f;else{let D=0;g<1&&(D=m===0?Vt(p):Go(T,m,R));const y=Math.abs(D)<=i,b=Math.abs(s-R)<=r;a.done=y&&b}return a.value=a.done?s:R,a},toString:()=>{const m=Math.min(co(A),Gn),R=uo(D=>A.next(m*D).value,m,30);return m+"ms "+R}};return A}function Lr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},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 S=f+g,v=s===void 0?S:s(S);v!==S&&(g=v-f);const w=y=>-g*Math.exp(-y/i),T=y=>v+w(y),A=y=>{const b=w(y),x=T(y);d.done=Math.abs(b)<=c,d.value=d.done?v:x};let m,R;const D=y=>{h(d.value)&&(m=y,R=Ko({keyframes:[d.value,p(d.value)],velocity:Go(T,y,d.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:y=>{let b=!1;return!R&&m===void 0&&(b=!0,A(y),D(y)),m!==void 0&&y>=m?R.next(y-m):(!b&&A(y),d)}}}const Hf=$e(.42,0,1,1),Gf=$e(0,0,.58,1),qo=$e(.42,0,.58,1),Kf=t=>Array.isArray(t)&&typeof t[0]!="number",Or={linear:ut,easeIn:Hf,easeInOut:qo,easeOut:Gf,circIn:$i,circInOut:Eo,circOut:Vo,backIn:Bi,backInOut:Po,backOut:Co,anticipate:Ao},kr=t=>{if(Di(t)){Mt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return $e(e,n,i,r)}else if(typeof t=="string")return Mt(Or[t]!==void 0,`Invalid easing type '${t}'`),Or[t];return t};function qf(t,e,n){const i=[],r=n||Ho,o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ut:e;a=je(l,a)}i.push(a)}return i}function Yf(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(Mt(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=qf(e,i,r),l=a.length,c=u=>{if(s&&u<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=oe(t[f],t[f+1],u);return a[f](d)};return n?u=>c(Lt(t[0],t[o-1],u)):c}function Xf(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=oe(0,e,i);t.push(G(n,1,r))}}function Zf(t){const e=[0];return Xf(e,t.length-1),e}function Jf(t,e){return t.map(n=>n*e)}function Qf(t,e){return t.map(()=>e||qo).splice(0,t.length-1)}function be({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=Kf(i)?i.map(kr):kr(i),o={done:!1,value:e[0]},s=Jf(n&&n.length===e.length?n:Zf(e),t),a=Yf(s,e,{ease:Array.isArray(r)?r:Qf(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const td=t=>{const e=({timestamp:n})=>t(n);return{start:()=>U.update(e,!0),stop:()=>$t(e),now:()=>J.isProcessing?J.timestamp:Rt.now()}},ed={decay:Lr,inertia:Lr,tween:be,keyframes:be,spring:Ko},nd=t=>t/100;class Wi extends zo{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:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Ui,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=Mi(n)?n:ed[n]||be;let l,c;process.env.NODE_ENV!=="production"&&a!==be&&Mt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==be&&typeof e[0]!="number"&&(l=je(nd,Ho(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=co(u));const{calculatedDuration:f}=u,d=f+r,h=d*(i+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,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:i}=this;if(!i){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:g,onUpdate:S}=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-d*(this.speed>=0?1:-1),w=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,A=o;if(h){const y=Math.min(this.currentTime,u)/f;let b=Math.floor(y),x=y%1;!x&&y>=1&&(x=1),x===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(p==="reverse"?(x=1-x,g&&(x-=g/f)):p==="mirror"&&(A=s)),T=Lt(0,1,x)*f}const m=w?{done:!1,value:l[0]}:A.next(T);a&&(m.value=a(m.value));let{done:R}=m;!w&&c!==null&&(R=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return D&&r!==void 0&&(m.value=Sn(l,this.options,r)),S&&S(m.value),D&&this.finish(),m}get duration(){const{resolved:e}=this;return e?Dt(e.calculatedDuration):0}get time(){return Dt(this.currentTime)}set time(e){e=Vt(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=Dt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=td,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??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 id=new Set(["opacity","clipPath","filter","transform"]);function rd(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=ho(a,r);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const sd=pi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),fn=10,od=2e4;function ad(t){return Mi(t.type)||t.type==="spring"||!fo(t.ease)}function ld(t,e){const n=new Wi({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<od;)i=n.sample(o),r.push(i.value),o+=fn;return{times:void 0,keyframes:r,duration:o-fn,ease:"linear"}}const Yo={anticipate:Ao,backInOut:Po,circInOut:Eo};function cd(t){return t in Yo}class Fr extends zo{constructor(e){super(e);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new Uo(o,(s,a)=>this.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:r,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&ln()&&cd(o)&&(o=Yo[o]),ad(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:p,...g}=this.options,S=ld(e,g);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,r=S.times,o=S.ease,s="keyframes"}const u=rd(a.owner.current,l,e,{...this.options,duration:i,times:r,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(yr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;a.set(Sn(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:r,type:s,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Dt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Dt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Vt(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:i}=n;i.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 ut;const{animation:i}=n;yr(i,e)}return ut}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:i,duration:r,type:o,ease:s,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:d,...h}=this.options,p=new Wi({...h,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),g=Vt(this.time);c.setWithVelocity(p.sample(g-fn).value,p.sample(g).value,fn)}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:i,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return sd()&&i&&id.has(i)&&!l&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const ud={type:"spring",stiffness:500,damping:25,restSpeed:10},fd=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),dd={type:"keyframes",duration:.8},hd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pd=(t,{keyframes:e})=>e.length>2?dd:Yt.has(t)?t.startsWith("scale")?fd(e[1]):ud:hd;function md({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Hi=(t,e,n,i={},r,o)=>s=>{const a=Ri(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Vt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};md(a)||(u={...u,...pd(t,u)}),u.duration&&(u.duration=Vt(u.duration)),u.repeatDelay&&(u.repeatDelay=Vt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!o&&e.get()!==void 0){const d=Sn(u.keyframes,a);if(d!==void 0)return U.update(()=>{u.onUpdate(d),u.onComplete()}),new ku([])}return!o&&Fr.supports(u)?new Fr(u):new Wi(u)};function gd({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Xo(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(s=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const d=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),h=l[f];if(h===void 0||u&&gd(u,f))continue;const p={delay:n,...Ri(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const v=bo(t);if(v){const w=window.MotionHandoffAnimation(v,f,U);w!==null&&(p.startTime=w,g=!0)}}qn(t,f),d.start(Hi(f,d,h,t.shouldReduceMotion&&vo.has(f)?{type:!1}:p,t,g));const S=d.animation;S&&c.push(S)}return a&&Promise.all(c).then(()=>{U.update(()=>{a&&Ii(t,a)})}),c}function ei(t,e,n={}){var i;const r=De(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Xo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return yd(t,e,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function yd(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(vd).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(ei(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function vd(t,e){return t.sortNodePosition(e)}function Zo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>ei(t,o,n));i=Promise.all(r)}else if(typeof e=="string")i=ei(t,e,n);else{const r=typeof e=="function"?De(t,e,n.custom):e;i=Promise.all(Xo(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Jo(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const xd=gi.length;function Qo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Qo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<xd;n++){const i=gi[n],r=t.props[i];(Ee(r)||r===!1)&&(e[i]=r)}return e}const bd=[...mi].reverse(),Sd=mi.length;function wd(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Zo(t,n,i)))}function Td(t){let e=wd(t),n=Ir(),i=!0;const r=l=>(c,u)=>{var f;const d=De(t,u,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function o(l){e=l(t)}function s(l){const{props:c}=t,u=Qo(t.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let S=0;S<Sd;S++){const v=bd[S],w=n[v],T=c[v]!==void 0?c[v]:u[v],A=Ee(T),m=v===l?w.isActive:null;m===!1&&(p=S);let R=T===u[v]&&T!==c[v]&&A;if(R&&i&&t.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...h},!w.isActive&&m===null||!T&&!w.prevProp||xn(T)||typeof T=="boolean")continue;const D=Cd(w.prevProp,T);let y=D||v===l&&w.isActive&&!R&&A||S>p&&A,b=!1;const x=Array.isArray(T)?T:[T];let C=x.reduce(r(v),{});m===!1&&(C={});const{prevResolvedValues:k={}}=w,W={...k,...C},X=F=>{y=!0,d.has(F)&&(b=!0,d.delete(F)),w.needsAnimating[F]=!0;const N=t.getValue(F);N&&(N.liveStyle=!1)};for(const F in W){const N=C[F],at=k[F];if(h.hasOwnProperty(F))continue;let rt=!1;Hn(N)&&Hn(at)?rt=!Jo(N,at):rt=N!==at,rt?N!=null?X(F):d.add(F):N!==void 0&&d.has(F)?X(F):w.protectedKeys[F]=!0}w.prevProp=T,w.prevResolvedValues=C,w.isActive&&(h={...h,...C}),i&&t.blockInitialAnimation&&(y=!1),y&&(!(R&&D)||b)&&f.push(...x.map(F=>({animation:F,options:{type:v}})))}if(d.size){const S={};if(typeof c.initial!="boolean"){const v=De(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(S.transition=v.transition)}d.forEach(v=>{const w=t.getBaseTarget(v),T=t.getValue(v);T&&(T.liveStyle=!0),S[v]=w??null}),f.push({animation:S})}let g=!!f.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(f):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(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ir(),i=!0}}}function Cd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Jo(e,t):!1}function Wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ir(){return{animate:Wt(!0),whileInView:Wt(),whileHover:Wt(),whileTap:Wt(),whileDrag:Wt(),whileFocus:Wt(),exit:Wt()}}class _t{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Pd extends _t{constructor(e){super(e),e.animationState||(e.animationState=Td(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();xn(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 Ad=0;class Vd extends _t{constructor(){super(...arguments),this.id=Ad++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.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 Ed={animation:{Feature:Pd},exit:{Feature:Vd}};function ke(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function _e(t){return{point:{x:t.pageX,y:t.pageY}}}const Rd=t=>e=>Li(e)&&t(e,_e(e));function Qt(t,e,n,i){return ke(t,e,Rd(n),i)}function ta({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Md({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Dd(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}const ea=1e-4,Ld=1-ea,Od=1+ea,na=.01,kd=0-na,Fd=0+na;function ot(t){return t.max-t.min}function Id(t,e,n){return Math.abs(t-e)<=n}function Br(t,e,n,i=.5){t.origin=i,t.originPoint=G(e.min,e.max,t.origin),t.scale=ot(n)/ot(e),t.translate=G(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ld&&t.scale<=Od||isNaN(t.scale))&&(t.scale=1),(t.translate>=kd&&t.translate<=Fd||isNaN(t.translate))&&(t.translate=0)}function Se(t,e,n,i){Br(t.x,e.x,n.x,i?i.originX:void 0),Br(t.y,e.y,n.y,i?i.originY:void 0)}function $r(t,e,n){t.min=n.min+e.min,t.max=t.min+ot(e)}function Bd(t,e,n){$r(t.x,e.x,n.x),$r(t.y,e.y,n.y)}function jr(t,e,n){t.min=e.min-n.min,t.max=t.min+ot(e)}function we(t,e,n){jr(t.x,e.x,n.x),jr(t.y,e.y,n.y)}const _r=()=>({translate:0,scale:1,origin:0,originPoint:0}),te=()=>({x:_r(),y:_r()}),Nr=()=>({min:0,max:0}),q=()=>({x:Nr(),y:Nr()});function yt(t){return[t("x"),t("y")]}function On(t){return t===void 0||t===1}function ni({scale:t,scaleX:e,scaleY:n}){return!On(t)||!On(e)||!On(n)}function Ht(t){return ni(t)||ia(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ia(t){return Ur(t.x)||Ur(t.y)}function Ur(t){return t&&t!=="0%"}function dn(t,e,n){const i=t-n,r=e*i;return n+r}function zr(t,e,n,i,r){return r!==void 0&&(t=dn(t,r,i)),dn(t,n,i)+e}function ii(t,e=0,n=1,i,r){t.min=zr(t.min,e,n,i,r),t.max=zr(t.max,e,n,i,r)}function ra(t,{x:e,y:n}){ii(t.x,e.translate,e.scale,e.originPoint),ii(t.y,n.translate,n.scale,n.originPoint)}const Wr=.999999999999,Hr=1.0000000000001;function $d(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ne(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ra(t,s)),i&&Ht(o.latestValues)&&ne(t,o.latestValues))}e.x<Hr&&e.x>Wr&&(e.x=1),e.y<Hr&&e.y>Wr&&(e.y=1)}function ee(t,e){t.min=t.min+e,t.max=t.max+e}function Gr(t,e,n,i,r=.5){const o=G(t.min,t.max,r);ii(t,e,n,o,i)}function ne(t,e){Gr(t.x,e.x,e.scaleX,e.scale,e.originX),Gr(t.y,e.y,e.scaleY,e.scale,e.originY)}function sa(t,e){return ta(Dd(t.getBoundingClientRect(),e))}function jd(t,e,n){const i=sa(t,n),{scroll:r}=e;return r&&(ee(i.x,r.offset.x),ee(i.y,r.offset.y)),i}const Kr=(t,e)=>Math.abs(t-e);function _d(t,e){const n=Kr(t.x,e.x),i=Kr(t.y,e.y);return Math.sqrt(n**2+i**2)}class oa{constructor(e,n,{transformPagePoint:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Fn(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=_d(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:h}=u,{timestamp:p}=J;this.history.push({...h,timestamp:p});const{onStart:g,onMove:S}=this.handlers;f||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{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=kn(f,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{cn(u,"release"),this.end();const{onEnd:d,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Fn(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:kn(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,g),h&&h(u,g)},!Li(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i;const o=_e(e),s=kn(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=J;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,Fn(s,this.history)),cn(e,"set"),this.removeListeners=je(Qt(e.currentTarget,"pointermove",this.handlePointerMove),Qt(e.currentTarget,"pointerup",this.handlePointerUp),Qt(e.currentTarget,"pointercancel",this.handlePointerUp),Qt(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$t(this.updatePoint)}}function kn(t,e){return e?{point:e(t.point)}:t}function qr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Fn({point:t},e){return{point:t,delta:qr(t,aa(e)),offset:qr(t,Nd(e)),velocity:Ud(e,.1)}}function Nd(t){return t[0]}function aa(t){return t[t.length-1]}function Ud(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=aa(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Vt(e)));)n--;if(!i)return{x:0,y:0};const o=Dt(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zd(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?G(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?G(n,t,i.max):Math.min(t,n)),t}function Yr(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 Wd(t,{top:e,left:n,bottom:i,right:r}){return{x:Yr(t.x,n,r),y:Yr(t.y,e,i)}}function Xr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function Hd(t,e){return{x:Xr(t.x,e.x),y:Xr(t.y,e.y)}}function Gd(t,e){let n=.5;const i=ot(t),r=ot(e);return r>i?n=oe(e.min,e.max-i,t.min):i>r&&(n=oe(t.min,t.max-r,e.min)),Lt(0,1,n)}function Kd(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 ri=.35;function qd(t=ri){return t===!1?t=0:t===!0&&(t=ri),{x:Zr(t,"left","right"),y:Zr(t,"top","bottom")}}function Zr(t,e,n){return{min:Jr(t,e),max:Jr(t,n)}}function Jr(t,e){return typeof t=="number"?t:t[e]||0}const Yd=new WeakMap;class Xd{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:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_e(u).point)},o=(u,f)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=zu(d),!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),yt(S=>{let v=this.getAxisMotionValue(S).get()||0;if(Et.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[S];T&&(v=ot(T)*(parseFloat(v)/100))}}this.originPoint[S]=v}),p&&U.postRender(()=>p(u,f)),qn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:S}=f;if(h&&this.currentDirection===null){this.currentDirection=Zd(S),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),g&&g(u,f)},a=(u,f)=>this.stop(u,f),l=()=>yt(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new oa(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!Ge(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=zd(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Zt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=Wd(r.layoutBox,n):this.constraints=!1,this.elastic=qd(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Kd(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Zt(e))return!1;const i=e.current;Mt(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=jd(i,r.root,this.visualElement.getTransformPagePoint());let s=Hd(r.layout.layoutBox,o);if(n){const a=n(Md(s));this.hasMutatedConstraints=!!a,a&&(s=ta(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=yt(u=>{if(!Ge(u,n,this.currentDirection))return;let f=l[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return qn(this.visualElement,e),i.start(Hi(e,i,0,n,this.visualElement,!1))}stopAnimation(){yt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){yt(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()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){yt(n=>{const{drag:i}=this.getProps();if(!Ge(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(e[n]-G(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Zt(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=Gd({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),yt(s=>{if(!Ge(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(G(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;Yd.set(this.visualElement,this);const e=this.visualElement.current,n=Qt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Zt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(i);const s=ke(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(yt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=ri,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ge(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Zd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Jd extends _t{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new Xd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qr=t=>(e,n)=>{t&&U.postRender(()=>t(e,n))};class Qd extends _t{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new oa(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Qr(e),onStart:Qr(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&U.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Qt(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 Je={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ts(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const me={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(L.test(t))t=parseFloat(t);else return t;const n=ts(t,e.target.x),i=ts(t,e.target.y);return`${n}% ${i}%`}},th={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=jt.parse(t);if(r.length>5)return i;const o=jt.createTransformer(t),s=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=G(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}};class eh extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;au(nh),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Je.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||U.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),vi.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function la(t){const[e,n]=jc(),i=P.useContext(Ns);return Qe.jsx(eh,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(Xs),isPresent:e,safeToRemove:n})}const nh={borderRadius:{...me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomLeftRadius:me,borderBottomRightRadius:me,boxShadow:th};function ih(t,e,n){const i=it(t)?t:Le(t);return i.start(Hi("",i,e,n)),i.animation}function rh(t){return t instanceof SVGElement&&t.tagName!=="svg"}const sh=(t,e)=>t.depth-e.depth;class oh{constructor(){this.children=[],this.isDirty=!1}add(e){Oi(this.children,e),this.isDirty=!0}remove(e){ki(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sh),this.isDirty=!1,this.children.forEach(e)}}function ah(t,e){const n=Rt.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&($t(i),t(o-e))};return U.read(i,!0),()=>$t(i)}const ca=["TopLeft","TopRight","BottomLeft","BottomRight"],lh=ca.length,es=t=>typeof t=="string"?parseFloat(t):t,ns=t=>typeof t=="number"||L.test(t);function ch(t,e,n,i,r,o){r?(t.opacity=G(0,n.opacity!==void 0?n.opacity:1,uh(i)),t.opacityExit=G(e.opacity!==void 0?e.opacity:1,0,fh(i))):o&&(t.opacity=G(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<lh;s++){const a=`border${ca[s]}Radius`;let l=is(e,a),c=is(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ns(l)===ns(c)?(t[a]=Math.max(G(es(l),es(c),i),0),(Et.test(c)||Et.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=G(e.rotate||0,n.rotate||0,i))}function is(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const uh=ua(0,.5,Vo),fh=ua(.5,.95,ut);function ua(t,e,n){return i=>i<t?0:i>e?1:n(oe(t,e,i))}function rs(t,e){t.min=e.min,t.max=e.max}function gt(t,e){rs(t.x,e.x),rs(t.y,e.y)}function ss(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function os(t,e,n,i,r){return t-=e,t=dn(t,1/n,i),r!==void 0&&(t=dn(t,1/r,i)),t}function dh(t,e=0,n=1,i=.5,r,o=t,s=t){if(Et.test(e)&&(e=parseFloat(e),e=G(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=G(o.min,o.max,i);t===o&&(a-=e),t.min=os(t.min,e,n,a,r),t.max=os(t.max,e,n,a,r)}function as(t,e,[n,i,r],o,s){dh(t,e[n],e[i],e[r],e.scale,o,s)}const hh=["x","scaleX","originX"],ph=["y","scaleY","originY"];function ls(t,e,n,i){as(t.x,e,hh,n?n.x:void 0,i?i.x:void 0),as(t.y,e,ph,n?n.y:void 0,i?i.y:void 0)}function cs(t){return t.translate===0&&t.scale===1}function fa(t){return cs(t.x)&&cs(t.y)}function us(t,e){return t.min===e.min&&t.max===e.max}function mh(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function fs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function da(t,e){return fs(t.x,e.x)&&fs(t.y,e.y)}function ds(t){return ot(t.x)/ot(t.y)}function hs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class gh{constructor(){this.members=[]}add(e){Oi(this.members,e),e.scheduleRender()}remove(e){if(ki(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(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function yh(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),h&&(i+=`skewX(${h}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const In=["","X","Y","Z"],vh={visibility:"hidden"},ps=1e3;let xh=0;function Bn(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ha(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=bo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(r||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ha(i)}function pa({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=xh++,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(wh),this.nodes.forEach(Vh),this.nodes.forEach(Eh),this.nodes.forEach(Th)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 oh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Fi),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=rh(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let f;const d=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=ah(d,250),Je.hasAnimatedSinceResize&&(Je.hasAnimatedSinceResize=!1,this.nodes.forEach(gs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Oh,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!da(this.targetLayout,p),T=!d&&h;if(this.options.layoutRoot||this.resumeFrom||T||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,T);const A={...Ri(g,"layout"),onPlay:S,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else d||gs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$t(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Rh),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ha(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ms);return}this.isUpdating||this.nodes.forEach(Ph),this.isUpdating=!1,this.nodes.forEach(Ah),this.nodes.forEach(bh),this.nodes.forEach(Sh),this.clearAllSnapshots();const a=Rt.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,En.update.process(J),En.preRender.process(J),En.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ch),this.sharedNodes.forEach(Mh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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 s=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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!fa(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Ht(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),kh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return q();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Fh))){const{scroll:u}=this.root;u&&(ee(l.x,u.offset.x),ee(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=q();if(gt(l,s),!((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:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&gt(l,s),ee(l.x,f.offset.x),ee(l.y,f.offset.y))}return l}applyTransform(s,a=!1){const l=q();gt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ne(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ht(u.latestValues)&&ne(l,u.latestValues)}return Ht(this.latestValues)&&ne(l,this.latestValues),l}removeTransform(s){const a=q();gt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ht(c.latestValues))continue;ni(c.latestValues)&&c.updateSnapshot();const u=q(),f=c.measurePageBox();gt(u,f),ls(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Ht(this.latestValues)&&ls(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=J.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(),we(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),gt(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(),Bd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),ra(this.target,this.targetDelta)):gt(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(),we(this.relativeTargetOrigin,this.target,h.target),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ni(this.parent.latestValues)||ia(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===J.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=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||f))return;gt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;$d(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():(ss(this.prevProjectionDelta.x,this.projectionDelta.x),ss(this.prevProjectionDelta.y,this.projectionDelta.y)),Se(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!hs(this.projectionDelta.x,this.prevProjectionDelta.x)||!hs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=te(),this.projectionDelta=te(),this.projectionDeltaWithTransform=te()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=te();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=q(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,S=this.getStack(),v=!S||S.members.length<=1,w=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Lh));this.animationProgress=0;let T;this.mixTargetDelta=A=>{const m=A/1e3;ys(f.x,s.x,m),ys(f.y,s.y,m),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(we(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dh(this.relativeTarget,this.relativeTargetOrigin,d,m),T&&mh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=q()),gt(T,this.relativeTarget)),g&&(this.animationValues=u,ch(u,c,this.latestValues,m,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{Je.hasAnimatedSinceResize=!0,this.currentAnimation=ih(0,ps,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ps),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ma(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||q();const f=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}gt(a,l),ne(a,u),Se(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new gh),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Bn("z",s,c,this.animationValues);for(let u=0;u<In.length;u++)Bn(`rotate${In[u]}`,s,c,this.animationValues),Bn(`skew${In[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return vh;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Xe(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Xe(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ht(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=yh(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:h,y:p}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Re){if(d[g]===void 0)continue;const{correct:S,applyTo:v,isCSSVariable:w}=Re[g],T=c.transform==="none"?d[g]:S(d[g],f);if(v){const A=v.length;for(let m=0;m<A;m++)c[v[m]]=T}else w?this.options.visualElement.renderState.vars[g]=T:c[g]=T}return this.options.layoutId&&(c.pointerEvents=f===this?Xe(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ms),this.root.sharedNodes.clear()}}}function bh(t){t.updateLayout()}function Sh(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:i,measuredBox:r}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?yt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(d);d.min=i[f].min,d.max=d.min+h}):ma(o,n.layoutBox,i)&&yt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=ot(i[f]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const a=te();Se(a,i,n.layoutBox);const l=te();s?Se(l,t.applyTransform(r,!0),n.measuredBox):Se(l,i,n.layoutBox);const c=!fa(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=q();we(p,n.layoutBox,d.layoutBox);const g=q();we(g,i,h.layoutBox),da(p,g)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function wh(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 Th(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ch(t){t.clearSnapshot()}function ms(t){t.clearMeasurements()}function Ph(t){t.isLayoutDirty=!1}function Ah(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function gs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Vh(t){t.resolveTargetDelta()}function Eh(t){t.calcProjection()}function Rh(t){t.resetSkewAndRotation()}function Mh(t){t.removeLeadSnapshot()}function ys(t,e,n){t.translate=G(e.translate,0,n),t.scale=G(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function vs(t,e,n,i){t.min=G(e.min,n.min,i),t.max=G(e.max,n.max,i)}function Dh(t,e,n,i){vs(t.x,e.x,n.x,i),vs(t.y,e.y,n.y,i)}function Lh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Oh={duration:.45,ease:[.4,0,.1,1]},xs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),bs=xs("applewebkit/")&&!xs("chrome/")?Math.round:ut;function Ss(t){t.min=bs(t.min),t.max=bs(t.max)}function kh(t){Ss(t.x),Ss(t.y)}function ma(t,e,n){return t==="position"||t==="preserve-aspect"&&!Id(ds(e),ds(n),.2)}function Fh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Ih=pa({attachResizeListener:(t,e)=>ke(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$n={current:void 0},ga=pa({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!$n.current){const t=new Ih({});t.mount(window),t.setOptions({layoutScroll:!0}),$n.current=t}return $n.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Bh={pan:{Feature:Qd},drag:{Feature:Jd,ProjectionNode:ga,MeasureLayout:la}};function ws(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&U.postRender(()=>o(e,_e(e)))}class $h extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Bu(e,(n,i)=>(ws(this.node,i,"Start"),r=>ws(this.node,r,"End"))))}unmount(){}}class jh extends _t{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=je(ke(this.node.current,"focus",()=>this.onFocus()),ke(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ts(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&U.postRender(()=>o(e,_e(e)))}class _h extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Nu(e,(n,i)=>(Ts(this.node,i,"Start"),(r,{success:o})=>Ts(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const si=new WeakMap,jn=new WeakMap,Nh=t=>{const e=si.get(t.target);e&&e(t)},Uh=t=>{t.forEach(Nh)};function zh({root:t,...e}){const n=t||document;jn.has(n)||jn.set(n,{});const i=jn.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(Uh,{root:t,...e})),i[r]}function Wh(t,e,n){const i=zh(e);return si.set(t,n),i.observe(t),()=>{si.delete(t),i.unobserve(t)}}const Hh={some:0,all:1};class Gh extends _t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:Hh[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=c?u:f;d&&d(l)};return Wh(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Kh(e,n))&&this.startObserver()}unmount(){}}function Kh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const qh={inView:{Feature:Gh},tap:{Feature:_h},focus:{Feature:jh},hover:{Feature:$h}},Yh={layout:{ProjectionNode:ga,MeasureLayout:la}},oi={current:null},ya={current:!1};function Xh(){if(ya.current=!0,!!hi)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>oi.current=t.matches;t.addListener(e),e()}else oi.current=!1}const Zh=[...No,nt,jt],Jh=t=>Zh.find(_o(t)),Qh=new WeakMap;function tp(t,e,n){for(const i in e){const r=e[i],o=n[i];if(it(r))t.addValue(i,r),process.env.NODE_ENV==="development"&&yn(r.version==="12.4.7",`Attempting to mix Motion versions ${r.version} with 12.4.7 may not work as expected.`);else if(it(o))t.addValue(i,Le(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(i);t.addValue(i,Le(s!==void 0?s:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Cs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ep{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ui,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,U.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=s;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=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=bn(n),this.isVariantNode=qs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&it(p)&&p.set(l[h],!1)}}mount(e){this.current=e,Qh.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,i)=>this.bindToMotionValue(i,n)),ya.current||Xh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oi.current,process.env.NODE_ENV!=="production"&&yn(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(),$t(this.notifyUpdate),$t(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 i=Yt.has(e);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&U.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),o(),s&&s(),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 ae){const n=ae[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.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 i=0;i<Cs.length;i++){const r=Cs[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=e[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=tp(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 i=this.values.get(e);n!==i&&(i&&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 i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Le(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&($o(r)||Ro(r))?r=parseFloat(r):!Jh(r)&&jt.test(n)&&(r=Fo(e,n)),this.setBaseTarget(e,it(r)?r.get():r)),it(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Vi(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[e])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!it(o)?o:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Fi),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class va extends ep{constructor(){super(...arguments),this.KeyframeResolver=Uo}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:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;it(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function np(t){return window.getComputedStyle(t)}class ip extends va{constructor(){super(...arguments),this.type="html",this.renderInstance=so}readValueFromInstance(e,n){if(Yt.has(n)){const i=Ni(n);return i&&i.default||0}else{const i=np(e),r=(xi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return sa(e,n)}build(e,n,i){wi(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ei(e,n,i)}}class rp extends va{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&ro(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const i=Ni(n);return i&&i.default||0}return n=oo.has(n)?n:yi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return lo(e,n,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&U.postRender(this.updateDimensions)}build(e,n,i){Pi(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){ao(e,n,i,r)}mount(e){this.isSVGTag=Ai(e.tagName),super.mount(e)}}const sp=(t,e)=>Ci(t)?new rp(e):new ip(e,{allowProjection:t!==P.Fragment}),op=Du({...Ed,...qh,...Bh,...Yh},sp),ap=Kc(op);function lp(t){t.values.forEach(e=>e.stop())}function ai(t,e){[...e].reverse().forEach(i=>{const r=t.getVariant(i);r&&Ii(t,r),t.variantChildren&&t.variantChildren.forEach(o=>{ai(o,e)})})}function cp(t,e){if(Array.isArray(e))return ai(t,e);if(typeof e=="string")return ai(t,[e]);Ii(t,e)}function up(){let t=!1;const e=new Set,n={subscribe(i){return e.add(i),()=>void e.delete(i)},start(i,r){Mt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const o=[];return e.forEach(s=>{o.push(Zo(s,i,{transitionOverride:r}))}),Promise.all(o)},set(i){return Mt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(r=>{cp(r,i)})},stop(){e.forEach(i=>{lp(i)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function fp(){const t=Us(up);return Ws(t.mount,[]),t}const dp=fp,hp={some:0,all:1};function pp(t,e,{root:n,margin:i,amount:r="some"}={}){const o=mo(t),s=new WeakMap,a=c=>{c.forEach(u=>{const f=s.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const d=e(u.target,u);typeof d=="function"?s.set(u.target,d):l.unobserve(u.target)}else typeof f=="function"&&(f(u),s.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof r=="number"?r:hp[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function mp(t,{root:e,margin:n,amount:i,once:r=!1,initial:o=!1}={}){const[s,a]=P.useState(o);return P.useEffect(()=>{if(!t.current||r&&s)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:i};return pp(t.current,l,c)},[e,t,n,r,i]),s}var gp="var(--jqc4y00)",yp="var(--jqc4y01)",vp="var(--jqc4y02)",xp="var(--jqc4y03)",bp="var(--jqc4y04)",Sp="var(--jqc4y05)",wp="var(--jqc4y06)",Tp="var(--jqc4y07)",Cp="var(--jqc4y08)",Pp="var(--jqc4y09)",Ap={width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",animation:"background 0.5s ease-in-out",color:"var(--jqc4y02)",zIndex:"var(--jqc4y01)",minHeight:"var(--jqc4y07)",paddingTop:"var(--jqc4y03)",paddingLeft:"var(--jqc4y04)",paddingRight:"var(--jqc4y05)",paddingBottom:"var(--jqc4y06)",background:"var(--jqc4y09)",justifyContent:"var(--jqc4y08)"},Vp="jqc4y0b",Te=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Te||{});const Ep={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},Rp=({children:t,className:e,zIndex:n=20,id:i=void 0,isDark:r=!1,align:o=Te.Left,isFullHeight:s=!1,noPaddingTop:a=!1,theme:l=_,backgroundColor:c="",noPaddingBottom:u=!1})=>{const f=dp(),d=js(),h=P.createRef(),{colors:p,header:{height:g},footer:{height:S},global:{paddingRight:v,paddingLeft:w},section:{paddingTop:T,paddingBottom:A}}=l,m=mp(h,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{m&&f.start("visible")},[f,m]),E("section",{id:i,ref:h,className:e,style:rn({[yp]:`${n}`,[Pp]:c,[Cp]:s?"center":"flex-start",[vp]:r?p.defaultLightText:p.defaultText,[Tp]:s?`calc(100vh - ${g[d]}px - ${S[d]}px)`:"0",[bp]:`${w[d]}px`,[Sp]:`${v[d]}px`,[xp]:a?"0px":`${T[d]}px`,[wp]:u?"0px":`${A[d]}px`}),children:E(ap.div,{className:Vp,initial:"hidden",animate:f,variants:Ep,style:rn({[gp]:o===Te.Center?"center":o===Te.Right?"right":"left"}),children:t})})},Mp=O.div(({styles:t,theme:{nav:{gap:e}}})=>K({gap:e[0],display:"flex",flexDirection:"column",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2],flexDirection:"row"},[V[2]]:{gap:e[3]}},t)),Dp=({children:t,styles:e={},theme:n=_})=>E(Mp,{theme:n,styles:e,children:t}),Lp=O.div(({styles:t,theme:{navSocial:{gap:e}}})=>K({gap:e[0],marginLeft:0,marginRight:0,display:"flex",flexDirection:"row",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2]},[V[2]]:{gap:e[3]}},t)),Op=O.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),kp=({navSocial:t,styles:e={},theme:n=_})=>E(Lp,{theme:n,styles:e,children:t.map(({name:i,link:r},o)=>{const s=i[0].toUpperCase()+i.slice(1);return E(Op,{children:E("a",{target:"_blank","aria-label":i,href:r,children:E(Pt,{theme:n,icon:`social${s}`})})},`navSocialItem-${o}`)})}),Fp=O.div(({styles:t,theme:{navLegal:{gap:e}}})=>K({gap:e[0],display:"flex",flexDirection:"row",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2]},[V[2]]:{gap:e[3]}},t)),Ip=({children:t,styles:e={},theme:n=_})=>E(Fp,{theme:n,styles:e,children:t}),Bp=O.form(({styles:t,theme:{form:{width:e,padding:n,backgroundColor:i}}})=>K({width:"100%",maxWidth:e,backgroundColor:i,padding:n[0],position:"relative",[V[1]]:{padding:n[1]}},t)),$p=({action:t,children:e,styles:n={},theme:i=_})=>E(Bp,{theme:i,styles:n,action:t,children:e});var Fe=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Fe||{});const jp=O.div(({theme:{form:{row:{gap:t,padding:e}}},align:n,styles:i,isMessage:r})=>K({gap:t[0],display:"flex",padding:e[0],flexDirection:"column",fontSize:r?"0.8em":"inherit",justifyContent:n===Fe.Right?"flex-end":n===Fe.Center?"center":"flex-start",[V[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},i)),_p=({children:t,theme:e=_,styles:n={},isActions:i=!1,isMessage:r=!1,align:o=Fe.Left})=>E(jp,{align:o,theme:e,styles:n,isActions:i,isMessage:r,children:t}),Np=O.input(({styles:t,theme:{form:{input:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>K({color:n,width:"100%",border:i,lineHeight:"1.5em",fontSize:"inherit",padding:r[0],borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[V[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t));var wn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(wn||{});const xa=({name:t,value:e="",styles:n={},type:i=wn.Text,disabled:r=!1,placeholder:o="",theme:s=_,onChange:a=void 0})=>E(Np,{type:i,id:t,name:t,theme:s,styles:n,onChange:a,disabled:r,defaultValue:e,placeholder:o}),Up=O.label(({theme:{form:{label:{color:t,font:e,fontWeight:n,paddingBottom:i}}}})=>({color:t,fontWeight:n,paddingBottom:i,width:"100%",textAlign:"left",fontFamily:`var(--font-${e})`})),ba=({name:t,label:e,required:n=!1,theme:i=_})=>dt(Up,{htmlFor:t,theme:i,children:[e,n?E("span",{children:" *"}):""]}),zp=O.div(({styles:t})=>K({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),Wp=O.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),Hp=O.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),Gp=O.textarea(({styles:t,theme:{form:{textarea:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>K({color:n,width:"100%",border:i,padding:r[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[V[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t)),Sa=({name:t,value:e,rows:n=2,disabled:i,styles:r={},placeholder:o="",onChange:s=void 0,theme:a=_})=>E(Gp,{id:t,name:t,rows:n,theme:a,styles:r,onChange:s,disabled:i,defaultValue:e,placeholder:o});var Gi=(t=>(t.Textarea="textarea",t))(Gi||{});const Kp=({name:t,label:e="",value:n="",styles:i={},rows:r=void 0,required:o=!1,disabled:s=!1,placeholder:a="",errors:l=void 0,theme:c=_,onChange:u=void 0,type:f=wn.Text})=>dt(zp,{styles:i,children:[e&&E(ba,{theme:c,label:e,name:t,required:o}),f===Gi.Textarea?E(Sa,{value:n,rows:r,name:t,theme:c,onChange:u,disabled:s,placeholder:a}):E(xa,{value:n,type:f,name:t,theme:c,onChange:u,disabled:s,placeholder:a}),l&&E(Wp,{children:l instanceof Array?l.map((d,h)=>E(Hp,{theme:c,children:d},h)):l})]}),qp=O.div(({styles:t,theme:{consentCookie:{overlayBlur:e,overlayOpacity:n,overlayBackgroundColor:i}}})=>K({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:n,backgroundColor:i,backdropFilter:`blur(${e}px)`}},t)),Yp=O.div(({theme:{consentCookie:{width:t,borders:e,borderRadius:n,backgroundColor:i,paddingTop:r,paddingLeft:o,paddingRight:s,paddingBottom:a}}})=>({right:15,bottom:15,zIndex:20,border:e,display:"flex",width:t[0],position:"fixed",flexDirection:"column",borderRadius:n,paddingTop:r[0],paddingLeft:o[0],paddingRight:s[0],paddingBottom:a[0],backgroundColor:i,[V[0]]:{width:t[1],paddingTop:r[1],paddingLeft:o[1],paddingRight:s[1],paddingBottom:a[1]},[V[1]]:{width:t[2],paddingTop:r[2],paddingLeft:o[2],paddingRight:s[2],paddingBottom:a[2]},[V[2]]:{width:t[3],paddingTop:r[3],paddingLeft:o[3],paddingRight:s[3],paddingBottom:a[3]}})),Xp=O.div(({theme:{consentCookie:{actionsGap:t,actionsPaddingTop:e}}})=>({gap:t,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:e[0],justifyContent:"flex-end",[V[0]]:{paddingTop:e[1]},[V[1]]:{paddingTop:e[2]},[V[2]]:{paddingTop:e[3]}}));function Zp(t){const e=t+"=",i=decodeURIComponent(document.cookie).split(";");for(let r=0;r<i.length;r++){let o=i[r];for(;o.charAt(0)==" ";)o=o.substring(1);if(o.indexOf(e)==0)return o.substring(e.length,o.length)}return""}function Jp(t,e,n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);const r="expires="+i.toUTCString();document.cookie=t+"="+e+";"+r+";path=/"}const Qp=({styles:t={},children:e=void 0,theme:n=_,cookieName:i="consent",translations:r=void 0,cookieExpirationDays:o=365})=>{const[s,a]=P.useState(!1),l=c=>{a(!1),Jp(i,`${c}`,o)};return P.useEffect(()=>{const c=Zp(i),u=c!=="true"&&c!=="false",f=c==="true";u&&a(!0);const d=f?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:d})},[s]),s?E(qp,{theme:n,styles:t,children:dt(Yp,{theme:n,children:[e,dt(Xp,{theme:n,children:[E(zn,{onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),E(zn,{onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]})}):null};exports.Actions=Ll;exports.ActionsAlign=Xt;exports.ActionsStyles=Dl;exports.Button=zn;exports.ButtonSize=ve;exports.ButtonStyle=nn;exports.ButtonType=fi;exports.ButtonVariant=en;exports.Carousel=nc;exports.Columns=$c;exports.ColumnsAlign=re;exports.ConsentCookie=Qp;exports.Footer=Ic;exports.Form=$p;exports.FormRow=_p;exports.FormRowAlign=Fe;exports.Header=kc;exports.Icon=Pt;exports.InputType=wn;exports.KeyNumber=yc;exports.LanguageSwitcher=Tc;exports.Logo=Kl;exports.Main=Vc;exports.MainStyles=Ac;exports.Modal=jl;exports.Nav=Dp;exports.NavLegal=Ip;exports.NavSocial=kp;exports.Section=Rp;exports.SectionAlign=Te;exports.SectionStyles=Ap;exports.TextField=Kp;exports.TextFieldInput=xa;exports.TextFieldLabel=ba;exports.TextFieldTextarea=Sa;exports.TextareaType=Gi;exports.Video=_s;exports.VideoFullWidth=xc;
15
+ */var Qi;function il(){return Qi||(Qi=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,i=t?Symbol.for("react.fragment"):60107,r=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=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,S=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function T(M){return typeof M=="string"||typeof M=="function"||M===i||M===c||M===o||M===r||M===d||M===f||typeof M=="object"&&M!==null&&(M.$$typeof===p||M.$$typeof===h||M.$$typeof===s||M.$$typeof===a||M.$$typeof===u||M.$$typeof===S||M.$$typeof===v||M.$$typeof===w||M.$$typeof===g)}function A(M){if(typeof M=="object"&&M!==null){var lt=M.$$typeof;switch(lt){case e:var wt=M.type;switch(wt){case l:case c:case i:case o:case r:case d:return wt;default:var Wt=wt&&wt.$$typeof;switch(Wt){case a:case u:case p:case h:case s:return Wt;default:return lt}}case n:return lt}}}var m=l,E=c,R=a,y=s,b=e,x=u,C=i,O=p,W=h,Y=n,X=o,z=r,F=d,N=!1;function at(M){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.")),rt(M)||A(M)===l}function rt(M){return A(M)===c}function kt(M){return A(M)===a}function Ft(M){return A(M)===s}function vt(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function mt(M){return A(M)===u}function It(M){return A(M)===i}function ht(M){return A(M)===p}function Bt(M){return A(M)===h}function xt(M){return A(M)===n}function bt(M){return A(M)===o}function Ut(M){return A(M)===r}function zt(M){return A(M)===d}_.AsyncMode=m,_.ConcurrentMode=E,_.ContextConsumer=R,_.ContextProvider=y,_.Element=b,_.ForwardRef=x,_.Fragment=C,_.Lazy=O,_.Memo=W,_.Portal=Y,_.Profiler=X,_.StrictMode=z,_.Suspense=F,_.isAsyncMode=at,_.isConcurrentMode=rt,_.isContextConsumer=kt,_.isContextProvider=Ft,_.isElement=vt,_.isForwardRef=mt,_.isFragment=It,_.isLazy=ht,_.isMemo=Bt,_.isPortal=xt,_.isProfiler=bt,_.isStrictMode=Ut,_.isSuspense=zt,_.isValidElementType=T,_.typeOf=A}()),_}var tr;function rl(){return tr||(tr=1,process.env.NODE_ENV==="production"?He.exports=nl():He.exports=il()),He.exports}var Pn,er;function sl(){if(er)return Pn;er=1;var t=rl(),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},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=i,o[t.Memo]=r;function s(p){return t.isMemo(p)?r:o[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,S){if(typeof g!="string"){if(f){var v=d(g);v&&v!==f&&h(p,v,S)}var w=l(g);c&&(w=w.concat(c(g)));for(var T=s(p),A=s(g),m=0;m<w.length;++m){var E=w[m];if(!n[E]&&!(S&&S[E])&&!(A&&A[E])&&!(T&&T[E])){var R=u(g,E);try{a(p,E,R)}catch{}}}}return p}return Pn=h,Pn}sl();var ol=!0;function al(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Is=function(e,n,i){var r=e.key+"-"+n.name;(i===!1||ol===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},ll=function(e,n,i){Is(e,n,i);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function cl(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&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(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&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 ul={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},dl=/[A-Z]|^ms/g,fl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bs=function(e){return e.charCodeAt(1)===45},nr=function(e){return e!=null&&typeof e!="boolean"},An=Ha(function(t){return Bs(t)?t:t.replace(dl,"-$&").toLowerCase()}),ir=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(fl,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return ul[e]!==1&&!Bs(e)&&typeof n=="number"&&n!==0?n+"px":n};function Me(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Ct={name:r.name,styles:r.styles,next:Ct},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=o.styles+";";return a}return hl(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,Me(t,e,c)}break}}var u=n;return u}function hl(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Me(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;nr(a)&&(i+=An(o)+":"+ir(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)nr(s[l])&&(i+=An(o)+":"+ir(o,s[l])+";");else{var c=Me(t,e,s);switch(o){case"animation":case"animationName":{i+=An(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var rr=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function pl(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";Ct=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Me(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Me(n,e,t[a]),i){var l=o;r+=l[a]}rr.lastIndex=0;for(var c="",u;(u=rr.exec(r))!==null;)c+="-"+u[1];var d=cl(r)+c;return{name:d,styles:r,next:Ct}}var ml=function(e){return e()},gl=ct.useInsertionEffect?ct.useInsertionEffect:!1,yl=gl||ml,$s=ct.createContext(typeof HTMLElement<"u"?Qa({key:"css"}):null);$s.Provider;var vl=function(e){return P.forwardRef(function(n,i){var r=P.useContext($s);return e(n,r,i)})},xl=ct.createContext({}),vn={}.hasOwnProperty,Wn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_s=function(e,n){var i={};for(var r in n)vn.call(n,r)&&(i[r]=n[r]);return i[Wn]=e,i},bl=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return Is(n,i,r),yl(function(){return ll(n,i,r)}),null},Sl=vl(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[Wn],o=[i],s="";typeof t.className=="string"?s=al(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=pl(o,void 0,ct.useContext(xl));s+=e.key+"-"+a.name;var l={};for(var c in t)vn.call(t,c)&&c!=="css"&&c!==Wn&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),ct.createElement(ct.Fragment,null,ct.createElement(bl,{cache:e,serialized:a,isStringTag:typeof r=="string"}),ct.createElement(r,l))}),js=Sl,wl=Ve.Fragment,V=function(e,n,i){return vn.call(n,"css")?Ve.jsx(js,_s(e,n),i):Ve.jsx(e,n,i)},ft=function(e,n,i){return vn.call(n,"css")?Ve.jsxs(js,_s(e,n),i):Ve.jsxs(e,n,i)};function Tl(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function Mt(t,e){var n={};{var i=t;for(var r in i){var o=i[r];o!=null&&(n[Tl(r)]=o)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}const sr='"Goudy Bookletter 1911", sans-serif',Vn='"Gill Sans", sans-serif',Ns="#FF7377",En="#C8AE96",Q="#FCEFE6",Cl="#2E2E2E",or="#CCCCCC",Pl=" #888888",st="#000000",Rn=Ns,j={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:sr,defaultFont:Vn},colors:{defaultText:st,defaultLightText:Q,defaultTitle:"",defaultLink:st,defaultIcon:st},backgroundColors:{modal:Q,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:Q},borders:{hr:`1px solid ${En}`,cookieConsent:`2px solid ${st}`},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:Q,secondary:Cl,disabled:Pl},backgroundColor:{primary:Rn,secondary:En,disabled:or},border:{width:2,style:"solid",color:{primary:Rn,secondary:En,disabled:or}},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},form:{width:800,padding:["15px","30px"],backgroundColor:"",row:{gap:[30,60],padding:["15px","30px"]},label:{font:sr,fontWeight:500,color:Rn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:Vn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:Vn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},error:{color:Ns}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:Q,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:Q,toggleNavColor:st,toggleNavOpenColor:st,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:Q},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:Q,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:Q,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,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:st,width:[150,150,200,200],backgroundColor:Q,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:Q}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:st,backgroundColor:Q},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:Q},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:Q},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:st,backgroundColor:Q}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:Q,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:st,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]}},Al=[640,768,1024,1680],L=Al.map(t=>`(min-width: ${t}px)`),Kt={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Xt(){const[t,e]=P.useState("mobile");return P.useEffect(()=>{function i(){const r=window.innerWidth;r>=Kt["2xl"]?e("2xl"):r>=Kt.xl?e("xl"):r>=Kt.lg?e("lg"):r>=Kt.md?e("md"):r>=Kt.sm?e("sm"):e("mobile")}return i(),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),["mobile","sm","md","lg","xl","2xl"].indexOf(t)}var Vl="var(--_1h0tdm50)",El="var(--_1h0tdm51)",Rl="var(--_1h0tdm52)",Ml="var(--_1h0tdm53)",Dl="var(--_1h0tdm54)",Ll="var(--_1h0tdm55)",Ol="var(--_1h0tdm56)",kl="var(--_1h0tdm57)",Fl="var(--_1h0tdm58)",Il="var(--_1h0tdm59)",Bl="var(--_1h0tdm5a)",$l="var(--_1h0tdm5b)",_l="var(--_1h0tdm5c)",jl="var(--_1h0tdm5d)",Nl={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}}},sn=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(sn||{}),on=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(on||{}),Se=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(Se||{}),hi=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(hi||{});const Hn=({children:t,className:e,staticColor:n="",isPending:i=!1,isDisabled:r=!1,type:o=hi.Button,style:s=on.Fill,size:a=Se.Medium,onClick:l=void 0,theme:c=j,variant:u=sn.Primary})=>{const d=Xt(),{button:{color:f,backgroundColor:h,border:p,minWidth:g,fontWeight:S,transition:v,borderRadius:w,letterSpacing:T,paddingTop:A,paddingBottom:m,paddingLeft:E,paddingRight:R}}=c,y=a===Se.Large,b=a===Se.Small,x=s===on.Outline,C=u===sn.Secondary;return V("button",{type:o,onClick:l,className:e,style:Mt({[Ll]:v,[Ml]:`${g}px`,[Dl]:`${S}px`,[$l]:`${w}px`,[_l]:`${T}px`,[El]:r||i?"default":"pointer",[Bl]:r||i?"none":"auto",[Vl]:x&&n?n:x&&C?h.secondary:x?h.primary:C?f.secondary:r||i?f.disabled:f.primary,[jl]:x?"transparent":n||(C?h.secondary:r?h.disabled:h.primary),[Rl]:n?`${p.width}px ${p.style} ${n}`:C?`${p.width}px ${p.style} ${p.color.secondary}`:r?`${p.width}px ${p.style} ${p.color.disabled}`:`${p.width}px ${p.style} ${p.color.primary}`,[Ol]:b?`${A.small[d]}px`:y?`${A.large[d]}px`:`${A.medium[d]}px`,[Il]:b?`${m.small[d]}px`:y?`${m.large[d]}px`:`${m.medium[d]}px`,[kl]:b?`${E.small[d]}px`:y?`${E.large[d]}px`:`${E.medium[d]}px`,[Fl]:b?`${R.small[d]}px`:y?`${R.large[d]}px`:`${R.medium[d]}px`}),children:t})};var Ul="var(--_1v7zi9y0)",zl="var(--_1v7zi9y1)",Wl="var(--_1v7zi9y2)",Hl="var(--_1v7zi9y3)",Gl="var(--_1v7zi9y4)",Kl={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"var(--_1v7zi9y0)",alignItems:"var(--_1v7zi9y1)",paddingTop:"var(--_1v7zi9y2)",paddingBottom:"var(--_1v7zi9y3)",justifyContent:"var(--_1v7zi9y4)"},Qt=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Qt||{});const ql=({children:t,className:e,theme:n=j,align:i=Qt.Left})=>{const r=Xt(),{actions:{gap:o,paddingTop:s,paddingBottom:a}}=n;return V("div",{className:e,style:Mt({[Ul]:`${o[r]}px`,[Wl]:`${s[r]}px`,[Hl]:`${a[r]}px`,[zl]:i===Qt.Center?"center":"flex-start",[Gl]:i===Qt.Right?"flex-end":i===Qt.Left?"flex-start":"center"}),children:t})},Yl={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"},it=(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(e[n]instanceof Object&&t[n]instanceof Object?t[n]=it(t[n],e[n]):t[n]=e[n]);return t},Xl=k.svg(({styles:t})=>it({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),Zl=k.path(({fill:t})=>({fill:t,transition:"color .5s ease"})),Pt=({icon:t="",size:e=24,styles:n={},iconPath:i="",color:r=void 0,theme:o=j,viewBox:s="0 0 24 24"})=>V(Xl,{viewBox:s,width:`${e}px`,height:`${e}px`,styles:n,children:V(Zl,{d:i||Yl[t],fill:r||o.colors.defaultIcon})});var an=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(an||{});const Jl=k.div(({theme:{modal:{overlayBlur:t,overlayOpacity:e,overlayBackgroundColor:n}},styles:i})=>it({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:e,backgroundColor:n,backdropFilter:`blur(${t}px)`}},i)),Ql=k.div(({theme:{global:{paddingLeft:t,paddingRight:e},modal:{borders:n,width:i,borderRadius:r,backgroundColor:o,paddingTop:s,paddingLeft:a,paddingRight:l,paddingBottom:c}},align:u})=>({top:"50%",zIndex:20,left:"50%",borderRadius:r,border:n,display:"flex",backgroundColor:o,width:i[0],position:"fixed",overflowY:"auto",flexDirection:"column",paddingTop:s[0],paddingLeft:a[0],paddingRight:l[0],paddingBottom:c[0],transform:"translate(-50%, -50%)",maxWidth:`calc(100% - ${t[0]+e[0]}px)`,maxHeight:`calc(100% - ${t[0]+e[0]}px)`,textAlign:u===an.Left?"left":u===an.Right?"right":"center",[L[0]]:{width:i[1],paddingTop:s[1],paddingLeft:a[1],paddingRight:l[1],paddingBottom:c[1],maxWidth:`calc(100% - ${t[1]+e[1]}px)`,maxHeight:`calc(100% - ${t[1]+e[1]}px)`},[L[1]]:{width:i[2],paddingTop:s[2],paddingLeft:a[2],paddingRight:l[2],paddingBottom:c[2],maxWidth:`calc(100% - ${t[2]+e[2]}px)`,maxHeight:`calc(100% - ${t[2]+e[2]}px)`},[L[2]]:{width:i[3],paddingTop:s[3],paddingLeft:a[3],paddingRight:l[3],paddingBottom:c[3],maxWidth:`calc(100% - ${t[3]+e[3]}px)`,maxHeight:`calc(100% - ${t[3]+e[3]}px)`}})),tc=k.button({top:15,border:0,right:15,zIndex:20,cursor:"pointer",position:"absolute",backgroundColor:"transparent",transition:"all 0.5s ease-in-out","&:hover":{transform:"scale(1.2)"}}),ec=({children:t,styles:e={},align:n=an.Left,theme:i=j,onModalHide:r=void 0})=>V(Jl,{theme:i,styles:e,children:ft(Ql,{theme:i,align:n,children:[r&&V(tc,{onClick:r,children:V(Pt,{theme:i,icon:"close"})}),t]})});var nc={videoMaxHeight:"var(--_18hbdtx0)"},ic="_18hbdtx2",rc="_18hbdtx3",sc="_18hbdtx4",oc="_18hbdtx5",ac="_18hbdtx6",lc="_18hbdtx7";const Us=({video:t,isAutoPlay:e,poster:n="",startMuted:i=!1,onPlay:r,onClose:o,onEnded:s,showControls:a=!1,theme:l=j,hidePlayButton:c=!1,isVideoFullWidth:u=!1,isPlayingFullScreen:d=!1,className:f})=>{const h=P.useRef(null),[p,g]=P.useState(!1),[S,v]=P.useState(e||i),w=()=>{var y;r&&r(),(y=h.current)==null||y.play(),g(!0)},T=()=>{var y;o&&o(),(y=h.current)==null||y.pause(),g(!1)},A=()=>{var y;(y=h.current)==null||y.pause(),g(!1)},m=()=>{const y=!S;v(y),h.current&&(h.current.muted=y)},E=()=>{s&&s(),T()},R=y=>{y.key==="Escape"&&T()};return P.useEffect(()=>(window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)),[]),V("div",{className:f,style:Mt({[nc.videoMaxHeight]:u?"100vw":"100%"}),children:ft("div",{className:ic,children:[V("video",{ref:h,playsInline:!0,onEnded:E,children:V("source",{src:t,type:"video/mp4"})}),n&&V("div",{className:rc,children:V("img",{src:n,alt:""})}),(!c||!e)&&V("button",{className:sc,onClick:w,"aria-label":"Play",children:V(Pt,{icon:"play",size:50,theme:l})}),d&&V("button",{className:ac,onClick:T,"aria-label":"Close",children:V(Pt,{icon:"close",size:28,theme:l})}),p&&a&&V("button",{className:oc,onClick:p?A:w,"aria-label":"Pause",children:V(Pt,{icon:"pause",size:28,theme:l})}),a&&V("button",{className:lc,onClick:m,"aria-label":"Sound",children:V(Pt,{icon:S?"volumeUp":"volumeMute",size:28,theme:l})})]})})},cc=k.div(({styles:t})=>it({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),uc=({children:t,styles:e={},theme:n=j})=>V(cc,{theme:n,styles:e,children:t}),dc=k.div(({styles:t,isFullWidth:e,theme:{global:{paddingLeft:n,paddingRight:i}}})=>it({overflow:"hidden",position:"relative",width:e?"100vw":"100%",marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[0]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[0]}px)`:0,[L[0]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[1]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[1]}px)`:0},[L[1]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[2]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[2]}px)`:0},[L[2]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[3]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${i[3]}px)`:0}},t)),fc=k.div({width:"100%",position:"relative"}),hc=k.div(({left:t,width:e,gap:n})=>({gap:n,left:t,width:e,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),pc=k.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),mc=k.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),ar=k.button(({isDisabled:t})=>({border:0,display:"block",position:"relative",pointerEvents:"auto",opacity:t?.5:1,transition:"all 0.5s ease-in-out",cursor:t?"default":"pointer","&:hover":{transform:t?"scale(1)":"scale(1.1)"}})),gc=k.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[L[1]]:{marginTop:60}}),yc=k.div(({isActive:t,theme:{carousel:{bullet:{borderRadius:e,width:n,height:i,backgroundColor:r}}}})=>({borderRadius:e,backgroundColor:r,width:n[0],height:i[0],cursor:"pointer",opacity:t?1:.5,transition:"all 0.5s ease-in-out",pointerEvents:t?"none":"auto",[L[0]]:{width:n[1],height:i[1]},[L[1]]:{width:n[2],height:i[2]},[L[2]]:{width:n[3],height:i[3]},"&:hover":{transform:"scale(1.2)"}}));function vc(){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 xc=({data:t,styles:e={},displayItem:n=1,theme:i=j,isFullWidth:r=!1,displayNavBullets:o=!1,displayNavButtons:s=!1})=>{const{width:a}=vc(),[l,c]=P.useState(0),[u,d]=P.useState(i.carousel.gap[0]),f=a!==void 0&&a>Kt[1],h=a!==void 0&&a>Kt[2],[p,g]=P.useState(0),[S,v]=P.useState(0),[w,T]=P.useState(0),[A,m]=P.useState(n),E=P.useRef(null),R=P.useRef(null),y=P.useRef(null),b=(x,C)=>{C<x&&-(C-x)>100&&c(O=>O!==t.length-1*A?O+1:t.length-1),C>x&&C-x>100&&c(O=>O!==0?O-1:0)};return P.useEffect(()=>{if(h){n!==1&&d(i.carousel.gap[3]),m(n);return}if(f){if(d(i.carousel.gap[2]),n===1){d(0),m(1);return}if(n===2){m(2);return}if(n===3){m(2);return}m(n/2);return}d(0),m(1)},[f,h,n]),P.useEffect(()=>{const x=E.current;return x&&g(x.getBoundingClientRect().width),window.addEventListener("resize",()=>g(x.getBoundingClientRect().width)),()=>window.removeEventListener("resize",()=>g(x.getBoundingClientRect().width))},[]),P.useEffect(()=>{var Y,X;let x=0,C=0;const O=z=>{x=z.changedTouches[0].screenX},W=z=>{C=z.changedTouches[0].screenX,b(x,C)};(Y=E.current)==null||Y.addEventListener("touchstart",z=>O(z),{passive:!0}),(X=E.current)==null||X.addEventListener("touchend",z=>W(z),{passive:!0})},[]),P.useEffect(()=>{const C=(A-1)*u;y.current&&T((p-C)/A)},[A,p,u]),P.useEffect(()=>{const C=(t.length-1)*u;v(w*t.length+C)},[t,w,v,u]),ft(dc,{ref:E,theme:i,styles:e,isFullWidth:r,children:[V(fc,{children:V(hc,{ref:R,width:S,gap:A===1?0:u,left:-l*w-l*u,children:t.map((x,C)=>V(pc,{ref:y,children:x},`children-${C}`))})}),s&&ft(mc,{children:[V(ar,{"aria-label":"Previous",disabled:l===0,isDisabled:l===0,onClick:()=>c(x=>x-1),children:V(Pt,{theme:i,icon:"arrowBack",size:30})}),V(ar,{"aria-label":"Next",onClick:()=>c(x=>x+1),disabled:l===t.length-1*A,isDisabled:l===t.length-1*A,children:V(Pt,{theme:i,icon:"arrowForward",size:30})})]}),o&&V(gc,{children:[...Array(t.length+1-A||1)].map((x,C)=>V(yc,{theme:i,isActive:C===l,onClick:()=>c(C)},`carousselItem-${C}`))})]})};var ye={},ln=function(){return ln=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ln.apply(this,arguments)},bc=function(){function t(e,n,i){var r=this;this.endVal=n,this.options=i,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(o){r.startTime||(r.startTime=o);var s=o-r.startTime;r.remaining=r.duration-s,r.useEasing?r.countDown?r.frameVal=r.startVal-r.easingFn(s,0,r.startVal-r.endVal,r.duration):r.frameVal=r.easingFn(s,r.startVal,r.endVal-r.startVal,r.duration):r.frameVal=r.startVal+(r.endVal-r.startVal)*(s/r.duration);var a=r.countDown?r.frameVal<r.endVal:r.frameVal>r.endVal;r.frameVal=a?r.endVal:r.frameVal,r.frameVal=Number(r.frameVal.toFixed(r.options.decimalPlaces)),r.printValue(r.frameVal),s<r.duration?r.rAF=requestAnimationFrame(r.count):r.finalEndVal!==null?r.update(r.finalEndVal):r.options.onCompleteCallback&&r.options.onCompleteCallback()},this.formatNumber=function(o){var s,a,l,c,u=o<0?"-":"";s=Math.abs(o).toFixed(r.options.decimalPlaces);var d=(s+="").split(".");if(a=d[0],l=d.length>1?r.options.decimal+d[1]:"",r.options.useGrouping){c="";for(var f=3,h=0,p=0,g=a.length;p<g;++p)r.options.useIndianSeparators&&p===4&&(f=2,h=1),p!==0&&h%f==0&&(c=r.options.separator+c),h++,c=a[g-p-1]+c;a=c}return r.options.numerals&&r.options.numerals.length&&(a=a.replace(/[0-9]/g,function(S){return r.options.numerals[+S]}),l=l.replace(/[0-9]/g,function(S){return r.options.numerals[+S]})),u+r.options.prefix+a+l+r.options.suffix},this.easeOutExpo=function(o,s,a,l){return a*(1-Math.pow(2,-10*o/l))*1024/1023+s},this.options=ln(ln({},this.defaults),i),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 r.handleScroll(r)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,i=e.el.getBoundingClientRect(),r=i.top+window.pageYOffset,o=i.top+i.height+window.pageYOffset;o<n&&o>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>o||r>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 i=this.countDown?1:-1;this.endVal=e+i*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 i=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,i):this.el.tagName==="INPUT"?this.el.value=i:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=i:this.el.innerHTML=i}},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 Sc=Object.freeze(Object.defineProperty({__proto__:null,CountUp:bc},Symbol.toStringTag,{value:"Module"})),wc=el(Sc);var lr;function Tc(){if(lr)return ye;lr=1,Object.defineProperty(ye,"__esModule",{value:!0});var t=P,e=wc;function n(y,b){var x=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(x!=null){var C,O,W,Y,X=[],z=!0,F=!1;try{if(W=(x=x.call(y)).next,b!==0)for(;!(z=(C=W.call(x)).done)&&(X.push(C.value),X.length!==b);z=!0);}catch(N){F=!0,O=N}finally{try{if(!z&&x.return!=null&&(Y=x.return(),Object(Y)!==Y))return}finally{if(F)throw O}}return X}}function i(y,b){var x=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);b&&(C=C.filter(function(O){return Object.getOwnPropertyDescriptor(y,O).enumerable})),x.push.apply(x,C)}return x}function r(y){for(var b=1;b<arguments.length;b++){var x=arguments[b]!=null?arguments[b]:{};b%2?i(Object(x),!0).forEach(function(C){a(y,C,x[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(x)):i(Object(x)).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(x,C))})}return y}function o(y,b){if(typeof y!="object"||!y)return y;var x=y[Symbol.toPrimitive];if(x!==void 0){var C=x.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 s(y){var b=o(y,"string");return typeof b=="symbol"?b:String(b)}function a(y,b,x){return b=s(b),b in y?Object.defineProperty(y,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[b]=x,y}function l(){return l=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var x=arguments[b];for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&(y[C]=x[C])}return y},l.apply(this,arguments)}function c(y,b){if(y==null)return{};var x={},C=Object.keys(y),O,W;for(W=0;W<C.length;W++)O=C[W],!(b.indexOf(O)>=0)&&(x[O]=y[O]);return x}function u(y,b){if(y==null)return{};var x=c(y,b),C,O;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(y);for(O=0;O<W.length;O++)C=W[O],!(b.indexOf(C)>=0)&&Object.prototype.propertyIsEnumerable.call(y,C)&&(x[C]=y[C])}return x}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 x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return p(y,b)}}function p(y,b){(b==null||b>y.length)&&(b=y.length);for(var x=0,C=new Array(b);x<b;x++)C[x]=y[x];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 S=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 S(function(){b.current=y}),t.useCallback(function(){for(var x=arguments.length,C=new Array(x),O=0;O<x;O++)C[O]=arguments[O];return b.current.apply(void 0,C)},[])}var w=function(b,x){var C=x.decimal,O=x.decimals,W=x.duration,Y=x.easingFn,X=x.end,z=x.formattingFn,F=x.numerals,N=x.prefix,at=x.separator,rt=x.start,kt=x.suffix,Ft=x.useEasing,vt=x.useGrouping,mt=x.useIndianSeparators,It=x.enableScrollSpy,ht=x.scrollSpyDelay,Bt=x.scrollSpyOnce,xt=x.plugin;return new e.CountUp(b,X,{startVal:rt,duration:W,decimal:C,decimalPlaces:O,easingFn:Y,formattingFn:z,numerals:F,separator:at,prefix:N,suffix:kt,plugin:xt,useEasing:Ft,useIndianSeparators:mt,useGrouping:vt,enableScrollSpy:It,scrollSpyDelay:ht,scrollSpyOnce:Bt})},T=["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 x=Object.fromEntries(Object.entries(b).filter(function(lt){var wt=d(lt,2),Wt=wt[1];return Wt!==void 0})),C=t.useMemo(function(){return r(r({},A),x)},[b]),O=C.ref,W=C.startOnMount,Y=C.enableReinitialize,X=C.delay,z=C.onEnd,F=C.onStart,N=C.onPauseResume,at=C.onReset,rt=C.onUpdate,kt=u(C,T),Ft=t.useRef(),vt=t.useRef(),mt=t.useRef(!1),It=v(function(){return w(typeof O=="string"?O:O.current,kt)}),ht=v(function(lt){var wt=Ft.current;if(wt&&!lt)return wt;var Wt=It();return Ft.current=Wt,Wt}),Bt=v(function(){var lt=function(){return ht(!0).start(function(){z==null||z({pauseResume:xt,reset:bt,start:zt,update:Ut})})};X&&X>0?vt.current=setTimeout(lt,X*1e3):lt(),F==null||F({pauseResume:xt,reset:bt,update:Ut})}),xt=v(function(){ht().pauseResume(),N==null||N({reset:bt,start:zt,update:Ut})}),bt=v(function(){ht().el&&(vt.current&&clearTimeout(vt.current),ht().reset(),at==null||at({pauseResume:xt,start:zt,update:Ut}))}),Ut=v(function(lt){ht().update(lt),rt==null||rt({pauseResume:xt,reset:bt,start:zt})}),zt=v(function(){bt(),Bt()}),M=v(function(lt){W&&(lt&&bt(),Bt())});return t.useEffect(function(){mt.current?Y&&M(!0):(mt.current=!0,M())},[Y,mt,M,X,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.formattingFn]),t.useEffect(function(){return function(){bt()}},[bt]),{start:zt,pauseResume:xt,reset:bt,update:Ut,getCountUp:ht}},E=["className","redraw","containerProps","children","style"],R=function(b){var x=b.className,C=b.redraw,O=b.containerProps,W=b.children,Y=b.style,X=u(b,E),z=t.useRef(null),F=t.useRef(!1),N=m(r(r({},X),{},{ref:z,startOnMount:typeof W!="function"||b.delay===0,enableReinitialize:!1})),at=N.start,rt=N.reset,kt=N.update,Ft=N.pauseResume,vt=N.getCountUp,mt=v(function(){at()}),It=v(function(xt){b.preserveValue||rt(),kt(xt)}),ht=v(function(){if(typeof b.children=="function"&&!(z.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}vt()});t.useEffect(function(){ht()},[ht]),t.useEffect(function(){F.current&&It(b.end)},[b.end,It]);var Bt=C&&b;return t.useEffect(function(){C&&F.current&&mt()},[mt,C,Bt]),t.useEffect(function(){!C&&F.current&&mt()},[mt,C,b.start,b.suffix,b.prefix,b.duration,b.separator,b.decimals,b.decimal,b.className,b.formattingFn]),t.useEffect(function(){F.current=!0},[]),typeof W=="function"?W({countUpRef:z,start:at,reset:rt,update:kt,pauseResume:Ft,getCountUp:vt}):t.createElement("span",l({className:x,ref:z,style:Y},O),typeof b.start<"u"?vt().formattingFn(b.start):"")};return ye.default=R,ye.useCountUp=m,ye}var Cc=Tc();const Pc=tl(Cc);var Gn=new Map,Ge=new WeakMap,cr=0,Ac=void 0;function Vc(t){return t?(Ge.has(t)||(cr+=1,Ge.set(t,cr.toString())),Ge.get(t)):"0"}function Ec(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?Vc(t.root):t[e]}`).toString()}function Rc(t){const e=Ec(t);let n=Gn.get(e);if(!n){const i=new Map;let r;const o=new IntersectionObserver(s=>{s.forEach(a=>{var l;const c=a.isIntersecting&&r.some(u=>a.intersectionRatio>=u);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=c),(l=i.get(a.target))==null||l.forEach(u=>{u(c,a)})})},t);r=o.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:o,elements:i},Gn.set(e,n)}return n}function Mc(t,e,n={},i=Ac){if(typeof window.IntersectionObserver>"u"&&i!==void 0){const l=t.getBoundingClientRect();return e(i,{isIntersecting:i,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:r,observer:o,elements:s}=Rc(n),a=s.get(t)||[];return s.has(t)||s.set(t,a),a.push(e),o.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(s.delete(t),o.unobserve(t)),s.size===0&&(o.disconnect(),Gn.delete(r))}}function Dc({threshold:t,delay:e,trackVisibility:n,rootMargin:i,root:r,triggerOnce:o,skip:s,initialInView:a,fallbackInView:l,onChange:c}={}){var u;const[d,f]=ct.useState(null),h=ct.useRef(c),[p,g]=ct.useState({inView:!!a,entry:void 0});h.current=c,ct.useEffect(()=>{if(s||!d)return;let T;return T=Mc(d,(A,m)=>{g({inView:A,entry:m}),h.current&&h.current(A,m),m.isIntersecting&&o&&T&&(T(),T=void 0)},{root:r,rootMargin:i,threshold:t,trackVisibility:n,delay:e},l),()=>{T&&T()}},[Array.isArray(t)?t.toString():t,d,r,i,o,s,n,l,e]);const S=(u=p.entry)==null?void 0:u.target,v=ct.useRef(void 0);!d&&S&&!o&&!s&&v.current!==S&&(v.current=S,g({inView:!!a,entry:void 0}));const w=[f,p.inView,p.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}const Lc=k.div(({styles:t})=>it({display:"flex",flexDirection:"column"},t)),Oc=k.div({fontSize:"1.2em",paddingBottom:15,[L[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),kc=({label:t,suffix:e,keyNumber:n,styles:i={},theme:r=j})=>{const[o,s]=Dc({threshold:.3,triggerOnce:!0});return ft(Lc,{ref:o,theme:r,styles:i,children:[ft(Oc,{children:[V("span",{children:V(Pc,{end:s?n:0,duration:8})}),e]}),V("p",{children:t})]})};var ur={videoFullWidthLeft:"var(--_29n9il0)",videoFullWidthRight:"var(--_29n9il1)"},Fc="_29n9il2";const Ic=({video:t,poster:e,className:n,isAutoPlay:i,showControls:r,startMuted:o=!1,theme:s=j})=>{const a=Xt(),{global:{maxWidth:l,paddingLeft:c,paddingRight:u}}=s;return V("div",{className:n,style:Mt({[ur.videoFullWidthLeft]:`min(calc((100vw - ${l}px) / -2), -${c[a]}px)`,[ur.videoFullWidthRight]:`min(calc((100vw - ${l}px) / -2), -${u[a]}px)`}),children:V(Us,{video:t,theme:s,poster:e,isVideoFullWidth:!0,isAutoPlay:i,startMuted:o,showControls:r})})},Bc=k.div(({styles:t,theme:{languageSwitcher:{width:e}}})=>it({width:e[0],marginLeft:"auto",marginRight:"auto",position:"relative",[L[0]]:{width:e[1]},[L[1]]:{width:e[2]},[L[2]]:{width:e[3]}},t)),$c=k.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),_c=k.select(({theme:{global:{defaultFont:t},languageSwitcher:{color:e,border:n,borderRadius:i,backgroundColor:r,paddingTop:o,paddingLeft:s,paddingRight:a,paddingBottom:l}}})=>({color:e,border:n,width:"100%",backgroundColor:r,appearance:"none",padding:"15px 30px",borderRadius:i,fontFamily:`var(--font-${t})`,paddingTop:o[0],paddingLeft:s[0],paddingRight:a[0],paddingBottom:l[0],[L[0]]:{paddingTop:o[1],paddingLeft:s[1],paddingRight:a[1],paddingBottom:l[1]},[L[1]]:{paddingTop:o[2],paddingLeft:s[2],paddingRight:a[2],paddingBottom:l[2]},[L[2]]:{paddingTop:o[3],paddingLeft:s[3],paddingRight:a[3],paddingBottom:l[3]},"&:focus":{outline:"none"}})),jc=({currentLocale:t,handleChange:e,locales:n,styles:i={},theme:r=j,translations:o})=>ft(Bc,{theme:r,styles:i,children:[V($c,{children:V(Pt,{theme:r,icon:"caret"})}),V(_c,{theme:r,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((s,a)=>V("option",{value:s,disabled:s===t,children:o[s]},`locale-${a}`))})]});var Nc="var(--_1wp326d0)",Uc="var(--_1wp326d1)",zc={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 Wc=({children:t,className:e,theme:n=j})=>{const{main:{backgroundColor:i,minHeight:r}}=n;return V("main",{className:e,style:Mt({[Nc]:r,[Uc]:i}),children:t})},Hc=k.div(({isOpen:t,theme:{header:{overlayGap:e,overlayBackgroundColor:n}}})=>({top:0,left:0,zIndex:40,gap:e[0],width:"100vw",display:"flex",backgroundColor:n,height:"100vh",position:"fixed",overflow:"hidden",textAlign:"center",alignItems:"center",flexDirection:"column",transformOrigin:"0% 0%",justifyContent:"center",bottom:t?"-100vh":"100%",transform:t?"translate(0, 0)":"translate(0, -100%)",transition:"transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0)",[L[0]]:{gap:e[1]},[L[1]]:{gap:e[2]},[L[2]]:{gap:e[3]}})),Gc=({isOpen:t,theme:e=j,children:n})=>(P.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),V(Hc,{isOpen:t,theme:e,children:n})),Kc=k.header(({styles:t,isFixed:e,theme:{global:{paddingLeft:n,paddingRight:i},header:{height:r,gap:o,backgroundColor:s,paddingTop:a,paddingBottom:l}}})=>it({zIndex:30,gap:o[0],width:"100%",display:"flex",backgroundColor:s,height:r[0],alignItems:"center",paddingTop:a[0],paddingLeft:n[0],paddingRight:i[0],paddingBottom:l[0],justifyContent:"space-between",position:e?"fixed":"relative",[L[0]]:{gap:o[1],height:r[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:i[1],paddingBottom:l[1]},[L[1]]:{gap:o[2],height:r[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:i[2],paddingBottom:l[2]},[L[2]]:{gap:o[3],height:r[3],paddingTop:a[3],paddingLeft:n[3],paddingRight:i[3],paddingBottom:l[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),qc=k.div(({theme:{header:{height:t}}})=>({height:t[0],[L[0]]:{height:t[1]},[L[1]]:{height:t[2]},[L[2]]:{height:t[3]}})),Yc=k.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[L[1]]:{display:t?"block":"none"}})),dr=k.span(({isNavOpen:t,theme:{header:{toggleNavColor:e,toggleNavOpenColor:n,toggleNavBorderRadius:i}}})=>({height:2,width:25,borderRadius:i,marginBottom:8,display:"block",position:"relative",transformOrigin:"center center",transition:"all 0.5s ease-in-out",background:t?n:e,"&:nth-of-type(1)":{transform:t?"rotate(45deg) translate(4px, 3px)":"none"},"&:nth-of-type(2)":{transform:t?"rotate(-45deg) translate(4px, -3px)":"none"}})),Xc=({onToggleNav:t,theme:e=j,isNavOpen:n=!1,displayOnDesktop:i})=>ft(Yc,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),t()},"aria-label":"Toggle nav",displayOnDesktop:i,children:[V(dr,{theme:e,isNavOpen:n}),V(dr,{theme:e,isNavOpen:n})]}),Zc=({children:t,styles:e={},isFixed:n=!1,childrenOverlay:i,theme:r=j,hideToggleNav:o=!1,displayToggleNavOnDesktop:s=!1})=>{const[a,l]=P.useState(!1);return ft(wl,{children:[ft(Kc,{theme:r,styles:e,isFixed:n,children:[i&&V(Gc,{theme:r,isOpen:a,children:i}),t,!o&&V(Xc,{theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),n&&V(qc,{theme:r})]})};var Jt={footerGap:"var(--fl7h880)",footerBackgroundColor:"var(--fl7h881)",footerPaddingTop:"var(--fl7h882)",footerPaddingBottom:"var(--fl7h883)",footerPaddingLeft:"var(--fl7h884)",footerPaddingRight:"var(--fl7h885)"},Jc="fl7h886";const Qc=({children:t,className:e,theme:n=j})=>{const i=Xt(),{global:{paddingLeft:r,paddingRight:o},footer:{gap:s,backgroundColor:a,paddingTop:l,paddingBottom:c}}=n;return V("footer",{className:e,style:Mt({[Jt.footerGap]:`${s[i]}px`,[Jt.footerBackgroundColor]:a,[Jt.footerPaddingTop]:`${l[i]}px`,[Jt.footerPaddingBottom]:`${c[i]}px`,[Jt.footerPaddingLeft]:`${r[i]}px`,[Jt.footerPaddingRight]:`${o[i]}px`}),children:t})};var ae=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ae||{});const tu=k.div(({theme:t,styles:e,align:n,columns:i,isCentered:r,isInverted:o})=>{const s={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start",gap:t.columns.gap/2,justifyContent:"space-between",textAlign:n===ae.Center?"center":"left",[L[1]]:{gap:t.columns.gap,alignItems:r?"center":"stretch",flexDirection:o?"row-reverse":"row",justifyContent:n===ae.Right?"flex-end":n===ae.Center?"center":"flex-start"},[L[2]]:{gap:t.columns.gap*2}},a=i.map((l,c)=>({[`>:nth-of-type(${c+1})`]:{minWidth:"100%",position:"relative","&:empty":{marginTop:-t.columns.gap/2,[L[1]]:{marginTop:0}},[L[1]]:{flex:l,minWidth:"auto",maxWidth:`${l}%`}}}));return it(Object.assign(s,...a),e)}),eu=({columns:t,children:e,styles:n={},align:i=ae.Left,isCentered:r=!1,isInverted:o=!1,theme:s=j})=>V(tu,{align:i,theme:s,columns:t,isCentered:r,isInverted:o,styles:n,children:e}),zs=P.createContext({});function Ws(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const pi=P.createContext(null),Hs=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function nu(t=!0){const e=P.useContext(pi);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,o=P.useId();P.useEffect(()=>{if(t)return r(o)},[t]);const s=P.useCallback(()=>t&&i&&i(o),[o,i,t]);return!n&&i?[!1,s]:[!0]}const mi=typeof window<"u",Gs=mi?P.useLayoutEffect:P.useEffect,ut=t=>t;let he=ut,Dt=ut;process.env.NODE_ENV!=="production"&&(he=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},Dt=(t,e)=>{if(!t)throw new Error(e)});function gi(t){let e;return()=>(e===void 0&&(e=t()),e)}const ce=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Vt=t=>t*1e3,Lt=t=>t/1e3,iu={skipAnimations:!1,useManualTiming:!1},Ke=["read","resolveKeyframes","update","preRender","render","postRender"];function ru(t,e){let n=new Set,i=new Set,r=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&r?n:i;return d&&s.add(u),p.has(u)||p.add(u),u},cancel:u=>{i.delete(u),s.delete(u)},process:u=>{if(a=u,r){o=!0;return}r=!0,[n,i]=[i,n],n.forEach(l),n.clear(),r=!1,o&&(o=!1,c.process(u))}};return c}const su=40;function Ks(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ke.reduce((v,w)=>(v[w]=ru(o),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const v=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(v-r.timestamp,su),1),r.timestamp=v,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},p=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:Ke.reduce((v,w)=>{const T=s[w];return v[w]=(A,m=!1,E=!1)=>(n||p(),T.schedule(A,m,E)),v},{}),cancel:v=>{for(let w=0;w<Ke.length;w++)s[Ke[w]].cancel(v)},state:r,steps:s}}const{schedule:U,cancel:_t,state:Z,steps:Mn}=Ks(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),qs=P.createContext({strict:!1}),fr={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"]},ue={};for(const t in fr)ue[t]={isEnabled:e=>fr[t].some(n=>!!e[n])};function ou(t){for(const e in t)ue[e]={...ue[e],...t[e]}}const au=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 cn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||au.has(t)}let Ys=t=>!cn(t);function lu(t){t&&(Ys=e=>e.startsWith("on")?!cn(e):t(e))}try{lu(require("@emotion/is-prop-valid").default)}catch{}function cu(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Ys(r)||n===!0&&cn(r)||!e&&!cn(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const hr=new Set;function xn(t,e,n){t||hr.has(e)||(console.warn(e),hr.add(e))}function uu(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&xn(!1,"motion() is deprecated. Use motion.create() instead."),t(...i));return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const bn=P.createContext({});function Sn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function De(t){return typeof t=="string"||Array.isArray(t)}const yi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vi=["initial",...yi];function wn(t){return Sn(t.animate)||vi.some(e=>De(t[e]))}function Xs(t){return!!(wn(t)||t.variants)}function du(t,e){if(wn(t)){const{initial:n,animate:i}=t;return{initial:n===!1||De(n)?n:void 0,animate:De(i)?i:void 0}}return t.inherit!==!1?e:{}}function fu(t){const{initial:e,animate:n}=du(t,P.useContext(bn));return P.useMemo(()=>({initial:e,animate:n}),[pr(e),pr(n)])}function pr(t){return Array.isArray(t)?t.join(" "):t}const hu=Symbol.for("motionComponentSymbol");function te(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function pu(t,e,n){return P.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):te(n)&&(n.current=i))},[e])}const xi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mu="framerAppearId",Zs="data-"+xi(mu),{schedule:bi,cancel:xm}=Ks(queueMicrotask,!1),Js=P.createContext({});function gu(t,e,n,i,r){var o,s;const{visualElement:a}=P.useContext(bn),l=P.useContext(qs),c=P.useContext(pi),u=P.useContext(Hs).reducedMotion,d=P.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=P.useContext(Js);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&yu(d.current,n,r,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{f&&p.current&&f.update(n,c)});const g=n[Zs],S=P.useRef(!!g&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Gs(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),bi.render(f.render),S.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!S.current&&f.animationState&&f.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,g)}),S.current=!1))}),f}function yu(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Qs(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&te(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function Qs(t){if(t)return t.options.allowProjection!==!1?t.projection:Qs(t.parent)}function vu({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var o,s;t&&ou(t);function a(c,u){let d;const f={...P.useContext(Hs),...c,layoutId:xu(c)},{isStatic:h}=f,p=fu(c),g=i(c,h);if(!h&&mi){bu(f,t);const S=Su(f);d=S.MeasureLayout,p.visualElement=gu(r,g,f,e,S.ProjectionNode)}return nn.jsxs(bn.Provider,{value:p,children:[d&&p.visualElement?nn.jsx(d,{visualElement:p.visualElement,...f}):null,n(r,c,pu(g,p.visualElement,u),g,h,p.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(s=(o=r.displayName)!==null&&o!==void 0?o:r.name)!==null&&s!==void 0?s:""})`}`;const l=P.forwardRef(a);return l[hu]=r,l}function xu({layoutId:t}){const e=P.useContext(zs).id;return e&&t!==void 0?e+"-"+t:t}function bu(t,e){const n=P.useContext(qs).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const i="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?he(!1,i):Dt(!1,i)}}function Su(t){const{drag:e,layout:n}=ue;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const to=t=>e=>typeof e=="string"&&e.startsWith(t),Si=to("--"),wu=to("var(--"),wi=t=>wu(t)?Tu.test(t.split("/*")[0].trim()):!1,Tu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Le={};function Cu(t){for(const e in t)Le[e]=t[e],Si(e)&&(Le[e].isCSSVariable=!0)}const pe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zt=new Set(pe);function eo(t,{layout:e,layoutId:n}){return Zt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Le[t]||t==="opacity")}const nt=t=>!!(t&&t.getVelocity),no=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ot=(t,e,n)=>n>e?e:n<t?t:n,me={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Oe={...me,transform:t=>Ot(0,1,t)},qe={...me,default:1},je=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),$t=je("deg"),Et=je("%"),D=je("px"),Pu=je("vh"),Au=je("vw"),mr={...Et,parse:t=>Et.parse(t)/100,transform:t=>Et.transform(t*100)},Vu={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,backgroundPositionX:D,backgroundPositionY:D},Eu={rotate:$t,rotateX:$t,rotateY:$t,rotateZ:$t,scale:qe,scaleX:qe,scaleY:qe,scaleZ:qe,skew:$t,skewX:$t,skewY:$t,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Oe,originX:mr,originY:mr,originZ:D},gr={...me,transform:Math.round},Ti={...Vu,...Eu,zIndex:gr,size:D,fillOpacity:Oe,strokeOpacity:Oe,numOctaves:gr},Ru={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mu=pe.length;function Du(t,e,n){let i="",r=!0;for(let o=0;o<Mu;o++){const s=pe[o],a=t[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=no(a,Ti[s]);if(!l){r=!1;const u=Ru[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}function Ci(t,e,n){const{style:i,vars:r,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const c=e[l];if(Zt.has(l)){s=!0;continue}else if(Si(l)){r[l]=c;continue}else{const u=no(c,Ti[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=Du(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;i.transformOrigin=`${l} ${c} ${u}`}}const Pi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function io(t,e,n){for(const i in e)!nt(e[i])&&!eo(i,n)&&(t[i]=e[i])}function Lu({transformTemplate:t},e){return P.useMemo(()=>{const n=Pi();return Ci(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Ou(t,e){const n=t.style||{},i={};return io(i,n,t),Object.assign(i,Lu(t,e)),i}function ku(t,e){const n={},i=Ou(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const Fu=["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 Ai(t){return typeof t!="string"||t.includes("-")?!1:!!(Fu.indexOf(t)>-1||/[A-Z]/u.test(t))}const Iu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bu={offset:"strokeDashoffset",array:"strokeDasharray"};function $u(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?Iu:Bu;t[o.offset]=D.transform(-i);const s=D.transform(e),a=D.transform(n);t[o.array]=`${s} ${a}`}function yr(t,e,n){return typeof t=="string"?t:D.transform(e+n*t)}function _u(t,e,n){const i=yr(e,t.x,t.width),r=yr(n,t.y,t.height);return`${i} ${r}`}function Vi(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(Ci(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&&(r!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=_u(p,r!==void 0?r:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&$u(f,s,a,l,!1)}const ro=()=>({...Pi(),attrs:{}}),Ei=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ju(t,e,n,i){const r=P.useMemo(()=>{const o=ro();return Vi(o,e,Ei(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};io(o,t.style,t),r.style={...o,...r.style}}return r}function Nu(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Ai(n)?ju:ku)(i,o,s,n),c=cu(i,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:r}:{},{children:d}=i,f=P.useMemo(()=>nt(d)?d.get():d,[d]);return P.createElement(n,{...u,children:f})}}function vr(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Ri(t,e,n,i){if(typeof e=="function"){const[r,o]=vr(i);e=e(n!==void 0?n:t.custom,r,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,o]=vr(i);e=e(n!==void 0?n:t.custom,r,o)}return e}const Kn=t=>Array.isArray(t),Uu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),zu=t=>Kn(t)?t[t.length-1]||0:t;function Qe(t){const e=nt(t)?t.get():t;return Uu(e)?e.toValue():e}function Wu({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,o){const s={latestValues:Hu(i,r,o,t),renderState:e()};return n&&(s.onMount=a=>n({props:i,current:a,...s}),s.onUpdate=a=>n(a)),s}const so=t=>(e,n)=>{const i=P.useContext(bn),r=P.useContext(pi),o=()=>Wu(t,e,i,r);return n?o():Ws(o)};function Hu(t,e,n,i){const r={},o=i(t,{});for(const f in o)r[f]=Qe(o[f]);let{initial:s,animate:a}=t;const l=wn(t),c=Xs(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!Sn(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=Ri(t,f[h]);if(p){const{transitionEnd:g,transition:S,...v}=p;for(const w in v){let T=v[w];if(Array.isArray(T)){const A=u?T.length-1:0;T=T[A]}T!==null&&(r[w]=T)}for(const w in g)r[w]=g[w]}}}return r}function Mi(t,e,n){var i;const{style:r}=t,o={};for(const s in r)(nt(r[s])||e.style&&nt(e.style[s])||eo(s,t)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}const Gu={useVisualState:so({scrapeMotionValuesFromProps:Mi,createRenderState:Pi})};function oo(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 ao(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const lo=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 co(t,e,n,i){ao(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(lo.has(r)?r:xi(r),e.attrs[r])}function uo(t,e,n){const i=Mi(t,e,n);for(const r in t)if(nt(t[r])||nt(e[r])){const o=pe.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=t[r]}return i}const xr=["x","y","width","height","cx","cy","r"],Ku={useVisualState:so({scrapeMotionValuesFromProps:uo,createRenderState:ro,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:r})=>{if(!n)return;let o=!!t.drag;if(!o){for(const a in r)if(Zt.has(a)){o=!0;break}}if(!o)return;let s=!e;if(e)for(let a=0;a<xr.length;a++){const l=xr[a];t[l]!==e[l]&&(s=!0)}s&&U.read(()=>{oo(n,i),U.render(()=>{Vi(i,r,Ei(n.tagName),t.transformTemplate),co(n,i)})})}})};function qu(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Ai(i)?Ku:Gu,preloadedFeatures:t,useRender:Nu(r),createVisualElement:e,Component:i};return vu(s)}}function ke(t,e,n){const i=t.getProps();return Ri(i,e,n!==void 0?n:i.custom,t)}const Yu=gi(()=>window.ScrollTimeline!==void 0);class Xu{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 i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(r=>{if(Yu()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].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 Zu extends Xu{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Di(t,e){return t?t[e]||t.default||t:void 0}const qn=2e4;function fo(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<qn;)e+=n,i=t.next(e);return e>=qn?1/0:e}function Li(t){return typeof t=="function"}function br(t,e){t.timeline=e,t.onfinish=null}const Oi=t=>Array.isArray(t)&&typeof t[0]=="number",Ju={linearEasing:void 0};function Qu(t,e){const n=gi(t);return()=>{var i;return(i=Ju[e])!==null&&i!==void 0?i:n()}}const un=Qu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ho=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let o=0;o<r;o++)i+=t(ce(0,r-1,o))+", ";return`linear(${i.substring(0,i.length-2)})`};function po(t){return!!(typeof t=="function"&&un()||!t||typeof t=="string"&&(t in Yn||un())||Oi(t)||Array.isArray(t)&&t.every(po))}const xe=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Yn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xe([0,.65,.55,1]),circOut:xe([.55,0,1,.45]),backIn:xe([.31,.01,.66,-.59]),backOut:xe([.33,1.53,.69,.99])};function mo(t,e){if(t)return typeof t=="function"&&un()?ho(t,e):Oi(t)?xe(t):Array.isArray(t)?t.map(n=>mo(n,e)||Yn.easeOut):Yn[t]}const St={x:!1,y:!1};function go(){return St.x||St.y}function yo(t,e,n){var i;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const o=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function vo(t,e){const n=yo(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function Sr(t){return!(t.pointerType==="touch"||go())}function td(t,e,n={}){const[i,r,o]=vo(t,n),s=a=>{if(!Sr(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=d=>{Sr(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}function dn(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 xo=(t,e)=>e?t===e?!0:xo(t,e.parentElement):!1,ki=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ed=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nd(t){return ed.has(t.tagName)||t.tabIndex!==-1}const be=new WeakSet;function wr(t){return e=>{e.key==="Enter"&&t(e)}}function Dn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const id=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=wr(()=>{if(be.has(n))return;Dn(n,"down");const r=wr(()=>{Dn(n,"up")}),o=()=>Dn(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Tr(t){return ki(t)&&!go()}function rd(t,e,n={}){const[i,r,o]=vo(t,n),s=a=>{const l=a.currentTarget;if(!l||!Tr(a)||be.has(l))return;be.add(l),dn(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",d),l.removeEventListener("pointercancel",f),dn(h,"release"),!(!Tr(h)||!be.has(l))&&(be.delete(l),typeof c=="function"&&c(h,{success:p}))},d=h=>{(h.isTrusted?sd(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)||xo(l,h.target))},f=h=>{u(h,!1)};l.addEventListener("pointerup",d,r),l.addEventListener("pointercancel",f,r),l.addEventListener("lostpointercapture",f,r)};return i.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!nd(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,r),l&&a.addEventListener("focus",c=>id(c,r),r)}),o}function sd(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function od(t){return t==="x"||t==="y"?St[t]?null:(St[t]=!0,()=>{St[t]=!1}):St.x||St.y?null:(St.x=St.y=!0,()=>{St.x=St.y=!1})}const bo=new Set(["width","height","top","left","right","bottom",...pe]);let tn;function ad(){tn=void 0}const Rt={now:()=>(tn===void 0&&Rt.set(Z.isProcessing||iu.useManualTiming?Z.timestamp:performance.now()),tn),set:t=>{tn=t,queueMicrotask(ad)}};function Fi(t,e){t.indexOf(e)===-1&&t.push(e)}function Ii(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Bi{constructor(){this.subscriptions=[]}add(e){return Fi(this.subscriptions,e),()=>Ii(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let o=0;o<r;o++){const s=this.subscriptions[o];s&&s(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function So(t,e){return e?t*(1e3/e):0}const Cr=30,ld=t=>!isNaN(parseFloat(t));class cd{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=Rt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&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=ld(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&xn(!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 Bi);const i=this.events[e].add(n);return e==="change"?()=>{i(),U.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}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>Cr)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cr);return So(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 Fe(t,e){return new cd(t,e)}function ud(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Fe(n))}function $i(t,e){const n=ke(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=zu(o[s]);ud(t,s,a)}}function dd(t){return!!(nt(t)&&t.add)}function Xn(t,e){const n=t.getValue("willChange");if(dd(n))return n.add(e)}function wo(t){return t.props[Zs]}const To=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,fd=1e-7,hd=12;function pd(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=To(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>fd&&++a<hd);return s}function Ne(t,e,n,i){if(t===e&&n===i)return ut;const r=o=>pd(o,0,1,t,n);return o=>o===0||o===1?o:To(r(o),e,i)}const Co=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Po=t=>e=>1-t(1-e),Ao=Ne(.33,1.53,.69,.99),_i=Po(Ao),Vo=Co(_i),Eo=t=>(t*=2)<1?.5*_i(t):.5*(2-Math.pow(2,-10*(t-1))),ji=t=>1-Math.sin(Math.acos(t)),Ro=Po(ji),Mo=Co(ji),Do=t=>/^0[^.\s]+$/u.test(t);function md(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Do(t):!0}const we=t=>Math.round(t*1e5)/1e5,Ni=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gd(t){return t==null}const yd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ui=(t,e)=>n=>!!(typeof n=="string"&&yd.test(n)&&n.startsWith(t)||e&&!gd(n)&&Object.prototype.hasOwnProperty.call(n,e)),Lo=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(Ni);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},vd=t=>Ot(0,255,t),Ln={...me,transform:t=>Math.round(vd(t))},qt={test:Ui("rgb","red"),parse:Lo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ln.transform(t)+", "+Ln.transform(e)+", "+Ln.transform(n)+", "+we(Oe.transform(i))+")"};function xd(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Zn={test:Ui("#"),parse:xd,transform:qt.transform},ee={test:Ui("hsl","hue"),parse:Lo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Et.transform(we(e))+", "+Et.transform(we(n))+", "+we(Oe.transform(i))+")"},et={test:t=>qt.test(t)||Zn.test(t)||ee.test(t),parse:t=>qt.test(t)?qt.parse(t):ee.test(t)?ee.parse(t):Zn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?qt.transform(t):ee.transform(t)},bd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Sd(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ni))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(bd))===null||n===void 0?void 0:n.length)||0)>0}const Oo="number",ko="color",wd="var",Td="var(",Pr="${}",Cd=/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=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(Cd,l=>(et.test(l)?(i.color.push(o),r.push(ko),n.push(et.parse(l))):l.startsWith(Td)?(i.var.push(o),r.push(wd),n.push(l)):(i.number.push(o),r.push(Oo),n.push(parseFloat(l))),++o,Pr)).split(Pr);return{values:n,split:a,indexes:i,types:r}}function Fo(t){return Ie(t).values}function Io(t){const{split:e,types:n}=Ie(t),i=e.length;return r=>{let o="";for(let s=0;s<i;s++)if(o+=e[s],r[s]!==void 0){const a=n[s];a===Oo?o+=we(r[s]):a===ko?o+=et.transform(r[s]):o+=r[s]}return o}}const Pd=t=>typeof t=="number"?0:t;function Ad(t){const e=Fo(t);return Io(t)(e.map(Pd))}const jt={test:Sd,parse:Fo,createTransformer:Io,getAnimatableNone:Ad},Vd=new Set(["brightness","contrast","saturate","opacity"]);function Ed(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Ni)||[];if(!i)return t;const r=n.replace(i,"");let o=Vd.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const Rd=/\b([a-z-]*)\(.*?\)/gu,Jn={...jt,getAnimatableNone:t=>{const e=t.match(Rd);return e?e.map(Ed).join(" "):t}},Md={...Ti,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:Jn,WebkitFilter:Jn},zi=t=>Md[t];function Bo(t,e){let n=zi(t);return n!==Jn&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Dd=new Set(["auto","none","0"]);function Ld(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!Dd.has(o)&&Ie(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Bo(n,r)}const Ar=t=>t===me||t===D,Vr=(t,e)=>parseFloat(t.split(", ")[e]),Er=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Vr(r[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?Vr(o[1],t):0}},Od=new Set(["x","y","z"]),kd=pe.filter(t=>!Od.has(t));function Fd(t){const e=[];return kd.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const de={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:Er(4,13),y:Er(5,14)};de.translateX=de.x;de.translateY=de.y;const Yt=new Set;let Qn=!1,ti=!1;function $o(){if(ti){const t=Array.from(Yt).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=Fd(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ti=!1,Qn=!1,Yt.forEach(t=>t.complete()),Yt.clear()}function _o(){Yt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ti=!0)})}function Id(){_o(),$o()}class Wi{constructor(e,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Yt.add(this),Qn||(Qn=!0,U.read(_o),U.resolveKeyframes($o))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const s=r==null?void 0:r.get(),a=e[e.length-1];if(s!==void 0)e[0]=s;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),r&&s===void 0&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Yt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Yt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const jo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Bd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $d(t){const e=Bd.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const _d=4;function No(t,e,n=1){Dt(n<=_d,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=$d(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return jo(s)?parseFloat(s):s}return wi(r)?No(r,e,n+1):r}const Uo=t=>e=>e.test(t),jd={test:t=>t==="auto",parse:t=>t},zo=[me,D,Et,$t,Au,Pu,jd],Rr=t=>zo.find(Uo(t));class Wo extends Wi{constructor(e,n,i,r,o){super(e,n,i,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=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(),wi(c))){const u=No(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!bo.has(i)||e.length!==2)return;const[r,o]=e,s=Rr(r),a=Rr(o);if(s!==a)if(Ar(s)&&Ar(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,i=[];for(let r=0;r<e.length;r++)md(e[r])&&i.push(r);i.length&&Ld(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=de[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&e.getValue(i,r).jump(r,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const o=n.getValue(i);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=de[i](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 Mr=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jt.test(t)||t==="0")&&!t.startsWith("url("));function Nd(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 Ud(t,e,n,i){const r=t[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],s=Mr(r,e),a=Mr(o,e);return he(s===a,`You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:Nd(t)||(n==="spring"||Li(n))&&i}const zd=t=>t!==null;function Tn(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(zd),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const Wd=40;class Ho{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Rt.now(),this.options={autoplay:e,delay:n,type:i,repeat:r,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Wd?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Id(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Rt.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Ud(e,i,r,o))if(s)this.options.duration=0;else{l&&l(Tn(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 G=(t,e,n)=>t+(e-t)*n;function On(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 Hd({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,o=0,s=0;if(!e)r=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=On(l,a,t+1/3),o=On(l,a,t),s=On(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function fn(t,e){return n=>n>0?e:t}const kn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Gd=[Zn,qt,ee],Kd=t=>Gd.find(e=>e.test(t));function Dr(t){const e=Kd(t);if(he(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===ee&&(n=Hd(n)),n}const Lr=(t,e)=>{const n=Dr(t),i=Dr(e);if(!n||!i)return fn(t,e);const r={...n};return o=>(r.red=kn(n.red,i.red,o),r.green=kn(n.green,i.green,o),r.blue=kn(n.blue,i.blue,o),r.alpha=G(n.alpha,i.alpha,o),qt.transform(r))},qd=(t,e)=>n=>e(t(n)),Ue=(...t)=>t.reduce(qd),ei=new Set(["none","hidden"]);function Yd(t,e){return ei.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Xd(t,e){return n=>G(t,e,n)}function Hi(t){return typeof t=="number"?Xd:typeof t=="string"?wi(t)?fn:et.test(t)?Lr:Qd:Array.isArray(t)?Go:typeof t=="object"?et.test(t)?Lr:Zd:fn}function Go(t,e){const n=[...t],i=n.length,r=t.map((o,s)=>Hi(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Zd(t,e){const n={...t,...e},i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=Hi(t[r])(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function Jd(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][r[s]],l=(n=t.values[a])!==null&&n!==void 0?n:0;i[o]=l,r[s]++}return i}const Qd=(t,e)=>{const n=jt.createTransformer(e),i=Ie(t),r=Ie(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?ei.has(t)&&!r.values.length||ei.has(e)&&!i.values.length?Yd(t,e):Ue(Go(Jd(i,r),r.values),n):(he(!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.`),fn(t,e))};function Ko(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?G(t,e,n):Hi(t)(t,e)}const tf=5;function qo(t,e,n){const i=Math.max(e-tf,0);return So(n-t(i),e-i)}const H={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},Or=.001;function ef({duration:t=H.duration,bounce:e=H.bounce,velocity:n=H.velocity,mass:i=H.mass}){let r,o;he(t<=Vt(H.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=Ot(H.minDamping,H.maxDamping,s),t=Ot(H.minDuration,H.maxDuration,Lt(t)),s<1?(r=c=>{const u=c*s,d=u*t,f=u-n,h=ni(c,s),p=Math.exp(-d);return Or-f/h*p},o=c=>{const d=c*s*t,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*t,p=Math.exp(-d),g=ni(Math.pow(c,2),s);return(-r(c)+Or>0?-1:1)*((f-h)*p)/g}):(r=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-.001+u*d},o=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=rf(r,o,a);if(t=Vt(t),isNaN(l))return{stiffness:H.stiffness,damping:H.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const nf=12;function rf(t,e,n){let i=n;for(let r=1;r<nf;r++)i=i-t(i)/e(i);return i}function ni(t,e){return t*Math.sqrt(1-e*e)}const sf=["duration","bounce"],of=["stiffness","damping","mass"];function kr(t,e){return e.some(n=>t[n]!==void 0)}function af(t){let e={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...t};if(!kr(t,of)&&kr(t,sf))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,o=2*Ot(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:H.mass,stiffness:r,damping:o}}else{const n=ef(t);e={...e,...n,mass:H.mass},e.isResolvedFromDuration=!0}return e}function Yo(t=H.visualDuration,e=H.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=af({...n,velocity:-Lt(n.velocity||0)}),p=f||0,g=c/(2*Math.sqrt(l*u)),S=s-o,v=Lt(Math.sqrt(l/u)),w=Math.abs(S)<5;i||(i=w?H.restSpeed.granular:H.restSpeed.default),r||(r=w?H.restDelta.granular:H.restDelta.default);let T;if(g<1){const m=ni(v,g);T=E=>{const R=Math.exp(-g*v*E);return s-R*((p+g*v*S)/m*Math.sin(m*E)+S*Math.cos(m*E))}}else if(g===1)T=m=>s-Math.exp(-v*m)*(S+(p+v*S)*m);else{const m=v*Math.sqrt(g*g-1);T=E=>{const R=Math.exp(-g*v*E),y=Math.min(m*E,300);return s-R*((p+g*v*S)*Math.sinh(y)+m*S*Math.cosh(y))/m}}const A={calculatedDuration:h&&d||null,next:m=>{const E=T(m);if(h)a.done=m>=d;else{let R=0;g<1&&(R=m===0?Vt(p):qo(T,m,E));const y=Math.abs(R)<=i,b=Math.abs(s-E)<=r;a.done=y&&b}return a.value=a.done?s:E,a},toString:()=>{const m=Math.min(fo(A),qn),E=ho(R=>A.next(m*R).value,m,30);return m+"ms "+E}};return A}function Fr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,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 S=d+g,v=s===void 0?S:s(S);v!==S&&(g=v-d);const w=y=>-g*Math.exp(-y/i),T=y=>v+w(y),A=y=>{const b=w(y),x=T(y);f.done=Math.abs(b)<=c,f.value=f.done?v:x};let m,E;const R=y=>{h(f.value)&&(m=y,E=Yo({keyframes:[f.value,p(f.value)],velocity:qo(T,y,f.value),damping:r,stiffness:o,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:y=>{let b=!1;return!E&&m===void 0&&(b=!0,A(y),R(y)),m!==void 0&&y>=m?E.next(y-m):(!b&&A(y),f)}}}const lf=Ne(.42,0,1,1),cf=Ne(0,0,.58,1),Xo=Ne(.42,0,.58,1),uf=t=>Array.isArray(t)&&typeof t[0]!="number",Ir={linear:ut,easeIn:lf,easeInOut:Xo,easeOut:cf,circIn:ji,circInOut:Mo,circOut:Ro,backIn:_i,backInOut:Vo,backOut:Ao,anticipate:Eo},Br=t=>{if(Oi(t)){Dt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return Ne(e,n,i,r)}else if(typeof t=="string")return Dt(Ir[t]!==void 0,`Invalid easing type '${t}'`),Ir[t];return t};function df(t,e,n){const i=[],r=n||Ko,o=t.length-1;for(let s=0;s<o;s++){let a=r(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ut:e;a=Ue(l,a)}i.push(a)}return i}function ff(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const o=t.length;if(Dt(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=df(e,i,r),l=a.length,c=u=>{if(s&&u<t[0])return e[0];let d=0;if(l>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=ce(t[d],t[d+1],u);return a[d](f)};return n?u=>c(Ot(t[0],t[o-1],u)):c}function hf(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=ce(0,e,i);t.push(G(n,1,r))}}function pf(t){const e=[0];return hf(e,t.length-1),e}function mf(t,e){return t.map(n=>n*e)}function gf(t,e){return t.map(()=>e||Xo).splice(0,t.length-1)}function Te({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=uf(i)?i.map(Br):Br(i),o={done:!1,value:e[0]},s=mf(n&&n.length===e.length?n:pf(e),t),a=ff(s,e,{ease:Array.isArray(r)?r:gf(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const yf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>U.update(e,!0),stop:()=>_t(e),now:()=>Z.isProcessing?Z.timestamp:Rt.now()}},vf={decay:Fr,inertia:Fr,tween:Te,keyframes:Te,spring:Yo},xf=t=>t/100;class Gi extends Ho{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:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Wi,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=Li(n)?n:vf[n]||Te;let l,c;process.env.NODE_ENV!=="production"&&a!==Te&&Dt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==Te&&typeof e[0]!="number"&&(l=Ue(xf,Ko(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=fo(u));const{calculatedDuration:d}=u,f=d+r,h=f*(i+1)-r;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:i}=this;if(!i){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=i;if(this.startTime===null)return o.next(0);const{delay:f,repeat:h,repeatType:p,repeatDelay:g,onUpdate:S}=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),w=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,A=o;if(h){const y=Math.min(this.currentTime,u)/d;let b=Math.floor(y),x=y%1;!x&&y>=1&&(x=1),x===1&&b--,b=Math.min(b,h+1),!!(b%2)&&(p==="reverse"?(x=1-x,g&&(x-=g/d)):p==="mirror"&&(A=s)),T=Ot(0,1,x)*d}const m=w?{done:!1,value:l[0]}:A.next(T);a&&(m.value=a(m.value));let{done:E}=m;!w&&c!==null&&(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return R&&r!==void 0&&(m.value=Tn(l,this.options,r)),S&&S(m.value),R&&this.finish(),m}get duration(){const{resolved:e}=this;return e?Lt(e.calculatedDuration):0}get time(){return Lt(this.currentTime)}set time(e){e=Vt(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=Lt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=yf,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??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 Sf(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=mo(a,r);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const wf=gi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),hn=10,Tf=2e4;function Cf(t){return Li(t.type)||t.type==="spring"||!po(t.ease)}function Pf(t,e){const n=new Gi({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const r=[];let o=0;for(;!i.done&&o<Tf;)i=n.sample(o),r.push(i.value),o+=hn;return{times:void 0,keyframes:r,duration:o-hn,ease:"linear"}}const Zo={anticipate:Eo,backInOut:Vo,circInOut:Mo};function Af(t){return t in Zo}class $r extends Ho{constructor(e){super(e);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new Wo(o,(s,a)=>this.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:r,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&un()&&Af(o)&&(o=Zo[o]),Cf(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:p,...g}=this.options,S=Pf(e,g);e=S.keyframes,e.length===1&&(e[1]=e[0]),i=S.duration,r=S.times,o=S.ease,s="keyframes"}const u=Sf(a.owner.current,l,e,{...this.options,duration:i,times:r,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(br(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Tn(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:r,type:s,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Lt(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Lt(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Vt(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:i}=n;i.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 ut;const{animation:i}=n;br(i,e)}return ut}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:i,duration:r,type:o,ease:s,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 Gi({...h,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),g=Vt(this.time);c.setWithVelocity(p.sample(g-hn).value,p.sample(g).value,hn)}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:i,repeatDelay:r,repeatType:o,damping:s,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return wf()&&i&&bf.has(i)&&!l&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const Vf={type:"spring",stiffness:500,damping:25,restSpeed:10},Ef=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Rf={type:"keyframes",duration:.8},Mf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Df=(t,{keyframes:e})=>e.length>2?Rf:Zt.has(t)?t.startsWith("scale")?Ef(e[1]):Vf:Mf;function Lf({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Ki=(t,e,n,i={},r,o)=>s=>{const a=Di(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Vt(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:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};Lf(a)||(u={...u,...Df(t,u)}),u.duration&&(u.duration=Vt(u.duration)),u.repeatDelay&&(u.repeatDelay=Vt(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&&!o&&e.get()!==void 0){const f=Tn(u.keyframes,a);if(f!==void 0)return U.update(()=>{u.onUpdate(f),u.onComplete()}),new Zu([])}return!o&&$r.supports(u)?new $r(u):new Gi(u)};function Of({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Jo(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(s=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const d in l){const f=t.getValue(d,(o=t.latestValues[d])!==null&&o!==void 0?o:null),h=l[d];if(h===void 0||u&&Of(u,d))continue;const p={delay:n,...Di(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const v=wo(t);if(v){const w=window.MotionHandoffAnimation(v,d,U);w!==null&&(p.startTime=w,g=!0)}}Xn(t,d),f.start(Ki(d,f,h,t.shouldReduceMotion&&bo.has(d)?{type:!1}:p,t,g));const S=f.animation;S&&c.push(S)}return a&&Promise.all(c).then(()=>{U.update(()=>{a&&$i(t,a)})}),c}function ii(t,e,n={}){var i;const r=ke(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Jo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=o;return kf(t,e,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function kf(t,e,n=0,i=0,r=1,o){const s=[],a=(t.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(Ff).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(ii(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function Ff(t,e){return t.sortNodePosition(e)}function Qo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>ii(t,o,n));i=Promise.all(r)}else if(typeof e=="string")i=ii(t,e,n);else{const r=typeof e=="function"?ke(t,e,n.custom):e;i=Promise.all(Jo(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function ta(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const If=vi.length;function ea(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ea(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<If;n++){const i=vi[n],r=t.props[i];(De(r)||r===!1)&&(e[i]=r)}return e}const Bf=[...yi].reverse(),$f=yi.length;function _f(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Qo(t,n,i)))}function jf(t){let e=_f(t),n=_r(),i=!0;const r=l=>(c,u)=>{var d;const f=ke(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 o(l){e=l(t)}function s(l){const{props:c}=t,u=ea(t.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let S=0;S<$f;S++){const v=Bf[S],w=n[v],T=c[v]!==void 0?c[v]:u[v],A=De(T),m=v===l?w.isActive:null;m===!1&&(p=S);let E=T===u[v]&&T!==c[v]&&A;if(E&&i&&t.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...h},!w.isActive&&m===null||!T&&!w.prevProp||Sn(T)||typeof T=="boolean")continue;const R=Nf(w.prevProp,T);let y=R||v===l&&w.isActive&&!E&&A||S>p&&A,b=!1;const x=Array.isArray(T)?T:[T];let C=x.reduce(r(v),{});m===!1&&(C={});const{prevResolvedValues:O={}}=w,W={...O,...C},Y=F=>{y=!0,f.has(F)&&(b=!0,f.delete(F)),w.needsAnimating[F]=!0;const N=t.getValue(F);N&&(N.liveStyle=!1)};for(const F in W){const N=C[F],at=O[F];if(h.hasOwnProperty(F))continue;let rt=!1;Kn(N)&&Kn(at)?rt=!ta(N,at):rt=N!==at,rt?N!=null?Y(F):f.add(F):N!==void 0&&f.has(F)?Y(F):w.protectedKeys[F]=!0}w.prevProp=T,w.prevResolvedValues=C,w.isActive&&(h={...h,...C}),i&&t.blockInitialAnimation&&(y=!1),y&&(!(E&&R)||b)&&d.push(...x.map(F=>({animation:F,options:{type:v}})))}if(f.size){const S={};if(typeof c.initial!="boolean"){const v=ke(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(S.transition=v.transition)}f.forEach(v=>{const w=t.getBaseTarget(v),T=t.getValue(v);T&&(T.liveStyle=!0),S[v]=w??null}),d.push({animation:S})}let g=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),i=!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=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_r(),i=!0}}}function Nf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ta(e,t):!1}function Ht(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _r(){return{animate:Ht(!0),whileInView:Ht(),whileHover:Ht(),whileTap:Ht(),whileDrag:Ht(),whileFocus:Ht(),exit:Ht()}}class Nt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Uf extends Nt{constructor(e){super(e),e.animationState||(e.animationState=jf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Sn(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 zf=0;class Wf extends Nt{constructor(){super(...arguments),this.id=zf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.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 Hf={animation:{Feature:Uf},exit:{Feature:Wf}};function Be(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ze(t){return{point:{x:t.pageX,y:t.pageY}}}const Gf=t=>e=>ki(e)&&t(e,ze(e));function ne(t,e,n,i){return Be(t,e,Gf(n),i)}function na({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Kf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}const ia=1e-4,Yf=1-ia,Xf=1+ia,ra=.01,Zf=0-ra,Jf=0+ra;function ot(t){return t.max-t.min}function Qf(t,e,n){return Math.abs(t-e)<=n}function jr(t,e,n,i=.5){t.origin=i,t.originPoint=G(e.min,e.max,t.origin),t.scale=ot(n)/ot(e),t.translate=G(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Yf&&t.scale<=Xf||isNaN(t.scale))&&(t.scale=1),(t.translate>=Zf&&t.translate<=Jf||isNaN(t.translate))&&(t.translate=0)}function Ce(t,e,n,i){jr(t.x,e.x,n.x,i?i.originX:void 0),jr(t.y,e.y,n.y,i?i.originY:void 0)}function Nr(t,e,n){t.min=n.min+e.min,t.max=t.min+ot(e)}function th(t,e,n){Nr(t.x,e.x,n.x),Nr(t.y,e.y,n.y)}function Ur(t,e,n){t.min=e.min-n.min,t.max=t.min+ot(e)}function Pe(t,e,n){Ur(t.x,e.x,n.x),Ur(t.y,e.y,n.y)}const zr=()=>({translate:0,scale:1,origin:0,originPoint:0}),ie=()=>({x:zr(),y:zr()}),Wr=()=>({min:0,max:0}),K=()=>({x:Wr(),y:Wr()});function yt(t){return[t("x"),t("y")]}function Fn(t){return t===void 0||t===1}function ri({scale:t,scaleX:e,scaleY:n}){return!Fn(t)||!Fn(e)||!Fn(n)}function Gt(t){return ri(t)||sa(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function sa(t){return Hr(t.x)||Hr(t.y)}function Hr(t){return t&&t!=="0%"}function pn(t,e,n){const i=t-n,r=e*i;return n+r}function Gr(t,e,n,i,r){return r!==void 0&&(t=pn(t,r,i)),pn(t,n,i)+e}function si(t,e=0,n=1,i,r){t.min=Gr(t.min,e,n,i,r),t.max=Gr(t.max,e,n,i,r)}function oa(t,{x:e,y:n}){si(t.x,e.translate,e.scale,e.originPoint),si(t.y,n.translate,n.scale,n.originPoint)}const Kr=.999999999999,qr=1.0000000000001;function eh(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let o,s;for(let a=0;a<r;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&se(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,oa(t,s)),i&&Gt(o.latestValues)&&se(t,o.latestValues))}e.x<qr&&e.x>Kr&&(e.x=1),e.y<qr&&e.y>Kr&&(e.y=1)}function re(t,e){t.min=t.min+e,t.max=t.max+e}function Yr(t,e,n,i,r=.5){const o=G(t.min,t.max,r);si(t,e,n,o,i)}function se(t,e){Yr(t.x,e.x,e.scaleX,e.scale,e.originX),Yr(t.y,e.y,e.scaleY,e.scale,e.originY)}function aa(t,e){return na(qf(t.getBoundingClientRect(),e))}function nh(t,e,n){const i=aa(t,n),{scroll:r}=e;return r&&(re(i.x,r.offset.x),re(i.y,r.offset.y)),i}const Xr=(t,e)=>Math.abs(t-e);function ih(t,e){const n=Xr(t.x,e.x),i=Xr(t.y,e.y);return Math.sqrt(n**2+i**2)}class la{constructor(e,n,{transformPagePoint:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Bn(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=ih(u.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:h}=u,{timestamp:p}=Z;this.history.push({...h,timestamp:p});const{onStart:g,onMove:S}=this.handlers;d||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),S&&S(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=In(d,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{dn(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=Bn(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:In(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,g),h&&h(u,g)},!ki(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i;const o=ze(e),s=In(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=Z;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,Bn(s,this.history)),dn(e,"set"),this.removeListeners=Ue(ne(e.currentTarget,"pointermove",this.handlePointerMove),ne(e.currentTarget,"pointerup",this.handlePointerUp),ne(e.currentTarget,"pointercancel",this.handlePointerUp),ne(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}}function In(t,e){return e?{point:e(t.point)}:t}function Zr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Bn({point:t},e){return{point:t,delta:Zr(t,ca(e)),offset:Zr(t,rh(e)),velocity:sh(e,.1)}}function rh(t){return t[0]}function ca(t){return t[t.length-1]}function sh(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=ca(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Vt(e)));)n--;if(!i)return{x:0,y:0};const o=Lt(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function oh(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?G(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?G(n,t,i.max):Math.min(t,n)),t}function Jr(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 ah(t,{top:e,left:n,bottom:i,right:r}){return{x:Jr(t.x,n,r),y:Jr(t.y,e,i)}}function Qr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function lh(t,e){return{x:Qr(t.x,e.x),y:Qr(t.y,e.y)}}function ch(t,e){let n=.5;const i=ot(t),r=ot(e);return r>i?n=ce(e.min,e.max-i,t.min):i>r&&(n=ce(t.min,t.max-r,e.min)),Ot(0,1,n)}function uh(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 oi=.35;function dh(t=oi){return t===!1?t=0:t===!0&&(t=oi),{x:ts(t,"left","right"),y:ts(t,"top","bottom")}}function ts(t,e,n){return{min:es(t,e),max:es(t,n)}}function es(t,e){return typeof t=="number"?t:t[e]||0}const fh=new WeakMap;class hh{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=K(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ze(u).point)},o=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=od(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),yt(S=>{let v=this.getAxisMotionValue(S).get()||0;if(Et.test(v)){const{projection:w}=this.visualElement;if(w&&w.layout){const T=w.layout.layoutBox[S];T&&(v=ot(T)*(parseFloat(v)/100))}}this.originPoint[S]=v}),p&&U.postRender(()=>p(u,d)),Xn(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:g}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:S}=d;if(h&&this.currentDirection===null){this.currentDirection=ph(S),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),g&&g(u,d)},a=(u,d)=>this.stop(u,d),l=()=>yt(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 la(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!Ye(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=oh(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&te(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=ah(r.layoutBox,n):this.constraints=!1,this.elastic=dh(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=uh(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!te(e))return!1;const i=e.current;Dt(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=nh(i,r.root,this.visualElement.getTransformPagePoint());let s=lh(r.layout.layoutBox,o);if(n){const a=n(Kf(s));this.hasMutatedConstraints=!!a,a&&(s=na(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=yt(u=>{if(!Ye(u,n,this.currentDirection))return;let d=l[u]||{};s&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Xn(this.visualElement,e),i.start(Ki(e,i,0,n,this.visualElement,!1))}stopAnimation(){yt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){yt(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()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){yt(n=>{const{drag:i}=this.getProps();if(!Ye(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(e[n]-G(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!te(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=ch({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),yt(s=>{if(!Ye(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(G(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;fh.set(this.visualElement,this);const e=this.visualElement.current,n=ne(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();te(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),U.read(i);const s=Be(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(yt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=oi,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ye(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ph(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class mh extends Nt{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new hh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const ns=t=>(e,n)=>{t&&U.postRender(()=>t(e,n))};class gh extends Nt{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new la(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:ns(e),onStart:ns(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&U.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=ne(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 en={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function is(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ve={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(D.test(t))t=parseFloat(t);else return t;const n=is(t,e.target.x),i=is(t,e.target.y);return`${n}% ${i}%`}},yh={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=jt.parse(t);if(r.length>5)return i;const o=jt.createTransformer(t),s=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+s]/=a,r[1+s]/=l;const c=G(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=c),typeof r[3+s]=="number"&&(r[3+s]/=c),o(r)}};class vh extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;Cu(xh),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),en.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||U.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),bi.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ua(t){const[e,n]=nu(),i=P.useContext(zs);return nn.jsx(vh,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(Js),isPresent:e,safeToRemove:n})}const xh={borderRadius:{...ve,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomLeftRadius:ve,borderBottomRightRadius:ve,boxShadow:yh};function bh(t,e,n){const i=nt(t)?t:Fe(t);return i.start(Ki("",i,e,n)),i.animation}function Sh(t){return t instanceof SVGElement&&t.tagName!=="svg"}const wh=(t,e)=>t.depth-e.depth;class Th{constructor(){this.children=[],this.isDirty=!1}add(e){Fi(this.children,e),this.isDirty=!0}remove(e){Ii(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(wh),this.isDirty=!1,this.children.forEach(e)}}function Ch(t,e){const n=Rt.now(),i=({timestamp:r})=>{const o=r-n;o>=e&&(_t(i),t(o-e))};return U.read(i,!0),()=>_t(i)}const da=["TopLeft","TopRight","BottomLeft","BottomRight"],Ph=da.length,rs=t=>typeof t=="string"?parseFloat(t):t,ss=t=>typeof t=="number"||D.test(t);function Ah(t,e,n,i,r,o){r?(t.opacity=G(0,n.opacity!==void 0?n.opacity:1,Vh(i)),t.opacityExit=G(e.opacity!==void 0?e.opacity:1,0,Eh(i))):o&&(t.opacity=G(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<Ph;s++){const a=`border${da[s]}Radius`;let l=os(e,a),c=os(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ss(l)===ss(c)?(t[a]=Math.max(G(rs(l),rs(c),i),0),(Et.test(c)||Et.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=G(e.rotate||0,n.rotate||0,i))}function os(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Vh=fa(0,.5,Ro),Eh=fa(.5,.95,ut);function fa(t,e,n){return i=>i<t?0:i>e?1:n(ce(t,e,i))}function as(t,e){t.min=e.min,t.max=e.max}function gt(t,e){as(t.x,e.x),as(t.y,e.y)}function ls(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function cs(t,e,n,i,r){return t-=e,t=pn(t,1/n,i),r!==void 0&&(t=pn(t,1/r,i)),t}function Rh(t,e=0,n=1,i=.5,r,o=t,s=t){if(Et.test(e)&&(e=parseFloat(e),e=G(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=G(o.min,o.max,i);t===o&&(a-=e),t.min=cs(t.min,e,n,a,r),t.max=cs(t.max,e,n,a,r)}function us(t,e,[n,i,r],o,s){Rh(t,e[n],e[i],e[r],e.scale,o,s)}const Mh=["x","scaleX","originX"],Dh=["y","scaleY","originY"];function ds(t,e,n,i){us(t.x,e,Mh,n?n.x:void 0,i?i.x:void 0),us(t.y,e,Dh,n?n.y:void 0,i?i.y:void 0)}function fs(t){return t.translate===0&&t.scale===1}function ha(t){return fs(t.x)&&fs(t.y)}function hs(t,e){return t.min===e.min&&t.max===e.max}function Lh(t,e){return hs(t.x,e.x)&&hs(t.y,e.y)}function ps(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function pa(t,e){return ps(t.x,e.x)&&ps(t.y,e.y)}function ms(t){return ot(t.x)/ot(t.y)}function gs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Oh{constructor(){this.members=[]}add(e){Fi(this.members,e),e.scheduleRender()}remove(e){if(Ii(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(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kh(t,e,n){let i="";const r=t.x.translate/e.x,o=t.y.translate/e.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const $n=["","X","Y","Z"],Fh={visibility:"hidden"},ys=1e3;let Ih=0;function _n(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ma(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=wo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",U,!(r||o))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ma(i)}function ga({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=Ih++,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(_h),this.nodes.forEach(Wh),this.nodes.forEach(Hh),this.nodes.forEach(jh)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 Th)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Bi),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Sh(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),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(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Ch(f,250),en.hasAnimatedSinceResize&&(en.hasAnimatedSinceResize=!1,this.nodes.forEach(xs))})}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()||Xh,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!pa(this.targetLayout,p),T=!f&&h;if(this.options.layoutRoot||this.resumeFrom||T||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,T);const A={...Di(g,"layout"),onPlay:S,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||xs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(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(Gh),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ma(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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vs);return}this.isUpdating||this.nodes.forEach(Uh),this.isUpdating=!1,this.nodes.forEach(zh),this.nodes.forEach(Bh),this.nodes.forEach($h),this.clearAllSnapshots();const a=Rt.now();Z.delta=Ot(0,1e3/60,a-Z.timestamp),Z.timestamp=a,Z.isProcessing=!0,Mn.update.process(Z),Mn.preRender.process(Z),Mn.render.process(Z),Z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nh),this.sharedNodes.forEach(Kh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ot(this.snapshot.measuredBox.x)&&!ot(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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=K(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ha(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Gt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Zh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:a}=this.options;if(!a)return K();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Jh))){const{scroll:u}=this.root;u&&(re(l.x,u.offset.x),re(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=K();if(gt(l,s),!((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&&gt(l,s),re(l.x,d.offset.x),re(l.y,d.offset.y))}return l}applyTransform(s,a=!1){const l=K();gt(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&se(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Gt(u.latestValues)&&se(l,u.latestValues)}return Gt(this.latestValues)&&se(l,this.latestValues),l}removeTransform(s){const a=K();gt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Gt(c.latestValues))continue;ri(c.latestValues)&&c.updateSnapshot();const u=K(),d=c.measurePageBox();gt(u,d),ds(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Gt(this.latestValues)&&ds(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||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=Z.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),Pe(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),th(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),oa(this.target,this.targetDelta)):gt(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=K(),this.relativeTargetOrigin=K(),Pe(this.relativeTargetOrigin,this.target,h.target),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ri(this.parent.latestValues)||sa(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Z.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;gt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;eh(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=K());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ls(this.prevProjectionDelta.x,this.projectionDelta.x),ls(this.prevProjectionDelta.y,this.projectionDelta.y)),Ce(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!gs(this.projectionDelta.x,this.prevProjectionDelta.x)||!gs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ie(),this.projectionDelta=ie(),this.projectionDeltaWithTransform=ie()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=ie();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=K(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,S=this.getStack(),v=!S||S.members.length<=1,w=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(Yh));this.animationProgress=0;let T;this.mixTargetDelta=A=>{const m=A/1e3;bs(d.x,s.x,m),bs(d.y,s.y,m),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pe(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qh(this.relativeTarget,this.relativeTargetOrigin,f,m),T&&Lh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=K()),gt(T,this.relativeTarget)),g&&(this.animationValues=u,Ah(u,c,this.latestValues,m,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.update(()=>{en.hasAnimatedSinceResize=!0,this.currentAnimation=bh(0,ys,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ys),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ya(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||K();const d=ot(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=ot(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}gt(a,l),se(a,u),Ce(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Oh),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&_n("z",s,c,this.animationValues);for(let u=0;u<$n.length;u++)_n(`rotate${$n[u]}`,s,c,this.animationValues),_n(`skew${$n[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Fh;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Qe(s==null?void 0:s.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=Qe(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Gt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=kh(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 Le){if(f[g]===void 0)continue;const{correct:S,applyTo:v,isCSSVariable:w}=Le[g],T=c.transform==="none"?f[g]:S(f[g],d);if(v){const A=v.length;for(let m=0;m<A;m++)c[v[m]]=T}else w?this.options.visualElement.renderState.vars[g]=T:c[g]=T}return this.options.layoutId&&(c.pointerEvents=d===this?Qe(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(vs),this.root.sharedNodes.clear()}}}function Bh(t){t.updateLayout()}function $h(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:i,measuredBox:r}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?yt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=ot(f);f.min=i[d].min,f.max=f.min+h}):ya(o,n.layoutBox,i)&&yt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=ot(i[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=ie();Ce(a,i,n.layoutBox);const l=ie();s?Ce(l,t.applyTransform(r,!0),n.measuredBox):Ce(l,i,n.layoutBox);const c=!ha(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=K();Pe(p,n.layoutBox,f.layoutBox);const g=K();Pe(g,i,h.layoutBox),pa(p,g)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function _h(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 jh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Nh(t){t.clearSnapshot()}function vs(t){t.clearMeasurements()}function Uh(t){t.isLayoutDirty=!1}function zh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function xs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Wh(t){t.resolveTargetDelta()}function Hh(t){t.calcProjection()}function Gh(t){t.resetSkewAndRotation()}function Kh(t){t.removeLeadSnapshot()}function bs(t,e,n){t.translate=G(e.translate,0,n),t.scale=G(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ss(t,e,n,i){t.min=G(e.min,n.min,i),t.max=G(e.max,n.max,i)}function qh(t,e,n,i){Ss(t.x,e.x,n.x,i),Ss(t.y,e.y,n.y,i)}function Yh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xh={duration:.45,ease:[.4,0,.1,1]},ws=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ts=ws("applewebkit/")&&!ws("chrome/")?Math.round:ut;function Cs(t){t.min=Ts(t.min),t.max=Ts(t.max)}function Zh(t){Cs(t.x),Cs(t.y)}function ya(t,e,n){return t==="position"||t==="preserve-aspect"&&!Qf(ms(e),ms(n),.2)}function Jh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Qh=ga({attachResizeListener:(t,e)=>Be(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jn={current:void 0},va=ga({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!jn.current){const t=new Qh({});t.mount(window),t.setOptions({layoutScroll:!0}),jn.current=t}return jn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),tp={pan:{Feature:gh},drag:{Feature:mh,ProjectionNode:va,MeasureLayout:ua}};function Ps(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,o=i[r];o&&U.postRender(()=>o(e,ze(e)))}class ep extends Nt{mount(){const{current:e}=this.node;e&&(this.unmount=td(e,(n,i)=>(Ps(this.node,i,"Start"),r=>Ps(this.node,r,"End"))))}unmount(){}}class np extends Nt{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=Ue(Be(this.node.current,"focus",()=>this.onFocus()),Be(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function As(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),o=i[r];o&&U.postRender(()=>o(e,ze(e)))}class ip extends Nt{mount(){const{current:e}=this.node;e&&(this.unmount=rd(e,(n,i)=>(As(this.node,i,"Start"),(r,{success:o})=>As(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ai=new WeakMap,Nn=new WeakMap,rp=t=>{const e=ai.get(t.target);e&&e(t)},sp=t=>{t.forEach(rp)};function op({root:t,...e}){const n=t||document;Nn.has(n)||Nn.set(n,{});const i=Nn.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(sp,{root:t,...e})),i[r]}function ap(t,e,n){const i=op(e);return ai.set(t,n),i.observe(t),()=>{ai.delete(t),i.unobserve(t)}}const lp={some:0,all:1};class cp extends Nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:lp[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!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 ap(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(up(e,n))&&this.startObserver()}unmount(){}}function up({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const dp={inView:{Feature:cp},tap:{Feature:ip},focus:{Feature:np},hover:{Feature:ep}},fp={layout:{ProjectionNode:va,MeasureLayout:ua}},li={current:null},xa={current:!1};function hp(){if(xa.current=!0,!!mi)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>li.current=t.matches;t.addListener(e),e()}else li.current=!1}const pp=[...zo,et,jt],mp=t=>pp.find(Uo(t)),gp=new WeakMap;function yp(t,e,n){for(const i in e){const r=e[i],o=n[i];if(nt(r))t.addValue(i,r),process.env.NODE_ENV==="development"&&xn(r.version==="12.4.7",`Attempting to mix Motion versions ${r.version} with 12.4.7 may not work as expected.`);else if(nt(o))t.addValue(i,Fe(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){const s=t.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=t.getStaticValue(i);t.addValue(i,Fe(s!==void 0?s:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Vs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vp{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wi,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,U.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=s;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=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=wn(n),this.isVariantNode=Xs(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&&nt(p)&&p.set(l[h],!1)}}mount(e){this.current=e,gp.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,i)=>this.bindToMotionValue(i,n)),xa.current||hp(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:li.current,process.env.NODE_ENV!=="production"&&xn(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(),_t(this.notifyUpdate),_t(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 i=Zt.has(e);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&U.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),o(),s&&s(),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 ue){const n=ue[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}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 i=0;i<Vs.length;i++){const r=Vs[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const o="on"+r,s=e[o];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=yp(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 i=this.values.get(e);n!==i&&(i&&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 i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Fe(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(jo(r)||Do(r))?r=parseFloat(r):!mp(r)&&jt.test(n)&&(r=Bo(e,n)),this.setBaseTarget(e,nt(r)?r.get():r)),nt(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Ri(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[e])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!nt(o)?o:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Bi),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ba extends vp{constructor(){super(...arguments),this.KeyframeResolver=Wo}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:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;nt(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xp(t){return window.getComputedStyle(t)}class bp extends ba{constructor(){super(...arguments),this.type="html",this.renderInstance=ao}readValueFromInstance(e,n){if(Zt.has(n)){const i=zi(n);return i&&i.default||0}else{const i=xp(e),r=(Si(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return aa(e,n)}build(e,n,i){Ci(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Mi(e,n,i)}}class Sp extends ba{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&oo(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Zt.has(n)){const i=zi(n);return i&&i.default||0}return n=lo.has(n)?n:xi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return uo(e,n,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&U.postRender(this.updateDimensions)}build(e,n,i){Vi(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){co(e,n,i,r)}mount(e){this.isSVGTag=Ei(e.tagName),super.mount(e)}}const wp=(t,e)=>Ai(t)?new Sp(e):new bp(e,{allowProjection:t!==P.Fragment}),Tp=qu({...Hf,...dp,...tp,...fp},wp),Cp=uu(Tp);function Pp(t){t.values.forEach(e=>e.stop())}function ci(t,e){[...e].reverse().forEach(i=>{const r=t.getVariant(i);r&&$i(t,r),t.variantChildren&&t.variantChildren.forEach(o=>{ci(o,e)})})}function Ap(t,e){if(Array.isArray(e))return ci(t,e);if(typeof e=="string")return ci(t,[e]);$i(t,e)}function Vp(){let t=!1;const e=new Set,n={subscribe(i){return e.add(i),()=>void e.delete(i)},start(i,r){Dt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const o=[];return e.forEach(s=>{o.push(Qo(s,i,{transitionOverride:r}))}),Promise.all(o)},set(i){return Dt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(r=>{Ap(r,i)})},stop(){e.forEach(i=>{Pp(i)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function Ep(){const t=Ws(Vp);return Gs(t.mount,[]),t}const Rp=Ep,Mp={some:0,all:1};function Dp(t,e,{root:n,margin:i,amount:r="some"}={}){const o=yo(t),s=new WeakMap,a=c=>{c.forEach(u=>{const d=s.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?s.set(u.target,f):l.unobserve(u.target)}else typeof d=="function"&&(d(u),s.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof r=="number"?r:Mp[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function Lp(t,{root:e,margin:n,amount:i,once:r=!1,initial:o=!1}={}){const[s,a]=P.useState(o);return P.useEffect(()=>{if(!t.current||r&&s)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:i};return Dp(t.current,l,c)},[e,t,n,r,i]),s}var Op="var(--jqc4y00)",kp="var(--jqc4y01)",Fp="var(--jqc4y02)",Ip="var(--jqc4y03)",Bp="var(--jqc4y04)",$p="var(--jqc4y05)",_p="var(--jqc4y06)",jp="var(--jqc4y07)",Np="var(--jqc4y08)",Up="var(--jqc4y09)",zp={width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",animation:"background 0.5s ease-in-out",color:"var(--jqc4y02)",zIndex:"var(--jqc4y01)",minHeight:"var(--jqc4y07)",paddingTop:"var(--jqc4y03)",paddingLeft:"var(--jqc4y04)",paddingRight:"var(--jqc4y05)",paddingBottom:"var(--jqc4y06)",background:"var(--jqc4y09)",justifyContent:"var(--jqc4y08)"},Wp="jqc4y0b",Ae=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Ae||{});const Hp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},Gp=({children:t,className:e,zIndex:n=20,id:i=void 0,isDark:r=!1,align:o=Ae.Left,isFullHeight:s=!1,noPaddingTop:a=!1,theme:l=j,backgroundColor:c="",noPaddingBottom:u=!1})=>{const d=Rp(),f=Xt(),h=P.createRef(),{colors:p,header:{height:g},footer:{height:S},global:{paddingRight:v,paddingLeft:w},section:{paddingTop:T,paddingBottom:A}}=l,m=Lp(h,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{m&&d.start("visible")},[d,m]),V("section",{id:i,ref:h,className:e,style:Mt({[kp]:`${n}`,[Up]:c,[Np]:s?"center":"flex-start",[Fp]:r?p.defaultLightText:p.defaultText,[jp]:s?`calc(100vh - ${g[f]}px - ${S[f]}px)`:"0",[Bp]:`${w[f]}px`,[$p]:`${v[f]}px`,[Ip]:a?"0px":`${T[f]}px`,[_p]:u?"0px":`${A[f]}px`}),children:V(Cp.div,{className:Wp,initial:"hidden",animate:d,variants:Hp,style:Mt({[Op]:o===Ae.Center?"center":o===Ae.Right?"right":"left"}),children:t})})},Kp=k.div(({styles:t,theme:{nav:{gap:e}}})=>it({gap:e[0],display:"flex",flexDirection:"column",[L[0]]:{gap:e[1]},[L[1]]:{gap:e[2],flexDirection:"row"},[L[2]]:{gap:e[3]}},t)),qp=({children:t,styles:e={},theme:n=j})=>V(Kp,{theme:n,styles:e,children:t});var Yp={navSocialGap:"var(--g7q46n0)"},Xp="g7q46n1",Zp="g7q46n2";const Jp=({navSocial:t,className:e,theme:n=j})=>{const i=Xt(),{navSocial:{gap:r}}=n;return V("div",{className:e,style:Mt({[Yp.navSocialGap]:`${r[i]}px`}),children:t.map(({name:o,link:s},a)=>{const l=o[0].toUpperCase()+o.slice(1);return V("div",{className:Zp,children:V("a",{target:"_blank",rel:"noopener noreferrer","aria-label":o,href:s,children:V(Pt,{theme:n,icon:`social${l}`})})},`navSocialItem-${a}`)})})};var Qp={navLegalGap:"var(--vehv9e0)"},tm="vehv9e1";const em=({children:t,className:e,theme:n=j})=>{const i=Xt(),{navLegal:{gap:r}}=n;return V("nav",{className:e,style:Mt({[Qp.navLegalGap]:`${r[i]}px`}),children:t})},nm=k.form(({styles:t,theme:{form:{width:e,padding:n,backgroundColor:i}}})=>it({width:"100%",maxWidth:e,backgroundColor:i,padding:n[0],position:"relative",[L[1]]:{padding:n[1]}},t)),im=({action:t,children:e,styles:n={},theme:i=j})=>V(nm,{theme:i,styles:n,action:t,children:e});var $e=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))($e||{});const rm=k.div(({theme:{form:{row:{gap:t,padding:e}}},align:n,styles:i,isMessage:r})=>it({gap:t[0],display:"flex",padding:e[0],flexDirection:"column",fontSize:r?"0.8em":"inherit",justifyContent:n===$e.Right?"flex-end":n===$e.Center?"center":"flex-start",[L[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},i)),sm=({children:t,theme:e=j,styles:n={},isActions:i=!1,isMessage:r=!1,align:o=$e.Left})=>V(rm,{align:o,theme:e,styles:n,isActions:i,isMessage:r,children:t}),om=k.input(({styles:t,theme:{form:{input:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>it({color:n,width:"100%",border:i,lineHeight:"1.5em",fontSize:"inherit",padding:r[0],borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[L[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t));var Cn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(Cn||{});const Sa=({name:t,value:e="",styles:n={},type:i=Cn.Text,disabled:r=!1,placeholder:o="",theme:s=j,onChange:a=void 0})=>V(om,{type:i,id:t,name:t,theme:s,styles:n,onChange:a,disabled:r,defaultValue:e,placeholder:o}),am=k.label(({theme:{form:{label:{color:t,font:e,fontWeight:n,paddingBottom:i}}}})=>({color:t,fontWeight:n,paddingBottom:i,width:"100%",textAlign:"left",fontFamily:`var(--font-${e})`})),wa=({name:t,label:e,required:n=!1,theme:i=j})=>ft(am,{htmlFor:t,theme:i,children:[e,n?V("span",{children:" *"}):""]}),lm=k.div(({styles:t})=>it({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),cm=k.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),um=k.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),dm=k.textarea(({styles:t,theme:{form:{textarea:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>it({color:n,width:"100%",border:i,padding:r[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[L[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t)),Ta=({name:t,value:e,rows:n=2,disabled:i,styles:r={},placeholder:o="",onChange:s=void 0,theme:a=j})=>V(dm,{id:t,name:t,rows:n,theme:a,styles:r,onChange:s,disabled:i,defaultValue:e,placeholder:o});var qi=(t=>(t.Textarea="textarea",t))(qi||{});const fm=({name:t,label:e="",value:n="",styles:i={},rows:r=void 0,required:o=!1,disabled:s=!1,placeholder:a="",errors:l=void 0,theme:c=j,onChange:u=void 0,type:d=Cn.Text})=>ft(lm,{styles:i,children:[e&&V(wa,{theme:c,label:e,name:t,required:o}),d===qi.Textarea?V(Ta,{value:n,rows:r,name:t,theme:c,onChange:u,disabled:s,placeholder:a}):V(Sa,{value:n,type:d,name:t,theme:c,onChange:u,disabled:s,placeholder:a}),l&&V(cm,{children:l instanceof Array?l.map((f,h)=>V(um,{theme:c,children:f},h)):l})]}),hm=k.div(({styles:t,theme:{consentCookie:{overlayBlur:e,overlayOpacity:n,overlayBackgroundColor:i}}})=>it({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:n,backgroundColor:i,backdropFilter:`blur(${e}px)`}},t)),pm=k.div(({theme:{consentCookie:{width:t,borders:e,borderRadius:n,backgroundColor:i,paddingTop:r,paddingLeft:o,paddingRight:s,paddingBottom:a}}})=>({right:15,bottom:15,zIndex:20,border:e,display:"flex",width:t[0],position:"fixed",flexDirection:"column",borderRadius:n,paddingTop:r[0],paddingLeft:o[0],paddingRight:s[0],paddingBottom:a[0],backgroundColor:i,[L[0]]:{width:t[1],paddingTop:r[1],paddingLeft:o[1],paddingRight:s[1],paddingBottom:a[1]},[L[1]]:{width:t[2],paddingTop:r[2],paddingLeft:o[2],paddingRight:s[2],paddingBottom:a[2]},[L[2]]:{width:t[3],paddingTop:r[3],paddingLeft:o[3],paddingRight:s[3],paddingBottom:a[3]}})),mm=k.div(({theme:{consentCookie:{actionsGap:t,actionsPaddingTop:e}}})=>({gap:t,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:e[0],justifyContent:"flex-end",[L[0]]:{paddingTop:e[1]},[L[1]]:{paddingTop:e[2]},[L[2]]:{paddingTop:e[3]}}));function gm(t){const e=t+"=",i=decodeURIComponent(document.cookie).split(";");for(let r=0;r<i.length;r++){let o=i[r];for(;o.charAt(0)==" ";)o=o.substring(1);if(o.indexOf(e)==0)return o.substring(e.length,o.length)}return""}function ym(t,e,n){const i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);const r="expires="+i.toUTCString();document.cookie=t+"="+e+";"+r+";path=/"}const vm=({styles:t={},children:e=void 0,theme:n=j,cookieName:i="consent",translations:r=void 0,cookieExpirationDays:o=365})=>{const[s,a]=P.useState(!1),l=c=>{a(!1),ym(i,`${c}`,o)};return P.useEffect(()=>{const c=gm(i),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})},[s]),s?V(hm,{theme:n,styles:t,children:ft(pm,{theme:n,children:[e,ft(mm,{theme:n,children:[V(Hn,{onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),V(Hn,{onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]})}):null};exports.Actions=ql;exports.ActionsAlign=Qt;exports.ActionsStyles=Kl;exports.Button=Hn;exports.ButtonSize=Se;exports.ButtonStyle=on;exports.ButtonStyles=Nl;exports.ButtonType=hi;exports.ButtonVariant=sn;exports.Carousel=xc;exports.Columns=eu;exports.ColumnsAlign=ae;exports.ConsentCookie=vm;exports.Footer=Qc;exports.FooterStyles=Jc;exports.Form=im;exports.FormRow=sm;exports.FormRowAlign=$e;exports.Header=Zc;exports.Icon=Pt;exports.InputType=Cn;exports.KeyNumber=kc;exports.LanguageSwitcher=jc;exports.Logo=uc;exports.Main=Wc;exports.MainStyles=zc;exports.Modal=ec;exports.Nav=qp;exports.NavLegal=em;exports.NavLegalStyles=tm;exports.NavSocial=Jp;exports.NavSocialStyles=Xp;exports.Section=Gp;exports.SectionAlign=Ae;exports.SectionStyles=zp;exports.TextField=fm;exports.TextFieldInput=Sa;exports.TextFieldLabel=wa;exports.TextFieldTextarea=Ta;exports.TextareaType=qi;exports.Video=Us;exports.VideoFullWidth=Ic;exports.VideoFullWidthStyles=Fc;