1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2753],{3441:function(t,e,n){n.d(e,{Z:function(){return r}});let r=(0,n(7461).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},2235:function(t,e,n){n.d(e,{Z:function(){return r}});let r=(0,n(7461).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9079:function(t,e,n){var r,i;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(3127)},3127:function(t){!function(){var e={229:function(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var l=[],u=!1,c=-1;function h(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=a(h);u=!0;for(var e=l.length;e;){for(r=l,l=[];++c<e;)r&&r[c].run();c=-1,e=l.length}r=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||u||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}},s=!0;try{e[t](o,o.exports,r),s=!1}finally{s&&delete n[t]}return o.exports}r.ab="//";var i=r(229);t.exports=i}()},3064:function(t){t.exports=function(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),l=0;l<o.length;l++){var u=o[l];if(!a(u))return!1;var c=t[u],h=e[u];if(!1===(i=n?n.call(r,c,h,u):void 0)||void 0===i&&c!==h)return!1}return!0}},1018:function(t,e,n){n.d(e,{ZP:function(){return eo},F4:function(){return es}});var r=n(9703),i=n(4090),o=n(3064),s=n.n(o),a="-ms-",l="-moz-",u="-webkit-",c="comm",h="rule",d="decl",f="@keyframes",p=Math.abs,m=String.fromCharCode,v=Object.assign;function g(t,e){return(t=e.exec(t))?t[0]:t}function y(t,e,n){return t.replace(e,n)}function b(t,e){return t.indexOf(e)}function x(t,e){return 0|t.charCodeAt(e)}function w(t,e,n){return t.slice(e,n)}function S(t){return t.length}function P(t,e){return e.push(t),t}function E(t,e){return t.filter(function(t){return!g(t,e)})}var A=1,T=1,C=0,k=0,R=0,D="";function M(t,e,n,r,i,o,s,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:A,column:T,length:s,return:"",siblings:a}}function V(t,e){return v(M("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function L(t){for(;t.root;)t=V(t.root,{children:[t]});P(t,t.siblings)}function j(){return R=k<C?x(D,k++):0,T++,10===R&&(T=1,A++),R}function I(){return x(D,k)}function O(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 F(t){var e,n;return(e=k-1,n=function t(e){for(;j();)switch(R){case e:return k;case 34:case 39:34!==e&&39!==e&&t(R);break;case 40:41===e&&t(e);break;case 92:j()}return k}(91===t?t+2:40===t?t+1:t),w(D,e,n)).trim()}function B(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function N(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case d:return t.return=t.return||t.value;case c:return"";case f:return t.return=t.value+"{"+B(t.children,r)+"}";case h:if(!S(t.value=t.props.join(",")))return""}return S(n=B(t.children,r))?t.return=t.value+"{"+n+"}":""}function W(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case d:t.return=function t(e,n,r){var i;switch(i=n,45^x(e,0)?(((i<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3):0){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 4789:return l+e+e;
vendor: 8,212 bytes, line 1
1case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+l+e+a+e+e;case 5936:switch(x(e,n+11)){case 114:return u+e+a+y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+a+y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+a+y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return u+e+a+e+e;case 6165:return u+e+a+"flex-"+e+e;case 5187:return u+e+y(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+a+"flex-$1$2")+e;case 5443:return u+e+a+"flex-item-"+y(e,/flex-|-self/g,"")+(g(e,/flex-|baseline/)?"":a+"grid-row-"+y(e,/flex-|-self/g,""))+e;case 4675:return u+e+a+"flex-line-pack"+y(e,/align-content|flex-|-self/g,"")+e;case 5548:return u+e+a+y(e,"shrink","negative")+e;case 5292:return u+e+a+y(e,"basis","preferred-size")+e;case 6060:return u+"box-"+y(e,"-grow","")+u+e+a+y(e,"grow","positive")+e;case 4554:return u+y(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return y(y(y(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return y(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return y(y(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4200:if(!g(e,/flex-|baseline/))return a+"grid-column-align"+w(e,n)+e;break;case 2592:case 3360:return a+y(e,"template-","")+e;case 4384:case 3616:if(r&&r.some(function(t,e){return n=e,g(t.props,/grid-\w+-end/)}))return~b(e+(r=r[n].value),"span")?e:a+y(e,"-start","")+e+a+"grid-row-span:"+(~b(r,"span")?g(r,/\d+/):+g(r,/\d+/)-+g(e,/\d+/))+";";return a+y(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(t){return g(t.props,/grid-\w+-start/)})?e:a+y(y(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return y(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(S(e)-1-n>6)switch(x(e,n+1)){case 109:if(45!==x(e,n+4))break;case 102:return y(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+l+(108==x(e,n+3)?"$3":"$2-$3"))+e;case 115:return~b(e,"stretch")?t(y(e,"stretch","fill-available"),n,r)+e:e}break;case 5152:case 5920:return y(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,o,s,l){return a+n+":"+r+l+(i?a+n+"-span:"+(o?s:+s-+r)+l:"")+e});case 4949:if(121===x(e,n+6))return y(e,":",":"+u)+e;break;case 6444:switch(x(e,45===x(e,14)?18:11)){case 120:return y(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+u+(45===x(e,14)?"inline-":"")+"box$3$1"+u+"$2$3$1"+a+"$2box$3")+e;case 100:return y(e,":",":"+a)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return y(e,"scroll-","scroll-snap-")+e}return e}(t.value,t.length,n);return;case f:return B([V(t,{value:y(t.value,"@","@"+u)})],r);case h:if(t.length)return(n=t.props).map(function(e){switch(g(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":L(V(t,{props:[y(e,/:(read-\w+)/,":"+l+"$1")]})),L(V(t,{props:[e]})),v(t,{props:E(n,r)});break;case"::placeholder":L(V(t,{props:[y(e,/:(plac\w+)/,":"+u+"input-$1")]})),L(V(t,{props:[y(e,/:(plac\w+)/,":"+l+"$1")]})),L(V(t,{props:[y(e,/:(plac\w+)/,a+"input-$1")]})),L(V(t,{props:[e]})),v(t,{props:E(n,r)})}return""}).join("")}}function U(t,e,n,r,i,o,s,a,l,u,c,d){for(var f=i-1,m=0===i?o:[""],v=m.length,g=0,b=0,x=0;g<r;++g)for(var S=0,P=w(t,f+1,f=p(b=s[g])),E=t;S<v;++S)(E=(b>0?m[S]+" "+P:y(P,/&\f/g,m[S])).trim())&&(l[x++]=E);return M(t,e,n,0===i?h:a,l,u,c,d)}function _(t,e,n,r,i){return M(t,e,n,d,w(t,0,r),w(t,r+1,-1),r,i)}var z={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$=n(9079),Z=void 0!==$&&void 0!==$.env&&($.env.REACT_APP_SC_ATTR||$.env.SC_ATTR)||"data-styled",H="HTMLElement"in window,Y=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==$&&void 0!==$.env&&void 0!==$.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==$.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==$.env.REACT_APP_SC_DISABLE_SPEEDY&&$.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==$&&void 0!==$.env&&void 0!==$.env.SC_DISABLE_SPEEDY&&""!==$.env.SC_DISABLE_SPEEDY&&"false"!==$.env.SC_DISABLE_SPEEDY&&$.env.SC_DISABLE_SPEEDY),G=Object.freeze([]),X=Object.freeze({}),q=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),K=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,J=/(^-|-$)/g;function Q(t){return t.replace(K,"-").replace(J,"")}var tt=/(a)(d)/gi,te=function(t){return String.fromCharCode(t+(t>25?39:97))};function tn(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=te(e%52)+n;return(te(e%52)+n).replace(tt,"$1-$2")}var tr,ti=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},to=function(t){return ti(5381,t)};function ts(t){return"string"==typeof t}var ta="function"==typeof Symbol&&Symbol.for,tl=ta?Symbol.for("react.memo"):60115,tu=ta?Symbol.for("react.forward_ref"):60112,tc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},th={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},td={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tf=((tr={})[tu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tr[tl]=td,tr);function tp(t){return("type"in t&&t.type.$$typeof)===tl?td:"$$typeof"in t?tf[t.$$typeof]:tc}var tm=Object.defineProperty,tv=Object.getOwnPropertyNames,tg=Object.getOwnPropertySymbols,ty=Object.getOwnPropertyDescriptor,tb=Object.getPrototypeOf,tx=Object.prototype;function tw(t){return"function"==typeof t}function tS(t){return"object"==typeof t&&"styledComponentId"in t}function tP(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function tE(t,e){if(0===t.length)return"";for(var n=t[0],r=1;r<t.length;r++)n+=e?e+t[r]:t[r];return n}function tA(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function tT(t,e){Object.defineProperty(t,"toString",{value:e})}function tC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):""))}var tk=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n<t;n++)e+=this.groupSizes[n];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;t>=i;)if((i<<=1)<0)throw tC(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var s=this.indexOfGroup(t+1),a=(o=0,e.length);o<a;
1o++)this.tag.insertRule(s,e[o])&&(this.groupSizes[t]++,s++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],n=this.indexOfGroup(t),r=n+e;this.groupSizes[t]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n,o=r;o<i;o++)e+="".concat(this.tag.getRule(o)).concat("/*!sc*/\n");return e},t}(),tR=new Map,tD=new Map,tM=1,tV=function(t){if(tR.has(t))return tR.get(t);for(;tD.has(tM);)tM++;var e=tM++;return tR.set(t,e),tD.set(e,t),e},tL=function(t,e){tM=e+1,tR.set(t,e),tD.set(e,t)},tj="style[".concat(Z,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),tI=new RegExp("^".concat(Z,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),tO=function(t,e,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&t.registerName(e,r)},tF=function(t,e){for(var n,r=(null!==(n=e.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(a){var l=a.match(tI);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(tL(c,u),tO(t,c,l[3]),t.getTag().insertRules(u,i)),i.length=0}else i.push(a)}}},tB=function(t){var e,r=document.head,i=t||r,o=document.createElement("style"),s=(e=Array.from(i.querySelectorAll("style[".concat(Z,"]"))))[e.length-1],a=void 0!==s?s.nextSibling:null;o.setAttribute(Z,"active"),o.setAttribute("data-styled-version","6.1.1");var l=n.nc;return l&&o.setAttribute("nonce",l),i.insertBefore(o,a),o},tN=function(){function t(t){this.element=tB(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,r=e.length;n<r;n++){var i=e[n];if(i.ownerNode===t)return i}throw tC(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),tW=function(){function t(t){this.element=tB(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),tU=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),t_=H,tz={isServer:!H,useCSSOMInjection:!Y},t$=function(){function t(t,e,n){void 0===t&&(t=X),void 0===e&&(e={});var i=this;this.options=(0,r.pi)((0,r.pi)({},tz),t),this.gs=e,this.names=new Map(n),this.server=!!t.isServer,!this.server&&H&&t_&&(t_=!1,function(t){for(var e=document.querySelectorAll(tj),n=0,r=e.length;n<r;n++){var i=e[n];i&&"active"!==i.getAttribute(Z)&&(tF(t,i),i.parentNode&&i.parentNode.removeChild(i))}}(this)),tT(this,function(){return function(t){for(var e=t.getTag(),n=e.length,r="",i=0;i<n;i++)(function(n){var i=tD.get(n);if(void 0!==i){var o=t.names.get(i),s=e.getGroup(n);if(void 0!==o&&0!==s.length){var a="".concat(Z,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach(function(t){t.length>0&&(l+="".concat(t,","))}),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat("/*!sc*/\n")}}})(i);return r}(i)})}return t.registerId=function(t){return tV(t)},t.prototype.reconstructWithOptions=function(e,n){return void 0===n&&(n=!0),new t((0,r.pi)((0,r.pi)({},this.options),e),this.gs,n&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){var t,e,n;return this.tag||(this.tag=(e=(t=this.options).useCSSOMInjection,n=t.target,new tk(t.isServer?new tU(n):e?new tN(n):new tW(n))))},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(tV(t),this.names.has(t))this.names.get(t).add(e);else{var n=new Set;n.add(e),this.names.set(t,n)}},t.prototype.insertRules=function(t,e,n){this.registerName(t,e),this.getTag().insertRules(tV(t),n)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(tV(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),tZ=/&/g,tH=/^\s*\/\/.*$/gm;function tY(t){var e,n,r,i=void 0===t?X:t,o=i.options,s=void 0===o?X:o,a=i.plugins,l=void 0===a?G:a,u=function(t,r,i){return i===n||i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(e):t},d=l.slice();d.push(function(t){t.type===h&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(tZ,n).replace(r,u))}),s.prefix&&d.push(W),d.push(N);var f=function(t,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),e=a,n=i,r=RegExp("\\".concat(n,"\\b"),"g");var l,u,h,f,p,v=t.replace(tH,""),g=(p=function t(e,n,r,i,o,s,a,l,u){for(var h,d=0,f=0,p=a,v=0,g=0,E=0,C=1,V=1,L=1,B=0,N="",W=o,z=s,$=i,Z=N;V;)switch(E=B,B=j()){case 40:if(108!=E&&58==x(Z,p-1)){-1!=b(Z+=y(F(B),"&","&\f"),"&\f")&&(L=-1);break}case 34:case 39:case 91:Z+=F(B);break;case 9:case 10:case 13:case 32:Z+=function(t){for(;R=I();)if(R<33)j();else break;return O(t)>2||O(R)>3?"":" "}(E);break;case 92:Z+=function(t,e){for(var n;--e&&j()&&!(R<48)&&!(R>102)&&(!(R>57)||!(R<65))&&(!(R>70)||!(R<97)););return n=k+(e<6&&32==I()&&32==j()),w(D,t,n)}(k-1,7);continue;case 47:switch(I()){case 42:case 47:P(M(h=function(t,e){for(;j();)if(t+R===57)break;else if(t+R===84&&47===I())break;return"/*"+w(D,e,k-1)+"*"+m(47===t?t:j())}(j(),k),n,r,c,m(R),w(h,2,-2),0,u),u);break;default:Z+="/"}break;case 123*C:l[d++]=S(Z)*L;case 125*C:case 59:case 0:switch(B){case 0:case 125:V=0;case 59+f:-1==L&&(Z=y(Z,/\f/g,"")),g>0&&S(Z)-p&&P(g>32?_(Z+";",i,r,p-1,u):_(y(Z," ","")+";",i,r,p-2,u),u);break;case 59:Z+=";";
1default:if(P($=U(Z,n,r,d,f,o,l,N,W=[],z=[],p,s),s),123===B){if(0===f)t(Z,n,$,$,W,s,p,l,z);else switch(99===v&&110===x(Z,3)?100:v){case 100:case 108:case 109:case 115:t(e,$,$,i&&P(U(e,$,$,0,0,o,l,N,o,W=[],p,z),z),o,z,p,l,i?W:z);break;default:t(Z,$,$,$,[""],z,0,l,z)}}}d=f=g=0,C=L=1,N=Z="",p=a;break;case 58:p=1+S(Z),g=E;default:if(C<1){if(123==B)--C;else if(125==B&&0==C++&&125==(R=k>0?x(D,--k):0,T--,10===R&&(T=1,A--),R))continue}switch(Z+=m(B),B*C){case 38:L=f>0?1:(Z+="\f",-1);break;case 44:l[d++]=(S(Z)-1)*L,L=1;break;case 64:45===I()&&(Z+=F(j())),v=I(),f=p=S(N=Z+=function(t){for(;!O(I());)j();return w(D,t,k)}(k)),B++;break;case 45:45===E&&2==S(Z)&&(C=0)}}return s}("",null,null,null,[""],(f=h=o||i?"".concat(o," ").concat(i," { ").concat(v," }"):v,A=T=1,C=S(D=f),k=0,h=[]),0,[0],h),D="",p);s.namespace&&(g=function t(e,n){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(n," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(n," ")),e.props=e.props.map(function(t){return"".concat(n," ").concat(t)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=t(e.children,n)),e})}(g,s.namespace));var E=[];return B(g,(u=(l=d.concat(function(t){var e;!t.root&&(t=t.return)&&(e=t,E.push(e))})).length,function(t,e,n,r){for(var i="",o=0;o<u;o++)i+=l[o](t,e,n,r)||"";return i})),E};return f.hash=l.length?l.reduce(function(t,e){return e.name||tC(15),ti(t,e.name)},5381).toString():"",f}var tG=new t$,tX=tY(),tq=i.createContext({shouldForwardProp:void 0,styleSheet:tG,stylis:tX}),tK=(tq.Consumer,i.createContext(void 0));function tJ(){return(0,i.useContext)(tq)}function tQ(t){var e=(0,i.useState)(t.stylisPlugins),n=e[0],r=e[1],o=tJ().styleSheet,a=(0,i.useMemo)(function(){var e=o;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[t.disableCSSOMInjection,t.sheet,t.target,o]),l=(0,i.useMemo)(function(){return tY({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:n})},[t.enableVendorPrefixes,t.namespace,n]);(0,i.useEffect)(function(){s()(n,t.stylisPlugins)||r(t.stylisPlugins)},[t.stylisPlugins]);var u=(0,i.useMemo)(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:a,stylis:l}},[t.shouldForwardProp,a,l]);return i.createElement(tq.Provider,{value:u},i.createElement(tK.Provider,{value:l},t.children))}var t0=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=tX);var r=n.name+e.hash;t.hasNameForId(n.id,r)||t.insertRules(n.id,r,e(n.rules,r,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,tT(this,function(){throw tC(12,String(n.name))})}return t.prototype.getName=function(t){return void 0===t&&(t=tX),this.name+t.hash},t}();function t1(t){for(var e="",n=0;n<t.length;n++){var r=t[n];if(1===n&&"-"===r&&"-"===t[0])return t;r>="A"&&r<="Z"?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var t2=function(t){return null==t||!1===t||""===t},t3=function(t){var e=[];for(var n in t){var i=t[n];t.hasOwnProperty(n)&&!t2(i)&&(Array.isArray(i)&&i.isCss||tw(i)?e.push("".concat(t1(n),":"),i,";"):tA(i)?e.push.apply(e,(0,r.ev)((0,r.ev)(["".concat(n," {")],t3(i),!1),["}"],!1)):e.push("".concat(t1(n),": ").concat(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in z||n.startsWith("--")?String(i).trim():"".concat(i,"px"),";")))}return e};function t5(t,e,n,r){return t2(t)?[]:tS(t)?[".".concat(t.styledComponentId)]:tw(t)?!tw(t)||t.prototype&&t.prototype.isReactComponent||!e?[t]:t5(t(e),e,n,r):t instanceof t0?n?(t.inject(n,r),[t.getName(r)]):[t]:tA(t)?t3(t):Array.isArray(t)?Array.prototype.concat.apply(G,t.map(function(t){return t5(t,e,n,r)})):[t.toString()]}function t4(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(tw(n)&&!tS(n))return!1}return!0}var t9=to("6.1.1"),t6=function(){function t(t,e,n){this.rules=t,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&t4(t),this.componentId=e,this.baseHash=ti(t9,e),this.baseStyle=n,t$.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,n):"";if(this.isStatic&&!n.hash){if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))r=tP(r,this.staticRulesId);else{var i=tE(t5(this.rules,t,e,n)),o=tn(ti(this.baseHash,i)>>>0);if(!e.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);e.insertRules(this.componentId,o,s)}r=tP(r,o),this.staticRulesId=o}}else{for(var a=ti(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var h=tE(t5(c,t,e,n));a=ti(a,h+u),l+=h}}if(l){var d=tn(a>>>0);e.hasNameForId(this.componentId,d)||e.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=tP(r,d)}}return r},t}(),t8=i.createContext(void 0);t8.Consumer;var t7={};
1function et(t,e,n){var o,s,a,l,u=tS(t),c=!ts(t),h=e.attrs,d=void 0===h?G:h,f=e.componentId,p=void 0===f?(o=e.displayName,s=e.parentComponentId,t7[a="string"!=typeof o?"sc":Q(o)]=(t7[a]||0)+1,l="".concat(a,"-").concat(tn(to("6.1.1"+a+t7[a])>>>0)),s?"".concat(s,"-").concat(l):l):f,m=e.displayName,v=void 0===m?ts(t)?"styled.".concat(t):"Styled(".concat(t.displayName||t.name||"Component",")"):m,g=e.displayName&&e.componentId?"".concat(Q(e.displayName),"-").concat(e.componentId):e.componentId||p,y=u&&t.attrs?t.attrs.concat(d).filter(Boolean):d,b=e.shouldForwardProp;if(u&&t.shouldForwardProp){var x=t.shouldForwardProp;if(e.shouldForwardProp){var w=e.shouldForwardProp;b=function(t,e){return x(t,e)&&w(t,e)}}else b=x}var S=new t6(n,g,u?t.componentStyle:void 0);function P(t,e){return function(t,e,n){var o,s,a=t.attrs,l=t.componentStyle,u=t.defaultProps,c=t.foldedComponentIds,h=t.styledComponentId,d=t.target,f=i.useContext(t8),p=tJ(),m=t.shouldForwardProp||p.shouldForwardProp,v=function(t,e,n){for(var i,o=(0,r.pi)((0,r.pi)({},e),{className:void 0,theme:n}),s=0;s<t.length;s+=1){var a=tw(i=t[s])?i(o):i;for(var l in a)o[l]="className"===l?tP(o[l],a[l]):"style"===l?(0,r.pi)((0,r.pi)({},o[l]),a[l]):a[l]}return e.className&&(o.className=tP(o.className,e.className)),o}(a,e,(void 0===(o=u)&&(o=X),e.theme!==o.theme&&e.theme||f||o.theme||X)),g=v.as||d,y={};for(var b in v)void 0===v[b]||"$"===b[0]||"as"===b||"theme"===b||("forwardedAs"===b?y.as=v.forwardedAs:m&&!m(b,g)||(y[b]=v[b]));var x=(s=tJ(),l.generateAndInjectStyles(v,s.styleSheet,s.stylis)),w=tP(c,h);return x&&(w+=" "+x),v.className&&(w+=" "+v.className),y[ts(g)&&!q.has(g)?"class":"className"]=w,y.ref=n,(0,i.createElement)(g,y)}(E,t,e)}P.displayName=v;var E=i.forwardRef(P);return E.attrs=y,E.componentStyle=S,E.displayName=v,E.shouldForwardProp=b,E.foldedComponentIds=u?tP(t.foldedComponentIds,t.styledComponentId):"",E.styledComponentId=g,E.target=u?t.target:t,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=u?function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)(function t(e,n,r){if(void 0===r&&(r=!1),!r&&!tA(e)&&!Array.isArray(e))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)e[i]=t(e[i],n[i]);else if(tA(n))for(var i in n)e[i]=t(e[i],n[i]);return e})(t,e[r],!0);return t}({},t.defaultProps,e):e}}),tT(E,function(){return".".concat(E.styledComponentId)}),c&&function t(e,n,r){if("string"!=typeof n){if(tx){var i=tb(n);i&&i!==tx&&t(e,i,r)}var o=tv(n);tg&&(o=o.concat(tg(n)));for(var s=tp(e),a=tp(n),l=0;l<o.length;++l){var u=o[l];if(!(u in th||r&&r[u]||a&&u in a||s&&u in s)){var c=ty(n,u);try{tm(e,u,c)}catch(t){}}}}return e}(E,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function ee(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n}var en=function(t){return Object.assign(t,{isCss:!0})};function er(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return tw(t)||tA(t)?en(t5(ee(G,(0,r.ev)([t],e,!0)))):0===e.length&&1===t.length&&"string"==typeof t[0]?t5(t):en(t5(ee(t,e)))}var ei=function(t){return function t(e,n,i){if(void 0===i&&(i=X),!n)throw tC(1,n);var o=function(t){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(n,i,er.apply(void 0,(0,r.ev)([t],o,!1)))};return o.attrs=function(o){return t(e,n,(0,r.pi)((0,r.pi)({},i),{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return t(e,n,(0,r.pi)((0,r.pi)({},i),o))},o}(et,t)},eo=ei;function es(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=tE(er.apply(void 0,(0,r.ev)([t],e,!1)));return new t0(tn(to(i)>>>0),i)}q.forEach(function(t){eo[t]=ei(t)}),function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=t4(t),t$.registerId(this.componentId+1)}t.prototype.createStyles=function(t,e,n,r){var i=r(tE(t5(this.rules,e,n,r)),""),o=this.componentId+t;n.insertRules(o,o,i)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,n,r){t>2&&t$.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)}}(),function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),r=n.nc,i=tE([r&&'nonce="'.concat(r,'"'),"".concat(Z,'="true"'),"".concat("data-styled-version",'="').concat("6.1.1",'"')].filter(
1Boolean)," ");return"<style ".concat(i,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw tC(2);return t._emitSheetCSS()},this.getStyleElement=function(){if(t.sealed)throw tC(2);var e,o=((e={})[Z]="",e["data-styled-version"]="6.1.1",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),s=n.nc;return s&&(o.nonce=s),[i.createElement("style",(0,r.pi)({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new t$({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw tC(2);return i.createElement(tQ,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw tC(3)}}()},699:function(t,e,n){/** 2 * @license React 3 * use-sync-external-store-shim.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var r=n(4090),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var c=void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=e,u(i)&&c({inst:i})},[t,n,e]),s(function(){return u(i)&&c({inst:i}),t(function(){u(i)&&c({inst:i})})},[t]),l(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},220:function(t,e,n){/** 10 * @license React 11 * use-sync-external-store-shim/with-selector.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var r=n(4090),i=n(2362),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=i.useSyncExternalStore,a=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var h=a(null);if(null===h.current){var d={hasValue:!1,value:null};h.current=d}else d=h.current;var f=s(t,(h=u(function(){function t(t){if(!l){if(l=!0,s=t,t=r(t),void 0!==i&&d.hasValue){var e=d.value;if(i(e,t))return a=e}return a=t}if(e=a,o(s,t))return e;var n=r(t);return void 0!==i&&i(e,n)?e:(s=t,a=n)}var s,a,l=!1,u=void 0===n?null:n;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,n,r,i]))[0],h[1]);return l(function(){d.hasValue=!0,d.value=f},[f]),c(f),f}},2362:function(t,e,n){t.exports=n(699)},9292:function(t,e,n){t.exports=n(220)},7230:function(t,e,n){let r;n.d(e,{x8:function(){return tX},VY:function(){return tH},dk:function(){return tG},aV:function(){return tZ},h_:function(){return t$},fC:function(){return t_},Dx:function(){return tY},xz:function(){return tz}});var i,o,s,a,l,u,c=n(2110),h=n(4090),d=n(4991),f=n(1266),p=n(4104),m=n(8687),v=n(9310),g=n(1260),y=n(9586),b=n(9830);let x="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},P=(0,h.forwardRef)((t,e)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=t,[a,l]=(0,h.useState)(null),u=(0,b.W)(i),d=(0,b.W)(o),p=(0,h.useRef)(null),m=(0,f.e)(e,t=>l(t)),v=(0,h.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,h.useEffect)(()=>{if(r){function t(t){if(v.paused||!a)return;let e=t.target;a.contains(e)?p.current=e:T(p.current,{select:!0})}function e(t){if(v.paused||!a)return;let e=t.relatedTarget;null===e||a.contains(e)||T(p.current,{select:!0})}document.addEventListener("focusin",t),document.addEventListener("focusout",e);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&T(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),n.disconnect()}}},[r,a,v.paused]),(0,h.useEffect)(()=>
17{if(a){C.add(v);let t=document.activeElement;if(!a.contains(t)){let e=new CustomEvent(x,S);a.addEventListener(x,u),a.dispatchEvent(e),e.defaultPrevented||(function(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of t)if(T(r,{select:e}),document.activeElement!==n)return}(E(a).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&T(a))}return()=>{a.removeEventListener(x,u),setTimeout(()=>{let e=new CustomEvent(w,S);a.addEventListener(w,d),a.dispatchEvent(e),e.defaultPrevented||T(null!=t?t:document.body,{select:!0}),a.removeEventListener(w,d),C.remove(v)},0)}}},[a,u,d,v]);let g=(0,h.useCallback)(t=>{if(!n&&!r||v.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,i=document.activeElement;if(e&&i){let e=t.currentTarget,[r,o]=function(t){let e=E(t);return[A(e,t),A(e.reverse(),t)]}(e);r&&o?t.shiftKey||i!==o?t.shiftKey&&i===r&&(t.preventDefault(),n&&T(o,{select:!0})):(t.preventDefault(),n&&T(r,{select:!0})):i===e&&t.preventDefault()}},[n,r,v.paused]);return(0,h.createElement)(y.WV.div,(0,c.Z)({tabIndex:-1},s,{ref:m,onKeyDown:g}))});function E(t){let e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function A(t,e){for(let n of t)if(!function(t,e){let{upTo:n}=e;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===n||t!==n);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:e}))return n}function T(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.focus){var n;let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&(n=t)instanceof HTMLInputElement&&"select"in n&&e&&t.select()}}let C=(r=[],{add(t){let e=r[0];t!==e&&(null==e||e.pause()),(r=k(r,t)).unshift(t)},remove(t){var e;null===(e=(r=k(r,t))[0])||void 0===e||e.resume()}});function k(t,e){let n=[...t],r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}var R=n(7881),D=n(2642);let M=0;function V(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var L=n(9703),j="right-scroll-bar-position",I="width-before-scroll-bar",O=(void 0===i&&(i={}),(void 0===o&&(o=function(t){return t}),s=[],a=!1,l={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(t){var e=o(t,a);return s.push(e),function(){s=s.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(a=!0;s.length;){var e=s;s=[],e.forEach(t)}s={push:function(e){return t(e)},filter:function(){return s}}},assignMedium:function(t){a=!0;var e=[];if(s.length){var n=s;s=[],n.forEach(t),e=s}var r=function(){var n=e;e=[],n.forEach(t)},i=function(){return Promise.resolve().then(r)};i(),s={push:function(t){e.push(t),i()},filter:function(t){return e=e.filter(t),s}}}}).options=(0,L.pi)({async:!0,ssr:!1},i),l),F=function(){},B=h.forwardRef(function(t,e){var n,r,i,o=h.useRef(null),s=h.useState({onScrollCapture:F,onWheelCapture:F,onTouchMoveCapture:F}),a=s[0],l=s[1],u=t.forwardProps,c=t.children,d=t.className,f=t.removeScrollBar,p=t.enabled,m=t.shards,v=t.sideCar,g=t.noIsolation,y=t.inert,b=t.allowPinchZoom,x=t.as,w=(0,L._T)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=(n=[o,e],r=function(t){return n.forEach(function(e){return"function"==typeof e?e(t):e&&(e.current=t),e})},(i=(0,h.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var t=i.value;t!==value&&(i.value=value,i.callback(value,t))}}}})[0]).callback=r,i.facade),P=(0,L.pi)((0,L.pi)({},w),a);return h.createElement(h.Fragment,null,p&&h.createElement(v,{sideCar:O,removeScrollBar:f,shards:m,noIsolation:g,inert:y,setCallbacks:l,allowPinchZoom:!!b,lockRef:o}),u?h.cloneElement(h.Children.only(c),(0,L.pi)((0,L.pi)({},P),{ref:S})):h.createElement(void 0===x?"div":x,(0,L.pi)({},P,{className:d,ref:S}),c))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},B.classNames={fullWidth:I,zeroRight:j};var N=function(t){var e=t.sideCar,n=(0,L._T)(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,(0,L.pi)({},n))};
17N.isSideCarExport=!0;var W=function(){var t=0,e=null;return{add:function(r){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=u||n.nc;return e&&t.setAttribute("nonce",e),t}())){var i,o;(i=e).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},U=function(){var t=W();return function(e,n){h.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},_=function(){var t=U();return function(e){return t(e.styles,e.dynamic),null}},z=function(t){return parseInt(t||"",10)||0},$=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[z(n),z(r),z(i)]},Z=function(t){void 0===t&&(t="margin");var e=$(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},H=_(),Y=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(j," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(I," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(j," .").concat(j," {\n right: 0 ").concat(r,";\n }\n \n .").concat(I," .").concat(I," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},G=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,o=h.useMemo(function(){return Z(i)},[i]);return h.createElement(H,{styles:Y(o,!e,i,n?"":"!important")})},X=!1;try{var q=Object.defineProperty({},"passive",{get:function(){return X=!0,!0}});window.addEventListener("test",q,q),window.removeEventListener("test",q,q)}catch(t){X=!1}var K=!!X&&{passive:!1},J=function(t,e){var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},Q=function(t,e){var n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),tt(t,n)){var r=te(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},tt=function(t,e){return"v"===t?J(e,"overflowY"):J(e,"overflowX")},te=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},tn=function(t,e,n,r,i){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*r,l=n.target,u=e.contains(l),c=!1,h=a>0,d=0,f=0;do{var p=te(t,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&tt(t,l)&&(d+=v,f+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return h&&(i&&0===d||!i&&a>d)?c=!0:!h&&(i&&0===f||!i&&-a>f)&&(c=!0),c},tr=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ti=function(t){return[t.deltaX,t.deltaY]},to=function(t){return t&&"current"in t?t.current:t},ts=0,ta=[],tl=(O.useMedium(function(t){var e=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),i=h.useState(ts++)[0],o=h.useState(function(){return _()})[0],s=h.useRef(t);h.useEffect(function(){s.current=t},[t]),h.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=(0,L.ev)([t.lockRef.current],(t.shards||[]).map(to),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=h.useCallback(function(t,e){if("touches"in t&&2===t.touches.length)return!s.current.allowPinchZoom;var i,o=tr(t),a=n.current,l="deltaX"in t?t.deltaX:a[0]-o[0],u="deltaY"in t?t.deltaY:a[1]-o[1],c=t.target,h=Math.abs(l)>
17Math.abs(u)?"h":"v";if("touches"in t&&"h"===h&&"range"===c.type)return!1;var d=Q(h,c);if(!d)return!0;if(d?i=h:(i="v"===h?"h":"v",d=Q(h,c)),!d)return!1;if(!r.current&&"changedTouches"in t&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return tn(f,e,t,"h"===f?l:u,!0)},[]),l=h.useCallback(function(t){if(ta.length&&ta[ta.length-1]===o){var n="deltaY"in t?ti(t):tr(t),r=e.current.filter(function(e){var r;return e.name===t.type&&e.target===t.target&&(r=e.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){t.cancelable&&t.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(to).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?a(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=h.useCallback(function(t,n,r,i){var o={name:t,delta:n,target:r,should:i};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),c=h.useCallback(function(t){n.current=tr(t),r.current=void 0},[]),d=h.useCallback(function(e){u(e.type,ti(e),e.target,a(e,t.lockRef.current))},[]),f=h.useCallback(function(e){u(e.type,tr(e),e.target,a(e,t.lockRef.current))},[]);h.useEffect(function(){return ta.push(o),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}
17),document.addEventListener("wheel",l,K),document.addEventListener("touchmove",l,K),document.addEventListener("touchstart",c,K),function(){ta=ta.filter(function(t){return t!==o}),document.removeEventListener("wheel",l,K),document.removeEventListener("touchmove",l,K),document.removeEventListener("touchstart",c,K)}},[]);var p=t.removeScrollBar,m=t.inert;return h.createElement(h.Fragment,null,m?h.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?h.createElement(G,{gapMode:"margin"}):null)}),N),tu=h.forwardRef(function(t,e){return h.createElement(B,(0,L.pi)({},t,{ref:e,sideCar:tl}))});tu.classNames=B.classNames;var tc=new WeakMap,th=new WeakMap,td={},tf=0,tp=function(t){return t&&(t.host||tp(t.parentNode))},tm=function(t,e,n,r){var i=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=tp(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});td[n]||(td[n]=new WeakMap);var o=td[n],s=[],a=new Set,l=new Set(i),u=function(t){!t||a.has(t)||(a.add(t),u(t.parentNode))};i.forEach(u);var c=function(t){!t||l.has(t)||Array.prototype.forEach.call(t.children,function(t){if(a.has(t))c(t);else{var e=t.getAttribute(r),i=null!==e&&"false"!==e,l=(tc.get(t)||0)+1,u=(o.get(t)||0)+1;tc.set(t,l),o.set(t,u),s.push(t),1===l&&i&&th.set(t,!0),1===u&&t.setAttribute(n,"true"),i||t.setAttribute(r,"true")}})};return c(e),a.clear(),tf++,function(){s.forEach(function(t){var e=tc.get(t)-1,i=o.get(t)-1;tc.set(t,e),o.set(t,i),e||(th.has(t)||t.removeAttribute(r),th.delete(t)),i||t.removeAttribute(n)}),--tf||(tc=new WeakMap,tc=new WeakMap,th=new WeakMap,td={})}},tv=function(t,e,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),tm(r,i,n,"aria-hidden")):function(){return null}},tg=n(9143);let ty="Dialog",[tb,tx]=(0,p.b)(ty),[tw,tS]=tb(ty),tP=(0,h.forwardRef)((t,e)=>{let{__scopeDialog:n,...r}=t,i=tS("DialogTrigger",n),o=(0,f.e)(e,i.triggerRef);return(0,h.createElement)(y.WV.button,(0,c.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":tN(i.open)},r,{ref:o,onClick:(0,d.M)(t.onClick,i.onOpenToggle)}))}),tE="DialogPortal",[tA,tT]=tb(tE,{forceMount:void 0}),tC="DialogOverlay",tk=(0,h.forwardRef)((t,e)=>{let n=tT(tC,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=tS(tC,t.__scopeDialog);return o.modal?(0,h.createElement)(D.z,{present:r||o.open},(0,h.createElement)(tR,(0,c.Z)({},i,{ref:e}))):null}),tR=(0,h.forwardRef)((t,e)=>{let{__scopeDialog:n,...r}=t,i=tS(tC,n);return(0,h.createElement)(tu,{as:tg.g7,allowPinchZoom:!0,shards:[i.contentRef]},(0,h.createElement)(y.WV.div,(0,c.Z)({"data-state":tN(i.open)},r,{ref:e,style:{pointerEvents:"auto",...r.style}})))}),tD="DialogContent",tM=(0,h.forwardRef)((t,e)=>{let n=tT(tD,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,o=tS(tD,t.__scopeDialog);return(0,h.createElement)(D.z,{present:r||o.open},o.modal?(0,h.createElement)(tV,(0,c.Z)({},i,{ref:e})):(0,h.createElement)(tL,(0,c.Z)({},i,{ref:e})))}),tV=(0,h.forwardRef)((t,e)=>{let n=tS(tD,t.__scopeDialog),r=(0,h.useRef)(null),i=(0,f.e)(e,n.contentRef,r);return(0,h.useEffect)(()=>{let t=r.current;if(t)return tv(t)},[]),(0,h.createElement)(tj,(0,c.Z)({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,d.M)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),null===(e=n.triggerRef.current)||void 0===e||e.focus()}),onPointerDownOutside:(0,d.M)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey;(2===e.button||n)&&t.preventDefault()}),onFocusOutside:(0,d.M)(t.onFocusOutside,t=>t.preventDefault())}))}),tL=(0,h.forwardRef)((t,e)=>{let n=tS(tD,t.__scopeDialog),r=(0,h.useRef)(!1),i=(0,h.useRef)(!1);return(0,h.createElement)(tj,(0,c.Z)({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var o,s;null===(o=t.onCloseAutoFocus)||void 0===o||o.call(t,e),e.defaultPrevented||(r.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),e.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:e=>{var o,s;null===(o=t.onInteractOutside)||void 0===o||o.call(t,e),e.defaultPrevented||(r.current=!0,"pointerdown"!==e.detail.originalEvent.type||(i.current=!0));let a=e.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(a))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}}))}),tj=(0,h.forwardRef)((t,e)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=t,a=tS(tD,n),l=(0,h.useRef)(null),u=(0,f.e)(e,l);return(0,h.useEffect)(()=>{var t,e;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:V()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:V()),M++,()=>{1===M&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),M--}},[]),(0,h.createElement)(h.Fragment,null,(0,h.createElement)(P,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,h.createElement)(g.XB,(0,c.Z)({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":tN(a.open)},s,{ref:u,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),tI="DialogTitle",tO=(0,h.forwardRef)((t,e)=>{let{__scopeDialog:n,...r}=t,i=tS(tI,n);return(0,h.createElement)(y.WV.h2,(0,c.Z)({id:i.titleId},r,{ref:e}))}),tF=(0,h.forwardRef)((t,e)=>{let{__scopeDialog:n,...r}=t,i=tS("DialogDescription",n);return(0,h.createElement)(y.WV.p,(0,c.Z)({id:i.descriptionId},r,{ref:e}))}),tB=(0,h.forwardRef)((t,e)=>{let{__scopeDialog:n,...r}=t,i=tS("DialogClose",n);return(0,h.createElement)(y.WV.button,(0,c.Z)({type:"button"},r,{ref:e,onClick:(0,d.M)(t.onClick,()=>i.onOpenChange(!1))}))});function tN(t){return t?"open":"closed"}let[tW,tU]=(0,p.k)("DialogTitleWarning",{contentName:tD,titleName:tI,docsSlug:"dialog"}),t_=t=>{let{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=t,a=(0,h.useRef)(null),l=(0,h.useRef)(null),[u=!1,c]=(0,v.T)({prop:r,defaultProp:i,onChange:o});return(0,h.createElement)(tw,{scope:e,triggerRef:a,contentRef:l,contentId:(0,m.M)(),titleId:(0,m.M)(),descriptionId:(0,m.M)(),open:u,onOpenChange:c,onOpenToggle:(0,h.useCallback)(()=>c(t=>!t),[c]),modal:s},n)},tz=tP,t$=t=>{let{__scopeDialog:e,forceMount:n,children:r,container:i}=t,o=tS(tE,e);return(0,h.createElement)(tA,{scope:e,forceMount:n},h.Children.map(r,t=>(0,h.createElement)(D.z,{present:n||o.open},(0,h.createElement)(R.h,{asChild:!0,container:i},t))))},tZ=tk,tH=tM,tY=tO,tG=tF,tX=tB},6093:function(t,e,n){n.d(e,{_:function(){return r}});function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}},1348:function(t,e,n){n.d(e,{M:function(){return v}});var r=n(4090),i=n(5526);function o(){let t=(0,r.useRef)(!1);return(0,i.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var s=n(1837),a=n(4561),l=n(2435);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(t){let{children:e,isPresent:n}=t,i=(0,r.useId)(),o=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:r,left:a}=s.current;if(n||!o.current||!t||!e)return;o.current.dataset.motionPopId=i;
17let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule('\n [data-motion-pop-id="'.concat(i,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(r,"px !important;\n left: ").concat(a,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[n]),r.createElement(u,{isPresent:n,childRef:o,sizeRef:s},r.cloneElement(e,{ref:o}))}let h=t=>{let{children:e,initial:n,isPresent:i,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:h}=t,f=(0,l.h)(d),p=(0,r.useId)(),m=(0,r.useMemo)(()=>({id:p,initial:n,isPresent:i,custom:s,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;o&&o()},register:t=>(f.set(t,!1),()=>f.delete(t))}),u?void 0:[i]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[i]),r.useEffect(()=>{i||f.size||!o||o()},[i]),"popLayout"===h&&(e=r.createElement(c,{isPresent:i},e)),r.createElement(a.O.Provider,{value:m},e)};function d(){return new Map}var f=n(3856),p=n(9908);let m=t=>t.key||"",v=t=>{var e;let{children:n,custom:a,initial:l=!0,onExitComplete:u,exitBeforeEnter:c,presenceAffectsLayout:d=!0,mode:v="sync"}=t;(0,p.k)(!c,"Replace exitBeforeEnter with mode='wait'");let g=(0,r.useContext)(f.p).forceRender||function(){let t=o(),[e,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,r.useCallback)(()=>s.Wi.postRender(i),[i]),e]}()[0],y=o(),b=function(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}(n),x=b,w=(0,r.useRef)(new Map).current,S=(0,r.useRef)(x),P=(0,r.useRef)(new Map).current,E=(0,r.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(t,e){t.forEach(t=>{let n=m(t);e.set(n,t)})}(b,P),S.current=x}),e=()=>{E.current=!0,P.clear(),w.clear()},(0,r.useEffect)(()=>()=>e(),[]),E.current)return r.createElement(r.Fragment,null,x.map(t=>r.createElement(h,{key:m(t),isPresent:!0,initial:!!l&&void 0,presenceAffectsLayout:d,mode:v},t)));x=[...x];let A=S.current.map(m),T=b.map(m),C=A.length;for(let t=0;t<C;t++){let e=A[t];-1!==T.indexOf(e)||w.has(e)||w.set(e,void 0)}return"wait"===v&&w.size&&(x=[]),w.forEach((t,e)=>{if(-1!==T.indexOf(e))return;let n=P.get(e);if(!n)return;let i=A.indexOf(e),o=t;o||(o=r.createElement(h,{key:m(n),isPresent:!1,onExitComplete:()=>{w.delete(e);let t=Array.from(P.keys()).filter(t=>!T.includes(t));if(t.forEach(t=>P.delete(t)),S.current=b.filter(n=>{let r=m(n);return r===e||t.includes(r)}),!w.size){if(!1===y.current)return;g(),u&&u()}},custom:a,presenceAffectsLayout:d,mode:v},n),w.set(e,o)),x.splice(i,0,o)}),x=x.map(t=>{let e=t.key;return w.has(e)?t:r.createElement(h,{key:m(t),isPresent:!0,presenceAffectsLayout:d,mode:v},t)}),r.createElement(r.Fragment,null,w.size?x:x.map(t=>(0,r.cloneElement)(t)))}},3856:function(t,e,n){n.d(e,{p:function(){return r}});let r=(0,n(4090).createContext)({})},4561:function(t,e,n){n.d(e,{O:function(){return r}});let r=(0,n(4090).createContext)(null)},1837:function(t,e,n){n.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return u}});var r=n(3393);class i{add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}constructor(){this.order=[],this.scheduled=new Set}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:l,steps:u}=function(t,e){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,e)=>(t[e]=function(t){let e=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,l={schedule:function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:i=>{if(o){s=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;n<r;n++){let r=e.order[n];r(i),a.has(r)&&(l.schedule(r),t())}o=!1,s&&(s=!1,l.process(i))}};return l}(()=>n=!0),t),{}),l=t=>a[t].process(s),u=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&e&&(r=!1,t(u))},c=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:o.reduce((t,e)=>{let r=a[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||c(),r.schedule(t,e,i)},t},{}),cancel:t=>
17o.forEach(e=>a[e].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},290:function(t,e,n){let r;n.d(e,{E:function(){return i$}});var i,o,s=n(4090);let a=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),l=(0,s.createContext)({});var u=n(4561),c=n(5526);let h=(0,s.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),f="data-"+d("framerAppearId");function p(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function b(t){return v(t.animate)||y.some(e=>m(t[e]))}function x(t){return!!(b(t)||t.variants)}function w(t){return Array.isArray(t)?t.join(" "):t}let S={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"]},P={};for(let t in S)P[t]={isEnabled:e=>S[t].some(t=>!!e[t])};var E=n(1702),A=n(3856);let T=(0,s.createContext)({}),C=Symbol.for("motionComponentSymbol"),k=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function R(t){if("string"!=typeof t||t.includes("-"));else if(k.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let D={},M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],V=new Set(M);function L(t,e){let{layout:n,layoutId:r}=e;return V.has(t)||t.startsWith("origin")||(n||void 0!==r)&&(!!D[t]||"opacity"===t)}let j=t=>!!(t&&t.getVelocity),I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=M.length,F=t=>e=>"string"==typeof e&&e.startsWith(t),B=F("--"),N=F("var(--"),W=(t,e)=>e&&"number"==typeof t?e.transform(t):t,U=(t,e,n)=>Math.min(Math.max(n,t),e),_={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},z={..._,transform:t=>U(0,1,t)},$={..._,default:1},Z=t=>Math.round(1e5*t)/1e5,H=/(-)?([\d]*\.?[\d])+/g,Y=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function X(t){return"string"==typeof t}let q=t=>({test:e=>X(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),K=q("deg"),J=q("%"),Q=q("px"),tt=q("vh"),te=q("vw"),tn={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(100*t)},tr={..._,transform:Math.round},ti={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:K,skewX:K,skewY:K,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:z,originX:tn,originY:tn,originZ:Q,zIndex:tr,fillOpacity:z,strokeOpacity:z,numOctaves:tr};function to(t,e,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=t,l=!1,u=!1,c=!0;for(let t in e){let n=e[t];if(B(t)){o[t]=n;continue}let r=ti[t],h=W(n,r);if(V.has(t)){if(l=!0,s[t]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=h):i[t]=h}if(!e.transform&&(l||r?i.transform=function(t,e,n,r){let{enableHardwareAcceleration:i=!0,allowTransformNone:o=!0}=e,s="";for(let e=0;e<O;e++){let n=M[e];if(void 0!==t[n]){let e=I[n]||n;s+="".concat(e,"(").concat(t[n],") ")}}return i&&!t.z&&(s+="translateZ(0)"),s=s.trim(),r?s=r(t,n?"":s):o&&n&&(s="none"),s}(t.transform,n,c,r):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin="".concat(t," ").concat(e," ").concat(n)}}let ts=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ta(t,e,n){for(let r in e)j(e[r])||L(r,n)||(t[r]=e[r])}let tl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function tu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||tl.has(t)}let tc=t=>!tu(t);try{(i=require("@emotion/is-prop-valid").default)&&(tc=t=>t.startsWith("on")?!tu(t):i(t))}catch(t){}function th(t,e,n){return"string"==typeof t?t:Q.transform(e+n*t)}let td={offset:"stroke-dashoffset",array:"stroke-dasharray"},tf={offset:"strokeDashoffset",array:"strokeDasharray"};function tp(t,e,n,r,i){let{attrX:o,attrY:s,attrScale:a,originX:l,originY:u,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...f}=e;
17if(to(t,f,n,i),r){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m,dimensions:v}=t;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(void 0!==l||void 0!==u||m.transform)&&(m.transformOrigin=function(t,e,n){let r=th(e,t.x,t.width),i=th(n,t.y,t.height);return"".concat(r," ").concat(i)}(v,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==o&&(p.x=o),void 0!==s&&(p.y=s),void 0!==a&&(p.scale=a),void 0!==c&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let o=i?td:tf;t[o.offset]=Q.transform(-r);let s=Q.transform(e),a=Q.transform(n);t[o.array]="".concat(s," ").concat(a)}(p,c,h,d,!1)}let tm=()=>({...ts(),attrs:{}}),tv=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tg(t,e,n,r){let{style:i,vars:o}=e;for(let e in Object.assign(t.style,i,r&&r.getProjectionStyles(n)),o)t.style.setProperty(e,o[e])}let ty=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 tb(t,e,n,r){for(let n in tg(t,e,void 0,r),e.attrs)t.setAttribute(ty.has(n)?n:d(n),e.attrs[n])}function tx(t,e){let{style:n}=t,r={};for(let i in n)(j(n[i])||e.style&&j(e.style[i])||L(i,t))&&(r[i]=n[i]);return r}function tw(t,e){let n=tx(t,e);for(let r in t)(j(t[r])||j(e[r]))&&(n[-1!==M.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}function tS(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var tP=n(2435);let tE=t=>Array.isArray(t),tA=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tT=t=>tE(t)?t[t.length-1]||0:t;function tC(t){let e=j(t)?t.get():t;return tA(e)?e.toValue():e}let tk=t=>(e,n)=>{let r=(0,s.useContext)(l),i=(0,s.useContext)(u.O),o=()=>(function(t,e,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:o,onMount:s}=t,a={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=tC(o[t]);let{initial:s,animate:a}=t,l=b(t),u=x(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;return h&&"boolean"!=typeof h&&!v(h)&&(Array.isArray(h)?h:[h]).forEach(e=>{let n=tS(t,e);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(e,n,r,i),renderState:o()};return s&&(a.mount=t=>s(e,t,a)),a})(t,e,r,i);return n?o():(0,tP.h)(o)};var tR=n(1837);let tD={useVisualState:tk({scrapeMotionValuesFromProps:tw,createRenderState:tm,onMount:(t,e,n)=>{let{renderState:r,latestValues:i}=n;tR.Wi.read(()=>{try{r.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}}),tR.Wi.render(()=>{tp(r,i,{enableHardwareAcceleration:!1},tv(e.tagName),t.transformTemplate),tb(e,r)})}})},tM={useVisualState:tk({scrapeMotionValuesFromProps:tx,createRenderState:ts})};function tV(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tL=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tj(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tI=t=>e=>tL(e)&&t(e,tj(e));function tO(t,e,n,r){return tV(t,e,tI(n),r)}let tF=(t,e)=>n=>e(t(n)),tB=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(tF)};function tN(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tW=tN("dragHorizontal"),tU=tN("dragVertical");function t_(t){let e=!1;if("y"===t)e=tU();else if("x"===t)e=tW();else{let t=tW(),n=tU();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tz(){let t=t_(!0);return!t||(t(),!1)}class t${update(){}constructor(t){this.isMounted=!1,this.node=t}}function tZ(t,e){let n="onHover"+(e?"Start":"End");return tO(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.type||tz())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[n]&&tR.Wi.update(()=>o[n](r,i))},{passive:!t.getProps()[n]})}class tH extends t${mount(){this.unmount=tB(tZ(this.node,!0),tZ(this.node,!1))}unmount(){}}class tY extends t${onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tB(tV(this.node.current,"focus",()=>this.onFocus()),tV(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}
17let tG=(t,e)=>!!e&&(t===e||tG(t,e.parentElement));var tX=n(3393);function tq(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tj(n))}class tK extends t${startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&tR.Wi.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tz()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&tR.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=tO(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tV(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tB(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}constructor(){super(...arguments),this.removeStartListeners=tX.Z,this.removeEndListeners=tX.Z,this.removeAccessibleListeners=tX.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=tO(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();tR.Wi.update(()=>{tG(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),i=tO(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tB(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tV(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tV(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tq("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&tR.Wi.update(()=>n(t,e))})}),tq("down",(t,e)=>{this.startPress(t,e)}))}),e=tV(this.node.current,"blur",()=>{this.isPressing&&tq("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tB(t,e)}}}let tJ=new WeakMap,tQ=new WeakMap,t0=t=>{let e=tJ.get(t.target);e&&e(t)},t1=t=>{t.forEach(t0)},t2={some:0,all:1};class t3 extends t${startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t2[r]};return function(t,e,n){let r=function(t){let{root:e,...n}=t,r=e||document;tQ.has(r)||tQ.set(r,{});let i=tQ.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(t1,{root:e,...n})),i[o]}(e);return tJ.set(t,n),r.observe(t),()=>{tJ.delete(t),r.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}function t5(t,e){if(!Array.isArray(e))return!1;let 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}function t4(t,e,n){let r=t.getProps();return tS(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}var t9=n(9908);let t6=t=>1e3*t,t8=t=>t/1e3,t7={current:!1},et=t=>Array.isArray(t)&&"number"==typeof t[0],ee=t=>{let[e,n,r,i]=t;return"cubic-bezier(".concat(e,", ").concat(n,", ").concat(r,", ").concat(i,")")},en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ee([0,.65,.55,1]),circOut:ee([.55,0,1,.45]),backIn:ee([.31,.01,.66,-.59]),backOut:ee([.33,1.53,.69,.99])},er=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ei(t,e,n,r){if(t===e&&n===r)return tX.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=er(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:er(i(t),e,r)}let eo=ei(.42,0,1,1),es=ei(0,0,.58,1),ea=ei(.42,0,.58,1),el=t=>Array.isArray(t)&&"number"!=typeof t[0],eu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ec=t=>e=>1-t(1-e),eh=t=>1-Math.sin(Math.acos(t)),ed=ec(eh),ef=eu(ed),ep=ei(.33,1.53,.69,.99),em=ec(ep),ev=eu(em),eg={linear:tX.Z,easeIn:eo,easeInOut:ea,easeOut:es,circIn:eh,circInOut:ef,cir
17cOut:ed,backIn:em,backInOut:ev,backOut:ep,anticipate:t=>(t*=2)<1?.5*em(t):.5*(2-Math.pow(2,-10*(t-1)))},ey=t=>{if(Array.isArray(t)){(0,t9.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return ei(e,n,r,i)}return"string"==typeof t?((0,t9.k)(void 0!==eg[t],"Invalid easing type '".concat(t,"'")),eg[t]):t},eb=(t,e)=>n=>!!(X(n)&&G.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ex=(t,e,n)=>r=>{if(!X(r))return r;let[i,o,s,a]=r.match(H);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ew=t=>U(0,255,t),eS={..._,transform:t=>Math.round(ew(t))},eP={test:eb("rgb","red"),parse:ex("red","green","blue"),transform:t=>{let{red:e,green:n,blue:r,alpha:i=1}=t;return"rgba("+eS.transform(e)+", "+eS.transform(n)+", "+eS.transform(r)+", "+Z(z.transform(i))+")"}},eE={test:eb("#"),parse:function(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}},transform:eP.transform},eA={test:eb("hsl","hue"),parse:ex("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:i=1}=t;return"hsla("+Math.round(e)+", "+J.transform(Z(n))+", "+J.transform(Z(r))+", "+Z(z.transform(i))+")"}},eT={test:t=>eP.test(t)||eE.test(t)||eA.test(t),parse:t=>eP.test(t)?eP.parse(t):eA.test(t)?eA.parse(t):eE.parse(t),transform:t=>X(t)?t:t.hasOwnProperty("red")?eP.transform(t):eA.transform(t)},eC=(t,e,n)=>-n*t+n*e+t;function ek(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let eR=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},eD=[eE,eP,eA],eM=t=>eD.find(e=>e.test(t));function eV(t){let e=eM(t);(0,t9.k)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."));let n=e.parse(t);return e===eA&&(n=function(t){let{hue:e,saturation:n,lightness:r,alpha:i}=t;e/=360,r/=100;let o=0,s=0,a=0;if(n/=100){let t=r<.5?r*(1+n):r+n-r*n,i=2*r-t;o=ek(i,t,e+1/3),s=ek(i,t,e),a=ek(i,t,e-1/3)}else o=s=a=r;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(n)),n}let eL=(t,e)=>{let n=eV(t),r=eV(e),i={...n};return t=>(i.red=eR(n.red,r.red,t),i.green=eR(n.green,r.green,t),i.blue=eR(n.blue,r.blue,t),i.alpha=eC(n.alpha,r.alpha,t),eP.transform(i))}
17,ej={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tX.Z},eI={regex:Y,countKey:"Colors",token:"${c}",parse:eT.parse},eO={regex:H,countKey:"Numbers",token:"${n}",parse:_.parse};function eF(t,e){let{regex:n,countKey:r,token:i,parse:o}=e,s=t.tokenised.match(n);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(n,i),t.values.push(...s.map(o)))}function eB(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&eF(n,ej),eF(n,eI),eF(n,eO),n}function eN(t){return eB(t).values}function eW(t){let{values:e,numColors:n,numVars:r,tokenised:i}=eB(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=i<r?e.replace(ej.token,t[i]):i<r+n?e.replace(eI.token,eT.transform(t[i])):e.replace(eO.token,Z(t[i]));return e}}let eU=t=>"number"==typeof t?0:t,e_={test:function(t){var e,n;return isNaN(t)&&X(t)&&((null===(e=t.match(H))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Y))||void 0===n?void 0:n.length)||0)>0},parse:eN,createTransformer:eW,getAnimatableNone:function(t){let e=eN(t);return eW(t)(e.map(eU))}},ez=(t,e)=>n=>"".concat(n>0?e:t);function e$(t,e){return"number"==typeof t?n=>eC(t,e,n):eT.test(t)?eL(t,e):t.startsWith("var(")?ez(t,e):eY(t,e)}let eZ=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>e$(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},eH=(t,e)=>{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=e$(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},eY=(t,e)=>{let n=e_.createTransformer(e),r=eB(t),i=eB(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tB(eZ(r.values,i.values),n):((0,t9.K)(!0,"Complex values '".concat(t,"' and '").concat(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.")),ez(t,e))},eG=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},eX=(t,e)=>n=>eC(t,e,n);function eq(t,e){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.length;if((0,t9.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return eT.test(t)?eL:eY;else if(Array.isArray(t))return eZ;else if("object"==typeof t)return eH;return eX}(t[0]),o=t.length-1;for(let n=0;n<o;n++){let o=i(t[n],t[n+1]);e&&(o=tB(Array.isArray(e)?e[n]||tX.Z:e,o)),r.push(o)}return r}(e,r,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=eG(t[n],t[n+1],e);return s[n](r)};return n?e=>l(U(t[0],t[o-1],e)):l}function eK(t){let{duration:e=300,keyframes:n,times:r,ease:i="easeInOut"}=t,o=el(i)?i.map(ey):ey(i),s={done:!1,value:n[0]},a=eq((r&&r.length===n.length?r:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=eG(0,e,r);t.push(eC(n,1,i))}}(e,t.length-1),e}(n)).map(t=>t*e),n,{ease:Array.isArray(o)?o:n.map(()=>o||ea).splice(0,n.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}function eJ(t,e,n){var r,i;let o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?1e3/i*r:0}function eQ(t,e){return t*Math.sqrt(1-e*e)}let e0=["duration","bounce"],e1=["stiffness","damping","mass"];function e2(t,e){return e.some(e=>void 0!==t[e])}function e3(t){let e,{keyframes:n,restDelta:r,restSpeed:i,...o}=t,s=n[0],a=n[n.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,velocity:d,duration:f,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e2(t,e1)&&e2(t,e0)){let n=function(t){let e,n,{duration:r=800,bounce:i=.25,velocity:o=0,mass:s=1}=t;(0,t9.K)(r<=t6(10),"Spring duration must be 10 seconds or less");let a=1-i;a=U(.05,1,a),r=U(.01,10,t8(r)),a<1?(e=t=>{let e=t*a,n=e*r;return .001-(e-o)/eQ(t,a)*Math.exp(-n)},n=t=>{let n=t*a*r,i=Math.pow(a,2)*Math.pow(t,2)*r,s=eQ(Math.pow(t,2),a);return(n*o+o-i)*Math.exp(-n)*(-e(t)+.001>0?-1:1)/s}):(e=t=>-.001+Math.exp(-t*r)*((t-o)*r+1),n=t=>r*r*(o-t)*Math.exp(-t*r));let l=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(e,n,5/r);if(r=t6(r),isNaN(l))return{stiffness:100,damping:10,duration:r};{let t=Math.pow(l,2)*s;
17return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:r}}}(t);(e={...e,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(o),m=d?-t8(d):0,v=c/(2*Math.sqrt(u*h)),g=a-s,y=t8(Math.sqrt(u/h)),b=5>Math.abs(g);if(i||(i=b?.01:2),r||(r=b?.005:.5),v<1){let t=eQ(y,v);e=e=>a-Math.exp(-v*y*e)*((m+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)e=t=>a-Math.exp(-y*t)*(g+(m+y*g)*t);else{let t=y*Math.sqrt(v*v-1);e=e=>{let n=Math.exp(-v*y*e),r=Math.min(t*e,300);return a-n*((m+v*y*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}return{calculatedDuration:p&&f||null,next:t=>{let n=e(t);if(p)l.done=t>=f;else{let o=m;0!==t&&(o=v<1?eJ(e,t,n):0);let s=Math.abs(o)<=i,u=Math.abs(a-n)<=r;l.done=s&&u}return l.value=l.done?a:n,l}}}function e5(t){let e,n,{keyframes:r,velocity:i=0,power:o=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:h,restDelta:d=.5,restSpeed:f}=t,p=r[0],m={done:!1,value:p},v=t=>void 0!==c&&t<c||void 0!==h&&t>h,g=t=>void 0===c?h:void 0===h?c:Math.abs(c-t)<Math.abs(h-t)?c:h,y=o*i,b=p+y,x=void 0===u?b:u(b);x!==b&&(y=x-p);let w=t=>-y*Math.exp(-t/s),S=t=>x+w(t),P=t=>{let e=w(t),n=S(t);m.done=Math.abs(e)<=d,m.value=m.done?x:n},E=t=>{v(m.value)&&(e=t,n=e3({keyframes:[m.value,g(m.value)],velocity:eJ(S,t,m.value),damping:a,stiffness:l,restDelta:d,restSpeed:f}))};return E(0),{calculatedDuration:null,next:t=>{let r=!1;return(n||void 0!==e||(r=!0,P(t),E(t)),void 0!==e&&t>e)?n.next(t-e):(r||P(t),m)}}}let e4=t=>{let e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>tR.Wi.update(e,!0),stop:()=>(0,tR.Pn)(e),now:()=>tR.frameData.isProcessing?tR.frameData.timestamp:performance.now()}};function e9(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let e6={decay:e5,inertia:e5,tween:eK,keyframes:eK,spring:e3};function e8(t){let e,n,r,i,o,{autoplay:s=!0,delay:a=0,driver:l=e4,keyframes:u,type:c="keyframes",repeat:h=0,repeatDelay:d=0,repeatType:f="loop",onPlay:p,onStop:m,onComplete:v,onUpdate:g,...y}=t,b=1,x=!1,w=()=>{n=new Promise(t=>{e=t})};w();let S=e6[c]||eK;S!==eK&&"number"!=typeof u[0]&&(i=eq([0,100],u,{clamp:!1}),u=[0,100]);let P=S({...y,keyframes:u});"mirror"===f&&(o=S({...y,keyframes:[...u].reverse(),velocity:-(y.velocity||0)}));let E="idle",A=null,T=null,C=null;null===P.calculatedDuration&&h&&(P.calculatedDuration=e9(P));let{calculatedDuration:k}=P,R=1/0,D=1/0;null!==k&&(D=(R=k+d)*(h+1)-d);let M=0,V=t=>{if(null===T)return;b>0&&(T=Math.min(T,t)),b<0&&(T=Math.min(t-D/b,T));let e=(M=null!==A?A:Math.round(t-T)*b)-a*(b>=0?1:-1),n=b>=0?e<0:e>D;M=Math.max(e,0),"finished"===E&&null===A&&(M=D);let r=M,s=P;if(h){let t=M/R,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--;let i=!!((e=Math.min(e,h+1))%2);i&&("reverse"===f?(n=1-n,d&&(n-=d/R)):"mirror"===f&&(s=o));let a=U(0,1,n);M>D&&(a="reverse"===f&&i?1:0),r=a*R}let l=n?{done:!1,value:u[0]}:s.next(r);i&&(l.value=i(l.value));let{done:c}=l;n||null===k||(c=b>=0?M>=D:M<=0);let p=null===A&&("finished"===E||"running"===E&&c);return g&&g(l.value),p&&I(),l},L=()=>{r&&r.stop(),r=void 0},j=()=>{E="idle",L(),e(),w(),T=C=null},I=()=>{E="finished",v&&v(),L(),e()},O=()=>{if(x)return;r||(r=l(V));let t=r.now();p&&p(),null!==A?T=t-A:T&&"finished"!==E||(T=t),"finished"===E&&w(),C=T,A=null,E="running",r.start()};s&&O();let F={then:(t,e)=>n.then(t,e),get time(){return t8(M)},set time(newTime){M=newTime=t6(newTime),null===A&&r&&0!==b?T=r.now()-newTime/b:A=newTime},get duration(){return t8(null===P.calculatedDuration?e9(P):P.calculatedDuration)},get speed(){return b},set speed(newSpeed){if(newSpeed===b||!r)return;b=newSpeed,F.time=t8(M)},get state(){return E},play:O,pause:()=>{E="paused",A=M},stop:()=>{x=!0,"idle"!==E&&(E="idle",m&&m(),j())},cancel:()=>{null!==C&&V(C),j()},complete:()=>{E="finished"},sample:t=>(T=0,V(t))};return F}let e7=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),nt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ne=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&en[e]||et(e)||Array.isArray(e)&&e.every(t))}(e.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(t,e)=>{let{keyframes:n}=e;return n.length>2?ni:V.has(t)?t.startsWith("scale")?nr(n[1]):nn:no},na=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e_.test(e)||"0"===e)&&!e.startsWith("url(")),nl=new Set(["brightness","contrast","saturate","opacity"]);function nu(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(H)||[];if(!r)return t;let i=n.replace(r,""),o=nl.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let nc=/([a-z-]*)\(.*?\)/g,nh={...e_,getAnimatableNone:t=>{let e=t.match(nc);return e?e.map(nu).join(" "):t}},nd={...ti,color:eT,backgroundColor:eT,outlineColor:eT,fill:eT,stroke:eT,borderColor:eT,borderTopColor:eT,borderRightColor:eT,borderBottomColor:eT,borderLeftColor:eT,filter:nh,WebkitFilter:nh},nf=t=>nd[t];function np(t,e){let n=nf(t);return n!==nh&&(n=e_),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let nm=t=>/^0[^.\s]+$/.test(t);function nv(t,e){return t[e]||t.default||t}let ng=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let o=nv(r,t)||{},s=o.delay||r.delay||0,{elapsed:a=0}=r;a-=t6(s);let l=function(t,e,n,r){let i,o;let s=na(e,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<i.length;t++){var u;null===i[t]&&(i[t]=0===t?a:i[t-1]),("number"==typeof(u=i[t])?0===u:null!==u?"none"===u||"0"===u||nm(u):void 0)&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(o=i[t])}if(s&&l.length&&o)for(let t=0;t<l.length;t++)i[l[t]]=np(e,o);return i}(e,t,n,o),u=l[0],c=l[l.length-1],h=na(t,u),d=na(t,c);(0,t9.K)(h===d,"You are trying to animate ".concat(t,' from "').concat(u,'" to "').concat(c,'". ').concat(u," is not an animatable value - to enable this animation set ").concat(u," to a value animatable to ").concat(c," via the `style` property."));let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function(t){let{when:e,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:c,...h}=t;return!!Object.keys(h).length}(o)&&(f={...f,...ns(t,f)}),f.duration&&(f.duration=t6(f.duration)),f.repeatDelay&&(f.repeatDelay=t6(f.repeatDelay)),!h||!d||t7.current||!1===o.type)return function(t){let{keyframes:e,delay:n,onUpdate:r,onComplete:i}=t,o=()=>(r&&r(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:tX.Z,pause:tX.Z,stop:tX.Z,then:t=>(t(),Promise.resolve()),cancel:tX.Z,complete:tX.Z});return n?e8({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(t7.current?{...f,delay:0}:f);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
17date){let n=function(t,e,n){let r,i,{onUpdate:o,onComplete:s,...a}=n;if(!(e7()&&nt.has(e)&&!a.repeatDelay&&"mirror"!==a.repeatType&&0!==a.damping&&"inertia"!==a.type))return!1;let l=!1,u=()=>{i=new Promise(t=>{r=t})};u();let{keyframes:c,duration:h=300,ease:d,times:f}=a;if(ne(e,a)){let t=e8({...a,repeat:0,delay:0}),e={done:!1,value:c[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,c=n,h=r-10,d="linear"}let p=function(t,e,n){let{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u={[e]:n};l&&(u.offset=l);let c=function t(e){if(e)return et(e)?ee(e):Array.isArray(e)?e.map(t):en[e]}(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,c,{...a,duration:h,ease:d,times:f});a.syncStart&&(p.startTime=tR.frameData.isProcessing?tR.frameData.timestamp:document.timeline?document.timeline.currentTime:performance.now());let m=()=>p.cancel(),v=()=>{tR.Wi.update(m),r(),u()};return p.onfinish=()=>{t.set(function(t,e){let{repeat:n,repeatType:r="loop"}=e,i=n&&"loop"!==r&&n%2==1?0:t.length-1;return t[i]}(c,a)),s&&s(),v()},{then:(t,e)=>i.then(t,e),attachTimeline:t=>(p.timeline=t,p.onfinish=null,tX.Z),get time(){return t8(p.currentTime||0)},set time(newTime){p.currentTime=t6(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return t8(h)},play:()=>{l||(p.play(),(0,tR.Pn)(m))},pause:()=>p.pause(),stop:()=>{if(l=!0,"idle"===p.playState)return;let{currentTime:e}=p;if(e){let n=e8({...a,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}v()},complete:()=>p.finish(),cancel:v}}(e,t,f);if(n)return n}return e8(f)}};function ny(t){return!!(j(t)&&t.add)}let nb=t=>/^\-?\d*\.?\d+$/.test(t);function nx(t,e){-1===t.indexOf(e)&&t.push(e)}function nw(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class nS{add(t){return nx(this.subscriptions,t),()=>nw(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let nP=t=>!isNaN(parseFloat(t)),nE={current:void 0};class nA{onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new nS);let n=this.events[t].add(e);return"change"===t?()=>{n(),tR.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nE.current&&nE.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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()}constructor(t,e={}){var n=this;this.version="10.16.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];n.prev=n.current,n.current=t;let{delta:r,timestamp:i}=tR.frameData;n.lastUpdated!==i&&(n.timeDelta=r,n.lastUpdated=i,tR.Wi.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.events.change&&n.events.change.notify(n.current),n.events.velocityChange&&n.events.velocityChange.notify(n.getVelocity()),e&&n.events.renderRequest&&n.events.renderRequest.notify(n.current)},this.scheduleVelocityCheck=()=>tR.Wi.postRender(this.velocityCheck),this.velocityCheck=t=>{let{timestamp:e}=t;e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nP(this.current),this.owner=e.owner}}function nT(t,e){return new nA(t,e)}let nC=t=>e=>e.test(t),nk=[_,Q,J,K,te,tt,{test:t=>"auto"===t,parse:t=>t}],nR=t=>nk.find(nC(t)),nD=[...nk,eT,e_],nM=t=>nD.find(nC(t));function nV(t,e){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(o=r);let u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){let r=t.getValue(e),i=a[e];if(!r||void 0===i||c&&function(t,e){let{protectedKeys:n,needsAnimating:r}=t,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}(c,e))continue;let s={delay:n,elapsed:0,...nv(o||{},e)},h=!0;if(window.HandoffAppearAnimations&&!r.hasAnimated){let n=t.getProps()[f];n&&(h=!1,s.elapsed=window.HandoffAppearAnimations(n,e,r,tR.Wi),s.syncStart=!0)}let d=h&&i===r.get();if("spring"===s.type&&(r.getVelocity()||s.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(ng(e,r,i,t.shouldReduceMotion&&V.has(e)?{type:!1}:s));let p=r.animation;ny(l)&&(l.add(e),p.then(()=>l.remove(e))),u.push(p)}return s&&Promise.all(u).then(()=>{s&&function(t,e){let n=t4(t,e),{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let e in o={...o,...r}){let n=tT(o[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nT(n))}}(t,s)}),u}function nL(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t4(t,e,n.custom),{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nV(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0,s=[],a=(t.variantChildren.size-1)*r,l=1===i?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*r}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return a-t*r};
17return Array.from(t.variantChildren).sort(nj).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(nL(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function nj(t,e){return t.sortNodePosition(e)}let nI=[...g].reverse(),nO=g.length;function nF(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nB extends t${updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),v(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:n,options:r}=e;return function(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nL(t,e,r)));else if("string"==typeof e)n=nL(t,e,r);else{let i="function"==typeof e?t4(t,e,r.custom):e;n=Promise.all(nV(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}(t,n,r)})),n={animate:nF(!0),whileInView:nF(),whileHover:nF(),whileTap:nF(),whileDrag:nF(),whileFocus:nF(),exit:nF()},r=!0,i=(e,n)=>{let r=t4(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set,h={},d=1/0;for(let e=0;e<nO;e++){var f;let p=nI[e],g=n[p],y=void 0!==a[p]?a[p]:l[p],b=m(y),x=p===s?g.isActive:null;!1===x&&(d=e);let w=y===l[p]&&y!==a[p]&&b;if(w&&r&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...h},!g.isActive&&null===x||!y&&!g.prevProp||v(y)||"boolean"==typeof y)continue;let S=(f=g.prevProp,"string"==typeof y?y!==f:!!Array.isArray(y)&&!t5(y,f)),P=S||p===s&&g.isActive&&!w&&b||e>d&&b,E=Array.isArray(y)?y:[y],A=E.reduce(i,{});!1===x&&(A={});let{prevResolvedValues:T={}}=g,C={...T,...A},k=t=>{P=!0,c.delete(t),g.needsAnimating[t]=!0};for(let t in C){let e=A[t],n=T[t];h.hasOwnProperty(t)||(e!==n?tE(e)&&tE(n)?!t5(e,n)||S?k(t):g.protectedKeys[t]=!0:void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=A,g.isActive&&(h={...h,...A}),r&&t.blockInitialAnimation&&(P=!1),P&&!w&&u.push(...E.map(t=>({animation:t,options:{type:p,...o}})))}if(c.size){let e={};
17c.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let p=!!u.length;return r&&!1===a.initial&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let a=o(i,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}}let nN=0;class nW extends t${update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=nN++}}let nU=(t,e)=>Math.abs(t-e);class n_{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tR.Pn)(this.updatePoint)}constructor(t,e,{transformPagePoint:n,contextWindow:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nZ(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(nU(t.x,e.x)**2+nU(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=tR.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nz(e,this.transformPagePoint),tR.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:r}=this.handlers,i=nZ("pointercancel"===t.type?this.lastMoveEventInfo:nz(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!tL(t))return;this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let i=nz(tj(t),this.transformPagePoint),{point:o}=i,{timestamp:s}=tR.frameData;this.history=[{...o,timestamp:s}];let{onSessionStart:a}=e;a&&a(t,nZ(i,this.history)),this.removeListeners=tB(tO(this.contextWindow,"pointermove",this.handlePointerMove),tO(this.contextWindow,"pointerup",this.handlePointerUp),tO(this.contextWindow,"pointercancel",this.handlePointerUp))}}function nz(t,e){return e?{point:e(t.point)}:t}function n$(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nZ(t,e){let{point:n}=t;return{point:n,delta:n$(n,nH(e)),offset:n$(n,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nH(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>t6(.1)));)n--;if(!r)return{x:0,y:0};let o=t8(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function nH(t){return t[t.length-1]}function nY(t){return t.max-t.min}function nG(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(t-e)<=n}function nX(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=r,t.originPoint=eC(e.min,e.max,t.origin),t.scale=nY(n)/nY(e),(nG(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=eC(n.min,n.max,t.origin)-t.originPoint,(nG(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nq(t,e,n,r){nX(t.x,e.x,n.x,r?r.originX:void 0),nX(t.y,e.y,n.y,r?r.originY:void 0)}function nK(t,e,n){t.min=n.min+e.min,t.max=t.min+nY(e)}function nJ(t,e,n){t.min=e.min-n.min,t.max=t.min+nY(e)}function nQ(t,e,n){nJ(t.x,e.x,n.x),nJ(t.y,e.y,n.y)}function n0(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function n1(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 n2(t,e,n){return{min:n3(t,e),max:n3(t,n)}}function n3(t,e){return"number"==typeof t?t:t[e]||0}let n5=()=>({translate:0,scale:1,origin:0,originPoint:0}),n4=()=>({x:n5(),y:n5()}),n9=()=>({min:0,max:0}),n6=()=>({x:n9(),y:n9()});function n8(t){return[t("x"),t("y")]}function n7(t){let{top:e,left:n,right:r,bottom:i}=t;return{x:{min:n,max:r},y:{min:e,max:i}}}function rt(t){return void 0===t||1===t}function re(t){let{scale:e,scaleX:n,scaleY:r}=t;return!rt(e)||!rt(n)||!rt(r)}function rn(t){return re(t)||rr(t)||t.z||t.rotate||t.rotateX||t.rotateY}function rr(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function ri(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function ro(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;t.min=ri(t.min,e,n,r,i),t.max=ri(t.max,e,n,r,i)}function rs(t,e){let{x:n,y:r}=e;ro(t.x,n.translate,n.scale,n.originPoint),ro(t.y,r.translate,r.scale,r.originPoint)}function ra(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function rl(t,e){t.min=t.min+e,t.max=t.max+e}function ru(t,e,n){let[r,i,o]=n,s=void 0!==e[o]?e[o]:.5,a=eC(t.min,t.max,s);ro(t,e[r],e[i],a,e.scale)}let rc=["x","scaleX","originX"],rh=["y","scaleY","originY"];function rd(t,e){ru(t.x,e,rc),ru(t.y,e,rh)}function rf(t,e){return n7(function(t,e){if(!e)return t;let 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}}(t.getBoundingClientRect(),e))}let rp=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},rm=new WeakMap;class rv{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new n_(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(tj(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t_(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n8(t=>{let e=this.getAxisMotionValue(t).get()||0;if(J.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nY(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&tR.Wi.update(()=>i(t,e),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:rp(this.visualElement)}))}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&tR.Wi.update(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!rg(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:r,max:i}=e;return void 0!==r&&t<r?t=n?eC(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?eC(i,t,n.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,e){let{top:n,left:r,bottom:i,right:o}=e;return{x:n0(t.x,r,o),y:n0(t.y,n,i)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:n2(t,"left","right"),y:n2(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n8(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let r=e.current;(0,t9.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=rf(t,n),{scroll:i}=e;return i&&(rl(r.x,i.offset.x),rl(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:n1((t=i.layout.layoutBox).x,o.x),y:n1(t.y,o.y)};if(n){let t=n(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=n7(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n8(s=>{if(!rg(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(ng(t,n,0,e))}stopAnimation(){n8(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){n8(e=>{let{drag:n}=this.getProps();if(!rg(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-eC(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;
17if(!p(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n8(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=nY(t),i=nY(e);return i>r?n=eG(e.min,e.max-r,t.min):r>i&&(n=eG(t.min,t.max-i,e.min)),U(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n8(e=>{if(!rg(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(eC(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;rm.set(this.visualElement,this);let t=tO(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tV(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(n8(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n6(),this.visualElement=t}}function rg(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class ry extends t${mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tX.Z}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=tX.Z,this.removeListeners=tX.Z,this.controls=new rv(t)}}let rb=t=>(e,n)=>{t&&tR.Wi.update(()=>t(e,n))};class rx extends t${onPointerDown(t){this.session=new n_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rp(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rb(t),onStart:rb(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&tR.Wi.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tO(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tX.Z}}let rw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rP={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Q.test(t))return t;t=parseFloat(t)}let n=rS(t,e.target.x),r=rS(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}};class rE extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(D,rT),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||tR.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rA(t){let[e,n]=function(){let t=(0,s.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,s.useId)();return(0,s.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,s.useContext)(A.p);return s.createElement(rE,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(T),isPresent:e,safeToRemove:n})}let rT={borderRadius:{...rP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rP,borderTopRightRadius:rP,borderBottomLeftRadius:rP,borderBottomRightRadius:rP,boxShadow:{correct:(t,e)=>{let{treeScale:n,projectionDelta:r}=e,i=e_.parse(t);if(i.length>5)return t;let o=e_.createTransformer(t),s="number"!=typeof i[0]?1:0,a=r.x.scale*n.x,l=r.y.scale*n.y;i[0+s]/=a,i[1+s]/=l;let u=eC(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=u),"number"==typeof i[3+s]&&(i[3+s]/=u),o(i)}}},rC=["TopLeft","TopRight","BottomLeft","BottomRight"],rk=rC.length,rR=t=>"string"==typeof t?parseFloat(t):t,rD=t=>"number"==typeof t||Q.test(t);function rM(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rV=rj(0,.5,ed),rL=rj(.5,.95,tX.Z);function rj(t,e,n){return r=>r<t?0:r>e?1:n(eG(t,e,r))}function rI(t,e){t.min=e.min,t.max=e.max}function rO(t,e){rI(t.x,e.x),rI(t.y,e.y)}function rF(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function rB(t,e,n,r,i){let[o,s,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(J.test(e)&&(e=parseFloat(e),e=eC(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eC(o.min,o.max,r);t===o&&(a-=e),t.min=rF(t.min,e,n,a,i),t.max=rF(t.max,e,n,a,i)}(t,e[o],e[s],e[a],e.scale,r,i)}let rN=["x","scaleX","originX"],rW=["y","scaleY","originY"];function rU(t,e,n,r){rB(t.x,e,rN,n?n.x:void 0,r?r.x:void 0),rB(t.y,e,rW,n?n.y:void 0,r?r.y:void 0)}function r_(t){return 0===t.translate&&1===t.scale}
17function rz(t){return r_(t.x)&&r_(t.y)}function r$(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rZ(t){return nY(t.x)/nY(t.y)}class rH{add(t){nx(this.members,t),t.scheduleRender()}remove(t){if(nw(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}function rY(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r="translate3d(".concat(i,"px, ").concat(o,"px, 0) ")),(1!==e.x||1!==e.y)&&(r+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+="rotate(".concat(t,"deg) ")),e&&(r+="rotateX(".concat(e,"deg) ")),i&&(r+="rotateY(".concat(i,"deg) "))}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(r+="scale(".concat(s,", ").concat(a,")")),r||"none"}let rG=(t,e)=>t.depth-e.depth;class rX{add(t){nx(this.children,t),this.isDirty=!0}remove(t){nw(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rG),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let rq=["","X","Y","Z"],rK={visibility:"hidden"},rJ=0,rQ={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r0(t){let{attachResizeListener:e,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:o}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nS),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=this.eventHandlers.get(t);i&&i.notify(...n)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=i=>{let{timestamp:o}=i,s=o-n;s>=e&&((0,tR.Pn)(r),t(s-e))};return tR.Wi.read(r,!0),()=>(0,tR.Pn)(r)}(r,250),rw.hasAnimatedSinceResize&&(rw.hasAnimatedSinceResize=!1,this.nodes.forEach(r7))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:r,layout:i}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||il,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!r$(this.targetLayout,i)||r,c=!n&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...nv(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||r7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tR.Pn)(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.forEac
17h(ir),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r9);return}this.isUpdating||this.nodes.forEach(r6),this.isUpdating=!1,this.nodes.forEach(r8),this.nodes.forEach(r1),this.nodes.forEach(r2),this.clearAllSnapshots();let t=performance.now();tR.frameData.delta=U(0,1e3/60,t-tR.frameData.timestamp),tR.frameData.timestamp=t,tR.frameData.isProcessing=!0,tR.S6.update.process(tR.frameData),tR.S6.preRender.process(tR.frameData),tR.S6.render.process(tR.frameData),tR.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r4),this.sharedNodes.forEach(ii)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tR.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tR.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=n6(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!rz(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||rn(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),ih((t=r).x),ih(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return n6();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(rl(e.x,n.offset.x),rl(e.y,n.offset.y)),e}removeElementScroll(t){let e=n6();rO(e,t);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){rO(e,t);let{scroll:n}=this.root;n&&(rl(e.x,-n.offset.x),rl(e.y,-n.offset.y))}rl(e.x,i.offset.x),rl(e.y,i.offset.y)}}return e}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=n6();rO(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rd(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rn(r.latestValues)&&rd(n,r.latestValues)}return rn(this.latestValues)&&rd(n,this.latestValues),n}removeTransform(t){let e=n6();rO(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!rn(n.latestValues))continue;re(n.latestValues)&&n.updateSnapshot();let r=n6();rO(r,n.measurePageBox()),rU(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rn(this.latestValues)&&rU(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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!==tR.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,n,r;let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(i||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tR.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n6(),this.relativeTargetOrigin=n6(),nQ(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n6(),this.targetWithTransforms=n6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,n=this.relativeTarget,r=this.relativeParent.target,nK(e.x,n.x,r.x),nK(e.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rO(this.target,this.layout.layoutBox),rs(this.target,this.targetDelta)):rO(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n6(),this.relativeTargetOrigin=n6(),nQ(this.relativeTargetOrigin,this.target,t.target),rO(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rQ.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||re(this.parent.latestValues)||rr(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tR.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rO(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n){let r,i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){i=(r=n[a]).projectionDelta;let s=r.instance;(!s||!s.style||"contents"!==s.style.display)&&(o&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rd(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,rs(t,i)),o&&rn(r.latestValues)&&rd(t,r.latestValues))}e.x=ra(e.x),e.y=ra(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=n4(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n4(),this.projectionDeltaWithTransform=n4());let u=this.projectionTransform;nq(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rY(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rQ.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t){let e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=n4();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;let a=n6(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(ia));this.animationProgress=0,this.mixTargetDelta=n=>{let r=n/1e3;if(io(s.x,t.x,r),io(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;nQ(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,is(f.x,p.x,a.x,r),is(f.y,p.y,a.y,r),e&&(u=this.relativeTarget,d=e,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),e||(e=n6()),rO(e,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=eC(0,void 0!==n.opacity?n.opacity:1,rV(r)),t.opacityExit=eC(void 0!==e.opacity?e.opacity:1,0,rL(r))):o&&(t.opacity=eC(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rk;i++){let o="border".concat(rC[i],"Radius"),s=rM(e,o),a=rM(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rD(s)===rD(a)?(t[o]=Math.max(eC(rR(s),rR(a),r),0),(J.test(a)||J.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=eC(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tR.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tR.Wi.update(()=>{rw.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=j(t)?t:nT(t);return r.start(ng("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&id(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n6();let e=nY(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nY(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rO(e,n),rd(e,i),nq(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rH),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<rq.length;e++){let i="rotate"+rq[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rK;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tC(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tC(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rn(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rY(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin="".concat(100*a.origin,"% ").concat(100*l.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,D){if(void 0===s[t])continue;let{correct:e,applyTo:n}=D[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?tC(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
17resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r9),this.root.sharedNodes.clear()}constructor(t={},e=null==n?void 0:n()){this.id=rJ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rQ.totalNodes=rQ.resolvedTargetDeltas=rQ.recalculatedProjection=0,this.nodes.forEach(r3),this.nodes.forEach(it),this.nodes.forEach(ie),this.nodes.forEach(r5),window.MotionDebug&&window.MotionDebug.record(rQ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rX)}}}function r1(t){t.updateLayout()}function r2(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?n8(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=nY(r);r.min=e[t].min,r.max=r.min+i}):id(i,n.layoutBox,e)&&n8(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nY(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=n4();nq(s,e,n.layoutBox);let a=n4();o?nq(a,t.applyTransform(r,!0),n.measuredBox):nq(a,e,n.layoutBox);let l=!rz(s),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=n6();nQ(s,n.layoutBox,i.layoutBox);let a=n6();nQ(a,e,o.layoutBox),r$(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r3(t){rQ.totalNodes++,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 r5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r4(t){t.clearSnapshot()}function r9(t){t.clearMeasurements()}function r6(t){t.isLayoutDirty=!1}function r8(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function it(t){t.resolveTargetDelta()}function ie(t){t.calcProjection()}function ir(t){t.resetRotation()}function ii(t){t.removeLeadSnapshot()}function io(t,e,n){t.translate=eC(e.translate,0,n),t.scale=eC(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function is(t,e,n,r){t.min=eC(e.min,n.min,r),t.max=eC(e.max,n.max,r)}function ia(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let il={duration:.45,ease:[.4,0,.1,1]},iu=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ic=iu("applewebkit/")&&!iu("chrome/")?Math.round:tX.Z;function ih(t){t.min=ic(t.min),t.max=ic(t.max)}function id(t,e,n){return"position"===t||"preserve-aspect"===t&&!nG(rZ(e),rZ(n),.2)}let ip=r0({attachResizeListener:(t,e)=>tV(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),im={current:void 0},iv=r0({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!im.current){let t=new ip({});t.mount(window),t.setOptions({layoutScroll:!0}),im.current=t}return im.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),ig=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iy(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,t9.k)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));let[r,i]=function(t){let e=ig.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let o=window.getComputedStyle(e).getPropertyValue(r);
17if(o){let t=o.trim();return nb(t)?parseFloat(t):t}return N(i)?iy(i,e,n+1):i}let ib=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ix=t=>ib.has(t),iw=t=>Object.keys(t).some(ix),iS=t=>t===_||t===Q,iP=(t,e)=>parseFloat(t.split(", ")[e]),iE=(t,e)=>(n,r)=>{let{transform:i}=r;if("none"===i||!i)return 0;let o=i.match(/^matrix3d\((.+)\)$/);if(o)return iP(o[1],e);{let e=i.match(/^matrix\((.+)\)$/);return e?iP(e[1],t):0}},iA=new Set(["x","y","z"]),iT=M.filter(t=>!iA.has(t)),iC={width:(t,e)=>{let{x:n}=t,{paddingLeft:r="0",paddingRight:i="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(t,e)=>{let{y:n}=t,{paddingTop:r="0",paddingBottom:i="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:r}=e;return parseFloat(r)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:r}=e;return parseFloat(r)+(n.max-n.min)},x:iE(4,13),y:iE(5,14)};iC.translateX=iC.x,iC.translateY=iC.y;let ik=(t,e,n)=>{let r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=iC[t](r,o)}),e.render();let l=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(a[n]),t[n]=iC[n](l,o)}),t},iR=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e={...e},r={...r};let i=Object.keys(e).filter(ix),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],h=nR(c),d=e[i];if(tE(d)){let t=d.length,e=null===d[0]?1:0;h=nR(c=d[e]);for(let n=e;n<t&&null!==d[n];n++)l?(0,t9.k)(nR(d[n])===l,"All keyframes must be of the same type"):(l=nR(d[n]),(0,t9.k)(l===h||iS(h)&&iS(l),"Keyframes must be of the same dimension as the current value"))}else l=nR(d);if(h!==l){if(iS(h)&&iS(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&l===Q&&(e[i]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):e[i]=h.transform(d):(s||(o=function(t){let e=[];return iT.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(d))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=ik(e,t,a);return o.length&&o.forEach(e=>{let[n,r]=e;t.getValue(n).set(r)}),t.render(),E.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},iD=(t,e,n,r)=>{var i,o;let s=function(t,e,n){let{...r}=e,i=t.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(let e in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!N(e))return;let n=iy(e,i);n&&t.set(n)}),r){let t=r[e];if(!N(t))continue;let o=iy(t,i);o&&(r[e]=o,n||(n={}),void 0===n[e]&&(n[e]=t))}return{target:r,transitionEnd:n}}(t,e,r);return e=s.target,r=s.transitionEnd,i=e,o=r,iw(i)?iR(t,i,n,o):{target:i,transitionEnd:o}},iM={current:null},iV={current:!1},iL=new WeakMap,ij=Object.keys(P),iI=ij.length,iO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iF=y.length;class iB{scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,iL.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),iV.current||function(){if(iV.current=!0,E.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iM.current=t.matches;t.addListener(e),e()}else iM.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iM.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iL.delete(this.current),this.projection&&this.projection.unmount(),(0,tR.Pn)(this.notifyUpdate),(0,tR.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=V.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tR.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,r){let i,o,{children:s,...a}=t;
17for(let t=0;t<iI;t++){let e=ij[t],{isEnabled:n,Feature:r,ProjectionNode:s,MeasureLayout:l}=P[e];s&&(i=s),n(a)&&(!this.features[e]&&r&&(this.features[e]=new r(this)),l&&(o=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:e,drag:n,dragConstraints:o,layoutScroll:s,layoutRoot:l}=a;this.projection.setOptions({layoutId:t,layout:e,alwaysMeasureLayout:!!n||o&&p(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof e?e:"both",initialPromotionConfig:r,layoutScroll:s,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n6()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<iO.length;e++){let n=iO[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){let{willChange:r}=e;for(let i in e){let o=e[i],s=n[i];if(j(o))t.addValue(i,o),ny(r)&&r.add(i);else if(j(s))t.addValue(i,nT(o,{owner:t})),ny(r)&&r.remove(i);else if(s!==o){if(t.hasValue(i)){let e=t.getValue(i);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(i);t.addValue(i,nT(void 0!==e?e:o,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<iF;t++){let n=y[t],r=this.props[n];(m(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nT(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=tS(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||j(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nS),this.events[t].add(e)}notify(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.events[t]&&this.events[t].notify(...n)}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tR.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=b(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==s[t]&&j(e)&&(e.set(s[t],!1),ny(l)&&l.add(t))}}}class iN extends iB{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:n,style:r}=e;delete n[t],delete r[t]}makeTargetAnimatableFromInstance(t,e,n){let{transition:r,transitionEnd:i,...o}=t,{transformValues:s}=e,a=function(t,e,n){let r={};for(let i in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(i,e);if(void 0!==t)r[i]=t;else{let t=n.getValue(i);t&&(r[i]=t.get())}}return r}(o,r||{},this);if(s&&(i&&(i=s(i)),o&&(o=s(o)),a&&(a=s(a))),n){!function(t,e,n){var r,i;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==i?i:e[s]),null!=u&&("string"==typeof u&&(nb(u)||nm(u))?u=parseFloat(u):!nM(u)&&e_.test(l)&&(u=np(s,l)),t.addValue(s,nT(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,o,a);let t=iD(this,o,a,i);i=t.transitionEnd,o=t.target}return{transition:r,transitionEnd:i,...o}}}class iW extends iN{readValueFromInstance(t,e){if(V.has(e)){let t=nf(e);return t&&t.default||0}
17{let n=window.getComputedStyle(t),r=(B(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return rf(t,n)}build(t,e,n,r){to(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tx(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}renderInstance(t,e,n,r){tg(t,e,n,r)}}class iU extends iN{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(V.has(e)){let t=nf(e);return t&&t.default||0}return e=ty.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return n6()}scrapeMotionValuesFromProps(t,e){return tw(t,e)}build(t,e,n,r){tp(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tb(t,e,n,r)}mount(t){this.isSVGTag=tv(t.tagName),super.mount(t)}constructor(){super(...arguments),this.isSVGTag=!1}}let i_=(t,e)=>R(t)?new iU(e,{enableHardwareAcceleration:!1}):new iW(e,{enableHardwareAcceleration:!0}),iz={animation:{Feature:nB},exit:{Feature:nW},inView:{Feature:t3},tap:{Feature:tK},focus:{Feature:tY},hover:{Feature:tH},pan:{Feature:rx},drag:{Feature:ry,ProjectionNode:iv,MeasureLayout:rA},layout:{ProjectionNode:iv,MeasureLayout:rA}},i$=function(t){function e(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){let{preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}=t;e&&function(t){for(let e in t)P[e]={...P[e],...t[e]}}(e);let d=(0,s.forwardRef)(function(t,d){var v;let g;let y={...(0,s.useContext)(a),...t,layoutId:function(t){let{layoutId:e}
17=t,n=(0,s.useContext)(A.p).id;return n&&void 0!==e?n+"-"+e:e}(t)},{isStatic:x}=y,S=function(t){let{initial:e,animate:n}=function(t,e){if(b(t)){let{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:e,animate:n}),[w(e),w(n)])}(t),P=i(t,x);if(!x&&E.j){S.visualElement=function(t,e,n,r){let{visualElement:i}=(0,s.useContext)(l),o=(0,s.useContext)(h),d=(0,s.useContext)(u.O),p=(0,s.useContext)(a).reducedMotion,m=(0,s.useRef)();r=r||o.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:i,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let v=m.current;(0,s.useInsertionEffect)(()=>{v&&v.update(n,d)});let g=(0,s.useRef)(!!n[f]);return(0,c.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(window.HandoffAppearAnimations=!1,g.current=!1))}),v}(o,P,y,n);let t=(0,s.useContext)(T),r=(0,s.useContext)(h).strict;S.visualElement&&(g=S.visualElement.loadFeatures(y,r,e,t))}return s.createElement(l.Provider,{value:S},g&&S.visualElement?s.createElement(g,{visualElement:S.visualElement,...y}):null,r(o,t,(v=S.visualElement,(0,s.useCallback)(t=>{t&&P.mount&&P.mount(t),v&&(t?v.mount(t):v.unmount()),d&&("function"==typeof d?d(t):p(d)&&(d.current=t))},[v])),P,x,S.visualElement))});return d[C]=o,d}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,e,n,r){let{forwardMotionProps:i=!1}=e;return{...R(t)?tD:tM,preloadedFeatures:n,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,r,i,o)=>{let{latestValues:a}=i,l=(R(e)?function(t,e,n,r){let i=(0,s.useMemo)(()=>{let n=tm();return tp(n,e,{enableHardwareAcceleration:!1},tv(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};ta(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return ta(i,r,t),Object.assign(i,function(t,e,n){let{transformTemplate:r}=t;return(0,s.useMemo)(()=>{let t=ts();return to(t,e,{enableHardwareAcceleration:!n},r),Object.assign({},t.vars,t.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,a,o,e),u={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(tc(i)||!0===n&&tu(i)||!e&&!tu(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...l,ref:r},{children:c}=n,h=(0,s.useMemo)(()=>j(c)?c.get():c,[c]);return(0,s.createElement)(e,{...u,children:h})}}(i),createVisualElement:r,Component:t}})(t,e,iz,i_))},9908:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return o}});var r=n(3393);let i=r.Z,o=r.Z},1702:function(t,e,n){n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},3393:function(t,e,n){n.d(e,{Z:function(){return r}});let r=t=>t},2435:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(4090);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},9492:function(t,e,n){n.d(e,{Y:function(){return s}});var r=n(4090),i=n(9908);let o={some:0,all:1};function s(t){let{root:e,margin:n,amount:s,once:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[l,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!t.current||a&&l)return;let r={root:e&&e.current||void 0,margin:n,amount:s};return function(t,e){let{root:n,margin:r,amount:s="some"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(t,e,n){var r;if("string"==typeof t){let o=document;e&&((0,i.k)(!!e.current,"Scope provided, but no element detected."),o=e.current),n?(null!==(r=n[t])&&void 0!==r||(n[t]=o.querySelectorAll(t)),t=n[t]):t=o.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let n=l.get(t.target);if(!!n!==t.isIntersecting){if(t.isIntersecting){let n=e(t);"function"==typeof n?l.set(t.target,n):u.unobserve(t.target)}else n&&(n(t),l.delete(t.target))}})},{root:n,rootMargin:r,threshold:"number"==typeof s?s:o[s]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,()=>(u(!0),a?void 0:()=>u(!1)),r)},[e,t,n,a]),l}},5526:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(4090);let i=n(1702).j?r.useLayoutEffect:r.useEffect},9703:function(t,e,n){n.d(e,{_T:function(){return i},ev:function(){return o},pi:function(){return r}});var r=function(){return(r=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}).apply(this,arguments)};function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function o(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError},2020:function(t,e,n){n.d(e,{Ue:function(){return h}});let r=t=>{let e;let n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({}
17,e,i),n.forEach(n=>n(e,t))}},i=()=>e,o={setState:r,getState:i,subscribe:t=>(n.add(t),()=>n.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return e=t(r,i,o),o},i=t=>t?r(t):r;var o=n(4090),s=n(9292);let{useDebugValue:a}=o,{useSyncExternalStoreWithSelector:l}=s,u=!1,c=t=>{"function"!=typeof t&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let e="function"==typeof t?i(t):t,n=(t,n)=>(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getState,n=arguments.length>2?arguments[2]:void 0;n&&!u&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),u=!0);let r=l(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return a(r),r})(e,t,n);return Object.assign(n,e),n},h=t=>t?c(t):c}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.