@latte-macchiat-io/latte-vanilla-components 0.0.125 → 0.0.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,16 +1,16 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ni=require("react/jsx-runtime"),k=require("react"),V=require("@emotion/styled");function or(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ye=or(ni),te=or(k);function ri(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ii(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var si=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},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 t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ii(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ri(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Y="-ms-",gt="-moz-",I="-webkit-",ar="comm",rn="rule",sn="decl",oi="@import",cr="@keyframes",ai="@layer",ci=Math.abs,Et=String.fromCharCode,li=Object.assign;function ui(e,t){return H(e,0)^45?(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}function lr(e){return e.trim()}function fi(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,n){return e.replace(t,n)}function jt(e,t){return e.indexOf(t)}function H(e,t){return e.charCodeAt(t)|0}function Ze(e,t,n){return e.slice(t,n)}function he(e){return e.length}function on(e){return e.length}function ot(e,t){return t.push(e),e}function di(e,t){return e.map(t).join("")}var At=1,Le=1,ur=0,ne=0,K=0,je="";function Rt(e,t,n,r,i,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:At,column:Le,length:o,return:""}}function We(e,t){return li(Rt("",null,null,"",null,null,0),e,{length:-e.length},t)}function hi(){return K}function pi(){return K=ne>0?H(je,--ne):0,Le--,K===10&&(Le=1,At--),K}function se(){return K=ne<ur?H(je,ne++):0,Le++,K===10&&(Le=1,At++),K}function ge(){return H(je,ne)}function ft(){return ne}function nt(e,t){return Ze(je,e,t)}function Xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fr(e){return At=Le=1,ur=he(je=e),ne=0,[]}function dr(e){return je="",e}function dt(e){return lr(nt(ne-1,zt(e===91?e+2:e===40?e+1:e)))}function mi(e){for(;(K=ge())&&K<33;)se();return Xe(e)>2||Xe(K)>3?"":" "}function gi(e,t){for(;--t&&se()&&!(K<48||K>102||K>57&&K<65||K>70&&K<97););return nt(e,ft()+(t<6&&ge()==32&&se()==32))}function zt(e){for(;se();)switch(K){case e:return ne;case 34:case 39:e!==34&&e!==39&&zt(K);break;case 40:e===41&&zt(e);break;case 92:se();break}return ne}function yi(e,t){for(;se()&&e+K!==57;)if(e+K===84&&ge()===47)break;return"/*"+nt(t,ne-1)+"*"+Et(e===47?e:se())}function vi(e){for(;!Xe(ge());)se();return nt(e,ne)}function bi(e){return dr(ht("",null,null,null,[""],e=fr(e),0,[0],e))}function ht(e,t,n,r,i,s,o,a,c){for(var l=0,u=0,h=o,v=0,x=0,g=0,y=1,T=1,b=1,E=0,A="",M=i,f=s,P=r,O=A;T;)switch(g=E,E=se()){case 40:if(g!=108&&H(O,h-1)==58){jt(O+=_(dt(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=dt(E);break;case 9:case 10:case 13:case 32:O+=mi(g);break;case 92:O+=gi(ft()-1,7);continue;case 47:switch(ge()){case 42:case 47:ot(xi(yi(se(),ft()),t,n),c);break;default:O+="/"}break;case 123*y:a[l++]=he(O)*b;case 125*y:case 59:case 0:switch(E){case 0:case 125:T=0;case 59+u:b==-1&&(O=_(O,/\f/g,"")),x>0&&he(O)-h&&ot(x>32?En(O+";",r,n,h-1):En(_(O," ","")+";",r,n,h-2),c);break;case 59:O+=";";default:if(ot(P=Tn(O,t,n,l,u,i,a,A,M=[],f=[],h),s),E===123)if(u===0)ht(O,t,P,P,M,s,h,a,f);else switch(v===99&&H(O,3)===110?100:v){case 100:case 108:case 109:case 115:ht(e,P,P,r&&ot(Tn(e,P,P,0,0,i,a,A,i,M=[],h),f),i,f,h,a,r?M:f);break;default:ht(O,P,P,P,[""],f,0,a,f)}}l=u=x=0,y=b=1,A=O="",h=o;break;case 58:h=1+he(O),x=g;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&pi()==125)continue}switch(O+=Et(E),E*y){case 38:b=u>0?1:(O+="\f",-1);break;case 44:a[l++]=(he(O)-1)*b,b=1;break;case 64:ge()===45&&(O+=dt(se())),v=ge(),u=h=he(A=O+=vi(ft())),E++;break;case 45:g===45&&he(O)==2&&(y=0)}}return s}function Tn(e,t,n,r,i,s,o,a,c,l,u){for(var h=i-1,v=i===0?s:[""],x=on(v),g=0,y=0,T=0;g<r;++g)for(var b=0,E=Ze(e,h+1,h=ci(y=o[g])),A=e;b<x;++b)(A=lr(y>0?v[b]+" "+E:_(E,/&\f/g,v[b])))&&(c[T++]=A);return Rt(e,t,n,i===0?rn:a,c,l,u)}function xi(e,t,n){return Rt(e,t,n,ar,Et(hi()),Ze(e,2,-2),0)}function En(e,t,n,r){return Rt(e,t,n,sn,Ze(e,0,r),Ze(e,r+1,-1),r)}function Ie(e,t){for(var n="",r=on(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function wi(e,t,n,r){switch(e.type){case ai:if(e.children.length)break;case oi:case sn:return e.return=e.return||e.value;case ar:return"";case cr:return e.return=e.value+"{"+Ie(e.children,r)+"}";case rn:e.value=e.props.join(",")}return he(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function Si(e){var t=on(e);return function(n,r,i,s){for(var o="",a=0;a<t;a++)o+=e[a](n,r,i,s)||"";return o}}function Ci(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ti(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ei=function(t,n,r){for(var i=0,s=0;i=s,s=ge(),i===38&&s===12&&(n[r]=1),!Xe(s);)se();return nt(t,ne)},Ai=function(t,n){var r=-1,i=44;do switch(Xe(i)){case 0:i===38&&ge()===12&&(n[r]=1),t[r]+=Ei(ne-1,n,r);break;case 2:t[r]+=dt(i);break;case 4:if(i===44){t[++r]=ge()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Et(i)}while(i=se());return t},Ri=function(t,n){return dr(Ai(fr(t),n))},An=new WeakMap,Pi=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!An.get(r))&&!i){An.set(t,!0);for(var s=[],o=Ri(n,s),a=r.props,c=0,l=0;c<o.length;c++)for(var u=0;u<a.length;u++,l++)t.props[l]=s[c]?o[c].replace(/&\f/g,a[u]):a[u]+" "+o[c]}}},Mi=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function hr(e,t){switch(ui(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+gt+e+Y+e+e;case 6828:case 4268:return I+e+Y+e+e;case 6165:return I+e+Y+"flex-"+e+e;case 5187:return I+e+_(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+Y+"flex-$1$2")+e;case 5443:return I+e+Y+"flex-item-"+_(e,/flex-|-self/,"")+e;case 4675:return I+e+Y+"flex-line-pack"+_(e,/align-content|flex-|-self/,"")+e;case 5548:return I+e+Y+_(e,"shrink","negative")+e;case 5292:return I+e+Y+_(e,"basis","preferred-size")+e;case 6060:return I+"box-"+_(e,"-grow","")+I+e+Y+_(e,"grow","positive")+e;case 4554:return I+_(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+Y+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(he(e)-1-t>6)switch(H(e,t+1)){case 109:if(H(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+gt+(H(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~jt(e,"stretch")?hr(_(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(H(e,t+1)!==115)break;case 6444:switch(H(e,he(e)-3-(~jt(e,"!important")&&10))){case 107:return _(e,":",":"+I)+e;case 101:return _(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(H(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+Y+"$2box$3")+e}break;case 5936:switch(H(e,t+11)){case 114:return I+e+Y+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+Y+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+Y+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+Y+e+e}return e}var Oi=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case sn:t.return=hr(t.value,t.length);break;case cr:return Ie([We(t,{value:_(t.value,"@","@"+I)})],i);case rn:if(t.length)return di(t.props,function(s){switch(fi(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ie([We(t,{props:[_(s,/:(read-\w+)/,":"+gt+"$1")]})],i);case"::placeholder":return Ie([We(t,{props:[_(s,/:(plac\w+)/,":"+I+"input-$1")]}),We(t,{props:[_(s,/:(plac\w+)/,":"+gt+"$1")]}),We(t,{props:[_(s,/:(plac\w+)/,Y+"input-$1")]})],i)}return""})}},Vi=[Oi],$i=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var T=y.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Vi,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var T=y.getAttribute("data-emotion").split(" "),b=1;b<T.length;b++)s[T[b]]=!0;a.push(y)});var c,l=[Pi,Mi];{var u,h=[wi,Ci(function(y){u.insert(y)})],v=Si(l.concat(i,h)),x=function(T){return Ie(bi(T),v)};c=function(T,b,E,A){u=E,x(T?T+"{"+b.styles+"}":b.styles),A&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new si({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(a),g};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ki(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var at={exports:{}},D={};/** @license React v16.13.1
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 Sa(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 wa(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 Ta=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(wa(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Sa(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",Ca="@import",Vs="@keyframes",Pa="@layer",Aa=Math.abs,dn=String.fromCharCode,Va=Object.assign;function Ea(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 Ra(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function jn(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 Ma(t,e){return t.map(e).join("")}var hn=1,se=1,Rs=0,ft=0,Y=0,ce="";function pn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:hn,column:se,length:s,return:""}}function he(t,e){return Va(pn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Da(){return Y}function La(){return Y=ft>0?Q(ce,--ft):0,se--,Y===10&&(se=1,hn--),Y}function pt(){return Y=ft<Rs?Q(ce,ft++):0,se++,Y===10&&(se=1,hn++),Y}function At(){return Q(ce,ft)}function Ge(){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 hn=se=1,Rs=Tt(ce=t),ft=0,[]}function Ds(t){return ce="",t}function qe(t){return Es(Ie(ft-1,_n(t===91?t+2:t===40?t+1:t)))}function Oa(t){for(;(Y=At())&&Y<33;)pt();return Ae(t)>2||Ae(Y)>3?"":" "}function ka(t,e){for(;--e&&pt()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Ie(t,Ge()+(e<6&&At()==32&&pt()==32))}function _n(t){for(;pt();)switch(Y){case t:return ft;case 34:case 39:t!==34&&t!==39&&_n(Y);break;case 40:t===41&&_n(t);break;case 92:pt();break}return ft}function Fa(t,e){for(;pt()&&t+Y!==57;)if(t+Y===84&&At()===47)break;return"/*"+Ie(e,ft-1)+"*"+dn(t===47?t:pt())}function Ia(t){for(;!Ae(At());)pt();return Ie(t,ft)}function Ba(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="",V=r,m=o,R=i,D=T;S;)switch(p=w,w=pt()){case 40:if(p!=108&&Q(D,f-1)==58){jn(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+=Oa(p);break;case 92:D+=ka(Ge()-1,7);continue;case 47:switch(At()){case 42:case 47:Ne($a(Fa(pt(),Ge()),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=Gi(D,e,n,c,u,r,a,T,V=[],m=[],f),o),w===123)if(u===0)Ye(D,e,R,R,V,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(Gi(t,R,R,0,0,r,a,T,r,V=[],f),m),r,m,f,a,i?V: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&&La()==125)continue}switch(D+=dn(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+=Ia(Ge())),w++;break;case 45:p===45&&Tt(D)==2&&(g=0)}}return o}function Gi(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=Aa(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 pn(t,e,n,r===0?li:a,l,c,u)}function $a(t,e,n){return pn(t,e,n,As,dn(Da()),Pe(t,2,-2),0)}function qi(t,e,n,i){return pn(t,e,n,ci,Pe(t,0,i),Pe(t,i+1,-1),i)}function ne(t,e){for(var n="",i=ui(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function ja(t,e,n,i){switch(t.type){case Pa:if(t.children.length)break;case Ca:case ci:return t.return=t.return||t.value;case As:return"";case Vs:return t.return=t.value+"{"+ne(t.children,i)+"}";case li:t.value=t.props.join(",")}return Tt(n=ne(t.children,i))?t.return=t.value+"{"+n+"}":""}function _a(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 Na(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ua(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var za=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)},Wa=function(e,n){var i=-1,r=44;do switch(Ae(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=za(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]+=dn(r)}while(r=pt());return e},Ha=function(e,n){return Ds(Wa(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=Ha(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]}}},Ga=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(Ea(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~jn(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-(~jn(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 qa=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 ne([he(e,{value:B(e.value,"@","@"+I)})],r);case li:if(e.length)return Ma(e.props,function(o){switch(Ra(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ne([he(e,{props:[B(o,/:(read-\w+)/,":"+tn+"$1")]})],r);case"::placeholder":return ne([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""})}},Ya=[qa],Xa=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||Ya,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,Ga];{var u,f=[ja,Na(function(g){u.insert(g)})],d=_a(c.concat(r,f)),h=function(S){return ne(Ba(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 Ta({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 Za(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ja(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
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 Rn;function Ii(){if(Rn)return D;Rn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function A(f){if(typeof f=="object"&&f!==null){var P=f.$$typeof;switch(P){case t:switch(f=f.type,f){case c:case l:case r:case s:case i:case h:return f;default:switch(f=f&&f.$$typeof,f){case a:case u:case g:case x:case o:return f;default:return P}}case n:return P}}}function M(f){return A(f)===l}return D.AsyncMode=c,D.ConcurrentMode=l,D.ContextConsumer=a,D.ContextProvider=o,D.Element=t,D.ForwardRef=u,D.Fragment=r,D.Lazy=g,D.Memo=x,D.Portal=n,D.Profiler=s,D.StrictMode=i,D.Suspense=h,D.isAsyncMode=function(f){return M(f)||A(f)===c},D.isConcurrentMode=M,D.isContextConsumer=function(f){return A(f)===a},D.isContextProvider=function(f){return A(f)===o},D.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},D.isForwardRef=function(f){return A(f)===u},D.isFragment=function(f){return A(f)===r},D.isLazy=function(f){return A(f)===g},D.isMemo=function(f){return A(f)===x},D.isPortal=function(f){return A(f)===n},D.isProfiler=function(f){return A(f)===s},D.isStrictMode=function(f){return A(f)===i},D.isSuspense=function(f){return A(f)===h},D.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===l||f===s||f===i||f===h||f===v||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===x||f.$$typeof===o||f.$$typeof===a||f.$$typeof===u||f.$$typeof===T||f.$$typeof===b||f.$$typeof===E||f.$$typeof===y)},D.typeOf=A,D}var N={};/** @license React v16.13.1
8
+ */var Xi;function Qa(){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 V(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 V(m)||T(m)===l},$.isConcurrentMode=V,$.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
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 Pn;function _i(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function A(R){return typeof R=="string"||typeof R=="function"||R===r||R===l||R===s||R===i||R===h||R===v||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===x||R.$$typeof===o||R.$$typeof===a||R.$$typeof===u||R.$$typeof===T||R.$$typeof===b||R.$$typeof===E||R.$$typeof===y)}function M(R){if(typeof R=="object"&&R!==null){var ee=R.$$typeof;switch(ee){case t:var de=R.type;switch(de){case c:case l:case r:case s:case i:case h:return de;default:var Pe=de&&de.$$typeof;switch(Pe){case a:case u:case g:case x:case o:return Pe;default:return ee}}case n:return ee}}}var f=c,P=l,O=a,d=o,m=t,p=u,w=r,F=g,W=x,Z=n,U=s,B=i,X=h,q=!1;function fe(R){return q||(q=!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.")),ae(R)||M(R)===c}function ae(R){return M(R)===l}function ve(R){return M(R)===a}function be(R){return M(R)===o}function ce(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function oe(R){return M(R)===u}function xe(R){return M(R)===r}function ie(R){return M(R)===g}function we(R){return M(R)===x}function le(R){return M(R)===n}function ue(R){return M(R)===s}function Ae(R){return M(R)===i}function Re(R){return M(R)===h}N.AsyncMode=f,N.ConcurrentMode=P,N.ContextConsumer=O,N.ContextProvider=d,N.Element=m,N.ForwardRef=p,N.Fragment=w,N.Lazy=F,N.Memo=W,N.Portal=Z,N.Profiler=U,N.StrictMode=B,N.Suspense=X,N.isAsyncMode=fe,N.isConcurrentMode=ae,N.isContextConsumer=ve,N.isContextProvider=be,N.isElement=ce,N.isForwardRef=oe,N.isFragment=xe,N.isLazy=ie,N.isMemo=we,N.isPortal=le,N.isProfiler=ue,N.isStrictMode=Ae,N.isSuspense=Re,N.isValidElementType=A,N.typeOf=M}()),N}var Mn;function Di(){return Mn||(Mn=1,process.env.NODE_ENV==="production"?at.exports=Ii():at.exports=_i()),at.exports}var Ft,On;function Ni(){if(On)return Ft;On=1;var e=Di(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function o(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function x(g,y,T){if(typeof y!="string"){if(v){var b=h(y);b&&b!==v&&x(g,b,T)}var E=c(y);l&&(E=E.concat(l(y)));for(var A=o(g),M=o(y),f=0;f<E.length;++f){var P=E[f];if(!n[P]&&!(T&&T[P])&&!(M&&M[P])&&!(A&&A[P])){var O=u(y,P);try{a(g,P,O)}catch{}}}}return g}return Ft=x,Ft}Ni();var Li=!0;function Bi(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var pr=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Li===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ji=function(t,n,r){pr(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function zi(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Wi={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},Ki=/[A-Z]|^ms/g,Ui=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mr=function(t){return t.charCodeAt(1)===45},Vn=function(t){return t!=null&&typeof t!="boolean"},kt=Ti(function(e){return mr(e)?e:e.replace(Ki,"-$&").toLowerCase()}),$n=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ui,function(r,i,s){return pe={name:i,styles:s,next:pe},i})}return Wi[t]!==1&&!mr(t)&&typeof n=="number"&&n!==0?n+"px":n};function Je(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pe={name:i.name,styles:i.styles,next:pe},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)pe={name:o.name,styles:o.styles,next:pe},o=o.next;var a=s.styles+";";return a}return Hi(e,t,n)}case"function":{if(e!==void 0){var c=pe,l=n(e);return pe=c,Je(e,t,l)}break}}var u=n;return u}function Hi(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Je(e,t,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;Vn(a)&&(r+=kt(s)+":"+$n(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var c=0;c<o.length;c++)Vn(o[c])&&(r+=kt(s)+":"+$n(s,o[c])+";");else{var l=Je(e,t,o);switch(s){case"animation":case"animationName":{r+=kt(s)+":"+l+";";break}default:r+=s+"{"+l+"}"}}}return r}var Fn=/label:\s*([^\s;{]+)\s*(;|$)/g,pe;function qi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";pe=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Je(n,t,s);else{var o=s;i+=o[0]}for(var a=1;a<e.length;a++)if(i+=Je(n,t,e[a]),r){var c=s;i+=c[a]}Fn.lastIndex=0;for(var l="",u;(u=Fn.exec(i))!==null;)l+="-"+u[1];var h=zi(i)+l;return{name:h,styles:i,next:pe}}var Gi=function(t){return t()},Yi=te.useInsertionEffect?te.useInsertionEffect:!1,Zi=Yi||Gi,gr=te.createContext(typeof HTMLElement<"u"?$i({key:"css"}):null);gr.Provider;var Xi=function(t){return k.forwardRef(function(n,r){var i=k.useContext(gr);return t(n,i,r)})},Ji=te.createContext({}),Pt={}.hasOwnProperty,Wt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yr=function(t,n){var r={};for(var i in n)Pt.call(n,i)&&(r[i]=n[i]);return r[Wt]=t,r},Qi=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return pr(n,r,i),Zi(function(){return ji(n,r,i)}),null},es=Xi(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Wt],s=[r],o="";typeof e.className=="string"?o=Bi(t.registered,s,e.className):e.className!=null&&(o=e.className+" ");var a=qi(s,void 0,te.useContext(Ji));o+=t.key+"-"+a.name;var c={};for(var l in e)Pt.call(e,l)&&l!=="css"&&l!==Wt&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),te.createElement(te.Fragment,null,te.createElement(Qi,{cache:t,serialized:a,isStringTag:typeof i=="string"}),te.createElement(i,c))}),vr=es,ts=Ye.Fragment,C=function(t,n,r){return Pt.call(n,"css")?Ye.jsx(vr,yr(t,n),r):Ye.jsx(t,n,r)},re=function(t,n,r){return Pt.call(n,"css")?Ye.jsxs(vr,yr(t,n),r):Ye.jsxs(t,n,r)};const Kt=[640,768,1024,1680],S=Kt.map(e=>`(min-width: ${e}px)`),z=(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(t[n]instanceof Object&&e[n]instanceof Object?e[n]=z(e[n],t[n]):e[n]=t[n]);return e},ns=V.button(({theme:{button:{minWidth:e,letterSpacing:t,fontWeight:n,color:r,backgroundColor:i,border:s,padding:o,borderRadius:a,transition:c}},styles:l,isSmall:u,isLarge:h,isDisabled:v,isOutlined:x,isSecondary:g,staticColor:y})=>z({minWidth:e,fontWeight:n,transition:c,borderRadius:a,letterSpacing:t,position:"relative",display:"inline-block",cursor:v?"default":"pointer",pointerEvents:v?"none":"auto",padding:u?`${o.small[0]/2}px ${o.small[1]/2}px`:h?`${o.large[0]/2}px ${o.large[1]/2}px`:`${o.medium[0]/2}px ${o.medium[1]/2}px`,border:y?`${s.width}px ${s.style} ${y}`:g?`${s.width}px ${s.style} ${s.color.secondary}`:v?`${s.width}px ${s.style} ${s.color.disabled}`:`${s.width}px ${s.style} ${s.color.primary}`,color:x&&y?y:x&&g?i.secondary:x?i.primary:g?r.secondary:v?r.disabled:r.primary,backgroundColor:x?"transparent":y||(g?i.secondary:v?i.disabled:i.primary),[S[1]]:{padding:u?`${o.small[0]}px ${o.small[1]}px`:h?`${o.large[0]}px ${o.large[1]}px`:`${o.medium[0]}px ${o.medium[1]}px`},"&:hover":{opacity:.5}},l));var yt=(e=>(e[e.Primary=0]="Primary",e[e.Secondary=1]="Secondary",e))(yt||{}),vt=(e=>(e[e.Fill=0]="Fill",e[e.Outline=1]="Outline",e))(vt||{}),He=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Large=2]="Large",e))(He||{}),an=(e=>(e.Reset="reset",e.Button="button",e.Submit="submit",e))(an||{});const kn='"Goudy Bookletter 1911", sans-serif',It='"Gill Sans", sans-serif',br="#FF7377",_t="#C8AE96",G="#FCEFE6",rs="#2E2E2E",In="#CCCCCC",is=" #888888",J="#000000",Dt=br,L={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:kn,defaultFont:It},colors:{defaultText:J,defaultLightText:G,defaultTitle:"",defaultLink:J,defaultIcon:J},backgroundColors:{modal:G,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:G},borders:{hr:`1px solid ${_t}`,cookieConsent:`2px solid ${J}`},borderRadius:{modal:30,input:30,cookieConsent:30},widthSizes:{modal:600,cookieConsent:500},transitions:{global:"all 0.3s ease-in-out"},actions:{gap:30,paddingTop:60},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:G,secondary:rs,disabled:is},backgroundColor:{primary:Dt,secondary:_t,disabled:In},border:{width:2,style:"solid",color:{primary:Dt,secondary:_t,disabled:In}},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:kn,fontWeight:500,color:Dt,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:It,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${J}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:It,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${J}`},error:{color:br}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:G,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:G,toggleNavColor:J,toggleNavOpenColor:J,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:G},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:G,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:G,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:J,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:J,width:[150,150,200,200],backgroundColor:G,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:G}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:J,backgroundColor:G},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:J,backgroundColor:G},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:J,backgroundColor:G},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:J,backgroundColor:G}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:G,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:J,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]}},Ut=({children:e,styles:t={},staticColor:n="",isPending:r=!1,isDisabled:i=!1,type:s=an.Button,style:o=vt.Fill,size:a=He.Medium,onClick:c=void 0,theme:l=L,variant:u=yt.Primary})=>C(ns,{type:s,theme:l,onClick:c,staticColor:n,isLarge:a===He.Large,isSmall:a===He.Small,styles:t,isDisabled:i||r,isOutlined:o===vt.Outline,isSecondary:u===yt.Secondary,children:e});var _e=(e=>(e[e.Center=0]="Center",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(_e||{});const ss=V.div(({align:e,styles:t,theme:{actions:{gap:n,paddingTop:r}}})=>z({gap:n/2,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",paddingTop:r/2,alignItems:e===_e.Center?"center":"flex-start",justifyContent:e===_e.Right?"flex-end":e===_e.Left?"flex-start":"center",[S[2]]:{gap:n,paddingTop:r}},t)),os=({children:e,styles:t={},theme:n=L,align:r=_e.Left})=>C(ss,{theme:n,align:r,styles:t,children:e}),as={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"},cs=V.svg(({styles:e})=>z({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},e)),ls=V.path(({fill:e})=>({fill:e,transition:"color .5s ease"})),me=({icon:e="",size:t=24,styles:n={},iconPath:r="",color:i=void 0,theme:s=L,viewBox:o="0 0 24 24"})=>C(cs,{viewBox:o,width:`${t}px`,height:`${t}px`,styles:n,children:C(ls,{d:r||as[e],fill:i||s.colors.defaultIcon})});var bt=(e=>(e[e.Center=0]="Center",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(bt||{});const us=V.div(({theme:{modal:{overlayBlur:e,overlayOpacity:t,overlayBackgroundColor:n}},styles:r})=>z({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:t,backgroundColor:n,backdropFilter:`blur(${e}px)`}},r)),fs=V.div(({theme:{global:{paddingLeft:e,paddingRight:t},modal:{borders:n,width:r,borderRadius:i,backgroundColor:s,paddingTop:o,paddingLeft:a,paddingRight:c,paddingBottom:l}},align:u})=>({top:"50%",zIndex:20,left:"50%",borderRadius:i,border:n,display:"flex",backgroundColor:s,width:r[0],position:"fixed",overflowY:"auto",flexDirection:"column",paddingTop:o[0],paddingLeft:a[0],paddingRight:c[0],paddingBottom:l[0],transform:"translate(-50%, -50%)",maxWidth:`calc(100% - ${e[0]+t[0]}px)`,maxHeight:`calc(100% - ${e[0]+t[0]}px)`,textAlign:u===bt.Left?"left":u===bt.Right?"right":"center",[S[0]]:{width:r[1],paddingTop:o[1],paddingLeft:a[1],paddingRight:c[1],paddingBottom:l[1],maxWidth:`calc(100% - ${e[1]+t[1]}px)`,maxHeight:`calc(100% - ${e[1]+t[1]}px)`},[S[1]]:{width:r[2],paddingTop:o[2],paddingLeft:a[2],paddingRight:c[2],paddingBottom:l[2],maxWidth:`calc(100% - ${e[2]+t[2]}px)`,maxHeight:`calc(100% - ${e[2]+t[2]}px)`},[S[2]]:{width:r[3],paddingTop:o[3],paddingLeft:a[3],paddingRight:c[3],paddingBottom:l[3],maxWidth:`calc(100% - ${e[3]+t[3]}px)`,maxHeight:`calc(100% - ${e[3]+t[3]}px)`}})),ds=V.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)"}}),hs=({children:e,styles:t={},align:n=bt.Left,theme:r=L,onModalHide:i=void 0})=>C(us,{theme:r,styles:t,children:re(fs,{theme:r,align:n,children:[i&&C(ds,{onClick:i,children:C(me,{theme:r,icon:"close"})}),e]})}),ps=V.div(({styles:e,isVideoFullWidth:t})=>z({video:{top:"50%",left:"50%",width:"auto",minWidth:"100%",minHeight:"100%",position:"absolute",transform:"translate(-50%, -50%)",maxHeight:t?"100vw":"100%"}},e)),ms=V.div(({isPlaying:e})=>({top:0,left:0,width:"100%",height:"100%",position:"absolute",opacity:e?0:1,pointerEvents:e?"none":"auto",img:{minWidth:"100%",minHeight:"100%",objectFit:"cover"}})),gs=V.button(({theme:{header:{height:e},video:{closeButton:{border:t,width:n,height:r,borderRadius:i,color:s,backgroundColor:o}}}})=>({border:t,right:15,bottom:0,borderRadius:i,backgroundColor:o,width:n[0],height:r[0],cursor:"pointer",position:"absolute",top:e[0],[S[0]]:{width:n[1],height:r[1]},[S[1]]:{right:30,width:n[2],height:r[2],top:e[2]+15},[S[2]]:{width:n[3],height:r[3]},svg:{path:{fill:s}}})),ys=V.button(({isPlaying:e,theme:{video:{playButton:{border:t,width:n,height:r,borderRadius:i,color:s,backgroundColor:o}}}})=>({border:t,top:"50%",left:"50%",borderRadius:i,width:n[0],height:r[0],cursor:"pointer",position:"absolute",opacity:e?0:1,backgroundColor:o,transition:"all 0.5s ease-in-out",transform:"translate(-50%, -50%)",pointerEvents:e?"none":"auto",[S[0]]:{width:n[1],height:r[1]},[S[1]]:{width:n[2],height:r[2]},[S[2]]:{width:n[3],height:r[3]},"&:hover":{svg:{transform:"scale(1.2)"}},svg:{transform:"scale(1)",transition:"all 0.5s ease-in-out",path:{fill:s}}})),vs=V.button(({theme:{video:{pauseButton:{border:e,width:t,height:n,borderRadius:r,color:i,backgroundColor:s}}}})=>({border:e,right:50,bottom:-10,borderRadius:r,width:t[0],backgroundColor:s,height:n[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[S[0]]:{width:t[1],height:n[1]},[S[1]]:{right:75,bottom:15,width:t[2],height:n[2]},[S[2]]:{width:t[3],height:n[3]},svg:{path:{fill:i}}})),bs=V.button(({theme:{video:{soundButton:{width:e,height:t,border:n,color:r,borderRadius:i,backgroundColor:s}}}})=>({border:n,right:0,bottom:-10,borderRadius:i,backgroundColor:s,width:e[0],height:t[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[S[0]]:{width:e[1],height:t[1]},[S[1]]:{right:15,bottom:15,width:e[2],height:t[2]},[S[0]]:{width:e[3],height:t[3]},svg:{path:{fill:r}}})),xr=({video:e,isAutoPlay:t,styles:n={},poster:r="",startMuted:i=!1,onPlay:s=void 0,onClose:o=void 0,onEnded:a=void 0,showControls:c=!1,theme:l=L,hidePlayButton:u=!1,isVideoFullWidth:h=!1,isPlayingFullScreen:v=!1})=>{const x=k.useRef(null),[g,y]=k.useState(!1),[T,b]=k.useState(t||i),E=()=>{var d;s&&s(),(d=x.current)==null||d.play(),y(!0)},A=()=>{var d;o&&o(),(d=x.current)==null||d.pause(),y(!1)},M=()=>{var d;(d=x.current)==null||d.pause(),y(!1)},f=()=>{const d=!T;b(d),x.current&&(x.current.muted=d)},P=()=>{a&&a(),A()},O=d=>{d.key==="Escape"&&A()};return k.useEffect(()=>(window.addEventListener("keydown",O),()=>{window.removeEventListener("keydown",O)}),[x.current]),re(ps,{isVideoFullWidth:h,styles:n,children:[C("video",{ref:x,playsInline:!0,onEnded:P,children:C("source",{src:e,type:"video/mp4"})}),r&&C(ms,{isPlaying:g,children:C("img",{src:r,alt:"",sizes:"2560"})}),(!u||!t)&&C(ys,{theme:l,isPlaying:g,onClick:E,"aria-label":"Play",children:C(me,{icon:"play",size:50,theme:l})}),v&&C(gs,{theme:l,isPlaying:g,onClick:A,"aria-label":"Pause",children:C(me,{icon:"close",size:28,theme:l})}),g&&c&&C(vs,{theme:l,isPlaying:g,"aria-label":"Pause",onClick:g?M:E,children:C(me,{icon:"pause",size:28,theme:l})}),c&&C(bs,{theme:l,isMuted:i,onClick:f,"aria-label":"Sound",children:C(me,{icon:T?"volumeUp":"volumeMute",size:28,theme:l})})]})},xs=V.div(({styles:e})=>z({img:{width:"100%",height:"auto",maxWidth:"100%"}},e)),ws=({children:e,styles:t={},theme:n=L})=>C(xs,{theme:n,styles:t,children:e}),Ss=V.div(({styles:e,isFullWidth:t,theme:{global:{paddingLeft:n,paddingRight:r}}})=>z({overflow:"hidden",position:"relative",width:t?"100vw":"100%",marginLeft:t?`min(calc((100vw - var(--max-width)) / -2), -${n[0]}px)`:0,marginRight:t?`min(calc((100vw - var(--max-width)) / -2), -${r[0]}px)`:0,[S[0]]:{marginLeft:t?`min(calc((100vw - var(--max-width)) / -2), -${n[1]}px)`:0,marginRight:t?`min(calc((100vw - var(--max-width)) / -2), -${r[1]}px)`:0},[S[1]]:{marginLeft:t?`min(calc((100vw - var(--max-width)) / -2), -${n[2]}px)`:0,marginRight:t?`min(calc((100vw - var(--max-width)) / -2), -${r[2]}px)`:0},[S[2]]:{marginLeft:t?`min(calc((100vw - var(--max-width)) / -2), -${n[3]}px)`:0,marginRight:t?`min(calc((100vw - var(--max-width)) / -2), -${r[3]}px)`:0}},e)),Cs=V.div({width:"100%",position:"relative"}),Ts=V.div(({left:e,width:t,gap:n})=>({gap:n,left:e,width:t,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),Es=V.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),As=V.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),_n=V.button(({isDisabled:e})=>({border:0,display:"block",position:"relative",pointerEvents:"auto",opacity:e?.5:1,transition:"all 0.5s ease-in-out",cursor:e?"default":"pointer","&:hover":{transform:e?"scale(1)":"scale(1.1)"}})),Rs=V.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[S[1]]:{marginTop:60}}),Ps=V.div(({isActive:e,theme:{carousel:{bullet:{borderRadius:t,width:n,height:r,backgroundColor:i}}}})=>({borderRadius:t,backgroundColor:i,width:n[0],height:r[0],cursor:"pointer",opacity:e?1:.5,transition:"all 0.5s ease-in-out",pointerEvents:e?"none":"auto",[S[0]]:{width:n[1],height:r[1]},[S[1]]:{width:n[2],height:r[2]},[S[2]]:{width:n[3],height:r[3]},"&:hover":{transform:"scale(1.2)"}}));function Ms(){const[e,t]=k.useState({width:void 0,height:void 0});return k.useEffect(()=>{function n(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e}const Os=({data:e,styles:t={},displayItem:n=1,theme:r=L,isFullWidth:i=!1,displayNavBullets:s=!1,displayNavButtons:o=!1})=>{const{width:a}=Ms(),[c,l]=k.useState(0),[u,h]=k.useState(r.carousel.gap[0]),v=a!==void 0&&a>Kt[1],x=a!==void 0&&a>Kt[2],[g,y]=k.useState(0),[T,b]=k.useState(0),[E,A]=k.useState(0),[M,f]=k.useState(n),P=k.useRef(null),O=k.useRef(null),d=k.useRef(null),m=(p,w)=>{w<p&&-(w-p)>100&&l(F=>F!==e.length-1*M?F+1:e.length-1),w>p&&w-p>100&&l(F=>F!==0?F-1:0)};return k.useEffect(()=>{if(x){n!==1&&h(r.carousel.gap[3]),f(n);return}if(v){if(h(r.carousel.gap[2]),n===1){h(0),f(1);return}if(n===2){f(2);return}if(n===3){f(2);return}f(n/2);return}h(0),f(1)},[v,x,n]),k.useEffect(()=>{const p=P.current;return p&&y(p.getBoundingClientRect().width),window.addEventListener("resize",()=>y(p.getBoundingClientRect().width)),()=>window.removeEventListener("resize",()=>y(p.getBoundingClientRect().width))},[]),k.useEffect(()=>{var Z,U;let p=0,w=0;const F=B=>{p=B.changedTouches[0].screenX},W=B=>{w=B.changedTouches[0].screenX,m(p,w)};(Z=P.current)==null||Z.addEventListener("touchstart",B=>F(B),{passive:!0}),(U=P.current)==null||U.addEventListener("touchend",B=>W(B),{passive:!0})},[]),k.useEffect(()=>{const w=(M-1)*u;d.current&&A((g-w)/M)},[M,g,u]),k.useEffect(()=>{const w=(e.length-1)*u;b(E*e.length+w)},[e,E,b,u]),re(Ss,{ref:P,theme:r,styles:t,isFullWidth:i,children:[C(Cs,{children:C(Ts,{ref:O,width:T,gap:M===1?0:u,left:-c*E-c*u,children:e.map((p,w)=>C(Es,{ref:d,children:p},`children-${w}`))})}),o&&re(As,{children:[C(_n,{"aria-label":"Previous",disabled:c===0,isDisabled:c===0,onClick:()=>l(p=>p-1),children:C(me,{theme:r,icon:"arrowBack",size:30})}),C(_n,{"aria-label":"Next",onClick:()=>l(p=>p+1),disabled:c===e.length-1*M,isDisabled:c===e.length-1*M,children:C(me,{theme:r,icon:"arrowForward",size:30})})]}),s&&C(Rs,{children:[...Array(e.length+1-M||1)].map((p,w)=>C(Ps,{theme:r,isActive:w===c,onClick:()=>l(w)},`carousselItem-${w}`))})]})};var Ke={},xt=function(){return xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xt.apply(this,arguments)},Vs=function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(s){i.startTime||(i.startTime=s);var o=s-i.startTime;i.remaining=i.duration-o,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(o,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(o,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(o/i.duration);var a=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=a?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(s){var o,a,c,l,u=s<0?"-":"";o=Math.abs(s).toFixed(i.options.decimalPlaces);var h=(o+="").split(".");if(a=h[0],c=h.length>1?i.options.decimal+h[1]:"",i.options.useGrouping){l="";for(var v=3,x=0,g=0,y=a.length;g<y;++g)i.options.useIndianSeparators&&g===4&&(v=2,x=1),g!==0&&x%v==0&&(l=i.options.separator+l),x++,l=a[y-g-1]+l;a=l}return i.options.numerals&&i.options.numerals.length&&(a=a.replace(/[0-9]/g,function(T){return i.options.numerals[+T]}),c=c.replace(/[0-9]/g,function(T){return i.options.numerals[+T]})),u+i.options.prefix+a+c+i.options.suffix},this.easeOutExpo=function(s,o,a,c){return a*(1-Math.pow(2,-10*s/c))*1024/1023+o},this.options=xt(xt({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,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,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(s){return s()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,s=r.top+r.height+window.pageYOffset;s<n&&s>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>s||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.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},e.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)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const $s=Object.freeze(Object.defineProperty({__proto__:null,CountUp:Vs},Symbol.toStringTag,{value:"Module"})),Fs=ki($s);var Dn;function ks(){if(Dn)return Ke;Dn=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e=k,t=Fs;function n(d,m){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var w,F,W,Z,U=[],B=!0,X=!1;try{if(W=(p=p.call(d)).next,m!==0)for(;!(B=(w=W.call(p)).done)&&(U.push(w.value),U.length!==m);B=!0);}catch(q){X=!0,F=q}finally{try{if(!B&&p.return!=null&&(Z=p.return(),Object(Z)!==Z))return}finally{if(X)throw F}}return U}}function r(d,m){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);m&&(w=w.filter(function(F){return Object.getOwnPropertyDescriptor(d,F).enumerable})),p.push.apply(p,w)}return p}function i(d){for(var m=1;m<arguments.length;m++){var p=arguments[m]!=null?arguments[m]:{};m%2?r(Object(p),!0).forEach(function(w){a(d,w,p[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):r(Object(p)).forEach(function(w){Object.defineProperty(d,w,Object.getOwnPropertyDescriptor(p,w))})}return d}function s(d,m){if(typeof d!="object"||!d)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var w=p.call(d,m||"default");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(d)}function o(d){var m=s(d,"string");return typeof m=="symbol"?m:String(m)}function a(d,m,p){return m=o(m),m in d?Object.defineProperty(d,m,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[m]=p,d}function c(){return c=Object.assign?Object.assign.bind():function(d){for(var m=1;m<arguments.length;m++){var p=arguments[m];for(var w in p)Object.prototype.hasOwnProperty.call(p,w)&&(d[w]=p[w])}return d},c.apply(this,arguments)}function l(d,m){if(d==null)return{};var p={},w=Object.keys(d),F,W;for(W=0;W<w.length;W++)F=w[W],!(m.indexOf(F)>=0)&&(p[F]=d[F]);return p}function u(d,m){if(d==null)return{};var p=l(d,m),w,F;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(d);for(F=0;F<W.length;F++)w=W[F],!(m.indexOf(w)>=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(p[w]=d[w])}return p}function h(d,m){return v(d)||n(d,m)||x(d,m)||y()}function v(d){if(Array.isArray(d))return d}function x(d,m){if(d){if(typeof d=="string")return g(d,m);var p=Object.prototype.toString.call(d).slice(8,-1);if(p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set")return Array.from(d);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return g(d,m)}}function g(d,m){(m==null||m>d.length)&&(m=d.length);for(var p=0,w=new Array(m);p<m;p++)w[p]=d[p];return w}function y(){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 T=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?e.useLayoutEffect:e.useEffect;function b(d){var m=e.useRef(d);return T(function(){m.current=d}),e.useCallback(function(){for(var p=arguments.length,w=new Array(p),F=0;F<p;F++)w[F]=arguments[F];return m.current.apply(void 0,w)},[])}var E=function(m,p){var w=p.decimal,F=p.decimals,W=p.duration,Z=p.easingFn,U=p.end,B=p.formattingFn,X=p.numerals,q=p.prefix,fe=p.separator,ae=p.start,ve=p.suffix,be=p.useEasing,ce=p.useGrouping,oe=p.useIndianSeparators,xe=p.enableScrollSpy,ie=p.scrollSpyDelay,we=p.scrollSpyOnce,le=p.plugin;return new t.CountUp(m,U,{startVal:ae,duration:W,decimal:w,decimalPlaces:F,easingFn:Z,formattingFn:B,numerals:X,separator:fe,prefix:q,suffix:ve,plugin:le,useEasing:be,useIndianSeparators:oe,useGrouping:ce,enableScrollSpy:xe,scrollSpyDelay:ie,scrollSpyOnce:we})},A=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],M={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},f=function(m){var p=Object.fromEntries(Object.entries(m).filter(function(ee){var de=h(ee,2),Pe=de[1];return Pe!==void 0})),w=e.useMemo(function(){return i(i({},M),p)},[m]),F=w.ref,W=w.startOnMount,Z=w.enableReinitialize,U=w.delay,B=w.onEnd,X=w.onStart,q=w.onPauseResume,fe=w.onReset,ae=w.onUpdate,ve=u(w,A),be=e.useRef(),ce=e.useRef(),oe=e.useRef(!1),xe=b(function(){return E(typeof F=="string"?F:F.current,ve)}),ie=b(function(ee){var de=be.current;if(de&&!ee)return de;var Pe=xe();return be.current=Pe,Pe}),we=b(function(){var ee=function(){return ie(!0).start(function(){B==null||B({pauseResume:le,reset:ue,start:Re,update:Ae})})};U&&U>0?ce.current=setTimeout(ee,U*1e3):ee(),X==null||X({pauseResume:le,reset:ue,update:Ae})}),le=b(function(){ie().pauseResume(),q==null||q({reset:ue,start:Re,update:Ae})}),ue=b(function(){ie().el&&(ce.current&&clearTimeout(ce.current),ie().reset(),fe==null||fe({pauseResume:le,start:Re,update:Ae}))}),Ae=b(function(ee){ie().update(ee),ae==null||ae({pauseResume:le,reset:ue,start:Re})}),Re=b(function(){ue(),we()}),R=b(function(ee){W&&(ee&&ue(),we())});return e.useEffect(function(){oe.current?Z&&R(!0):(oe.current=!0,R())},[Z,oe,R,U,m.start,m.suffix,m.prefix,m.duration,m.separator,m.decimals,m.decimal,m.formattingFn]),e.useEffect(function(){return function(){ue()}},[ue]),{start:Re,pauseResume:le,reset:ue,update:Ae,getCountUp:ie}},P=["className","redraw","containerProps","children","style"],O=function(m){var p=m.className,w=m.redraw,F=m.containerProps,W=m.children,Z=m.style,U=u(m,P),B=e.useRef(null),X=e.useRef(!1),q=f(i(i({},U),{},{ref:B,startOnMount:typeof W!="function"||m.delay===0,enableReinitialize:!1})),fe=q.start,ae=q.reset,ve=q.update,be=q.pauseResume,ce=q.getCountUp,oe=b(function(){fe()}),xe=b(function(le){m.preserveValue||ae(),ve(le)}),ie=b(function(){if(typeof m.children=="function"&&!(B.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}ce()});e.useEffect(function(){ie()},[ie]),e.useEffect(function(){X.current&&xe(m.end)},[m.end,xe]);var we=w&&m;return e.useEffect(function(){w&&X.current&&oe()},[oe,w,we]),e.useEffect(function(){!w&&X.current&&oe()},[oe,w,m.start,m.suffix,m.prefix,m.duration,m.separator,m.decimals,m.decimal,m.className,m.formattingFn]),e.useEffect(function(){X.current=!0},[]),typeof W=="function"?W({countUpRef:B,start:fe,reset:ae,update:ve,pauseResume:be,getCountUp:ce}):e.createElement("span",c({className:p,ref:B,style:Z},F),typeof m.start<"u"?ce().formattingFn(m.start):"")};return Ke.default=O,Ke.useCountUp=f,Ke}var Is=ks();const _s=Fi(Is);var Ht=new Map,ct=new WeakMap,Nn=0,Ds=void 0;function Ns(e){return e?(ct.has(e)||(Nn+=1,ct.set(e,Nn.toString())),ct.get(e)):"0"}function Ls(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Ns(e.root):e[t]}`).toString()}function Bs(e){const t=Ls(e);let n=Ht.get(t);if(!n){const r=new Map;let i;const s=new IntersectionObserver(o=>{o.forEach(a=>{var c;const l=a.isIntersecting&&i.some(u=>a.intersectionRatio>=u);e.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=l),(c=r.get(a.target))==null||c.forEach(u=>{u(l,a)})})},e);i=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:r},Ht.set(t,n)}return n}function js(e,t,n={},r=Ds){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:i,observer:s,elements:o}=Bs(n),a=o.get(e)||[];return o.has(e)||o.set(e,a),a.push(t),s.observe(e),function(){a.splice(a.indexOf(t),1),a.length===0&&(o.delete(e),s.unobserve(e)),o.size===0&&(s.disconnect(),Ht.delete(i))}}function zs({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:s,skip:o,initialInView:a,fallbackInView:c,onChange:l}={}){var u;const[h,v]=te.useState(null),x=te.useRef(l),[g,y]=te.useState({inView:!!a,entry:void 0});x.current=l,te.useEffect(()=>{if(o||!h)return;let A;return A=js(h,(M,f)=>{y({inView:M,entry:f}),x.current&&x.current(M,f),f.isIntersecting&&s&&A&&(A(),A=void 0)},{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{A&&A()}},[Array.isArray(e)?e.toString():e,h,i,r,s,o,n,c,t]);const T=(u=g.entry)==null?void 0:u.target,b=te.useRef(void 0);!h&&T&&!s&&!o&&b.current!==T&&(b.current=T,y({inView:!!a,entry:void 0}));const E=[v,g.inView,g.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}const Ws=V.div(({styles:e})=>z({display:"flex",flexDirection:"column"},e)),Ks=V.div({fontSize:"1.2em",paddingBottom:15,[S[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),Us=({label:e,suffix:t,keyNumber:n,styles:r={},theme:i=L})=>{const[s,o]=zs({threshold:.3,triggerOnce:!0});return re(Ws,{ref:s,theme:i,styles:r,children:[re(Ks,{children:[C("span",{children:C(_s,{end:o?n:0,duration:8})}),t]}),C("p",{children:e})]})},Hs=V.div(({styles:e,theme:{global:{maxWidth:t,paddingLeft:n,paddingRight:r}}})=>z({height:0,width:"100vw",overflow:"hidden",position:"relative",left:-n[0],right:-r[0],paddingBottom:"56.25%",[S[0]]:{left:`min(calc((100vw - ${t}px) / -2), -${n[1]}px)`,right:`min(calc((100vw - ${t}px) / -2), -${r[1]}px)`},[S[1]]:{left:`min(calc((100vw - ${t}px) / -2), -${n[2]}px)`,right:`min(calc((100vw - ${t}px) / -2), -${r[2]}px)`},[S[2]]:{left:`min(calc((100vw - ${t}px) / -2), -${n[3]}px)`,right:`min(calc((100vw - ${t}px) / -2), -${r[3]}px)`}},e)),qs=({video:e,poster:t,isAutoPlay:n,styles:r={},showControls:i,startMuted:s=!1,theme:o=L})=>C(Hs,{theme:o,styles:r,children:C(xr,{isVideoFullWidth:!0,video:e,theme:o,poster:t,isAutoPlay:n,startMuted:s,showControls:i})}),Gs=V.div(({styles:e,theme:{languageSwitcher:{width:t}}})=>z({width:t[0],marginLeft:"auto",marginRight:"auto",position:"relative",[S[0]]:{width:t[1]},[S[1]]:{width:t[2]},[S[2]]:{width:t[3]}},e)),Ys=V.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),Zs=V.select(({theme:{global:{defaultFont:e},languageSwitcher:{color:t,border:n,borderRadius:r,backgroundColor:i,paddingTop:s,paddingLeft:o,paddingRight:a,paddingBottom:c}}})=>({color:t,border:n,width:"100%",backgroundColor:i,appearance:"none",padding:"15px 30px",borderRadius:r,fontFamily:`var(--font-${e})`,paddingTop:s[0],paddingLeft:o[0],paddingRight:a[0],paddingBottom:c[0],[S[0]]:{paddingTop:s[1],paddingLeft:o[1],paddingRight:a[1],paddingBottom:c[1]},[S[1]]:{paddingTop:s[2],paddingLeft:o[2],paddingRight:a[2],paddingBottom:c[2]},[S[2]]:{paddingTop:s[3],paddingLeft:o[3],paddingRight:a[3],paddingBottom:c[3]},"&:focus":{outline:"none"}})),Xs=({currentLocale:e,handleChange:t,locales:n,styles:r={},theme:i=L,translations:s})=>re(Gs,{theme:i,styles:r,children:[C(Ys,{children:C(me,{theme:i,icon:"caret"})}),C(Zs,{theme:i,value:e,onChange:t,"aria-label":"Switch Language",children:n.map((o,a)=>C("option",{value:o,disabled:o===e,children:s[o]},`locale-${a}`))})]});function Js(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function wr(e,t){var n={};{var r=e;for(var i in r){var s=r[i];s!=null&&(n[Js(i)]=s)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}var Qs="var(--_1wp326d0)",eo="var(--_1wp326d1)",to={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 no=({className:e,children:t,theme:n=L})=>{const{main:{backgroundColor:r,minHeight:i}}=n;return C("main",{className:e,style:wr({[Qs]:i,[eo]:r}),children:t})},ro=V.div(({isOpen:e,theme:{header:{overlayGap:t,overlayBackgroundColor:n}}})=>({top:0,left:0,zIndex:40,gap:t[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:e?"-100vh":"100%",transform:e?"translate(0, 0)":"translate(0, -100%)",transition:"transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0)",[S[0]]:{gap:t[1]},[S[1]]:{gap:t[2]},[S[2]]:{gap:t[3]}})),io=({isOpen:e,theme:t=L,children:n})=>(k.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",e&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[e]),C(ro,{isOpen:e,theme:t,children:n})),so=V.header(({styles:e,isFixed:t,theme:{global:{paddingLeft:n,paddingRight:r},header:{height:i,gap:s,backgroundColor:o,paddingTop:a,paddingBottom:c}}})=>z({zIndex:30,gap:s[0],width:"100%",display:"flex",backgroundColor:o,height:i[0],alignItems:"center",paddingTop:a[0],paddingLeft:n[0],paddingRight:r[0],paddingBottom:c[0],justifyContent:"space-between",position:t?"fixed":"relative",[S[0]]:{gap:s[1],height:i[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:r[1],paddingBottom:c[1]},[S[1]]:{gap:s[2],height:i[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:r[2],paddingBottom:c[2]},[S[2]]:{gap:s[3],height:i[3],paddingTop:a[3],paddingLeft:n[3],paddingRight:r[3],paddingBottom:c[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},e)),oo=V.div(({theme:{header:{height:e}}})=>({height:e[0],[S[0]]:{height:e[1]},[S[1]]:{height:e[2]},[S[2]]:{height:e[3]}})),ao=V.button(({displayOnDesktop:e})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[S[1]]:{display:e?"block":"none"}})),Ln=V.span(({isNavOpen:e,theme:{header:{toggleNavColor:t,toggleNavOpenColor:n,toggleNavBorderRadius:r}}})=>({height:2,width:25,borderRadius:r,marginBottom:8,display:"block",position:"relative",transformOrigin:"center center",transition:"all 0.5s ease-in-out",background:e?n:t,"&:nth-of-type(1)":{transform:e?"rotate(45deg) translate(4px, 3px)":"none"},"&:nth-of-type(2)":{transform:e?"rotate(-45deg) translate(4px, -3px)":"none"}})),co=({onToggleNav:e,theme:t=L,isNavOpen:n=!1,displayOnDesktop:r})=>re(ao,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),e()},"aria-label":"Toggle nav",displayOnDesktop:r,children:[C(Ln,{theme:t,isNavOpen:n}),C(Ln,{theme:t,isNavOpen:n})]}),lo=({children:e,styles:t={},isFixed:n=!1,childrenOverlay:r,theme:i=L,hideToggleNav:s=!1,displayToggleNavOnDesktop:o=!1})=>{const[a,c]=k.useState(!1);return re(ts,{children:[re(so,{theme:i,styles:t,isFixed:n,children:[r&&C(io,{theme:i,isOpen:a,children:r}),e,!s&&C(co,{theme:i,isNavOpen:a,onToggleNav:()=>c(!a),displayOnDesktop:o})]}),n&&C(oo,{theme:i})]})},uo=V.footer(({styles:e,theme:{global:{paddingLeft:t,paddingRight:n},footer:{gap:r,backgroundColor:i,paddingTop:s,paddingBottom:o}}})=>z({zIndex:20,gap:r[0],backgroundColor:i,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",paddingTop:s[0],paddingLeft:t[0],paddingRight:n[0],paddingBottom:o[0],justifyContent:"space-between",[S[0]]:{gap:r[1],paddingTop:s[1],paddingLeft:t[1],paddingRight:n[1],paddingBottom:o[1]},[S[1]]:{gap:r[2],flexDirection:"row",paddingTop:s[2],paddingLeft:t[2],paddingRight:n[2],paddingBottom:o[2]},[S[2]]:{gap:r[3],paddingTop:s[3],paddingLeft:t[3],paddingRight:n[3],paddingBottom:o[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},e)),fo=({children:e,styles:t={},theme:n=L})=>C(uo,{theme:n,styles:t,children:e});var De=(e=>(e[e.Center=0]="Center",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(De||{});const ho=V.div(({theme:e,styles:t,align:n,columns:r,isCentered:i,isInverted:s})=>{const o={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start",gap:e.columns.gap/2,justifyContent:"space-between",textAlign:n===De.Center?"center":"left",[S[1]]:{gap:e.columns.gap,alignItems:i?"center":"stretch",flexDirection:s?"row-reverse":"row",justifyContent:n===De.Right?"flex-end":n===De.Center?"center":"flex-start"},[S[2]]:{gap:e.columns.gap*2}},a=r.map((c,l)=>({[`>:nth-of-type(${l+1})`]:{minWidth:"100%",position:"relative","&:empty":{marginTop:-e.columns.gap/2,[S[1]]:{marginTop:0}},[S[1]]:{flex:c,minWidth:"auto",maxWidth:`${c}%`}}}));return z(Object.assign(o,...a),t)}),po=({columns:e,children:t,styles:n={},align:r=De.Left,isCentered:i=!1,isInverted:s=!1,theme:o=L})=>C(ho,{align:r,theme:o,columns:e,isCentered:i,isInverted:s,styles:n,children:t});function mo(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const go=typeof window<"u",yo=go?k.useLayoutEffect:k.useEffect,Te=e=>e;let rt=Te,Ee=Te;process.env.NODE_ENV!=="production"&&(rt=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ee=(e,t)=>{if(!e)throw new Error(t)});function cn(e){let t;return()=>(t===void 0&&(t=e()),t)}const ln=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ye=e=>e*1e3,Ce=e=>e/1e3,vo={skipAnimations:!1,useManualTiming:!1},lt=["read","resolveKeyframes","update","preRender","render","postRender"];function bo(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,h=!1,v=!1)=>{const g=v&&i?n:r;return h&&o.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const xo=40;function wo(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=lt.reduce((b,E)=>(b[E]=bo(s),b),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:h,postRender:v}=o,x=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,xo),1),i.timestamp=b,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),h.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},g=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:lt.reduce((b,E)=>{const A=o[E];return b[E]=(M,f=!1,P=!1)=>(n||g(),A.schedule(M,f,P)),b},{}),cancel:b=>{for(let E=0;E<lt.length;E++)o[lt[E]].cancel(b)},state:i,steps:o}}const{schedule:$e,cancel:So,state:wt,steps:Sl}=wo(typeof requestAnimationFrame<"u"?requestAnimationFrame:Te,!0),Bn=new Set;function Co(e,t,n){Bn.has(t)||(console.warn(t),Bn.add(t))}const To=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Eo="framerAppearId",Ao="data-"+To(Eo),Ro=e=>t=>typeof t=="string"&&t.startsWith(e),Po=Ro("var(--"),un=e=>Po(e)?Mo.test(e.split("/*")[0].trim()):!1,Mo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oo=new Set(fn),Vo=e=>!!(e&&e.getVelocity),Fe=(e,t,n)=>n>t?t:n<e?e:n,ze={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qe={...ze,transform:e=>Fe(0,1,e)},ut={...ze,default:1},it=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Se=it("deg"),Ne=it("%"),$=it("px"),$o=it("vh"),Fo=it("vw"),jn={...Ne,parse:e=>Ne.parse(e)/100,transform:e=>Ne.transform(e*100)},ko={borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$},Io={rotate:Se,rotateX:Se,rotateY:Se,rotateZ:Se,scale:ut,scaleX:ut,scaleY:ut,scaleZ:ut,skew:Se,skewX:Se,skewY:Se,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Qe,originX:jn,originY:jn,originZ:$},zn={...ze,transform:Math.round},_o={...ko,...Io,zIndex:zn,size:$,fillOpacity:Qe,strokeOpacity:Qe,numOctaves:zn};function Wn(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Do(e,t,n,r){if(typeof t=="function"){const[i,s]=Wn(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Wn(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const No=e=>Array.isArray(e),Lo=e=>No(e)?e[e.length-1]||0:e;function dn(e,t,n){const r=e.getProps();return Do(r,t,n!==void 0?n:r.custom,e)}const Bo=cn(()=>window.ScrollTimeline!==void 0);class jo{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Bo()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class zo extends jo{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Sr(e,t){return e?e[t]||e.default||e:void 0}const qt=2e4;function Cr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qt;)t+=n,r=e.next(t);return t>=qt?1/0:t}function hn(e){return typeof e=="function"}function Kn(e,t){e.timeline=t,e.onfinish=null}const pn=e=>Array.isArray(e)&&typeof e[0]=="number",Wo={linearEasing:void 0};function Ko(e,t){const n=cn(e);return()=>{var r;return(r=Wo[t])!==null&&r!==void 0?r:n()}}const St=Ko(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tr=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(ln(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Er(e){return!!(typeof e=="function"&&St()||!e||typeof e=="string"&&(e in Gt||St())||pn(e)||Array.isArray(e)&&e.every(Er))}const Ue=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ue([0,.65,.55,1]),circOut:Ue([.55,0,1,.45]),backIn:Ue([.31,.01,.66,-.59]),backOut:Ue([.33,1.53,.69,.99])};function Ar(e,t){if(e)return typeof e=="function"&&St()?Tr(e,t):pn(e)?Ue(e):Array.isArray(e)?e.map(n=>Ar(n,t)||Gt.easeOut):Gt[e]}function Uo(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}const Rr=new Set(["width","height","top","left","right","bottom",...fn]);let pt;function Ho(){pt=void 0}const Oe={now:()=>(pt===void 0&&Oe.set(wt.isProcessing||vo.useManualTiming?wt.timestamp:performance.now()),pt),set:e=>{pt=e,queueMicrotask(Ho)}};function qo(e,t){e.indexOf(t)===-1&&e.push(t)}function Go(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yo{constructor(){this.subscriptions=[]}add(t){return qo(this.subscriptions,t),()=>Go(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Pr(e,t){return t?e*(1e3/t):0}const Un=30,Zo=e=>!isNaN(parseFloat(e));class Xo{constructor(t,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Oe.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Oe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Zo(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Co(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yo);const r=this.events[t].add(n);return t==="change"?()=>{r(),$e.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Oe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Un)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Un);return Pr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 Jo(e,t){return new Xo(e,t)}function Qo(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jo(n))}function mn(e,t){const n=dn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Lo(s[o]);Qo(e,o,a)}}function ea(e){return!!(Vo(e)&&e.add)}function ta(e,t){const n=e.getValue("willChange");if(ea(n))return n.add(t)}function na(e){return e.props[Ao]}const Mr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ra=1e-7,ia=12;function sa(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Mr(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>ra&&++a<ia);return o}function st(e,t,n,r){if(e===t&&n===r)return Te;const i=s=>sa(s,0,1,e,n);return s=>s===0||s===1?s:Mr(i(s),t,r)}const Or=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vr=e=>t=>1-e(1-t),$r=st(.33,1.53,.69,.99),gn=Vr($r),Fr=Or(gn),kr=e=>(e*=2)<1?.5*gn(e):.5*(2-Math.pow(2,-10*(e-1))),yn=e=>1-Math.sin(Math.acos(e)),oa=Vr(yn),Ir=Or(yn),aa=e=>/^0[^.\s]+$/u.test(e);function ca(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||aa(e):!0}const qe=e=>Math.round(e*1e5)/1e5,vn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function la(e){return e==null}const ua=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bn=(e,t)=>n=>!!(typeof n=="string"&&ua.test(n)&&n.startsWith(e)||t&&!la(n)&&Object.prototype.hasOwnProperty.call(n,t)),_r=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(vn);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},fa=e=>Fe(0,255,e),Nt={...ze,transform:e=>Math.round(fa(e))},Me={test:bn("rgb","red"),parse:_r("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nt.transform(e)+", "+Nt.transform(t)+", "+Nt.transform(n)+", "+qe(Qe.transform(r))+")"};function da(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Yt={test:bn("#"),parse:da,transform:Me.transform},ke={test:bn("hsl","hue"),parse:_r("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ne.transform(qe(t))+", "+Ne.transform(qe(n))+", "+qe(Qe.transform(r))+")"},Q={test:e=>Me.test(e)||Yt.test(e)||ke.test(e),parse:e=>Me.test(e)?Me.parse(e):ke.test(e)?ke.parse(e):Yt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Me.transform(e):ke.transform(e)},ha=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pa(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(vn))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ha))===null||n===void 0?void 0:n.length)||0)>0}const Dr="number",Nr="color",ma="var",ga="var(",Hn="${}",ya=/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 et(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(ya,c=>(Q.test(c)?(r.color.push(s),i.push(Nr),n.push(Q.parse(c))):c.startsWith(ga)?(r.var.push(s),i.push(ma),n.push(c)):(r.number.push(s),i.push(Dr),n.push(parseFloat(c))),++s,Hn)).split(Hn);return{values:n,split:a,indexes:r,types:i}}function Lr(e){return et(e).values}function Br(e){const{split:t,types:n}=et(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Dr?s+=qe(i[o]):a===Nr?s+=Q.transform(i[o]):s+=i[o]}return s}}const va=e=>typeof e=="number"?0:e;function ba(e){const t=Lr(e);return Br(e)(t.map(va))}const Mt={test:pa,parse:Lr,createTransformer:Br,getAnimatableNone:ba},xa=new Set(["brightness","contrast","saturate","opacity"]);function wa(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(vn)||[];if(!r)return e;const i=n.replace(r,"");let s=xa.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Sa=/\b([a-z-]*)\(.*?\)/gu,Zt={...Mt,getAnimatableNone:e=>{const t=e.match(Sa);return t?t.map(wa).join(" "):e}},Ca={..._o,color:Q,backgroundColor:Q,outlineColor:Q,fill:Q,stroke:Q,borderColor:Q,borderTopColor:Q,borderRightColor:Q,borderBottomColor:Q,borderLeftColor:Q,filter:Zt,WebkitFilter:Zt},Ta=e=>Ca[e];function Ea(e,t){let n=Ta(e);return n!==Zt&&(n=Mt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Aa=new Set(["auto","none","0"]);function Ra(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Aa.has(s)&&et(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ea(n,i)}const qn=e=>e===ze||e===$,Gn=(e,t)=>parseFloat(e.split(", ")[t]),Yn=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Gn(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Gn(s[1],e):0}},Pa=new Set(["x","y","z"]),Ma=fn.filter(e=>!Pa.has(e));function Oa(e){const t=[];return Ma.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Be={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Yn(4,13),y:Yn(5,14)};Be.translateX=Be.x;Be.translateY=Be.y;const Ve=new Set;let Xt=!1,Jt=!1;function jr(){if(Jt){const e=Array.from(Ve).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Oa(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jt=!1,Xt=!1,Ve.forEach(e=>e.complete()),Ve.clear()}function zr(){Ve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jt=!0)})}function Va(){zr(),jr()}class Wr{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ve.add(this),Xt||(Xt=!0,$e.read(zr),$e.resolveKeyframes(jr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const c=r.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ve.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ve.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $a=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Fa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ka(e){const t=Fa.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Ia=4;function Kr(e,t,n=1){Ee(n<=Ia,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=ka(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return $a(o)?parseFloat(o):o}return un(i)?Kr(i,t,n+1):i}const _a=e=>t=>t.test(e),Da={test:e=>e==="auto",parse:e=>e},Na=[ze,$,Ne,Se,Fo,$o,Da],Zn=e=>Na.find(_a(e));class La extends Wr{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),un(l))){const u=Kr(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Rr.has(r)||t.length!==2)return;const[i,s]=t,o=Zn(i),a=Zn(s);if(o!==a)if(qn(o)&&qn(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)ca(t[i])&&r.push(i);r.length&&Ra(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Be[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const Xn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Mt.test(e)||e==="0")&&!e.startsWith("url("));function Ba(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ja(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Xn(i,t),a=Xn(s,t);return rt(o===a,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!a?!1:Ba(e)||(n==="spring"||hn(n))&&r}const za=e=>e!==null;function Ot(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(za),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const Wa=40;class Ur{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Oe.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Wa?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Va(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Oe.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!ja(t,r,i,s))if(o)this.options.duration=0;else{c&&c(Ot(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Vt=(e,t,n)=>e+(t-e)*n;function Lt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ka({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;i=Lt(c,a,e+1/3),s=Lt(c,a,e),o=Lt(c,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Ct(e,t){return n=>n>0?t:e}const Bt=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ua=[Yt,Me,ke],Ha=e=>Ua.find(t=>t.test(e));function Jn(e){const t=Ha(e);if(rt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ke&&(n=Ka(n)),n}const Qn=(e,t)=>{const n=Jn(e),r=Jn(t);if(!n||!r)return Ct(e,t);const i={...n};return s=>(i.red=Bt(n.red,r.red,s),i.green=Bt(n.green,r.green,s),i.blue=Bt(n.blue,r.blue,s),i.alpha=Vt(n.alpha,r.alpha,s),Me.transform(i))},qa=(e,t)=>n=>t(e(n)),xn=(...e)=>e.reduce(qa),Qt=new Set(["none","hidden"]);function Ga(e,t){return Qt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ya(e,t){return n=>Vt(e,t,n)}function wn(e){return typeof e=="number"?Ya:typeof e=="string"?un(e)?Ct:Q.test(e)?Qn:Ja:Array.isArray(e)?Hr:typeof e=="object"?Q.test(e)?Qn:Za:Ct}function Hr(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>wn(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Za(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=wn(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Xa(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],c=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=c,i[o]++}return r}const Ja=(e,t)=>{const n=Mt.createTransformer(t),r=et(e),i=et(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Qt.has(e)&&!i.values.length||Qt.has(t)&&!r.values.length?Ga(e,t):xn(Hr(Xa(r,i),i.values),n):(rt(!0,`Complex values '${e}' and '${t}' 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.`),Ct(e,t))};function qr(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Vt(e,t,n):wn(e)(e,t)}const Qa=5;function Gr(e,t,n){const r=Math.max(t-Qa,0);return Pr(n-e(r),t-r)}const j={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},er=.001;function ec({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let i,s;rt(e<=ye(j.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Fe(j.minDamping,j.maxDamping,o),e=Fe(j.minDuration,j.maxDuration,Ce(e)),o<1?(i=l=>{const u=l*o,h=u*e,v=u-n,x=en(l,o),g=Math.exp(-h);return er-v/x*g},s=l=>{const h=l*o*e,v=h*n+n,x=Math.pow(o,2)*Math.pow(l,2)*e,g=Math.exp(-h),y=en(Math.pow(l,2),o);return(-i(l)+er>0?-1:1)*((v-x)*g)/y}):(i=l=>{const u=Math.exp(-l*e),h=(l-n)*e+1;return-.001+u*h},s=l=>{const u=Math.exp(-l*e),h=(n-l)*(e*e);return u*h});const a=5/e,c=nc(i,s,a);if(e=ye(e),isNaN(c))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:e}}}const tc=12;function nc(e,t,n){let r=n;for(let i=1;i<tc;i++)r=r-e(r)/t(r);return r}function en(e,t){return e*Math.sqrt(1-t*t)}const rc=["duration","bounce"],ic=["stiffness","damping","mass"];function tr(e,t){return t.some(n=>e[n]!==void 0)}function sc(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!tr(e,ic)&&tr(e,rc))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:j.mass,stiffness:i,damping:s}}else{const n=ec(e);t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function Yr(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:l,mass:u,duration:h,velocity:v,isResolvedFromDuration:x}=sc({...n,velocity:-Ce(n.velocity||0)}),g=v||0,y=l/(2*Math.sqrt(c*u)),T=o-s,b=Ce(Math.sqrt(c/u)),E=Math.abs(T)<5;r||(r=E?j.restSpeed.granular:j.restSpeed.default),i||(i=E?j.restDelta.granular:j.restDelta.default);let A;if(y<1){const f=en(b,y);A=P=>{const O=Math.exp(-y*b*P);return o-O*((g+y*b*T)/f*Math.sin(f*P)+T*Math.cos(f*P))}}else if(y===1)A=f=>o-Math.exp(-b*f)*(T+(g+b*T)*f);else{const f=b*Math.sqrt(y*y-1);A=P=>{const O=Math.exp(-y*b*P),d=Math.min(f*P,300);return o-O*((g+y*b*T)*Math.sinh(d)+f*T*Math.cosh(d))/f}}const M={calculatedDuration:x&&h||null,next:f=>{const P=A(f);if(x)a.done=f>=h;else{let O=0;y<1&&(O=f===0?ye(g):Gr(A,f,P));const d=Math.abs(O)<=r,m=Math.abs(o-P)<=i;a.done=d&&m}return a.value=a.done?o:P,a},toString:()=>{const f=Math.min(Cr(M),qt),P=Tr(O=>M.next(f*O).value,f,30);return f+"ms "+P}};return M}function nr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const h=e[0],v={done:!1,value:h},x=d=>a!==void 0&&d<a||c!==void 0&&d>c,g=d=>a===void 0?c:c===void 0||Math.abs(a-d)<Math.abs(c-d)?a:c;let y=n*t;const T=h+y,b=o===void 0?T:o(T);b!==T&&(y=b-h);const E=d=>-y*Math.exp(-d/r),A=d=>b+E(d),M=d=>{const m=E(d),p=A(d);v.done=Math.abs(m)<=l,v.value=v.done?b:p};let f,P;const O=d=>{x(v.value)&&(f=d,P=Yr({keyframes:[v.value,g(v.value)],velocity:Gr(A,d,v.value),damping:i,stiffness:s,restDelta:l,restSpeed:u}))};return O(0),{calculatedDuration:null,next:d=>{let m=!1;return!P&&f===void 0&&(m=!0,M(d),O(d)),f!==void 0&&d>=f?P.next(d-f):(!m&&M(d),v)}}}const oc=st(.42,0,1,1),ac=st(0,0,.58,1),Zr=st(.42,0,.58,1),cc=e=>Array.isArray(e)&&typeof e[0]!="number",rr={linear:Te,easeIn:oc,easeInOut:Zr,easeOut:ac,circIn:yn,circInOut:Ir,circOut:oa,backIn:gn,backInOut:Fr,backOut:$r,anticipate:kr},ir=e=>{if(pn(e)){Ee(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return st(t,n,r,i)}else if(typeof e=="string")return Ee(rr[e]!==void 0,`Invalid easing type '${e}'`),rr[e];return e};function lc(e,t,n){const r=[],i=n||qr,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||Te:t;a=xn(c,a)}r.push(a)}return r}function uc(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ee(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=lc(t,r,i),c=a.length,l=u=>{if(o&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const v=ln(e[h],e[h+1],u);return a[h](v)};return n?u=>l(Fe(e[0],e[s-1],u)):l}function fc(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ln(0,t,r);e.push(Vt(n,1,i))}}function dc(e){const t=[0];return fc(t,e.length-1),t}function hc(e,t){return e.map(n=>n*t)}function pc(e,t){return e.map(()=>t||Zr).splice(0,e.length-1)}function Ge({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=cc(r)?r.map(ir):ir(r),s={done:!1,value:t[0]},o=hc(n&&n.length===t.length?n:dc(t),e),a=uc(o,t,{ease:Array.isArray(i)?i:pc(t,i)});return{calculatedDuration:e,next:c=>(s.value=a(c),s.done=c>=e,s)}}const mc=e=>{const t=({timestamp:n})=>e(n);return{start:()=>$e.update(t,!0),stop:()=>So(t),now:()=>wt.isProcessing?wt.timestamp:Oe.now()}},gc={decay:nr,inertia:nr,tween:Ge,keyframes:Ge,spring:Yr},yc=e=>e/100;class Sn extends Ur{constructor(t){super(t),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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Wr,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=hn(n)?n:gc[n]||Ge;let c,l;process.env.NODE_ENV!=="production"&&a!==Ge&&Ee(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a!==Ge&&typeof t[0]!="number"&&(c=xn(yc,qr(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});s==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Cr(u));const{calculatedDuration:h}=u,v=h+i,x=v*(r+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:v,totalDuration:x}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:d}=this.options;return{done:!0,value:d[d.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=r;if(this.startTime===null)return s.next(0);const{delay:v,repeat:x,repeatType:g,repeatDelay:y,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-v*(this.speed>=0?1:-1),E=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let A=this.currentTime,M=s;if(x){const d=Math.min(this.currentTime,u)/h;let m=Math.floor(d),p=d%1;!p&&d>=1&&(p=1),p===1&&m--,m=Math.min(m,x+1),!!(m%2)&&(g==="reverse"?(p=1-p,y&&(p-=y/h)):g==="mirror"&&(M=o)),A=Fe(0,1,p)*h}const f=E?{done:!1,value:c[0]}:M.next(A);a&&(f.value=a(f.value));let{done:P}=f;!E&&l!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return O&&i!==void 0&&(f.value=Ot(c,this.options,i)),T&&T(f.value),O&&this.finish(),f}get duration(){const{resolved:t}=this;return t?Ce(t.calculatedDuration):0}get time(){return Ce(this.currentTime)}set time(t){t=ye(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ce(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mc,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const vc=new Set(["opacity","clipPath","filter","transform"]);function bc(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Ar(a,i);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const xc=cn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Tt=10,wc=2e4;function Sc(e){return hn(e.type)||e.type==="spring"||!Er(e.ease)}function Cc(e,t){const n=new Sn({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<wc;)r=n.sample(s),i.push(r.value),s+=Tt;return{times:void 0,keyframes:i,duration:s-Tt,ease:"linear"}}const Xr={anticipate:kr,backInOut:Fr,circInOut:Ir};function Tc(e){return e in Xr}class sr extends Ur{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new La(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&St()&&Tc(s)&&(s=Xr[s]),Sc(this.options)){const{onComplete:h,onUpdate:v,motionValue:x,element:g,...y}=this.options,T=Cc(t,y);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,s=T.ease,o="keyframes"}const u=bc(a.owner.current,c,t,{...this.options,duration:r,times:i,ease:s});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Kn(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;a.set(Ot(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ce(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ce(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ye(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Te;const{animation:r}=n;Kn(r,t)}return Te}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:h,element:v,...x}=this.options,g=new Sn({...x,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),y=ye(this.time);l.setWithVelocity(g.sample(y-Tt).value,g.sample(y).value,Tt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return xc()&&r&&vc.has(r)&&!c&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Ec={type:"spring",stiffness:500,damping:25,restSpeed:10},Ac=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Rc={type:"keyframes",duration:.8},Pc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mc=(e,{keyframes:t})=>t.length>2?Rc:Oo.has(e)?e.startsWith("scale")?Ac(t[1]):Ec:Pc;function Oc({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Vc=(e,t,n,r={},i,s)=>o=>{const a=Sr(r,e)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ye(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:v=>{t.set(v),a.onUpdate&&a.onUpdate(v)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Oc(a)||(u={...u,...Mc(e,u)}),u.duration&&(u.duration=ye(u.duration)),u.repeatDelay&&(u.repeatDelay=ye(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!s&&t.get()!==void 0){const v=Ot(u.keyframes,a);if(v!==void 0)return $e.update(()=>{u.onUpdate(v),u.onComplete()}),new zo([])}return!s&&sr.supports(u)?new sr(u):new Sn(u)};function $c({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;r&&(o=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const v=e.getValue(h,(s=e.latestValues[h])!==null&&s!==void 0?s:null),x=c[h];if(x===void 0||u&&$c(u,h))continue;const g={delay:n,...Sr(o||{},h)};let y=!1;if(window.MotionHandoffAnimation){const b=na(e);if(b){const E=window.MotionHandoffAnimation(b,h,$e);E!==null&&(g.startTime=E,y=!0)}}ta(e,h),v.start(Vc(h,v,x,e.shouldReduceMotion&&Rr.has(h)?{type:!1}:g,e,y));const T=v.animation;T&&l.push(T)}return a&&Promise.all(l).then(()=>{$e.update(()=>{a&&mn(e,a)})}),l}function tn(e,t,n={}){var r;const i=dn(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Jr(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:v}=s;return Fc(e,t,u+l,h,v,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Fc(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,c=i===1?(l=0)=>l*r:(l=0)=>a-l*r;return Array.from(e.variantChildren).sort(kc).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(tn(l,t,{...s,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function kc(e,t){return e.sortNodePosition(t)}function Ic(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>tn(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=tn(e,t,n);else{const i=typeof t=="function"?dn(e,t,n.custom):t;r=Promise.all(Jr(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function _c(e){e.values.forEach(t=>t.stop())}function nn(e,t){[...t].reverse().forEach(r=>{const i=e.getVariant(r);i&&mn(e,i),e.variantChildren&&e.variantChildren.forEach(s=>{nn(s,t)})})}function Dc(e,t){if(Array.isArray(t))return nn(e,t);if(typeof t=="string")return nn(e,[t]);mn(e,t)}function Nc(){let e=!1;const t=new Set,n={subscribe(r){return t.add(r),()=>void t.delete(r)},start(r,i){Ee(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return t.forEach(o=>{s.push(Ic(o,r,{transitionOverride:i}))}),Promise.all(s)},set(r){return Ee(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(i=>{Dc(i,r)})},stop(){t.forEach(r=>{_c(r)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}function Lc(){const e=mo(Nc);return yo(e.mount,[]),e}const Bc=Lc,jc={some:0,all:1};function zc(e,t,{root:n,margin:r,amount:i="some"}={}){const s=Uo(e),o=new WeakMap,a=l=>{l.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const v=t(u.target,u);typeof v=="function"?o.set(u.target,v):c.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:jc[i]});return s.forEach(l=>c.observe(l)),()=>c.disconnect()}function Wc(e,{root:t,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=k.useState(s);return k.useEffect(()=>{if(!e.current||i&&o)return;const c=()=>(a(!0),i?void 0:()=>a(!1)),l={root:t&&t.current||void 0,margin:n,amount:r};return zc(e.current,c,l)},[t,e,n,i,r]),o}var mt=(e=>(e[e.Center=0]="Center",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(mt||{}),Kc="var(--jqc4y00)",Uc="var(--jqc4y01)",Hc="var(--jqc4y02)",qc="var(--jqc4y03)",Gc="var(--jqc4y04)",Yc="var(--jqc4y05)",Zc={width:"100%",display:"flex",color:"var(--jqc4y02)",alignItems:"center",position:"relative",zIndex:"var(--jqc4y01)",flexDirection:"column",minHeight:"var(--jqc4y03)",background:"var(--jqc4y05)",justifyContent:"var(--jqc4y04)",animation:"background 0.5s ease-in-out"};const Xc=({children:e,className:t,zIndex:n=20,isDark:r=!1,id:i=void 0,align:s=mt.Left,isFullHeight:o=!1,backgroundColor:a="",theme:c=L})=>{const l=Bc(),u=k.createRef(),{main:{backgroundColor:h,minHeight:v},colors:x,header:{height:g},footer:{height:y}}=c,T=Wc(u,{margin:"0px 0px 0px 0px"});return k.useEffect(()=>{T&&l.start("visible")},[l,T]),C("section",{id:i,ref:u,className:t,style:wr({[Uc]:`${n}`,[Gc]:o?"center":"flex-start",[Hc]:r?x.defaultLightText:x.defaultText,[Yc]:a||h,[Kc]:s===mt.Center?"center":s===mt.Right?"right":"left",[qc]:o?`calc(100vh - ${g[0]}px - ${y[0]}px)`:"0"}),children:e})},Jc=V.div(({styles:e,theme:{nav:{gap:t}}})=>z({gap:t[0],display:"flex",flexDirection:"column",[S[0]]:{gap:t[1]},[S[1]]:{gap:t[2],flexDirection:"row"},[S[2]]:{gap:t[3]}},e)),Qc=({children:e,styles:t={},theme:n=L})=>C(Jc,{theme:n,styles:t,children:e}),el=V.div(({styles:e,theme:{navSocial:{gap:t}}})=>z({gap:t[0],marginLeft:0,marginRight:0,display:"flex",flexDirection:"row",[S[0]]:{gap:t[1]},[S[1]]:{gap:t[2]},[S[2]]:{gap:t[3]}},e)),tl=V.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),nl=({navSocial:e,styles:t={},theme:n=L})=>C(el,{theme:n,styles:t,children:e.map(({name:r,link:i},s)=>{const o=r[0].toUpperCase()+r.slice(1);return C(tl,{children:C("a",{target:"_blank","aria-label":r,href:i,children:C(me,{theme:n,icon:`social${o}`})})},`navSocialItem-${s}`)})}),rl=V.div(({styles:e,theme:{navLegal:{gap:t}}})=>z({gap:t[0],display:"flex",flexDirection:"row",[S[0]]:{gap:t[1]},[S[1]]:{gap:t[2]},[S[2]]:{gap:t[3]}},e)),il=({children:e,styles:t={},theme:n=L})=>C(rl,{theme:n,styles:t,children:e}),sl=V.form(({styles:e,theme:{form:{width:t,padding:n,backgroundColor:r}}})=>z({width:"100%",maxWidth:t,backgroundColor:r,padding:n[0],position:"relative",[S[1]]:{padding:n[1]}},e)),ol=({action:e,children:t,styles:n={},theme:r=L})=>C(sl,{theme:r,styles:n,action:e,children:t});var tt=(e=>(e[e.Center=0]="Center",e[e.Left=1]="Left",e[e.Right=2]="Right",e))(tt||{});const al=V.div(({theme:{form:{row:{gap:e,padding:t}}},align:n,styles:r,isMessage:i})=>z({gap:e[0],display:"flex",padding:t[0],flexDirection:"column",fontSize:i?"0.8em":"inherit",justifyContent:n===tt.Right?"flex-end":n===tt.Center?"center":"flex-start",[S[1]]:{gap:e[1],padding:t[1],flexDirection:"row"}},r)),cl=({children:e,theme:t=L,styles:n={},isActions:r=!1,isMessage:i=!1,align:s=tt.Left})=>C(al,{align:s,theme:t,styles:n,isActions:r,isMessage:i,children:e}),ll=V.input(({styles:e,theme:{form:{input:{font:t,color:n,border:r,padding:i,borderRadius:s,backgroundColor:o,placeholder:{color:a,opacity:c}}}}})=>z({color:n,width:"100%",border:r,lineHeight:"1.5em",fontSize:"inherit",padding:i[0],borderRadius:s,backgroundColor:o,fontFamily:`var(--font-${t})`,[S[1]]:{padding:i[1]},"&:focus":{outline:r},"&::placeholder":{color:a,opacity:c},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${o} inset`}},e));var $t=(e=>(e.Text="text",e.Email="email",e.Search="search",e.Number="number",e.Hidden="hidden",e.Password="password",e))($t||{});const Qr=({name:e,value:t="",styles:n={},type:r=$t.Text,disabled:i=!1,placeholder:s="",theme:o=L,onChange:a=void 0})=>C(ll,{type:r,id:e,name:e,theme:o,styles:n,onChange:a,disabled:i,defaultValue:t,placeholder:s}),ul=V.label(({theme:{form:{label:{color:e,font:t,fontWeight:n,paddingBottom:r}}}})=>({color:e,fontWeight:n,paddingBottom:r,width:"100%",textAlign:"left",fontFamily:`var(--font-${t})`})),ei=({name:e,label:t,required:n=!1,theme:r=L})=>re(ul,{htmlFor:e,theme:r,children:[t,n?C("span",{children:" *"}):""]}),fl=V.div(({styles:e})=>z({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},e)),dl=V.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),hl=V.span(({theme:{form:{error:{color:e}}}})=>({color:e,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),pl=V.textarea(({styles:e,theme:{form:{textarea:{font:t,color:n,border:r,padding:i,borderRadius:s,backgroundColor:o,placeholder:{color:a,opacity:c}}}}})=>z({color:n,width:"100%",border:r,padding:i[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:s,backgroundColor:o,fontFamily:`var(--font-${t})`,[S[1]]:{padding:i[1]},"&:focus":{outline:r},"&::placeholder":{color:a,opacity:c},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${o} inset`}},e)),ti=({name:e,value:t,rows:n=2,disabled:r,styles:i={},placeholder:s="",onChange:o=void 0,theme:a=L})=>C(pl,{id:e,name:e,rows:n,theme:a,styles:i,onChange:o,disabled:r,defaultValue:t,placeholder:s});var Cn=(e=>(e.Textarea="textarea",e))(Cn||{});const ml=({name:e,label:t="",value:n="",styles:r={},rows:i=void 0,required:s=!1,disabled:o=!1,placeholder:a="",errors:c=void 0,theme:l=L,onChange:u=void 0,type:h=$t.Text})=>re(fl,{styles:r,children:[t&&C(ei,{theme:l,label:t,name:e,required:s}),h===Cn.Textarea?C(ti,{value:n,rows:i,name:e,theme:l,onChange:u,disabled:o,placeholder:a}):C(Qr,{value:n,type:h,name:e,theme:l,onChange:u,disabled:o,placeholder:a}),c&&C(dl,{children:c instanceof Array?c.map((v,x)=>C(hl,{theme:l,children:v},x)):c})]}),gl=V.div(({styles:e,theme:{consentCookie:{overlayBlur:t,overlayOpacity:n,overlayBackgroundColor:r}}})=>z({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:n,backgroundColor:r,backdropFilter:`blur(${t}px)`}},e)),yl=V.div(({theme:{consentCookie:{width:e,borders:t,borderRadius:n,backgroundColor:r,paddingTop:i,paddingLeft:s,paddingRight:o,paddingBottom:a}}})=>({right:15,bottom:15,zIndex:20,border:t,display:"flex",width:e[0],position:"fixed",flexDirection:"column",borderRadius:n,paddingTop:i[0],paddingLeft:s[0],paddingRight:o[0],paddingBottom:a[0],backgroundColor:r,[S[0]]:{width:e[1],paddingTop:i[1],paddingLeft:s[1],paddingRight:o[1],paddingBottom:a[1]},[S[1]]:{width:e[2],paddingTop:i[2],paddingLeft:s[2],paddingRight:o[2],paddingBottom:a[2]},[S[2]]:{width:e[3],paddingTop:i[3],paddingLeft:s[3],paddingRight:o[3],paddingBottom:a[3]}})),vl=V.div(({theme:{consentCookie:{actionsGap:e,actionsPaddingTop:t}}})=>({gap:e,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:t[0],justifyContent:"flex-end",[S[0]]:{paddingTop:t[1]},[S[1]]:{paddingTop:t[2]},[S[2]]:{paddingTop:t[3]}}));function bl(e){const t=e+"=",r=decodeURIComponent(document.cookie).split(";");for(let i=0;i<r.length;i++){let s=r[i];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(t)==0)return s.substring(t.length,s.length)}return""}function xl(e,t,n){const r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);const i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}const wl=({styles:e={},children:t=void 0,theme:n=L,cookieName:r="consent",translations:i=void 0,cookieExpirationDays:s=365})=>{const[o,a]=k.useState(!1),c=l=>{a(!1),xl(r,`${l}`,s)};return k.useEffect(()=>{const l=bl(r),u=l!=="true"&&l!=="false",h=l==="true";u&&a(!0);const v=h?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:v})},[o]),o?C(gl,{theme:n,styles:e,children:re(yl,{theme:n,children:[t,re(vl,{theme:n,children:[C(Ut,{onClick:()=>c(!1),children:(i==null?void 0:i.actions.reject)||"Reject"}),C(Ut,{onClick:()=>c(!0),children:(i==null?void 0:i.actions.accept)||"Accept"})]})]})}):null};exports.Actions=os;exports.ActionsAlign=_e;exports.Button=Ut;exports.ButtonSize=He;exports.ButtonStyle=vt;exports.ButtonType=an;exports.ButtonVariant=yt;exports.Carousel=Os;exports.Columns=po;exports.ColumnsAlign=De;exports.ConsentCookie=wl;exports.Footer=fo;exports.Form=ol;exports.FormRow=cl;exports.FormRowAlign=tt;exports.Header=lo;exports.Icon=me;exports.InputType=$t;exports.KeyNumber=Us;exports.LanguageSwitcher=Xs;exports.Logo=ws;exports.Main=no;exports.MainStyles=to;exports.Modal=hs;exports.Nav=Qc;exports.NavLegal=il;exports.NavSocial=nl;exports.Section=Xc;exports.SectionStyles=Zc;exports.TextField=ml;exports.TextFieldInput=Qr;exports.TextFieldLabel=ei;exports.TextFieldTextarea=ti;exports.TextareaType=Cn;exports.Video=xr;exports.VideoFullWidth=qs;
15
+ */var Zi;function tl(){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 V(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)||V(M)===l}function rt(M){return V(M)===c}function Ot(M){return V(M)===a}function kt(M){return V(M)===s}function vt(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function mt(M){return V(M)===u}function Ft(M){return V(M)===i}function ht(M){return V(M)===p}function It(M){return V(M)===h}function xt(M){return V(M)===n}function bt(M){return V(M)===o}function Nt(M){return V(M)===r}function Ut(M){return V(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=V}()),j}var Ji;function el(){return Ji||(Ji=1,process.env.NODE_ENV==="production"?Ue.exports=Qa():Ue.exports=tl()),Ue.exports}var wn,Qi;function nl(){if(Qi)return wn;Qi=1;var t=el(),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),V=s(g),m=0;m<w.length;++m){var R=w[m];if(!n[R]&&!(S&&S[R])&&!(V&&V[R])&&!(T&&T[R])){var D=u(g,R);try{a(p,R,D)}catch{}}}}return p}return wn=h,wn}nl();var il=!0;function rl(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||il===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},sl=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 ol(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 al={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},ll=/[A-Z]|^ms/g,cl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ks=function(e){return e.charCodeAt(1)===45},tr=function(e){return e!=null&&typeof e!="boolean"},Tn=Ua(function(t){return ks(t)?t:t.replace(ll,"-$&").toLowerCase()}),er=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(cl,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return al[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 ul(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 ul(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+=Tn(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+=Tn(o)+":"+er(o,s[l])+";");else{var c=Ve(t,e,s);switch(o){case"animation":case"animationName":{i+=Tn(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var nr=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function fl(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=ol(r)+c;return{name:f,styles:r,next:Ct}}var dl=function(e){return e()},hl=ct.useInsertionEffect?ct.useInsertionEffect:!1,pl=hl||dl,Fs=ct.createContext(typeof HTMLElement<"u"?Xa({key:"css"}):null);Fs.Provider;var ml=function(e){return P.forwardRef(function(n,i){var r=P.useContext(Fs);return e(n,r,i)})},gl=ct.createContext({}),mn={}.hasOwnProperty,Nn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Is=function(e,n){var i={};for(var r in n)mn.call(n,r)&&(i[r]=n[r]);return i[Nn]=e,i},yl=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return Os(n,i,r),pl(function(){return sl(n,i,r)}),null},vl=ml(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[Nn],o=[i],s="";typeof t.className=="string"?s=rl(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=fl(o,void 0,ct.useContext(gl));s+=e.key+"-"+a.name;var l={};for(var c in t)mn.call(t,c)&&c!=="css"&&c!==Nn&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),ct.createElement(ct.Fragment,null,ct.createElement(yl,{cache:e,serialized:a,isStringTag:typeof r=="string"}),ct.createElement(r,l))}),Bs=vl,xl=Ce.Fragment,E=function(e,n,i){return mn.call(n,"css")?Ce.jsx(Bs,Is(e,n),i):Ce.jsx(e,n,i)},dt=function(e,n,i){return mn.call(n,"css")?Ce.jsxs(Bs,Is(e,n),i):Ce.jsxs(e,n,i)};const bl=[640,768,1024,1680],A=bl.map(t=>`(min-width: ${t}px)`),Kt={mobile:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},G=(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(e[n]instanceof Object&&t[n]instanceof Object?t[n]=G(t[n],e[n]):t[n]=e[n]);return t},Sl=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})=>G({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),[A[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',Cn='"Gill Sans", sans-serif',$s="#FF7377",Pn="#C8AE96",tt="#FCEFE6",wl="#2E2E2E",rr="#CCCCCC",Tl=" #888888",st="#000000",An=$s,_={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:ir,defaultFont:Cn},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 ${Pn}`,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:30,paddingTop:60},button:{minWidth:80,fontWeight:400,letterSpacing:.1,color:{primary:tt,secondary:wl,disabled:Tl},backgroundColor:{primary:An,secondary:Pn,disabled:rr},border:{width:2,style:"solid",color:{primary:An,secondary:Pn,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:An,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:Cn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:Cn,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]}},Un=({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(Sl,{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});var ie=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ie||{});const Cl=O.div(({align:t,styles:e,theme:{actions:{gap:n,paddingTop:i}}})=>G({gap:n/2,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",paddingTop:i/2,alignItems:t===ie.Center?"center":"flex-start",justifyContent:t===ie.Right?"flex-end":t===ie.Left?"flex-start":"center",[A[2]]:{gap:n,paddingTop:i}},e)),Pl=({children:t,styles:e={},theme:n=_,align:i=ie.Left})=>E(Cl,{theme:n,align:i,styles:e,children:t}),Al={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"},Vl=O.svg(({styles:t})=>G({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),El=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(Vl,{viewBox:s,width:`${e}px`,height:`${e}px`,styles:n,children:E(El,{d:i||Al[t],fill:r||o.colors.defaultIcon})});var rn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(rn||{});const Rl=O.div(({theme:{modal:{overlayBlur:t,overlayOpacity:e,overlayBackgroundColor:n}},styles:i})=>G({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)),Ml=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===rn.Left?"left":u===rn.Right?"right":"center",[A[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)`},[A[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)`},[A[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)`}})),Dl=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)"}}),Ll=({children:t,styles:e={},align:n=rn.Left,theme:i=_,onModalHide:r=void 0})=>E(Rl,{theme:i,styles:e,children:dt(Ml,{theme:i,align:n,children:[r&&E(Dl,{onClick:r,children:E(Pt,{theme:i,icon:"close"})}),t]})}),Ol=O.div(({styles:t,isVideoFullWidth:e})=>G({video:{top:"50%",left:"50%",width:"auto",minWidth:"100%",minHeight:"100%",position:"absolute",transform:"translate(-50%, -50%)",maxHeight:e?"100vw":"100%"}},t)),kl=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"}})),Fl=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],[A[0]]:{width:n[1],height:i[1]},[A[1]]:{right:30,width:n[2],height:i[2],top:t[2]+15},[A[2]]:{width:n[3],height:i[3]},svg:{path:{fill:o}}})),Il=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",[A[0]]:{width:n[1],height:i[1]},[A[1]]:{width:n[2],height:i[2]},[A[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}}})),Bl=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%)",[A[0]]:{width:e[1],height:n[1]},[A[1]]:{right:75,bottom:15,width:e[2],height:n[2]},[A[2]]:{width:e[3],height:n[3]},svg:{path:{fill:r}}})),$l=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%)",[A[0]]:{width:t[1],height:e[1]},[A[1]]:{right:15,bottom:15,width:t[2],height:e[2]},[A[0]]:{width:t[3],height:e[3]},svg:{path:{fill:i}}})),js=({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)},V=()=>{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(Ol,{isVideoFullWidth:f,styles:n,children:[E("video",{ref:h,playsInline:!0,onEnded:R,children:E("source",{src:t,type:"video/mp4"})}),i&&E(kl,{isPlaying:p,children:E("img",{src:i,alt:"",sizes:"2560"})}),(!u||!e)&&E(Il,{theme:c,isPlaying:p,onClick:w,"aria-label":"Play",children:E(Pt,{icon:"play",size:50,theme:c})}),d&&E(Fl,{theme:c,isPlaying:p,onClick:T,"aria-label":"Pause",children:E(Pt,{icon:"close",size:28,theme:c})}),p&&l&&E(Bl,{theme:c,isPlaying:p,"aria-label":"Pause",onClick:p?V:w,children:E(Pt,{icon:"pause",size:28,theme:c})}),l&&E($l,{theme:c,isMuted:r,onClick:m,"aria-label":"Sound",children:E(Pt,{icon:S?"volumeUp":"volumeMute",size:28,theme:c})})]})},jl=O.div(({styles:t})=>G({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),_l=({children:t,styles:e={},theme:n=_})=>E(jl,{theme:n,styles:e,children:t}),Nl=O.div(({styles:t,isFullWidth:e,theme:{global:{paddingLeft:n,paddingRight:i}}})=>G({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,[A[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},[A[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},[A[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)),Ul=O.div({width:"100%",position:"relative"}),zl=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"})),Wl=O.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),Hl=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)"}})),Kl=O.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[A[1]]:{marginTop:60}}),Gl=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",[A[0]]:{width:n[1],height:i[1]},[A[1]]:{width:n[2],height:i[2]},[A[2]]:{width:n[3],height:i[3]},"&:hover":{transform:"scale(1.2)"}}));function ql(){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 Yl=({data:t,styles:e={},displayItem:n=1,theme:i=_,isFullWidth:r=!1,displayNavBullets:o=!1,displayNavButtons:s=!1})=>{const{width:a}=ql(),[l,c]=P.useState(0),[u,f]=P.useState(i.carousel.gap[0]),d=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),[V,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*V?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=(V-1)*u;y.current&&T((p-C)/V)},[V,p,u]),P.useEffect(()=>{const C=(t.length-1)*u;v(w*t.length+C)},[t,w,v,u]),dt(Nl,{ref:R,theme:i,styles:e,isFullWidth:r,children:[E(Ul,{children:E(zl,{ref:D,width:S,gap:V===1?0:u,left:-l*w-l*u,children:t.map((x,C)=>E(Wl,{ref:y,children:x},`children-${C}`))})}),s&&dt(Hl,{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*V,isDisabled:l===t.length-1*V,children:E(Pt,{theme:i,icon:"arrowForward",size:30})})]}),o&&E(Kl,{children:[...Array(t.length+1-V||1)].map((x,C)=>E(Gl,{theme:i,isActive:C===l,onClick:()=>c(C)},`carousselItem-${C}`))})]})};var pe={},sn=function(){return sn=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},sn.apply(this,arguments)},Xl=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=sn(sn({},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 Zl=Object.freeze(Object.defineProperty({__proto__:null,CountUp:Xl},Symbol.toStringTag,{value:"Module"})),Jl=Ja(Zl);var or;function Ql(){if(or)return pe;or=1,Object.defineProperty(pe,"__esModule",{value:!0});var t=P,e=Jl;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"],V={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({},V),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 tc=Ql();const ec=Za(tc);var zn=new Map,ze=new WeakMap,ar=0,nc=void 0;function ic(t){return t?(ze.has(t)||(ar+=1,ze.set(t,ar.toString())),ze.get(t)):"0"}function rc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?ic(t.root):t[e]}`).toString()}function sc(t){const e=rc(t);let n=zn.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},zn.set(e,n)}return n}function oc(t,e,n={},i=nc){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}=sc(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(),zn.delete(r))}}function ac({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=oc(f,(V,m)=>{g({inView:V,entry:m}),h.current&&h.current(V,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 lc=O.div(({styles:t})=>G({display:"flex",flexDirection:"column"},t)),cc=O.div({fontSize:"1.2em",paddingBottom:15,[A[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),uc=({label:t,suffix:e,keyNumber:n,styles:i={},theme:r=_})=>{const[o,s]=ac({threshold:.3,triggerOnce:!0});return dt(lc,{ref:o,theme:r,styles:i,children:[dt(cc,{children:[E("span",{children:E(ec,{end:s?n:0,duration:8})}),e]}),E("p",{children:t})]})},fc=O.div(({styles:t,theme:{global:{maxWidth:e,paddingLeft:n,paddingRight:i}}})=>G({height:0,width:"100vw",overflow:"hidden",position:"relative",left:-n[0],right:-i[0],paddingBottom:"56.25%",[A[0]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[1]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[1]}px)`},[A[1]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[2]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[2]}px)`},[A[2]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[3]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${i[3]}px)`}},t)),dc=({video:t,poster:e,isAutoPlay:n,styles:i={},showControls:r,startMuted:o=!1,theme:s=_})=>E(fc,{theme:s,styles:i,children:E(js,{isVideoFullWidth:!0,video:t,theme:s,poster:e,isAutoPlay:n,startMuted:o,showControls:r})}),hc=O.div(({styles:t,theme:{languageSwitcher:{width:e}}})=>G({width:e[0],marginLeft:"auto",marginRight:"auto",position:"relative",[A[0]]:{width:e[1]},[A[1]]:{width:e[2]},[A[2]]:{width:e[3]}},t)),pc=O.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),mc=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],[A[0]]:{paddingTop:o[1],paddingLeft:s[1],paddingRight:a[1],paddingBottom:l[1]},[A[1]]:{paddingTop:o[2],paddingLeft:s[2],paddingRight:a[2],paddingBottom:l[2]},[A[2]]:{paddingTop:o[3],paddingLeft:s[3],paddingRight:a[3],paddingBottom:l[3]},"&:focus":{outline:"none"}})),gc=({currentLocale:t,handleChange:e,locales:n,styles:i={},theme:r=_,translations:o})=>dt(hc,{theme:r,styles:i,children:[E(pc,{children:E(Pt,{theme:r,icon:"caret"})}),E(mc,{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}`))})]});function yc(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function Wn(t,e){var n={};{var i=t;for(var r in i){var o=i[r];o!=null&&(n[yc(r)]=o)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}var vc="var(--_1wp326d0)",xc="var(--_1wp326d1)",bc={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 Sc=({className:t,children:e,theme:n=_})=>{const{main:{backgroundColor:i,minHeight:r}}=n;return E("main",{className:t,style:Wn({[vc]:r,[xc]:i}),children:e})},wc=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)",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2]},[A[2]]:{gap:e[3]}})),Tc=({isOpen:t,theme:e=_,children:n})=>(P.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),E(wc,{isOpen:t,theme:e,children:n})),Cc=O.header(({styles:t,isFixed:e,theme:{global:{paddingLeft:n,paddingRight:i},header:{height:r,gap:o,backgroundColor:s,paddingTop:a,paddingBottom:l}}})=>G({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",[A[0]]:{gap:o[1],height:r[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:i[1],paddingBottom:l[1]},[A[1]]:{gap:o[2],height:r[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:i[2],paddingBottom:l[2]},[A[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)),Pc=O.div(({theme:{header:{height:t}}})=>({height:t[0],[A[0]]:{height:t[1]},[A[1]]:{height:t[2]},[A[2]]:{height:t[3]}})),Ac=O.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[A[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"}})),Vc=({onToggleNav:t,theme:e=_,isNavOpen:n=!1,displayOnDesktop:i})=>dt(Ac,{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})]}),Ec=({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(xl,{children:[dt(Cc,{theme:r,styles:e,isFixed:n,children:[i&&E(Tc,{theme:r,isOpen:a,children:i}),t,!o&&E(Vc,{theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),n&&E(Pc,{theme:r})]})},Rc=O.footer(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},footer:{gap:i,backgroundColor:r,paddingTop:o,paddingBottom:s}}})=>G({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",[A[0]]:{gap:i[1],paddingTop:o[1],paddingLeft:e[1],paddingRight:n[1],paddingBottom:s[1]},[A[1]]:{gap:i[2],flexDirection:"row",paddingTop:o[2],paddingLeft:e[2],paddingRight:n[2],paddingBottom:s[2]},[A[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)),Mc=({children:t,styles:e={},theme:n=_})=>E(Rc,{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 Dc=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",[A[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"},[A[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,[A[1]]:{marginTop:0}},[A[1]]:{flex:l,minWidth:"auto",maxWidth:`${l}%`}}}));return G(Object.assign(s,...a),e)}),Lc=({columns:t,children:e,styles:n={},align:i=re.Left,isCentered:r=!1,isInverted:o=!1,theme:s=_})=>E(Dc,{align:i,theme:s,columns:t,isCentered:r,isInverted:o,styles:n,children:e}),_s=P.createContext({});function Ns(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const di=P.createContext(null),Us=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Oc(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",zs=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,kc={skipAnimations:!1,useManualTiming:!1},We=["read","resolveKeyframes","update","preRender","render","postRender"];function Fc(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 Ic=40;function Ws(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]=Fc(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,Ic),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]=(V,m=!1,R=!1)=>(n||p(),T.schedule(V,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:Vn}=Ws(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),Hs=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 Bc(t){for(const e in t)ae[e]={...ae[e],...t[e]}}const $c=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 on(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||$c.has(t)}let Ks=t=>!on(t);function jc(t){t&&(Ks=e=>e.startsWith("on")?!on(e):t(e))}try{jc(require("@emotion/is-prop-valid").default)}catch{}function _c(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Ks(r)||n===!0&&on(r)||!e&&!on(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const ur=new Set;function gn(t,e,n){t||ur.has(e)||(console.warn(e),ur.add(e))}function Nc(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&gn(!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 yn=P.createContext({});function vn(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 xn(t){return vn(t.animate)||gi.some(e=>Ee(t[e]))}function Gs(t){return!!(xn(t)||t.variants)}function Uc(t,e){if(xn(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 zc(t){const{initial:e,animate:n}=Uc(t,P.useContext(yn));return P.useMemo(()=>({initial:e,animate:n}),[fr(e),fr(n)])}function fr(t){return Array.isArray(t)?t.join(" "):t}const Wc=Symbol.for("motionComponentSymbol");function Xt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Hc(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):Xt(n)&&(n.current=i))},[e])}const yi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Kc="framerAppearId",qs="data-"+yi(Kc),{schedule:vi,cancel:Yp}=Ws(queueMicrotask,!1),Ys=P.createContext({});function Gc(t,e,n,i,r){var o,s;const{visualElement:a}=P.useContext(yn),l=P.useContext(Hs),c=P.useContext(di),u=P.useContext(Us).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(Ys);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&qc(f.current,n,r,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const g=n[qs],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 zs(()=>{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 qc(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:Xs(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&Xt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function Xs(t){if(t)return t.options.allowProjection!==!1?t.projection:Xs(t.parent)}function Yc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var o,s;t&&Bc(t);function a(c,u){let f;const d={...P.useContext(Us),...c,layoutId:Xc(c)},{isStatic:h}=d,p=zc(c),g=i(c,h);if(!h&&hi){Zc(d,t);const S=Jc(d);f=S.MeasureLayout,p.visualElement=Gc(r,g,d,e,S.ProjectionNode)}return Qe.jsxs(yn.Provider,{value:p,children:[f&&p.visualElement?Qe.jsx(f,{visualElement:p.visualElement,...d}):null,n(r,c,Hc(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[Wc]=r,l}function Xc({layoutId:t}){const e=P.useContext(_s).id;return e&&t!==void 0?e+"-"+t:t}function Zc(t,e){const n=P.useContext(Hs).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 Jc(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 Zs=t=>e=>typeof e=="string"&&e.startsWith(t),xi=Zs("--"),Qc=Zs("var(--"),bi=t=>Qc(t)?tu.test(t.split("/*")[0].trim()):!1,tu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Re={};function eu(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 Js(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),Qs=(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"),nu=Be("vh"),iu=Be("vw"),dr={...Et,parse:t=>Et.parse(t)/100,transform:t=>Et.transform(t*100)},ru={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},su={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={...ru,...su,zIndex:hr,size:L,fillOpacity:Me,strokeOpacity:Me,numOctaves:hr},ou={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},au=fe.length;function lu(t,e,n){let i="",r=!0;for(let o=0;o<au;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=Qs(a,Si[s]);if(!l){r=!1;const u=ou[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=Qs(c,Si[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=lu(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 to(t,e,n){for(const i in e)!it(e[i])&&!Js(i,n)&&(t[i]=e[i])}function cu({transformTemplate:t},e){return P.useMemo(()=>{const n=Ti();return wi(n,e,t),Object.assign({},n.vars,n.style)},[e])}function uu(t,e){const n=t.style||{},i={};return to(i,n,t),Object.assign(i,cu(t,e)),i}function fu(t,e){const n={},i=uu(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 du=["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:!!(du.indexOf(t)>-1||/[A-Z]/u.test(t))}const hu={offset:"stroke-dashoffset",array:"stroke-dasharray"},pu={offset:"strokeDashoffset",array:"strokeDasharray"};function mu(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?hu:pu;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 gu(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=gu(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&&mu(d,s,a,l,!1)}const eo=()=>({...Ti(),attrs:{}}),Ai=t=>typeof t=="string"&&t.toLowerCase()==="svg";function yu(t,e,n,i){const r=P.useMemo(()=>{const o=eo();return Pi(o,e,Ai(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};to(o,t.style,t),r.style={...o,...r.style}}return r}function vu(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Ci(n)?yu:fu)(i,o,s,n),c=_c(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),xu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),bu=t=>Hn(t)?t[t.length-1]||0:t;function Xe(t){const e=it(t)?t.get():t;return xu(e)?e.toValue():e}function Su({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,o){const s={latestValues:wu(i,r,o,t),renderState:e()};return n&&(s.onMount=a=>n({props:i,current:a,...s}),s.onUpdate=a=>n(a)),s}const no=t=>(e,n)=>{const i=P.useContext(yn),r=P.useContext(di),o=()=>Su(t,e,i,r);return n?o():Ns(o)};function wu(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=xn(t),c=Gs(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"&&!vn(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 V=u?T.length-1:0;T=T[V]}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])||Js(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 Tu={useVisualState:no({scrapeMotionValuesFromProps:Ei,createRenderState:Ti})};function io(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 ro(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 so=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 oo(t,e,n,i){ro(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(so.has(r)?r:yi(r),e.attrs[r])}function ao(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"],Cu={useVisualState:no({scrapeMotionValuesFromProps:ao,createRenderState:eo,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(()=>{io(n,i),U.render(()=>{Pi(i,r,Ai(n.tagName),t.transformTemplate),oo(n,i)})})}})};function Pu(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Ci(i)?Cu:Tu,preloadedFeatures:t,useRender:vu(r),createVisualElement:e,Component:i};return Yc(s)}}function De(t,e,n){const i=t.getProps();return Vi(i,e,n!==void 0?n:i.custom,t)}const Au=pi(()=>window.ScrollTimeline!==void 0);class Vu{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(Au()&&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 Eu extends Vu{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 Kn=2e4;function lo(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Kn;)e+=n,i=t.next(e);return e>=Kn?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",Ru={linearEasing:void 0};function Mu(t,e){const n=pi(t);return()=>{var i;return(i=Ru[e])!==null&&i!==void 0?i:n()}}const an=Mu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),co=(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 uo(t){return!!(typeof t=="function"&&an()||!t||typeof t=="string"&&(t in Gn||an())||Di(t)||Array.isArray(t)&&t.every(uo))}const ge=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Gn={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 fo(t,e){if(t)return typeof t=="function"&&an()?co(t,e):Di(t)?ge(t):Array.isArray(t)?t.map(n=>fo(n,e)||Gn.easeOut):Gn[t]}const St={x:!1,y:!1};function ho(){return St.x||St.y}function po(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 mo(t,e){const n=po(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function vr(t){return!(t.pointerType==="touch"||ho())}function Du(t,e,n={}){const[i,r,o]=mo(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 ln(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 go=(t,e)=>e?t===e?!0:go(t,e.parentElement):!1,Li=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Lu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ou(t){return Lu.has(t.tagName)||t.tabIndex!==-1}const ye=new WeakSet;function xr(t){return e=>{e.key==="Enter"&&t(e)}}function En(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ku=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=xr(()=>{if(ye.has(n))return;En(n,"down");const r=xr(()=>{En(n,"up")}),o=()=>En(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)&&!ho()}function Fu(t,e,n={}){const[i,r,o]=mo(t,n),s=a=>{const l=a.currentTarget;if(!l||!br(a)||ye.has(l))return;ye.add(l),ln(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",d),ln(h,"release"),!(!br(h)||!ye.has(l))&&(ye.delete(l),typeof c=="function"&&c(h,{success:p}))},f=h=>{(h.isTrusted?Iu(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)||go(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,!Ou(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,r),l&&a.addEventListener("focus",c=>ku(c,r),r)}),o}function Iu(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Bu(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 yo=new Set(["width","height","top","left","right","bottom",...fe]);let Ze;function $u(){Ze=void 0}const Rt={now:()=>(Ze===void 0&&Rt.set(J.isProcessing||kc.useManualTiming?J.timestamp:performance.now()),Ze),set:t=>{Ze=t,queueMicrotask($u)}};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 vo(t,e){return e?t*(1e3/e):0}const Sr=30,ju=t=>!isNaN(parseFloat(t));class _u{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=ju(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&gn(!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 vo(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 _u(t,e)}function Nu(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=bu(o[s]);Nu(t,s,a)}}function Uu(t){return!!(it(t)&&t.add)}function qn(t,e){const n=t.getValue("willChange");if(Uu(n))return n.add(e)}function xo(t){return t.props[qs]}const bo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,zu=1e-7,Wu=12;function Hu(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=bo(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>zu&&++a<Wu);return s}function $e(t,e,n,i){if(t===e&&n===i)return ut;const r=o=>Hu(o,0,1,t,n);return o=>o===0||o===1?o:bo(r(o),e,i)}const So=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,wo=t=>e=>1-t(1-e),To=$e(.33,1.53,.69,.99),Bi=wo(To),Co=So(Bi),Po=t=>(t*=2)<1?.5*Bi(t):.5*(2-Math.pow(2,-10*(t-1))),$i=t=>1-Math.sin(Math.acos(t)),Ao=wo($i),Vo=So($i),Eo=t=>/^0[^.\s]+$/u.test(t);function Ku(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Eo(t):!0}const xe=t=>Math.round(t*1e5)/1e5,ji=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gu(t){return t==null}const qu=/^(?:#[\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"&&qu.test(n)&&n.startsWith(t)||e&&!Gu(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ro=(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}},Yu=t=>Lt(0,255,t),Rn={...de,transform:t=>Math.round(Yu(t))},Gt={test:_i("rgb","red"),parse:Ro("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Rn.transform(t)+", "+Rn.transform(e)+", "+Rn.transform(n)+", "+xe(Me.transform(i))+")"};function Xu(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:Xu,transform:Gt.transform},Zt={test:_i("hsl","hue"),parse:Ro("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=>Gt.test(t)||Yn.test(t)||Zt.test(t),parse:t=>Gt.test(t)?Gt.parse(t):Zt.test(t)?Zt.parse(t):Yn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Gt.transform(t):Zt.transform(t)},Zu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ju(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(Zu))===null||n===void 0?void 0:n.length)||0)>0}const Mo="number",Do="color",Qu="var",tf="var(",wr="${}",ef=/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(ef,l=>(nt.test(l)?(i.color.push(o),r.push(Do),n.push(nt.parse(l))):l.startsWith(tf)?(i.var.push(o),r.push(Qu),n.push(l)):(i.number.push(o),r.push(Mo),n.push(parseFloat(l))),++o,wr)).split(wr);return{values:n,split:a,indexes:i,types:r}}function Lo(t){return Oe(t).values}function Oo(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===Mo?o+=xe(r[s]):a===Do?o+=nt.transform(r[s]):o+=r[s]}return o}}const nf=t=>typeof t=="number"?0:t;function rf(t){const e=Lo(t);return Oo(t)(e.map(nf))}const jt={test:Ju,parse:Lo,createTransformer:Oo,getAnimatableNone:rf},sf=new Set(["brightness","contrast","saturate","opacity"]);function of(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=sf.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const af=/\b([a-z-]*)\(.*?\)/gu,Xn={...jt,getAnimatableNone:t=>{const e=t.match(af);return e?e.map(of).join(" "):t}},lf={...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=>lf[t];function ko(t,e){let n=Ni(t);return n!==Xn&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const cf=new Set(["auto","none","0"]);function uf(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!cf.has(o)&&Oe(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=ko(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}},ff=new Set(["x","y","z"]),df=fe.filter(t=>!ff.has(t));function hf(t){const e=[];return df.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 Fo(){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=hf(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 Io(){qt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Jn=!0)})}function pf(){Io(),Fo()}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(Io),U.resolveKeyframes(Fo))):(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 Bo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),mf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gf(t){const e=mf.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const yf=4;function $o(t,e,n=1){Mt(n<=yf,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=gf(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return Bo(s)?parseFloat(s):s}return bi(r)?$o(r,e,n+1):r}const jo=t=>e=>e.test(t),vf={test:t=>t==="auto",parse:t=>t},_o=[de,L,Et,Bt,iu,nu,vf],Ar=t=>_o.find(jo(t));class No 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=$o(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!yo.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++)Ku(e[r])&&i.push(r);i.length&&uf(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 xf(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 bf(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:xf(t)||(n==="spring"||Mi(n))&&i}const Sf=t=>t!==null;function bn(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(Sf),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const wf=40;class Uo{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>wf?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pf(),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&&!bf(e,i,r,o))if(s)this.options.duration=0;else{l&&l(bn(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 K=(t,e,n)=>t+(e-t)*n;function Mn(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 Tf({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=Mn(l,a,t+1/3),o=Mn(l,a,t),s=Mn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function cn(t,e){return n=>n>0?e:t}const Dn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Cf=[Yn,Gt,Zt],Pf=t=>Cf.find(e=>e.test(t));function Er(t){const e=Pf(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===Zt&&(n=Tf(n)),n}const Rr=(t,e)=>{const n=Er(t),i=Er(e);if(!n||!i)return cn(t,e);const r={...n};return o=>(r.red=Dn(n.red,i.red,o),r.green=Dn(n.green,i.green,o),r.blue=Dn(n.blue,i.blue,o),r.alpha=K(n.alpha,i.alpha,o),Gt.transform(r))},Af=(t,e)=>n=>e(t(n)),je=(...t)=>t.reduce(Af),Qn=new Set(["none","hidden"]);function Vf(t,e){return Qn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ef(t,e){return n=>K(t,e,n)}function zi(t){return typeof t=="number"?Ef:typeof t=="string"?bi(t)?cn:nt.test(t)?Rr:Df:Array.isArray(t)?zo:typeof t=="object"?nt.test(t)?Rr:Rf:cn}function zo(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 Rf(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 Mf(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 Df=(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?Vf(t,e):je(zo(Mf(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.`),cn(t,e))};function Wo(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?K(t,e,n):zi(t)(t,e)}const Lf=5;function Ho(t,e,n){const i=Math.max(e-Lf,0);return vo(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 Of({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=Ff(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 kf=12;function Ff(t,e,n){let i=n;for(let r=1;r<kf;r++)i=i-t(i)/e(i);return i}function ti(t,e){return t*Math.sqrt(1-e*e)}const If=["duration","bounce"],Bf=["stiffness","damping","mass"];function Dr(t,e){return e.some(n=>t[n]!==void 0)}function $f(t){let e={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...t};if(!Dr(t,Bf)&&Dr(t,If))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=Of(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}=$f({...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 V={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):Ho(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(lo(V),Kn),R=co(D=>V.next(m*D).value,m,30);return m+"ms "+R}};return V}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),V=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:Ho(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,V(y),D(y)),m!==void 0&&y>=m?R.next(y-m):(!b&&V(y),d)}}}const jf=$e(.42,0,1,1),_f=$e(0,0,.58,1),Go=$e(.42,0,.58,1),Nf=t=>Array.isArray(t)&&typeof t[0]!="number",Or={linear:ut,easeIn:jf,easeInOut:Go,easeOut:_f,circIn:$i,circInOut:Vo,circOut:Ao,backIn:Bi,backInOut:Co,backOut:To,anticipate:Po},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 Uf(t,e,n){const i=[],r=n||Wo,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 zf(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=Uf(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 Wf(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=oe(0,e,i);t.push(K(n,1,r))}}function Hf(t){const e=[0];return Wf(e,t.length-1),e}function Kf(t,e){return t.map(n=>n*e)}function Gf(t,e){return t.map(()=>e||Go).splice(0,t.length-1)}function be({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=Nf(i)?i.map(kr):kr(i),o={done:!1,value:e[0]},s=Kf(n&&n.length===e.length?n:Hf(e),t),a=zf(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 qf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>U.update(e,!0),stop:()=>$t(e),now:()=>J.isProcessing?J.timestamp:Rt.now()}},Yf={decay:Lr,inertia:Lr,tween:be,keyframes:be,spring:Ko},Xf=t=>t/100;class Wi extends Uo{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:Yf[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(Xf,Wo(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=lo(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,V=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"&&(V=s)),T=Lt(0,1,x)*f}const m=w?{done:!1,value:l[0]}:V.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=bn(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=qf,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 Zf=new Set(["opacity","clipPath","filter","transform"]);function Jf(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=fo(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 Qf=pi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),un=10,td=2e4;function ed(t){return Mi(t.type)||t.type==="spring"||!uo(t.ease)}function nd(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<td;)i=n.sample(o),r.push(i.value),o+=un;return{times:void 0,keyframes:r,duration:o-un,ease:"linear"}}const qo={anticipate:Po,backInOut:Co,circInOut:Vo};function id(t){return t in qo}class Fr extends Uo{constructor(e){super(e);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new No(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"&&an()&&id(o)&&(o=qo[o]),ed(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:p,...g}=this.options,S=nd(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=Jf(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(bn(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-un).value,p.sample(g).value,un)}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 Qf()&&i&&Zf.has(i)&&!l&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const rd={type:"spring",stiffness:500,damping:25,restSpeed:10},sd=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),od={type:"keyframes",duration:.8},ad={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ld=(t,{keyframes:e})=>e.length>2?od:Yt.has(t)?t.startsWith("scale")?sd(e[1]):rd:ad;function cd({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};cd(a)||(u={...u,...ld(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=bn(u.keyframes,a);if(d!==void 0)return U.update(()=>{u.onUpdate(d),u.onComplete()}),new Eu([])}return!o&&Fr.supports(u)?new Fr(u):new Wi(u)};function ud({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Yo(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&&ud(u,f))continue;const p={delay:n,...Ri(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const v=xo(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&&yo.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(Yo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return fd(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 fd(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(dd).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 dd(t,e){return t.sortNodePosition(e)}function Xo(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(Yo(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Zo(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 hd=gi.length;function Jo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Jo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<hd;n++){const i=gi[n],r=t.props[i];(Ee(r)||r===!1)&&(e[i]=r)}return e}const pd=[...mi].reverse(),md=mi.length;function gd(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Xo(t,n,i)))}function yd(t){let e=gd(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=Jo(t.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let S=0;S<md;S++){const v=pd[S],w=n[v],T=c[v]!==void 0?c[v]:u[v],V=Ee(T),m=v===l?w.isActive:null;m===!1&&(p=S);let R=T===u[v]&&T!==c[v]&&V;if(R&&i&&t.manuallyAnimateOnMount&&(R=!1),w.protectedKeys={...h},!w.isActive&&m===null||!T&&!w.prevProp||vn(T)||typeof T=="boolean")continue;const D=vd(w.prevProp,T);let y=D||v===l&&w.isActive&&!R&&V||S>p&&V,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=!Zo(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 vd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Zo(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 xd extends _t{constructor(e){super(e),e.animationState||(e.animationState=yd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();vn(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 bd=0;class Sd extends _t{constructor(){super(...arguments),this.id=bd++}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 wd={animation:{Feature:xd},exit:{Feature:Sd}};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 Td=t=>e=>Li(e)&&t(e,_e(e));function Jt(t,e,n,i){return ke(t,e,Td(n),i)}function Qo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Cd({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Pd(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 ta=1e-4,Ad=1-ta,Vd=1+ta,ea=.01,Ed=0-ea,Rd=0+ea;function ot(t){return t.max-t.min}function Md(t,e,n){return Math.abs(t-e)<=n}function Br(t,e,n,i=.5){t.origin=i,t.originPoint=K(e.min,e.max,t.origin),t.scale=ot(n)/ot(e),t.translate=K(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Ad&&t.scale<=Vd||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ed&&t.translate<=Rd||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 Dd(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}),Qt=()=>({x:_r(),y:_r()}),Nr=()=>({min:0,max:0}),q=()=>({x:Nr(),y:Nr()});function yt(t){return[t("x"),t("y")]}function Ln(t){return t===void 0||t===1}function ni({scale:t,scaleX:e,scaleY:n}){return!Ln(t)||!Ln(e)||!Ln(n)}function Ht(t){return ni(t)||na(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function na(t){return Ur(t.x)||Ur(t.y)}function Ur(t){return t&&t!=="0%"}function fn(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=fn(t,r,i)),fn(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 ia(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 Ld(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&&ee(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ia(t,s)),i&&Ht(o.latestValues)&&ee(t,o.latestValues))}e.x<Hr&&e.x>Wr&&(e.x=1),e.y<Hr&&e.y>Wr&&(e.y=1)}function te(t,e){t.min=t.min+e,t.max=t.max+e}function Kr(t,e,n,i,r=.5){const o=K(t.min,t.max,r);ii(t,e,n,o,i)}function ee(t,e){Kr(t.x,e.x,e.scaleX,e.scale,e.originX),Kr(t.y,e.y,e.scaleY,e.scale,e.originY)}function ra(t,e){return Qo(Pd(t.getBoundingClientRect(),e))}function Od(t,e,n){const i=ra(t,n),{scroll:r}=e;return r&&(te(i.x,r.offset.x),te(i.y,r.offset.y)),i}const Gr=(t,e)=>Math.abs(t-e);function kd(t,e){const n=Gr(t.x,e.x),i=Gr(t.y,e.y);return Math.sqrt(n**2+i**2)}class sa{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=kn(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=kd(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=On(f,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{ln(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=kn(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:On(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=On(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=J;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,kn(s,this.history)),ln(e,"set"),this.removeListeners=je(Jt(e.currentTarget,"pointermove",this.handlePointerMove),Jt(e.currentTarget,"pointerup",this.handlePointerUp),Jt(e.currentTarget,"pointercancel",this.handlePointerUp),Jt(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$t(this.updatePoint)}}function On(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 kn({point:t},e){return{point:t,delta:qr(t,oa(e)),offset:qr(t,Fd(e)),velocity:Id(e,.1)}}function Fd(t){return t[0]}function oa(t){return t[t.length-1]}function Id(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=oa(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 Bd(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?K(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?K(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 $d(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 jd(t,e){return{x:Xr(t.x,e.x),y:Xr(t.y,e.y)}}function _d(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 Nd(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 Ud(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 zd=new WeakMap;class Wd{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=Bu(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=Hd(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 sa(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||!Ke(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=Bd(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&&Xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=$d(r.layoutBox,n):this.constraints=!1,this.elastic=Ud(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Nd(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Xt(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=Od(i,r.root,this.visualElement.getTransformPagePoint());let s=jd(r.layout.layoutBox,o);if(n){const a=n(Cd(s));this.hasMutatedConstraints=!!a,a&&(s=Qo(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(!Ke(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(!Ke(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]-K(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Xt(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]=_d({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(!Ke(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(K(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;zd.set(this.visualElement,this);const e=this.visualElement.current,n=Jt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Xt(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 Ke(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Hd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Kd extends _t{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new Wd(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 Gd extends _t{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new sa(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=Jt(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}%`}},qd={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=K(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 Yd extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=e;eu(Xd),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 aa(t){const[e,n]=Oc(),i=P.useContext(_s);return Qe.jsx(Yd,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(Ys),isPresent:e,safeToRemove:n})}const Xd={borderRadius:{...me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomLeftRadius:me,borderBottomRightRadius:me,boxShadow:qd};function Zd(t,e,n){const i=it(t)?t:Le(t);return i.start(Hi("",i,e,n)),i.animation}function Jd(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Qd=(t,e)=>t.depth-e.depth;class th{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(Qd),this.isDirty=!1,this.children.forEach(e)}}function eh(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 la=["TopLeft","TopRight","BottomLeft","BottomRight"],nh=la.length,es=t=>typeof t=="string"?parseFloat(t):t,ns=t=>typeof t=="number"||L.test(t);function ih(t,e,n,i,r,o){r?(t.opacity=K(0,n.opacity!==void 0?n.opacity:1,rh(i)),t.opacityExit=K(e.opacity!==void 0?e.opacity:1,0,sh(i))):o&&(t.opacity=K(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<nh;s++){const a=`border${la[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(K(es(l),es(c),i),0),(Et.test(c)||Et.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=K(e.rotate||0,n.rotate||0,i))}function is(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rh=ca(0,.5,Ao),sh=ca(.5,.95,ut);function ca(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=fn(t,1/n,i),r!==void 0&&(t=fn(t,1/r,i)),t}function oh(t,e=0,n=1,i=.5,r,o=t,s=t){if(Et.test(e)&&(e=parseFloat(e),e=K(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=K(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){oh(t,e[n],e[i],e[r],e.scale,o,s)}const ah=["x","scaleX","originX"],lh=["y","scaleY","originY"];function ls(t,e,n,i){as(t.x,e,ah,n?n.x:void 0,i?i.x:void 0),as(t.y,e,lh,n?n.y:void 0,i?i.y:void 0)}function cs(t){return t.translate===0&&t.scale===1}function ua(t){return cs(t.x)&&cs(t.y)}function us(t,e){return t.min===e.min&&t.max===e.max}function ch(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 fa(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 uh{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 fh(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 Fn=["","X","Y","Z"],dh={visibility:"hidden"},ps=1e3;let hh=0;function In(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function da(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=xo(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&&da(i)}function ha({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=hh++,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(gh),this.nodes.forEach(Sh),this.nodes.forEach(wh),this.nodes.forEach(yh)},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 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=Jd(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=eh(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()||Vh,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!fa(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 V={...Ri(g,"layout"),onPlay:S,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V)}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(Th),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&&da(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(xh),this.isUpdating=!1,this.nodes.forEach(bh),this.nodes.forEach(ph),this.nodes.forEach(mh),this.clearAllSnapshots();const a=Rt.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,Vn.update.process(J),Vn.preRender.process(J),Vn.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vh),this.sharedNodes.forEach(Ch)}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&&!ua(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)),Eh(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(Rh))){const{scroll:u}=this.root;u&&(te(l.x,u.offset.x),te(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),te(l.x,f.offset.x),te(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&&ee(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Ht(u.latestValues)&&ee(l,u.latestValues)}return Ht(this.latestValues)&&ee(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(),Dd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),ia(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)||na(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;Ld(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=Qt(),this.projectionDelta=Qt(),this.projectionDeltaWithTransform=Qt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Qt();(!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(Ah));this.animationProgress=0;let T;this.mixTargetDelta=V=>{const m=V/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),Ph(this.relativeTarget,this.relativeTargetOrigin,d,m),T&&ch(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=q()),gt(T,this.relativeTarget)),g&&(this.animationValues=u,ih(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=Zd(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&&pa(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),ee(a,u),Se(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new uh),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&&In("z",s,c,this.animationValues);for(let u=0;u<Fn.length;u++)In(`rotate${Fn[u]}`,s,c,this.animationValues),In(`skew${Fn[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 dh;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=fh(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 V=v.length;for(let m=0;m<V;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 ph(t){t.updateLayout()}function mh(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}):pa(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=Qt();Se(a,i,n.layoutBox);const l=Qt();s?Se(l,t.applyTransform(r,!0),n.measuredBox):Se(l,i,n.layoutBox);const c=!ua(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),fa(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 gh(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 yh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function vh(t){t.clearSnapshot()}function ms(t){t.clearMeasurements()}function xh(t){t.isLayoutDirty=!1}function bh(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 Sh(t){t.resolveTargetDelta()}function wh(t){t.calcProjection()}function Th(t){t.resetSkewAndRotation()}function Ch(t){t.removeLeadSnapshot()}function ys(t,e,n){t.translate=K(e.translate,0,n),t.scale=K(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function vs(t,e,n,i){t.min=K(e.min,n.min,i),t.max=K(e.max,n.max,i)}function Ph(t,e,n,i){vs(t.x,e.x,n.x,i),vs(t.y,e.y,n.y,i)}function Ah(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Vh={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 Eh(t){Ss(t.x),Ss(t.y)}function pa(t,e,n){return t==="position"||t==="preserve-aspect"&&!Md(ds(e),ds(n),.2)}function Rh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Mh=ha({attachResizeListener:(t,e)=>ke(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bn={current:void 0},ma=ha({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Bn.current){const t=new Mh({});t.mount(window),t.setOptions({layoutScroll:!0}),Bn.current=t}return Bn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Dh={pan:{Feature:Gd},drag:{Feature:Kd,ProjectionNode:ma,MeasureLayout:aa}};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 Lh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Du(e,(n,i)=>(ws(this.node,i,"Start"),r=>ws(this.node,r,"End"))))}unmount(){}}class Oh 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 kh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Fu(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,$n=new WeakMap,Fh=t=>{const e=si.get(t.target);e&&e(t)},Ih=t=>{t.forEach(Fh)};function Bh({root:t,...e}){const n=t||document;$n.has(n)||$n.set(n,{});const i=$n.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(Ih,{root:t,...e})),i[r]}function $h(t,e,n){const i=Bh(e);return si.set(t,n),i.observe(t),()=>{si.delete(t),i.unobserve(t)}}const jh={some:0,all:1};class _h 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:jh[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 $h(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(Nh(e,n))&&this.startObserver()}unmount(){}}function Nh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Uh={inView:{Feature:_h},tap:{Feature:kh},focus:{Feature:Oh},hover:{Feature:Lh}},zh={layout:{ProjectionNode:ma,MeasureLayout:aa}},oi={current:null},ga={current:!1};function Wh(){if(ga.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 Hh=[..._o,nt,jt],Kh=t=>Hh.find(jo(t)),Gh=new WeakMap;function qh(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"&&gn(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 Yh{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=xn(n),this.isVariantNode=Gs(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,Gh.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)),ga.current||Wh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oi.current,process.env.NODE_ENV!=="production"&&gn(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=qh(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"&&(Bo(r)||Eo(r))?r=parseFloat(r):!Kh(r)&&jt.test(n)&&(r=ko(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 ya extends Yh{constructor(){super(...arguments),this.KeyframeResolver=No}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 Xh(t){return window.getComputedStyle(t)}class Zh extends ya{constructor(){super(...arguments),this.type="html",this.renderInstance=ro}readValueFromInstance(e,n){if(Yt.has(n)){const i=Ni(n);return i&&i.default||0}else{const i=Xh(e),r=(xi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ra(e,n)}build(e,n,i){wi(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ei(e,n,i)}}class Jh extends ya{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&io(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=so.has(n)?n:yi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return ao(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){oo(e,n,i,r)}mount(e){this.isSVGTag=Ai(e.tagName),super.mount(e)}}const Qh=(t,e)=>Ci(t)?new Jh(e):new Zh(e,{allowProjection:t!==P.Fragment}),tp=Pu({...wd,...Uh,...Dh,...zh},Qh),ep=Nc(tp);function np(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 ip(t,e){if(Array.isArray(e))return ai(t,e);if(typeof e=="string")return ai(t,[e]);Ii(t,e)}function rp(){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(Xo(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=>{ip(r,i)})},stop(){e.forEach(i=>{np(i)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function sp(){const t=Ns(rp);return zs(t.mount,[]),t}const op=sp,ap={some:0,all:1};function lp(t,e,{root:n,margin:i,amount:r="some"}={}){const o=po(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:ap[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function cp(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 lp(t.current,l,c)},[e,t,n,r,i]),s}function up(){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 fp="var(--jqc4y00)",dp="var(--jqc4y01)",hp="var(--jqc4y02)",pp="var(--jqc4y03)",mp="var(--jqc4y04)",gp="var(--jqc4y05)",yp="var(--jqc4y06)",vp="var(--jqc4y07)",xp="var(--jqc4y08)",bp="var(--jqc4y09)",Sp={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",Te=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Te||{});const Tp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},Cp=({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=op(),d=up(),h=P.createRef(),{colors:p,header:{height:g},footer:{height:S},global:{paddingRight:v,paddingLeft:w},section:{paddingTop:T,paddingBottom:V},main:{backgroundColor:m}}=l,R=cp(h,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{R&&f.start("visible")},[f,R]),E("section",{id:i,ref:h,className:e,style:Wn({[dp]:`${n}`,[xp]:s?"center":"flex-start",[bp]:c||m,[hp]:r?p.defaultLightText:p.defaultText,[vp]:s?`calc(100vh - ${g[d]}px - ${S[d]}px)`:"0",[mp]:`${w[d]}px`,[gp]:`${v[d]}px`,[pp]:a?"0px":`${T[d]}px`,[yp]:u?"0px":`${V[d]}px`}),children:E(ep.div,{className:wp,initial:"hidden",animate:f,variants:Tp,style:Wn({[fp]:o===Te.Center?"center":o===Te.Right?"right":"left"}),children:t})})},Pp=O.div(({styles:t,theme:{nav:{gap:e}}})=>G({gap:e[0],display:"flex",flexDirection:"column",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2],flexDirection:"row"},[A[2]]:{gap:e[3]}},t)),Ap=({children:t,styles:e={},theme:n=_})=>E(Pp,{theme:n,styles:e,children:t}),Vp=O.div(({styles:t,theme:{navSocial:{gap:e}}})=>G({gap:e[0],marginLeft:0,marginRight:0,display:"flex",flexDirection:"row",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2]},[A[2]]:{gap:e[3]}},t)),Ep=O.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),Rp=({navSocial:t,styles:e={},theme:n=_})=>E(Vp,{theme:n,styles:e,children:t.map(({name:i,link:r},o)=>{const s=i[0].toUpperCase()+i.slice(1);return E(Ep,{children:E("a",{target:"_blank","aria-label":i,href:r,children:E(Pt,{theme:n,icon:`social${s}`})})},`navSocialItem-${o}`)})}),Mp=O.div(({styles:t,theme:{navLegal:{gap:e}}})=>G({gap:e[0],display:"flex",flexDirection:"row",[A[0]]:{gap:e[1]},[A[1]]:{gap:e[2]},[A[2]]:{gap:e[3]}},t)),Dp=({children:t,styles:e={},theme:n=_})=>E(Mp,{theme:n,styles:e,children:t}),Lp=O.form(({styles:t,theme:{form:{width:e,padding:n,backgroundColor:i}}})=>G({width:"100%",maxWidth:e,backgroundColor:i,padding:n[0],position:"relative",[A[1]]:{padding:n[1]}},t)),Op=({action:t,children:e,styles:n={},theme:i=_})=>E(Lp,{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 kp=O.div(({theme:{form:{row:{gap:t,padding:e}}},align:n,styles:i,isMessage:r})=>G({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",[A[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},i)),Fp=({children:t,theme:e=_,styles:n={},isActions:i=!1,isMessage:r=!1,align:o=Fe.Left})=>E(kp,{align:o,theme:e,styles:n,isActions:i,isMessage:r,children:t}),Ip=O.input(({styles:t,theme:{form:{input:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>G({color:n,width:"100%",border:i,lineHeight:"1.5em",fontSize:"inherit",padding:r[0],borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[A[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 Sn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(Sn||{});const va=({name:t,value:e="",styles:n={},type:i=Sn.Text,disabled:r=!1,placeholder:o="",theme:s=_,onChange:a=void 0})=>E(Ip,{type:i,id:t,name:t,theme:s,styles:n,onChange:a,disabled:r,defaultValue:e,placeholder:o}),Bp=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})`})),xa=({name:t,label:e,required:n=!1,theme:i=_})=>dt(Bp,{htmlFor:t,theme:i,children:[e,n?E("span",{children:" *"}):""]}),$p=O.div(({styles:t})=>G({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),jp=O.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),_p=O.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),Np=O.textarea(({styles:t,theme:{form:{textarea:{font:e,color:n,border:i,padding:r,borderRadius:o,backgroundColor:s,placeholder:{color:a,opacity:l}}}}})=>G({color:n,width:"100%",border:i,padding:r[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:o,backgroundColor:s,fontFamily:`var(--font-${e})`,[A[1]]:{padding:r[1]},"&:focus":{outline:i},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${s} inset`}},t)),ba=({name:t,value:e,rows:n=2,disabled:i,styles:r={},placeholder:o="",onChange:s=void 0,theme:a=_})=>E(Np,{id:t,name:t,rows:n,theme:a,styles:r,onChange:s,disabled:i,defaultValue:e,placeholder:o});var Ki=(t=>(t.Textarea="textarea",t))(Ki||{});const Up=({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=Sn.Text})=>dt($p,{styles:i,children:[e&&E(xa,{theme:c,label:e,name:t,required:o}),f===Ki.Textarea?E(ba,{value:n,rows:r,name:t,theme:c,onChange:u,disabled:s,placeholder:a}):E(va,{value:n,type:f,name:t,theme:c,onChange:u,disabled:s,placeholder:a}),l&&E(jp,{children:l instanceof Array?l.map((d,h)=>E(_p,{theme:c,children:d},h)):l})]}),zp=O.div(({styles:t,theme:{consentCookie:{overlayBlur:e,overlayOpacity:n,overlayBackgroundColor:i}}})=>G({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)),Wp=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,[A[0]]:{width:t[1],paddingTop:r[1],paddingLeft:o[1],paddingRight:s[1],paddingBottom:a[1]},[A[1]]:{width:t[2],paddingTop:r[2],paddingLeft:o[2],paddingRight:s[2],paddingBottom:a[2]},[A[2]]:{width:t[3],paddingTop:r[3],paddingLeft:o[3],paddingRight:s[3],paddingBottom:a[3]}})),Hp=O.div(({theme:{consentCookie:{actionsGap:t,actionsPaddingTop:e}}})=>({gap:t,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:e[0],justifyContent:"flex-end",[A[0]]:{paddingTop:e[1]},[A[1]]:{paddingTop:e[2]},[A[2]]:{paddingTop:e[3]}}));function Kp(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 Gp(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),Gp(i,`${c}`,o)};return P.useEffect(()=>{const c=Kp(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(zp,{theme:n,styles:t,children:dt(Wp,{theme:n,children:[e,dt(Hp,{theme:n,children:[E(Un,{onClick:()=>l(!1),children:(r==null?void 0:r.actions.reject)||"Reject"}),E(Un,{onClick:()=>l(!0),children:(r==null?void 0:r.actions.accept)||"Accept"})]})]})}):null};exports.Actions=Pl;exports.ActionsAlign=ie;exports.Button=Un;exports.ButtonSize=ve;exports.ButtonStyle=nn;exports.ButtonType=fi;exports.ButtonVariant=en;exports.Carousel=Yl;exports.Columns=Lc;exports.ColumnsAlign=re;exports.ConsentCookie=qp;exports.Footer=Mc;exports.Form=Op;exports.FormRow=Fp;exports.FormRowAlign=Fe;exports.Header=Ec;exports.Icon=Pt;exports.InputType=Sn;exports.KeyNumber=uc;exports.LanguageSwitcher=gc;exports.Logo=_l;exports.Main=Sc;exports.MainStyles=bc;exports.Modal=Ll;exports.Nav=Ap;exports.NavLegal=Dp;exports.NavSocial=Rp;exports.Section=Cp;exports.SectionAlign=Te;exports.SectionStyles=Sp;exports.TextField=Up;exports.TextFieldInput=va;exports.TextFieldLabel=xa;exports.TextFieldTextarea=ba;exports.TextareaType=Ki;exports.Video=js;exports.VideoFullWidth=dc;