scope360-core 0.0.110 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|
15
15
|
* Club GSAP members, the agreement issued with that membership.
|
|
16
16
|
* @author: Jack Doyle, jack@greensock.com
|
|
17
|
-
*/var c0,Wr,mi,Vd,xs,d0,Bd,jy=function(){return typeof window<"u"},ur={},Ms=180/Math.PI,pi=Math.PI/180,gi=Math.atan2,u0=1e8,Ad=/([A-Z])/g,Zy=/(left|right|width|margin|padding|x)/i,Uy=/[\s,\(]\S/,Gn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Fd=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},qy=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Gy=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},Ky=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},h0=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},f0=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Xy=function(e,n,r){return e.style[n]=r},Qy=function(e,n,r){return e.style.setProperty(n,r)},Jy=function(e,n,r){return e._gsap[n]=r},ew=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},tw=function(e,n,r,s,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},nw=function(e,n,r,s,i){var a=e._gsap;a[n]=r,a.renderTransform(i,a)},et="transform",It=et+"Origin",rw=function t(e,n){var r=this,s=this.target,i=s.style,a=s._gsap;if(e in ur&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Gn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(l){return r.tfm[l]=hr(s,l)}):this.tfm[e]=a.x?a[e]:hr(s,e),e===It&&(this.tfm.zOrigin=a.zOrigin);else return Gn.transform.split(",").forEach(function(l){return t.call(r,l,n)});if(this.props.indexOf(et)>=0)return;a.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(It,n,"")),e=et}(i||n)&&this.props.push(e,n,i[e])},m0=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},sw=function(){var e=this.props,n=this.target,r=n.style,s=n._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?n[e[i]]=e[i+2]:e[i+2]?r[e[i]]=e[i+2]:r.removeProperty(e[i].substr(0,2)==="--"?e[i]:e[i].replace(Ad,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)s[a]=this.tfm[a];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=Bd(),(!i||!i.isStart)&&!r[et]&&(m0(r),s.zOrigin&&r[It]&&(r[It]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},p0=function(e,n){var r={target:e,props:[],revert:sw,save:rw};return e._gsap||Rt.core.getCache(e),n&&n.split(",").forEach(function(s){return r.save(s)}),r},g0,Rd=function(e,n){var r=Wr.createElementNS?Wr.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Wr.createElement(e);return r&&r.style?r:Wr.createElement(e)},Kn=function t(e,n,r){var s=getComputedStyle(e);return s[n]||s.getPropertyValue(n.replace(Ad,"-$1").toLowerCase())||s.getPropertyValue(n)||!r&&t(e,_i(n)||n,1)||""},_0="O,Moz,ms,Ms,Webkit".split(","),_i=function(e,n,r){var s=n||xs,i=s.style,a=5;if(e in i&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(_0[a]+e in i););return a<0?null:(a===3?"ms":a>=0?_0[a]:"")+e},Id=function(){jy()&&window.document&&(c0=window,Wr=c0.document,mi=Wr.documentElement,xs=Rd("div")||{style:{}},Rd("div"),et=_i(et),It=et+"Origin",xs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",g0=!!_i("perspective"),Bd=Rt.core.reverting,Vd=1)},zd=function t(e){var n=Rd("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,i=this.style.cssText,a;if(mi.appendChild(n),n.appendChild(this),this.style.display="block",e)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(a=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),mi.removeChild(n),this.style.cssText=i,a},y0=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},w0=function(e){var n;try{n=e.getBBox()}catch{n=zd.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===zd||(n=zd.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+y0(e,["x","cx","x1"])||0,y:+y0(e,["y","cy","y1"])||0,width:0,height:0}:n},b0=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&w0(e))},vs=function(e,n){if(n){var r=e.style,s;n in ur&&n!==It&&(n=et),r.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(s==="--"?n:n.replace(Ad,"-$1").toLowerCase())):r.removeAttribute(n)}},jr=function(e,n,r,s,i,a){var l=new Ft(e._pt,n,r,0,1,a?f0:h0);return e._pt=l,l.b=s,l.e=i,e._props.push(r),l},k0={deg:1,rad:1,turn:1},iw={grid:1,flex:1},Zr=function t(e,n,r,s){var i=parseFloat(r)||0,a=(r+"").trim().substr((i+"").length)||"px",l=xs.style,c=Zy.test(n),d=e.tagName.toLowerCase()==="svg",u=(d?"client":"offset")+(c?"Width":"Height"),h=100,f=s==="px",m=s==="%",g,p,_,y;if(s===a||!i||k0[s]||k0[a])return i;if(a!=="px"&&!f&&(i=t(e,n,r,"px")),y=e.getCTM&&b0(e),(m||a==="%")&&(ur[n]||~n.indexOf("adius")))return g=y?e.getBBox()[c?"width":"height"]:e[u],ft(m?i/g*h:i/100*g);if(l[c?"width":"height"]=h+(f?a:s),p=~n.indexOf("adius")||s==="em"&&e.appendChild&&!d?e:e.parentNode,y&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Wr||!p.appendChild)&&(p=Wr.body),_=p._gsap,_&&m&&_.width&&c&&_.time===Qt.time&&!_.uncache)return ft(i/_.width*h);if(m&&(n==="height"||n==="width")){var C=e.style[n];e.style[n]=h+s,g=e[u],C?e.style[n]=C:vs(e,n)}else(m||a==="%")&&!iw[Kn(p,"display")]&&(l.position=Kn(e,"position")),p===e&&(l.position="static"),p.appendChild(xs),g=xs[u],p.removeChild(xs),l.position="absolute";return c&&m&&(_=_s(p),_.time=Qt.time,_.width=p[u]),ft(f?g*i/h:g&&i?h/g*i:0)},hr=function(e,n,r,s){var i;return Vd||Id(),n in Gn&&n!=="transform"&&(n=Gn[n],~n.indexOf(",")&&(n=n.split(",")[0])),ur[n]&&n!=="transform"?(i=po(e,s),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:Ba(Kn(e,It))+" "+i.zOrigin+"px"):(i=e.style[n],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=Va[n]&&Va[n](e,n,r)||Kn(e,n)||vf(e,n)||(n==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?Zr(e,n,i,r)+r:i},ow=function(e,n,r,s){if(!r||r==="none"){var i=_i(n,e,1),a=i&&Kn(e,i,1);a&&a!==r?(n=i,r=a):n==="borderColor"&&(r=Kn(e,"borderTopColor"))}var l=new Ft(this._pt,e.style,n,0,1,i0),c=0,d=0,u,h,f,m,g,p,_,y,C,k,S,M;if(l.b=r,l.e=s,r+="",s+="",s==="auto"&&(p=e.style[n],e.style[n]=s,s=Kn(e,n)||s,p?e.style[n]=p:vs(e,n)),u=[r,s],Gf(u),r=u[0],s=u[1],f=r.match(li)||[],M=s.match(li)||[],M.length){for(;h=li.exec(s);)_=h[0],C=s.substring(c,h.index),g?g=(g+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(g=1),_!==(p=f[d++]||"")&&(m=parseFloat(p)||0,S=p.substr((m+"").length),_.charAt(1)==="="&&(_=ci(m,_)+S),y=parseFloat(_),k=_.substr((y+"").length),c=li.lastIndex-k.length,k||(k=k||qt.units[n]||S,c===s.length&&(s+=k,l.e+=k)),S!==k&&(m=Zr(e,n,p,k)||0),l._pt={_next:l._pt,p:C||d===1?C:",",s:m,c:y-m,m:g&&g<4||n==="zIndex"?Math.round:0});l.c=c<s.length?s.substring(c,s.length):""}else l.r=n==="display"&&s==="none"?f0:h0;return yf.test(s)&&(l.e=0),this._pt=l,l},C0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},aw=function(e){var n=e.split(" "),r=n[0],s=n[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(e=r,r=s,s=e),n[0]=C0[r]||r,n[1]=C0[s]||s,n.join(" ")},lw=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,s=r.style,i=n.u,a=r._gsap,l,c,d;if(i==="all"||i===!0)s.cssText="",c=1;else for(i=i.split(","),d=i.length;--d>-1;)l=i[d],ur[l]&&(c=1,l=l==="transformOrigin"?It:et),vs(r,l);c&&(vs(r,et),a&&(a.svg&&r.removeAttribute("transform"),po(r,1),a.uncache=1,m0(s)))}},Va={clearProps:function(e,n,r,s,i){if(i.data!=="isFromStart"){var a=e._pt=new Ft(e._pt,n,r,0,0,lw);return a.u=s,a.pr=-10,a.tween=i,e._props.push(r),1}}},mo=[1,0,0,1,0,0],x0={},M0=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},v0=function(e){var n=Kn(e,et);return M0(n)?mo:n.substr(7).match(_f).map(ft)},Hd=function(e,n){var r=e._gsap||_s(e),s=e.style,i=v0(e),a,l,c,d;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?mo:i):(i===mo&&!e.offsetParent&&e!==mi&&!r.svg&&(c=s.display,s.display="block",a=e.parentNode,(!a||!e.offsetParent)&&(d=1,l=e.nextElementSibling,mi.appendChild(e)),i=v0(e),c?s.display=c:vs(e,"display"),d&&(l?a.insertBefore(e,l):a?a.appendChild(e):mi.removeChild(e))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Yd=function(e,n,r,s,i,a){var l=e._gsap,c=i||Hd(e,!0),d=l.xOrigin||0,u=l.yOrigin||0,h=l.xOffset||0,f=l.yOffset||0,m=c[0],g=c[1],p=c[2],_=c[3],y=c[4],C=c[5],k=n.split(" "),S=parseFloat(k[0])||0,M=parseFloat(k[1])||0,D,v,O,E;r?c!==mo&&(v=m*_-g*p)&&(O=S*(_/v)+M*(-p/v)+(p*C-_*y)/v,E=S*(-g/v)+M*(m/v)-(m*C-g*y)/v,S=O,M=E):(D=w0(e),S=D.x+(~k[0].indexOf("%")?S/100*D.width:S),M=D.y+(~(k[1]||k[0]).indexOf("%")?M/100*D.height:M)),s||s!==!1&&l.smooth?(y=S-d,C=M-u,l.xOffset=h+(y*m+C*p)-y,l.yOffset=f+(y*g+C*_)-C):l.xOffset=l.yOffset=0,l.xOrigin=S,l.yOrigin=M,l.smooth=!!s,l.origin=n,l.originIsAbsolute=!!r,e.style[It]="0px 0px",a&&(jr(a,l,"xOrigin",d,S),jr(a,l,"yOrigin",u,M),jr(a,l,"xOffset",h,l.xOffset),jr(a,l,"yOffset",f,l.yOffset)),e.setAttribute("data-svg-origin",S+" "+M)},po=function(e,n){var r=e._gsap||new Jf(e);if("x"in r&&!n&&!r.uncache)return r;var s=e.style,i=r.scaleX<0,a="px",l="deg",c=getComputedStyle(e),d=Kn(e,It)||"0",u,h,f,m,g,p,_,y,C,k,S,M,D,v,O,E,I,j,$,R,G,T,x,N,Z,ee,U,P,V,b,w,B;return u=h=f=p=_=y=C=k=S=0,m=g=1,r.svg=!!(e.getCTM&&b0(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(s[et]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[et]!=="none"?c[et]:"")),s.scale=s.rotate=s.translate="none"),v=Hd(e,r.svg),r.svg&&(r.uncache?(Z=e.getBBox(),d=r.xOrigin-Z.x+"px "+(r.yOrigin-Z.y)+"px",N=""):N=!n&&e.getAttribute("data-svg-origin"),Yd(e,N||d,!!N||r.originIsAbsolute,r.smooth!==!1,v)),M=r.xOrigin||0,D=r.yOrigin||0,v!==mo&&(j=v[0],$=v[1],R=v[2],G=v[3],u=T=v[4],h=x=v[5],v.length===6?(m=Math.sqrt(j*j+$*$),g=Math.sqrt(G*G+R*R),p=j||$?gi($,j)*Ms:0,C=R||G?gi(R,G)*Ms+p:0,C&&(g*=Math.abs(Math.cos(C*pi))),r.svg&&(u-=M-(M*j+D*R),h-=D-(M*$+D*G))):(B=v[6],b=v[7],U=v[8],P=v[9],V=v[10],w=v[11],u=v[12],h=v[13],f=v[14],O=gi(B,V),_=O*Ms,O&&(E=Math.cos(-O),I=Math.sin(-O),N=T*E+U*I,Z=x*E+P*I,ee=B*E+V*I,U=T*-I+U*E,P=x*-I+P*E,V=B*-I+V*E,w=b*-I+w*E,T=N,x=Z,B=ee),O=gi(-R,V),y=O*Ms,O&&(E=Math.cos(-O),I=Math.sin(-O),N=j*E-U*I,Z=$*E-P*I,ee=R*E-V*I,w=G*I+w*E,j=N,$=Z,R=ee),O=gi($,j),p=O*Ms,O&&(E=Math.cos(O),I=Math.sin(O),N=j*E+$*I,Z=T*E+x*I,$=$*E-j*I,x=x*E-T*I,j=N,T=Z),_&&Math.abs(_)+Math.abs(p)>359.9&&(_=p=0,y=180-y),m=ft(Math.sqrt(j*j+$*$+R*R)),g=ft(Math.sqrt(x*x+B*B)),O=gi(T,x),C=Math.abs(O)>2e-4?O*Ms:0,S=w?1/(w<0?-w:w):0),r.svg&&(N=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!M0(Kn(e,et)),N&&e.setAttribute("transform",N))),Math.abs(C)>90&&Math.abs(C)<270&&(i?(m*=-1,C+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,C+=C<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=h-((r.yPercent=h&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=f+a,r.scaleX=ft(m),r.scaleY=ft(g),r.rotation=ft(p)+l,r.rotationX=ft(_)+l,r.rotationY=ft(y)+l,r.skewX=C+l,r.skewY=k+l,r.transformPerspective=S+a,(r.zOrigin=parseFloat(d.split(" ")[2])||!n&&r.zOrigin||0)&&(s[It]=Ba(d)),r.xOffset=r.yOffset=0,r.force3D=qt.force3D,r.renderTransform=r.svg?dw:g0?S0:cw,r.uncache=0,r},Ba=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wd=function(e,n,r){var s=Et(n);return ft(parseFloat(n)+parseFloat(Zr(e,"x",r+"px",s)))+s},cw=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,S0(e,n)},Ss="0deg",go="0px",Ts=") ",S0=function(e,n){var r=n||this,s=r.xPercent,i=r.yPercent,a=r.x,l=r.y,c=r.z,d=r.rotation,u=r.rotationY,h=r.rotationX,f=r.skewX,m=r.skewY,g=r.scaleX,p=r.scaleY,_=r.transformPerspective,y=r.force3D,C=r.target,k=r.zOrigin,S="",M=y==="auto"&&e&&e!==1||y===!0;if(k&&(h!==Ss||u!==Ss)){var D=parseFloat(u)*pi,v=Math.sin(D),O=Math.cos(D),E;D=parseFloat(h)*pi,E=Math.cos(D),a=Wd(C,a,v*E*-k),l=Wd(C,l,-Math.sin(D)*-k),c=Wd(C,c,O*E*-k+k)}_!==go&&(S+="perspective("+_+Ts),(s||i)&&(S+="translate("+s+"%, "+i+"%) "),(M||a!==go||l!==go||c!==go)&&(S+=c!==go||M?"translate3d("+a+", "+l+", "+c+") ":"translate("+a+", "+l+Ts),d!==Ss&&(S+="rotate("+d+Ts),u!==Ss&&(S+="rotateY("+u+Ts),h!==Ss&&(S+="rotateX("+h+Ts),(f!==Ss||m!==Ss)&&(S+="skew("+f+", "+m+Ts),(g!==1||p!==1)&&(S+="scale("+g+", "+p+Ts),C.style[et]=S||"translate(0, 0)"},dw=function(e,n){var r=n||this,s=r.xPercent,i=r.yPercent,a=r.x,l=r.y,c=r.rotation,d=r.skewX,u=r.skewY,h=r.scaleX,f=r.scaleY,m=r.target,g=r.xOrigin,p=r.yOrigin,_=r.xOffset,y=r.yOffset,C=r.forceCSS,k=parseFloat(a),S=parseFloat(l),M,D,v,O,E;c=parseFloat(c),d=parseFloat(d),u=parseFloat(u),u&&(u=parseFloat(u),d+=u,c+=u),c||d?(c*=pi,d*=pi,M=Math.cos(c)*h,D=Math.sin(c)*h,v=Math.sin(c-d)*-f,O=Math.cos(c-d)*f,d&&(u*=pi,E=Math.tan(d-u),E=Math.sqrt(1+E*E),v*=E,O*=E,u&&(E=Math.tan(u),E=Math.sqrt(1+E*E),M*=E,D*=E)),M=ft(M),D=ft(D),v=ft(v),O=ft(O)):(M=h,O=f,D=v=0),(k&&!~(a+"").indexOf("px")||S&&!~(l+"").indexOf("px"))&&(k=Zr(m,"x",a,"px"),S=Zr(m,"y",l,"px")),(g||p||_||y)&&(k=ft(k+g-(g*M+p*v)+_),S=ft(S+p-(g*D+p*O)+y)),(s||i)&&(E=m.getBBox(),k=ft(k+s/100*E.width),S=ft(S+i/100*E.height)),E="matrix("+M+","+D+","+v+","+O+","+k+","+S+")",m.setAttribute("transform",E),C&&(m.style[et]=E)},uw=function(e,n,r,s,i){var a=360,l=xt(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?Ms:1),d=c-s,u=s+d+"deg",h,f;return l&&(h=i.split("_")[1],h==="short"&&(d%=a,d!==d%(a/2)&&(d+=d<0?a:-a)),h==="cw"&&d<0?d=(d+a*u0)%a-~~(d/a)*a:h==="ccw"&&d>0&&(d=(d-a*u0)%a-~~(d/a)*a)),e._pt=f=new Ft(e._pt,n,r,s,d,qy),f.e=u,f.u="deg",e._props.push(r),f},T0=function(e,n){for(var r in n)e[r]=n[r];return e},hw=function(e,n,r){var s=T0({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",a=r.style,l,c,d,u,h,f,m,g;s.svg?(d=r.getAttribute("transform"),r.setAttribute("transform",""),a[et]=n,l=po(r,1),vs(r,et),r.setAttribute("transform",d)):(d=getComputedStyle(r)[et],a[et]=n,l=po(r,1),a[et]=d);for(c in ur)d=s[c],u=l[c],d!==u&&i.indexOf(c)<0&&(m=Et(d),g=Et(u),h=m!==g?Zr(r,c,d,g):parseFloat(d),f=parseFloat(u),e._pt=new Ft(e._pt,l,c,h,f-h,Fd),e._pt.u=g||0,e._props.push(c));T0(l,s)};At("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",s="Bottom",i="Left",a=(e<3?[n,r,s,i]:[n+i,n+r,s+r,s+i]).map(function(l){return e<2?t+l:"border"+l+t});Va[e>1?"border"+t:t]=function(l,c,d,u,h){var f,m;if(arguments.length<4)return f=a.map(function(g){return hr(l,g,d)}),m=f.join(" "),m.split(f[0]).length===5?f[0]:m;f=(u+"").split(" "),m={},a.forEach(function(g,p){return m[g]=f[p]=f[p]||f[(p-1)/2|0]}),l.init(c,m,h)}});var D0={name:"css",register:Id,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,s,i){var a=this._props,l=e.style,c=r.vars.startAt,d,u,h,f,m,g,p,_,y,C,k,S,M,D,v,O;Vd||Id(),this.styles=this.styles||p0(e),O=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(u=n[p],!(Kt[p]&&e0(p,n,r,s,e,i)))){if(m=typeof u,g=Va[p],m==="function"&&(u=u.call(r,s,e,i),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=ao(u)),g)g(this,e,p,u,r)&&(v=1);else if(p.substr(0,2)==="--")d=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",Hr.lastIndex=0,Hr.test(d)||(_=Et(d),y=Et(u)),y?_!==y&&(d=Zr(e,p,d,y)+y):_&&(u+=_),this.add(l,"setProperty",d,u,s,i,0,0,p),a.push(p),O.push(p,0,l[p]);else if(m!=="undefined"){if(c&&p in c?(d=typeof c[p]=="function"?c[p].call(r,s,e,i):c[p],xt(d)&&~d.indexOf("random(")&&(d=ao(d)),Et(d+"")||d==="auto"||(d+=qt.units[p]||Et(hr(e,p))||""),(d+"").charAt(1)==="="&&(d=hr(e,p))):d=hr(e,p),f=parseFloat(d),C=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),C&&(u=u.substr(2)),h=parseFloat(u),p in Gn&&(p==="autoAlpha"&&(f===1&&hr(e,"visibility")==="hidden"&&h&&(f=0),O.push("visibility",0,l.visibility),jr(this,l,"visibility",f?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=Gn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),k=p in ur,k){if(this.styles.save(p),S||(M=e._gsap,M.renderTransform&&!n.parseTransform||po(e,n.parseTransform),D=n.smoothOrigin!==!1&&M.smooth,S=this._pt=new Ft(this._pt,l,et,0,1,M.renderTransform,M,0,-1),S.dep=1),p==="scale")this._pt=new Ft(this._pt,M,"scaleY",M.scaleY,(C?ci(M.scaleY,C+h):h)-M.scaleY||0,Fd),this._pt.u=0,a.push("scaleY",p),p+="X";else if(p==="transformOrigin"){O.push(It,0,l[It]),u=aw(u),M.svg?Yd(e,u,0,D,0,this):(y=parseFloat(u.split(" ")[2])||0,y!==M.zOrigin&&jr(this,M,"zOrigin",M.zOrigin,y),jr(this,l,p,Ba(d),Ba(u)));continue}else if(p==="svgOrigin"){Yd(e,u,1,D,0,this);continue}else if(p in x0){uw(this,M,p,f,C?ci(f,C+u):u);continue}else if(p==="smoothOrigin"){jr(this,M,"smooth",M.smooth,u);continue}else if(p==="force3D"){M[p]=u;continue}else if(p==="transform"){hw(this,u,e);continue}}else p in l||(p=_i(p)||p);if(k||(h||h===0)&&(f||f===0)&&!Uy.test(u)&&p in l)_=(d+"").substr((f+"").length),h||(h=0),y=Et(u)||(p in qt.units?qt.units[p]:_),_!==y&&(f=Zr(e,p,d,y)),this._pt=new Ft(this._pt,k?M:l,p,f,(C?ci(f,C+h):h)-f,!k&&(y==="px"||p==="zIndex")&&n.autoRound!==!1?Ky:Fd),this._pt.u=y||0,_!==y&&y!=="%"&&(this._pt.b=d,this._pt.r=Gy);else if(p in l)ow.call(this,e,p,d,C?C+u:u);else if(p in e)this.add(e,p,d||e[p],C?C+u:u,s,i);else if(p!=="parseTransform"){ud(p,u);continue}k||(p in l?O.push(p,0,l[p]):O.push(p,1,d||e[p])),a.push(p)}}v&&o0(this)},render:function(e,n){if(n.tween._time||!Bd())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:hr,aliases:Gn,getSetter:function(e,n,r){var s=Gn[n];return s&&s.indexOf(",")<0&&(n=s),n in ur&&n!==It&&(e._gsap.x||hr(e,"x"))?r&&d0===r?n==="scale"?ew:Jy:(d0=r||{})&&(n==="scale"?tw:nw):e.style&&!id(e.style[n])?Xy:~n.indexOf("-")?Qy:Od(e,n)},core:{_removeProperty:vs,_getMatrix:Hd}};Rt.utils.checkPrefix=_i,Rt.core.getStyleSaver=p0,function(t,e,n,r){var s=At(t+","+e+","+n,function(i){ur[i]=1});At(e,function(i){qt.units[i]="deg",x0[i]=1}),Gn[s[13]]=t+","+e,At(r,function(i){var a=i.split(":");Gn[a[1]]=s[a[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),At("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){qt.units[t]="px"}),Rt.registerPlugin(D0);var Ur=Rt.registerPlugin(D0)||Rt;Ur.core.Tween;const fw={__name:"Confetti",setup(t){function e(r){let s=100,i=r.offsetWidth,a=r.offsetHeight;for(let u=0;u<s;u++){let h=document.createElement("div");h.classList.add("dot"),r.append(h),Ur.set(h,{x:c(i),y:d(-100,100),opacity:1,scale:c(.5)+.5,backgroundColor:"hsl("+d(170,360)+",50%,50%)"}),l(h)}function l(u){Ur.set(r,{display:"block"}),Ur.to(r,{autoAlpha:1,duration:2,delay:1}),Ur.to(u,c(5)+4,{y:a,ease:Wy.easeNone,repeat:-1,delay:-5}),Ur.to(u,c(5)+1,{x:"+=70",repeat:-1,yoyo:!0,ease:Nd.easeInOut}),Ur.to(u,c(5)+1,{scaleX:.2,rotation:c(360),repeat:-1,yoyo:!0,ease:Nd.easeInOut}),Ur.to(u,c(1)+.5,{opacity:0,repeat:-1,yoyo:!0,ease:Nd.easeInOut})}function c(u){return Math.random()*u}function d(u,h){return u+Math.floor(Math.random()*(h-u))}}const n=o.ref(null);return o.onMounted(()=>{n.value&&e(n.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"confetti",ref:n,class:"confetti"},null,512))}},mw={class:"toast__content"},O0=De(o.defineComponent({__name:"Toast",props:{type:{type:String,default:"success"},textOnClose:{type:String},message:{type:String,default:""},action:{type:Object,default:void 0},duration:{type:Number}},setup(t){const e=t,n=o.ref(null),r=()=>{var a,l,c,d;(a=e.action)!=null&&a.label?(l=e.action)==null||l.callback():(d=(c=n.value)==null?void 0:c.parentElement)==null||d.remove()},s=o.computed(()=>e.type==="success"?"check-circle-fill":"circle-close"),i=o.computed(()=>e.type==="success"?"-success":e.type==="info"?"-info":"-error");return(a,l)=>(o.openBlock(),o.createBlock(o.Transition,null,{default:o.withCtx(()=>{var c;return[o.createElementVNode("div",{ref_key:"toast",ref:n,class:"toast"},[o.createElementVNode("div",mw,[o.createElementVNode("div",{class:o.normalizeClass(["toast__icon-wrapper",i.value])},[o.createVNode(Ve,{icon:s.value},null,8,["icon"])],2),o.withDirectives(o.createElementVNode("div",{class:"toast__text"},o.toDisplayString(t.message),513),[[o.vShow,t.message.length]])]),o.createElementVNode("div",{class:"toast__dismiss",onClick:r},o.toDisplayString((c=t.action)!=null&&c.label?t.action.label:t.textOnClose),1)],512)]}),_:1}))}}),[["__scopeId","data-v-cddb489d"]]),pw={key:0,class:"scope-textarea__label"},gw=["disabled","placeholder","veeBind","maxlength"],_w={key:1,class:"scope-textarea__error"},yw=De({__name:"Textarea",props:o.mergeModels({maxLength:{type:Number,default:524288},placeholder:String,veeBind:Object,invalid:Boolean,fullWidth:Boolean,errorMessage:String,label:String,disabled:Boolean,width:String},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["input","enter"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=o.useModel(t,"modelValue"),s=t,i=o.computed(()=>s.width||s.height?{width:s.width,height:s.height}:null);return(a,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["scope-textarea",{"-full-width":t.fullWidth}])},[t.label?(o.openBlock(),o.createElementBlock("div",pw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("textarea",{disabled:t.disabled,class:o.normalizeClass([{"-invalid":t.invalid}]),"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),style:o.normalizeStyle(i.value),placeholder:t.placeholder,onInput:l[1]||(l[1]=c=>n("input")),veeBind:t.veeBind,onKeyup:l[2]||(l[2]=o.withKeys(c=>n("enter"),["enter"])),maxlength:t.maxLength},null,46,gw),[[o.vModelText,r.value]]),t.invalid?(o.openBlock(),o.createElementBlock("div",_w,o.toDisplayString(t.errorMessage),1)):o.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-18bb6f92"]]),E0=t=>(o.pushScopeId("data-v-bf2f717d"),t=t(),o.popScopeId(),t),ww={class:"scope-dropzone__container"},bw={key:0,class:"scope-dropzone__label"},kw={class:"scope-dropzone__content"},Cw=E0(()=>o.createElementVNode("div",{class:"scope-dropzone__prompt"},"Drop file here or click to upload",-1)),xw=E0(()=>o.createElementVNode("div",{class:"scope-dropzone__or"},"OR",-1)),Mw={key:1,class:"scope-dropzone__files"},vw={class:"scope-dropzone__file"},Sw={class:"scope-dropzone__file__img-wrapper"},Tw=["src"],Dw={class:"scope-dropzone__file__options"},Ow={class:"scope-dropzone__file__name"},Ew=De({__name:"Dropzone",props:o.mergeModels({fullWidth:Boolean,label:String,limit:{type:Number,default:5},lengthError:String},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{error:e}=eh(),n=t,r=o.useModel(t,"modelValue"),s=o.ref(null);o.ref(null);const i=o.ref(!1),a=o.ref([]),l=()=>{s.value.click()},c=f=>{if(f.dataTransfer.files.length){s.value.files=f.dataTransfer.files;for(var m=0,g=files.length;m<g;m++)r.value.items.length<5&&(r.value.items.add(files[m]),h(f.target.files[0]))}i.value=!1},d=f=>{r.value.items.length<5?(r.value.items.add(f.target.files[0]),h(f.target.files[0])):e(n.lengthError)},u=f=>{let m=new DataTransfer;a.value.forEach((g,p)=>{let _=r.value.items[p].getAsFile();p!==f&&m.items.add(_)}),r.value=m,a.value.splice(f,1)},h=f=>{const m=URL.createObjectURL(f);a.value.push({name:f.name,url:m})};return o.onMounted(()=>{r.value||(r.value=new DataTransfer)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",ww,[t.label?(o.openBlock(),o.createElementBlock("div",bw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["scope-dropzone",{"-over":i.value}]),onDragover:m[0]||(m[0]=o.withModifiers(g=>i.value=!0,["prevent"])),onDragend:m[1]||(m[1]=g=>i.value=!1),onDragleave:m[2]||(m[2]=g=>i.value=!1),onDrop:o.withModifiers(c,["prevent"])},[o.createElementVNode("div",kw,[o.createVNode(o.unref(Ve),{icon:"file-bend"}),Cw,xw,o.createVNode(o.unref(ha),{onClick:l,"cta-text":"Browse files",size:"sm",view:"secondary-blue"})]),o.createElementVNode("input",{ref_key:"input",ref:s,type:"file",name:"myFile",class:"scope-dropzone__input",onChange:d},null,544)],34),a.value.length?(o.openBlock(),o.createElementBlock("div",Mw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(g,p)=>(o.openBlock(),o.createElementBlock("div",vw,[o.createElementVNode("div",Sw,[o.createElementVNode("img",{class:"scope-dropzone__file__img",src:g.url},null,8,Tw),o.createElementVNode("div",Dw,[o.createVNode(o.unref(Ve),{icon:"success",class:"scope-dropzone__file__success"}),o.createVNode(o.unref(Ve),{icon:"trash",class:"scope-dropzone__file__remove",onClick:_=>u(p)},null,8,["onClick"])])]),o.createElementVNode("div",Ow,o.toDisplayString(g.name),1)]))),256))])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bf2f717d"]]),$0=t=>(o.pushScopeId("data-v-c6866516"),t=t(),o.popScopeId(),t),$w={class:"sidebar-popup-container"},Pw={class:"sidebar-popup__profile-info"},Lw=["src"],Nw={key:1,class:"sidebar-popup__profile-info__letter"},Vw={class:"sidebar-popup__profile-info__wrapper"},Bw={class:"sidebar-popup__profile-info__name"},Aw={class:"sidebar-popup__profile-info__e-mail"},Fw=$0(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Rw={class:"sidebar-popup__tabs"},Iw=["onClick"],zw={class:"sidebar-popup__tab__icon-wrapper"},Hw={class:"sidebar-popup__tab__name"},Yw=$0(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Ww={class:"sidebar-popup__actions-buttons"},jw=De({__name:"SidebarPopup",props:{activeSection:String,user:Object},emits:["logout"],setup(t,{emit:e}){const n=t,r=e,s=o.ref(!1),i=o.ref(null),a=o.reactive([{name:"charts",isActive:!0},{name:"futures",isActive:!1},{name:"spot",isActive:!1},{name:"trading terminal",isActive:!1}]),l=o.computed(()=>n.user&&n.user.name?n.user.name.charAt(0):"U"),c=()=>{if(window!==void 0){const f=window.location.hostname==="localhost"?"http://localhost:8080":"https://scope360.io";window.open(`${f}/settings/profile`,"_self")}},d=f=>{f.isActive&&window.open(`https://${f.name}.scope360.io/`)},u=()=>{s.value=!s.value},h=f=>{i.value&&!i.value.contains(f.target)&&u()};return o.onMounted(()=>{document.addEventListener("click",h)}),o.onUnmounted(()=>{document.removeEventListener("click",h)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",$w,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup-container__icon-wrapper",{"-is-active":s.value}]),onClick:o.withModifiers(u,["stop"]),name:"popup-icon-wrapper"},[o.createVNode(Ve,{icon:"pop-up_opener"})],2),s.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"sidebar-popup",ref_key:"popupRef",ref:i},[o.createElementVNode("div",Pw,[t.user.image?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.user.image,class:"sidebar-popup__profile-info__photo"},null,8,Lw)):(o.openBlock(),o.createElementBlock("div",Nw,o.toDisplayString(l.value),1)),o.createElementVNode("div",Vw,[o.createElementVNode("div",Bw,o.toDisplayString(t.user.name),1),o.createElementVNode("div",Aw,o.toDisplayString(t.user.email),1)])]),Fw,o.createElementVNode("div",Rw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,g=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["sidebar-popup__tab",{"-is-active":g.name===t.activeSection},{"-is-disable":!g.isActive}]),onClick:p=>d(g)},[o.createElementVNode("div",zw,[o.createVNode(Ve,{icon:g.name.split(" ").join("_")},null,8,["icon"])]),o.createElementVNode("div",Hw,o.toDisplayString(g.name),1)],10,Iw))),256))]),Yw,o.createElementVNode("div",Ww,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup__settings",{"-is-active":t.activeSection==="settings"}]),onClick:c}," Settings ",2),o.createElementVNode("div",{class:"sidebar-popup__logout",onClick:m[0]||(m[0]=g=>r("logout"))},"Log out")])],512)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-c6866516"]]),Zw={class:"scope-tooltip"},hn=De({__name:"Tooltip",props:{alternative:Boolean},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Zw,[o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__icon-wrapper",{"-alternative":t.alternative}])},[o.createVNode(o.unref(Ve),{icon:"tip",class:"scope-tooltip__icon"})],2),o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__text",{"-alternative":t.alternative}])},[o.renderSlot(e.$slots,"default",{},void 0,!0)],2)]))}},[["__scopeId","data-v-4c8f32d0"]]),Uw={class:"no-more"},qw={class:"no-more__icon-wrapper"},Gw={class:"no-more__text-wrapper"},Kw={class:"no-more__title"},Xw={class:"no-more__subtitle"},jd=De({__name:"NoMore",props:{title:{type:String,default:"No more trades"},subtitle:{type:String,default:"No data available for the specified period"},icon:{type:String,default:"pie-chart"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Uw,[o.createElementVNode("div",qw,[o.createVNode(o.unref(Ve),{icon:t.icon},null,8,["icon"])]),o.createElementVNode("div",Gw,[o.createElementVNode("div",Kw,o.toDisplayString(t.title),1),o.createElementVNode("div",Xw,o.toDisplayString(t.subtitle),1)])]))}},[["__scopeId","data-v-f657b0dd"]]),P0=t=>(o.pushScopeId("data-v-2042001e"),t=t(),o.popScopeId(),t),Qw={class:"long-short"},Jw=P0(()=>o.createElementVNode("span",null,"L",-1)),eb={class:"long-short__item__text"},tb=P0(()=>o.createElementVNode("span",null,"S",-1)),nb={class:"long-short__item__text"},L0=De({__name:"LongShort",props:{long:{type:Number,default:0},short:{type:Number,default:0}},setup(t){const e=t,n=o.computed(()=>{const r=e.long/(e.long+e.short)*100;return isNaN(r)?50:r});return(r,s)=>(o.openBlock(),o.createElementBlock("div",Qw,[o.createElementVNode("div",{class:"long-short__item -long",style:o.normalizeStyle(`width: ${n.value}%`)},[Jw,o.createElementVNode("div",eb,o.toDisplayString(o.unref(jt)(t.long/(t.long+t.short)*100,1))+"%",1)],4),o.createElementVNode("div",{class:"long-short__item -short",style:o.normalizeStyle(`width: ${100-n.value}%`)},[tb,o.createElementVNode("div",nb,o.toDisplayString(o.unref(jt)(t.short/(t.long+t.short)*100,1))+"%",1)],4)]))}},[["__scopeId","data-v-2042001e"]]);/*!
|
|
17
|
+
*/var c0,Wr,mi,Vd,xs,d0,Bd,jy=function(){return typeof window<"u"},ur={},Ms=180/Math.PI,pi=Math.PI/180,gi=Math.atan2,u0=1e8,Ad=/([A-Z])/g,Zy=/(left|right|width|margin|padding|x)/i,Uy=/[\s,\(]\S/,Gn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Fd=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},qy=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},Gy=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},Ky=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},h0=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},f0=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Xy=function(e,n,r){return e.style[n]=r},Qy=function(e,n,r){return e.style.setProperty(n,r)},Jy=function(e,n,r){return e._gsap[n]=r},ew=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},tw=function(e,n,r,s,i){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(i,a)},nw=function(e,n,r,s,i){var a=e._gsap;a[n]=r,a.renderTransform(i,a)},et="transform",It=et+"Origin",rw=function t(e,n){var r=this,s=this.target,i=s.style,a=s._gsap;if(e in ur&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Gn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(l){return r.tfm[l]=hr(s,l)}):this.tfm[e]=a.x?a[e]:hr(s,e),e===It&&(this.tfm.zOrigin=a.zOrigin);else return Gn.transform.split(",").forEach(function(l){return t.call(r,l,n)});if(this.props.indexOf(et)>=0)return;a.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(It,n,"")),e=et}(i||n)&&this.props.push(e,n,i[e])},m0=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},sw=function(){var e=this.props,n=this.target,r=n.style,s=n._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?n[e[i]]=e[i+2]:e[i+2]?r[e[i]]=e[i+2]:r.removeProperty(e[i].substr(0,2)==="--"?e[i]:e[i].replace(Ad,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)s[a]=this.tfm[a];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),i=Bd(),(!i||!i.isStart)&&!r[et]&&(m0(r),s.zOrigin&&r[It]&&(r[It]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},p0=function(e,n){var r={target:e,props:[],revert:sw,save:rw};return e._gsap||Rt.core.getCache(e),n&&n.split(",").forEach(function(s){return r.save(s)}),r},g0,Rd=function(e,n){var r=Wr.createElementNS?Wr.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Wr.createElement(e);return r&&r.style?r:Wr.createElement(e)},Kn=function t(e,n,r){var s=getComputedStyle(e);return s[n]||s.getPropertyValue(n.replace(Ad,"-$1").toLowerCase())||s.getPropertyValue(n)||!r&&t(e,_i(n)||n,1)||""},_0="O,Moz,ms,Ms,Webkit".split(","),_i=function(e,n,r){var s=n||xs,i=s.style,a=5;if(e in i&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(_0[a]+e in i););return a<0?null:(a===3?"ms":a>=0?_0[a]:"")+e},Id=function(){jy()&&window.document&&(c0=window,Wr=c0.document,mi=Wr.documentElement,xs=Rd("div")||{style:{}},Rd("div"),et=_i(et),It=et+"Origin",xs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",g0=!!_i("perspective"),Bd=Rt.core.reverting,Vd=1)},zd=function t(e){var n=Rd("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,i=this.style.cssText,a;if(mi.appendChild(n),n.appendChild(this),this.style.display="block",e)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch{}else this._gsapBBox&&(a=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),mi.removeChild(n),this.style.cssText=i,a},y0=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},w0=function(e){var n;try{n=e.getBBox()}catch{n=zd.call(e,!0)}return n&&(n.width||n.height)||e.getBBox===zd||(n=zd.call(e,!0)),n&&!n.width&&!n.x&&!n.y?{x:+y0(e,["x","cx","x1"])||0,y:+y0(e,["y","cy","y1"])||0,width:0,height:0}:n},b0=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&w0(e))},vs=function(e,n){if(n){var r=e.style,s;n in ur&&n!==It&&(n=et),r.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(s==="--"?n:n.replace(Ad,"-$1").toLowerCase())):r.removeAttribute(n)}},jr=function(e,n,r,s,i,a){var l=new Ft(e._pt,n,r,0,1,a?f0:h0);return e._pt=l,l.b=s,l.e=i,e._props.push(r),l},k0={deg:1,rad:1,turn:1},iw={grid:1,flex:1},Zr=function t(e,n,r,s){var i=parseFloat(r)||0,a=(r+"").trim().substr((i+"").length)||"px",l=xs.style,c=Zy.test(n),d=e.tagName.toLowerCase()==="svg",u=(d?"client":"offset")+(c?"Width":"Height"),h=100,f=s==="px",m=s==="%",g,p,_,y;if(s===a||!i||k0[s]||k0[a])return i;if(a!=="px"&&!f&&(i=t(e,n,r,"px")),y=e.getCTM&&b0(e),(m||a==="%")&&(ur[n]||~n.indexOf("adius")))return g=y?e.getBBox()[c?"width":"height"]:e[u],ft(m?i/g*h:i/100*g);if(l[c?"width":"height"]=h+(f?a:s),p=~n.indexOf("adius")||s==="em"&&e.appendChild&&!d?e:e.parentNode,y&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Wr||!p.appendChild)&&(p=Wr.body),_=p._gsap,_&&m&&_.width&&c&&_.time===Qt.time&&!_.uncache)return ft(i/_.width*h);if(m&&(n==="height"||n==="width")){var C=e.style[n];e.style[n]=h+s,g=e[u],C?e.style[n]=C:vs(e,n)}else(m||a==="%")&&!iw[Kn(p,"display")]&&(l.position=Kn(e,"position")),p===e&&(l.position="static"),p.appendChild(xs),g=xs[u],p.removeChild(xs),l.position="absolute";return c&&m&&(_=_s(p),_.time=Qt.time,_.width=p[u]),ft(f?g*i/h:g&&i?h/g*i:0)},hr=function(e,n,r,s){var i;return Vd||Id(),n in Gn&&n!=="transform"&&(n=Gn[n],~n.indexOf(",")&&(n=n.split(",")[0])),ur[n]&&n!=="transform"?(i=po(e,s),i=n!=="transformOrigin"?i[n]:i.svg?i.origin:Ba(Kn(e,It))+" "+i.zOrigin+"px"):(i=e.style[n],(!i||i==="auto"||s||~(i+"").indexOf("calc("))&&(i=Va[n]&&Va[n](e,n,r)||Kn(e,n)||vf(e,n)||(n==="opacity"?1:0))),r&&!~(i+"").trim().indexOf(" ")?Zr(e,n,i,r)+r:i},ow=function(e,n,r,s){if(!r||r==="none"){var i=_i(n,e,1),a=i&&Kn(e,i,1);a&&a!==r?(n=i,r=a):n==="borderColor"&&(r=Kn(e,"borderTopColor"))}var l=new Ft(this._pt,e.style,n,0,1,i0),c=0,d=0,u,h,f,m,g,p,_,y,C,k,S,M;if(l.b=r,l.e=s,r+="",s+="",s==="auto"&&(p=e.style[n],e.style[n]=s,s=Kn(e,n)||s,p?e.style[n]=p:vs(e,n)),u=[r,s],Gf(u),r=u[0],s=u[1],f=r.match(li)||[],M=s.match(li)||[],M.length){for(;h=li.exec(s);)_=h[0],C=s.substring(c,h.index),g?g=(g+1)%5:(C.substr(-5)==="rgba("||C.substr(-5)==="hsla(")&&(g=1),_!==(p=f[d++]||"")&&(m=parseFloat(p)||0,S=p.substr((m+"").length),_.charAt(1)==="="&&(_=ci(m,_)+S),y=parseFloat(_),k=_.substr((y+"").length),c=li.lastIndex-k.length,k||(k=k||qt.units[n]||S,c===s.length&&(s+=k,l.e+=k)),S!==k&&(m=Zr(e,n,p,k)||0),l._pt={_next:l._pt,p:C||d===1?C:",",s:m,c:y-m,m:g&&g<4||n==="zIndex"?Math.round:0});l.c=c<s.length?s.substring(c,s.length):""}else l.r=n==="display"&&s==="none"?f0:h0;return yf.test(s)&&(l.e=0),this._pt=l,l},C0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},aw=function(e){var n=e.split(" "),r=n[0],s=n[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(e=r,r=s,s=e),n[0]=C0[r]||r,n[1]=C0[s]||s,n.join(" ")},lw=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,s=r.style,i=n.u,a=r._gsap,l,c,d;if(i==="all"||i===!0)s.cssText="",c=1;else for(i=i.split(","),d=i.length;--d>-1;)l=i[d],ur[l]&&(c=1,l=l==="transformOrigin"?It:et),vs(r,l);c&&(vs(r,et),a&&(a.svg&&r.removeAttribute("transform"),po(r,1),a.uncache=1,m0(s)))}},Va={clearProps:function(e,n,r,s,i){if(i.data!=="isFromStart"){var a=e._pt=new Ft(e._pt,n,r,0,0,lw);return a.u=s,a.pr=-10,a.tween=i,e._props.push(r),1}}},mo=[1,0,0,1,0,0],x0={},M0=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},v0=function(e){var n=Kn(e,et);return M0(n)?mo:n.substr(7).match(_f).map(ft)},Hd=function(e,n){var r=e._gsap||_s(e),s=e.style,i=v0(e),a,l,c,d;return r.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?mo:i):(i===mo&&!e.offsetParent&&e!==mi&&!r.svg&&(c=s.display,s.display="block",a=e.parentNode,(!a||!e.offsetParent)&&(d=1,l=e.nextElementSibling,mi.appendChild(e)),i=v0(e),c?s.display=c:vs(e,"display"),d&&(l?a.insertBefore(e,l):a?a.appendChild(e):mi.removeChild(e))),n&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Yd=function(e,n,r,s,i,a){var l=e._gsap,c=i||Hd(e,!0),d=l.xOrigin||0,u=l.yOrigin||0,h=l.xOffset||0,f=l.yOffset||0,m=c[0],g=c[1],p=c[2],_=c[3],y=c[4],C=c[5],k=n.split(" "),S=parseFloat(k[0])||0,M=parseFloat(k[1])||0,D,v,O,E;r?c!==mo&&(v=m*_-g*p)&&(O=S*(_/v)+M*(-p/v)+(p*C-_*y)/v,E=S*(-g/v)+M*(m/v)-(m*C-g*y)/v,S=O,M=E):(D=w0(e),S=D.x+(~k[0].indexOf("%")?S/100*D.width:S),M=D.y+(~(k[1]||k[0]).indexOf("%")?M/100*D.height:M)),s||s!==!1&&l.smooth?(y=S-d,C=M-u,l.xOffset=h+(y*m+C*p)-y,l.yOffset=f+(y*g+C*_)-C):l.xOffset=l.yOffset=0,l.xOrigin=S,l.yOrigin=M,l.smooth=!!s,l.origin=n,l.originIsAbsolute=!!r,e.style[It]="0px 0px",a&&(jr(a,l,"xOrigin",d,S),jr(a,l,"yOrigin",u,M),jr(a,l,"xOffset",h,l.xOffset),jr(a,l,"yOffset",f,l.yOffset)),e.setAttribute("data-svg-origin",S+" "+M)},po=function(e,n){var r=e._gsap||new Jf(e);if("x"in r&&!n&&!r.uncache)return r;var s=e.style,i=r.scaleX<0,a="px",l="deg",c=getComputedStyle(e),d=Kn(e,It)||"0",u,h,f,m,g,p,_,y,C,k,S,M,D,v,O,E,I,j,$,R,G,T,x,N,Z,ee,U,P,V,b,w,B;return u=h=f=p=_=y=C=k=S=0,m=g=1,r.svg=!!(e.getCTM&&b0(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(s[et]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[et]!=="none"?c[et]:"")),s.scale=s.rotate=s.translate="none"),v=Hd(e,r.svg),r.svg&&(r.uncache?(Z=e.getBBox(),d=r.xOrigin-Z.x+"px "+(r.yOrigin-Z.y)+"px",N=""):N=!n&&e.getAttribute("data-svg-origin"),Yd(e,N||d,!!N||r.originIsAbsolute,r.smooth!==!1,v)),M=r.xOrigin||0,D=r.yOrigin||0,v!==mo&&(j=v[0],$=v[1],R=v[2],G=v[3],u=T=v[4],h=x=v[5],v.length===6?(m=Math.sqrt(j*j+$*$),g=Math.sqrt(G*G+R*R),p=j||$?gi($,j)*Ms:0,C=R||G?gi(R,G)*Ms+p:0,C&&(g*=Math.abs(Math.cos(C*pi))),r.svg&&(u-=M-(M*j+D*R),h-=D-(M*$+D*G))):(B=v[6],b=v[7],U=v[8],P=v[9],V=v[10],w=v[11],u=v[12],h=v[13],f=v[14],O=gi(B,V),_=O*Ms,O&&(E=Math.cos(-O),I=Math.sin(-O),N=T*E+U*I,Z=x*E+P*I,ee=B*E+V*I,U=T*-I+U*E,P=x*-I+P*E,V=B*-I+V*E,w=b*-I+w*E,T=N,x=Z,B=ee),O=gi(-R,V),y=O*Ms,O&&(E=Math.cos(-O),I=Math.sin(-O),N=j*E-U*I,Z=$*E-P*I,ee=R*E-V*I,w=G*I+w*E,j=N,$=Z,R=ee),O=gi($,j),p=O*Ms,O&&(E=Math.cos(O),I=Math.sin(O),N=j*E+$*I,Z=T*E+x*I,$=$*E-j*I,x=x*E-T*I,j=N,T=Z),_&&Math.abs(_)+Math.abs(p)>359.9&&(_=p=0,y=180-y),m=ft(Math.sqrt(j*j+$*$+R*R)),g=ft(Math.sqrt(x*x+B*B)),O=gi(T,x),C=Math.abs(O)>2e-4?O*Ms:0,S=w?1/(w<0?-w:w):0),r.svg&&(N=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!M0(Kn(e,et)),N&&e.setAttribute("transform",N))),Math.abs(C)>90&&Math.abs(C)<270&&(i?(m*=-1,C+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,C+=C<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=h-((r.yPercent=h&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=f+a,r.scaleX=ft(m),r.scaleY=ft(g),r.rotation=ft(p)+l,r.rotationX=ft(_)+l,r.rotationY=ft(y)+l,r.skewX=C+l,r.skewY=k+l,r.transformPerspective=S+a,(r.zOrigin=parseFloat(d.split(" ")[2])||!n&&r.zOrigin||0)&&(s[It]=Ba(d)),r.xOffset=r.yOffset=0,r.force3D=qt.force3D,r.renderTransform=r.svg?dw:g0?S0:cw,r.uncache=0,r},Ba=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wd=function(e,n,r){var s=Et(n);return ft(parseFloat(n)+parseFloat(Zr(e,"x",r+"px",s)))+s},cw=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,S0(e,n)},Ss="0deg",go="0px",Ts=") ",S0=function(e,n){var r=n||this,s=r.xPercent,i=r.yPercent,a=r.x,l=r.y,c=r.z,d=r.rotation,u=r.rotationY,h=r.rotationX,f=r.skewX,m=r.skewY,g=r.scaleX,p=r.scaleY,_=r.transformPerspective,y=r.force3D,C=r.target,k=r.zOrigin,S="",M=y==="auto"&&e&&e!==1||y===!0;if(k&&(h!==Ss||u!==Ss)){var D=parseFloat(u)*pi,v=Math.sin(D),O=Math.cos(D),E;D=parseFloat(h)*pi,E=Math.cos(D),a=Wd(C,a,v*E*-k),l=Wd(C,l,-Math.sin(D)*-k),c=Wd(C,c,O*E*-k+k)}_!==go&&(S+="perspective("+_+Ts),(s||i)&&(S+="translate("+s+"%, "+i+"%) "),(M||a!==go||l!==go||c!==go)&&(S+=c!==go||M?"translate3d("+a+", "+l+", "+c+") ":"translate("+a+", "+l+Ts),d!==Ss&&(S+="rotate("+d+Ts),u!==Ss&&(S+="rotateY("+u+Ts),h!==Ss&&(S+="rotateX("+h+Ts),(f!==Ss||m!==Ss)&&(S+="skew("+f+", "+m+Ts),(g!==1||p!==1)&&(S+="scale("+g+", "+p+Ts),C.style[et]=S||"translate(0, 0)"},dw=function(e,n){var r=n||this,s=r.xPercent,i=r.yPercent,a=r.x,l=r.y,c=r.rotation,d=r.skewX,u=r.skewY,h=r.scaleX,f=r.scaleY,m=r.target,g=r.xOrigin,p=r.yOrigin,_=r.xOffset,y=r.yOffset,C=r.forceCSS,k=parseFloat(a),S=parseFloat(l),M,D,v,O,E;c=parseFloat(c),d=parseFloat(d),u=parseFloat(u),u&&(u=parseFloat(u),d+=u,c+=u),c||d?(c*=pi,d*=pi,M=Math.cos(c)*h,D=Math.sin(c)*h,v=Math.sin(c-d)*-f,O=Math.cos(c-d)*f,d&&(u*=pi,E=Math.tan(d-u),E=Math.sqrt(1+E*E),v*=E,O*=E,u&&(E=Math.tan(u),E=Math.sqrt(1+E*E),M*=E,D*=E)),M=ft(M),D=ft(D),v=ft(v),O=ft(O)):(M=h,O=f,D=v=0),(k&&!~(a+"").indexOf("px")||S&&!~(l+"").indexOf("px"))&&(k=Zr(m,"x",a,"px"),S=Zr(m,"y",l,"px")),(g||p||_||y)&&(k=ft(k+g-(g*M+p*v)+_),S=ft(S+p-(g*D+p*O)+y)),(s||i)&&(E=m.getBBox(),k=ft(k+s/100*E.width),S=ft(S+i/100*E.height)),E="matrix("+M+","+D+","+v+","+O+","+k+","+S+")",m.setAttribute("transform",E),C&&(m.style[et]=E)},uw=function(e,n,r,s,i){var a=360,l=xt(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?Ms:1),d=c-s,u=s+d+"deg",h,f;return l&&(h=i.split("_")[1],h==="short"&&(d%=a,d!==d%(a/2)&&(d+=d<0?a:-a)),h==="cw"&&d<0?d=(d+a*u0)%a-~~(d/a)*a:h==="ccw"&&d>0&&(d=(d-a*u0)%a-~~(d/a)*a)),e._pt=f=new Ft(e._pt,n,r,s,d,qy),f.e=u,f.u="deg",e._props.push(r),f},T0=function(e,n){for(var r in n)e[r]=n[r];return e},hw=function(e,n,r){var s=T0({},r._gsap),i="perspective,force3D,transformOrigin,svgOrigin",a=r.style,l,c,d,u,h,f,m,g;s.svg?(d=r.getAttribute("transform"),r.setAttribute("transform",""),a[et]=n,l=po(r,1),vs(r,et),r.setAttribute("transform",d)):(d=getComputedStyle(r)[et],a[et]=n,l=po(r,1),a[et]=d);for(c in ur)d=s[c],u=l[c],d!==u&&i.indexOf(c)<0&&(m=Et(d),g=Et(u),h=m!==g?Zr(r,c,d,g):parseFloat(d),f=parseFloat(u),e._pt=new Ft(e._pt,l,c,h,f-h,Fd),e._pt.u=g||0,e._props.push(c));T0(l,s)};At("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",s="Bottom",i="Left",a=(e<3?[n,r,s,i]:[n+i,n+r,s+r,s+i]).map(function(l){return e<2?t+l:"border"+l+t});Va[e>1?"border"+t:t]=function(l,c,d,u,h){var f,m;if(arguments.length<4)return f=a.map(function(g){return hr(l,g,d)}),m=f.join(" "),m.split(f[0]).length===5?f[0]:m;f=(u+"").split(" "),m={},a.forEach(function(g,p){return m[g]=f[p]=f[p]||f[(p-1)/2|0]}),l.init(c,m,h)}});var D0={name:"css",register:Id,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,s,i){var a=this._props,l=e.style,c=r.vars.startAt,d,u,h,f,m,g,p,_,y,C,k,S,M,D,v,O;Vd||Id(),this.styles=this.styles||p0(e),O=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(u=n[p],!(Kt[p]&&e0(p,n,r,s,e,i)))){if(m=typeof u,g=Va[p],m==="function"&&(u=u.call(r,s,e,i),m=typeof u),m==="string"&&~u.indexOf("random(")&&(u=ao(u)),g)g(this,e,p,u,r)&&(v=1);else if(p.substr(0,2)==="--")d=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",Hr.lastIndex=0,Hr.test(d)||(_=Et(d),y=Et(u)),y?_!==y&&(d=Zr(e,p,d,y)+y):_&&(u+=_),this.add(l,"setProperty",d,u,s,i,0,0,p),a.push(p),O.push(p,0,l[p]);else if(m!=="undefined"){if(c&&p in c?(d=typeof c[p]=="function"?c[p].call(r,s,e,i):c[p],xt(d)&&~d.indexOf("random(")&&(d=ao(d)),Et(d+"")||d==="auto"||(d+=qt.units[p]||Et(hr(e,p))||""),(d+"").charAt(1)==="="&&(d=hr(e,p))):d=hr(e,p),f=parseFloat(d),C=m==="string"&&u.charAt(1)==="="&&u.substr(0,2),C&&(u=u.substr(2)),h=parseFloat(u),p in Gn&&(p==="autoAlpha"&&(f===1&&hr(e,"visibility")==="hidden"&&h&&(f=0),O.push("visibility",0,l.visibility),jr(this,l,"visibility",f?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=Gn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),k=p in ur,k){if(this.styles.save(p),S||(M=e._gsap,M.renderTransform&&!n.parseTransform||po(e,n.parseTransform),D=n.smoothOrigin!==!1&&M.smooth,S=this._pt=new Ft(this._pt,l,et,0,1,M.renderTransform,M,0,-1),S.dep=1),p==="scale")this._pt=new Ft(this._pt,M,"scaleY",M.scaleY,(C?ci(M.scaleY,C+h):h)-M.scaleY||0,Fd),this._pt.u=0,a.push("scaleY",p),p+="X";else if(p==="transformOrigin"){O.push(It,0,l[It]),u=aw(u),M.svg?Yd(e,u,0,D,0,this):(y=parseFloat(u.split(" ")[2])||0,y!==M.zOrigin&&jr(this,M,"zOrigin",M.zOrigin,y),jr(this,l,p,Ba(d),Ba(u)));continue}else if(p==="svgOrigin"){Yd(e,u,1,D,0,this);continue}else if(p in x0){uw(this,M,p,f,C?ci(f,C+u):u);continue}else if(p==="smoothOrigin"){jr(this,M,"smooth",M.smooth,u);continue}else if(p==="force3D"){M[p]=u;continue}else if(p==="transform"){hw(this,u,e);continue}}else p in l||(p=_i(p)||p);if(k||(h||h===0)&&(f||f===0)&&!Uy.test(u)&&p in l)_=(d+"").substr((f+"").length),h||(h=0),y=Et(u)||(p in qt.units?qt.units[p]:_),_!==y&&(f=Zr(e,p,d,y)),this._pt=new Ft(this._pt,k?M:l,p,f,(C?ci(f,C+h):h)-f,!k&&(y==="px"||p==="zIndex")&&n.autoRound!==!1?Ky:Fd),this._pt.u=y||0,_!==y&&y!=="%"&&(this._pt.b=d,this._pt.r=Gy);else if(p in l)ow.call(this,e,p,d,C?C+u:u);else if(p in e)this.add(e,p,d||e[p],C?C+u:u,s,i);else if(p!=="parseTransform"){ud(p,u);continue}k||(p in l?O.push(p,0,l[p]):O.push(p,1,d||e[p])),a.push(p)}}v&&o0(this)},render:function(e,n){if(n.tween._time||!Bd())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:hr,aliases:Gn,getSetter:function(e,n,r){var s=Gn[n];return s&&s.indexOf(",")<0&&(n=s),n in ur&&n!==It&&(e._gsap.x||hr(e,"x"))?r&&d0===r?n==="scale"?ew:Jy:(d0=r||{})&&(n==="scale"?tw:nw):e.style&&!id(e.style[n])?Xy:~n.indexOf("-")?Qy:Od(e,n)},core:{_removeProperty:vs,_getMatrix:Hd}};Rt.utils.checkPrefix=_i,Rt.core.getStyleSaver=p0,function(t,e,n,r){var s=At(t+","+e+","+n,function(i){ur[i]=1});At(e,function(i){qt.units[i]="deg",x0[i]=1}),Gn[s[13]]=t+","+e,At(r,function(i){var a=i.split(":");Gn[a[1]]=s[a[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),At("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){qt.units[t]="px"}),Rt.registerPlugin(D0);var Ur=Rt.registerPlugin(D0)||Rt;Ur.core.Tween;const fw={__name:"Confetti",setup(t){function e(r){let s=100,i=r.offsetWidth,a=r.offsetHeight;for(let u=0;u<s;u++){let h=document.createElement("div");h.classList.add("dot"),r.append(h),Ur.set(h,{x:c(i),y:d(-100,100),opacity:1,scale:c(.5)+.5,backgroundColor:"hsl("+d(170,360)+",50%,50%)"}),l(h)}function l(u){Ur.set(r,{display:"block"}),Ur.to(r,{autoAlpha:1,duration:2,delay:1}),Ur.to(u,c(5)+4,{y:a,ease:Wy.easeNone,repeat:-1,delay:-5}),Ur.to(u,c(5)+1,{x:"+=70",repeat:-1,yoyo:!0,ease:Nd.easeInOut}),Ur.to(u,c(5)+1,{scaleX:.2,rotation:c(360),repeat:-1,yoyo:!0,ease:Nd.easeInOut}),Ur.to(u,c(1)+.5,{opacity:0,repeat:-1,yoyo:!0,ease:Nd.easeInOut})}function c(u){return Math.random()*u}function d(u,h){return u+Math.floor(Math.random()*(h-u))}}const n=o.ref(null);return o.onMounted(()=>{n.value&&e(n.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"confetti",ref:n,class:"confetti"},null,512))}},mw={class:"toast__content"},O0=De(o.defineComponent({__name:"Toast",props:{type:{type:String,default:"success"},textOnClose:{type:String},message:{type:String,default:""},action:{type:Object,default:void 0},duration:{type:Number}},setup(t){const e=t,n=o.ref(null),r=()=>{var a,l,c,d;(a=e.action)!=null&&a.label?(l=e.action)==null||l.callback():(d=(c=n.value)==null?void 0:c.parentElement)==null||d.remove()},s=o.computed(()=>e.type==="success"?"check-circle-fill":"circle-close"),i=o.computed(()=>e.type==="success"?"-success":e.type==="info"?"-info":"-error");return(a,l)=>(o.openBlock(),o.createBlock(o.Transition,null,{default:o.withCtx(()=>{var c;return[o.createElementVNode("div",{ref_key:"toast",ref:n,class:"toast"},[o.createElementVNode("div",mw,[o.createElementVNode("div",{class:o.normalizeClass(["toast__icon-wrapper",i.value])},[o.createVNode(Ve,{icon:s.value},null,8,["icon"])],2),o.withDirectives(o.createElementVNode("div",{class:"toast__text"},o.toDisplayString(t.message),513),[[o.vShow,t.message.length]])]),o.createElementVNode("div",{class:"toast__dismiss",onClick:r},o.toDisplayString((c=t.action)!=null&&c.label?t.action.label:t.textOnClose),1)],512)]}),_:1}))}}),[["__scopeId","data-v-cddb489d"]]),pw={key:0,class:"scope-textarea__label"},gw=["disabled","placeholder","veeBind","maxlength"],_w={key:1,class:"scope-textarea__error"},yw=De({__name:"Textarea",props:o.mergeModels({maxLength:{type:Number,default:524288},placeholder:String,veeBind:Object,invalid:Boolean,fullWidth:Boolean,errorMessage:String,label:String,disabled:Boolean,width:String},{modelValue:{},modelModifiers:{}}),emits:o.mergeModels(["input","enter"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=o.useModel(t,"modelValue"),s=t,i=o.computed(()=>s.width||s.height?{width:s.width,height:s.height}:null);return(a,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["scope-textarea",{"-full-width":t.fullWidth}])},[t.label?(o.openBlock(),o.createElementBlock("div",pw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("textarea",{disabled:t.disabled,class:o.normalizeClass([{"-invalid":t.invalid}]),"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),style:o.normalizeStyle(i.value),placeholder:t.placeholder,onInput:l[1]||(l[1]=c=>n("input")),veeBind:t.veeBind,onKeyup:l[2]||(l[2]=o.withKeys(c=>n("enter"),["enter"])),maxlength:t.maxLength},null,46,gw),[[o.vModelText,r.value]]),t.invalid?(o.openBlock(),o.createElementBlock("div",_w,o.toDisplayString(t.errorMessage),1)):o.createCommentVNode("",!0)],2))}},[["__scopeId","data-v-18bb6f92"]]),E0=t=>(o.pushScopeId("data-v-04fd1eb2"),t=t(),o.popScopeId(),t),ww={class:"scope-dropzone__container"},bw={key:0,class:"scope-dropzone__label"},kw={class:"scope-dropzone__content"},Cw=E0(()=>o.createElementVNode("div",{class:"scope-dropzone__prompt"},"Drop file here or click to upload",-1)),xw=E0(()=>o.createElementVNode("div",{class:"scope-dropzone__or"},"OR",-1)),Mw={key:1,class:"scope-dropzone__files"},vw={class:"scope-dropzone__file"},Sw={class:"scope-dropzone__file__img-wrapper"},Tw=["src"],Dw={class:"scope-dropzone__file__options"},Ow={class:"scope-dropzone__file__name"},Ew=De({__name:"Dropzone",props:o.mergeModels({fullWidth:Boolean,label:String,limit:{type:Number,default:5},lengthError:String},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{error:e}=eh(),n=t,r=o.useModel(t,"modelValue"),s=o.ref(null);o.ref(null);const i=o.ref(!1),a=o.ref([]),l=()=>{s.value.click()},c=f=>{if(f.dataTransfer.files.length){s.value.files=f.dataTransfer.files;for(var m=0,g=files.length;m<g;m++)r.value.items.length<5&&(r.value.items.add(files[m]),h(f.target.files[0]))}i.value=!1},d=f=>{r.value.items.length<5?(r.value.items.add(f.target.files[0]),h(f.target.files[0])):e(n.lengthError)},u=f=>{let m=new DataTransfer;a.value.forEach((g,p)=>{let _=r.value.items[p].getAsFile();p!==f&&m.items.add(_)}),r.value=m,a.value.splice(f,1)},h=f=>{const m=URL.createObjectURL(f);a.value.push({name:f.name,url:m})};return o.onMounted(()=>{r.value||(r.value=new DataTransfer)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",ww,[t.label?(o.openBlock(),o.createElementBlock("div",bw,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["scope-dropzone",{"-over":i.value,"-full-width":t.fullWidth}]),onDragover:m[0]||(m[0]=o.withModifiers(g=>i.value=!0,["prevent"])),onDragend:m[1]||(m[1]=g=>i.value=!1),onDragleave:m[2]||(m[2]=g=>i.value=!1),onDrop:o.withModifiers(c,["prevent"])},[o.createElementVNode("div",kw,[o.createVNode(o.unref(Ve),{icon:"file-bend"}),Cw,xw,o.createVNode(o.unref(ha),{onClick:l,"cta-text":"Browse files",size:"sm",view:"secondary-blue"})]),o.createElementVNode("input",{ref_key:"input",ref:s,type:"file",name:"myFile",class:"scope-dropzone__input",onChange:d},null,544)],34),a.value.length?(o.openBlock(),o.createElementBlock("div",Mw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,(g,p)=>(o.openBlock(),o.createElementBlock("div",vw,[o.createElementVNode("div",Sw,[o.createElementVNode("img",{class:"scope-dropzone__file__img",src:g.url},null,8,Tw),o.createElementVNode("div",Dw,[o.createVNode(o.unref(Ve),{icon:"success",class:"scope-dropzone__file__success"}),o.createVNode(o.unref(Ve),{icon:"trash",class:"scope-dropzone__file__remove",onClick:_=>u(p)},null,8,["onClick"])])]),o.createElementVNode("div",Ow,o.toDisplayString(g.name),1)]))),256))])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-04fd1eb2"]]),$0=t=>(o.pushScopeId("data-v-c6866516"),t=t(),o.popScopeId(),t),$w={class:"sidebar-popup-container"},Pw={class:"sidebar-popup__profile-info"},Lw=["src"],Nw={key:1,class:"sidebar-popup__profile-info__letter"},Vw={class:"sidebar-popup__profile-info__wrapper"},Bw={class:"sidebar-popup__profile-info__name"},Aw={class:"sidebar-popup__profile-info__e-mail"},Fw=$0(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Rw={class:"sidebar-popup__tabs"},Iw=["onClick"],zw={class:"sidebar-popup__tab__icon-wrapper"},Hw={class:"sidebar-popup__tab__name"},Yw=$0(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Ww={class:"sidebar-popup__actions-buttons"},jw=De({__name:"SidebarPopup",props:{activeSection:String,user:Object},emits:["logout"],setup(t,{emit:e}){const n=t,r=e,s=o.ref(!1),i=o.ref(null),a=o.reactive([{name:"charts",isActive:!0},{name:"futures",isActive:!1},{name:"spot",isActive:!1},{name:"trading terminal",isActive:!1}]),l=o.computed(()=>n.user&&n.user.name?n.user.name.charAt(0):"U"),c=()=>{if(window!==void 0){const f=window.location.hostname==="localhost"?"http://localhost:8080":"https://scope360.io";window.open(`${f}/settings/profile`,"_self")}},d=f=>{f.isActive&&window.open(`https://${f.name}.scope360.io/`)},u=()=>{s.value=!s.value},h=f=>{i.value&&!i.value.contains(f.target)&&u()};return o.onMounted(()=>{document.addEventListener("click",h)}),o.onUnmounted(()=>{document.removeEventListener("click",h)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",$w,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup-container__icon-wrapper",{"-is-active":s.value}]),onClick:o.withModifiers(u,["stop"]),name:"popup-icon-wrapper"},[o.createVNode(Ve,{icon:"pop-up_opener"})],2),s.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"sidebar-popup",ref_key:"popupRef",ref:i},[o.createElementVNode("div",Pw,[t.user.image?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.user.image,class:"sidebar-popup__profile-info__photo"},null,8,Lw)):(o.openBlock(),o.createElementBlock("div",Nw,o.toDisplayString(l.value),1)),o.createElementVNode("div",Vw,[o.createElementVNode("div",Bw,o.toDisplayString(t.user.name),1),o.createElementVNode("div",Aw,o.toDisplayString(t.user.email),1)])]),Fw,o.createElementVNode("div",Rw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,g=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["sidebar-popup__tab",{"-is-active":g.name===t.activeSection},{"-is-disable":!g.isActive}]),onClick:p=>d(g)},[o.createElementVNode("div",zw,[o.createVNode(Ve,{icon:g.name.split(" ").join("_")},null,8,["icon"])]),o.createElementVNode("div",Hw,o.toDisplayString(g.name),1)],10,Iw))),256))]),Yw,o.createElementVNode("div",Ww,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup__settings",{"-is-active":t.activeSection==="settings"}]),onClick:c}," Settings ",2),o.createElementVNode("div",{class:"sidebar-popup__logout",onClick:m[0]||(m[0]=g=>r("logout"))},"Log out")])],512)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-c6866516"]]),Zw={class:"scope-tooltip"},hn=De({__name:"Tooltip",props:{alternative:Boolean},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Zw,[o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__icon-wrapper",{"-alternative":t.alternative}])},[o.createVNode(o.unref(Ve),{icon:"tip",class:"scope-tooltip__icon"})],2),o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__text",{"-alternative":t.alternative}])},[o.renderSlot(e.$slots,"default",{},void 0,!0)],2)]))}},[["__scopeId","data-v-4c8f32d0"]]),Uw={class:"no-more"},qw={class:"no-more__icon-wrapper"},Gw={class:"no-more__text-wrapper"},Kw={class:"no-more__title"},Xw={class:"no-more__subtitle"},jd=De({__name:"NoMore",props:{title:{type:String,default:"No more trades"},subtitle:{type:String,default:"No data available for the specified period"},icon:{type:String,default:"pie-chart"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Uw,[o.createElementVNode("div",qw,[o.createVNode(o.unref(Ve),{icon:t.icon},null,8,["icon"])]),o.createElementVNode("div",Gw,[o.createElementVNode("div",Kw,o.toDisplayString(t.title),1),o.createElementVNode("div",Xw,o.toDisplayString(t.subtitle),1)])]))}},[["__scopeId","data-v-f657b0dd"]]),P0=t=>(o.pushScopeId("data-v-2042001e"),t=t(),o.popScopeId(),t),Qw={class:"long-short"},Jw=P0(()=>o.createElementVNode("span",null,"L",-1)),eb={class:"long-short__item__text"},tb=P0(()=>o.createElementVNode("span",null,"S",-1)),nb={class:"long-short__item__text"},L0=De({__name:"LongShort",props:{long:{type:Number,default:0},short:{type:Number,default:0}},setup(t){const e=t,n=o.computed(()=>{const r=e.long/(e.long+e.short)*100;return isNaN(r)?50:r});return(r,s)=>(o.openBlock(),o.createElementBlock("div",Qw,[o.createElementVNode("div",{class:"long-short__item -long",style:o.normalizeStyle(`width: ${n.value}%`)},[Jw,o.createElementVNode("div",eb,o.toDisplayString(o.unref(jt)(t.long/(t.long+t.short)*100,1))+"%",1)],4),o.createElementVNode("div",{class:"long-short__item -short",style:o.normalizeStyle(`width: ${100-n.value}%`)},[tb,o.createElementVNode("div",nb,o.toDisplayString(o.unref(jt)(t.short/(t.long+t.short)*100,1))+"%",1)],4)]))}},[["__scopeId","data-v-2042001e"]]);/*!
|
|
18
18
|
* @kurkle/color v0.3.2
|
|
19
19
|
* https://github.com/kurkle/color#readme
|
|
20
20
|
* (c) 2023 Jukka Kurkela
|