@latte-macchiat-io/latte-vanilla-components 0.0.120 → 0.0.121

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,64 +1,16 @@
1
- "use strict";var Nu=Object.defineProperty;var Ts=t=>{throw TypeError(t)};var zu=(t,e,n)=>e in t?Nu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Q=(t,e,n)=>zu(t,typeof e!="symbol"?e+"":e,n),Fr=(t,e,n)=>e.has(t)||Ts("Cannot "+n);var d=(t,e,n)=>(Fr(t,e,"read from private field"),n?n.call(t):e.get(t)),$=(t,e,n)=>e.has(t)?Ts("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),I=(t,e,n,r)=>(Fr(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),L=(t,e,n)=>(Fr(t,e,"access private method"),n);var Gn=(t,e,n,r)=>({set _(i){I(t,e,i,n)},get _(){return d(t,e,r)}});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ur=require("react/jsx-runtime"),O=require("react"),k=require("@emotion/styled");function Oa(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const An=Oa(ur),Re=Oa(O);function Uu(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 Wu(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 Gu=function(){function t(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 e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Wu(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Uu(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),ge="-ms-",cr="-moz-",z="-webkit-",Va="comm",ki="rule",Ii="decl",Hu="@import",Ma="@keyframes",Ku="@layer",qu=Math.abs,Ar=String.fromCharCode,Yu=Object.assign;function Xu(t,e){return pe(t,0)^45?(((e<<2^pe(t,0))<<2^pe(t,1))<<2^pe(t,2))<<2^pe(t,3):0}function Da(t){return t.trim()}function Zu(t,e){return(t=e.exec(t))?t[0]:t}function U(t,e,n){return t.replace(e,n)}function ri(t,e){return t.indexOf(e)}function pe(t,e){return t.charCodeAt(e)|0}function Tn(t,e,n){return t.slice(e,n)}function tt(t){return t.length}function ji(t){return t.length}function Hn(t,e){return e.push(t),t}function Ju(t,e){return t.map(e).join("")}var Tr=1,nn=1,La=0,Ve=0,oe=0,an="";function Er(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:Tr,column:nn,length:o,return:""}}function fn(t,e){return Yu(Er("",null,null,"",null,null,0),t,{length:-t.length},e)}function Qu(){return oe}function ec(){return oe=Ve>0?pe(an,--Ve):0,nn--,oe===10&&(nn=1,Tr--),oe}function je(){return oe=Ve<La?pe(an,Ve++):0,nn++,oe===10&&(nn=1,Tr++),oe}function it(){return pe(an,Ve)}function Qn(){return Ve}function _n(t,e){return Tn(an,t,e)}function En(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 Fa(t){return Tr=nn=1,La=tt(an=t),Ve=0,[]}function ka(t){return an="",t}function er(t){return Da(_n(Ve-1,ii(t===91?t+2:t===40?t+1:t)))}function tc(t){for(;(oe=it())&&oe<33;)je();return En(t)>2||En(oe)>3?"":" "}function nc(t,e){for(;--e&&je()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return _n(t,Qn()+(e<6&&it()==32&&je()==32))}function ii(t){for(;je();)switch(oe){case t:return Ve;case 34:case 39:t!==34&&t!==39&&ii(oe);break;case 40:t===41&&ii(t);break;case 92:je();break}return Ve}function rc(t,e){for(;je()&&t+oe!==57;)if(t+oe===84&&it()===47)break;return"/*"+_n(e,Ve-1)+"*"+Ar(t===47?t:je())}function ic(t){for(;!En(it());)je();return _n(t,Ve)}function sc(t){return ka(tr("",null,null,null,[""],t=Fa(t),0,[0],t))}function tr(t,e,n,r,i,s,o,a,l){for(var u=0,c=0,f=o,h=0,p=0,g=0,y=1,b=1,m=1,w=0,S="",C=i,v=s,E=r,D=S;b;)switch(g=w,w=je()){case 40:if(g!=108&&pe(D,f-1)==58){ri(D+=U(er(w),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:D+=er(w);break;case 9:case 10:case 13:case 32:D+=tc(g);break;case 92:D+=nc(Qn()-1,7);continue;case 47:switch(it()){case 42:case 47:Hn(oc(rc(je(),Qn()),e,n),l);break;default:D+="/"}break;case 123*y:a[u++]=tt(D)*m;case 125*y:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+c:m==-1&&(D=U(D,/\f/g,"")),p>0&&tt(D)-f&&Hn(p>32?Ps(D+";",r,n,f-1):Ps(U(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(Hn(E=Es(D,e,n,u,c,i,a,S,C=[],v=[],f),s),w===123)if(c===0)tr(D,e,E,E,C,s,f,a,v);else switch(h===99&&pe(D,3)===110?100:h){case 100:case 108:case 109:case 115:tr(t,E,E,r&&Hn(Es(t,E,E,0,0,i,a,S,i,C=[],f),v),i,v,f,a,r?C:v);break;default:tr(D,E,E,E,[""],v,0,a,v)}}u=c=p=0,y=m=1,S=D="",f=o;break;case 58:f=1+tt(D),p=g;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&ec()==125)continue}switch(D+=Ar(w),w*y){case 38:m=c>0?1:(D+="\f",-1);break;case 44:a[u++]=(tt(D)-1)*m,m=1;break;case 64:it()===45&&(D+=er(je())),h=it(),c=f=tt(S=D+=ic(Qn())),w++;break;case 45:g===45&&tt(D)==2&&(y=0)}}return s}function Es(t,e,n,r,i,s,o,a,l,u,c){for(var f=i-1,h=i===0?s:[""],p=ji(h),g=0,y=0,b=0;g<r;++g)for(var m=0,w=Tn(t,f+1,f=qu(y=o[g])),S=t;m<p;++m)(S=Da(y>0?h[m]+" "+w:U(w,/&\f/g,h[m])))&&(l[b++]=S);return Er(t,e,n,i===0?ki:a,l,u,c)}function oc(t,e,n){return Er(t,e,n,Va,Ar(Qu()),Tn(t,2,-2),0)}function Ps(t,e,n,r){return Er(t,e,n,Ii,Tn(t,0,r),Tn(t,r+1,-1),r)}function Yt(t,e){for(var n="",r=ji(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function ac(t,e,n,r){switch(t.type){case Ku:if(t.children.length)break;case Hu:case Ii:return t.return=t.return||t.value;case Va:return"";case Ma:return t.return=t.value+"{"+Yt(t.children,r)+"}";case ki:t.value=t.props.join(",")}return tt(n=Yt(t.children,r))?t.return=t.value+"{"+n+"}":""}function lc(t){var e=ji(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function uc(t){return function(e){e.root||(e=e.return)&&t(e)}}function cc(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var fc=function(e,n,r){for(var i=0,s=0;i=s,s=it(),i===38&&s===12&&(n[r]=1),!En(s);)je();return _n(e,Ve)},hc=function(e,n){var r=-1,i=44;do switch(En(i)){case 0:i===38&&it()===12&&(n[r]=1),e[r]+=fc(Ve-1,n,r);break;case 2:e[r]+=er(i);break;case 4:if(i===44){e[++r]=it()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ar(i)}while(i=je());return e},dc=function(e,n){return ka(hc(Fa(e),n))},Rs=new WeakMap,pc=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Rs.get(r))&&!i){Rs.set(e,!0);for(var s=[],o=dc(n,s),a=r.props,l=0,u=0;l<o.length;l++)for(var c=0;c<a.length;c++,u++)e.props[u]=s[l]?o[l].replace(/&\f/g,a[c]):a[c]+" "+o[l]}}},mc=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ia(t,e){switch(Xu(t,e)){case 5103:return z+"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 z+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return z+t+cr+t+ge+t+t;case 6828:case 4268:return z+t+ge+t+t;case 6165:return z+t+ge+"flex-"+t+t;case 5187:return z+t+U(t,/(\w+).+(:[^]+)/,z+"box-$1$2"+ge+"flex-$1$2")+t;case 5443:return z+t+ge+"flex-item-"+U(t,/flex-|-self/,"")+t;case 4675:return z+t+ge+"flex-line-pack"+U(t,/align-content|flex-|-self/,"")+t;case 5548:return z+t+ge+U(t,"shrink","negative")+t;case 5292:return z+t+ge+U(t,"basis","preferred-size")+t;case 6060:return z+"box-"+U(t,"-grow","")+z+t+ge+U(t,"grow","positive")+t;case 4554:return z+U(t,/([^-])(transform)/g,"$1"+z+"$2")+t;case 6187:return U(U(U(t,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),t,"")+t;case 5495:case 3959:return U(t,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return U(U(t,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+t+t;case 4095:case 3583:case 4068:case 2532:return U(t,/(.+)-inline(.+)/,z+"$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(pe(t,e+1)){case 109:if(pe(t,e+4)!==45)break;case 102:return U(t,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+cr+(pe(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ri(t,"stretch")?Ia(U(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(pe(t,e+1)!==115)break;case 6444:switch(pe(t,tt(t)-3-(~ri(t,"!important")&&10))){case 107:return U(t,":",":"+z)+t;case 101:return U(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(pe(t,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+ge+"$2box$3")+t}break;case 5936:switch(pe(t,e+11)){case 114:return z+t+ge+U(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return z+t+ge+U(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return z+t+ge+U(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return z+t+ge+t+t}return t}var gc=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Ii:e.return=Ia(e.value,e.length);break;case Ma:return Yt([fn(e,{value:U(e.value,"@","@"+z)})],i);case ki:if(e.length)return Ju(e.props,function(s){switch(Zu(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yt([fn(e,{props:[U(s,/:(read-\w+)/,":"+cr+"$1")]})],i);case"::placeholder":return Yt([fn(e,{props:[U(s,/:(plac\w+)/,":"+z+"input-$1")]}),fn(e,{props:[U(s,/:(plac\w+)/,":"+cr+"$1")]}),fn(e,{props:[U(s,/:(plac\w+)/,ge+"input-$1")]})],i)}return""})}},yc=[gc],vc=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||yc,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),m=1;m<b.length;m++)s[b[m]]=!0;a.push(y)});var l,u=[pc,mc];{var c,f=[ac,uc(function(y){c.insert(y)})],h=lc(u.concat(i,f)),p=function(b){return Yt(sc(b),h)};l=function(b,m,w,S){c=w,p(b?b+"{"+m.styles+"}":m.styles),S&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new Gu({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return g.sheet.hydrate(a),g};function _i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function bc(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Kn={exports:{}},W={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Je=require("react/jsx-runtime"),P=require("react"),L=require("@emotion/styled");function Cs(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 Te=Cs(Je),ct=Cs(P);function ba(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 Sa(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 wa=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(Sa(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ba(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-",Qe="-moz-",I="-webkit-",Ps="comm",ai="rule",li="decl",Ta="@import",As="@keyframes",Ca="@layer",Pa=Math.abs,fn=String.fromCharCode,Aa=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 Va(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,n){return t.replace(e,n)}function $n(t,e){return t.indexOf(e)}function Q(t,e){return t.charCodeAt(e)|0}function Ce(t,e,n){return t.slice(e,n)}function Tt(t){return t.length}function ci(t){return t.length}function _e(t,e){return e.push(t),t}function Ra(t,e){return t.map(e).join("")}var dn=1,se=1,Vs=0,ft=0,q=0,ce="";function hn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:dn,column:se,length:s,return:""}}function he(t,e){return Aa(hn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Ma(){return q}function Da(){return q=ft>0?Q(ce,--ft):0,se--,q===10&&(se=1,dn--),q}function pt(){return q=ft<Vs?Q(ce,ft++):0,se++,q===10&&(se=1,dn++),q}function At(){return Q(ce,ft)}function Ke(){return ft}function Fe(t,e){return Ce(ce,t,e)}function Pe(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 Rs(t){return dn=se=1,Vs=Tt(ce=t),ft=0,[]}function Ms(t){return ce="",t}function He(t){return Es(Fe(ft-1,jn(t===91?t+2:t===40?t+1:t)))}function La(t){for(;(q=At())&&q<33;)pt();return Pe(t)>2||Pe(q)>3?"":" "}function Oa(t,e){for(;--e&&pt()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return Fe(t,Ke()+(e<6&&At()==32&&pt()==32))}function jn(t){for(;pt();)switch(q){case t:return ft;case 34:case 39:t!==34&&t!==39&&jn(q);break;case 40:t===41&&jn(t);break;case 92:pt();break}return ft}function ka(t,e){for(;pt()&&t+q!==57;)if(t+q===84&&At()===47)break;return"/*"+Fe(e,ft-1)+"*"+fn(t===47?t:pt())}function Fa(t){for(;!Pe(At());)pt();return Fe(t,ft)}function Ia(t){return Ms(Ye("",null,null,null,[""],t=Rs(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){$n(D+=B(He(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:D+=He(w);break;case 9:case 10:case 13:case 32:D+=La(p);break;case 92:D+=Oa(Ke()-1,7);continue;case 47:switch(At()){case 42:case 47:_e(Ba(ka(pt(),Ke()),e,n),l);break;default:D+="/"}break;case 123*g:a[c++]=Tt(D)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+u:v==-1&&(D=B(D,/\f/g,"")),h>0&&Tt(D)-f&&_e(h>32?Hi(D+";",i,n,f-1):Hi(B(D," ","")+";",i,n,f-2),l);break;case 59:D+=";";default:if(_e(R=Ki(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&&_e(Ki(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&&Da()==125)continue}switch(D+=fn(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+=He(pt())),d=At(),u=f=Tt(T=D+=Fa(Ke())),w++;break;case 45:p===45&&Tt(D)==2&&(g=0)}}return o}function Ki(t,e,n,i,r,o,s,a,l,c,u){for(var f=r-1,d=r===0?o:[""],h=ci(d),p=0,g=0,S=0;p<i;++p)for(var v=0,w=Ce(t,f+1,f=Pa(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 hn(t,e,n,r===0?ai:a,l,c,u)}function Ba(t,e,n){return hn(t,e,n,Ps,fn(Ma()),Ce(t,2,-2),0)}function Hi(t,e,n,i){return hn(t,e,n,li,Ce(t,0,i),Ce(t,i+1,-1),i)}function ne(t,e){for(var n="",i=ci(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function $a(t,e,n,i){switch(t.type){case Ca:if(t.children.length)break;case Ta:case li:return t.return=t.return||t.value;case Ps:return"";case As:return t.return=t.value+"{"+ne(t.children,i)+"}";case ai:t.value=t.props.join(",")}return Tt(n=ne(t.children,i))?t.return=t.value+"{"+n+"}":""}function ja(t){var e=ci(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 _a(t){return function(e){e.root||(e=e.return)&&t(e)}}function Na(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ua=function(e,n,i){for(var r=0,o=0;r=o,o=At(),r===38&&o===12&&(n[i]=1),!Pe(o);)pt();return Fe(e,ft)},za=function(e,n){var i=-1,r=44;do switch(Pe(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=Ua(ft-1,n,i);break;case 2:e[i]+=He(r);break;case 4:if(r===44){e[++i]=At()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=fn(r)}while(r=pt());return e},Wa=function(e,n){return Ms(za(Rs(e),n))},Yi=new WeakMap,Ga=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=Wa(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]}}},Ka=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ds(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+Qe+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"+Qe+(Q(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$n(t,"stretch")?Ds(B(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Q(t,e+1)!==115)break;case 6444:switch(Q(t,Tt(t)-3-(~$n(t,"!important")&&10))){case 107:return B(t,":",":"+I)+t;case 101:return B(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(Q(t,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+et+"$2box$3")+t}break;case 5936:switch(Q(t,e+11)){case 114:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+et+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+et+t+t}return t}var Ha=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case li:e.return=Ds(e.value,e.length);break;case As:return ne([he(e,{value:B(e.value,"@","@"+I)})],r);case ai:if(e.length)return Ra(e.props,function(o){switch(Va(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ne([he(e,{props:[B(o,/:(read-\w+)/,":"+Qe+"$1")]})],r);case"::placeholder":return ne([he(e,{props:[B(o,/:(plac\w+)/,":"+I+"input-$1")]}),he(e,{props:[B(o,/:(plac\w+)/,":"+Qe+"$1")]}),he(e,{props:[B(o,/:(plac\w+)/,et+"input-$1")]})],r)}return""})}},Ya=[Ha],qa=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(g){var S=g.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||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=[Ga,Ka];{var u,f=[$a,_a(function(g){u.insert(g)})],d=ja(c.concat(r,f)),h=function(S){return ne(Ia(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 wa({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 Xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Za(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 Ne={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 Os;function wc(){if(Os)return W;Os=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function S(v){if(typeof v=="object"&&v!==null){var E=v.$$typeof;switch(E){case e:switch(v=v.type,v){case l:case u:case r:case s:case i:case f:return v;default:switch(v=v&&v.$$typeof,v){case a:case c:case g:case p:case o:return v;default:return E}}case n:return E}}}function C(v){return S(v)===u}return W.AsyncMode=l,W.ConcurrentMode=u,W.ContextConsumer=a,W.ContextProvider=o,W.Element=e,W.ForwardRef=c,W.Fragment=r,W.Lazy=g,W.Memo=p,W.Portal=n,W.Profiler=s,W.StrictMode=i,W.Suspense=f,W.isAsyncMode=function(v){return C(v)||S(v)===l},W.isConcurrentMode=C,W.isContextConsumer=function(v){return S(v)===a},W.isContextProvider=function(v){return S(v)===o},W.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},W.isForwardRef=function(v){return S(v)===c},W.isFragment=function(v){return S(v)===r},W.isLazy=function(v){return S(v)===g},W.isMemo=function(v){return S(v)===p},W.isPortal=function(v){return S(v)===n},W.isProfiler=function(v){return S(v)===s},W.isStrictMode=function(v){return S(v)===i},W.isSuspense=function(v){return S(v)===f},W.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===u||v===s||v===i||v===f||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===p||v.$$typeof===o||v.$$typeof===a||v.$$typeof===c||v.$$typeof===b||v.$$typeof===m||v.$$typeof===w||v.$$typeof===y)},W.typeOf=S,W}var G={};/** @license React v16.13.1
8
+ */var qi;function Ja(){if(qi)return $;qi=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 Vs;function Sc(){return Vs||(Vs=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function S(F){return typeof F=="string"||typeof F=="function"||F===r||F===u||F===s||F===i||F===f||F===h||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===p||F.$$typeof===o||F.$$typeof===a||F.$$typeof===c||F.$$typeof===b||F.$$typeof===m||F.$$typeof===w||F.$$typeof===y)}function C(F){if(typeof F=="object"&&F!==null){var Ee=F.$$typeof;switch(Ee){case e:var et=F.type;switch(et){case l:case u:case r:case s:case i:case f:return et;default:var Rt=et&&et.$$typeof;switch(Rt){case a:case c:case g:case p:case o:return Rt;default:return Ee}}case n:return Ee}}}var v=l,E=u,D=a,x=o,T=e,A=c,P=r,B=g,J=p,ue=n,ce=s,Y=i,N=f,K=!1;function Te(F){return K||(K=!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.")),we(F)||C(F)===l}function we(F){return C(F)===u}function ht(F){return C(F)===a}function dt(F){return C(F)===o}function ze(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function _e(F){return C(F)===c}function pt(F){return C(F)===r}function De(F){return C(F)===g}function mt(F){return C(F)===p}function Ue(F){return C(F)===n}function We(F){return C(F)===s}function Et(F){return C(F)===i}function Pt(F){return C(F)===f}G.AsyncMode=v,G.ConcurrentMode=E,G.ContextConsumer=D,G.ContextProvider=x,G.Element=T,G.ForwardRef=A,G.Fragment=P,G.Lazy=B,G.Memo=J,G.Portal=ue,G.Profiler=ce,G.StrictMode=Y,G.Suspense=N,G.isAsyncMode=Te,G.isConcurrentMode=we,G.isContextConsumer=ht,G.isContextProvider=dt,G.isElement=ze,G.isForwardRef=_e,G.isFragment=pt,G.isLazy=De,G.isMemo=mt,G.isPortal=Ue,G.isProfiler=We,G.isStrictMode=Et,G.isSuspense=Pt,G.isValidElementType=S,G.typeOf=C}()),G}var Ms;function xc(){return Ms||(Ms=1,process.env.NODE_ENV==="production"?Kn.exports=wc():Kn.exports=Sc()),Kn.exports}var kr,Ds;function Cc(){if(Ds)return kr;Ds=1;var t=xc(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function o(g){return t.isMemo(g)?i:s[g.$$typeof]||e}var a=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(g,y,b){if(typeof y!="string"){if(h){var m=f(y);m&&m!==h&&p(g,m,b)}var w=l(y);u&&(w=w.concat(u(y)));for(var S=o(g),C=o(y),v=0;v<w.length;++v){var E=w[v];if(!n[E]&&!(b&&b[E])&&!(C&&C[E])&&!(S&&S[E])){var D=c(y,E);try{a(g,E,D)}catch{}}}}return g}return kr=p,kr}Cc();var Ac=!0;function Tc(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var ja=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||Ac===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Ec=function(e,n,r){ja(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function _a(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Pc={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},Rc=/[A-Z]|^ms/g,Oc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ba=function(e){return e.charCodeAt(1)===45},Ls=function(e){return e!=null&&typeof e!="boolean"},Ir=cc(function(t){return Ba(t)?t:t.replace(Rc,"-$&").toLowerCase()}),Fs=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Oc,function(r,i,s){return nt={name:i,styles:s,next:nt},i})}return Pc[e]!==1&&!Ba(e)&&typeof n=="number"&&n!==0?n+"px":n};function Pn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return nt={name:i.name,styles:i.styles,next:nt},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)nt={name:o.name,styles:o.styles,next:nt},o=o.next;var a=s.styles+";";return a}return Vc(t,e,n)}case"function":{if(t!==void 0){var l=nt,u=n(t);return nt=l,Pn(t,e,u)}break}}var c=n;return c}function Vc(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Pn(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;Ls(a)&&(r+=Ir(s)+":"+Fs(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var l=0;l<o.length;l++)Ls(o[l])&&(r+=Ir(s)+":"+Fs(s,o[l])+";");else{var u=Pn(t,e,o);switch(s){case"animation":case"animationName":{r+=Ir(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var ks=/label:\s*([^\s;{]+)\s*(;|$)/g,nt;function Mc(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";nt=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=Pn(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=Pn(n,e,t[a]),r){var l=s;i+=l[a]}ks.lastIndex=0;for(var u="",c;(c=ks.exec(i))!==null;)u+="-"+c[1];var f=_a(i)+u;return{name:f,styles:i,next:nt}}var Dc=function(e){return e()},Lc=Re.useInsertionEffect?Re.useInsertionEffect:!1,Fc=Lc||Dc,$a=Re.createContext(typeof HTMLElement<"u"?vc({key:"css"}):null);$a.Provider;var kc=function(e){return O.forwardRef(function(n,r){var i=O.useContext($a);return e(n,i,r)})},Ic=Re.createContext({}),Pr={}.hasOwnProperty,si="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Na=function(e,n){var r={};for(var i in n)Pr.call(n,i)&&(r[i]=n[i]);return r[si]=e,r},jc=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return ja(n,r,i),Fc(function(){return Ec(n,r,i)}),null},_c=kc(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[si],s=[r],o="";typeof t.className=="string"?o=Tc(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var a=Mc(s,void 0,Re.useContext(Ic));o+=e.key+"-"+a.name;var l={};for(var u in t)Pr.call(t,u)&&u!=="css"&&u!==si&&(l[u]=t[u]);return l.className=o,n&&(l.ref=n),Re.createElement(Re.Fragment,null,Re.createElement(jc,{cache:e,serialized:a,isStringTag:typeof i=="string"}),Re.createElement(i,l))}),za=_c,Bc=An.Fragment,M=function(e,n,r){return Pr.call(n,"css")?An.jsx(za,Na(e,n),r):An.jsx(e,n,r)},Me=function(e,n,r){return Pr.call(n,"css")?An.jsxs(za,Na(e,n),r):An.jsxs(e,n,r)};const oi=[640,768,1024,1680],V=oi.map(t=>`(min-width: ${t}px)`),ee=(t,e)=>{for(const n in e)e.hasOwnProperty(n)&&(e[n]instanceof Object&&t[n]instanceof Object?t[n]=ee(t[n],e[n]):t[n]=e[n]);return t},$c=k.button(({theme:{button:{minWidth:t,letterSpacing:e,fontWeight:n,color:r,backgroundColor:i,border:s,padding:o,borderRadius:a,transition:l}},styles:u,isSmall:c,isLarge:f,isDisabled:h,isOutlined:p,isSecondary:g,staticColor:y})=>ee({minWidth:t,fontWeight:n,transition:l,borderRadius:a,letterSpacing:e,position:"relative",display:"inline-block",cursor:h?"default":"pointer",pointerEvents:h?"none":"auto",padding:c?`${o.small[0]/2}px ${o.small[1]/2}px`:f?`${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}`:h?`${s.width}px ${s.style} ${s.color.disabled}`:`${s.width}px ${s.style} ${s.color.primary}`,color:p&&y?y:p&&g?i.secondary:p?i.primary:g?r.secondary:h?r.disabled:r.primary,backgroundColor:p?"transparent":y||(g?i.secondary:h?i.disabled:i.primary),[V[1]]:{padding:c?`${o.small[0]}px ${o.small[1]}px`:f?`${o.large[0]}px ${o.large[1]}px`:`${o.medium[0]}px ${o.medium[1]}px`},"&:hover":{opacity:.5}},u));var fr=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(fr||{}),hr=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(hr||{}),bn=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(bn||{}),Bi=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(Bi||{});const Is='"Goudy Bookletter 1911", sans-serif',jr='"Gill Sans", sans-serif',Ua="#FF7377",_r="#C8AE96",me="#FCEFE6",Nc="#2E2E2E",js="#CCCCCC",zc=" #888888",Se="#000000",Br=Ua,H={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:Is,defaultFont:jr},colors:{defaultText:Se,defaultLightText:me,defaultTitle:"",defaultLink:Se,defaultIcon:Se},backgroundColors:{modal:me,modalOverlay:"rgba(0, 0, 0, 0.6)",cookieConsent:me},borders:{hr:`1px solid ${_r}`,cookieConsent:`2px solid ${Se}`},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:me,secondary:Nc,disabled:zc},backgroundColor:{primary:Br,secondary:_r,disabled:js},border:{width:2,style:"solid",color:{primary:Br,secondary:_r,disabled:js}},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:Is,fontWeight:500,color:Br,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:jr,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${Se}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:jr,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${Se}`},error:{color:Ua}},header:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:me,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:me,toggleNavColor:Se,toggleNavOpenColor:Se,toggleNavBorderRadius:5},main:{minHeight:"45vh",backgroundColor:me},section:{paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},footer:{gap:[15,15,15,15],height:[60,60,120,120],backgroundColor:me,paddingTop:[15,30,50,100],paddingBottom:[15,30,50,100]},modal:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:me,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:Se,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:Se,width:[150,150,200,200],backgroundColor:me,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:me}},video:{playButton:{border:"",borderRadius:0,width:[50,50,75,75],height:[50,50,75,75],color:Se,backgroundColor:me},pauseButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Se,backgroundColor:me},soundButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Se,backgroundColor:me},closeButton:{border:"",borderRadius:0,width:[40,40,50,50],height:[40,40,50,50],color:Se,backgroundColor:me}},consentCookie:{borders:0,borderRadius:0,width:[50,50,75,75],backgroundColor:me,overlayBlur:0,overlayOpacity:.5,overlayBackgroundColor:Se,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]}},ai=({children:t,styles:e={},staticColor:n="",isPending:r=!1,isDisabled:i=!1,type:s=Bi.Button,style:o=hr.Fill,size:a=bn.Medium,onClick:l=void 0,theme:u=H,variant:c=fr.Primary})=>M($c,{type:s,theme:u,onClick:l,staticColor:n,isLarge:a===bn.Large,isSmall:a===bn.Small,styles:e,isDisabled:i||r,isOutlined:o===hr.Outline,isSecondary:c===fr.Secondary,children:t});var Xt=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Xt||{});const Uc=k.div(({align:t,styles:e,theme:{actions:{gap:n,paddingTop:r}}})=>ee({gap:n/2,width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"row",paddingTop:r/2,alignItems:t===Xt.Center?"center":"flex-start",justifyContent:t===Xt.Right?"flex-end":t===Xt.Left?"flex-start":"center",[V[2]]:{gap:n,paddingTop:r}},e)),Wc=({children:t,styles:e={},theme:n=H,align:r=Xt.Left})=>M(Uc,{theme:n,align:r,styles:e,children:t}),Gc={caret:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",close:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",arrowBack:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",arrowForward:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1",play:"M8 5v14l11-7z",pause:"M6 19h4V5H6zm8-14v14h4V5z",volumeMute:"M7 9v6h4l5 5V4l-5 5z",volumeUp:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77",socialFacebook:"M 22.2816,10.9924 C 22.2816,4.92145 17.3602,0 11.2892,0 5.21832,0 0.296875,4.92145 0.296875,10.9924 c 0,5.4865 4.019725,10.0342 9.274805,10.8588 V 14.1698 H 6.78065 V 10.9924 H 9.57168 V 8.57061 c 0,-2.75496 1.64112,-4.27672 4.15202,-4.27672 1.2023,0 2.4606,0.2147 2.4606,0.2147 v 2.70515 h -1.3861 c -1.3654,0 -1.7914,0.8474 -1.7914,1.71756 v 2.0611 h 3.0487 l -0.4874,3.1774 h -2.5613 v 7.6814 c 5.2551,-0.8246 9.2748,-5.3723 9.2748,-10.8588 z",socialInstagram:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z",socialPinterest:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z",socialLinkedIn:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z",socialSpotify:"",socialTiktok:"M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2Zm-3.281,8.725h0c-.109.011-.219.016-.328.017A3.571,3.571,0,0,1,14.4,9.129v5.493a4.061,4.061,0,1,1-4.06-4.06c.085,0,.167.008.251.013v2a2.067,2.067,0,1,0-.251,4.119A2.123,2.123,0,0,0,12.5,14.649l.02-9.331h1.914A3.564,3.564,0,0,0,17.719,8.5Z",socialX:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",socialYoutube:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"},Hc=k.svg(({styles:t})=>ee({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),Kc=k.path(({fill:t})=>({fill:t,transition:"color .5s ease"})),rt=({icon:t="",size:e=24,styles:n={},iconPath:r="",color:i=void 0,theme:s=H,viewBox:o="0 0 24 24"})=>M(Hc,{viewBox:o,width:`${e}px`,height:`${e}px`,styles:n,children:M(Kc,{d:r||Gc[t],fill:i||s.colors.defaultIcon})});var dr=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(dr||{});const qc=k.div(({theme:{modal:{overlayBlur:t,overlayOpacity:e,overlayBackgroundColor:n}},styles:r})=>ee({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:e,backgroundColor:n,backdropFilter:`blur(${t}px)`}},r)),Yc=k.div(({theme:{global:{paddingLeft:t,paddingRight:e},modal:{borders:n,width:r,borderRadius:i,backgroundColor:s,paddingTop:o,paddingLeft:a,paddingRight:l,paddingBottom:u}},align:c})=>({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:l[0],paddingBottom:u[0],transform:"translate(-50%, -50%)",maxWidth:`calc(100% - ${t[0]+e[0]}px)`,maxHeight:`calc(100% - ${t[0]+e[0]}px)`,textAlign:c===dr.Left?"left":c===dr.Right?"right":"center",[V[0]]:{width:r[1],paddingTop:o[1],paddingLeft:a[1],paddingRight:l[1],paddingBottom:u[1],maxWidth:`calc(100% - ${t[1]+e[1]}px)`,maxHeight:`calc(100% - ${t[1]+e[1]}px)`},[V[1]]:{width:r[2],paddingTop:o[2],paddingLeft:a[2],paddingRight:l[2],paddingBottom:u[2],maxWidth:`calc(100% - ${t[2]+e[2]}px)`,maxHeight:`calc(100% - ${t[2]+e[2]}px)`},[V[2]]:{width:r[3],paddingTop:o[3],paddingLeft:a[3],paddingRight:l[3],paddingBottom:u[3],maxWidth:`calc(100% - ${t[3]+e[3]}px)`,maxHeight:`calc(100% - ${t[3]+e[3]}px)`}})),Xc=k.button({top:15,border:0,right:15,zIndex:20,cursor:"pointer",position:"absolute",backgroundColor:"transparent",transition:"all 0.5s ease-in-out","&:hover":{transform:"scale(1.2)"}}),Zc=({children:t,styles:e={},align:n=dr.Left,theme:r=H,onModalHide:i=void 0})=>M(qc,{theme:r,styles:e,children:Me(Yc,{theme:r,align:n,children:[i&&M(Xc,{onClick:i,children:M(rt,{theme:r,icon:"close"})}),t]})}),Jc=k.div(({styles:t,isVideoFullWidth:e})=>ee({video:{top:"50%",left:"50%",width:"auto",minWidth:"100%",minHeight:"100%",position:"absolute",transform:"translate(-50%, -50%)",maxHeight:e?"100vw":"100%"}},t)),Qc=k.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"}})),ef=k.button(({theme:{header:{height:t},video:{closeButton:{border:e,width:n,height:r,borderRadius:i,color:s,backgroundColor:o}}}})=>({border:e,right:15,bottom:0,borderRadius:i,backgroundColor:o,width:n[0],height:r[0],cursor:"pointer",position:"absolute",top:t[0],[V[0]]:{width:n[1],height:r[1]},[V[1]]:{right:30,width:n[2],height:r[2],top:t[2]+15},[V[2]]:{width:n[3],height:r[3]},svg:{path:{fill:s}}})),tf=k.button(({isPlaying:t,theme:{video:{playButton:{border:e,width:n,height:r,borderRadius:i,color:s,backgroundColor:o}}}})=>({border:e,top:"50%",left:"50%",borderRadius:i,width:n[0],height:r[0],cursor:"pointer",position:"absolute",opacity:t?0:1,backgroundColor:o,transition:"all 0.5s ease-in-out",transform:"translate(-50%, -50%)",pointerEvents:t?"none":"auto",[V[0]]:{width:n[1],height:r[1]},[V[1]]:{width:n[2],height:r[2]},[V[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}}})),nf=k.button(({theme:{video:{pauseButton:{border:t,width:e,height:n,borderRadius:r,color:i,backgroundColor:s}}}})=>({border:t,right:50,bottom:-10,borderRadius:r,width:e[0],backgroundColor:s,height:n[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[V[0]]:{width:e[1],height:n[1]},[V[1]]:{right:75,bottom:15,width:e[2],height:n[2]},[V[2]]:{width:e[3],height:n[3]},svg:{path:{fill:i}}})),rf=k.button(({theme:{video:{soundButton:{width:t,height:e,border:n,color:r,borderRadius:i,backgroundColor:s}}}})=>({border:n,right:0,bottom:-10,borderRadius:i,backgroundColor:s,width:t[0],height:e[0],cursor:"pointer",position:"absolute",transform:"translate(-50%, -50%)",[V[0]]:{width:t[1],height:e[1]},[V[1]]:{right:15,bottom:15,width:t[2],height:e[2]},[V[0]]:{width:t[3],height:e[3]},svg:{path:{fill:r}}})),Wa=({video:t,isAutoPlay:e,styles:n={},poster:r="",startMuted:i=!1,onPlay:s=void 0,onClose:o=void 0,onEnded:a=void 0,showControls:l=!1,theme:u=H,hidePlayButton:c=!1,isVideoFullWidth:f=!1,isPlayingFullScreen:h=!1})=>{const p=O.useRef(null),[g,y]=O.useState(!1),[b,m]=O.useState(e||i),w=()=>{var x;s&&s(),(x=p.current)==null||x.play(),y(!0)},S=()=>{var x;o&&o(),(x=p.current)==null||x.pause(),y(!1)},C=()=>{var x;(x=p.current)==null||x.pause(),y(!1)},v=()=>{const x=!b;m(x),p.current&&(p.current.muted=x)},E=()=>{a&&a(),S()},D=x=>{x.key==="Escape"&&S()};return O.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)}),[p.current]),Me(Jc,{isVideoFullWidth:f,styles:n,children:[M("video",{ref:p,playsInline:!0,onEnded:E,children:M("source",{src:t,type:"video/mp4"})}),r&&M(Qc,{isPlaying:g,children:M("img",{src:r,alt:"",sizes:"2560"})}),(!c||!e)&&M(tf,{theme:u,isPlaying:g,onClick:w,"aria-label":"Play",children:M(rt,{icon:"play",size:50,theme:u})}),h&&M(ef,{theme:u,isPlaying:g,onClick:S,"aria-label":"Pause",children:M(rt,{icon:"close",size:28,theme:u})}),g&&l&&M(nf,{theme:u,isPlaying:g,"aria-label":"Pause",onClick:g?C:w,children:M(rt,{icon:"pause",size:28,theme:u})}),l&&M(rf,{theme:u,isMuted:i,onClick:v,"aria-label":"Sound",children:M(rt,{icon:b?"volumeUp":"volumeMute",size:28,theme:u})})]})},sf=k.div(({styles:t})=>ee({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),of=({children:t,styles:e={},theme:n=H})=>M(sf,{theme:n,styles:e,children:t}),af=k.div(({styles:t,isFullWidth:e,theme:{global:{paddingLeft:n,paddingRight:r}}})=>ee({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), -${r[0]}px)`:0,[V[0]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[1]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${r[1]}px)`:0},[V[1]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[2]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${r[2]}px)`:0},[V[2]]:{marginLeft:e?`min(calc((100vw - var(--max-width)) / -2), -${n[3]}px)`:0,marginRight:e?`min(calc((100vw - var(--max-width)) / -2), -${r[3]}px)`:0}},t)),lf=k.div({width:"100%",position:"relative"}),uf=k.div(({left:t,width:e,gap:n})=>({gap:n,left:t,width:e,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),cf=k.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),ff=k.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),_s=k.button(({isDisabled:t})=>({border:0,display:"block",position:"relative",pointerEvents:"auto",opacity:t?.5:1,transition:"all 0.5s ease-in-out",cursor:t?"default":"pointer","&:hover":{transform:t?"scale(1)":"scale(1.1)"}})),hf=k.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[V[1]]:{marginTop:60}}),df=k.div(({isActive:t,theme:{carousel:{bullet:{borderRadius:e,width:n,height:r,backgroundColor:i}}}})=>({borderRadius:e,backgroundColor:i,width:n[0],height:r[0],cursor:"pointer",opacity:t?1:.5,transition:"all 0.5s ease-in-out",pointerEvents:t?"none":"auto",[V[0]]:{width:n[1],height:r[1]},[V[1]]:{width:n[2],height:r[2]},[V[2]]:{width:n[3],height:r[3]},"&:hover":{transform:"scale(1.2)"}}));function pf(){const[t,e]=O.useState({width:void 0,height:void 0});return O.useEffect(()=>{function n(){e({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),t}const mf=({data:t,styles:e={},displayItem:n=1,theme:r=H,isFullWidth:i=!1,displayNavBullets:s=!1,displayNavButtons:o=!1})=>{const{width:a}=pf(),[l,u]=O.useState(0),[c,f]=O.useState(r.carousel.gap[0]),h=a!==void 0&&a>oi[1],p=a!==void 0&&a>oi[2],[g,y]=O.useState(0),[b,m]=O.useState(0),[w,S]=O.useState(0),[C,v]=O.useState(n),E=O.useRef(null),D=O.useRef(null),x=O.useRef(null),T=(A,P)=>{P<A&&-(P-A)>100&&u(B=>B!==t.length-1*C?B+1:t.length-1),P>A&&P-A>100&&u(B=>B!==0?B-1:0)};return O.useEffect(()=>{if(p){n!==1&&f(r.carousel.gap[3]),v(n);return}if(h){if(f(r.carousel.gap[2]),n===1){f(0),v(1);return}if(n===2){v(2);return}if(n===3){v(2);return}v(n/2);return}f(0),v(1)},[h,p,n]),O.useEffect(()=>{const A=E.current;return A&&y(A.getBoundingClientRect().width),window.addEventListener("resize",()=>y(A.getBoundingClientRect().width)),()=>window.removeEventListener("resize",()=>y(A.getBoundingClientRect().width))},[]),O.useEffect(()=>{var ue,ce;let A=0,P=0;const B=Y=>{A=Y.changedTouches[0].screenX},J=Y=>{P=Y.changedTouches[0].screenX,T(A,P)};(ue=E.current)==null||ue.addEventListener("touchstart",Y=>B(Y),{passive:!0}),(ce=E.current)==null||ce.addEventListener("touchend",Y=>J(Y),{passive:!0})},[]),O.useEffect(()=>{const P=(C-1)*c;x.current&&S((g-P)/C)},[C,g,c]),O.useEffect(()=>{const P=(t.length-1)*c;m(w*t.length+P)},[t,w,m,c]),Me(af,{ref:E,theme:r,styles:e,isFullWidth:i,children:[M(lf,{children:M(uf,{ref:D,width:b,gap:C===1?0:c,left:-l*w-l*c,children:t.map((A,P)=>M(cf,{ref:x,children:A},`children-${P}`))})}),o&&Me(ff,{children:[M(_s,{"aria-label":"Previous",disabled:l===0,isDisabled:l===0,onClick:()=>u(A=>A-1),children:M(rt,{theme:r,icon:"arrowBack",size:30})}),M(_s,{"aria-label":"Next",onClick:()=>u(A=>A+1),disabled:l===t.length-1*C,isDisabled:l===t.length-1*C,children:M(rt,{theme:r,icon:"arrowForward",size:30})})]}),s&&M(hf,{children:[...Array(t.length+1-C||1)].map((A,P)=>M(df,{theme:r,isActive:P===l,onClick:()=>u(P)},`carousselItem-${P}`))})]})};var hn={},pr=function(){return pr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pr.apply(this,arguments)},gf=function(){function t(e,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(s){i.startTime||(i.startTime=s);var o=s-i.startTime;i.remaining=i.duration-o,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(o,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(o,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(o/i.duration);var a=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=a?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(s){var o,a,l,u,c=s<0?"-":"";o=Math.abs(s).toFixed(i.options.decimalPlaces);var f=(o+="").split(".");if(a=f[0],l=f.length>1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var h=3,p=0,g=0,y=a.length;g<y;++g)i.options.useIndianSeparators&&g===4&&(h=2,p=1),g!==0&&p%h==0&&(u=i.options.separator+u),p++,u=a[y-g-1]+u;a=u}return i.options.numerals&&i.options.numerals.length&&(a=a.replace(/[0-9]/g,function(b){return i.options.numerals[+b]}),l=l.replace(/[0-9]/g,function(b){return i.options.numerals[+b]})),c+i.options.prefix+a+l+i.options.suffix},this.easeOutExpo=function(s,o,a,l){return a*(1-Math.pow(2,-10*s/l))*1024/1023+o},this.options=pr(pr({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof e=="string"?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(s){return s()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(e){if(e&&window&&!e.once){var n=window.innerHeight+window.scrollY,r=e.el.getBoundingClientRect(),i=r.top+window.pageYOffset,s=r.top+r.height+window.pageYOffset;s<n&&s>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>s||i>n)&&!e.paused&&e.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var n=e-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var r=this.countDown?1:-1;this.endVal=e+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(e){var n;if(this.el){var r=this.formattingFn(e);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},t.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},t.prototype.validateValue=function(e){var n=Number(e);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();const yf=Object.freeze(Object.defineProperty({__proto__:null,CountUp:gf},Symbol.toStringTag,{value:"Module"})),vf=bc(yf);var Bs;function bf(){if(Bs)return hn;Bs=1,Object.defineProperty(hn,"__esModule",{value:!0});var t=O,e=vf;function n(x,T){var A=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(A!=null){var P,B,J,ue,ce=[],Y=!0,N=!1;try{if(J=(A=A.call(x)).next,T!==0)for(;!(Y=(P=J.call(A)).done)&&(ce.push(P.value),ce.length!==T);Y=!0);}catch(K){N=!0,B=K}finally{try{if(!Y&&A.return!=null&&(ue=A.return(),Object(ue)!==ue))return}finally{if(N)throw B}}return ce}}function r(x,T){var A=Object.keys(x);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(x);T&&(P=P.filter(function(B){return Object.getOwnPropertyDescriptor(x,B).enumerable})),A.push.apply(A,P)}return A}function i(x){for(var T=1;T<arguments.length;T++){var A=arguments[T]!=null?arguments[T]:{};T%2?r(Object(A),!0).forEach(function(P){a(x,P,A[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(A)):r(Object(A)).forEach(function(P){Object.defineProperty(x,P,Object.getOwnPropertyDescriptor(A,P))})}return x}function s(x,T){if(typeof x!="object"||!x)return x;var A=x[Symbol.toPrimitive];if(A!==void 0){var P=A.call(x,T||"default");if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(x)}function o(x){var T=s(x,"string");return typeof T=="symbol"?T:String(T)}function a(x,T,A){return T=o(T),T in x?Object.defineProperty(x,T,{value:A,enumerable:!0,configurable:!0,writable:!0}):x[T]=A,x}function l(){return l=Object.assign?Object.assign.bind():function(x){for(var T=1;T<arguments.length;T++){var A=arguments[T];for(var P in A)Object.prototype.hasOwnProperty.call(A,P)&&(x[P]=A[P])}return x},l.apply(this,arguments)}function u(x,T){if(x==null)return{};var A={},P=Object.keys(x),B,J;for(J=0;J<P.length;J++)B=P[J],!(T.indexOf(B)>=0)&&(A[B]=x[B]);return A}function c(x,T){if(x==null)return{};var A=u(x,T),P,B;if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(x);for(B=0;B<J.length;B++)P=J[B],!(T.indexOf(P)>=0)&&Object.prototype.propertyIsEnumerable.call(x,P)&&(A[P]=x[P])}return A}function f(x,T){return h(x)||n(x,T)||p(x,T)||y()}function h(x){if(Array.isArray(x))return x}function p(x,T){if(x){if(typeof x=="string")return g(x,T);var A=Object.prototype.toString.call(x).slice(8,-1);if(A==="Object"&&x.constructor&&(A=x.constructor.name),A==="Map"||A==="Set")return Array.from(x);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return g(x,T)}}function g(x,T){(T==null||T>x.length)&&(T=x.length);for(var A=0,P=new Array(T);A<T;A++)P[A]=x[A];return P}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 b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?t.useLayoutEffect:t.useEffect;function m(x){var T=t.useRef(x);return b(function(){T.current=x}),t.useCallback(function(){for(var A=arguments.length,P=new Array(A),B=0;B<A;B++)P[B]=arguments[B];return T.current.apply(void 0,P)},[])}var w=function(T,A){var P=A.decimal,B=A.decimals,J=A.duration,ue=A.easingFn,ce=A.end,Y=A.formattingFn,N=A.numerals,K=A.prefix,Te=A.separator,we=A.start,ht=A.suffix,dt=A.useEasing,ze=A.useGrouping,_e=A.useIndianSeparators,pt=A.enableScrollSpy,De=A.scrollSpyDelay,mt=A.scrollSpyOnce,Ue=A.plugin;return new e.CountUp(T,ce,{startVal:we,duration:J,decimal:P,decimalPlaces:B,easingFn:ue,formattingFn:Y,numerals:N,separator:Te,prefix:K,suffix:ht,plugin:Ue,useEasing:dt,useIndianSeparators:_e,useGrouping:ze,enableScrollSpy:pt,scrollSpyDelay:De,scrollSpyOnce:mt})},S=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],C={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},v=function(T){var A=Object.fromEntries(Object.entries(T).filter(function(Ee){var et=f(Ee,2),Rt=et[1];return Rt!==void 0})),P=t.useMemo(function(){return i(i({},C),A)},[T]),B=P.ref,J=P.startOnMount,ue=P.enableReinitialize,ce=P.delay,Y=P.onEnd,N=P.onStart,K=P.onPauseResume,Te=P.onReset,we=P.onUpdate,ht=c(P,S),dt=t.useRef(),ze=t.useRef(),_e=t.useRef(!1),pt=m(function(){return w(typeof B=="string"?B:B.current,ht)}),De=m(function(Ee){var et=dt.current;if(et&&!Ee)return et;var Rt=pt();return dt.current=Rt,Rt}),mt=m(function(){var Ee=function(){return De(!0).start(function(){Y==null||Y({pauseResume:Ue,reset:We,start:Pt,update:Et})})};ce&&ce>0?ze.current=setTimeout(Ee,ce*1e3):Ee(),N==null||N({pauseResume:Ue,reset:We,update:Et})}),Ue=m(function(){De().pauseResume(),K==null||K({reset:We,start:Pt,update:Et})}),We=m(function(){De().el&&(ze.current&&clearTimeout(ze.current),De().reset(),Te==null||Te({pauseResume:Ue,start:Pt,update:Et}))}),Et=m(function(Ee){De().update(Ee),we==null||we({pauseResume:Ue,reset:We,start:Pt})}),Pt=m(function(){We(),mt()}),F=m(function(Ee){J&&(Ee&&We(),mt())});return t.useEffect(function(){_e.current?ue&&F(!0):(_e.current=!0,F())},[ue,_e,F,ce,T.start,T.suffix,T.prefix,T.duration,T.separator,T.decimals,T.decimal,T.formattingFn]),t.useEffect(function(){return function(){We()}},[We]),{start:Pt,pauseResume:Ue,reset:We,update:Et,getCountUp:De}},E=["className","redraw","containerProps","children","style"],D=function(T){var A=T.className,P=T.redraw,B=T.containerProps,J=T.children,ue=T.style,ce=c(T,E),Y=t.useRef(null),N=t.useRef(!1),K=v(i(i({},ce),{},{ref:Y,startOnMount:typeof J!="function"||T.delay===0,enableReinitialize:!1})),Te=K.start,we=K.reset,ht=K.update,dt=K.pauseResume,ze=K.getCountUp,_e=m(function(){Te()}),pt=m(function(Ue){T.preserveValue||we(),ht(Ue)}),De=m(function(){if(typeof T.children=="function"&&!(Y.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}ze()});t.useEffect(function(){De()},[De]),t.useEffect(function(){N.current&&pt(T.end)},[T.end,pt]);var mt=P&&T;return t.useEffect(function(){P&&N.current&&_e()},[_e,P,mt]),t.useEffect(function(){!P&&N.current&&_e()},[_e,P,T.start,T.suffix,T.prefix,T.duration,T.separator,T.decimals,T.decimal,T.className,T.formattingFn]),t.useEffect(function(){N.current=!0},[]),typeof J=="function"?J({countUpRef:Y,start:Te,reset:we,update:ht,pauseResume:dt,getCountUp:ze}):t.createElement("span",l({className:A,ref:Y,style:ue},B),typeof T.start<"u"?ze().formattingFn(T.start):"")};return hn.default=D,hn.useCountUp=v,hn}var wf=bf();const Sf=_i(wf);var li=new Map,qn=new WeakMap,$s=0,xf=void 0;function Cf(t){return t?(qn.has(t)||($s+=1,qn.set(t,$s.toString())),qn.get(t)):"0"}function Af(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?Cf(t.root):t[e]}`).toString()}function Tf(t){const e=Af(t);let n=li.get(e);if(!n){const r=new Map;let i;const s=new IntersectionObserver(o=>{o.forEach(a=>{var l;const u=a.isIntersecting&&i.some(c=>a.intersectionRatio>=c);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=u),(l=r.get(a.target))==null||l.forEach(c=>{c(u,a)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:s,elements:r},li.set(e,n)}return n}function Ef(t,e,n={},r=xf){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:i,observer:s,elements:o}=Tf(n),a=o.get(t)||[];return o.has(t)||o.set(t,a),a.push(e),s.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(t),s.unobserve(t)),o.size===0&&(s.disconnect(),li.delete(i))}}function Pf({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:i,triggerOnce:s,skip:o,initialInView:a,fallbackInView:l,onChange:u}={}){var c;const[f,h]=Re.useState(null),p=Re.useRef(u),[g,y]=Re.useState({inView:!!a,entry:void 0});p.current=u,Re.useEffect(()=>{if(o||!f)return;let S;return S=Ef(f,(C,v)=>{y({inView:C,entry:v}),p.current&&p.current(C,v),v.isIntersecting&&s&&S&&(S(),S=void 0)},{root:i,rootMargin:r,threshold:t,trackVisibility:n,delay:e},l),()=>{S&&S()}},[Array.isArray(t)?t.toString():t,f,i,r,s,o,n,l,e]);const b=(c=g.entry)==null?void 0:c.target,m=Re.useRef(void 0);!f&&b&&!s&&!o&&m.current!==b&&(m.current=b,y({inView:!!a,entry:void 0}));const w=[h,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}const Rf=k.div(({styles:t})=>ee({display:"flex",flexDirection:"column"},t)),Of=k.div({fontSize:"1.2em",paddingBottom:15,[V[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),Vf=({label:t,suffix:e,keyNumber:n,styles:r={},theme:i=H})=>{const[s,o]=Pf({threshold:.3,triggerOnce:!0});return Me(Rf,{ref:s,theme:i,styles:r,children:[Me(Of,{children:[M("span",{children:M(Sf,{end:o?n:0,duration:8})}),e]}),M("p",{children:t})]})},Mf=k.div(({styles:t,theme:{global:{maxWidth:e,paddingLeft:n,paddingRight:r}}})=>ee({height:0,width:"100vw",overflow:"hidden",position:"relative",left:-n[0],right:-r[0],paddingBottom:"56.25%",[V[0]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[1]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${r[1]}px)`},[V[1]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[2]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${r[2]}px)`},[V[2]]:{left:`min(calc((100vw - ${e}px) / -2), -${n[3]}px)`,right:`min(calc((100vw - ${e}px) / -2), -${r[3]}px)`}},t)),Df=({video:t,poster:e,isAutoPlay:n,styles:r={},showControls:i,startMuted:s=!1,theme:o=H})=>M(Mf,{theme:o,styles:r,children:M(Wa,{isVideoFullWidth:!0,video:t,theme:o,poster:e,isAutoPlay:n,startMuted:s,showControls:i})}),Lf=k.div(({styles:t,theme:{languageSwitcher:{width:e}}})=>ee({width:e[0],marginLeft:"auto",marginRight:"auto",position:"relative",[V[0]]:{width:e[1]},[V[1]]:{width:e[2]},[V[2]]:{width:e[3]}},t)),Ff=k.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),kf=k.select(({theme:{global:{defaultFont:t},languageSwitcher:{color:e,border:n,borderRadius:r,backgroundColor:i,paddingTop:s,paddingLeft:o,paddingRight:a,paddingBottom:l}}})=>({color:e,border:n,width:"100%",backgroundColor:i,appearance:"none",padding:"15px 30px",borderRadius:r,fontFamily:`var(--font-${t})`,paddingTop:s[0],paddingLeft:o[0],paddingRight:a[0],paddingBottom:l[0],[V[0]]:{paddingTop:s[1],paddingLeft:o[1],paddingRight:a[1],paddingBottom:l[1]},[V[1]]:{paddingTop:s[2],paddingLeft:o[2],paddingRight:a[2],paddingBottom:l[2]},[V[2]]:{paddingTop:s[3],paddingLeft:o[3],paddingRight:a[3],paddingBottom:l[3]},"&:focus":{outline:"none"}})),If=({currentLocale:t,handleChange:e,locales:n,styles:r={},theme:i=H,translations:s})=>Me(Lf,{theme:i,styles:r,children:[M(Ff,{children:M(rt,{theme:i,icon:"caret"})}),M(kf,{theme:i,value:t,onChange:e,"aria-label":"Switch Language",children:n.map((o,a)=>M("option",{value:o,disabled:o===t,children:s[o]},`locale-${a}`))})]});function Ga(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function jf(t,e){var n={};{var r=t;for(var i in r){var s=r[i];s!=null&&(n[Ga(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 _f="var(--_1wp326d0)",Bf="var(--_1wp326d1)",$f="_1wp326d2",Ns={},Nf=t=>{var{fileScope:e,css:n}=t,r=e.packageName?[e.packageName,e.filePath].join("/"):e.filePath,i=Ns[r];if(!i){var s=document.createElement("style");e.packageName&&s.setAttribute("data-package",e.packageName),s.setAttribute("data-file",e.filePath),s.setAttribute("type","text/css"),i=Ns[r]=s,document.head.appendChild(s)}i.innerHTML=n};/*! https://mths.be/cssesc v3.0.0 by @mathias */var $r,zs;function zf(){if(zs)return $r;zs=1;var t={},e=t.hasOwnProperty,n=function(l,u){if(!l)return u;var c={};for(var f in u)c[f]=e.call(l,f)?l[f]:u[f];return c},r=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,o=function a(l,u){u=n(u,a.options),u.quotes!="single"&&u.quotes!="double"&&(u.quotes="single");for(var c=u.quotes=="double"?'"':"'",f=u.isIdentifier,h=l.charAt(0),p="",g=0,y=l.length;g<y;){var b=l.charAt(g++),m=b.charCodeAt(),w=void 0;if(m<32||m>126){if(m>=55296&&m<=56319&&g<y){var S=l.charCodeAt(g++);(S&64512)==56320?m=((m&1023)<<10)+(S&1023)+65536:g--}w="\\"+m.toString(16).toUpperCase()+" "}else u.escapeEverything?r.test(b)?w="\\"+b:w="\\"+m.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(b)?w="\\"+m.toString(16).toUpperCase()+" ":b=="\\"||!f&&(b=='"'&&c==b||b=="'"&&c==b)||f&&i.test(b)?w="\\"+b:w=b;p+=w}return f&&(/^-[-\d]/.test(p)?p="\\-"+p.slice(1):/\d/.test(h)&&(p="\\3"+h+" "+p.slice(1))),p=p.replace(s,function(C,v,E){return v&&v.length%2?C:(v||"")+E}),!f&&u.wrap?c+p+c:p};return o.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},o.version="3.0.0",$r=o,$r}var Uf=zf();const Ha=_i(Uf);var Wf=class{constructor(t){const{failure:e,gotoFn:n,output:r}=this._buildTables(t);this.gotoFn=n,this.output=r,this.failure=e}_buildTables(t){const e={0:{}},n={};let r=0;for(const o of t){let a=0;for(const l of o)e[a]&&l in e[a]?a=e[a][l]:(r++,e[a][l]=r,e[r]={},a=r,n[r]=[]);n[a].push(o)}const i={},s=[];for(const o in e[0]){const a=e[0][o];i[a]=0,s.push(a)}for(;s.length>0;){const o=s.shift();if(o!==void 0)for(const a in e[o]){const l=e[o][a];s.push(l);let u=i[o];for(;u>0&&!(a in e[u]);)u=i[u];if(a in e[u]){const c=e[u][a];i[l]=c,n[l]=[...n[l],...n[c]]}else i[l]=0}}return{gotoFn:e,output:n,failure:i}}search(t){let e=0;const n=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e>0&&!(i in this.gotoFn[e]);)e=this.failure[e];if(i in this.gotoFn[e]&&(e=this.gotoFn[e][i],this.output[e].length>0)){const s=this.output[e];n.push([r,s])}}return n}match(t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];for(;e>0&&!(r in this.gotoFn[e]);)e=this.failure[e];if(r in this.gotoFn[e]&&(e=this.gotoFn[e][r],this.output[e].length>0))return!0}return!1}},Gf={appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"},nr=[Gf],Bn=()=>{if(nr.length<1)throw new Error("No adapter configured");return nr[nr.length-1]},Ka=!1,Hf=t=>{Ka||Kf(t)},Kf=t=>{if(!t)throw new Error('No adapter provided when calling "setAdapter"');Ka=!0,nr.push(t)},qa=function(){return Bn().appendCss(...arguments)},Ya=function(){return Bn().registerClassName(...arguments)},qf=function(){return Bn().registerComposition(...arguments)},Xa=function(){return Bn().markCompositionUsed(...arguments)},Yf=function(){var e=Bn();return"getIdentOption"in e?e.getIdentOption(...arguments):process.env.NODE_ENV==="production"?"short":"debug"};function $i(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var te;(function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"})(te||(te={}));var Ne;(function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"})(Ne||(Ne={}));const Us=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Xf=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Zf=new Map([[126,Ne.Element],[94,Ne.Start],[36,Ne.End],[42,Ne.Any],[33,Ne.Not],[124,Ne.Hyphen]]),Jf=new Set(["has","not","matches","is","where","host","host-context"]);function Qf(t){switch(t.type){case te.Adjacent:case te.Child:case te.Descendant:case te.Parent:case te.Sibling:case te.ColumnCombinator:return!0;default:return!1}}const eh=new Set(["contains","icontains"]);function th(t,e,n){const r=parseInt(e,16)-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function dn(t){return t.replace(Xf,th)}function Nr(t){return t===39||t===34}function Ws(t){return t===32||t===9||t===10||t===12||t===13}function nh(t){const e=[],n=Za(e,`${t}`,0);if(n<t.length)throw new Error(`Unmatched selector: ${t.slice(n)}`);return e}function Za(t,e,n){let r=[];function i(h){const p=e.slice(n+h).match(Us);if(!p)throw new Error(`Expected name, found ${e.slice(n)}`);const[g]=p;return n+=h+g.length,dn(g)}function s(h){for(n+=h;n<e.length&&Ws(e.charCodeAt(n));)n++}function o(){n+=1;const h=n;let p=1;for(;p>0&&n<e.length;n++)e.charCodeAt(n)===40&&!a(n)?p++:e.charCodeAt(n)===41&&!a(n)&&p--;if(p)throw new Error("Parenthesis not matched");return dn(e.slice(h,n-1))}function a(h){let p=0;for(;e.charCodeAt(--h)===92;)p++;return(p&1)===1}function l(){if(r.length>0&&Qf(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(h){if(r.length>0&&r[r.length-1].type===te.Descendant){r[r.length-1].type=h;return}l(),r.push({type:h})}function c(h,p){r.push({type:te.Attribute,name:h,action:p,value:i(1),namespace:null,ignoreCase:"quirks"})}function f(){if(r.length&&r[r.length-1].type===te.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");t.push(r)}if(s(0),e.length===n)return n;e:for(;n<e.length;){const h=e.charCodeAt(n);switch(h){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==te.Descendant)&&(l(),r.push({type:te.Descendant})),s(1);break}case 62:{u(te.Child),s(1);break}case 60:{u(te.Parent),s(1);break}case 126:{u(te.Sibling),s(1);break}case 43:{u(te.Adjacent),s(1);break}case 46:{c("class",Ne.Element);break}case 35:{c("id",Ne.Equals);break}case 91:{s(1);let p,g=null;e.charCodeAt(n)===124?p=i(1):e.startsWith("*|",n)?(g="*",p=i(2)):(p=i(0),e.charCodeAt(n)===124&&e.charCodeAt(n+1)!==61&&(g=p,p=i(1))),s(0);let y=Ne.Exists;const b=Zf.get(e.charCodeAt(n));if(b){if(y=b,e.charCodeAt(n+1)!==61)throw new Error("Expected `=`");s(2)}else e.charCodeAt(n)===61&&(y=Ne.Equals,s(1));let m="",w=null;if(y!=="exists"){if(Nr(e.charCodeAt(n))){const v=e.charCodeAt(n);let E=n+1;for(;E<e.length&&(e.charCodeAt(E)!==v||a(E));)E+=1;if(e.charCodeAt(E)!==v)throw new Error("Attribute value didn't end");m=dn(e.slice(n+1,E)),n=E+1}else{const v=n;for(;n<e.length&&(!Ws(e.charCodeAt(n))&&e.charCodeAt(n)!==93||a(n));)n+=1;m=dn(e.slice(v,n))}s(0);const C=e.charCodeAt(n)|32;C===115?(w=!1,s(1)):C===105&&(w=!0,s(1))}if(e.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const S={type:te.Attribute,name:p,action:y,value:m,namespace:g,ignoreCase:w};r.push(S);break}case 58:{if(e.charCodeAt(n+1)===58){r.push({type:te.PseudoElement,name:i(2).toLowerCase(),data:e.charCodeAt(n)===40?o():null});continue}const p=i(1).toLowerCase();let g=null;if(e.charCodeAt(n)===40)if(Jf.has(p)){if(Nr(e.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${p} cannot be quoted`);if(g=[],n=Za(g,e,n+1),e.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${p} (${e})`);n+=1}else{if(g=o(),eh.has(p)){const y=g.charCodeAt(0);y===g.charCodeAt(g.length-1)&&Nr(y)&&(g=g.slice(1,-1))}g=dn(g)}r.push({type:te.Pseudo,name:p,data:g});break}case 44:{f(),r=[],s(1);break}default:{if(e.startsWith("/*",n)){const y=e.indexOf("*/",n+2);if(y<0)throw new Error("Comment was not terminated");n=y+2,r.length===0&&s(0);break}let p=null,g;if(h===42)n+=1,g="*";else if(h===124){if(g="",e.charCodeAt(n+1)===124){u(te.ColumnCombinator),s(2);break}}else if(Us.test(e.slice(n)))g=i(0);else break e;e.charCodeAt(n)===124&&e.charCodeAt(n+1)!==124&&(p=g,e.charCodeAt(n+1)===42?(g="*",n+=2):g=i(1)),r.push(g==="*"?{type:te.Universal,namespace:p}:{type:te.Tag,name:g,namespace:p})}}}return f(),n}function Gs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gs(Object(n),!0).forEach(function(r){rh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rh(t,e,n){return e=ih(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ih(t){var e=sh(t,"string");return typeof e=="symbol"?e:String(e)}function sh(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Ni=Ja({});function Ja(t){return e.withOptions=n=>Ja(Hs(Hs({},t),n)),e;function e(n,...r){const i=typeof n=="string"?[n]:n.raw,{escapeSpecialCharacters:s=Array.isArray(n),trimWhitespace:o=!0}=t;let a="";for(let c=0;c<i.length;c++){let f=i[c];s&&(f=f.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),a+=f,c<r.length&&(a+=r[c])}const l=a.split(`
17
- `);let u=null;for(const c of l){const f=c.match(/^(\s+)\S+/);if(f){const h=f[1].length;u?u=Math.min(u,h):u=h}}if(u!==null){const c=u;a=l.map(f=>f[0]===" "||f[0]===" "?f.slice(c):f).join(`
18
- `)}return o&&(a=a.trim()),s&&(a=a.replace(/\\n/g,`
19
- `)),a}}/*! @license MediaQueryParser - MIT License - Tom Golden (github@tbjgolden.com) *//*! *****************************************************************************
20
- Copyright (c) Microsoft Corporation.
21
-
22
- Permission to use, copy, modify, and/or distribute this software for any
23
- purpose with or without fee is hereby granted.
24
-
25
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
26
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
28
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
29
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
30
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31
- PERFORMANCE OF THIS SOFTWARE.
32
- ***************************************************************************** */var mr=function(){return mr=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},mr.apply(this,arguments)};function ui(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function oh(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function le(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}var ah=/(\u000D|\u000C|\u000D\u000A)/g,lh=/[\u0000\uD800-\uDFFF]/g,uh=/(\/\*)[\s\S]*?(\*\/)/g,ch=function(e,n){n===void 0&&(n=0),e=e.replace(ah,`
33
- `).replace(lh,"�"),e=e.replace(uh,"");for(var r=[];n<e.length;n+=1){var i=e.charCodeAt(n);if(i===9||i===32||i===10){for(var s=e.charCodeAt(++n);s===9||s===32||s===10;)s=e.charCodeAt(++n);n-=1,r.push({type:"<whitespace-token>"})}else if(i===34){var o=Ks(e,n);if(o===null)return null;var a=le(o,2),l=a[0],u=a[1];r.push({type:"<string-token>",value:u}),n=l}else if(i===35){if(n+1<e.length){var c=e.charCodeAt(n+1);if(c===95||c>=65&&c<=90||c>=97&&c<=122||c>=128||c>=48&&c<=57||c===92&&n+2<e.length&&e.charCodeAt(n+2)!==10){var f=Qa(e,n+1)?"id":"unrestricted",o=hh(e,n+1);if(o!==null){var h=le(o,2),l=h[0],u=h[1];r.push({type:"<hash-token>",value:u.toLowerCase(),flag:f}),n=l;continue}}}r.push({type:"<delim-token>",value:i})}else if(i===39){var o=Ks(e,n);if(o===null)return null;var p=le(o,2),l=p[0],u=p[1];r.push({type:"<string-token>",value:u}),n=l}else if(i===40)r.push({type:"<(-token>"});else if(i===41)r.push({type:"<)-token>"});else if(i===43){var g=Yn(e,n);if(g===null)r.push({type:"<delim-token>",value:i});else{var y=le(g,2),l=y[0],b=y[1];b[0]==="<dimension-token>"?r.push({type:"<dimension-token>",value:b[1],unit:b[2].toLowerCase(),flag:"number"}):b[0]==="<number-token>"?r.push({type:b[0],value:b[1],flag:b[2]}):r.push({type:b[0],value:b[1],flag:"number"}),n=l}}else if(i===44)r.push({type:"<comma-token>"});else if(i===45){var m=Yn(e,n);if(m!==null){var w=le(m,2),l=w[0],b=w[1];b[0]==="<dimension-token>"?r.push({type:"<dimension-token>",value:b[1],unit:b[2].toLowerCase(),flag:"number"}):b[0]==="<number-token>"?r.push({type:b[0],value:b[1],flag:b[2]}):r.push({type:b[0],value:b[1],flag:"number"}),n=l;continue}if(n+2<e.length){var c=e.charCodeAt(n+1),S=e.charCodeAt(n+2);if(c===45&&S===62){r.push({type:"<CDC-token>"}),n+=2;continue}}var o=qs(e,n);if(o!==null){var C=le(o,3),l=C[0],u=C[1],v=C[2];r.push({type:v,value:u}),n=l;continue}r.push({type:"<delim-token>",value:i})}else if(i===46){var m=Yn(e,n);if(m===null)r.push({type:"<delim-token>",value:i});else{var E=le(m,2),l=E[0],b=E[1];b[0]==="<dimension-token>"?r.push({type:"<dimension-token>",value:b[1],unit:b[2].toLowerCase(),flag:"number"}):b[0]==="<number-token>"?r.push({type:b[0],value:b[1],flag:b[2]}):r.push({type:b[0],value:b[1],flag:"number"}),n=l;continue}}else if(i===58)r.push({type:"<colon-token>"});else if(i===59)r.push({type:"<semicolon-token>"});else if(i===60){if(n+3<e.length){var c=e.charCodeAt(n+1),S=e.charCodeAt(n+2),D=e.charCodeAt(n+3);if(c===33&&S===45&&D===45){r.push({type:"<CDO-token>"}),n+=3;continue}}r.push({type:"<delim-token>",value:i})}else if(i===64){var o=zi(e,n+1);if(o!==null){var x=le(o,2),l=x[0],u=x[1];r.push({type:"<at-keyword-token>",value:u.toLowerCase()}),n=l;continue}r.push({type:"<delim-token>",value:i})}else if(i===91)r.push({type:"<[-token>"});else if(i===92){var o=$n(e,n);if(o===null)return null;var T=le(o,2),l=T[0],u=T[1];e=e.slice(0,n)+u+e.slice(l+1),n-=1}else if(i===93)r.push({type:"<]-token>"});else if(i===123)r.push({type:"<{-token>"});else if(i===125)r.push({type:"<}-token>"});else if(i>=48&&i<=57){var o=Yn(e,n),A=le(o,2),l=A[0],b=A[1];b[0]==="<dimension-token>"?r.push({type:"<dimension-token>",value:b[1],unit:b[2].toLowerCase(),flag:"number"}):b[0]==="<number-token>"?r.push({type:b[0],value:b[1],flag:b[2]}):r.push({type:b[0],value:b[1],flag:"number"}),n=l}else if(i===95||i>=65&&i<=90||i>=97&&i<=122||i>=128){var o=qs(e,n);if(o===null)return null;var P=le(o,3),l=P[0],u=P[1],v=P[2];r.push({type:v,value:u}),n=l}else r.push({type:"<delim-token>",value:i})}return r.push({type:"<EOF-token>"}),r},Ks=function(e,n){if(e.length<=n+1)return null;for(var r=e.charCodeAt(n),i=[],s=n+1;s<e.length;s+=1){var o=e.charCodeAt(s);if(o===r)return[s,String.fromCharCode.apply(null,i)];if(o===92){var a=$n(e,s);if(a===null)return null;var l=le(a,2),u=l[0],c=l[1];i.push(c),s=u}else{if(o===10)return null;i.push(o)}}return null},Qa=function(e,n){if(e.length<=n)return!1;var r=e.charCodeAt(n);if(r===45){if(e.length<=n+1)return!1;var i=e.charCodeAt(n+1);if(i===45||i===95||i>=65&&i<=90||i>=97&&i<=122||i>=128)return!0;if(i===92){if(e.length<=n+2)return!1;var s=e.charCodeAt(n+2);return s!==10}else return!1}else{if(r===95||r>=65&&r<=90||r>=97&&r<=122||r>=128)return!0;if(r===92){if(e.length<=n+1)return!1;var i=e.charCodeAt(n+1);return i!==10}else return!1}},$n=function(e,n){if(e.length<=n+1||e.charCodeAt(n)!==92)return null;var r=e.charCodeAt(n+1);if(r===10)return null;if(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102){for(var i=[r],s=Math.min(n+7,e.length),o=n+2;o<s;o+=1){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)i.push(a);else break}if(o<e.length){var l=e.charCodeAt(o);(l===9||l===32||l===10)&&(o+=1)}return[o-1,parseInt(String.fromCharCode.apply(null,i),16)]}else return[n+1,r]},Yn=function(e,n){var r=fh(e,n);if(r===null)return null;var i=le(r,3),s=i[0],o=i[1],a=i[2],l=zi(e,s+1);if(l!==null){var u=le(l,2),c=u[0],f=u[1];return[c,["<dimension-token>",o,f]]}return s+1<e.length&&e.charCodeAt(s+1)===37?[s+1,["<percentage-token>",o]]:[s,["<number-token>",o,a]]},fh=function(e,n){if(e.length<=n)return null;var r="integer",i=[],s=e.charCodeAt(n);for((s===43||s===45)&&(n+=1,s===45&&i.push(45));n<e.length;){var o=e.charCodeAt(n);if(o>=48&&o<=57)i.push(o),n+=1;else break}if(n+1<e.length){var a=e.charCodeAt(n),l=e.charCodeAt(n+1);if(a===46&&l>=48&&l<=57)for(i.push(a,l),r="number",n+=2;n<e.length;){var o=e.charCodeAt(n);if(o>=48&&o<=57)i.push(o),n+=1;else break}}if(n+1<e.length){var a=e.charCodeAt(n),l=e.charCodeAt(n+1),u=e.charCodeAt(n+2);if(a===69||a===101){var c=l>=48&&l<=57;if(c||(l===43||l===45)&&u>=48&&u<=57)for(r="number",c?(i.push(69,l),n+=2):l===45?(i.push(69,45,u),n+=3):(i.push(69,u),n+=3);n<e.length;){var o=e.charCodeAt(n);if(o>=48&&o<=57)i.push(o),n+=1;else break}}}var f=String.fromCharCode.apply(null,i),h=r==="number"?parseFloat(f):parseInt(f);return h===-0&&(h=0),Number.isNaN(h)?null:[n-1,h,r]},hh=function(e,n){if(e.length<=n)return null;for(var r=[],i=e.charCodeAt(n);n<e.length;i=e.charCodeAt(++n)){if(i===45||i===95||i>=65&&i<=90||i>=97&&i<=122||i>=128||i>=48&&i<=57){r.push(i);continue}else{var s=$n(e,n);if(s!==null){var o=le(s,2),a=o[0],l=o[1];r.push(l),n=a;continue}}break}return n===0?null:[n-1,String.fromCharCode.apply(null,r)]},zi=function(e,n){if(e.length<=n||!Qa(e,n))return null;for(var r=[],i=e.charCodeAt(n);n<e.length;i=e.charCodeAt(++n)){if(i===45||i===95||i>=65&&i<=90||i>=97&&i<=122||i>=128||i>=48&&i<=57){r.push(i);continue}else{var s=$n(e,n);if(s!==null){var o=le(s,2),a=o[0],l=o[1];r.push(l),n=a;continue}}break}return[n-1,String.fromCharCode.apply(null,r)]},dh=function(e,n){for(var r=e.charCodeAt(n);r===9||r===32||r===10;)r=e.charCodeAt(++n);for(var i=[],s=!1;n<e.length;){if(r===41)return[n,String.fromCharCode.apply(null,i)];if(r===34||r===39||r===40)return null;if(r===9||r===32||r===10)!s&&i.length!==0&&(s=!0);else if(r===92){var o=$n(e,n);if(o===null||s)return null;var a=le(o,2),l=a[0],u=a[1];i.push(u),n=l}else{if(s)return null;i.push(r)}r=e.charCodeAt(++n)}return null},qs=function(e,n){var r=zi(e,n);if(r===null)return null;var i=le(r,2),s=i[0],o=i[1];if(o.toLowerCase()==="url"){if(e.length>s+1){var a=e.charCodeAt(s+1);if(a===40){for(var l=2;s+l<e.length;l+=1){var u=e.charCodeAt(s+l);if(u===34||u===39)return[s+1,o.toLowerCase(),"<function-token>"];if(u!==9&&u!==32&&u!==10){var c=dh(e,s+l);if(c===null)return null;var f=le(c,2),h=f[0],p=f[1];return[h,p,"<url-token>"]}}return[s+1,o.toLowerCase(),"<function-token>"]}}}else if(e.length>s+1){var a=e.charCodeAt(s+1);if(a===40)return[s+1,o.toLowerCase(),"<function-token>"]}return[s,o.toLowerCase(),"<ident-token>"]},ph=function(e){for(var n=e.length-1;n>=0;n--)e[n]=mh(e[n]);return e},mh=function(e){if(e.mediaCondition===null)return e;var n=gh(e.mediaCondition);return n.operator===null&&n.children.length===1&&"children"in n.children[0]&&(n=n.children[0]),{mediaPrefix:e.mediaPrefix,mediaType:e.mediaType,mediaCondition:n}},gh=function t(e){for(var n=e.children.length-1;n>=0;n--){var r=e.children[n];if(!("context"in r)){var i=t(r);if(i.operator===null&&i.children.length===1)e.children[n]=i.children[0];else if(i.operator===e.operator&&(i.operator==="and"||i.operator==="or")){for(var s=[n,1],o=0;o<i.children.length;o++)s.push(i.children[o]);e.children.splice.apply(e.children,s)}}}return e},Pe=function(e,n){return n instanceof Error?new Error("".concat(n.message.trim(),`
34
- `).concat(e.trim())):new Error(e.trim())},yh=function(e){return ph(vh(e))},vh=function(e){var n=ch(e.trim());if(n===null)throw Pe("Failed tokenizing");var r=0,i=n.length-1;if(n[0].type==="<at-keyword-token>"&&n[0].value==="media"){if(n[1].type!=="<whitespace-token>")throw Pe("Expected whitespace after media");r=2;for(var s=2;s<n.length-1;s++){var o=n[s];if(o.type==="<{-token>"){i=s;break}else if(o.type==="<semicolon-token>")throw Pe("Expected '{' in media query but found ';'")}}return n=n.slice(r,i),wh(n)},bh=function(e){for(var n=[],r=!1,i=0;i<e.length;i++)e[i].type==="<whitespace-token>"?(r=!0,n.length>0&&(n[n.length-1].wsAfter=!0)):(n.push(mr(mr({},e[i]),{wsBefore:r,wsAfter:!1})),r=!1);return n},wh=function(e){for(var n,r,i=[[]],s=0;s<e.length;s++){var o=e[s];o.type==="<comma-token>"?i.push([]):i[i.length-1].push(o)}var a=i.map(bh);if(a.length===1&&a[0].length===0)return[{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=a.map(function(p){return p.length===0?null:Sh(p)}),u=[];try{for(var c=oh(l),f=c.next();!f.done;f=c.next()){var h=f.value;h!==null&&u.push(h)}}catch(p){n={error:p}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(u.length===0)throw Pe("No valid media queries");return u},Sh=function(e){var n=e[0];if(n.type==="<(-token>")try{return{mediaPrefix:null,mediaType:"all",mediaCondition:zr(e,!0)}}catch(f){throw Pe("Expected media condition after '('",f)}else if(n.type==="<ident-token>"){var r=null,i=void 0,s=n.value;(s==="only"||s==="not")&&(r=s);var o=r===null?0:1;if(e.length<=o)throw Pe("Expected extra token in media query");var a=e[o];if(a.type==="<ident-token>"){var l=a.value;if(l==="all")i="all";else if(l==="print"||l==="screen")i=l;else if(l==="tty"||l==="tv"||l==="projection"||l==="handheld"||l==="braille"||l==="embossed"||l==="aural"||l==="speech")r=r==="not"?null:"not",i="all";else throw Pe("Unknown ident '".concat(l,"' in media query"))}else if(r==="not"&&a.type==="<(-token>"){var u=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];u.push.apply(u,e),u.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return{mediaPrefix:null,mediaType:"all",mediaCondition:zr(u,!0)}}catch(f){throw Pe("Expected media condition after '('",f)}}else throw Pe("Invalid media query");if(o+1===e.length)return{mediaPrefix:r,mediaType:i,mediaCondition:null};if(o+4<e.length){var c=e[o+1];if(c.type==="<ident-token>"&&c.value==="and")try{return{mediaPrefix:r,mediaType:i,mediaCondition:zr(e.slice(o+2),!1)}}catch(f){throw Pe("Expected media condition after 'and'",f)}else throw Pe("Expected 'and' after media prefix")}else throw Pe("Expected media condition after media prefix")}else throw Pe("Expected media condition or media prefix")},zr=function t(e,n,r){if(r===void 0&&(r=null),e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media condition");for(var i=e.length-1,s=0,o=0,a=0;a<e.length;a++){var l=e[a];if(l.type==="<(-token>"?(o+=1,s=Math.max(s,o)):l.type==="<)-token>"&&(o-=1),o===0){i=a;break}}if(o!==0)throw new Error(`Mismatched parens
35
- Invalid media condition`);var u,c=e.slice(0,i+1);if(s===1?u=xh(c):c[1].type==="<ident-token>"&&c[1].value==="not"?u=t(c.slice(2,-1),!0,"not"):u=t(c.slice(1,-1),!0),i===e.length-1)return{operator:r,children:[u]};var f=e[i+1];if(f.type!=="<ident-token>")throw new Error(`Invalid operator
36
- Invalid media condition`);if(r!==null&&r!==f.value)throw new Error("'".concat(f.value,"' and '").concat(r,`' must not be at same level
37
- Invalid media condition`));if(f.value==="or"&&!n)throw new Error(`Cannot use 'or' at top level of a media query
38
- Invalid media condition`);if(f.value!=="and"&&f.value!=="or")throw new Error("Invalid operator: '".concat(f.value,`'
39
- Invalid media condition`));var h=t(e.slice(i+2),n,f.value);return{operator:f.value,children:[u].concat(h.children)}},xh=function(e){if(e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media feature");for(var n=[e[0]],r=1;r<e.length;r++){if(r<e.length-2){var i=e[r],s=e[r+1],o=e[r+2];if(i.type==="<number-token>"&&i.value>0&&s.type==="<delim-token>"&&s.value===47&&o.type==="<number-token>"&&o.value>0){n.push({type:"<ratio-token>",numerator:i.value,denominator:o.value,wsBefore:i.wsBefore,wsAfter:o.wsAfter}),r+=2;continue}}n.push(e[r])}var a=n[1];if(a.type==="<ident-token>"&&n.length===3)return{context:"boolean",feature:a.value};if(n.length===5&&n[1].type==="<ident-token>"&&n[2].type==="<colon-token>"){var l=n[3];if(l.type==="<number-token>"||l.type==="<dimension-token>"||l.type==="<ratio-token>"||l.type==="<ident-token>"){var u=n[1].value,c=null,f=u.slice(0,4);f==="min-"?(c="min",u=u.slice(4)):f==="max-"&&(c="max",u=u.slice(4)),l.wsBefore,l.wsAfter;var h=ui(l,["wsBefore","wsAfter"]);return{context:"value",prefix:c,feature:u,value:h}}}else if(n.length>=5)try{var p=Ch(n);return{context:"range",feature:p.featureName,range:p}}catch(g){throw Pe("Invalid media feature",g)}throw new Error("Invalid media feature")},Ch=function(e){var n,r,i,s;if(e.length<5||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid range");var o={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},a=e[1].type==="<number-token>"||e[1].type==="<dimension-token>"||e[1].type==="<ratio-token>"||e[1].type==="<ident-token>"&&e[1].value==="infinite";if(e[2].type==="<delim-token>"){if(e[2].value===60)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?o[a?"leftOp":"rightOp"]="<=":o[a?"leftOp":"rightOp"]="<";else if(e[2].value===62)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?o[a?"leftOp":"rightOp"]=">=":o[a?"leftOp":"rightOp"]=">";else if(e[2].value===61)o[a?"leftOp":"rightOp"]="=";else throw new Error("Invalid range");if(a)o.leftToken=e[1];else if(e[1].type==="<ident-token>")o.featureName=e[1].value;else throw new Error("Invalid range");var l=2+((r=(n=o[a?"leftOp":"rightOp"])===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0),u=e[l];if(a)if(u.type==="<ident-token>"){if(o.featureName=u.value,e.length>=7){var c=e[l+1],f=e[l+2];if(c.type==="<delim-token>"){var h=c.value;if(h===60)f.type==="<delim-token>"&&f.value===61&&!f.wsBefore?o.rightOp="<=":o.rightOp="<";else if(h===62)f.type==="<delim-token>"&&f.value===61&&!f.wsBefore?o.rightOp=">=":o.rightOp=">";else throw new Error("Invalid range");var p=e[l+1+((s=(i=o.rightOp)===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0)];o.rightToken=p}else throw new Error("Invalid range")}else if(l+2!==e.length)throw new Error("Invalid range")}else throw new Error("Invalid range");else o.rightToken=u;var g=null,y=o.leftToken,b=o.leftOp,m=o.featureName,w=o.rightOp,S=o.rightToken,C=null;if(y!==null){if(y.type==="<ident-token>"){var v=y.type,E=y.value;E==="infinite"&&(C={type:v,value:E})}else if(y.type==="<number-token>"||y.type==="<dimension-token>"||y.type==="<ratio-token>"){y.wsBefore,y.wsAfter;var D=ui(y,["wsBefore","wsAfter"]);C=D}}var x=null;if(S!==null){if(S.type==="<ident-token>"){var v=S.type,E=S.value;E==="infinite"&&(x={type:v,value:E})}else if(S.type==="<number-token>"||S.type==="<dimension-token>"||S.type==="<ratio-token>"){S.wsBefore,S.wsAfter;var T=ui(S,["wsBefore","wsAfter"]);x=T}}if(C!==null&&x!==null)if((b==="<"||b==="<=")&&(w==="<"||w==="<="))g={leftToken:C,leftOp:b,featureName:m,rightOp:w,rightToken:x};else if((b===">"||b===">=")&&(w===">"||w===">="))g={leftToken:C,leftOp:b,featureName:m,rightOp:w,rightToken:x};else throw new Error("Invalid range");else C===null&&b===null&&w!==null&&x!==null?g={leftToken:C,leftOp:b,featureName:m,rightOp:w,rightToken:x}:C!==null&&b!==null&&w===null&&x===null&&(g={leftToken:C,leftOp:b,featureName:m,rightOp:w,rightToken:x});return g}else throw new Error("Invalid range")};function Ah(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Th(t){var e=Ah(t,"string");return typeof e=="symbol"?e:String(e)}function Eh(t,e,n){return e=Th(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ys(Object(n),!0).forEach(function(r){Eh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ph(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Xs(t,e){if(t==null)return{};var n=Ph(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pn(t,e){for(var n in t)e(t[n],n)}function Bt(t,e){var n={};for(var r in t)e.indexOf(r)===-1&&(n[r]=t[r]);return n}function Rh(t,e){var n={};for(var r in t)n[e(t[r],r)]=t[r];return n}function ci(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i of n)i.length!==0&&(typeof i=="string"?i.includes(" ")?ci(t,...i.trim().split(" ")):t.add(i):Array.isArray(i)&&ci(t,...i))}function Oh(t){var e=new Set;return ci(e,...t),Array.from(e).join(" ")}var Zs;function Vh(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Mh=(t,e)=>{var n=()=>{var i=new RegExp(".".concat(Vh(Ha(e,{isIdentifier:!0}))),"g");return t.replace(i,"&")},r;try{r=nh(t)}catch{throw new Error("Invalid selector: ".concat(n()))}r.forEach(i=>{try{for(var s=i.length-1;s>=-1;s--){if(!i[s])throw new Error;var o=i[s];if(o.type==="child"||o.type==="parent"||o.type==="sibling"||o.type==="adjacent"||o.type==="descendant")throw new Error;if(o.type==="attribute"&&o.name==="class"&&o.value===e)return}}catch{throw new Error(Ni(Zs||(Zs=$i([`
40
- Invalid selector: `,`
41
-
42
- Style selectors must target the '&' character (along with any modifiers), e.g. `," or ",`.
43
-
44
- This is to ensure that each style block only affects the styling of a single class.
45
-
46
- If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of `,") to 'parent', you should add ",` to 'child').
47
-
48
- If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write `,", you should instead write 'globalStyle(",`, { ... })'
49
- `])),n(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}})};class gr{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map}findOrCreateCondition(e){var n=this.ruleset.get(e);return n||(n={query:e,rules:[],children:new gr},this.ruleset.set(e,n)),n}getConditionalRulesetByPath(e){var n=this;for(var r of e){var i=n.findOrCreateCondition(r);n=i.children}return n}addRule(e,n,r){var i=this.getConditionalRulesetByPath(r),s=i.findOrCreateCondition(n);if(!s)throw new Error("Failed to add conditional rule");s.rules.push(e)}addConditionPrecedence(e,n){for(var r=this.getConditionalRulesetByPath(e),i=0;i<n.length;i++){var s,o=n[i],a=(s=r.precedenceLookup.get(o))!==null&&s!==void 0?s:new Set;for(var l of n.slice(i+1))a.add(l);r.precedenceLookup.set(o,a)}}isCompatible(e){for(var[n,r]of this.precedenceLookup.entries())for(var i of r){var s;if((s=e.precedenceLookup.get(i))!==null&&s!==void 0&&s.has(n))return!1}for(var{query:o,children:a}of e.ruleset.values()){var l=this.ruleset.get(o);if(l&&!l.children.isCompatible(a))return!1}return!0}merge(e){for(var{query:n,rules:r,children:i}of e.ruleset.values()){var s=this.ruleset.get(n);s?(s.rules.push(...r),s.children.merge(i)):this.ruleset.set(n,{query:n,rules:r,children:i})}for(var[o,a]of e.precedenceLookup.entries()){var l,u=(l=this.precedenceLookup.get(o))!==null&&l!==void 0?l:new Set;this.precedenceLookup.set(o,new Set([...u,...a]))}}mergeIfCompatible(e){return this.isCompatible(e)?(this.merge(e),!0):!1}getSortedRuleset(){var e=this,n=[],r=function(a){var l=e.ruleset.get(i);if(!l)throw new Error("Can't find condition for ".concat(i));var u=n.findIndex(c=>a.has(c.query));u>-1?n.splice(u,0,l):n.push(l)};for(var[i,s]of this.precedenceLookup.entries())r(s);return n}renderToArray(){var e=[];for(var{query:n,rules:r,children:i}of this.getSortedRuleset()){var s={};for(var o of r)s[o.selector]=kt(kt({},s[o.selector]),o.rule);Object.assign(s,...i.renderToArray()),e.push({[n]:s})}return e}}var el={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},Dh=Object.keys(el),Lh=el,Js,Qs=(t,e)=>new Error(Ni(Js||(Js=$i([`
50
- Invalid media query: "`,`"
51
-
52
- `,`
53
-
54
- Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
55
- `])),t,e)),Fh=t=>{if(t==="@media ")throw Qs(t,"Query is empty");try{yh(t)}catch(e){throw Qs(t,e.message)}},kh=["vars"],Ih=["content"],tl="__DECLARATION",jh={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function _h(t){return t.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function Bh(t,e,n,r){var i=t.slice(0,e),s=t.slice(n);return"".concat(i).concat(r).concat(s)}var $h=" ",$t=[...Dh,"@layer","@media","@supports","@container","selectors"];class Nh{constructor(e,n){this.rules=[],this.conditionalRulesets=[new gr],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map(r=>[r,r])),this.localClassNamesSearch=new Wf(e),this.layers=new Map,this.composedClassLists=n.map(r=>{var{identifier:i,classList:s}=r;return{identifier:i,regex:RegExp("(".concat(s,")"),"g")}}).reverse()}processCssObj(e){if(e.type==="fontFace"){this.fontFaceRules.push(e.rule);return}if(e.type==="property"){this.propertyRules.push(e);return}if(e.type==="keyframes"){e.rule=Object.fromEntries(Object.entries(e.rule).map(s=>{var[o,a]=s;return[o,this.transformVars(this.transformProperties(a))]})),this.keyframesRules.push(e);return}if(this.currConditionalRuleset=new gr,e.type==="layer"){var n="@layer ".concat(e.name);this.addLayer([n])}else{var r=Bt(e.rule,$t);this.addRule({selector:e.selector,rule:r}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule)}var i=this.conditionalRulesets[this.conditionalRulesets.length-1];i.mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset)}addConditionalRule(e,n){var r=this.transformVars(this.transformProperties(e.rule)),i=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var s=n[n.length-1],o=n.slice(0,n.length-1);this.currConditionalRuleset.addRule({selector:i,rule:r},s,o)}addRule(e){var n=this.transformVars(this.transformProperties(e.rule)),r=this.transformSelector(e.selector);this.rules.push({selector:r,rule:n})}addLayer(e){var n=e.join(" - ");this.layers.set(n,e)}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return pn(e,(n,r)=>{typeof n=="number"&&n!==0&&!jh[r]&&(e[r]="".concat(n,"px"))}),e}transformVars(e){var{vars:n}=e,r=Xs(e,kh);return n?kt(kt({},Rh(n,(i,s)=>Ga(s))),r):r}transformContent(e){var{content:n}=e,r=Xs(e,Ih);if(typeof n>"u")return r;var i=Array.isArray(n)?n:[n];return kt({content:i.map(s=>s&&(s.includes('"')||s.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(s))?s:'"'.concat(s,'"'))},r)}transformClassname(e){return".".concat(Ha(e,{isIdentifier:!0}))}transformSelector(e){var n=e,r=function(g){n=n.replace(s,()=>(Xa(g),g))};for(var{identifier:i,regex:s}of this.composedClassLists)r(i);if(this.localClassNamesMap.has(n))return this.transformClassname(n);for(var o=this.localClassNamesSearch.search(n),a=n.length,l=o.length-1;l>=0;l--){var[u,[c]]=o[l],f=u-c.length+1,h=a<=u;h||(a=f,n[f-1]!=="."&&(n=Bh(n,f,u+1,this.transformClassname(c))))}return n}transformSelectors(e,n,r){pn(n.selectors,(i,s)=>{if(e.type!=="local")throw new Error("Selectors are not allowed within ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));var o=this.transformSelector(s.replace(RegExp("&","g"),e.selector));Mh(o,e.selector);var a={selector:o,rule:Bt(i,$t)};r?this.addConditionalRule(a,r):this.addRule(a);var l={type:"selector",selector:o,rule:i};this.transformLayer(l,i["@layer"],r),this.transformSupports(l,i["@supports"],r),this.transformMedia(l,i["@media"],r),this.transformContainer(l,i["@container"],r)})}transformMedia(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n){var i;(i=this.currConditionalRuleset)===null||i===void 0||i.addConditionPrecedence(r,Object.keys(n).map(u=>"@media ".concat(u)));for(var[s,o]of Object.entries(n)){var a="@media ".concat(s);Fh(a);var l=[...r,a];this.addConditionalRule({selector:e.selector,rule:Bt(o,$t)},l),e.type==="local"&&(this.transformSimplePseudos(e,o,l),this.transformSelectors(e,o,l)),this.transformLayer(e,o["@layer"],l),this.transformSupports(e,o["@supports"],l),this.transformContainer(e,o["@container"],l)}}}transformContainer(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n){var i;(i=this.currConditionalRuleset)===null||i===void 0||i.addConditionPrecedence(r,Object.keys(n).map(s=>"@container ".concat(s))),pn(n,(s,o)=>{var a="@container ".concat(o),l=[...r,a];this.addConditionalRule({selector:e.selector,rule:Bt(s,$t)},l),e.type==="local"&&(this.transformSimplePseudos(e,s,l),this.transformSelectors(e,s,l)),this.transformLayer(e,s["@layer"],l),this.transformSupports(e,s["@supports"],l),this.transformMedia(e,s["@media"],l)})}}transformLayer(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n){var i;(i=this.currConditionalRuleset)===null||i===void 0||i.addConditionPrecedence(r,Object.keys(n).map(s=>"@layer ".concat(s))),pn(n,(s,o)=>{var a=[...r,"@layer ".concat(o)];this.addLayer(a),this.addConditionalRule({selector:e.selector,rule:Bt(s,$t)},a),e.type==="local"&&(this.transformSimplePseudos(e,s,a),this.transformSelectors(e,s,a)),this.transformMedia(e,s["@media"],a),this.transformSupports(e,s["@supports"],a),this.transformContainer(e,s["@container"],a)})}}transformSupports(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n){var i;(i=this.currConditionalRuleset)===null||i===void 0||i.addConditionPrecedence(r,Object.keys(n).map(s=>"@supports ".concat(s))),pn(n,(s,o)=>{var a=[...r,"@supports ".concat(o)];this.addConditionalRule({selector:e.selector,rule:Bt(s,$t)},a),e.type==="local"&&(this.transformSimplePseudos(e,s,a),this.transformSelectors(e,s,a)),this.transformLayer(e,s["@layer"],a),this.transformMedia(e,s["@media"],a),this.transformContainer(e,s["@container"],a)})}}transformSimplePseudos(e,n,r){for(var i of Object.keys(n))if(Lh[i]){if(e.type!=="local")throw new Error("Simple pseudos are not valid in ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));r?this.addConditionalRule({selector:"".concat(e.selector).concat(i),rule:n[i]},r):this.addRule({conditions:r,selector:"".concat(e.selector).concat(i),rule:n[i]})}}toCss(){var e=[];for(var n of this.fontFaceRules)e.push(St({"@font-face":n}));for(var r of this.propertyRules)e.push(St({["@property ".concat(r.name)]:r.rule}));for(var i of this.keyframesRules)e.push(St({["@keyframes ".concat(i.name)]:i.rule}));for(var s of this.layers.values()){var[o,...a]=s.reverse(),l={[o]:tl};for(var u of a)l={[u]:l};e.push(St(l))}for(var c of this.rules)e.push(St({[c.selector]:c.rule}));for(var f of this.conditionalRulesets)for(var h of f.renderToArray())e.push(St(h));return e.filter(Boolean)}}function St(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=[],r=function(o){var a=t[o];if(a&&Array.isArray(a))n.push(...a.map(u=>St({[o]:u},e)));else if(a&&typeof a=="object"){var l=Object.keys(a).length===0;l||n.push("".concat(e).concat(o,` {
56
- `).concat(St(a,e+$h),`
57
- `).concat(e,"}"))}else a===tl?n.push("".concat(e).concat(o,";")):n.push("".concat(e).concat(o.startsWith("--")?o:_h(o),": ").concat(a,";"))};for(var i of Object.keys(t))r(i);return n.join(`
58
- `)}function zh(t){var{localClassNames:e,cssObjs:n,composedClassLists:r}=t,i=new Nh(e,r);for(var s of n)i.processCssObj(s);return i.toCss()}var eo,Uh=0,to=[];function It(){if(to.length===0)throw new Error(Ni(eo||(eo=$i([`
59
- Styles were unable to be assigned to a file. This is generally caused by one of the following:
60
-
61
- - You may have created styles outside of a '.css.ts' context
62
- - You may have incorrect configuration. See https://vanilla-extract.style/documentation/getting-started
63
- `]))));return to[0]}function Wh(){return Uh++}const Nt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,nl=new Set,fi=typeof process=="object"&&process?process:{},rl=(t,e,n,r)=>{typeof fi.emitWarning=="function"?fi.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)};let yr=globalThis.AbortController,no=globalThis.AbortSignal;var Ea;if(typeof yr>"u"){no=class{constructor(){Q(this,"onabort");Q(this,"_onabort",[]);Q(this,"reason");Q(this,"aborted",!1)}addEventListener(r,i){this._onabort.push(i)}},yr=class{constructor(){Q(this,"signal",new no);e()}abort(r){var i,s;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const o of this.signal._onabort)o(r);(s=(i=this.signal).onabort)==null||s.call(i,r)}}};let t=((Ea=fi.env)==null?void 0:Ea.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,rl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const Gh=t=>!nl.has(t),gt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),il=t=>gt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?rr:null:null;class rr extends Array{constructor(e){super(e),this.fill(0)}}var Jt;const Mt=class Mt{constructor(e,n){Q(this,"heap");Q(this,"length");if(!d(Mt,Jt))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=il(e);if(!n)return[];I(Mt,Jt,!0);const r=new Mt(e,n);return I(Mt,Jt,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Jt=new WeakMap,$(Mt,Jt,!1);let hi=Mt;var Pa,Ra,He,Le,Ke,qe,Qt,en,ae,Ye,se,Z,_,xe,Fe,ye,fe,Xe,he,Ze,Je,ke,Qe,xt,Ce,R,pi,Lt,ut,In,Ie,sl,Ft,tn,jn,yt,vt,mi,ir,sr,X,gi,gn,bt,yi;const As=class As{constructor(e){$(this,R);$(this,He);$(this,Le);$(this,Ke);$(this,qe);$(this,Qt);$(this,en);Q(this,"ttl");Q(this,"ttlResolution");Q(this,"ttlAutopurge");Q(this,"updateAgeOnGet");Q(this,"updateAgeOnHas");Q(this,"allowStale");Q(this,"noDisposeOnSet");Q(this,"noUpdateTTL");Q(this,"maxEntrySize");Q(this,"sizeCalculation");Q(this,"noDeleteOnFetchRejection");Q(this,"noDeleteOnStaleGet");Q(this,"allowStaleOnFetchAbort");Q(this,"allowStaleOnFetchRejection");Q(this,"ignoreFetchAbort");$(this,ae);$(this,Ye);$(this,se);$(this,Z);$(this,_);$(this,xe);$(this,Fe);$(this,ye);$(this,fe);$(this,Xe);$(this,he);$(this,Ze);$(this,Je);$(this,ke);$(this,Qe);$(this,xt);$(this,Ce);$(this,Lt,()=>{});$(this,ut,()=>{});$(this,In,()=>{});$(this,Ie,()=>!1);$(this,Ft,e=>{});$(this,tn,(e,n,r)=>{});$(this,jn,(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Q(this,Pa,"LRUCache");const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:b,memoMethod:m,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:v,ignoreFetchAbort:E}=e;if(n!==0&&!gt(n))throw new TypeError("max option must be a nonnegative integer");const D=n?il(n):Array;if(!D)throw new Error("invalid max value: "+n);if(I(this,He,n),I(this,Le,p),this.maxEntrySize=g||d(this,Le),this.sizeCalculation=y,this.sizeCalculation){if(!d(this,Le)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(m!==void 0&&typeof m!="function")throw new TypeError("memoMethod must be a function if defined");if(I(this,en,m),b!==void 0&&typeof b!="function")throw new TypeError("fetchMethod must be a function if specified");if(I(this,Qt,b),I(this,xt,!!b),I(this,se,new Map),I(this,Z,new Array(n).fill(void 0)),I(this,_,new Array(n).fill(void 0)),I(this,xe,new D(n)),I(this,Fe,new D(n)),I(this,ye,0),I(this,fe,0),I(this,Xe,hi.create(n)),I(this,ae,0),I(this,Ye,0),typeof u=="function"&&I(this,Ke,u),typeof c=="function"?(I(this,qe,c),I(this,he,[])):(I(this,qe,void 0),I(this,he,void 0)),I(this,Qe,!!d(this,Ke)),I(this,Ce,!!d(this,qe)),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!E,this.maxEntrySize!==0){if(d(this,Le)!==0&&!gt(d(this,Le)))throw new TypeError("maxSize must be a positive integer if specified");if(!gt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");L(this,R,sl).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=gt(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=r||0,this.ttl){if(!gt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");L(this,R,pi).call(this)}if(d(this,He)===0&&this.ttl===0&&d(this,Le)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!d(this,He)&&!d(this,Le)){const x="LRU_CACHE_UNBOUNDED";Gh(x)&&(nl.add(x),rl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",x,As))}}static unsafeExposeInternals(e){return{starts:d(e,Je),ttls:d(e,ke),sizes:d(e,Ze),keyMap:d(e,se),keyList:d(e,Z),valList:d(e,_),next:d(e,xe),prev:d(e,Fe),get head(){return d(e,ye)},get tail(){return d(e,fe)},free:d(e,Xe),isBackgroundFetch:n=>{var r;return L(r=e,R,X).call(r,n)},backgroundFetch:(n,r,i,s)=>{var o;return L(o=e,R,sr).call(o,n,r,i,s)},moveToTail:n=>{var r;return L(r=e,R,gn).call(r,n)},indexes:n=>{var r;return L(r=e,R,yt).call(r,n)},rindexes:n=>{var r;return L(r=e,R,vt).call(r,n)},isStale:n=>{var r;return d(r=e,Ie).call(r,n)}}}get max(){return d(this,He)}get maxSize(){return d(this,Le)}get calculatedSize(){return d(this,Ye)}get size(){return d(this,ae)}get fetchMethod(){return d(this,Qt)}get memoMethod(){return d(this,en)}get dispose(){return d(this,Ke)}get disposeAfter(){return d(this,qe)}getRemainingTTL(e){return d(this,se).has(e)?1/0:0}*entries(){for(const e of L(this,R,yt).call(this))d(this,_)[e]!==void 0&&d(this,Z)[e]!==void 0&&!L(this,R,X).call(this,d(this,_)[e])&&(yield[d(this,Z)[e],d(this,_)[e]])}*rentries(){for(const e of L(this,R,vt).call(this))d(this,_)[e]!==void 0&&d(this,Z)[e]!==void 0&&!L(this,R,X).call(this,d(this,_)[e])&&(yield[d(this,Z)[e],d(this,_)[e]])}*keys(){for(const e of L(this,R,yt).call(this)){const n=d(this,Z)[e];n!==void 0&&!L(this,R,X).call(this,d(this,_)[e])&&(yield n)}}*rkeys(){for(const e of L(this,R,vt).call(this)){const n=d(this,Z)[e];n!==void 0&&!L(this,R,X).call(this,d(this,_)[e])&&(yield n)}}*values(){for(const e of L(this,R,yt).call(this))d(this,_)[e]!==void 0&&!L(this,R,X).call(this,d(this,_)[e])&&(yield d(this,_)[e])}*rvalues(){for(const e of L(this,R,vt).call(this))d(this,_)[e]!==void 0&&!L(this,R,X).call(this,d(this,_)[e])&&(yield d(this,_)[e])}[(Ra=Symbol.iterator,Pa=Symbol.toStringTag,Ra)](){return this.entries()}find(e,n={}){for(const r of L(this,R,yt).call(this)){const i=d(this,_)[r],s=L(this,R,X).call(this,i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,d(this,Z)[r],this))return this.get(d(this,Z)[r],n)}}forEach(e,n=this){for(const r of L(this,R,yt).call(this)){const i=d(this,_)[r],s=L(this,R,X).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,d(this,Z)[r],this)}}rforEach(e,n=this){for(const r of L(this,R,vt).call(this)){const i=d(this,_)[r],s=L(this,R,X).call(this,i)?i.__staleWhileFetching:i;s!==void 0&&e.call(n,s,d(this,Z)[r],this)}}purgeStale(){let e=!1;for(const n of L(this,R,vt).call(this,{allowStale:!0}))d(this,Ie).call(this,n)&&(L(this,R,bt).call(this,d(this,Z)[n],"expire"),e=!0);return e}info(e){const n=d(this,se).get(e);if(n===void 0)return;const r=d(this,_)[n],i=L(this,R,X).call(this,r)?r.__staleWhileFetching:r;if(i===void 0)return;const s={value:i};if(d(this,ke)&&d(this,Je)){const o=d(this,ke)[n],a=d(this,Je)[n];if(o&&a){const l=o-(Nt.now()-a);s.ttl=l,s.start=Date.now()}}return d(this,Ze)&&(s.size=d(this,Ze)[n]),s}dump(){const e=[];for(const n of L(this,R,yt).call(this,{allowStale:!0})){const r=d(this,Z)[n],i=d(this,_)[n],s=L(this,R,X).call(this,i)?i.__staleWhileFetching:i;if(s===void 0||r===void 0)continue;const o={value:s};if(d(this,ke)&&d(this,Je)){o.ttl=d(this,ke)[n];const a=Nt.now()-d(this,Je)[n];o.start=Math.floor(Date.now()-a)}d(this,Ze)&&(o.size=d(this,Ze)[n]),e.unshift([r,o])}return e}load(e){this.clear();for(const[n,r]of e){if(r.start){const i=Date.now()-r.start;r.start=Nt.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){var h,p,g,y,b;if(n===void 0)return this.delete(e),this;const{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=r;let{noUpdateTTL:u=this.noUpdateTTL}=r;const c=d(this,jn).call(this,e,n,r.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),L(this,R,bt).call(this,e,"set"),this;let f=d(this,ae)===0?void 0:d(this,se).get(e);if(f===void 0)f=d(this,ae)===0?d(this,fe):d(this,Xe).length!==0?d(this,Xe).pop():d(this,ae)===d(this,He)?L(this,R,ir).call(this,!1):d(this,ae),d(this,Z)[f]=e,d(this,_)[f]=n,d(this,se).set(e,f),d(this,xe)[d(this,fe)]=f,d(this,Fe)[f]=d(this,fe),I(this,fe,f),Gn(this,ae)._++,d(this,tn).call(this,f,c,l),l&&(l.set="add"),u=!1;else{L(this,R,gn).call(this,f);const m=d(this,_)[f];if(n!==m){if(d(this,xt)&&L(this,R,X).call(this,m)){m.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:w}=m;w!==void 0&&!o&&(d(this,Qe)&&((h=d(this,Ke))==null||h.call(this,w,e,"set")),d(this,Ce)&&((p=d(this,he))==null||p.push([w,e,"set"])))}else o||(d(this,Qe)&&((g=d(this,Ke))==null||g.call(this,m,e,"set")),d(this,Ce)&&((y=d(this,he))==null||y.push([m,e,"set"])));if(d(this,Ft).call(this,f),d(this,tn).call(this,f,c,l),d(this,_)[f]=n,l){l.set="replace";const w=m&&L(this,R,X).call(this,m)?m.__staleWhileFetching:m;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update")}if(i!==0&&!d(this,ke)&&L(this,R,pi).call(this),d(this,ke)&&(u||d(this,In).call(this,f,i,s),l&&d(this,ut).call(this,l,f)),!o&&d(this,Ce)&&d(this,he)){const m=d(this,he);let w;for(;w=m==null?void 0:m.shift();)(b=d(this,qe))==null||b.call(this,...w)}return this}pop(){var e;try{for(;d(this,ae);){const n=d(this,_)[d(this,ye)];if(L(this,R,ir).call(this,!0),L(this,R,X).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(d(this,Ce)&&d(this,he)){const n=d(this,he);let r;for(;r=n==null?void 0:n.shift();)(e=d(this,qe))==null||e.call(this,...r)}}}has(e,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,s=d(this,se).get(e);if(s!==void 0){const o=d(this,_)[s];if(L(this,R,X).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(d(this,Ie).call(this,s))i&&(i.has="stale",d(this,ut).call(this,i,s));else return r&&d(this,Lt).call(this,s),i&&(i.has="hit",d(this,ut).call(this,i,s)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){const{allowStale:r=this.allowStale}=n,i=d(this,se).get(e);if(i===void 0||!r&&d(this,Ie).call(this,i))return;const s=d(this,_)[i];return L(this,R,X).call(this,s)?s.__staleWhileFetching:s}async fetch(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:g=this.allowStaleOnFetchAbort,context:y,forceRefresh:b=!1,status:m,signal:w}=n;if(!d(this,xt))return m&&(m.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:m});const S={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:g,ignoreFetchAbort:p,status:m,signal:w};let C=d(this,se).get(e);if(C===void 0){m&&(m.fetch="miss");const v=L(this,R,sr).call(this,e,C,S,y);return v.__returned=v}else{const v=d(this,_)[C];if(L(this,R,X).call(this,v)){const A=r&&v.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",A&&(m.returnedStale=!0)),A?v.__staleWhileFetching:v.__returned=v}const E=d(this,Ie).call(this,C);if(!b&&!E)return m&&(m.fetch="hit"),L(this,R,gn).call(this,C),i&&d(this,Lt).call(this,C),m&&d(this,ut).call(this,m,C),v;const D=L(this,R,sr).call(this,e,C,S,y),T=D.__staleWhileFetching!==void 0&&r;return m&&(m.fetch=E?"stale":"refresh",T&&E&&(m.returnedStale=!0)),T?D.__staleWhileFetching:D.__returned=D}}async forceFetch(e,n={}){const r=await this.fetch(e,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,n={}){const r=d(this,en);if(!r)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:s,...o}=n,a=this.get(e,o);if(!s&&a!==void 0)return a;const l=r(e,a,{options:o,context:i});return this.set(e,l,o),l}get(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=n,a=d(this,se).get(e);if(a!==void 0){const l=d(this,_)[a],u=L(this,R,X).call(this,l);return o&&d(this,ut).call(this,o,a),d(this,Ie).call(this,a)?(o&&(o.get="stale"),u?(o&&r&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),r?l.__staleWhileFetching:void 0):(s||L(this,R,bt).call(this,e,"expire"),o&&r&&(o.returnedStale=!0),r?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(L(this,R,gn).call(this,a),i&&d(this,Lt).call(this,a),l))}else o&&(o.get="miss")}delete(e){return L(this,R,bt).call(this,e,"delete")}clear(){return L(this,R,yi).call(this,"delete")}};He=new WeakMap,Le=new WeakMap,Ke=new WeakMap,qe=new WeakMap,Qt=new WeakMap,en=new WeakMap,ae=new WeakMap,Ye=new WeakMap,se=new WeakMap,Z=new WeakMap,_=new WeakMap,xe=new WeakMap,Fe=new WeakMap,ye=new WeakMap,fe=new WeakMap,Xe=new WeakMap,he=new WeakMap,Ze=new WeakMap,Je=new WeakMap,ke=new WeakMap,Qe=new WeakMap,xt=new WeakMap,Ce=new WeakMap,R=new WeakSet,pi=function(){const e=new rr(d(this,He)),n=new rr(d(this,He));I(this,ke,e),I(this,Je,n),I(this,In,(s,o,a=Nt.now())=>{if(n[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){const l=setTimeout(()=>{d(this,Ie).call(this,s)&&L(this,R,bt).call(this,d(this,Z)[s],"expire")},o+1);l.unref&&l.unref()}}),I(this,Lt,s=>{n[s]=e[s]!==0?Nt.now():0}),I(this,ut,(s,o)=>{if(e[o]){const a=e[o],l=n[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=r||i();const u=s.now-l;s.remainingTTL=a-u}});let r=0;const i=()=>{const s=Nt.now();if(this.ttlResolution>0){r=s;const o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{const o=d(this,se).get(s);if(o===void 0)return 0;const a=e[o],l=n[o];if(!a||!l)return 1/0;const u=(r||i())-l;return a-u},I(this,Ie,s=>{const o=n[s],a=e[s];return!!a&&!!o&&(r||i())-o>a})},Lt=new WeakMap,ut=new WeakMap,In=new WeakMap,Ie=new WeakMap,sl=function(){const e=new rr(d(this,He));I(this,Ye,0),I(this,Ze,e),I(this,Ft,n=>{I(this,Ye,d(this,Ye)-e[n]),e[n]=0}),I(this,jn,(n,r,i,s)=>{if(L(this,R,X).call(this,r))return 0;if(!gt(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(r,n),!gt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),I(this,tn,(n,r,i)=>{if(e[n]=r,d(this,Le)){const s=d(this,Le)-e[n];for(;d(this,Ye)>s;)L(this,R,ir).call(this,!0)}I(this,Ye,d(this,Ye)+e[n]),i&&(i.entrySize=r,i.totalCalculatedSize=d(this,Ye))})},Ft=new WeakMap,tn=new WeakMap,jn=new WeakMap,yt=function*({allowStale:e=this.allowStale}={}){if(d(this,ae))for(let n=d(this,fe);!(!L(this,R,mi).call(this,n)||((e||!d(this,Ie).call(this,n))&&(yield n),n===d(this,ye)));)n=d(this,Fe)[n]},vt=function*({allowStale:e=this.allowStale}={}){if(d(this,ae))for(let n=d(this,ye);!(!L(this,R,mi).call(this,n)||((e||!d(this,Ie).call(this,n))&&(yield n),n===d(this,fe)));)n=d(this,xe)[n]},mi=function(e){return e!==void 0&&d(this,se).get(d(this,Z)[e])===e},ir=function(e){var s,o;const n=d(this,ye),r=d(this,Z)[n],i=d(this,_)[n];return d(this,xt)&&L(this,R,X).call(this,i)?i.__abortController.abort(new Error("evicted")):(d(this,Qe)||d(this,Ce))&&(d(this,Qe)&&((s=d(this,Ke))==null||s.call(this,i,r,"evict")),d(this,Ce)&&((o=d(this,he))==null||o.push([i,r,"evict"]))),d(this,Ft).call(this,n),e&&(d(this,Z)[n]=void 0,d(this,_)[n]=void 0,d(this,Xe).push(n)),d(this,ae)===1?(I(this,ye,I(this,fe,0)),d(this,Xe).length=0):I(this,ye,d(this,xe)[n]),d(this,se).delete(r),Gn(this,ae)._--,n},sr=function(e,n,r,i){const s=n===void 0?void 0:d(this,_)[n];if(L(this,R,X).call(this,s))return s;const o=new yr,{signal:a}=r;a==null||a.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});const l={signal:o.signal,options:r,context:i},u=(y,b=!1)=>{const{aborted:m}=o.signal,w=r.ignoreFetchAbort&&y!==void 0;if(r.status&&(m&&!b?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,w&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),m&&!w&&!b)return f(o.signal.reason);const S=p;return d(this,_)[n]===p&&(y===void 0?S.__staleWhileFetching?d(this,_)[n]=S.__staleWhileFetching:L(this,R,bt).call(this,e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,y,l.options))),y},c=y=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=y),f(y)),f=y=>{const{aborted:b}=o.signal,m=b&&r.allowStaleOnFetchAbort,w=m||r.allowStaleOnFetchRejection,S=w||r.noDeleteOnFetchRejection,C=p;if(d(this,_)[n]===p&&(!S||C.__staleWhileFetching===void 0?L(this,R,bt).call(this,e,"fetch"):m||(d(this,_)[n]=C.__staleWhileFetching)),w)return r.status&&C.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),C.__staleWhileFetching;if(C.__returned===C)throw y},h=(y,b)=>{var w;const m=(w=d(this,Qt))==null?void 0:w.call(this,e,s,l);m&&m instanceof Promise&&m.then(S=>y(S===void 0?void 0:S),b),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(y(void 0),r.allowStaleOnFetchAbort&&(y=S=>u(S,!0)))})};r.status&&(r.status.fetchDispatched=!0);const p=new Promise(h).then(u,c),g=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return n===void 0?(this.set(e,g,{...l.options,status:void 0}),n=d(this,se).get(e)):d(this,_)[n]=g,g},X=function(e){if(!d(this,xt))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof yr},gi=function(e,n){d(this,Fe)[n]=e,d(this,xe)[e]=n},gn=function(e){e!==d(this,fe)&&(e===d(this,ye)?I(this,ye,d(this,xe)[e]):L(this,R,gi).call(this,d(this,Fe)[e],d(this,xe)[e]),L(this,R,gi).call(this,d(this,fe),e),I(this,fe,e))},bt=function(e,n){var i,s,o,a;let r=!1;if(d(this,ae)!==0){const l=d(this,se).get(e);if(l!==void 0)if(r=!0,d(this,ae)===1)L(this,R,yi).call(this,n);else{d(this,Ft).call(this,l);const u=d(this,_)[l];if(L(this,R,X).call(this,u)?u.__abortController.abort(new Error("deleted")):(d(this,Qe)||d(this,Ce))&&(d(this,Qe)&&((i=d(this,Ke))==null||i.call(this,u,e,n)),d(this,Ce)&&((s=d(this,he))==null||s.push([u,e,n]))),d(this,se).delete(e),d(this,Z)[l]=void 0,d(this,_)[l]=void 0,l===d(this,fe))I(this,fe,d(this,Fe)[l]);else if(l===d(this,ye))I(this,ye,d(this,xe)[l]);else{const c=d(this,Fe)[l];d(this,xe)[c]=d(this,xe)[l];const f=d(this,xe)[l];d(this,Fe)[f]=d(this,Fe)[l]}Gn(this,ae)._--,d(this,Xe).push(l)}}if(d(this,Ce)&&((o=d(this,he))!=null&&o.length)){const l=d(this,he);let u;for(;u=l==null?void 0:l.shift();)(a=d(this,qe))==null||a.call(this,...u)}return r},yi=function(e){var n,r,i;for(const s of L(this,R,vt).call(this,{allowStale:!0})){const o=d(this,_)[s];if(L(this,R,X).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=d(this,Z)[s];d(this,Qe)&&((n=d(this,Ke))==null||n.call(this,o,a,e)),d(this,Ce)&&((r=d(this,he))==null||r.push([o,a,e]))}}if(d(this,se).clear(),d(this,_).fill(void 0),d(this,Z).fill(void 0),d(this,ke)&&d(this,Je)&&(d(this,ke).fill(0),d(this,Je).fill(0)),d(this,Ze)&&d(this,Ze).fill(0),I(this,ye,0),I(this,fe,0),d(this,Xe).length=0,I(this,Ye,0),I(this,ae,0),d(this,Ce)&&d(this,he)){const s=d(this,he);let o;for(;o=s==null?void 0:s.shift();)(i=d(this,qe))==null||i.call(this,...o)}};let di=As;var Ur,ro;function Hh(){if(ro)return Ur;ro=1;var t=function(w){return e(w)&&!n(w)};function e(m){return!!m&&typeof m=="object"}function n(m){var w=Object.prototype.toString.call(m);return w==="[object RegExp]"||w==="[object Date]"||s(m)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(m){return m.$$typeof===i}function o(m){return Array.isArray(m)?[]:{}}function a(m,w){return w.clone!==!1&&w.isMergeableObject(m)?y(o(m),m,w):m}function l(m,w,S){return m.concat(w).map(function(C){return a(C,S)})}function u(m,w){if(!w.customMerge)return y;var S=w.customMerge(m);return typeof S=="function"?S:y}function c(m){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(m).filter(function(w){return Object.propertyIsEnumerable.call(m,w)}):[]}function f(m){return Object.keys(m).concat(c(m))}function h(m,w){try{return w in m}catch{return!1}}function p(m,w){return h(m,w)&&!(Object.hasOwnProperty.call(m,w)&&Object.propertyIsEnumerable.call(m,w))}function g(m,w,S){var C={};return S.isMergeableObject(m)&&f(m).forEach(function(v){C[v]=a(m[v],S)}),f(w).forEach(function(v){p(m,v)||(h(m,v)&&S.isMergeableObject(w[v])?C[v]=u(v,S)(m[v],w[v],S):C[v]=a(w[v],S))}),C}function y(m,w,S){S=S||{},S.arrayMerge=S.arrayMerge||l,S.isMergeableObject=S.isMergeableObject||t,S.cloneUnlessOtherwiseSpecified=a;var C=Array.isArray(w),v=Array.isArray(m),E=C===v;return E?C?S.arrayMerge(m,w,S):g(m,w,S):a(w,S)}y.all=function(w,S){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(C,v){return y(C,v,S)},{})};var b=y;return Ur=b,Ur}var Kh=Hh();const qh=_i(Kh);var io=new Set,so=[],Wr=[],Yh={appendCss:t=>{Wr.push(t)},registerClassName:t=>{io.add(t)},registerComposition:t=>{so.push(t)},markCompositionUsed:()=>{},onEndFileScope:t=>{var e=zh({localClassNames:Array.from(io),composedClassLists:so,cssObjs:Wr}).join(`
64
- `);Nf({fileScope:t,css:e}),Wr=[]},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"};Hf(Yh);var oo=(t,e)=>{for(var n=e-1;n>=0;){if(t[n]==="/")return n;n--}return-1},Xh=t=>{var e,n=t.lastIndexOf(".css");if(n===-1)return"";var r=oo(t,n);if(e=t.slice(r+1,n),r===-1)return e;var i=oo(t,r-1),s=t.slice(i+1,r),o=e!=="index"?e:s;return o},Zh=()=>{var t=new di({max:500});return e=>{var n=t.get(e);if(n)return n;var r=Xh(e);return t.set(e,r),r}},Jh=Zh();function Qh(t){var{debugId:e,debugFileName:n}=t,r=e?[e.replace(/\s/g,"_")]:[];if(n){var{filePath:i}=It(),s=Jh(i);s&&r.unshift(s)}return r.join("_")}function ao(t){return t.match(/^[0-9]/)?"_".concat(t):t}function ol(t){var e=Yf(),{debugId:n,debugFileName:r=!0}=kt(kt({},null),null),i=Wh().toString(36),{filePath:s,packageName:o}=It(),a=_a(o?"".concat(o).concat(s):s),l="".concat(a).concat(i);if(e==="debug"){var u=Qh({debugId:n,debugFileName:r});return u&&(l="".concat(u,"__").concat(l)),ao(l)}if(typeof e=="function"){if(l=e({hash:l,debugId:n,filePath:s,packageName:o}),!l.match(/^[A-Z_][0-9A-Z_-]+$/i))throw new Error('Identifier function returned invalid indentifier: "'.concat(l,'"'));return l}return ao(l)}function ed(t,e){var n=ol();Ya(n,It());var r=[],i=[];for(var s of t)typeof s=="string"?r.push(s):i.push(s);var o=n;if(r.length>0&&(o="".concat(n," ").concat(Oh(r)),qf({identifier:n,classList:o},It()),i.length>0&&Xa(n)),i.length>0){var a=qh.all(i,{arrayMerge:(l,u)=>u});qa({type:"local",selector:n,rule:a},It())}return o}function td(t,e){if(Array.isArray(t))return ed(t);var n=ol();return Ya(n,It()),qa({type:"local",selector:n,rule:t},It()),n}const nd=({children:t,theme:e=H,styles:n})=>{const{main:{backgroundColor:r,minHeight:i}}=e;return M("main",{className:td([$f,n]),style:jf({[_f]:i,[Bf]:r}),children:t})},rd=k.div(({isOpen:t,theme:{header:{overlayGap:e,overlayBackgroundColor:n}}})=>({top:0,left:0,zIndex:40,gap:e[0],width:"100vw",display:"flex",backgroundColor:n,height:"100vh",position:"fixed",overflow:"hidden",textAlign:"center",alignItems:"center",flexDirection:"column",transformOrigin:"0% 0%",justifyContent:"center",bottom:t?"-100vh":"100%",transform:t?"translate(0, 0)":"translate(0, -100%)",transition:"transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0)",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2]},[V[2]]:{gap:e[3]}})),id=({isOpen:t,theme:e=H,children:n})=>(O.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),M(rd,{isOpen:t,theme:e,children:n})),sd=k.header(({styles:t,isFixed:e,theme:{global:{paddingLeft:n,paddingRight:r},header:{height:i,gap:s,backgroundColor:o,paddingTop:a,paddingBottom:l}}})=>ee({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:l[0],justifyContent:"space-between",position:e?"fixed":"relative",[V[0]]:{gap:s[1],height:i[1],paddingTop:a[1],paddingLeft:n[1],paddingRight:r[1],paddingBottom:l[1]},[V[1]]:{gap:s[2],height:i[2],paddingTop:a[2],paddingLeft:n[2],paddingRight:r[2],paddingBottom:l[2]},[V[2]]:{gap:s[3],height:i[3],paddingTop:a[3],paddingLeft:n[3],paddingRight:r[3],paddingBottom:l[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),od=k.div(({theme:{header:{height:t}}})=>({height:t[0],[V[0]]:{height:t[1]},[V[1]]:{height:t[2]},[V[2]]:{height:t[3]}})),ad=k.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[V[1]]:{display:t?"block":"none"}})),lo=k.span(({isNavOpen:t,theme:{header:{toggleNavColor:e,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: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"}})),ld=({onToggleNav:t,theme:e=H,isNavOpen:n=!1,displayOnDesktop:r})=>Me(ad,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),t()},"aria-label":"Toggle nav",displayOnDesktop:r,children:[M(lo,{theme:e,isNavOpen:n}),M(lo,{theme:e,isNavOpen:n})]}),ud=({children:t,styles:e={},isFixed:n=!1,childrenOverlay:r,theme:i=H,hideToggleNav:s=!1,displayToggleNavOnDesktop:o=!1})=>{const[a,l]=O.useState(!1);return Me(Bc,{children:[Me(sd,{theme:i,styles:e,isFixed:n,children:[r&&M(id,{theme:i,isOpen:a,children:r}),t,!s&&M(ld,{theme:i,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:o})]}),n&&M(od,{theme:i})]})},cd=k.footer(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},footer:{gap:r,backgroundColor:i,paddingTop:s,paddingBottom:o}}})=>ee({zIndex:20,gap:r[0],backgroundColor:i,display:"flex",fontSize:"0.8em",alignItems:"center",flexDirection:"column",paddingTop:s[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:o[0],justifyContent:"space-between",[V[0]]:{gap:r[1],paddingTop:s[1],paddingLeft:e[1],paddingRight:n[1],paddingBottom:o[1]},[V[1]]:{gap:r[2],flexDirection:"row",paddingTop:s[2],paddingLeft:e[2],paddingRight:n[2],paddingBottom:o[2]},[V[2]]:{gap:r[3],paddingTop:s[3],paddingLeft:e[3],paddingRight:n[3],paddingBottom:o[3]},a:{transition:"all 0.5s ease-in-out","&:hover":{opacity:.5}}},t)),fd=({children:t,styles:e={},theme:n=H})=>M(cd,{theme:n,styles:e,children:t});var Zt=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(Zt||{});const hd=k.div(({theme:t,styles:e,align:n,columns:r,isCentered:i,isInverted:s})=>{const o={width:"100%",display:"flex",flexWrap:"wrap",flexDirection:"column",alignItems:"flex-start",gap:t.columns.gap/2,justifyContent:"space-between",textAlign:n===Zt.Center?"center":"left",[V[1]]:{gap:t.columns.gap,alignItems:i?"center":"stretch",flexDirection:s?"row-reverse":"row",justifyContent:n===Zt.Right?"flex-end":n===Zt.Center?"center":"flex-start"},[V[2]]:{gap:t.columns.gap*2}},a=r.map((l,u)=>({[`>:nth-of-type(${u+1})`]:{minWidth:"100%",position:"relative","&:empty":{marginTop:-t.columns.gap/2,[V[1]]:{marginTop:0}},[V[1]]:{flex:l,minWidth:"auto",maxWidth:`${l}%`}}}));return ee(Object.assign(o,...a),e)}),dd=({columns:t,children:e,styles:n={},align:r=Zt.Left,isCentered:i=!1,isInverted:s=!1,theme:o=H})=>M(hd,{align:r,theme:o,columns:t,isCentered:i,isInverted:s,styles:n,children:e}),al=O.createContext({});function ll(t){const e=O.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ui=O.createContext(null),ul=O.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function pd(t=!0){const e=O.useContext(Ui);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=O.useId();O.useEffect(()=>{if(t)return i(s)},[t]);const o=O.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const Wi=typeof window<"u",cl=Wi?O.useLayoutEffect:O.useEffect,Oe=t=>t;let ln=Oe,lt=Oe;process.env.NODE_ENV!=="production"&&(ln=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},lt=(t,e)=>{if(!t)throw new Error(e)});function Gi(t){let e;return()=>(e===void 0&&(e=t()),e)}const rn=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},st=t=>t*1e3,ct=t=>t/1e3,md={skipAnimations:!1,useManualTiming:!1},Xn=["read","resolveKeyframes","update","preRender","render","postRender"];function gd(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,f=!1,h=!1)=>{const g=h&&i?n:r;return f&&o.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(c))}};return u}const yd=40;function fl(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Xn.reduce((m,w)=>(m[w]=gd(s),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:h}=o,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,yd),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(p))},g=()=>{n=!0,r=!0,i.isProcessing||t(p)};return{schedule:Xn.reduce((m,w)=>{const S=o[w];return m[w]=(C,v=!1,E=!1)=>(n||g(),S.schedule(C,v,E)),m},{}),cancel:m=>{for(let w=0;w<Xn.length;w++)o[Xn[w]].cancel(m)},state:i,steps:o}}const{schedule:q,cancel:Ct,state:de,steps:Gr}=fl(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0),hl=O.createContext({strict:!1}),uo={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"]},sn={};for(const t in uo)sn[t]={isEnabled:e=>uo[t].some(n=>!!e[n])};function vd(t){for(const e in t)sn[e]={...sn[e],...t[e]}}const bd=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 vr(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||bd.has(t)}let dl=t=>!vr(t);function wd(t){t&&(dl=e=>e.startsWith("on")?!vr(e):t(e))}try{wd(require("@emotion/is-prop-valid").default)}catch{}function Sd(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(dl(i)||n===!0&&vr(i)||!e&&!vr(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const co=new Set;function Rr(t,e,n){t||co.has(e)||(console.warn(e),co.add(e))}function xd(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Rr(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Or=O.createContext({});function Vr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Rn(t){return typeof t=="string"||Array.isArray(t)}const Hi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ki=["initial",...Hi];function Mr(t){return Vr(t.animate)||Ki.some(e=>Rn(t[e]))}function pl(t){return!!(Mr(t)||t.variants)}function Cd(t,e){if(Mr(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Rn(n)?n:void 0,animate:Rn(r)?r:void 0}}return t.inherit!==!1?e:{}}function Ad(t){const{initial:e,animate:n}=Cd(t,O.useContext(Or));return O.useMemo(()=>({initial:e,animate:n}),[fo(e),fo(n)])}function fo(t){return Array.isArray(t)?t.join(" "):t}const Td=Symbol.for("motionComponentSymbol");function zt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ed(t,e,n){return O.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):zt(n)&&(n.current=r))},[e])}const qi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pd="framerAppearId",ml="data-"+qi(Pd),{schedule:Yi,cancel:Sy}=fl(queueMicrotask,!1),gl=O.createContext({});function Rd(t,e,n,r,i){var s,o;const{visualElement:a}=O.useContext(Or),l=O.useContext(hl),u=O.useContext(Ui),c=O.useContext(ul).reducedMotion,f=O.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const h=f.current,p=O.useContext(gl);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Od(f.current,n,i,p);const g=O.useRef(!1);O.useInsertionEffect(()=>{h&&g.current&&h.update(n,u)});const y=n[ml],b=O.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return cl(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Yi.render(h.render),b.current&&h.animationState&&h.animationState.animateChanges())}),O.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,y)}),b.current=!1))}),h}function Od(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:yl(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&zt(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function yl(t){if(t)return t.options.allowProjection!==!1?t.projection:yl(t.parent)}function Vd({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var s,o;t&&vd(t);function a(u,c){let f;const h={...O.useContext(ul),...u,layoutId:Md(u)},{isStatic:p}=h,g=Ad(u),y=r(u,p);if(!p&&Wi){Dd(h,t);const b=Ld(h);f=b.MeasureLayout,g.visualElement=Rd(i,y,h,e,b.ProjectionNode)}return ur.jsxs(Or.Provider,{value:g,children:[f&&g.visualElement?ur.jsx(f,{visualElement:g.visualElement,...h}):null,n(i,u,Ed(y,g.visualElement,c),y,p,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=O.forwardRef(a);return l[Td]=i,l}function Md({layoutId:t}){const e=O.useContext(al).id;return e&&t!==void 0?e+"-"+t:t}function Dd(t,e){const n=O.useContext(hl).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ln(!1,r):lt(!1,r)}}function Ld(t){const{drag:e,layout:n}=sn;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vl=t=>e=>typeof e=="string"&&e.startsWith(t),Xi=vl("--"),Fd=vl("var(--"),Zi=t=>Fd(t)?kd.test(t.split("/*")[0].trim()):!1,kd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,On={};function Id(t){for(const e in t)On[e]=t[e],Xi(e)&&(On[e].isCSSVariable=!0)}const un=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(un);function bl(t,{layout:e,layoutId:n}){return _t.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!On[t]||t==="opacity")}const be=t=>!!(t&&t.getVelocity),wl=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ft=(t,e,n)=>n>e?e:n<t?t:n,cn={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Vn={...cn,transform:t=>ft(0,1,t)},Zn={...cn,default:1},Nn=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),wt=Nn("deg"),ot=Nn("%"),j=Nn("px"),jd=Nn("vh"),_d=Nn("vw"),ho={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)},Bd={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},$d={rotate:wt,rotateX:wt,rotateY:wt,rotateZ:wt,scale:Zn,scaleX:Zn,scaleY:Zn,scaleZ:Zn,skew:wt,skewX:wt,skewY:wt,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Vn,originX:ho,originY:ho,originZ:j},po={...cn,transform:Math.round},Ji={...Bd,...$d,zIndex:po,size:j,fillOpacity:Vn,strokeOpacity:Vn,numOctaves:po},Nd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zd=un.length;function Ud(t,e,n){let r="",i=!0;for(let s=0;s<zd;s++){const o=un[s],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=wl(a,Ji[o]);if(!l){i=!1;const c=Nd[o]||o;r+=`${c}(${u}) `}n&&(e[o]=u)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function Qi(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const l in e){const u=e[l];if(_t.has(l)){o=!0;continue}else if(Xi(l)){i[l]=u;continue}else{const c=wl(u,Ji[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(e.transform||(o||n?r.transform=Ud(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const es=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sl(t,e,n){for(const r in e)!be(e[r])&&!bl(r,n)&&(t[r]=e[r])}function Wd({transformTemplate:t},e){return O.useMemo(()=>{const n=es();return Qi(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Gd(t,e){const n=t.style||{},r={};return Sl(r,n,t),Object.assign(r,Wd(t,e)),r}function Hd(t,e){const n={},r=Gd(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Kd=["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 ts(t){return typeof t!="string"||t.includes("-")?!1:!!(Kd.indexOf(t)>-1||/[A-Z]/u.test(t))}const qd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yd={offset:"strokeDashoffset",array:"strokeDasharray"};function Xd(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?qd:Yd;t[s.offset]=j.transform(-r);const o=j.transform(e),a=j.transform(n);t[s.array]=`${o} ${a}`}function mo(t,e,n){return typeof t=="string"?t:j.transform(e+n*t)}function Zd(t,e,n){const r=mo(e,t.x,t.width),i=mo(n,t.y,t.height);return`${r} ${i}`}function ns(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,f){if(Qi(t,u,f),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:g}=t;h.transform&&(g&&(p.transform=h.transform),delete h.transform),g&&(i!==void 0||s!==void 0||p.transform)&&(p.transformOrigin=Zd(g,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&Xd(h,o,a,l,!1)}const xl=()=>({...es(),attrs:{}}),rs=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Jd(t,e,n,r){const i=O.useMemo(()=>{const s=xl();return ns(s,e,rs(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Sl(s,t.style,t),i.style={...s,...i.style}}return i}function Qd(t=!1){return(n,r,i,{latestValues:s},o)=>{const l=(ts(n)?Jd:Hd)(r,s,o,n),u=Sd(r,typeof n=="string",t),c=n!==O.Fragment?{...u,...l,ref:i}:{},{children:f}=r,h=O.useMemo(()=>be(f)?f.get():f,[f]);return O.createElement(n,{...c,children:h})}}function go(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function is(t,e,n,r){if(typeof e=="function"){const[i,s]=go(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=go(r);e=e(n!==void 0?n:t.custom,i,s)}return e}const vi=t=>Array.isArray(t),ep=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),tp=t=>vi(t)?t[t.length-1]||0:t;function or(t){const e=be(t)?t.get():t;return ep(e)?e.toValue():e}function np({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,s){const o={latestValues:rp(r,i,s,t),renderState:e()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Cl=t=>(e,n)=>{const r=O.useContext(Or),i=O.useContext(Ui),s=()=>np(t,e,r,i);return n?s():ll(s)};function rp(t,e,n,r){const i={},s=r(t,{});for(const h in s)i[h]=or(s[h]);let{initial:o,animate:a}=t;const l=Mr(t),u=pl(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!Vr(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const g=is(t,h[p]);if(g){const{transitionEnd:y,transition:b,...m}=g;for(const w in m){let S=m[w];if(Array.isArray(S)){const C=c?S.length-1:0;S=S[C]}S!==null&&(i[w]=S)}for(const w in y)i[w]=y[w]}}}return i}function ss(t,e,n){var r;const{style:i}=t,s={};for(const o in i)(be(i[o])||e.style&&be(e.style[o])||bl(o,t)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const ip={useVisualState:Cl({scrapeMotionValuesFromProps:ss,createRenderState:es})};function Al(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 Tl(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const El=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 Pl(t,e,n,r){Tl(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(El.has(i)?i:qi(i),e.attrs[i])}function Rl(t,e,n){const r=ss(t,e,n);for(const i in t)if(be(t[i])||be(e[i])){const s=un.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const yo=["x","y","width","height","cx","cy","r"],sp={useVisualState:Cl({scrapeMotionValuesFromProps:Rl,createRenderState:xl,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in i)if(_t.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a<yo.length;a++){const l=yo[a];t[l]!==e[l]&&(o=!0)}o&&q.read(()=>{Al(n,r),q.render(()=>{ns(r,i,rs(n.tagName),t.transformTemplate),Pl(n,r)})})}})};function op(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...ts(r)?sp:ip,preloadedFeatures:t,useRender:Qd(i),createVisualElement:e,Component:r};return Vd(o)}}function Mn(t,e,n){const r=t.getProps();return is(r,e,n!==void 0?n:r.custom,t)}const ap=Gi(()=>window.ScrollTimeline!==void 0);class lp{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(ap()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class up extends lp{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function os(t,e){return t?t[e]||t.default||t:void 0}const bi=2e4;function Ol(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<bi;)e+=n,r=t.next(e);return e>=bi?1/0:e}function as(t){return typeof t=="function"}function vo(t,e){t.timeline=e,t.onfinish=null}const ls=t=>Array.isArray(t)&&typeof t[0]=="number",cp={linearEasing:void 0};function fp(t,e){const n=Gi(t);return()=>{var r;return(r=cp[e])!==null&&r!==void 0?r:n()}}const br=fp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vl=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=t(rn(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Ml(t){return!!(typeof t=="function"&&br()||!t||typeof t=="string"&&(t in wi||br())||ls(t)||Array.isArray(t)&&t.every(Ml))}const yn=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,wi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yn([0,.65,.55,1]),circOut:yn([.55,0,1,.45]),backIn:yn([.31,.01,.66,-.59]),backOut:yn([.33,1.53,.69,.99])};function Dl(t,e){if(t)return typeof t=="function"&&br()?Vl(t,e):ls(t)?yn(t):Array.isArray(t)?t.map(n=>Dl(n,e)||wi.easeOut):wi[t]}const Ge={x:!1,y:!1};function Ll(){return Ge.x||Ge.y}function Fl(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function kl(t,e){const n=Fl(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function bo(t){return!(t.pointerType==="touch"||Ll())}function hp(t,e,n={}){const[r,i,s]=kl(t,n),o=a=>{if(!bo(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=f=>{bo(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}function wr(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 Il=(t,e)=>e?t===e?!0:Il(t,e.parentElement):!1,us=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,dp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pp(t){return dp.has(t.tagName)||t.tabIndex!==-1}const vn=new WeakSet;function wo(t){return e=>{e.key==="Enter"&&t(e)}}function Hr(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const mp=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=wo(()=>{if(vn.has(n))return;Hr(n,"down");const i=wo(()=>{Hr(n,"up")}),s=()=>Hr(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function So(t){return us(t)&&!Ll()}function gp(t,e,n={}){const[r,i,s]=kl(t,n),o=a=>{const l=a.currentTarget;if(!l||!So(a)||vn.has(l))return;vn.add(l),wr(a,"set");const u=e(l,a),c=(p,g)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",h),wr(p,"release"),!(!So(p)||!vn.has(l))&&(vn.delete(l),typeof u=="function"&&u(p,{success:g}))},f=p=>{(p.isTrusted?yp(p,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(p,!1):c(p,!(l instanceof Element)||Il(l,p.target))},h=p=>{c(p,!1)};l.addEventListener("pointerup",f,i),l.addEventListener("pointercancel",h,i),l.addEventListener("lostpointercapture",h,i)};return r.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!pp(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,i),l&&a.addEventListener("focus",u=>mp(u,i),i)}),s}function yp(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function vp(t){return t==="x"||t==="y"?Ge[t]?null:(Ge[t]=!0,()=>{Ge[t]=!1}):Ge.x||Ge.y?null:(Ge.x=Ge.y=!0,()=>{Ge.x=Ge.y=!1})}const jl=new Set(["width","height","top","left","right","bottom",...un]);let ar;function bp(){ar=void 0}const at={now:()=>(ar===void 0&&at.set(de.isProcessing||md.useManualTiming?de.timestamp:performance.now()),ar),set:t=>{ar=t,queueMicrotask(bp)}};function cs(t,e){t.indexOf(e)===-1&&t.push(e)}function fs(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class hs{constructor(){this.subscriptions=[]}add(e){return cs(this.subscriptions,e),()=>fs(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function _l(t,e){return e?t*(1e3/e):0}const xo=30,wp=t=>!isNaN(parseFloat(t));class Sp{constructor(e,n={}){this.version="12.4.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=at.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=at.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wp(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Rr(!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 hs);const r=this.events[e].add(n);return e==="change"?()=>{r(),q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=at.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>xo)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xo);return _l(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 Dn(t,e){return new Sp(t,e)}function xp(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Dn(n))}function ds(t,e){const n=Mn(t,e);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=tp(s[o]);xp(t,o,a)}}function Cp(t){return!!(be(t)&&t.add)}function Si(t,e){const n=t.getValue("willChange");if(Cp(n))return n.add(e)}function Bl(t){return t.props[ml]}const $l=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ap=1e-7,Tp=12;function Ep(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=$l(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>Ap&&++a<Tp);return o}function zn(t,e,n,r){if(t===e&&n===r)return Oe;const i=s=>Ep(s,0,1,t,n);return s=>s===0||s===1?s:$l(i(s),e,r)}const Nl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,zl=t=>e=>1-t(1-e),Ul=zn(.33,1.53,.69,.99),ps=zl(Ul),Wl=Nl(ps),Gl=t=>(t*=2)<1?.5*ps(t):.5*(2-Math.pow(2,-10*(t-1))),ms=t=>1-Math.sin(Math.acos(t)),Hl=zl(ms),Kl=Nl(ms),ql=t=>/^0[^.\s]+$/u.test(t);function Pp(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ql(t):!0}const wn=t=>Math.round(t*1e5)/1e5,gs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Rp(t){return t==null}const Op=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ys=(t,e)=>n=>!!(typeof n=="string"&&Op.test(n)&&n.startsWith(t)||e&&!Rp(n)&&Object.prototype.hasOwnProperty.call(n,e)),Yl=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(gs);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Vp=t=>ft(0,255,t),Kr={...cn,transform:t=>Math.round(Vp(t))},Dt={test:ys("rgb","red"),parse:Yl("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Kr.transform(t)+", "+Kr.transform(e)+", "+Kr.transform(n)+", "+wn(Vn.transform(r))+")"};function Mp(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const xi={test:ys("#"),parse:Mp,transform:Dt.transform},Ut={test:ys("hsl","hue"),parse:Yl("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ot.transform(wn(e))+", "+ot.transform(wn(n))+", "+wn(Vn.transform(r))+")"},ve={test:t=>Dt.test(t)||xi.test(t)||Ut.test(t),parse:t=>Dt.test(t)?Dt.parse(t):Ut.test(t)?Ut.parse(t):xi.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Dt.transform(t):Ut.transform(t)},Dp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Lp(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(gs))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Dp))===null||n===void 0?void 0:n.length)||0)>0}const Xl="number",Zl="color",Fp="var",kp="var(",Co="${}",Ip=/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 Ln(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(Ip,l=>(ve.test(l)?(r.color.push(s),i.push(Zl),n.push(ve.parse(l))):l.startsWith(kp)?(r.var.push(s),i.push(Fp),n.push(l)):(r.number.push(s),i.push(Xl),n.push(parseFloat(l))),++s,Co)).split(Co);return{values:n,split:a,indexes:r,types:i}}function Jl(t){return Ln(t).values}function Ql(t){const{split:e,types:n}=Ln(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===Xl?s+=wn(i[o]):a===Zl?s+=ve.transform(i[o]):s+=i[o]}return s}}const jp=t=>typeof t=="number"?0:t;function _p(t){const e=Jl(t);return Ql(t)(e.map(jp))}const At={test:Lp,parse:Jl,createTransformer:Ql,getAnimatableNone:_p},Bp=new Set(["brightness","contrast","saturate","opacity"]);function $p(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(gs)||[];if(!r)return t;const i=n.replace(r,"");let s=Bp.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const Np=/\b([a-z-]*)\(.*?\)/gu,Ci={...At,getAnimatableNone:t=>{const e=t.match(Np);return e?e.map($p).join(" "):t}},zp={...Ji,color:ve,backgroundColor:ve,outlineColor:ve,fill:ve,stroke:ve,borderColor:ve,borderTopColor:ve,borderRightColor:ve,borderBottomColor:ve,borderLeftColor:ve,filter:Ci,WebkitFilter:Ci},vs=t=>zp[t];function eu(t,e){let n=vs(t);return n!==Ci&&(n=At),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Up=new Set(["auto","none","0"]);function Wp(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!Up.has(s)&&Ln(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=eu(n,i)}const Ao=t=>t===cn||t===j,To=(t,e)=>parseFloat(t.split(", ")[e]),Eo=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return To(i[1],e);{const s=r.match(/^matrix\((.+)\)$/u);return s?To(s[1],t):0}},Gp=new Set(["x","y","z"]),Hp=un.filter(t=>!Gp.has(t));function Kp(t){const e=[];return Hp.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const on={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:Eo(4,13),y:Eo(5,14)};on.translateX=on.x;on.translateY=on.y;const jt=new Set;let Ai=!1,Ti=!1;function tu(){if(Ti){const t=Array.from(jt).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Kp(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ti=!1,Ai=!1,jt.forEach(t=>t.complete()),jt.clear()}function nu(){jt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ti=!0)})}function qp(){nu(),tu()}class bs{constructor(e,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(jt.add(this),Ai||(Ai=!0,q.read(nu),q.resolveKeyframes(tu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),jt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,jt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ru=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Yp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xp(t){const e=Yp.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const Zp=4;function iu(t,e,n=1){lt(n<=Zp,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=Xp(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return ru(o)?parseFloat(o):o}return Zi(i)?iu(i,e,n+1):i}const su=t=>e=>e.test(t),Jp={test:t=>t==="auto",parse:t=>t},ou=[cn,j,ot,wt,_d,jd,Jp],Po=t=>ou.find(su(t));class au extends bs{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),Zi(u))){const c=iu(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!jl.has(r)||e.length!==2)return;const[i,s]=e,o=Po(i),a=Po(s);if(o!==a)if(Ao(o)&&Ao(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)Pp(e[i])&&r.push(i);r.length&&Wp(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=on[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=on[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Ro=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(At.test(t)||t==="0")&&!t.startsWith("url("));function Qp(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 em(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=Ro(i,e),a=Ro(s,e);return ln(o===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!a?!1:Qp(t)||(n==="spring"||as(n))&&r}const tm=t=>t!==null;function Dr(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(tm),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const nm=40;class lu{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=at.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>nm?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&qp(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=at.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!em(e,r,i,s))if(o)this.options.duration=0;else{l&&l(Dr(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},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 re=(t,e,n)=>t+(e-t)*n;function qr(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 rm({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=qr(l,a,t+1/3),s=qr(l,a,t),o=qr(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Sr(t,e){return n=>n>0?e:t}const Yr=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},im=[xi,Dt,Ut],sm=t=>im.find(e=>e.test(t));function Oo(t){const e=sm(t);if(ln(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Ut&&(n=rm(n)),n}const Vo=(t,e)=>{const n=Oo(t),r=Oo(e);if(!n||!r)return Sr(t,e);const i={...n};return s=>(i.red=Yr(n.red,r.red,s),i.green=Yr(n.green,r.green,s),i.blue=Yr(n.blue,r.blue,s),i.alpha=re(n.alpha,r.alpha,s),Dt.transform(i))},om=(t,e)=>n=>e(t(n)),Un=(...t)=>t.reduce(om),Ei=new Set(["none","hidden"]);function am(t,e){return Ei.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function lm(t,e){return n=>re(t,e,n)}function ws(t){return typeof t=="number"?lm:typeof t=="string"?Zi(t)?Sr:ve.test(t)?Vo:fm:Array.isArray(t)?uu:typeof t=="object"?ve.test(t)?Vo:um:Sr}function uu(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>ws(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function um(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=ws(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function cm(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const fm=(t,e)=>{const n=At.createTransformer(e),r=Ln(t),i=Ln(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ei.has(t)&&!i.values.length||Ei.has(e)&&!r.values.length?am(t,e):Un(uu(cm(r,i),i.values),n):(ln(!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.`),Sr(t,e))};function cu(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?re(t,e,n):ws(t)(t,e)}const hm=5;function fu(t,e,n){const r=Math.max(e-hm,0);return _l(n-t(r),e-r)}const ne={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},Mo=.001;function dm({duration:t=ne.duration,bounce:e=ne.bounce,velocity:n=ne.velocity,mass:r=ne.mass}){let i,s;ln(t<=st(ne.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=ft(ne.minDamping,ne.maxDamping,o),t=ft(ne.minDuration,ne.maxDuration,ct(t)),o<1?(i=u=>{const c=u*o,f=c*t,h=c-n,p=Pi(u,o),g=Math.exp(-f);return Mo-h/p*g},s=u=>{const f=u*o*t,h=f*n+n,p=Math.pow(o,2)*Math.pow(u,2)*t,g=Math.exp(-f),y=Pi(Math.pow(u,2),o);return(-i(u)+Mo>0?-1:1)*((h-p)*g)/y}):(i=u=>{const c=Math.exp(-u*t),f=(u-n)*t+1;return-.001+c*f},s=u=>{const c=Math.exp(-u*t),f=(n-u)*(t*t);return c*f});const a=5/t,l=mm(i,s,a);if(t=st(t),isNaN(l))return{stiffness:ne.stiffness,damping:ne.damping,duration:t};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:t}}}const pm=12;function mm(t,e,n){let r=n;for(let i=1;i<pm;i++)r=r-t(r)/e(r);return r}function Pi(t,e){return t*Math.sqrt(1-e*e)}const gm=["duration","bounce"],ym=["stiffness","damping","mass"];function Do(t,e){return e.some(n=>t[n]!==void 0)}function vm(t){let e={velocity:ne.velocity,stiffness:ne.stiffness,damping:ne.damping,mass:ne.mass,isResolvedFromDuration:!1,...t};if(!Do(t,ym)&&Do(t,gm))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*ft(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:ne.mass,stiffness:i,damping:s}}else{const n=dm(t);e={...e,...n,mass:ne.mass},e.isResolvedFromDuration=!0}return e}function hu(t=ne.visualDuration,e=ne.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:p}=vm({...n,velocity:-ct(n.velocity||0)}),g=h||0,y=u/(2*Math.sqrt(l*c)),b=o-s,m=ct(Math.sqrt(l/c)),w=Math.abs(b)<5;r||(r=w?ne.restSpeed.granular:ne.restSpeed.default),i||(i=w?ne.restDelta.granular:ne.restDelta.default);let S;if(y<1){const v=Pi(m,y);S=E=>{const D=Math.exp(-y*m*E);return o-D*((g+y*m*b)/v*Math.sin(v*E)+b*Math.cos(v*E))}}else if(y===1)S=v=>o-Math.exp(-m*v)*(b+(g+m*b)*v);else{const v=m*Math.sqrt(y*y-1);S=E=>{const D=Math.exp(-y*m*E),x=Math.min(v*E,300);return o-D*((g+y*m*b)*Math.sinh(x)+v*b*Math.cosh(x))/v}}const C={calculatedDuration:p&&f||null,next:v=>{const E=S(v);if(p)a.done=v>=f;else{let D=0;y<1&&(D=v===0?st(g):fu(S,v,E));const x=Math.abs(D)<=r,T=Math.abs(o-E)<=i;a.done=x&&T}return a.value=a.done?o:E,a},toString:()=>{const v=Math.min(Ol(C),bi),E=Vl(D=>C.next(v*D).value,v,30);return v+"ms "+E}};return C}function Lo({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=t[0],h={done:!1,value:f},p=x=>a!==void 0&&x<a||l!==void 0&&x>l,g=x=>a===void 0?l:l===void 0||Math.abs(a-x)<Math.abs(l-x)?a:l;let y=n*e;const b=f+y,m=o===void 0?b:o(b);m!==b&&(y=m-f);const w=x=>-y*Math.exp(-x/r),S=x=>m+w(x),C=x=>{const T=w(x),A=S(x);h.done=Math.abs(T)<=u,h.value=h.done?m:A};let v,E;const D=x=>{p(h.value)&&(v=x,E=hu({keyframes:[h.value,g(h.value)],velocity:fu(S,x,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:x=>{let T=!1;return!E&&v===void 0&&(T=!0,C(x),D(x)),v!==void 0&&x>=v?E.next(x-v):(!T&&C(x),h)}}}const bm=zn(.42,0,1,1),wm=zn(0,0,.58,1),du=zn(.42,0,.58,1),Sm=t=>Array.isArray(t)&&typeof t[0]!="number",Fo={linear:Oe,easeIn:bm,easeInOut:du,easeOut:wm,circIn:ms,circInOut:Kl,circOut:Hl,backIn:ps,backInOut:Wl,backOut:Ul,anticipate:Gl},ko=t=>{if(ls(t)){lt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return zn(e,n,r,i)}else if(typeof t=="string")return lt(Fo[t]!==void 0,`Invalid easing type '${t}'`),Fo[t];return t};function xm(t,e,n){const r=[],i=n||cu,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||Oe:e;a=Un(l,a)}r.push(a)}return r}function Cm(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(lt(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=xm(e,r,i),l=a.length,u=c=>{if(o&&c<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const h=rn(t[f],t[f+1],c);return a[f](h)};return n?c=>u(ft(t[0],t[s-1],c)):u}function Am(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=rn(0,e,r);t.push(re(n,1,i))}}function Tm(t){const e=[0];return Am(e,t.length-1),e}function Em(t,e){return t.map(n=>n*e)}function Pm(t,e){return t.map(()=>e||du).splice(0,t.length-1)}function Sn({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Sm(r)?r.map(ko):ko(r),s={done:!1,value:e[0]},o=Em(n&&n.length===e.length?n:Tm(e),t),a=Cm(o,e,{ease:Array.isArray(i)?i:Pm(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}const Rm=t=>{const e=({timestamp:n})=>t(n);return{start:()=>q.update(e,!0),stop:()=>Ct(e),now:()=>de.isProcessing?de.timestamp:at.now()}},Om={decay:Lo,inertia:Lo,tween:Sn,keyframes:Sn,spring:hu},Vm=t=>t/100;class Ss extends lu{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||bs,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=as(n)?n:Om[n]||Sn;let l,u;process.env.NODE_ENV!=="production"&&a!==Sn&&lt(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==Sn&&typeof e[0]!="number"&&(l=Un(Vm,cu(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});s==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Ol(c));const{calculatedDuration:f}=c,h=f+i,p=h*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:x}=this.options;return{done:!0,value:x[x.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:p,repeatType:g,repeatDelay:y,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/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 m=this.currentTime-h*(this.speed>=0?1:-1),w=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let S=this.currentTime,C=s;if(p){const x=Math.min(this.currentTime,c)/f;let T=Math.floor(x),A=x%1;!A&&x>=1&&(A=1),A===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(g==="reverse"?(A=1-A,y&&(A-=y/f)):g==="mirror"&&(C=o)),S=ft(0,1,A)*f}const v=w?{done:!1,value:l[0]}:C.next(S);a&&(v.value=a(v.value));let{done:E}=v;!w&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return D&&i!==void 0&&(v.value=Dr(l,this.options,i)),b&&b(v.value),D&&this.finish(),v}get duration(){const{resolved:e}=this;return e?ct(e.calculatedDuration):0}get time(){return ct(this.currentTime)}set time(e){e=st(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=ct(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Rm,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Mm=new Set(["opacity","clipPath","filter","transform"]);function Dm(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Dl(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Lm=Gi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xr=10,Fm=2e4;function km(t){return as(t.type)||t.type==="spring"||!Ml(t.ease)}function Im(t,e){const n=new Ss({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let s=0;for(;!r.done&&s<Fm;)r=n.sample(s),i.push(r.value),s+=xr;return{times:void 0,keyframes:i,duration:s-xr,ease:"linear"}}const pu={anticipate:Gl,backInOut:Wl,circInOut:Kl};function jm(t){return t in pu}class Io extends lu{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new au(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&br()&&jm(s)&&(s=pu[s]),km(this.options)){const{onComplete:f,onUpdate:h,motionValue:p,element:g,...y}=this.options,b=Im(e,y);e=b.keyframes,e.length===1&&(e[1]=e[0]),r=b.duration,i=b.times,s=b.ease,o="keyframes"}const c=Dm(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(vo(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;a.set(Dr(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return ct(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return ct(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=st(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Oe;const{animation:r}=n;vo(r,e)}return Oe}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:h,...p}=this.options,g=new Ss({...p,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),y=st(this.time);u.setWithVelocity(g.sample(y-xr).value,g.sample(y).value,xr)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Lm()&&r&&Mm.has(r)&&!l&&!u&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const _m={type:"spring",stiffness:500,damping:25,restSpeed:10},Bm=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),$m={type:"keyframes",duration:.8},Nm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zm=(t,{keyframes:e})=>e.length>2?$m:_t.has(t)?t.startsWith("scale")?Bm(e[1]):_m:Nm;function Um({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const xs=(t,e,n,r={},i,s)=>o=>{const a=os(r,t)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-st(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i};Um(a)||(c={...c,...zm(t,c)}),c.duration&&(c.duration=st(c.duration)),c.repeatDelay&&(c.repeatDelay=st(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!s&&e.get()!==void 0){const h=Dr(c.keyframes,a);if(h!==void 0)return q.update(()=>{c.onUpdate(h),c.onComplete()}),new up([])}return!s&&Io.supports(c)?new Io(c):new Ss(c)};function Wm({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function mu(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const f in l){const h=t.getValue(f,(s=t.latestValues[f])!==null&&s!==void 0?s:null),p=l[f];if(p===void 0||c&&Wm(c,f))continue;const g={delay:n,...os(o||{},f)};let y=!1;if(window.MotionHandoffAnimation){const m=Bl(t);if(m){const w=window.MotionHandoffAnimation(m,f,q);w!==null&&(g.startTime=w,y=!0)}}Si(t,f),h.start(xs(f,h,p,t.shouldReduceMotion&&jl.has(f)?{type:!1}:g,t,y));const b=h.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{q.update(()=>{a&&ds(t,a)})}),u}function Ri(t,e,n={}){var r;const i=Mn(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(mu(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:h}=s;return Gm(t,e,c+u,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function Gm(t,e,n=0,r=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(t.variantChildren).sort(Hm).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Ri(u,e,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Hm(t,e){return t.sortNodePosition(e)}function gu(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Ri(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Ri(t,e,n);else{const i=typeof e=="function"?Mn(t,e,n.custom):e;r=Promise.all(mu(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function yu(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const Km=Ki.length;function vu(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?vu(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Km;n++){const r=Ki[n],i=t.props[r];(Rn(i)||i===!1)&&(e[r]=i)}return e}const qm=[...Hi].reverse(),Ym=Hi.length;function Xm(t){return e=>Promise.all(e.map(({animation:n,options:r})=>gu(t,n,r)))}function Zm(t){let e=Xm(t),n=jo(),r=!0;const i=l=>(u,c)=>{var f;const h=Mn(t,c,l==="exit"?(f=t.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:g,...y}=h;u={...u,...y,...g}}return u};function s(l){e=l(t)}function o(l){const{props:u}=t,c=vu(t.parent)||{},f=[],h=new Set;let p={},g=1/0;for(let b=0;b<Ym;b++){const m=qm[b],w=n[m],S=u[m]!==void 0?u[m]:c[m],C=Rn(S),v=m===l?w.isActive:null;v===!1&&(g=b);let E=S===c[m]&&S!==u[m]&&C;if(E&&r&&t.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...p},!w.isActive&&v===null||!S&&!w.prevProp||Vr(S)||typeof S=="boolean")continue;const D=Jm(w.prevProp,S);let x=D||m===l&&w.isActive&&!E&&C||b>g&&C,T=!1;const A=Array.isArray(S)?S:[S];let P=A.reduce(i(m),{});v===!1&&(P={});const{prevResolvedValues:B={}}=w,J={...B,...P},ue=N=>{x=!0,h.has(N)&&(T=!0,h.delete(N)),w.needsAnimating[N]=!0;const K=t.getValue(N);K&&(K.liveStyle=!1)};for(const N in J){const K=P[N],Te=B[N];if(p.hasOwnProperty(N))continue;let we=!1;vi(K)&&vi(Te)?we=!yu(K,Te):we=K!==Te,we?K!=null?ue(N):h.add(N):K!==void 0&&h.has(N)?ue(N):w.protectedKeys[N]=!0}w.prevProp=S,w.prevResolvedValues=P,w.isActive&&(p={...p,...P}),r&&t.blockInitialAnimation&&(x=!1),x&&(!(E&&D)||T)&&f.push(...A.map(N=>({animation:N,options:{type:m}})))}if(h.size){const b={};if(typeof u.initial!="boolean"){const m=Mn(t,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(b.transition=m.transition)}h.forEach(m=>{const w=t.getBaseTarget(m),S=t.getValue(m);S&&(S.liveStyle=!0),b[m]=w??null}),f.push({animation:b})}let y=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(f):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const f=o(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=jo(),r=!0}}}function Jm(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!yu(e,t):!1}function Ot(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jo(){return{animate:Ot(!0),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}class Tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Qm extends Tt{constructor(e){super(e),e.animationState||(e.animationState=Zm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Vr(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 e0=0;class t0 extends Tt{constructor(){super(...arguments),this.id=e0++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const n0={animation:{Feature:Qm},exit:{Feature:t0}};function Fn(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Wn(t){return{point:{x:t.pageX,y:t.pageY}}}const r0=t=>e=>us(e)&&t(e,Wn(e));function Wt(t,e,n,r){return Fn(t,e,r0(n),r)}function bu({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function i0({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s0(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const wu=1e-4,o0=1-wu,a0=1+wu,Su=.01,l0=0-Su,u0=0+Su;function Ae(t){return t.max-t.min}function c0(t,e,n){return Math.abs(t-e)<=n}function _o(t,e,n,r=.5){t.origin=r,t.originPoint=re(e.min,e.max,t.origin),t.scale=Ae(n)/Ae(e),t.translate=re(n.min,n.max,t.origin)-t.originPoint,(t.scale>=o0&&t.scale<=a0||isNaN(t.scale))&&(t.scale=1),(t.translate>=l0&&t.translate<=u0||isNaN(t.translate))&&(t.translate=0)}function xn(t,e,n,r){_o(t.x,e.x,n.x,r?r.originX:void 0),_o(t.y,e.y,n.y,r?r.originY:void 0)}function Bo(t,e,n){t.min=n.min+e.min,t.max=t.min+Ae(e)}function f0(t,e,n){Bo(t.x,e.x,n.x),Bo(t.y,e.y,n.y)}function $o(t,e,n){t.min=e.min-n.min,t.max=t.min+Ae(e)}function Cn(t,e,n){$o(t.x,e.x,n.x),$o(t.y,e.y,n.y)}const No=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gt=()=>({x:No(),y:No()}),zo=()=>({min:0,max:0}),ie=()=>({x:zo(),y:zo()});function $e(t){return[t("x"),t("y")]}function Xr(t){return t===void 0||t===1}function Oi({scale:t,scaleX:e,scaleY:n}){return!Xr(t)||!Xr(e)||!Xr(n)}function Vt(t){return Oi(t)||xu(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function xu(t){return Uo(t.x)||Uo(t.y)}function Uo(t){return t&&t!=="0%"}function Cr(t,e,n){const r=t-n,i=e*r;return n+i}function Wo(t,e,n,r,i){return i!==void 0&&(t=Cr(t,i,r)),Cr(t,n,r)+e}function Vi(t,e=0,n=1,r,i){t.min=Wo(t.min,e,n,r,i),t.max=Wo(t.max,e,n,r,i)}function Cu(t,{x:e,y:n}){Vi(t.x,e.translate,e.scale,e.originPoint),Vi(t.y,n.translate,n.scale,n.originPoint)}const Go=.999999999999,Ho=1.0000000000001;function h0(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Kt(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Cu(t,o)),r&&Vt(s.latestValues)&&Kt(t,s.latestValues))}e.x<Ho&&e.x>Go&&(e.x=1),e.y<Ho&&e.y>Go&&(e.y=1)}function Ht(t,e){t.min=t.min+e,t.max=t.max+e}function Ko(t,e,n,r,i=.5){const s=re(t.min,t.max,i);Vi(t,e,n,s,r)}function Kt(t,e){Ko(t.x,e.x,e.scaleX,e.scale,e.originX),Ko(t.y,e.y,e.scaleY,e.scale,e.originY)}function Au(t,e){return bu(s0(t.getBoundingClientRect(),e))}function d0(t,e,n){const r=Au(t,n),{scroll:i}=e;return i&&(Ht(r.x,i.offset.x),Ht(r.y,i.offset.y)),r}const qo=(t,e)=>Math.abs(t-e);function p0(t,e){const n=qo(t.x,e.x),r=qo(t.y,e.y);return Math.sqrt(n**2+r**2)}class Tu{constructor(e,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Jr(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=p0(c.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:p}=c,{timestamp:g}=de;this.history.push({...p,timestamp:g});const{onStart:y,onMove:b}=this.handlers;f||(y&&y(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{if(c.target instanceof Element&&c.target.hasPointerCapture&&c.pointerId!==void 0)try{if(!c.target.hasPointerCapture(c.pointerId))return}catch{}this.lastMoveEvent=c,this.lastMoveEventInfo=Zr(f,this.transformPagePoint),q.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{wr(c,"release"),this.end();const{onEnd:h,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Jr(c.type==="pointercancel"||c.type==="lostpointercapture"?this.lastMoveEventInfo:Zr(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(c,y),p&&p(c,y)},!us(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=Wn(e),o=Zr(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=de;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=n;u&&u(e,Jr(o,this.history)),wr(e,"set"),this.removeListeners=Un(Wt(e.currentTarget,"pointermove",this.handlePointerMove),Wt(e.currentTarget,"pointerup",this.handlePointerUp),Wt(e.currentTarget,"pointercancel",this.handlePointerUp),Wt(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ct(this.updatePoint)}}function Zr(t,e){return e?{point:e(t.point)}:t}function Yo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Jr({point:t},e){return{point:t,delta:Yo(t,Eu(e)),offset:Yo(t,m0(e)),velocity:g0(e,.1)}}function m0(t){return t[0]}function Eu(t){return t[t.length-1]}function g0(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Eu(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>st(e)));)n--;if(!r)return{x:0,y:0};const s=ct(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function y0(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?re(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?re(n,t,r.max):Math.min(t,n)),t}function Xo(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 v0(t,{top:e,left:n,bottom:r,right:i}){return{x:Xo(t.x,n,i),y:Xo(t.y,e,r)}}function Zo(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function b0(t,e){return{x:Zo(t.x,e.x),y:Zo(t.y,e.y)}}function w0(t,e){let n=.5;const r=Ae(t),i=Ae(e);return i>r?n=rn(e.min,e.max-r,t.min):r>i&&(n=rn(t.min,t.max-i,e.min)),ft(0,1,n)}function S0(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 Mi=.35;function x0(t=Mi){return t===!1?t=0:t===!0&&(t=Mi),{x:Jo(t,"left","right"),y:Jo(t,"top","bottom")}}function Jo(t,e,n){return{min:Qo(t,e),max:Qo(t,n)}}function Qo(t,e){return typeof t=="number"?t:t[e]||0}const C0=new WeakMap;class A0{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=ie(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Wn(c).point)},s=(c,f)=>{const{drag:h,dragPropagation:p,onDragStart:g}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vp(h),!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),$e(b=>{let m=this.getAxisMotionValue(b).get()||0;if(ot.test(m)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[b];S&&(m=Ae(S)*(parseFloat(m)/100))}}this.originPoint[b]=m}),g&&q.postRender(()=>g(c,f)),Si(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:g,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=T0(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),y&&y(c,f)},a=(c,f)=>this.stop(c,f),l=()=>$e(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Tu(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&q.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Jn(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=y0(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&zt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=v0(i.layoutBox,n):this.constraints=!1,this.elastic=x0(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$e(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=S0(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!zt(e))return!1;const r=e.current;lt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=d0(r,i.root,this.visualElement.getTransformPagePoint());let o=b0(i.layout.layoutBox,s);if(n){const a=n(i0(o));this.hasMutatedConstraints=!!a,a&&(o=bu(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=$e(c=>{if(!Jn(c,n,this.currentDirection))return;let f=l[c]||{};o&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?e[c]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Si(this.visualElement,e),r.start(xs(e,r,0,n,this.visualElement,!1))}stopAnimation(){$e(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$e(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){$e(n=>{const{drag:r}=this.getProps();if(!Jn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-re(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$e(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=w0({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$e(o=>{if(!Jn(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(re(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;C0.set(this.visualElement,this);const e=this.visualElement.current,n=Wt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();zt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),q.read(r);const o=Fn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($e(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Mi,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Jn(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function T0(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class E0 extends Tt{constructor(e){super(e),this.removeGroupControls=Oe,this.removeListeners=Oe,this.controls=new A0(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Oe}unmount(){this.removeGroupControls(),this.removeListeners()}}const ea=t=>(e,n)=>{t&&q.postRender(()=>t(e,n))};class P0 extends Tt{constructor(){super(...arguments),this.removePointerDownListener=Oe}onPointerDown(e){this.session=new Tu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ea(e),onStart:ea(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&q.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Wt(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 lr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ta(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mn={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(j.test(t))t=parseFloat(t);else return t;const n=ta(t,e.target.x),r=ta(t,e.target.y);return`${n}% ${r}%`}},R0={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=At.parse(t);if(i.length>5)return r;const s=At.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=re(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class O0 extends O.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;Id(V0),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),lr.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||q.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Yi.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Pu(t){const[e,n]=pd(),r=O.useContext(al);return ur.jsx(O0,{...t,layoutGroup:r,switchLayoutGroup:O.useContext(gl),isPresent:e,safeToRemove:n})}const V0={borderRadius:{...mn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomLeftRadius:mn,borderBottomRightRadius:mn,boxShadow:R0};function M0(t,e,n){const r=be(t)?t:Dn(t);return r.start(xs("",r,e,n)),r.animation}function D0(t){return t instanceof SVGElement&&t.tagName!=="svg"}const L0=(t,e)=>t.depth-e.depth;class F0{constructor(){this.children=[],this.isDirty=!1}add(e){cs(this.children,e),this.isDirty=!0}remove(e){fs(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(L0),this.isDirty=!1,this.children.forEach(e)}}function k0(t,e){const n=at.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(Ct(r),t(s-e))};return q.read(r,!0),()=>Ct(r)}const Ru=["TopLeft","TopRight","BottomLeft","BottomRight"],I0=Ru.length,na=t=>typeof t=="string"?parseFloat(t):t,ra=t=>typeof t=="number"||j.test(t);function j0(t,e,n,r,i,s){i?(t.opacity=re(0,n.opacity!==void 0?n.opacity:1,_0(r)),t.opacityExit=re(e.opacity!==void 0?e.opacity:1,0,B0(r))):s&&(t.opacity=re(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<I0;o++){const a=`border${Ru[o]}Radius`;let l=ia(e,a),u=ia(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||ra(l)===ra(u)?(t[a]=Math.max(re(na(l),na(u),r),0),(ot.test(u)||ot.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=re(e.rotate||0,n.rotate||0,r))}function ia(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const _0=Ou(0,.5,Hl),B0=Ou(.5,.95,Oe);function Ou(t,e,n){return r=>r<t?0:r>e?1:n(rn(t,e,r))}function sa(t,e){t.min=e.min,t.max=e.max}function Be(t,e){sa(t.x,e.x),sa(t.y,e.y)}function oa(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function aa(t,e,n,r,i){return t-=e,t=Cr(t,1/n,r),i!==void 0&&(t=Cr(t,1/i,r)),t}function $0(t,e=0,n=1,r=.5,i,s=t,o=t){if(ot.test(e)&&(e=parseFloat(e),e=re(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=re(s.min,s.max,r);t===s&&(a-=e),t.min=aa(t.min,e,n,a,i),t.max=aa(t.max,e,n,a,i)}function la(t,e,[n,r,i],s,o){$0(t,e[n],e[r],e[i],e.scale,s,o)}const N0=["x","scaleX","originX"],z0=["y","scaleY","originY"];function ua(t,e,n,r){la(t.x,e,N0,n?n.x:void 0,r?r.x:void 0),la(t.y,e,z0,n?n.y:void 0,r?r.y:void 0)}function ca(t){return t.translate===0&&t.scale===1}function Vu(t){return ca(t.x)&&ca(t.y)}function fa(t,e){return t.min===e.min&&t.max===e.max}function U0(t,e){return fa(t.x,e.x)&&fa(t.y,e.y)}function ha(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Mu(t,e){return ha(t.x,e.x)&&ha(t.y,e.y)}function da(t){return Ae(t.x)/Ae(t.y)}function pa(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class W0{constructor(){this.members=[]}add(e){cs(this.members,e),e.scheduleRender()}remove(e){if(fs(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function G0(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:h,skewX:p,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Qr=["","X","Y","Z"],H0={visibility:"hidden"},ma=1e3;let K0=0;function ei(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Du(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Bl(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",q,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Du(r)}function Lu({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=K0++,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(X0),this.nodes.forEach(tg),this.nodes.forEach(ng),this.nodes.forEach(Z0)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new F0)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new hs),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=D0(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let f;const h=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=k0(h,250),lr.hasAnimatedSinceResize&&(lr.hasAnimatedSinceResize=!1,this.nodes.forEach(ya))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeLayoutChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||ag,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=c.getProps(),w=!this.targetLayout||!Mu(this.targetLayout,g),S=!h&&p;if(this.options.layoutRoot||this.resumeFrom||S||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const C={...os(y,"layout"),onPlay:b,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else h||ya(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ct(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(rg),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Du(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];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 u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ga);return}this.isUpdating||this.nodes.forEach(Q0),this.isUpdating=!1,this.nodes.forEach(eg),this.nodes.forEach(q0),this.nodes.forEach(Y0),this.clearAllSnapshots();const a=at.now();de.delta=ft(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Gr.update.process(de),Gr.preRender.process(de),Gr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Yi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(J0),this.sharedNodes.forEach(ig)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ae(this.snapshot.measuredBox.x)&&!Ae(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Vu(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||Vt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),lg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return ie();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(ug))){const{scroll:c}=this.root;c&&(Ht(l.x,c.offset.x),Ht(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=ie();if(Be(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:h}=c;c!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Be(l,o),Ht(l.x,f.offset.x),Ht(l.y,f.offset.y))}return l}applyTransform(o,a=!1){const l=ie();Be(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Kt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Vt(c.latestValues)&&Kt(l,c.latestValues)}return Vt(this.latestValues)&&Kt(l,this.latestValues),l}removeTransform(o){const a=ie();Be(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Vt(u.latestValues))continue;Oi(u.latestValues)&&u.updateSnapshot();const c=ie(),f=u.measurePageBox();Be(c,f),ua(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Vt(this.latestValues)&&ua(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==de.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=de.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Cn(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),f0(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Be(this.target,this.layout.layoutBox),Cu(this.target,this.targetDelta)):Be(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Cn(this.relativeTargetOrigin,this.target,p.target),Be(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Oi(this.parent.latestValues)||xu(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===de.timestamp&&(u=!1),u)return;const{layout:c,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||!(c||f))return;Be(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;h0(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=ie());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oa(this.prevProjectionDelta.x,this.projectionDelta.x),oa(this.prevProjectionDelta.y,this.projectionDelta.y)),xn(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!pa(this.projectionDelta.x,this.prevProjectionDelta.x)||!pa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gt(),this.projectionDelta=Gt(),this.projectionDeltaWithTransform=Gt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=Gt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ie(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=p!==g,b=this.getStack(),m=!b||b.members.length<=1,w=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(og));this.animationProgress=0;let S;this.mixTargetDelta=C=>{const v=C/1e3;va(f.x,o.x,v),va(f.y,o.y,v),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sg(this.relativeTarget,this.relativeTargetOrigin,h,v),S&&U0(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=ie()),Be(S,this.relativeTarget)),y&&(this.animationValues=c,j0(c,u,this.latestValues,v,w,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=q.update(()=>{lr.hasAnimatedSinceResize=!0,this.currentAnimation=M0(0,ma,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ma),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Fu(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ie();const f=Ae(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Ae(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Be(a,l),Kt(a,c),xn(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new W0),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ei("z",o,u,this.animationValues);for(let c=0;c<Qr.length;c++)ei(`rotate${Qr[c]}`,o,u,this.animationValues),ei(`skew${Qr[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return H0;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=or(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=or(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Vt(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=G0(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:p,y:g}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in On){if(h[y]===void 0)continue;const{correct:b,applyTo:m,isCSSVariable:w}=On[y],S=u.transform==="none"?h[y]:b(h[y],f);if(m){const C=m.length;for(let v=0;v<C;v++)u[m[v]]=S}else w?this.options.visualElement.renderState.vars[y]=S:u[y]=S}return this.options.layoutId&&(u.pointerEvents=f===this?or(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ga),this.root.sharedNodes.clear()}}}function q0(t){t.updateLayout()}function Y0(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?$e(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],p=Ae(h);h.min=r[f].min,h.max=h.min+p}):Fu(s,n.layoutBox,r)&&$e(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],p=Ae(r[f]);h.max=h.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+p)});const a=Gt();xn(a,r,n.layoutBox);const l=Gt();o?xn(l,t.applyTransform(i,!0),n.measuredBox):xn(l,r,n.layoutBox);const u=!Vu(a);let c=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const g=ie();Cn(g,n.layoutBox,h.layoutBox);const y=ie();Cn(y,r,p.layoutBox),Mu(g,y)||(c=!0),f.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function X0(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 Z0(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function J0(t){t.clearSnapshot()}function ga(t){t.clearMeasurements()}function Q0(t){t.isLayoutDirty=!1}function eg(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ya(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tg(t){t.resolveTargetDelta()}function ng(t){t.calcProjection()}function rg(t){t.resetSkewAndRotation()}function ig(t){t.removeLeadSnapshot()}function va(t,e,n){t.translate=re(e.translate,0,n),t.scale=re(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ba(t,e,n,r){t.min=re(e.min,n.min,r),t.max=re(e.max,n.max,r)}function sg(t,e,n,r){ba(t.x,e.x,n.x,r),ba(t.y,e.y,n.y,r)}function og(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ag={duration:.45,ease:[.4,0,.1,1]},wa=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Sa=wa("applewebkit/")&&!wa("chrome/")?Math.round:Oe;function xa(t){t.min=Sa(t.min),t.max=Sa(t.max)}function lg(t){xa(t.x),xa(t.y)}function Fu(t,e,n){return t==="position"||t==="preserve-aspect"&&!c0(da(e),da(n),.2)}function ug(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const cg=Lu({attachResizeListener:(t,e)=>Fn(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ti={current:void 0},ku=Lu({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ti.current){const t=new cg({});t.mount(window),t.setOptions({layoutScroll:!0}),ti.current=t}return ti.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),fg={pan:{Feature:P0},drag:{Feature:E0,ProjectionNode:ku,MeasureLayout:Pu}};function Ca(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&q.postRender(()=>s(e,Wn(e)))}class hg extends Tt{mount(){const{current:e}=this.node;e&&(this.unmount=hp(e,(n,r)=>(Ca(this.node,r,"Start"),i=>Ca(this.node,i,"End"))))}unmount(){}}class dg extends Tt{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=Un(Fn(this.node.current,"focus",()=>this.onFocus()),Fn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Aa(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&q.postRender(()=>s(e,Wn(e)))}class pg extends Tt{mount(){const{current:e}=this.node;e&&(this.unmount=gp(e,(n,r)=>(Aa(this.node,r,"Start"),(i,{success:s})=>Aa(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Di=new WeakMap,ni=new WeakMap,mg=t=>{const e=Di.get(t.target);e&&e(t)},gg=t=>{t.forEach(mg)};function yg({root:t,...e}){const n=t||document;ni.has(n)||ni.set(n,{});const r=ni.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(gg,{root:t,...e})),r[i]}function vg(t,e,n){const r=yg(e);return Di.set(t,n),r.observe(t),()=>{Di.delete(t),r.unobserve(t)}}const bg={some:0,all:1};class wg extends Tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:bg[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=u?c:f;h&&h(l)};return vg(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Sg(e,n))&&this.startObserver()}unmount(){}}function Sg({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const xg={inView:{Feature:wg},tap:{Feature:pg},focus:{Feature:dg},hover:{Feature:hg}},Cg={layout:{ProjectionNode:ku,MeasureLayout:Pu}},Li={current:null},Iu={current:!1};function Ag(){if(Iu.current=!0,!!Wi)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Li.current=t.matches;t.addListener(e),e()}else Li.current=!1}const Tg=[...ou,ve,At],Eg=t=>Tg.find(su(t)),Pg=new WeakMap;function Rg(t,e,n){for(const r in e){const i=e[r],s=n[r];if(be(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Rr(i.version==="12.4.7",`Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);else if(be(s))t.addValue(r,Dn(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,Dn(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ta=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Og{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bs,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 p=at.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,q.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Mr(n),this.isVariantNode=pl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const g=h[p];l[p]!==void 0&&be(g)&&g.set(l[p],!1)}}mount(e){this.current=e,Pg.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Iu.current||Ag(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Li.current,process.env.NODE_ENV!=="production"&&Rr(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(),Ct(this.notifyUpdate),Ct(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=_t.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in sn){const n=sn[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ta.length;r++){const i=Ta[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Rg(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Dn(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(ru(i)||ql(i))?i=parseFloat(i):!Eg(i)&&At.test(n)&&(i=eu(e,n)),this.setBaseTarget(e,be(i)?i.get():i)),be(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=is(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!be(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new hs),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ju extends Og{constructor(){super(...arguments),this.KeyframeResolver=au}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;be(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Vg(t){return window.getComputedStyle(t)}class Mg extends ju{constructor(){super(...arguments),this.type="html",this.renderInstance=Tl}readValueFromInstance(e,n){if(_t.has(n)){const r=vs(n);return r&&r.default||0}else{const r=Vg(e),i=(Xi(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Au(e,n)}build(e,n,r){Qi(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return ss(e,n,r)}}class Dg extends ju{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Al(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_t.has(n)){const r=vs(n);return r&&r.default||0}return n=El.has(n)?n:qi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return Rl(e,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&q.postRender(this.updateDimensions)}build(e,n,r){ns(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){Pl(e,n,r,i)}mount(e){this.isSVGTag=rs(e.tagName),super.mount(e)}}const Lg=(t,e)=>ts(t)?new Dg(e):new Mg(e,{allowProjection:t!==O.Fragment}),Fg=op({...n0,...xg,...fg,...Cg},Lg),kg=xd(Fg);function Ig(t){t.values.forEach(e=>e.stop())}function Fi(t,e){[...e].reverse().forEach(r=>{const i=t.getVariant(r);i&&ds(t,i),t.variantChildren&&t.variantChildren.forEach(s=>{Fi(s,e)})})}function jg(t,e){if(Array.isArray(e))return Fi(t,e);if(typeof e=="string")return Fi(t,[e]);ds(t,e)}function _g(){let t=!1;const e=new Set,n={subscribe(r){return e.add(r),()=>void e.delete(r)},start(r,i){lt(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const s=[];return e.forEach(o=>{s.push(gu(o,r,{transitionOverride:i}))}),Promise.all(s)},set(r){return lt(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(i=>{jg(i,r)})},stop(){e.forEach(r=>{Ig(r)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function Bg(){const t=ll(_g);return cl(t.mount,[]),t}const $g=Bg,Ng={some:0,all:1};function zg(t,e,{root:n,margin:r,amount:i="some"}={}){const s=Fl(t),o=new WeakMap,a=u=>{u.forEach(c=>{const f=o.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=e(c.target,c);typeof h=="function"?o.set(c.target,h):l.unobserve(c.target)}else typeof f=="function"&&(f(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:Ng[i]});return s.forEach(u=>l.observe(u)),()=>l.disconnect()}function Ug(t,{root:e,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[o,a]=O.useState(s);return O.useEffect(()=>{if(!t.current||i&&o)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),u={root:e&&e.current||void 0,margin:n,amount:r};return zg(t.current,l,u)},[e,t,n,i,r]),o}var qt=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(qt||{});const Wg=k.section(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},colors:r,header:{height:i},footer:{height:s},section:{paddingTop:o,paddingBottom:a}},zIndex:l,align:u,isDark:c,isFullHeight:f,noPaddingTop:h,noPaddingBottom:p,backgroundColor:g})=>ee({zIndex:l,width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",background:g,paddingTop:o[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:a[0],animation:"background 0.5s ease-in-out",justifyContent:f?"center":"flex-start",color:c?r.defaultLightText:r.defaultText,minHeight:f?`calc(100vh - ${i[0]}px - ${s[0]}px)`:0,[V[0]]:{paddingLeft:e[1],paddingRight:n[1],paddingTop:h?0:o[1],paddingBottom:p?0:o[1],minHeight:f?`calc(100vh - ${i[1]}px - ${s[1]}px)`:0},[V[1]]:{paddingLeft:e[2],paddingRight:n[2],paddingTop:h?0:o[2],paddingBottom:p?0:a[2],minHeight:f?`calc(100vh - ${i[2]}px - ${s[2]}px)`:0},[V[2]]:{paddingLeft:e[3],paddingRight:n[3],paddingTop:h?0:o[3],paddingBottom:p?0:a[3],minHeight:f?`calc(100vh - ${i[3]}px - ${s[3]}px)`:0},"> div":{textAlign:u===qt.Center?"center":u===qt.Right?"right":"left",alignItems:u===qt.Center?"center":u===qt.Right?"right":"left"},p:{color:c?r.defaultLightText:r.defaultText}},t)),Gg=k(kg.div)({gap:15,width:"100%",display:"flex",flexDirection:"column",maxWidth:"var(--max-width)"}),Hg={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},Kg=({children:t,zIndex:e=20,styles:n={},id:r=void 0,isDark:i=!1,align:s=qt.Left,isFullHeight:o=!1,noPaddingTop:a=!1,backgroundColor:l="",theme:u=H,noPaddingBottom:c=!1})=>{const f=$g(),h=O.createRef(),p=Ug(h,{margin:"0px 0px 0px 0px"});return O.useEffect(()=>{p&&f.start("visible")},[f,p]),M(Wg,{id:r,ref:h,align:s,theme:u,styles:n,zIndex:e,isDark:i,isFullHeight:o,noPaddingTop:a,noPaddingBottom:c,backgroundColor:l||u.main.backgroundColor,children:M(Gg,{initial:"hidden",animate:f,variants:Hg,children:t})})},qg=k.div(({styles:t,theme:{nav:{gap:e}}})=>ee({gap:e[0],display:"flex",flexDirection:"column",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2],flexDirection:"row"},[V[2]]:{gap:e[3]}},t)),Yg=({children:t,styles:e={},theme:n=H})=>M(qg,{theme:n,styles:e,children:t}),Xg=k.div(({styles:t,theme:{navSocial:{gap:e}}})=>ee({gap:e[0],marginLeft:0,marginRight:0,display:"flex",flexDirection:"row",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2]},[V[2]]:{gap:e[3]}},t)),Zg=k.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),Jg=({navSocial:t,styles:e={},theme:n=H})=>M(Xg,{theme:n,styles:e,children:t.map(({name:r,link:i},s)=>{const o=r[0].toUpperCase()+r.slice(1);return M(Zg,{children:M("a",{target:"_blank","aria-label":r,href:i,children:M(rt,{theme:n,icon:`social${o}`})})},`navSocialItem-${s}`)})}),Qg=k.div(({styles:t,theme:{navLegal:{gap:e}}})=>ee({gap:e[0],display:"flex",flexDirection:"row",[V[0]]:{gap:e[1]},[V[1]]:{gap:e[2]},[V[2]]:{gap:e[3]}},t)),ey=({children:t,styles:e={},theme:n=H})=>M(Qg,{theme:n,styles:e,children:t}),ty=k.form(({styles:t,theme:{form:{width:e,padding:n,backgroundColor:r}}})=>ee({width:"100%",maxWidth:e,backgroundColor:r,padding:n[0],position:"relative",[V[1]]:{padding:n[1]}},t)),ny=({action:t,children:e,styles:n={},theme:r=H})=>M(ty,{theme:r,styles:n,action:t,children:e});var kn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(kn||{});const ry=k.div(({theme:{form:{row:{gap:t,padding:e}}},align:n,styles:r,isMessage:i})=>ee({gap:t[0],display:"flex",padding:e[0],flexDirection:"column",fontSize:i?"0.8em":"inherit",justifyContent:n===kn.Right?"flex-end":n===kn.Center?"center":"flex-start",[V[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},r)),iy=({children:t,theme:e=H,styles:n={},isActions:r=!1,isMessage:i=!1,align:s=kn.Left})=>M(ry,{align:s,theme:e,styles:n,isActions:r,isMessage:i,children:t}),sy=k.input(({styles:t,theme:{form:{input:{font:e,color:n,border:r,padding:i,borderRadius:s,backgroundColor:o,placeholder:{color:a,opacity:l}}}}})=>ee({color:n,width:"100%",border:r,lineHeight:"1.5em",fontSize:"inherit",padding:i[0],borderRadius:s,backgroundColor:o,fontFamily:`var(--font-${e})`,[V[1]]:{padding:i[1]},"&:focus":{outline:r},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${o} inset`}},t));var Lr=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(Lr||{});const _u=({name:t,value:e="",styles:n={},type:r=Lr.Text,disabled:i=!1,placeholder:s="",theme:o=H,onChange:a=void 0})=>M(sy,{type:r,id:t,name:t,theme:o,styles:n,onChange:a,disabled:i,defaultValue:e,placeholder:s}),oy=k.label(({theme:{form:{label:{color:t,font:e,fontWeight:n,paddingBottom:r}}}})=>({color:t,fontWeight:n,paddingBottom:r,width:"100%",textAlign:"left",fontFamily:`var(--font-${e})`})),Bu=({name:t,label:e,required:n=!1,theme:r=H})=>Me(oy,{htmlFor:t,theme:r,children:[e,n?M("span",{children:" *"}):""]}),ay=k.div(({styles:t})=>ee({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),ly=k.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),uy=k.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),cy=k.textarea(({styles:t,theme:{form:{textarea:{font:e,color:n,border:r,padding:i,borderRadius:s,backgroundColor:o,placeholder:{color:a,opacity:l}}}}})=>ee({color:n,width:"100%",border:r,padding:i[0],lineHeight:"1.5em",fontSize:"inherit",borderRadius:s,backgroundColor:o,fontFamily:`var(--font-${e})`,[V[1]]:{padding:i[1]},"&:focus":{outline:r},"&::placeholder":{color:a,opacity:l},"&:-webkit-autofill":{textFillColor:n,boxShadow:`0 0 0px 1000px ${o} inset`}},t)),$u=({name:t,value:e,rows:n=2,disabled:r,styles:i={},placeholder:s="",onChange:o=void 0,theme:a=H})=>M(cy,{id:t,name:t,rows:n,theme:a,styles:i,onChange:o,disabled:r,defaultValue:e,placeholder:s});var Cs=(t=>(t.Textarea="textarea",t))(Cs||{});const fy=({name:t,label:e="",value:n="",styles:r={},rows:i=void 0,required:s=!1,disabled:o=!1,placeholder:a="",errors:l=void 0,theme:u=H,onChange:c=void 0,type:f=Lr.Text})=>Me(ay,{styles:r,children:[e&&M(Bu,{theme:u,label:e,name:t,required:s}),f===Cs.Textarea?M($u,{value:n,rows:i,name:t,theme:u,onChange:c,disabled:o,placeholder:a}):M(_u,{value:n,type:f,name:t,theme:u,onChange:c,disabled:o,placeholder:a}),l&&M(ly,{children:l instanceof Array?l.map((h,p)=>M(uy,{theme:u,children:h},p)):l})]}),hy=k.div(({styles:t,theme:{consentCookie:{overlayBlur:e,overlayOpacity:n,overlayBackgroundColor:r}}})=>ee({zIndex:100,position:"fixed","&:before":{top:0,left:0,right:0,bottom:0,content:"''",position:"fixed",opacity:n,backgroundColor:r,backdropFilter:`blur(${e}px)`}},t)),dy=k.div(({theme:{consentCookie:{width:t,borders:e,borderRadius:n,backgroundColor:r,paddingTop:i,paddingLeft:s,paddingRight:o,paddingBottom:a}}})=>({right:15,bottom:15,zIndex:20,border:e,display:"flex",width:t[0],position:"fixed",flexDirection:"column",borderRadius:n,paddingTop:i[0],paddingLeft:s[0],paddingRight:o[0],paddingBottom:a[0],backgroundColor:r,[V[0]]:{width:t[1],paddingTop:i[1],paddingLeft:s[1],paddingRight:o[1],paddingBottom:a[1]},[V[1]]:{width:t[2],paddingTop:i[2],paddingLeft:s[2],paddingRight:o[2],paddingBottom:a[2]},[V[2]]:{width:t[3],paddingTop:i[3],paddingLeft:s[3],paddingRight:o[3],paddingBottom:a[3]}})),py=k.div(({theme:{consentCookie:{actionsGap:t,actionsPaddingTop:e}}})=>({gap:t,display:"flex",alignItems:"center",flexDirection:"row",paddingTop:e[0],justifyContent:"flex-end",[V[0]]:{paddingTop:e[1]},[V[1]]:{paddingTop:e[2]},[V[2]]:{paddingTop:e[3]}}));function my(t){const e=t+"=",r=decodeURIComponent(document.cookie).split(";");for(let i=0;i<r.length;i++){let s=r[i];for(;s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(e)==0)return s.substring(e.length,s.length)}return""}function gy(t,e,n){const r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);const i="expires="+r.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}const yy=({styles:t={},children:e=void 0,theme:n=H,cookieName:r="consent",translations:i=void 0,cookieExpirationDays:s=365})=>{const[o,a]=O.useState(!1),l=u=>{a(!1),gy(r,`${u}`,s)};return O.useEffect(()=>{const u=my(r),c=u!=="true"&&u!=="false",f=u==="true";c&&a(!0);const h=f?"granted":"denied";typeof window.gtag<"u"&&window.gtag("consent","update",{analytics_storage:h})},[o]),o?M(hy,{theme:n,styles:t,children:Me(dy,{theme:n,children:[e,Me(py,{theme:n,children:[M(ai,{onClick:()=>l(!1),children:(i==null?void 0:i.actions.reject)||"Reject"}),M(ai,{onClick:()=>l(!0),children:(i==null?void 0:i.actions.accept)||"Accept"})]})]})}):null};exports.Actions=Wc;exports.ActionsAlign=Xt;exports.Button=ai;exports.ButtonSize=bn;exports.ButtonStyle=hr;exports.ButtonType=Bi;exports.ButtonVariant=fr;exports.Carousel=mf;exports.Columns=dd;exports.ColumnsAlign=Zt;exports.ConsentCookie=yy;exports.Footer=fd;exports.Form=ny;exports.FormRow=iy;exports.FormRowAlign=kn;exports.Header=ud;exports.Icon=rt;exports.InputType=Lr;exports.KeyNumber=Vf;exports.LanguageSwitcher=If;exports.Logo=of;exports.Main=nd;exports.Modal=Zc;exports.Nav=Yg;exports.NavLegal=ey;exports.NavSocial=Jg;exports.Section=Kg;exports.TextField=fy;exports.TextFieldInput=_u;exports.TextFieldLabel=Bu;exports.TextFieldTextarea=$u;exports.TextareaType=Cs;exports.Video=Wa;exports.VideoFullWidth=Df;
15
+ */var Xi;function Qa(){return Xi||(Xi=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 Zi;function tl(){return Zi||(Zi=1,process.env.NODE_ENV==="production"?Ne.exports=Ja():Ne.exports=Qa()),Ne.exports}var Sn,Ji;function el(){if(Ji)return Sn;Ji=1;var t=tl(),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 Sn=h,Sn}el();var nl=!0;function il(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Ls=function(e,n,i){var r=e.key+"-"+n.name;(i===!1||nl===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},rl=function(e,n,i){Ls(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 sl(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 ol={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},al=/[A-Z]|^ms/g,ll=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Os=function(e){return e.charCodeAt(1)===45},Qi=function(e){return e!=null&&typeof e!="boolean"},wn=Na(function(t){return Os(t)?t:t.replace(al,"-$&").toLowerCase()}),tr=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ll,function(i,r,o){return Ct={name:r,styles:o,next:Ct},r})}return ol[e]!==1&&!Os(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ae(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 cl(t,e,n)}case"function":{if(t!==void 0){var l=Ct,c=n(t);return Ct=l,Ae(t,e,c)}break}}var u=n;return u}function cl(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Ae(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;Qi(a)&&(i+=wn(o)+":"+tr(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&e==null)for(var l=0;l<s.length;l++)Qi(s[l])&&(i+=wn(o)+":"+tr(o,s[l])+";");else{var c=Ae(t,e,s);switch(o){case"animation":case"animationName":{i+=wn(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var er=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function ul(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+=Ae(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Ae(n,e,t[a]),i){var l=o;r+=l[a]}er.lastIndex=0;for(var c="",u;(u=er.exec(r))!==null;)c+="-"+u[1];var f=sl(r)+c;return{name:f,styles:r,next:Ct}}var fl=function(e){return e()},dl=ct.useInsertionEffect?ct.useInsertionEffect:!1,hl=dl||fl,ks=ct.createContext(typeof HTMLElement<"u"?qa({key:"css"}):null);ks.Provider;var pl=function(e){return P.forwardRef(function(n,i){var r=P.useContext(ks);return e(n,r,i)})},ml=ct.createContext({}),pn={}.hasOwnProperty,_n="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Fs=function(e,n){var i={};for(var r in n)pn.call(n,r)&&(i[r]=n[r]);return i[_n]=e,i},gl=function(e){var n=e.cache,i=e.serialized,r=e.isStringTag;return Ls(n,i,r),hl(function(){return rl(n,i,r)}),null},yl=pl(function(t,e,n){var i=t.css;typeof i=="string"&&e.registered[i]!==void 0&&(i=e.registered[i]);var r=t[_n],o=[i],s="";typeof t.className=="string"?s=il(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=ul(o,void 0,ct.useContext(ml));s+=e.key+"-"+a.name;var l={};for(var c in t)pn.call(t,c)&&c!=="css"&&c!==_n&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),ct.createElement(ct.Fragment,null,ct.createElement(gl,{cache:e,serialized:a,isStringTag:typeof r=="string"}),ct.createElement(r,l))}),Is=yl,vl=Te.Fragment,E=function(e,n,i){return pn.call(n,"css")?Te.jsx(Is,Fs(e,n),i):Te.jsx(e,n,i)},dt=function(e,n,i){return pn.call(n,"css")?Te.jsxs(Is,Fs(e,n),i):Te.jsxs(e,n,i)};const Nn=[640,768,1024,1680],A=Nn.map(t=>`(min-width: ${t}px)`),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},xl=L.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 tn=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t))(tn||{}),en=(t=>(t[t.Fill=0]="Fill",t[t.Outline=1]="Outline",t))(en||{}),ve=(t=>(t[t.Small=0]="Small",t[t.Medium=1]="Medium",t[t.Large=2]="Large",t))(ve||{}),ui=(t=>(t.Reset="reset",t.Button="button",t.Submit="submit",t))(ui||{});const nr='"Goudy Bookletter 1911", sans-serif',Tn='"Gill Sans", sans-serif',Bs="#FF7377",Cn="#C8AE96",tt="#FCEFE6",bl="#2E2E2E",ir="#CCCCCC",Sl=" #888888",st="#000000",Pn=Bs,_={global:{maxWidth:1200,paddingLeft:[15,15,30,30],paddingRight:[15,15,30,30],brandFont:nr,defaultFont:Tn},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 ${Cn}`,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:bl,disabled:Sl},backgroundColor:{primary:Pn,secondary:Cn,disabled:ir},border:{width:2,style:"solid",color:{primary:Pn,secondary:Cn,disabled:ir}},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:nr,fontWeight:500,color:Pn,paddingBottom:5},input:{color:"",borderRadius:0,padding:[5,10],font:Tn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},textarea:{color:"",borderRadius:0,padding:[5,10],font:Tn,backgroundColor:"",placeholder:{color:"",opacity:1},border:`2px solid ${st}`},error:{color:Bs}},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=ui.Button,style:s=en.Fill,size:a=ve.Medium,onClick:l=void 0,theme:c=_,variant:u=tn.Primary})=>E(xl,{type:o,theme:c,onClick:l,staticColor:n,isLarge:a===ve.Large,isSmall:a===ve.Small,styles:e,isDisabled:r||i,isOutlined:s===en.Outline,isSecondary:u===tn.Secondary,children:t});var ie=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ie||{});const wl=L.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)),Tl=({children:t,styles:e={},theme:n=_,align:i=ie.Left})=>E(wl,{theme:n,align:i,styles:e,children:t}),Cl={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"},Pl=L.svg(({styles:t})=>G({margin:"0 auto",display:"inline-block",verticalAlign:"middle"},t)),Al=L.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(Pl,{viewBox:s,width:`${e}px`,height:`${e}px`,styles:n,children:E(Al,{d:i||Cl[t],fill:r||o.colors.defaultIcon})});var nn=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(nn||{});const El=L.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)),Vl=L.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===nn.Left?"left":u===nn.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)`}})),Rl=L.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)"}}),Ml=({children:t,styles:e={},align:n=nn.Left,theme:i=_,onModalHide:r=void 0})=>E(El,{theme:i,styles:e,children:dt(Vl,{theme:i,align:n,children:[r&&E(Rl,{onClick:r,children:E(Pt,{theme:i,icon:"close"})}),t]})}),Dl=L.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)),Ll=L.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"}})),Ol=L.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}}})),kl=L.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}}})),Fl=L.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}}})),Il=L.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}}})),$s=({video:t,isAutoPlay:e,styles:n={},poster:i="",startMuted:r=!1,onPlay:o=void 0,onClose:s=void 0,onEnded:a=void 0,showControls:l=!1,theme:c=_,hidePlayButton:u=!1,isVideoFullWidth:f=!1,isPlayingFullScreen:d=!1})=>{const h=P.useRef(null),[p,g]=P.useState(!1),[S,v]=P.useState(e||r),w=()=>{var y;o&&o(),(y=h.current)==null||y.play(),g(!0)},T=()=>{var y;s&&s(),(y=h.current)==null||y.pause(),g(!1)},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(Dl,{isVideoFullWidth:f,styles:n,children:[E("video",{ref:h,playsInline:!0,onEnded:R,children:E("source",{src:t,type:"video/mp4"})}),i&&E(Ll,{isPlaying:p,children:E("img",{src:i,alt:"",sizes:"2560"})}),(!u||!e)&&E(kl,{theme:c,isPlaying:p,onClick:w,"aria-label":"Play",children:E(Pt,{icon:"play",size:50,theme:c})}),d&&E(Ol,{theme:c,isPlaying:p,onClick:T,"aria-label":"Pause",children:E(Pt,{icon:"close",size:28,theme:c})}),p&&l&&E(Fl,{theme:c,isPlaying:p,"aria-label":"Pause",onClick:p?V:w,children:E(Pt,{icon:"pause",size:28,theme:c})}),l&&E(Il,{theme:c,isMuted:r,onClick:m,"aria-label":"Sound",children:E(Pt,{icon:S?"volumeUp":"volumeMute",size:28,theme:c})})]})},Bl=L.div(({styles:t})=>G({img:{width:"100%",height:"auto",maxWidth:"100%"}},t)),$l=({children:t,styles:e={},theme:n=_})=>E(Bl,{theme:n,styles:e,children:t}),jl=L.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)),_l=L.div({width:"100%",position:"relative"}),Nl=L.div(({left:t,width:e,gap:n})=>({gap:n,left:t,width:e,display:"flex",position:"relative",transition:"all 0.3s ease-in-out"})),Ul=L.div({width:"100%",display:"flex",position:"relative",alignItems:"stretch"}),zl=L.div({right:0,left:0,zIndex:30,bottom:"0%",width:"100%",display:"flex",pointerEvents:"none",maxWidth:"var(--max-width)",position:"absolute",justifyContent:"flex-end"}),rr=L.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)"}})),Wl=L.div({gap:15,border:0,marginTop:30,display:"flex",alignItems:"center",justifyContent:"center",[A[1]]:{marginTop:60}}),Gl=L.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 Kl(){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 Hl=({data:t,styles:e={},displayItem:n=1,theme:i=_,isFullWidth:r=!1,displayNavBullets:o=!1,displayNavButtons:s=!1})=>{const{width:a}=Kl(),[l,c]=P.useState(0),[u,f]=P.useState(i.carousel.gap[0]),d=a!==void 0&&a>Nn[1],h=a!==void 0&&a>Nn[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(jl,{ref:R,theme:i,styles:e,isFullWidth:r,children:[E(_l,{children:E(Nl,{ref:D,width:S,gap:V===1?0:u,left:-l*w-l*u,children:t.map((x,C)=>E(Ul,{ref:y,children:x},`children-${C}`))})}),s&&dt(zl,{children:[E(rr,{"aria-label":"Previous",disabled:l===0,isDisabled:l===0,onClick:()=>c(x=>x-1),children:E(Pt,{theme:i,icon:"arrowBack",size:30})}),E(rr,{"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(Wl,{children:[...Array(t.length+1-V||1)].map((x,C)=>E(Gl,{theme:i,isActive:C===l,onClick:()=>c(C)},`carousselItem-${C}`))})]})};var pe={},rn=function(){return rn=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},rn.apply(this,arguments)},Yl=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=rn(rn({},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 ql=Object.freeze(Object.defineProperty({__proto__:null,CountUp:Yl},Symbol.toStringTag,{value:"Module"})),Xl=Za(ql);var sr;function Zl(){if(sr)return pe;sr=1,Object.defineProperty(pe,"__esModule",{value:!0});var t=P,e=Xl;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 Jl=Zl();const Ql=Xa(Jl);var zn=new Map,Ue=new WeakMap,or=0,tc=void 0;function ec(t){return t?(Ue.has(t)||(or+=1,Ue.set(t,or.toString())),Ue.get(t)):"0"}function nc(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?ec(t.root):t[e]}`).toString()}function ic(t){const e=nc(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 rc(t,e,n={},i=tc){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}=ic(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 sc({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=rc(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 oc=L.div(({styles:t})=>G({display:"flex",flexDirection:"column"},t)),ac=L.div({fontSize:"1.2em",paddingBottom:15,[A[1]]:{paddingBottom:30},span:{fontSize:"2.5em",lineHeight:"1em"}}),lc=({label:t,suffix:e,keyNumber:n,styles:i={},theme:r=_})=>{const[o,s]=sc({threshold:.3,triggerOnce:!0});return dt(oc,{ref:o,theme:r,styles:i,children:[dt(ac,{children:[E("span",{children:E(Ql,{end:s?n:0,duration:8})}),e]}),E("p",{children:t})]})},cc=L.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)),uc=({video:t,poster:e,isAutoPlay:n,styles:i={},showControls:r,startMuted:o=!1,theme:s=_})=>E(cc,{theme:s,styles:i,children:E($s,{isVideoFullWidth:!0,video:t,theme:s,poster:e,isAutoPlay:n,startMuted:o,showControls:r})}),fc=L.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)),dc=L.div({right:30,top:"50%",position:"absolute",transform:"translate(0%, -50%)"}),hc=L.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"}})),pc=({currentLocale:t,handleChange:e,locales:n,styles:i={},theme:r=_,translations:o})=>dt(fc,{theme:r,styles:i,children:[E(dc,{children:E(Pt,{theme:r,icon:"caret"})}),E(hc,{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 mc(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function gc(t,e){var n={};{var i=t;for(var r in i){var o=i[r];o!=null&&(n[mc(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 yc="var(--_1wp326d0)",vc="var(--_1wp326d1)",xc="_1wp326d2";const bc=({children:t,theme:e=_,styles:n=""})=>{const{main:{backgroundColor:i,minHeight:r}}=e;return E("main",{className:`${xc} ${n}`,style:gc({[yc]:r,[vc]:i}),children:t})},Sc=L.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]}})),wc=({isOpen:t,theme:e=_,children:n})=>(P.useEffect(()=>{document.getElementsByTagName("html")[0].style.overflow="",t&&(document.getElementsByTagName("html")[0].style.overflow="hidden")},[t]),E(Sc,{isOpen:t,theme:e,children:n})),Tc=L.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)),Cc=L.div(({theme:{header:{height:t}}})=>({height:t[0],[A[0]]:{height:t[1]},[A[1]]:{height:t[2]},[A[2]]:{height:t[3]}})),Pc=L.button(({displayOnDesktop:t})=>({border:0,width:25,height:12,zIndex:60,marginLeft:0,cursor:"pointer",position:"relative",[A[1]]:{display:t?"block":"none"}})),ar=L.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"}})),Ac=({onToggleNav:t,theme:e=_,isNavOpen:n=!1,displayOnDesktop:i})=>dt(Pc,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),t()},"aria-label":"Toggle nav",displayOnDesktop:i,children:[E(ar,{theme:e,isNavOpen:n}),E(ar,{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(vl,{children:[dt(Tc,{theme:r,styles:e,isFixed:n,children:[i&&E(wc,{theme:r,isOpen:a,children:i}),t,!o&&E(Ac,{theme:r,isNavOpen:a,onToggleNav:()=>l(!a),displayOnDesktop:s})]}),n&&E(Cc,{theme:r})]})},Vc=L.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)),Rc=({children:t,styles:e={},theme:n=_})=>E(Vc,{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 Mc=L.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)}),Dc=({columns:t,children:e,styles:n={},align:i=re.Left,isCentered:r=!1,isInverted:o=!1,theme:s=_})=>E(Mc,{align:i,theme:s,columns:t,isCentered:r,isInverted:o,styles:n,children:e}),js=P.createContext({});function _s(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const fi=P.createContext(null),Ns=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Lc(t=!0){const e=P.useContext(fi);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 di=typeof window<"u",Us=di?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 hi(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},Et=t=>t*1e3,Dt=t=>t/1e3,Oc={skipAnimations:!1,useManualTiming:!1},ze=["read","resolveKeyframes","update","preRender","render","postRender"];function kc(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 Fc=40;function zs(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ze.reduce((v,w)=>(v[w]=kc(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,Fc),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:ze.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<ze.length;w++)s[ze[w]].cancel(v)},state:r,steps:s}}const{schedule:U,cancel:$t,state:J,steps:An}=zs(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0),Ws=P.createContext({strict:!1}),lr={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 lr)ae[t]={isEnabled:e=>lr[t].some(n=>!!e[n])};function Ic(t){for(const e in t)ae[e]={...ae[e],...t[e]}}const Bc=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 sn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Bc.has(t)}let Gs=t=>!sn(t);function $c(t){t&&(Gs=e=>e.startsWith("on")?!sn(e):t(e))}try{$c(require("@emotion/is-prop-valid").default)}catch{}function jc(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Gs(r)||n===!0&&sn(r)||!e&&!sn(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}const cr=new Set;function mn(t,e,n){t||cr.has(e)||(console.warn(e),cr.add(e))}function _c(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>(process.env.NODE_ENV!=="production"&&mn(!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 gn=P.createContext({});function yn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ee(t){return typeof t=="string"||Array.isArray(t)}const pi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mi=["initial",...pi];function vn(t){return yn(t.animate)||mi.some(e=>Ee(t[e]))}function Ks(t){return!!(vn(t)||t.variants)}function Nc(t,e){if(vn(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 Uc(t){const{initial:e,animate:n}=Nc(t,P.useContext(gn));return P.useMemo(()=>({initial:e,animate:n}),[ur(e),ur(n)])}function ur(t){return Array.isArray(t)?t.join(" "):t}const zc=Symbol.for("motionComponentSymbol");function qt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Wc(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):qt(n)&&(n.current=i))},[e])}const gi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Gc="framerAppearId",Hs="data-"+gi(Gc),{schedule:yi,cancel:Bp}=zs(queueMicrotask,!1),Ys=P.createContext({});function Kc(t,e,n,i,r){var o,s;const{visualElement:a}=P.useContext(gn),l=P.useContext(Ws),c=P.useContext(fi),u=P.useContext(Ns).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")&&Hc(f.current,n,r,h);const p=P.useRef(!1);P.useInsertionEffect(()=>{d&&p.current&&d.update(n,c)});const g=n[Hs],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 Us(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),yi.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 Hc(t,e,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:qs(t.parent)),t.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&qt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function qs(t){if(t)return t.options.allowProjection!==!1?t.projection:qs(t.parent)}function Yc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var o,s;t&&Ic(t);function a(c,u){let f;const d={...P.useContext(Ns),...c,layoutId:qc(c)},{isStatic:h}=d,p=Uc(c),g=i(c,h);if(!h&&di){Xc(d,t);const S=Zc(d);f=S.MeasureLayout,p.visualElement=Kc(r,g,d,e,S.ProjectionNode)}return Je.jsxs(gn.Provider,{value:p,children:[f&&p.visualElement?Je.jsx(f,{visualElement:p.visualElement,...d}):null,n(r,c,Wc(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[zc]=r,l}function qc({layoutId:t}){const e=P.useContext(js).id;return e&&t!==void 0?e+"-"+t:t}function Xc(t,e){const n=P.useContext(Ws).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 Zc(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 Xs=t=>e=>typeof e=="string"&&e.startsWith(t),vi=Xs("--"),Jc=Xs("var(--"),xi=t=>Jc(t)?Qc.test(t.split("/*")[0].trim()):!1,Qc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ve={};function tu(t){for(const e in t)Ve[e]=t[e],vi(e)&&(Ve[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 Zs(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ve[t]||t==="opacity")}const it=t=>!!(t&&t.getVelocity),Js=(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},Re={...de,transform:t=>Lt(0,1,t)},We={...de,default:1},Ie=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=Ie("deg"),Vt=Ie("%"),O=Ie("px"),eu=Ie("vh"),nu=Ie("vw"),fr={...Vt,parse:t=>Vt.parse(t)/100,transform:t=>Vt.transform(t*100)},iu={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},ru={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:Bt,skewX:Bt,skewY:Bt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:Re,originX:fr,originY:fr,originZ:O},dr={...de,transform:Math.round},bi={...iu,...ru,zIndex:dr,size:O,fillOpacity:Re,strokeOpacity:Re,numOctaves:dr},su={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ou=fe.length;function au(t,e,n){let i="",r=!0;for(let o=0;o<ou;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=Js(a,bi[s]);if(!l){r=!1;const u=su[s]||s;i+=`${u}(${c}) `}n&&(e[s]=c)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}function Si(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(vi(l)){r[l]=c;continue}else{const u=Js(c,bi[l]);l.startsWith("origin")?(a=!0,o[l]=u):i[l]=u}}if(e.transform||(s||n?i.transform=au(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 wi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qs(t,e,n){for(const i in e)!it(e[i])&&!Zs(i,n)&&(t[i]=e[i])}function lu({transformTemplate:t},e){return P.useMemo(()=>{const n=wi();return Si(n,e,t),Object.assign({},n.vars,n.style)},[e])}function cu(t,e){const n=t.style||{},i={};return Qs(i,n,t),Object.assign(i,lu(t,e)),i}function uu(t,e){const n={},i=cu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const fu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ti(t){return typeof t!="string"||t.includes("-")?!1:!!(fu.indexOf(t)>-1||/[A-Z]/u.test(t))}const du={offset:"stroke-dashoffset",array:"stroke-dasharray"},hu={offset:"strokeDashoffset",array:"strokeDasharray"};function pu(t,e,n=1,i=0,r=!0){t.pathLength=1;const o=r?du:hu;t[o.offset]=O.transform(-i);const s=O.transform(e),a=O.transform(n);t[o.array]=`${s} ${a}`}function hr(t,e,n){return typeof t=="string"?t:O.transform(e+n*t)}function mu(t,e,n){const i=hr(e,t.x,t.width),r=hr(n,t.y,t.height);return`${i} ${r}`}function Ci(t,{attrX:e,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(Si(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=mu(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&&pu(d,s,a,l,!1)}const to=()=>({...wi(),attrs:{}}),Pi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function gu(t,e,n,i){const r=P.useMemo(()=>{const o=to();return Ci(o,e,Pi(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Qs(o,t.style,t),r.style={...o,...r.style}}return r}function yu(t=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Ti(n)?gu:uu)(i,o,s,n),c=jc(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 pr(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Ai(t,e,n,i){if(typeof e=="function"){const[r,o]=pr(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]=pr(i);e=e(n!==void 0?n:t.custom,r,o)}return e}const Wn=t=>Array.isArray(t),vu=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),xu=t=>Wn(t)?t[t.length-1]||0:t;function qe(t){const e=it(t)?t.get():t;return vu(e)?e.toValue():e}function bu({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,o){const s={latestValues:Su(i,r,o,t),renderState:e()};return n&&(s.onMount=a=>n({props:i,current:a,...s}),s.onUpdate=a=>n(a)),s}const eo=t=>(e,n)=>{const i=P.useContext(gn),r=P.useContext(fi),o=()=>bu(t,e,i,r);return n?o():_s(o)};function Su(t,e,n,i){const r={},o=i(t,{});for(const d in o)r[d]=qe(o[d]);let{initial:s,animate:a}=t;const l=vn(t),c=Ks(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"&&!yn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=Ai(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])||Zs(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 wu={useVisualState:eo({scrapeMotionValuesFromProps:Ei,createRenderState:wi})};function no(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 io(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 ro=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 so(t,e,n,i){io(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(ro.has(r)?r:gi(r),e.attrs[r])}function oo(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 mr=["x","y","width","height","cx","cy","r"],Tu={useVisualState:eo({scrapeMotionValuesFromProps:oo,createRenderState:to,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<mr.length;a++){const l=mr[a];t[l]!==e[l]&&(s=!0)}s&&U.read(()=>{no(n,i),U.render(()=>{Ci(i,r,Pi(n.tagName),t.transformTemplate),so(n,i)})})}})};function Cu(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Ti(i)?Tu:wu,preloadedFeatures:t,useRender:yu(r),createVisualElement:e,Component:i};return Yc(s)}}function Me(t,e,n){const i=t.getProps();return Ai(i,e,n!==void 0?n:i.custom,t)}const Pu=hi(()=>window.ScrollTimeline!==void 0);class Au{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(Pu()&&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 Au{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function Vi(t,e){return t?t[e]||t.default||t:void 0}const Gn=2e4;function ao(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Gn;)e+=n,i=t.next(e);return e>=Gn?1/0:e}function Ri(t){return typeof t=="function"}function gr(t,e){t.timeline=e,t.onfinish=null}const Mi=t=>Array.isArray(t)&&typeof t[0]=="number",Vu={linearEasing:void 0};function Ru(t,e){const n=hi(t);return()=>{var i;return(i=Vu[e])!==null&&i!==void 0?i:n()}}const on=Ru(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lo=(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 co(t){return!!(typeof t=="function"&&on()||!t||typeof t=="string"&&(t in Kn||on())||Mi(t)||Array.isArray(t)&&t.every(co))}const ge=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ge([0,.65,.55,1]),circOut:ge([.55,0,1,.45]),backIn:ge([.31,.01,.66,-.59]),backOut:ge([.33,1.53,.69,.99])};function uo(t,e){if(t)return typeof t=="function"&&on()?lo(t,e):Mi(t)?ge(t):Array.isArray(t)?t.map(n=>uo(n,e)||Kn.easeOut):Kn[t]}const St={x:!1,y:!1};function fo(){return St.x||St.y}function ho(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 po(t,e){const n=ho(t),i=new AbortController,r={passive:!0,...e,signal:i.signal};return[n,r,()=>i.abort()]}function yr(t){return!(t.pointerType==="touch"||fo())}function Mu(t,e,n={}){const[i,r,o]=po(t,n),s=a=>{if(!yr(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=f=>{yr(f)&&(c(f),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,r)};return i.forEach(a=>{a.addEventListener("pointerenter",s,r)}),o}function an(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 mo=(t,e)=>e?t===e?!0:mo(t,e.parentElement):!1,Di=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Du=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Lu(t){return Du.has(t.tagName)||t.tabIndex!==-1}const ye=new WeakSet;function vr(t){return e=>{e.key==="Enter"&&t(e)}}function En(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ou=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=vr(()=>{if(ye.has(n))return;En(n,"down");const r=vr(()=>{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 xr(t){return Di(t)&&!fo()}function ku(t,e,n={}){const[i,r,o]=po(t,n),s=a=>{const l=a.currentTarget;if(!l||!xr(a)||ye.has(l))return;ye.add(l),an(a,"set");const c=e(l,a),u=(h,p)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",d),an(h,"release"),!(!xr(h)||!ye.has(l))&&(ye.delete(l),typeof c=="function"&&c(h,{success:p}))},f=h=>{(h.isTrusted?Fu(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)||mo(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,!Lu(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",s,r),l&&a.addEventListener("focus",c=>Ou(c,r),r)}),o}function Fu(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function Iu(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 go=new Set(["width","height","top","left","right","bottom",...fe]);let Xe;function Bu(){Xe=void 0}const Rt={now:()=>(Xe===void 0&&Rt.set(J.isProcessing||Oc.useManualTiming?J.timestamp:performance.now()),Xe),set:t=>{Xe=t,queueMicrotask(Bu)}};function Li(t,e){t.indexOf(e)===-1&&t.push(e)}function Oi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ki{constructor(){this.subscriptions=[]}add(e){return Li(this.subscriptions,e),()=>Oi(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 yo(t,e){return e?t*(1e3/e):0}const br=30,$u=t=>!isNaN(parseFloat(t));class ju{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=$u(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&mn(!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 ki);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>br)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,br);return yo(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 De(t,e){return new ju(t,e)}function _u(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,De(n))}function Fi(t,e){const n=Me(t,e);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=xu(o[s]);_u(t,s,a)}}function Nu(t){return!!(it(t)&&t.add)}function Hn(t,e){const n=t.getValue("willChange");if(Nu(n))return n.add(e)}function vo(t){return t.props[Hs]}const xo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Uu=1e-7,zu=12;function Wu(t,e,n,i,r){let o,s,a=0;do s=e+(n-e)/2,o=xo(s,i,r)-t,o>0?n=s:e=s;while(Math.abs(o)>Uu&&++a<zu);return s}function Be(t,e,n,i){if(t===e&&n===i)return ut;const r=o=>Wu(o,0,1,t,n);return o=>o===0||o===1?o:xo(r(o),e,i)}const bo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,So=t=>e=>1-t(1-e),wo=Be(.33,1.53,.69,.99),Ii=So(wo),To=bo(Ii),Co=t=>(t*=2)<1?.5*Ii(t):.5*(2-Math.pow(2,-10*(t-1))),Bi=t=>1-Math.sin(Math.acos(t)),Po=So(Bi),Ao=bo(Bi),Eo=t=>/^0[^.\s]+$/u.test(t);function Gu(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Eo(t):!0}const xe=t=>Math.round(t*1e5)/1e5,$i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ku(t){return t==null}const Hu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ji=(t,e)=>n=>!!(typeof n=="string"&&Hu.test(n)&&n.startsWith(t)||e&&!Ku(n)&&Object.prototype.hasOwnProperty.call(n,e)),Vo=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match($i);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Yu=t=>Lt(0,255,t),Vn={...de,transform:t=>Math.round(Yu(t))},Kt={test:ji("rgb","red"),parse:Vo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Vn.transform(t)+", "+Vn.transform(e)+", "+Vn.transform(n)+", "+xe(Re.transform(i))+")"};function qu(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:ji("#"),parse:qu,transform:Kt.transform},Xt={test:ji("hsl","hue"),parse:Vo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Vt.transform(xe(e))+", "+Vt.transform(xe(n))+", "+xe(Re.transform(i))+")"},nt={test:t=>Kt.test(t)||Yn.test(t)||Xt.test(t),parse:t=>Kt.test(t)?Kt.parse(t):Xt.test(t)?Xt.parse(t):Yn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Kt.transform(t):Xt.transform(t)},Xu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zu(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match($i))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Xu))===null||n===void 0?void 0:n.length)||0)>0}const Ro="number",Mo="color",Ju="var",Qu="var(",Sr="${}",tf=/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 Le(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=e.replace(tf,l=>(nt.test(l)?(i.color.push(o),r.push(Mo),n.push(nt.parse(l))):l.startsWith(Qu)?(i.var.push(o),r.push(Ju),n.push(l)):(i.number.push(o),r.push(Ro),n.push(parseFloat(l))),++o,Sr)).split(Sr);return{values:n,split:a,indexes:i,types:r}}function Do(t){return Le(t).values}function Lo(t){const{split:e,types:n}=Le(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===Ro?o+=xe(r[s]):a===Mo?o+=nt.transform(r[s]):o+=r[s]}return o}}const ef=t=>typeof t=="number"?0:t;function nf(t){const e=Do(t);return Lo(t)(e.map(ef))}const jt={test:Zu,parse:Do,createTransformer:Lo,getAnimatableNone:nf},rf=new Set(["brightness","contrast","saturate","opacity"]);function sf(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match($i)||[];if(!i)return t;const r=n.replace(i,"");let o=rf.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+r+")"}const of=/\b([a-z-]*)\(.*?\)/gu,qn={...jt,getAnimatableNone:t=>{const e=t.match(of);return e?e.map(sf).join(" "):t}},af={...bi,color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:qn,WebkitFilter:qn},_i=t=>af[t];function Oo(t,e){let n=_i(t);return n!==qn&&(n=jt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const lf=new Set(["auto","none","0"]);function cf(t,e,n){let i=0,r;for(;i<t.length&&!r;){const o=t[i];typeof o=="string"&&!lf.has(o)&&Le(o).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Oo(n,r)}const wr=t=>t===de||t===O,Tr=(t,e)=>parseFloat(t.split(", ")[e]),Cr=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Tr(r[1],e);{const o=i.match(/^matrix\((.+)\)$/u);return o?Tr(o[1],t):0}},uf=new Set(["x","y","z"]),ff=fe.filter(t=>!uf.has(t));function df(t){const e=[];return ff.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:Cr(4,13),y:Cr(5,14)};le.translateX=le.x;le.translateY=le.y;const Ht=new Set;let Xn=!1,Zn=!1;function ko(){if(Zn){const t=Array.from(Ht).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=df(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)})}Zn=!1,Xn=!1,Ht.forEach(t=>t.complete()),Ht.clear()}function Fo(){Ht.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Zn=!0)})}function hf(){Fo(),ko()}class Ni{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?(Ht.add(this),Xn||(Xn=!0,U.read(Fo),U.resolveKeyframes(ko))):(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),Ht.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ht.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Io=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),pf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mf(t){const e=pf.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n??i}`,r]}const gf=4;function Bo(t,e,n=1){Mt(n<=gf,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,r]=mf(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const s=o.trim();return Io(s)?parseFloat(s):s}return xi(r)?Bo(r,e,n+1):r}const $o=t=>e=>e.test(t),yf={test:t=>t==="auto",parse:t=>t},jo=[de,O,Vt,Bt,nu,eu,yf],Pr=t=>jo.find($o(t));class _o extends Ni{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(),xi(c))){const u=Bo(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!go.has(i)||e.length!==2)return;const[r,o]=e,s=Pr(r),a=Pr(o);if(s!==a)if(wr(s)&&wr(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++)Gu(e[r])&&i.push(r);i.length&&cf(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 Ar=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jt.test(t)||t==="0")&&!t.startsWith("url("));function vf(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 xf(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=Ar(r,e),a=Ar(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:vf(t)||(n==="spring"||Ri(n))&&i}const bf=t=>t!==null;function xn(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(bf),o=e&&n!=="loop"&&e%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const Sf=40;class No{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>Sf?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hf(),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&&!xf(e,i,r,o))if(s)this.options.duration=0;else{l&&l(xn(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 H=(t,e,n)=>t+(e-t)*n;function Rn(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 wf({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=Rn(l,a,t+1/3),o=Rn(l,a,t),s=Rn(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function ln(t,e){return n=>n>0?e:t}const Mn=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},Tf=[Yn,Kt,Xt],Cf=t=>Tf.find(e=>e.test(t));function Er(t){const e=Cf(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===Xt&&(n=wf(n)),n}const Vr=(t,e)=>{const n=Er(t),i=Er(e);if(!n||!i)return ln(t,e);const r={...n};return o=>(r.red=Mn(n.red,i.red,o),r.green=Mn(n.green,i.green,o),r.blue=Mn(n.blue,i.blue,o),r.alpha=H(n.alpha,i.alpha,o),Kt.transform(r))},Pf=(t,e)=>n=>e(t(n)),$e=(...t)=>t.reduce(Pf),Jn=new Set(["none","hidden"]);function Af(t,e){return Jn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ef(t,e){return n=>H(t,e,n)}function Ui(t){return typeof t=="number"?Ef:typeof t=="string"?xi(t)?ln:nt.test(t)?Vr:Mf:Array.isArray(t)?Uo:typeof t=="object"?nt.test(t)?Vr:Vf:ln}function Uo(t,e){const n=[...t],i=n.length,r=t.map((o,s)=>Ui(o)(o,e[s]));return o=>{for(let s=0;s<i;s++)n[s]=r[s](o);return n}}function Vf(t,e){const n={...t,...e},i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=Ui(t[r])(t[r],e[r]));return r=>{for(const o in i)n[o]=i[o](r);return n}}function Rf(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 Mf=(t,e)=>{const n=jt.createTransformer(e),i=Le(t),r=Le(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?Jn.has(t)&&!r.values.length||Jn.has(e)&&!i.values.length?Af(t,e):$e(Uo(Rf(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.`),ln(t,e))};function zo(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?H(t,e,n):Ui(t)(t,e)}const Df=5;function Wo(t,e,n){const i=Math.max(e-Df,0);return yo(n-t(i),e-i)}const K={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},Rr=.001;function Lf({duration:t=K.duration,bounce:e=K.bounce,velocity:n=K.velocity,mass:i=K.mass}){let r,o;ue(t<=Et(K.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=Lt(K.minDamping,K.maxDamping,s),t=Lt(K.minDuration,K.maxDuration,Dt(t)),s<1?(r=c=>{const u=c*s,f=u*t,d=u-n,h=Qn(c,s),p=Math.exp(-f);return Rr-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=Qn(Math.pow(c,2),s);return(-r(c)+Rr>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=kf(r,o,a);if(t=Et(t),isNaN(l))return{stiffness:K.stiffness,damping:K.damping,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const Of=12;function kf(t,e,n){let i=n;for(let r=1;r<Of;r++)i=i-t(i)/e(i);return i}function Qn(t,e){return t*Math.sqrt(1-e*e)}const Ff=["duration","bounce"],If=["stiffness","damping","mass"];function Mr(t,e){return e.some(n=>t[n]!==void 0)}function Bf(t){let e={velocity:K.velocity,stiffness:K.stiffness,damping:K.damping,mass:K.mass,isResolvedFromDuration:!1,...t};if(!Mr(t,If)&&Mr(t,Ff))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:K.mass,stiffness:r,damping:o}}else{const n=Lf(t);e={...e,...n,mass:K.mass},e.isResolvedFromDuration=!0}return e}function Go(t=K.visualDuration,e=K.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}=Bf({...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?K.restSpeed.granular:K.restSpeed.default),r||(r=w?K.restDelta.granular:K.restDelta.default);let T;if(g<1){const m=Qn(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?Et(p):Wo(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(ao(V),Gn),R=lo(D=>V.next(m*D).value,m,30);return m+"ms "+R}};return V}function Dr({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=Go({keyframes:[d.value,p(d.value)],velocity:Wo(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 $f=Be(.42,0,1,1),jf=Be(0,0,.58,1),Ko=Be(.42,0,.58,1),_f=t=>Array.isArray(t)&&typeof t[0]!="number",Lr={linear:ut,easeIn:$f,easeInOut:Ko,easeOut:jf,circIn:Bi,circInOut:Ao,circOut:Po,backIn:Ii,backInOut:To,backOut:wo,anticipate:Co},Or=t=>{if(Mi(t)){Mt(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,r]=t;return Be(e,n,i,r)}else if(typeof t=="string")return Mt(Lr[t]!==void 0,`Invalid easing type '${t}'`),Lr[t];return t};function Nf(t,e,n){const i=[],r=n||zo,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=$e(l,a)}i.push(a)}return i}function Uf(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=Nf(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 zf(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=oe(0,e,i);t.push(H(n,1,r))}}function Wf(t){const e=[0];return zf(e,t.length-1),e}function Gf(t,e){return t.map(n=>n*e)}function Kf(t,e){return t.map(()=>e||Ko).splice(0,t.length-1)}function be({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=_f(i)?i.map(Or):Or(i),o={done:!1,value:e[0]},s=Gf(n&&n.length===e.length?n:Wf(e),t),a=Uf(s,e,{ease:Array.isArray(r)?r:Kf(e,r)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Hf=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:Dr,inertia:Dr,tween:be,keyframes:be,spring:Go},qf=t=>t/100;class zi extends No{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)||Ni,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=Ri(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=$e(qf,zo(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=ao(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=xn(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=Et(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=Hf,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 Xf=new Set(["opacity","clipPath","filter","transform"]);function Zf(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=uo(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 Jf=hi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cn=10,Qf=2e4;function td(t){return Ri(t.type)||t.type==="spring"||!co(t.ease)}function ed(t,e){const n=new zi({...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<Qf;)i=n.sample(o),r.push(i.value),o+=cn;return{times:void 0,keyframes:r,duration:o-cn,ease:"linear"}}const Ho={anticipate:Co,backInOut:To,circInOut:Ao};function nd(t){return t in Ho}class kr extends No{constructor(e){super(e);const{name:n,motionValue:i,element:r,keyframes:o}=this.options;this.resolver=new _o(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"&&on()&&nd(o)&&(o=Ho[o]),td(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:p,...g}=this.options,S=ed(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=Zf(a.owner.current,l,e,{...this.options,duration:i,times:r,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(gr(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;a.set(xn(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=Et(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;gr(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 zi({...h,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),g=Et(this.time);c.setWithVelocity(p.sample(g-cn).value,p.sample(g).value,cn)}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 Jf()&&i&&Xf.has(i)&&!l&&!c&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const id={type:"spring",stiffness:500,damping:25,restSpeed:10},rd=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),sd={type:"keyframes",duration:.8},od={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ad=(t,{keyframes:e})=>e.length>2?sd:Yt.has(t)?t.startsWith("scale")?rd(e[1]):id:od;function ld({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 Wi=(t,e,n,i={},r,o)=>s=>{const a=Vi(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Et(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};ld(a)||(u={...u,...ad(t,u)}),u.duration&&(u.duration=Et(u.duration)),u.repeatDelay&&(u.repeatDelay=Et(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=xn(u.keyframes,a);if(d!==void 0)return U.update(()=>{u.onUpdate(d),u.onComplete()}),new Eu([])}return!o&&kr.supports(u)?new kr(u):new zi(u)};function cd({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&&cd(u,f))continue;const p={delay:n,...Vi(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const v=vo(t);if(v){const w=window.MotionHandoffAnimation(v,f,U);w!==null&&(p.startTime=w,g=!0)}}Hn(t,f),d.start(Wi(f,d,h,t.shouldReduceMotion&&go.has(f)?{type:!1}:p,t,g));const S=d.animation;S&&c.push(S)}return a&&Promise.all(c).then(()=>{U.update(()=>{a&&Fi(t,a)})}),c}function ti(t,e,n={}){var i;const r=Me(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 ud(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 ud(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(fd).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(ti(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function fd(t,e){return t.sortNodePosition(e)}function qo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(o=>ti(t,o,n));i=Promise.all(r)}else if(typeof e=="string")i=ti(t,e,n);else{const r=typeof e=="function"?Me(t,e,n.custom):e;i=Promise.all(Yo(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}function Xo(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 dd=mi.length;function Zo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Zo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<dd;n++){const i=mi[n],r=t.props[i];(Ee(r)||r===!1)&&(e[i]=r)}return e}const hd=[...pi].reverse(),pd=pi.length;function md(t){return e=>Promise.all(e.map(({animation:n,options:i})=>qo(t,n,i)))}function gd(t){let e=md(t),n=Fr(),i=!0;const r=l=>(c,u)=>{var f;const d=Me(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=Zo(t.parent)||{},f=[],d=new Set;let h={},p=1/0;for(let S=0;S<pd;S++){const v=hd[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||yn(T)||typeof T=="boolean")continue;const D=yd(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;Wn(N)&&Wn(at)?rt=!Xo(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=Me(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=Fr(),i=!0}}}function yd(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Xo(e,t):!1}function Wt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fr(){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 vd extends _t{constructor(e){super(e),e.animationState||(e.animationState=gd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();yn(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 xd=0;class bd extends _t{constructor(){super(...arguments),this.id=xd++}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 Sd={animation:{Feature:vd},exit:{Feature:bd}};function Oe(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function je(t){return{point:{x:t.pageX,y:t.pageY}}}const wd=t=>e=>Di(e)&&t(e,je(e));function Zt(t,e,n,i){return Oe(t,e,wd(n),i)}function Jo({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Td({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Cd(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 Qo=1e-4,Pd=1-Qo,Ad=1+Qo,ta=.01,Ed=0-ta,Vd=0+ta;function ot(t){return t.max-t.min}function Rd(t,e,n){return Math.abs(t-e)<=n}function Ir(t,e,n,i=.5){t.origin=i,t.originPoint=H(e.min,e.max,t.origin),t.scale=ot(n)/ot(e),t.translate=H(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Pd&&t.scale<=Ad||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ed&&t.translate<=Vd||isNaN(t.translate))&&(t.translate=0)}function Se(t,e,n,i){Ir(t.x,e.x,n.x,i?i.originX:void 0),Ir(t.y,e.y,n.y,i?i.originY:void 0)}function Br(t,e,n){t.min=n.min+e.min,t.max=t.min+ot(e)}function Md(t,e,n){Br(t.x,e.x,n.x),Br(t.y,e.y,n.y)}function $r(t,e,n){t.min=e.min-n.min,t.max=t.min+ot(e)}function we(t,e,n){$r(t.x,e.x,n.x),$r(t.y,e.y,n.y)}const jr=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jt=()=>({x:jr(),y:jr()}),_r=()=>({min:0,max:0}),Y=()=>({x:_r(),y:_r()});function yt(t){return[t("x"),t("y")]}function Dn(t){return t===void 0||t===1}function ei({scale:t,scaleX:e,scaleY:n}){return!Dn(t)||!Dn(e)||!Dn(n)}function Gt(t){return ei(t)||ea(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ea(t){return Nr(t.x)||Nr(t.y)}function Nr(t){return t&&t!=="0%"}function un(t,e,n){const i=t-n,r=e*i;return n+r}function Ur(t,e,n,i,r){return r!==void 0&&(t=un(t,r,i)),un(t,n,i)+e}function ni(t,e=0,n=1,i,r){t.min=Ur(t.min,e,n,i,r),t.max=Ur(t.max,e,n,i,r)}function na(t,{x:e,y:n}){ni(t.x,e.translate,e.scale,e.originPoint),ni(t.y,n.translate,n.scale,n.originPoint)}const zr=.999999999999,Wr=1.0000000000001;function Dd(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&&te(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,na(t,s)),i&&Gt(o.latestValues)&&te(t,o.latestValues))}e.x<Wr&&e.x>zr&&(e.x=1),e.y<Wr&&e.y>zr&&(e.y=1)}function Qt(t,e){t.min=t.min+e,t.max=t.max+e}function Gr(t,e,n,i,r=.5){const o=H(t.min,t.max,r);ni(t,e,n,o,i)}function te(t,e){Gr(t.x,e.x,e.scaleX,e.scale,e.originX),Gr(t.y,e.y,e.scaleY,e.scale,e.originY)}function ia(t,e){return Jo(Cd(t.getBoundingClientRect(),e))}function Ld(t,e,n){const i=ia(t,n),{scroll:r}=e;return r&&(Qt(i.x,r.offset.x),Qt(i.y,r.offset.y)),i}const Kr=(t,e)=>Math.abs(t-e);function Od(t,e){const n=Kr(t.x,e.x),i=Kr(t.y,e.y);return Math.sqrt(n**2+i**2)}class ra{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=On(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Od(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=Ln(f,this.transformPagePoint),U.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{an(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=On(u.type==="pointercancel"||u.type==="lostpointercapture"?this.lastMoveEventInfo:Ln(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,g),h&&h(u,g)},!Di(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i;const o=je(e),s=Ln(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=J;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=n;c&&c(e,On(s,this.history)),an(e,"set"),this.removeListeners=$e(Zt(e.currentTarget,"pointermove",this.handlePointerMove),Zt(e.currentTarget,"pointerup",this.handlePointerUp),Zt(e.currentTarget,"pointercancel",this.handlePointerUp),Zt(e.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$t(this.updatePoint)}}function Ln(t,e){return e?{point:e(t.point)}:t}function Hr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function On({point:t},e){return{point:t,delta:Hr(t,sa(e)),offset:Hr(t,kd(e)),velocity:Fd(e,.1)}}function kd(t){return t[0]}function sa(t){return t[t.length-1]}function Fd(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=sa(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Et(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 Id(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?H(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?H(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 Bd(t,{top:e,left:n,bottom:i,right:r}){return{x:Yr(t.x,n,r),y:Yr(t.y,e,i)}}function qr(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function $d(t,e){return{x:qr(t.x,e.x),y:qr(t.y,e.y)}}function jd(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 _d(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 ii=.35;function Nd(t=ii){return t===!1?t=0:t===!0&&(t=ii),{x:Xr(t,"left","right"),y:Xr(t,"top","bottom")}}function Xr(t,e,n){return{min:Zr(t,e),max:Zr(t,n)}}function Zr(t,e){return typeof t=="number"?t:t[e]||0}const Ud=new WeakMap;class zd{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=Y(),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(je(u).point)},o=(u,f)=>{const{drag:d,dragPropagation:h,onDragStart:p}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Iu(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(Vt.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)),Hn(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=Wd(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 ra(e,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&U.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!Ge(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=Id(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&&qt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=Bd(r.layoutBox,n):this.constraints=!1,this.elastic=Nd(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=_d(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!qt(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=Ld(i,r.root,this.visualElement.getTransformPagePoint());let s=$d(r.layout.layoutBox,o);if(n){const a=n(Td(s));this.hasMutatedConstraints=!!a,a&&(s=Jo(a))}return s}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=yt(u=>{if(!Ge(u,n,this.currentDirection))return;let f=l[u]||{};s&&(f={min:0,max:0});const d=r?200:1e6,h=r?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Hn(this.visualElement,e),i.start(Wi(e,i,0,n,this.visualElement,!1))}stopAnimation(){yt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){yt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){yt(n=>{const{drag:i}=this.getProps();if(!Ge(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(e[n]-H(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!qt(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]=jd({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),yt(s=>{if(!Ge(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(H(l,c,r[s]))})}addListeners(){if(!this.visualElement.current)return;Ud.set(this.visualElement,this);const e=this.visualElement.current,n=Zt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();qt(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=Oe(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=ii,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ge(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Wd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Gd extends _t{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new zd(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 Jr=t=>(e,n)=>{t&&U.postRender(()=>t(e,n))};class Kd extends _t{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new ra(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jr(e),onStart:Jr(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&U.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Zt(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 Ze={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Qr(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(O.test(t))t=parseFloat(t);else return t;const n=Qr(t,e.target.x),i=Qr(t,e.target.y);return`${n}% ${i}%`}},Hd={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=H(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;tu(qd),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()})),Ze.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(),yi.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 oa(t){const[e,n]=Lc(),i=P.useContext(js);return Je.jsx(Yd,{...t,layoutGroup:i,switchLayoutGroup:P.useContext(Ys),isPresent:e,safeToRemove:n})}const qd={borderRadius:{...me,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomLeftRadius:me,borderBottomRightRadius:me,boxShadow:Hd};function Xd(t,e,n){const i=it(t)?t:De(t);return i.start(Wi("",i,e,n)),i.animation}function Zd(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Jd=(t,e)=>t.depth-e.depth;class Qd{constructor(){this.children=[],this.isDirty=!1}add(e){Li(this.children,e),this.isDirty=!0}remove(e){Oi(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Jd),this.isDirty=!1,this.children.forEach(e)}}function th(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 aa=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=aa.length,ts=t=>typeof t=="string"?parseFloat(t):t,es=t=>typeof t=="number"||O.test(t);function nh(t,e,n,i,r,o){r?(t.opacity=H(0,n.opacity!==void 0?n.opacity:1,ih(i)),t.opacityExit=H(e.opacity!==void 0?e.opacity:1,0,rh(i))):o&&(t.opacity=H(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<eh;s++){const a=`border${aa[s]}Radius`;let l=ns(e,a),c=ns(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||es(l)===es(c)?(t[a]=Math.max(H(ts(l),ts(c),i),0),(Vt.test(c)||Vt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=H(e.rotate||0,n.rotate||0,i))}function ns(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ih=la(0,.5,Po),rh=la(.5,.95,ut);function la(t,e,n){return i=>i<t?0:i>e?1:n(oe(t,e,i))}function is(t,e){t.min=e.min,t.max=e.max}function gt(t,e){is(t.x,e.x),is(t.y,e.y)}function rs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ss(t,e,n,i,r){return t-=e,t=un(t,1/n,i),r!==void 0&&(t=un(t,1/r,i)),t}function sh(t,e=0,n=1,i=.5,r,o=t,s=t){if(Vt.test(e)&&(e=parseFloat(e),e=H(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=H(o.min,o.max,i);t===o&&(a-=e),t.min=ss(t.min,e,n,a,r),t.max=ss(t.max,e,n,a,r)}function os(t,e,[n,i,r],o,s){sh(t,e[n],e[i],e[r],e.scale,o,s)}const oh=["x","scaleX","originX"],ah=["y","scaleY","originY"];function as(t,e,n,i){os(t.x,e,oh,n?n.x:void 0,i?i.x:void 0),os(t.y,e,ah,n?n.y:void 0,i?i.y:void 0)}function ls(t){return t.translate===0&&t.scale===1}function ca(t){return ls(t.x)&&ls(t.y)}function cs(t,e){return t.min===e.min&&t.max===e.max}function lh(t,e){return cs(t.x,e.x)&&cs(t.y,e.y)}function us(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ua(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function fs(t){return ot(t.x)/ot(t.y)}function ds(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ch{constructor(){this.members=[]}add(e){Li(this.members,e),e.scheduleRender()}remove(e){if(Oi(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 uh(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 kn=["","X","Y","Z"],fh={visibility:"hidden"},hs=1e3;let dh=0;function Fn(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function fa(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=vo(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&&fa(i)}function da({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=e==null?void 0:e()){this.id=dh++,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(mh),this.nodes.forEach(bh),this.nodes.forEach(Sh),this.nodes.forEach(gh)},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 Qd)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ki),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=Zd(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=th(d,250),Ze.hasAnimatedSinceResize&&(Ze.hasAnimatedSinceResize=!1,this.nodes.forEach(ms))})}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()||Ah,{onLayoutAnimationStart:S,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!ua(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={...Vi(g,"layout"),onPlay:S,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(V.delay=0,V.type=!1),this.startAnimation(V)}else d||ms(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(wh),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&&fa(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(ps);return}this.isUpdating||this.nodes.forEach(vh),this.isUpdating=!1,this.nodes.forEach(xh),this.nodes.forEach(hh),this.nodes.forEach(ph),this.clearAllSnapshots();const a=Rt.now();J.delta=Lt(0,1e3/60,a-J.timestamp),J.timestamp=a,J.isProcessing=!0,An.update.process(J),An.preRender.process(J),An.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yh),this.sharedNodes.forEach(Th)}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=Y(),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&&!ca(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Gt(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),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 Y();const l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Vh))){const{scroll:u}=this.root;u&&(Qt(l.x,u.offset.x),Qt(l.y,u.offset.y))}return l}removeElementScroll(s){var a;const l=Y();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),Qt(l.x,f.offset.x),Qt(l.y,f.offset.y))}return l}applyTransform(s,a=!1){const l=Y();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&&te(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Gt(u.latestValues)&&te(l,u.latestValues)}return Gt(this.latestValues)&&te(l,this.latestValues),l}removeTransform(s){const a=Y();gt(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Gt(c.latestValues))continue;ei(c.latestValues)&&c.updateSnapshot();const u=Y(),f=c.measurePageBox();gt(u,f),as(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Gt(this.latestValues)&&as(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=Y(),this.relativeTargetOrigin=Y(),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=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Md(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):gt(this.target,this.layout.layoutBox),na(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=Y(),this.relativeTargetOrigin=Y(),we(this.relativeTargetOrigin,this.target,h.target),gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||ei(this.parent.latestValues)||ea(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;Dd(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=Y());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rs(this.prevProjectionDelta.x,this.projectionDelta.x),rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Se(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!ds(this.projectionDelta.x,this.prevProjectionDelta.x)||!ds(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=Jt(),this.projectionDelta=Jt(),this.projectionDeltaWithTransform=Jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=Jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Y(),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(Ph));this.animationProgress=0;let T;this.mixTargetDelta=V=>{const m=V/1e3;gs(f.x,s.x,m),gs(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),Ch(this.relativeTarget,this.relativeTargetOrigin,d,m),T&&lh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Y()),gt(T,this.relativeTarget)),g&&(this.animationValues=u,nh(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(()=>{Ze.hasAnimatedSinceResize=!0,this.currentAnimation=Xd(0,hs,{...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(hs),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&&ha(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Y();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),te(a,u),Se(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ch),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&&Fn("z",s,c,this.animationValues);for(let u=0;u<kn.length;u++)Fn(`rotate${kn[u]}`,s,c,this.animationValues),Fn(`skew${kn[u]}`,s,c,this.animationValues);s.render();for(const u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return fh;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=qe(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const 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=qe(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Gt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=uh(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 Ve){if(d[g]===void 0)continue;const{correct:S,applyTo:v,isCSSVariable:w}=Ve[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?qe(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ps),this.root.sharedNodes.clear()}}}function hh(t){t.updateLayout()}function ph(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}):ha(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=Jt();Se(a,i,n.layoutBox);const l=Jt();s?Se(l,t.applyTransform(r,!0),n.measuredBox):Se(l,i,n.layoutBox);const c=!ca(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=Y();we(p,n.layoutBox,d.layoutBox);const g=Y();we(g,i,h.layoutBox),ua(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 mh(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 gh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function yh(t){t.clearSnapshot()}function ps(t){t.clearMeasurements()}function vh(t){t.isLayoutDirty=!1}function xh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ms(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function bh(t){t.resolveTargetDelta()}function Sh(t){t.calcProjection()}function wh(t){t.resetSkewAndRotation()}function Th(t){t.removeLeadSnapshot()}function gs(t,e,n){t.translate=H(e.translate,0,n),t.scale=H(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ys(t,e,n,i){t.min=H(e.min,n.min,i),t.max=H(e.max,n.max,i)}function Ch(t,e,n,i){ys(t.x,e.x,n.x,i),ys(t.y,e.y,n.y,i)}function Ph(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ah={duration:.45,ease:[.4,0,.1,1]},vs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),xs=vs("applewebkit/")&&!vs("chrome/")?Math.round:ut;function bs(t){t.min=xs(t.min),t.max=xs(t.max)}function Eh(t){bs(t.x),bs(t.y)}function ha(t,e,n){return t==="position"||t==="preserve-aspect"&&!Rd(fs(e),fs(n),.2)}function Vh(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const Rh=da({attachResizeListener:(t,e)=>Oe(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),In={current:void 0},pa=da({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!In.current){const t=new Rh({});t.mount(window),t.setOptions({layoutScroll:!0}),In.current=t}return In.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Mh={pan:{Feature:Kd},drag:{Feature:Gd,ProjectionNode:pa,MeasureLayout:oa}};function Ss(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,je(e)))}class Dh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=Mu(e,(n,i)=>(Ss(this.node,i,"Start"),r=>Ss(this.node,r,"End"))))}unmount(){}}class Lh 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=$e(Oe(this.node.current,"focus",()=>this.onFocus()),Oe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ws(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,je(e)))}class Oh extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=ku(e,(n,i)=>(ws(this.node,i,"Start"),(r,{success:o})=>ws(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ri=new WeakMap,Bn=new WeakMap,kh=t=>{const e=ri.get(t.target);e&&e(t)},Fh=t=>{t.forEach(kh)};function Ih({root:t,...e}){const n=t||document;Bn.has(n)||Bn.set(n,{});const i=Bn.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(Fh,{root:t,...e})),i[r]}function Bh(t,e,n){const i=Ih(e);return ri.set(t,n),i.observe(t),()=>{ri.delete(t),i.unobserve(t)}}const $h={some:0,all:1};class jh 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:$h[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 Bh(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(_h(e,n))&&this.startObserver()}unmount(){}}function _h({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Nh={inView:{Feature:jh},tap:{Feature:Oh},focus:{Feature:Lh},hover:{Feature:Dh}},Uh={layout:{ProjectionNode:pa,MeasureLayout:oa}},si={current:null},ma={current:!1};function zh(){if(ma.current=!0,!!di)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>si.current=t.matches;t.addListener(e),e()}else si.current=!1}const Wh=[...jo,nt,jt],Gh=t=>Wh.find($o(t)),Kh=new WeakMap;function Hh(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"&&mn(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,De(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,De(s!==void 0?s:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Ts=["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=Ni,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=vn(n),this.isVariantNode=Ks(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,Kh.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)),ma.current||zh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:si.current,process.env.NODE_ENV!=="production"&&mn(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):Y()}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<Ts.length;i++){const r=Ts[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=Hh(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=De(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"&&(Io(r)||Eo(r))?r=parseFloat(r):!Gh(r)&&jt.test(n)&&(r=Oo(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=Ai(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 ki),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ga extends Yh{constructor(){super(...arguments),this.KeyframeResolver=_o}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 qh(t){return window.getComputedStyle(t)}class Xh extends ga{constructor(){super(...arguments),this.type="html",this.renderInstance=io}readValueFromInstance(e,n){if(Yt.has(n)){const i=_i(n);return i&&i.default||0}else{const i=qh(e),r=(vi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ia(e,n)}build(e,n,i){Si(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ei(e,n,i)}}class Zh extends ga{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&no(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const i=_i(n);return i&&i.default||0}return n=ro.has(n)?n:gi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return oo(e,n,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&U.postRender(this.updateDimensions)}build(e,n,i){Ci(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){so(e,n,i,r)}mount(e){this.isSVGTag=Pi(e.tagName),super.mount(e)}}const Jh=(t,e)=>Ti(t)?new Zh(e):new Xh(e,{allowProjection:t!==P.Fragment}),Qh=Cu({...Sd,...Nh,...Mh,...Uh},Jh),tp=_c(Qh);function ep(t){t.values.forEach(e=>e.stop())}function oi(t,e){[...e].reverse().forEach(i=>{const r=t.getVariant(i);r&&Fi(t,r),t.variantChildren&&t.variantChildren.forEach(o=>{oi(o,e)})})}function np(t,e){if(Array.isArray(e))return oi(t,e);if(typeof e=="string")return oi(t,[e]);Fi(t,e)}function ip(){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(qo(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=>{np(r,i)})},stop(){e.forEach(i=>{ep(i)})},mount(){return t=!0,()=>{t=!1,n.stop()}}};return n}function rp(){const t=_s(ip);return Us(t.mount,[]),t}const sp=rp,op={some:0,all:1};function ap(t,e,{root:n,margin:i,amount:r="some"}={}){const o=ho(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:op[r]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function lp(t,{root:e,margin:n,amount:i,once:r=!1,initial:o=!1}={}){const[s,a]=P.useState(o);return P.useEffect(()=>{if(!t.current||r&&s)return;const l=()=>(a(!0),r?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:i};return ap(t.current,l,c)},[e,t,n,r,i]),s}var ee=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ee||{});const cp=L.section(({styles:t,theme:{global:{paddingLeft:e,paddingRight:n},colors:i,header:{height:r},footer:{height:o},section:{paddingTop:s,paddingBottom:a}},zIndex:l,align:c,isDark:u,isFullHeight:f,noPaddingTop:d,noPaddingBottom:h,backgroundColor:p})=>G({zIndex:l,width:"100%",display:"flex",alignItems:"center",position:"relative",flexDirection:"column",background:p,paddingTop:s[0],paddingLeft:e[0],paddingRight:n[0],paddingBottom:a[0],animation:"background 0.5s ease-in-out",justifyContent:f?"center":"flex-start",color:u?i.defaultLightText:i.defaultText,minHeight:f?`calc(100vh - ${r[0]}px - ${o[0]}px)`:0,[A[0]]:{paddingLeft:e[1],paddingRight:n[1],paddingTop:d?0:s[1],paddingBottom:h?0:s[1],minHeight:f?`calc(100vh - ${r[1]}px - ${o[1]}px)`:0},[A[1]]:{paddingLeft:e[2],paddingRight:n[2],paddingTop:d?0:s[2],paddingBottom:h?0:a[2],minHeight:f?`calc(100vh - ${r[2]}px - ${o[2]}px)`:0},[A[2]]:{paddingLeft:e[3],paddingRight:n[3],paddingTop:d?0:s[3],paddingBottom:h?0:a[3],minHeight:f?`calc(100vh - ${r[3]}px - ${o[3]}px)`:0},"> div":{textAlign:c===ee.Center?"center":c===ee.Right?"right":"left",alignItems:c===ee.Center?"center":c===ee.Right?"right":"left"},p:{color:u?i.defaultLightText:i.defaultText}},t)),up=L(tp.div)({gap:15,width:"100%",display:"flex",flexDirection:"column",maxWidth:"var(--max-width)"}),fp={hidden:{opacity:0},visible:{opacity:1,transition:{delay:.5,bounce:.2,duration:1,type:"spring"}}},dp=({children:t,zIndex:e=20,styles:n={},id:i=void 0,isDark:r=!1,align:o=ee.Left,isFullHeight:s=!1,noPaddingTop:a=!1,backgroundColor:l="",theme:c=_,noPaddingBottom:u=!1})=>{const f=sp(),d=P.createRef(),h=lp(d,{margin:"0px 0px 0px 0px"});return P.useEffect(()=>{h&&f.start("visible")},[f,h]),E(cp,{id:i,ref:d,align:o,theme:c,styles:n,zIndex:e,isDark:r,isFullHeight:s,noPaddingTop:a,noPaddingBottom:u,backgroundColor:l||c.main.backgroundColor,children:E(up,{initial:"hidden",animate:f,variants:fp,children:t})})},hp=L.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)),pp=({children:t,styles:e={},theme:n=_})=>E(hp,{theme:n,styles:e,children:t}),mp=L.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)),gp=L.div({display:"flex",flexDirection:"row",a:{padding:10,"svg path":{transition:"all 0.5s ease-in-out"},"&:hover":{"svg path":{opacity:.5}}}}),yp=({navSocial:t,styles:e={},theme:n=_})=>E(mp,{theme:n,styles:e,children:t.map(({name:i,link:r},o)=>{const s=i[0].toUpperCase()+i.slice(1);return E(gp,{children:E("a",{target:"_blank","aria-label":i,href:r,children:E(Pt,{theme:n,icon:`social${s}`})})},`navSocialItem-${o}`)})}),vp=L.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)),xp=({children:t,styles:e={},theme:n=_})=>E(vp,{theme:n,styles:e,children:t}),bp=L.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)),Sp=({action:t,children:e,styles:n={},theme:i=_})=>E(bp,{theme:i,styles:n,action:t,children:e});var ke=(t=>(t[t.Center=0]="Center",t[t.Left=1]="Left",t[t.Right=2]="Right",t))(ke||{});const wp=L.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===ke.Right?"flex-end":n===ke.Center?"center":"flex-start",[A[1]]:{gap:t[1],padding:e[1],flexDirection:"row"}},i)),Tp=({children:t,theme:e=_,styles:n={},isActions:i=!1,isMessage:r=!1,align:o=ke.Left})=>E(wp,{align:o,theme:e,styles:n,isActions:i,isMessage:r,children:t}),Cp=L.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 bn=(t=>(t.Text="text",t.Email="email",t.Search="search",t.Number="number",t.Hidden="hidden",t.Password="password",t))(bn||{});const ya=({name:t,value:e="",styles:n={},type:i=bn.Text,disabled:r=!1,placeholder:o="",theme:s=_,onChange:a=void 0})=>E(Cp,{type:i,id:t,name:t,theme:s,styles:n,onChange:a,disabled:r,defaultValue:e,placeholder:o}),Pp=L.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})`})),va=({name:t,label:e,required:n=!1,theme:i=_})=>dt(Pp,{htmlFor:t,theme:i,children:[e,n?E("span",{children:" *"}):""]}),Ap=L.div(({styles:t})=>G({width:"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"flex-start"},t)),Ep=L.div({paddingTop:5,textAlign:"left",fontStyle:"italic"}),Vp=L.span(({theme:{form:{error:{color:t}}}})=>({color:t,display:"block",fontSize:"0.875rem",marginTop:"0.25rem"})),Rp=L.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)),xa=({name:t,value:e,rows:n=2,disabled:i,styles:r={},placeholder:o="",onChange:s=void 0,theme:a=_})=>E(Rp,{id:t,name:t,rows:n,theme:a,styles:r,onChange:s,disabled:i,defaultValue:e,placeholder:o});var Gi=(t=>(t.Textarea="textarea",t))(Gi||{});const Mp=({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=bn.Text})=>dt(Ap,{styles:i,children:[e&&E(va,{theme:c,label:e,name:t,required:o}),f===Gi.Textarea?E(xa,{value:n,rows:r,name:t,theme:c,onChange:u,disabled:s,placeholder:a}):E(ya,{value:n,type:f,name:t,theme:c,onChange:u,disabled:s,placeholder:a}),l&&E(Ep,{children:l instanceof Array?l.map((d,h)=>E(Vp,{theme:c,children:d},h)):l})]}),Dp=L.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)),Lp=L.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]}})),Op=L.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 Fp(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 Ip=({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),Fp(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(Dp,{theme:n,styles:t,children:dt(Lp,{theme:n,children:[e,dt(Op,{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=Tl;exports.ActionsAlign=ie;exports.Button=Un;exports.ButtonSize=ve;exports.ButtonStyle=en;exports.ButtonType=ui;exports.ButtonVariant=tn;exports.Carousel=Hl;exports.Columns=Dc;exports.ColumnsAlign=re;exports.ConsentCookie=Ip;exports.Footer=Rc;exports.Form=Sp;exports.FormRow=Tp;exports.FormRowAlign=ke;exports.Header=Ec;exports.Icon=Pt;exports.InputType=bn;exports.KeyNumber=lc;exports.LanguageSwitcher=pc;exports.Logo=$l;exports.Main=bc;exports.Modal=Ml;exports.Nav=pp;exports.NavLegal=xp;exports.NavSocial=yp;exports.Section=dp;exports.TextField=Mp;exports.TextFieldInput=ya;exports.TextFieldLabel=va;exports.TextFieldTextarea=xa;exports.TextareaType=Gi;exports.Video=$s;exports.VideoFullWidth=uc;