Comparing version 3.10.1 to 3.10.2
/*! | ||
* CSSPlugin 3.10.1 | ||
* CSSPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* CSSRulePlugin 3.10.1 | ||
* CSSRulePlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -52,3 +52,3 @@ * | ||
export var CSSRulePlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "cssRule", | ||
@@ -55,0 +55,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* CustomEase 3.10.1 | ||
* CustomEase 3.10.2 | ||
* https://greensock.com | ||
@@ -370,3 +370,3 @@ * | ||
_getGSAP() && gsap.registerPlugin(CustomEase); | ||
CustomEase.version = "3.10.1"; | ||
CustomEase.version = "3.10.2"; | ||
export { CustomEase as default }; |
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* CSSRulePlugin 3.10.1 | ||
* CSSRulePlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -55,3 +55,3 @@ * | ||
var CSSRulePlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "cssRule", | ||
@@ -58,0 +58,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* CSSRulePlugin 3.10.1 | ||
* CSSRulePlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.10.1",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.10.2",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -358,3 +358,3 @@ (function (global, factory) { | ||
/*! | ||
* CustomEase 3.10.1 | ||
* CustomEase 3.10.2 | ||
* https://greensock.com | ||
@@ -708,3 +708,3 @@ * | ||
_getGSAP() && gsap.registerPlugin(CustomEase); | ||
CustomEase.version = "3.10.1"; | ||
CustomEase.version = "3.10.2"; | ||
@@ -711,0 +711,0 @@ exports.CustomEase = CustomEase; |
/*! | ||
* CustomEase 3.10.1 | ||
* CustomEase 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.10.1",e.CustomEase=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.10.2",e.CustomEase=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
/*! | ||
* Draggable 3.10.1 | ||
* Draggable 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function w(e,t){if(e.parentNode&&(h||T(e))){var n=C(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",i=2!==t?0:100,a=3===t?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",s=h.createElementNS?h.createElementNS(o.replace(/^https/,"http"),r):h.createElement(r);return t&&(n?(g=g||w(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),g.appendChild(s)):(f||((f=w(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",f.appendChild(s))),s}throw"Need document and parent."}function A(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var h,p,r,i,f,g,x,m,y,t,v="transform",b=v+"Origin",T=function _setDoc(e){var t=e.ownerDocument||e;!(v in e.style)&&"msTransform"in e.style&&(b=(v="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(p=window,x=new fe,t){r=(h=t).documentElement,i=t.body,(m=h.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),o=t.createElement("div");i.appendChild(n),n.appendChild(o),n.style.position="static",n.style[v]="translate3d(0,0,1px)",y=o.offsetParent!==n,i.removeChild(n)}return t},D=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},E=[],M=[],L=function _getDocScrollTop(){return p.pageYOffset||h.scrollTop||r.scrollTop||i.scrollTop||0},S=function _getDocScrollLeft(){return p.pageXOffset||h.scrollLeft||r.scrollLeft||i.scrollLeft||0},C=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},N=function _isFixed(e){return"fixed"===p.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},O=function _placeSiblings(e,t){var n,o,r,i,a,l,s=C(e),c=e===s,d=s?E:M,u=e.parentNode;if(e===p)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),n=s?g:f,s)c?(i=-(r=function _getCTM(e){var t,n=e.getCTM();return n||(t=e.style[v],e.style[v]="none",e.appendChild(m),n=m.getCTM(),e.removeChild(m),t?e.style[v]=t:e.style.removeProperty(v.replace(/([A-Z])/g,"-$1").toLowerCase())),n||x.clone()}(e)).e/r.a,a=-r.f/r.d,o=x):(r=e.getBBox(),i=(o=(o=e.transform?e.transform.baseVal:{}).numberOfItems?1<o.numberOfItems?function _consolidate(e){for(var t=new fe,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix:x).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),(c?s:u).appendChild(n),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")");else{if(i=a=0,y)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(p.getComputedStyle(r)[v]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(l=p.getComputedStyle(e)).position&&"fixed"!==l.position)for(o=e.offsetParent;u&&u!==o;)i+=u.scrollLeft||0,a+=u.scrollTop||0,u=u.parentNode;(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",r[v]=l[v],r[b]=l[b],r.position="fixed"===l.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},fe=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return A(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,u=e.e,p=e.f;return A(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+u*t+p*o,a+u*n+p*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),A(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n,o){if(!e||!e.parentNode||(h||T(e)).documentElement===e)return new fe;var r=D(e),i=C(e)?E:M,a=O(e,n),l=i[0].getBoundingClientRect(),s=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),d=a.parentNode,u=!o&&N(e),p=new fe((s.left-l.left)/100,(s.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(u?0:S()),l.top+(u?0:L()));if(d.removeChild(a),r)for(l=r.length;l--;)(s=r[l]).scaleX=s.scaleY=0,s.renderTransform(1,s);return t?p.inverse():p}function V(){return"undefined"!=typeof window}function W(){return ge||V()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function X(e){return"function"==typeof e}function Y(e){return"object"==typeof e}function Z(e){return void 0===e}function $(){return!1}function ba(e){return Math.round(1e4*e)/1e4}function da(e,t){var n=me.createElementNS?me.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):me.createElement(e);return n.style?n:me.createElement(e)}function pa(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ra(e,t){for(var n,o=e.length;o--;)t?e[o].style.touchAction=t:e[o].style.removeProperty("touch-action"),(n=e[o].children)&&n.length&&ra(n,t)}function sa(){return _e.forEach(function(e){return e()})}function ua(){return!_e.length&&ge.ticker.remove(sa)}function va(e){for(var t=_e.length;t--;)_e[t]===e&&_e.splice(t,1);ge.to(ua,{overwrite:!0,delay:15,duration:0,onComplete:ua,data:"_draggable"})}function xa(e,t,n,o){if(e.addEventListener){var r=De[t];o=o||(d?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function ya(e,t,n){if(e.removeEventListener){var o=De[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function za(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Ba(e){Me=e.touches&&Ee<e.touches.length,ya(e.target,"touchend",Ba)}function Ca(e){Me=e.touches&&Ee<e.touches.length,xa(e.target,"touchend",Ba)}function Da(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ea(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Fa(e,t){xa(e,"scroll",t),Fe(e.parentNode)||Fa(e.parentNode,t)}function Ga(e,t){ya(e,"scroll",t),Fe(e.parentNode)||Ga(e.parentNode,t)}function Ia(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Fe(e)?Math.max(ye[o],l[o])-(xe["inner"+n]||ye[r]||l[r]):e[o]-e[r])}function Ja(e,t){var n=Ia(e,"x"),o=Ia(e,"y");Fe(e)?e=He:Ja(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ka(e,t,n){var o=e.style;o&&(Z(o[t])&&(t=c(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function La(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Na(e){if(e===xe)return u.left=u.top=0,u.width=u.right=ye.clientWidth||e.innerWidth||l.clientWidth||0,u.height=u.bottom=(e.innerHeight||0)-20<ye.clientHeight?ye.clientHeight:e.innerHeight||l.clientHeight||0,u;var t=e.ownerDocument||me,n=Z(e.pageX)?e.nodeType||Z(e.left)||Z(e.top)?be(e)[0].getBoundingClientRect():e:{left:e.pageX-Ea(t),top:e.pageY-Da(t),right:e.pageX-Ea(t)+1,bottom:e.pageY-Da(t)+1};return Z(n.right)&&!Z(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):Z(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Oa(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return X(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Pa(e,t){var n,o,r,i=be(e)[0];return i.nodeType||i===xe?R(i,t):Z(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Sa(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,Y(i[0]))for(l=0;l<s;l++)o[l]=pa(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else X(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(Y(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Ta(e){var t;return!(!e||!e.getAttribute||e===l)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!o.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Ta(e.parentNode))}function Ua(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:$,ge.set(n,{lazy:!0,userSelect:t?"text":"none"})}function Ya(i,r){i=ge.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,u=document.createElement("div"),p=u.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,y=i.scrollHeight,v=0,w=0,b=0;P&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):_&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,ge.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d),0<=f+v&&(p.paddingRight=f+v+"px")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,ge.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=u.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===u.parentNode&&i.removeChild(u)},this.enable=function(){if((t=i.firstChild)!==u){for(;t;)e=t.nextSibling,u.appendChild(t),t=e;i.appendChild(u),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&u.offsetHeight===s&&m===i.scrollWidth&&y===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=La(i),r&&!e||(p.display="block",p.width="auto",p.paddingRight="0px",(v=Math.max(0,i.scrollWidth-i.clientWidth))&&(v+=parseFloat(t.paddingLeft)+(k?parseFloat(t.paddingRight):0))),p.display="inline-block",p.position="relative",p.overflow="visible",p.verticalAlign="top",p.boxSizing="content-box",p.width="100%",p.paddingRight=v+"px",k&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,y=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=u.offsetHeight,p.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=u,this.element=i,this._skip=!1,this.enable()}function Za(e){if(V()&&document.body){var t=window&&window.navigator;xe=window,me=document,ye=me.documentElement,l=me.body,s=da("div"),Ye=!!window.PointerEvent,(ve=da("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===ve.style.cursor?"grab":"move",Xe=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),Te="ontouchstart"in ye&&"orientation"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=da("div"),r=da("div"),i=r.style,a=l,i.display="inline-block",i.position="relative",o.style.cssText=r.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),k=n,De=function(e){for(var t=e.split(","),n=(("onpointerdown"in s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in s?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ye.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),xa(me,"touchcancel",$),xa(xe,"touchmove",$),l&&l.addEventListener("touchstart",$),xa(me,"contextmenu",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag()}),ge=we=W()}var n,o,r,i,a;ge?(Le=ge.plugins.inertia,c=ge.utils.checkPrefix,_=c(_),Ce=c(Ce),be=ge.utils.toArray,P=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var ge,xe,me,ye,l,s,ve,we,c,be,d,Te,De,Ee,Me,Xe,Le,Se,Ye,P,k,n,_="transform",Ce="transformOrigin",Ne=Array.isArray,Oe=180/Math.PI,Pe=1e20,a=new fe,ke=Date.now||function(){return(new Date).getTime()},_e=[],Re={},Ae=0,o=/^(?:a|input|textarea|button|select)$/i,Be=0,Ie={},He={},Fe=function _isRoot(e){return!(e&&e!==ye&&9!==e.nodeType&&e!==me.body&&e!==xe&&e.nodeType&&e.parentNode)},u={},ze={},R=function _getElementBounds(e,t){t=be(t)[0];var n,o,r,i,a,l,s,c,d,u,p,h,f,g,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||me;if(e===xe)r=Da(m),o=(n=Ea(m))+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),i=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===xe||Z(t))return e.getBoundingClientRect();n=r=0,x?(p=(u=e.getBBox()).width,h=u.height):(e.viewBox&&(u=e.viewBox.baseVal)&&(n=u.x||0,r=u.y||0,p=u.width,h=u.height),p||(u="border-box"===(f=La(e)).boxSizing,p=(parseFloat(f.width)||e.clientWidth||0)+(u?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(u?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=p,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),n=Math.min(l.x,s.x,c.x,d.x),r=Math.min(l.y,s.y,c.y,d.y),{left:n+((g=t.parentNode||{}).scrollLeft||0),top:r+(g.scrollTop||0),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},B=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t)||-1;-1<o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var We,I=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,We=B),Draggable.register=function register(e){ge=e,Za()},Draggable.create=function create(e,t){return we||Za(!0),be(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(be(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(ke()-Be)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Na(e),l=Na(t),s=a.top,c=a.left,d=a.right,u=a.bottom,p=a.width,h=a.height,f=l.left>d||l.right<c||l.top>u||l.bottom<s;return f||!n?!f:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(u,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?p*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,u){var e;e=We.call(this)||this,we||Za(1),h=be(h)[0],Le=Le||ge.plugins.inertia,e.vars=u=pa(u||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(u.dragResistance)||0,e.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,e.lockAxis=u.lockAxis,e.autoScroll=u.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!u.allowEventDefault,ge.getProperty(h,"x");function Og(e,t){return parseFloat(le.get(h,e,t))}function uh(e){return za(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function vh(e){if(J.autoScroll&&J.isDragging&&(ee||O)){var t,n,o,r,i,a,l,s,c=h,d=15*J.autoScroll;for(ee=!1,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=J.pointerX-He.scrollLeft,i=J.pointerY-He.scrollTop;c&&!n;)t=(n=Fe(c.parentNode))?He:c.parentNode,o=n?{bottom:Math.max(ye.clientHeight,xe.innerHeight||0),right:Math.max(ye.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,$&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-oe&&s?(ee=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/oe)|0)):i<o.top+te&&t.scrollTop&&(ee=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/te)|0)),l&&(t.scrollTop+=l)),U&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-ne&&s?(ee=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/ne)|0)):r<o.left+re&&t.scrollLeft&&(ee=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/re)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(xe.scrollTo(t.scrollLeft,t.scrollTop),pe(J.pointerX+a,J.pointerY+l)),c=t}if(O){var u=J.x,p=J.y;G?(J.deltaX=u-parseFloat(le.rotation),J.rotation=u,le.rotation=u+"deg",le.renderTransform(1,le)):f?($&&(J.deltaY=p-f.top(),f.top(p)),U&&(J.deltaX=u-f.left(),f.left(u))):W?($&&(J.deltaY=p-parseFloat(le.y),le.y=p+"px"),U&&(J.deltaX=u-parseFloat(le.x),le.x=u+"px"),le.renderTransform(1,le)):($&&(J.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),U&&(J.deltaX=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!g||e||H||(!(H=!0)===Oa(J,"drag","onDrag")&&(U&&(J.x-=J.deltaX),$&&(J.y-=J.deltaY),vh(!0)),H=!1)}O=!1}function wh(e,t){var n,o,r=J.x,i=J.y;h._gsap||(le=ge.core.getCache(h)),le.uncache&&ge.getProperty(h,"x"),W?(J.x=parseFloat(le.x),J.y=parseFloat(le.y)):G?J.x=J.rotation=parseFloat(le.rotation):f?(J.y=f.top(),J.x=f.left()):(J.y=parseFloat(h.style.top||(o=La(h))&&o.top)||0,J.x=parseFloat(h.style.left||(o||{}).left)||0),(P||k||_)&&!t&&(J.isDragging||J.isThrowing)&&(_&&(Ie.x=J.x,Ie.y=J.y,(n=_(Ie)).x!==J.x&&(J.x=n.x,O=!0),n.y!==J.y&&(J.y=n.y,O=!0)),P&&(n=P(J.x))!==J.x&&(J.x=n,G&&(J.rotation=n),O=!0),k&&((n=k(J.y))!==J.y&&(J.y=n),O=!0)),O&&vh(!0),e||(J.deltaX=J.x-r,J.deltaY=J.y-i,Oa(J,"throwupdate","onThrowUpdate"))}function xh(a,l,s,n){return null==l&&(l=-Pe),null==s&&(s=Pe),X(a)?function(e){var t=J.isPressed?1-J.edgeResistance:1;return a.call(J,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:Ne(a)?function(e){for(var t,n,o=a.length,r=0,i=Pe;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function zh(){var e,t,n,o;E=!1,f?(f.calibrate(),J.minX=L=-f.maxScrollLeft(),J.minY=C=-f.maxScrollTop(),J.maxX=M=J.maxY=S=0,E=!0):u.bounds&&(e=Pa(u.bounds,h.parentNode),G?(J.minX=L=e.left,J.maxX=M=e.left+e.width,J.minY=C=J.maxY=S=0):Z(u.bounds.maxX)&&Z(u.bounds.maxY)?(t=Pa(h,h.parentNode),J.minX=L=Math.round(Og(K,"px")+e.left-t.left),J.minY=C=Math.round(Og(V,"px")+e.top-t.top),J.maxX=M=Math.round(L+(e.width-t.width)),J.maxY=S=Math.round(C+(e.height-t.height))):(e=u.bounds,J.minX=L=e.minX,J.minY=C=e.minY,J.maxX=M=e.maxX,J.maxY=S=e.maxY),M<L&&(J.minX=M,J.maxX=M=L,L=J.minX),S<C&&(J.minY=S,J.maxY=S=C,C=J.minY),G&&(J.minRotation=L,J.maxRotation=M),E=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=Ne(n)||X(n),G?(P=xh(o?n:n.rotation,L,M,1),k=null):n.points?_=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<Pe?p*p:Pe,X(s)?function(e){var t,n,o,r=J.isPressed?1-J.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=u<a?u+(a-u)*r:a<d?d+(a-d)*r:a,(t=s.call(J,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<Pe&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:Ne(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=Pe;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=p?s[a]:e}:function(e){return e}}(o?n:n.points,L,M,C,S,n.radius,f?-1:1):(U&&(P=xh(o?n:n.x||n.left||n.scrollLeft,L,M,f?-1:1)),$&&(k=xh(o?n:n.y||n.top||n.scrollTop,C,S,f?-1:1))))}function Ah(){J.isThrowing=!1,Oa(J,"throwcomplete","onThrowComplete")}function Bh(){J.isThrowing=!1}function Ch(e,t){var n,o,r,i;e&&Le?(!0===e&&(n=u.snap||u.liveSnap||{},o=Ne(n)||X(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(G?10:1)},G?e.rotation=Sa(J,o?n:n.rotation,M,L,1,t):(U&&(e[K]=Sa(J,o?n:n.points||n.x||n.left,M,L,f?-1:1,t||"x"===J.lockedAxis)),$&&(e[V]=Sa(J,o?n:n.points||n.y||n.top,S,C,f?-1:1,t||"y"===J.lockedAxis)),(n.points||Ne(n)&&Y(n[0]))&&(e.linkedProps=K+","+V,e.radius=n.radius))),J.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-J.edgeResistance+.2:u.overshootTolerance,e.duration||(e.duration={max:Math.max(u.minDuration||0,"maxDuration"in u?u.maxDuration:2),min:isNaN(u.minDuration)?0===i||Y(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),J.tween=r=ge.to(f||h,{inertia:e,data:"_draggable",onComplete:Ah,onInterrupt:Bh,onUpdate:u.fastMode?Oa:wh,onUpdateParams:u.fastMode?[J,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),wh(!0,!0),J.endX=J.x,J.endY=J.y,G&&(J.endRotation=J.x),r.play(0),wh(!0,!0),f&&(f._skip=!1))):E&&J.applyBounds()}function Dh(e){var t,n=R;R=getGlobalMatrix(h.parentNode,!0),e&&J.isPressed&&!R.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),R.apply(t,t),w=t.x,b=t.y),R.equals(a)&&(R=null)}function Eh(){var e,t,n,o=1-J.edgeResistance,r=se?Ea(ce):0,i=se?Da(ce):0;Dh(!1),ze.x=J.pointerX-r,ze.y=J.pointerY-i,R&&R.apply(ze,ze),w=ze.x,b=ze.y,O&&(pe(J.pointerX,J.pointerY),vh(!0)),d=getGlobalMatrix(h),f?(zh(),D=f.top(),T=f.left()):(de()?(wh(!0,!0),zh()):J.applyBounds(),G?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(La(h)[Ce]||"0 0").split(" "),N=J.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),wh(!0,!0),t=J.pointerX-N.x-r,n=N.y-J.pointerY+i,T=J.x,D=J.y=Math.atan2(n,t)*Oe):(D=Og(V,"px"),T=Og(K,"px"))),E&&o&&(M<T?T=M+(T-M)/o:T<L&&(T=L-(L-T)/o),G||(S<D?D=S+(D-S)/o:D<C&&(D=C-(C-D)/o))),J.startX=T=ba(T),J.startY=D=ba(D)}function Gh(){!ve.parentNode||de()||J.isDragging||ve.parentNode.removeChild(ve)}function Hh(e,t){var n;if(!p||J.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&ke()-ae<30&&De[J.pointerEvent.type])z&&e&&p&&za(e);else{if(A=de(),J.pointerEvent=e,De[e.type]?(v=~e.type.indexOf("touch")?e.currentTarget||e.target:ce,xa(v,"touchend",he),xa(v,"touchmove",ue),xa(v,"touchcancel",he),xa(ce,"touchstart",Ca)):(v=null,xa(ce,"mousemove",ue)),I=null,Ye&&v||(xa(ce,"mouseup",he),e&&e.target&&xa(e.target,"mouseup",he)),y=ie.call(J,e.target)&&!1===u.dragClickables&&!t)return xa(e.target,"change",he),Oa(J,"pressInit","onPressInit"),Oa(J,"press","onPress"),Ua(q,!0),void(z=!1);if(B=!(!v||U==$||!1===J.vars.allowNativeTouchScrolling||J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(U?"y":"x"),(z=!B&&!J.allowEventDefault)&&(za(e),xa(xe,"touchforcechange",za)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,Ee++,function _addToRenderQueue(e){_e.push(e),1===_e.length&&ge.ticker.add(sa)}(vh),b=J.pointerY=e.pageY,w=J.pointerX=e.pageX,Oa(J,"pressInit","onPressInit"),(B||J.autoScroll)&&Ja(h.parentNode),!h.parentNode||!J.autoScroll||f||G||!h.parentNode._gsMaxScrollX||ve.parentNode||h.getBBox||(ve.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(ve)),Eh(),J.tween&&J.tween.kill(),J.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),J.tween=J.lockedAxis=null,!u.zIndexBoost&&(G||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),J.isPressed=!0,g=!(!u.onDrag&&!J._listeners.drag),s=!(!u.onMove&&!J._listeners.move),!1!==u.cursor||u.activeCursor)for(n=q.length;-1<--n;)ge.set(q[n],{cursor:u.activeCursor||u.cursor||("grab"===Se?"grabbing":Se)});Oa(J,"press","onPress")}}function Lh(e){if(e&&J.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(R?(w-=n*R.a+o*R.c,b-=o*R.d+n*R.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(J.pointerX,J.pointerY))}}function Mh(e){var t=ke(),n=t-ae<100,o=t-Q<50,r=n&&F===ae,i=J.pointerEvent&&J.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==J.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!J.pointerEvent||!J.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(F=ae);(J.isPressed||o||n)&&(l&&e.detail&&n&&!i||za(e)),n||o||(e&&e.target&&(J.pointerEvent=e),Oa(J,"click","onClick"))}function Nh(e){return R?{x:e.x*R.a+e.y*R.c+R.e,y:e.x*R.b+e.y*R.d+R.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,E,g,s,M,L,S,C,x,m,N,O,t,P,k,_,y,v,R,A,B,I,H,F,c,z,d,n=(u.type||"x,y").toLowerCase(),W=~n.indexOf("x")||~n.indexOf("y"),G=-1!==n.indexOf("rotation"),K=G?"rotation":W?"x":"left",V=W?"y":"top",U=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),$=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),j=u.minimumMovement||2,J=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),q=be(u.trigger||u.handle||h),o={},Q=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Ta,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return"fixed"===La(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),ce=h.ownerDocument||me,de=function isTweening(){return J.tween&&J.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Me&&J.isPressed&&e){if(t=(J.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m&&e.target!==h;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;v&&B&&!I&&(ze.x=e.pageX-(se?Ea(ce):0),ze.y=e.pageY-(se?Da(ce):0),R&&R.apply(ze,ze),n=ze.x,o=ze.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(j<i||j<a)||Xe&&B===I)&&(I=a<i&&U?"x":"y",B&&I!==B&&xa(xe,"touchforcechange",za),!1!==J.vars.lockAxisOnTouchScroll&&U&&$&&(J.lockedAxis="x"===I?"y":"x",X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,l)),Xe&&B===I))?he(l):(z=J.allowEventDefault||B&&(!I||B===I)||!1===l.cancelable?z&&!1:(za(l),!0),J.autoScroll&&(ee=!0),pe(e.pageX,e.pageY,s))}else z&&e&&p&&za(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-J.dragResistance,d=1-J.edgeResistance,u=J.pointerX,p=J.pointerY,h=D,f=J.x,g=J.y,x=J.endX,m=J.endY,y=J.endRotation,v=O;J.pointerX=e,J.pointerY=t,se&&(e-=Ea(ce),t-=Da(ce)),G?(a=Math.atan2(N.y-t,e-N.x)*Oe,180<(l=J.y-a)?(D-=360,J.y=a):l<-180&&(D+=360,J.y=a),i=J.x!==T||Math.abs(D-a)>j?(J.y=a,T+(D-a)*c):T):(R&&(s=e*R.a+t*R.c+R.e,t=e*R.b+t*R.d+R.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(J.lockAxis||J.lockedAxis)&&(o||r)&&((s=J.lockedAxis)||(J.lockedAxis=s=U&&Math.abs(o)>Math.abs(r)?"y":$?"x":null,s&&X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,J.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=ba(T+o*c),a=ba(D+r*c)),(P||k||_)&&(J.x!==i||J.y!==a&&!G)&&(_&&(Ie.x=i,Ie.y=a,s=_(Ie),i=ba(s.x),a=ba(s.y)),P&&(i=ba(P(i))),k&&(a=ba(k(a)))),E&&(M<i?i=M+Math.round((i-M)*d):i<L&&(i=L+Math.round((i-L)*d)),G||(S<a?a=Math.round(S+(a-S)*d):a<C&&(a=Math.round(C+(a-C)*d)))),J.x===i&&(J.y===a||G)||(G?(J.endRotation=J.x=J.endX=i,O=!0):($&&(J.y=J.endY=a,O=!0),U&&(J.x=J.endX=i,O=!0)),n&&!1===Oa(J,"move","onMove")?(J.pointerX=u,J.pointerY=p,D=h,J.x=f,J.y=g,J.endX=x,J.endY=m,J.endRotation=y,O=v):!J.isDragging&&J.isPressed&&(J.isDragging=!0,Oa(J,"dragstart","onDragStart")))},he=function onRelease(e,t){if(p&&J.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m&&e.target!==h||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){J.isPressed=!1;var n,o,r,i,a,l=e,s=J.isDragging,c=J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,Gh);if(v?(ya(v,"touchend",onRelease),ya(v,"touchmove",ue),ya(v,"touchcancel",onRelease),ya(ce,"touchstart",Ca)):ya(ce,"mousemove",ue),ya(xe,"touchforcechange",za),Ye&&v||(ya(ce,"mouseup",onRelease),e&&e.target&&ya(e.target,"mouseup",onRelease)),O=!1,s&&(Q=Be=ke(),J.isDragging=!1),y&&!c)return e&&(ya(e.target,"change",onRelease),J.pointerEvent=l),Ua(q,!1),Oa(J,"release","onRelease"),Oa(J,"click","onClick"),void(y=!1);for(va(vh),o=q.length;-1<--o;)Ka(q[o],"cursor",u.cursor||(!1!==u.cursor?Se:null));if(Ee--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m&&e.target!==h;);if(o<0)return}J.pointerEvent=l,J.pointerX=e.pageX,J.pointerY=e.pageY}return c&&l?(za(l),z=!0,Oa(J,"release","onRelease")):l&&!s?(z=!1,A&&(u.snap||u.bounds)&&Ch(u.inertia||u.throwProps),Oa(J,"release","onRelease"),Xe&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Oa(J,"click","onClick"),ke()-ae<300&&Oa(J,"doubleclick","onDoubleClick"),i=l.target||h,ae=ke(),a=function syntheticClick(){ae===F||!J.enabled()||J.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,xe,1,J.pointerEvent.screenX,J.pointerEvent.screenY,J.pointerX,J.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Xe||l.defaultPrevented||ge.delayedCall(.05,a))):(Ch(u.inertia||u.throwProps),J.allowEventDefault||!l||!1===u.dragClickables&&ie.call(J,l.target)||!s||B&&(!I||B!==I)||!1===l.cancelable?z=!1:(z=!0,za(l)),Oa(J,"release","onRelease")),de()&&d.duration(J.tween.duration()),s&&Oa(J,"dragend","onDragEnd"),!0}z&&e&&p&&za(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;Hh(e||J.pointerEvent,!0),t&&!J.hitTest(e||J.pointerEvent)&&(n=Na(e||J.pointerEvent),o=Na(h),r=Nh({x:n.left+n.width/2,y:n.top+n.height/2}),i=Nh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),J.isDragging||(J.isDragging=!0,Oa(J,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return he(e||J.pointerEvent,!0)},e.timeSinceDrag=function(){return J.isDragging?0:(ke()-Q)/1e3},e.timeSinceClick=function(){return(ke()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(J.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Le?e:Y(e)&&!G?"element":"start";return"element"===s&&(a=Na(J.target),l=Na(e)),n="start"===s?J.x-T:"velocity"===s?Le.getVelocity(h,K):a.left+a.width/2-(l.left+l.width/2),G?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?J.y-D:"velocity"===s?Le.getVelocity(h,V):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&u.bounds!==e)return u.bounds=e,J.update(!0,t);if(wh(!0),zh(),E&&!de()){if(n=J.x,o=J.y,M<n?n=M:n<L&&(n=L),S<o?o=S:o<C&&(o=C),(J.x!==n||J.y!==o)&&(r=!0,J.x=J.endX=n,G?J.endRotation=n:J.y=J.endY=o,vh(O=!0),J.autoScroll&&!J.isDragging))for(Ja(h.parentNode),i=h,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=Fe(i.parentNode))?He:i.parentNode,$&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),U&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;J.isThrowing&&(r||J.endX>M||J.endX<L||J.endY>S||J.endY<C)&&Ch(u.inertia||u.throwProps,r)}return J},e.update=function(e,t,n){if(t&&J.isPressed){var o=getGlobalMatrix(h),r=d.apply({x:J.x-T,y:J.y-D}),i=getGlobalMatrix(h.parentNode,!0);i.apply({x:o.e-r.x,y:o.f-r.y},r),J.x-=r.x-i.e,J.y-=r.y-i.f,vh(!0),Eh()}var a=J.x,l=J.y;return Dh(!t),e?J.applyBounds():(O&&n&&vh(!0),wh(!0)),t&&(pe(J.pointerX,J.pointerY),O&&vh(!0)),J.isPressed&&!t&&(U&&.01<Math.abs(a-J.x)||$&&.01<Math.abs(l-J.y)&&!G)&&Eh(),J.autoScroll&&(Ja(h.parentNode,J.isDragging),ee=J.isDragging,vh(!0),Ga(h,Lh),Fa(h,Lh)),J},e.enable=function(e){var t,n,o,r={lazy:!0};if(!1!==u.cursor&&(r.cursor=u.cursor||Se),ge.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),"soft"!==e){for(ra(q,U==$?"none":u.allowNativeTouchScrolling&&h.scrollHeight===h.clientHeight==(h.scrollWidth===h.clientHeight)||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"),n=q.length;-1<--n;)o=q[n],Ye||xa(o,"mousedown",Hh),xa(o,"touchstart",Hh),xa(o,"click",Mh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:U==$?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"}),u.allowContextMenu||xa(o,"contextmenu",uh);Ua(q,!1)}return Fa(h,Lh),p=!0,Le&&"soft"!==e&&Le.track(f||h,W?"x,y":G?"rotation":"top,left"),h._gsDragID=t="d"+Ae++,Re[t]=J,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||G)&&Eh(),u.bounds&&J.applyBounds(),J},e.disable=function(e){for(var t,n=J.isDragging,o=q.length;-1<--o;)Ka(q[o],"cursor",null);if("soft"!==e){for(ra(q,null),o=q.length;-1<--o;)t=q[o],Ka(t,"touchCallout",null),ya(t,"mousedown",Hh),ya(t,"touchstart",Hh),ya(t,"click",Mh),ya(t,"contextmenu",uh);Ua(q,!0),v&&(ya(v,"touchcancel",he),ya(v,"touchend",he),ya(v,"touchmove",ue)),ya(ce,"mouseup",he),ya(ce,"mousemove",ue)}return Ga(h,Lh),p=!1,Le&&"soft"!==e&&Le.untrack(f||h,W?"x,y":G?"rotation":"top,left"),f&&f.disable(),va(vh),J.isDragging=J.isPressed=y=!1,n&&Oa(J,"dragend","onDragEnd"),J},e.enabled=function(e,t){return arguments.length?e?J.enable(t):J.disable(t):p},e.kill=function(){return J.isThrowing=!1,J.tween&&J.tween.kill(),J.disable(),ge.set(q,{clearProps:"userSelect"}),delete Re[h._gsDragID],J},~n.indexOf("scroll")&&(f=e.scrollProxy=new Ya(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){J.isPressed&&he(null)}},u)),h.style.overflowY=$&&!Te?"auto":"hidden",h.style.overflowX=U&&!Te?"auto":"hidden",h=f.content),G?o.rotation=1:(U&&(o[K]=1),$&&(o[V]=1)),le.force3D=!("force3D"in u)||u.force3D,e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(I.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),I.zIndex=1e3,I.version="3.10.1",W()&&ge.registerPlugin(I),e.Draggable=I,e.default=I;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function w(e,t){if(e.parentNode&&(h||T(e))){var n=C(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",i=2!==t?0:100,a=3===t?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",s=h.createElementNS?h.createElementNS(o.replace(/^https/,"http"),r):h.createElement(r);return t&&(n?(g=g||w(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),g.appendChild(s)):(f||((f=w(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",f.appendChild(s))),s}throw"Need document and parent."}function A(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var h,p,r,i,f,g,x,m,y,t,v="transform",b=v+"Origin",T=function _setDoc(e){var t=e.ownerDocument||e;!(v in e.style)&&"msTransform"in e.style&&(b=(v="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(p=window,x=new fe,t){r=(h=t).documentElement,i=t.body,(m=h.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),o=t.createElement("div");i.appendChild(n),n.appendChild(o),n.style.position="static",n.style[v]="translate3d(0,0,1px)",y=o.offsetParent!==n,i.removeChild(n)}return t},D=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},E=[],M=[],L=function _getDocScrollTop(){return p.pageYOffset||h.scrollTop||r.scrollTop||i.scrollTop||0},S=function _getDocScrollLeft(){return p.pageXOffset||h.scrollLeft||r.scrollLeft||i.scrollLeft||0},C=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},N=function _isFixed(e){return"fixed"===p.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},O=function _placeSiblings(e,t){var n,o,r,i,a,l,s=C(e),c=e===s,d=s?E:M,u=e.parentNode;if(e===p)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),n=s?g:f,s)c?(i=-(r=function _getCTM(e){var t,n=e.getCTM();return n||(t=e.style[v],e.style[v]="none",e.appendChild(m),n=m.getCTM(),e.removeChild(m),t?e.style[v]=t:e.style.removeProperty(v.replace(/([A-Z])/g,"-$1").toLowerCase())),n||x.clone()}(e)).e/r.a,a=-r.f/r.d,o=x):(r=e.getBBox(),i=(o=(o=e.transform?e.transform.baseVal:{}).numberOfItems?1<o.numberOfItems?function _consolidate(e){for(var t=new fe,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix:x).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),(c?s:u).appendChild(n),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")");else{if(i=a=0,y)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(p.getComputedStyle(r)[v]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(l=p.getComputedStyle(e)).position&&"fixed"!==l.position)for(o=e.offsetParent;u&&u!==o;)i+=u.scrollLeft||0,a+=u.scrollTop||0,u=u.parentNode;(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",r[v]=l[v],r[b]=l[b],r.position="fixed"===l.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},fe=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return A(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,u=e.e,p=e.f;return A(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+u*t+p*o,a+u*n+p*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),A(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n,o){if(!e||!e.parentNode||(h||T(e)).documentElement===e)return new fe;var r=D(e),i=C(e)?E:M,a=O(e,n),l=i[0].getBoundingClientRect(),s=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),d=a.parentNode,u=!o&&N(e),p=new fe((s.left-l.left)/100,(s.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(u?0:S()),l.top+(u?0:L()));if(d.removeChild(a),r)for(l=r.length;l--;)(s=r[l]).scaleX=s.scaleY=0,s.renderTransform(1,s);return t?p.inverse():p}function V(){return"undefined"!=typeof window}function W(){return ge||V()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function X(e){return"function"==typeof e}function Y(e){return"object"==typeof e}function Z(e){return void 0===e}function $(){return!1}function ba(e){return Math.round(1e4*e)/1e4}function da(e,t){var n=me.createElementNS?me.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):me.createElement(e);return n.style?n:me.createElement(e)}function pa(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ra(e,t){for(var n,o=e.length;o--;)t?e[o].style.touchAction=t:e[o].style.removeProperty("touch-action"),(n=e[o].children)&&n.length&&ra(n,t)}function sa(){return _e.forEach(function(e){return e()})}function ua(){return!_e.length&&ge.ticker.remove(sa)}function va(e){for(var t=_e.length;t--;)_e[t]===e&&_e.splice(t,1);ge.to(ua,{overwrite:!0,delay:15,duration:0,onComplete:ua,data:"_draggable"})}function xa(e,t,n,o){if(e.addEventListener){var r=De[t];o=o||(d?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function ya(e,t,n){if(e.removeEventListener){var o=De[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function za(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Ba(e){Me=e.touches&&Ee<e.touches.length,ya(e.target,"touchend",Ba)}function Ca(e){Me=e.touches&&Ee<e.touches.length,xa(e.target,"touchend",Ba)}function Da(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ea(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Fa(e,t){xa(e,"scroll",t),Fe(e.parentNode)||Fa(e.parentNode,t)}function Ga(e,t){ya(e,"scroll",t),Fe(e.parentNode)||Ga(e.parentNode,t)}function Ia(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Fe(e)?Math.max(ye[o],l[o])-(xe["inner"+n]||ye[r]||l[r]):e[o]-e[r])}function Ja(e,t){var n=Ia(e,"x"),o=Ia(e,"y");Fe(e)?e=He:Ja(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ka(e,t,n){var o=e.style;o&&(Z(o[t])&&(t=c(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function La(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Na(e){if(e===xe)return u.left=u.top=0,u.width=u.right=ye.clientWidth||e.innerWidth||l.clientWidth||0,u.height=u.bottom=(e.innerHeight||0)-20<ye.clientHeight?ye.clientHeight:e.innerHeight||l.clientHeight||0,u;var t=e.ownerDocument||me,n=Z(e.pageX)?e.nodeType||Z(e.left)||Z(e.top)?be(e)[0].getBoundingClientRect():e:{left:e.pageX-Ea(t),top:e.pageY-Da(t),right:e.pageX-Ea(t)+1,bottom:e.pageY-Da(t)+1};return Z(n.right)&&!Z(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):Z(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Oa(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return X(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Pa(e,t){var n,o,r,i=be(e)[0];return i.nodeType||i===xe?R(i,t):Z(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Sa(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,Y(i[0]))for(l=0;l<s;l++)o[l]=pa(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else X(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(Y(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Ta(e){var t;return!(!e||!e.getAttribute||e===l)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!o.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Ta(e.parentNode))}function Ua(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:$,ge.set(n,{lazy:!0,userSelect:t?"text":"none"})}function Ya(i,r){i=ge.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,u=document.createElement("div"),p=u.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,y=i.scrollHeight,v=0,w=0,b=0;P&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):_&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,ge.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d),0<=f+v&&(p.paddingRight=f+v+"px")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,ge.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=u.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===u.parentNode&&i.removeChild(u)},this.enable=function(){if((t=i.firstChild)!==u){for(;t;)e=t.nextSibling,u.appendChild(t),t=e;i.appendChild(u),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&u.offsetHeight===s&&m===i.scrollWidth&&y===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=La(i),r&&!e||(p.display="block",p.width="auto",p.paddingRight="0px",(v=Math.max(0,i.scrollWidth-i.clientWidth))&&(v+=parseFloat(t.paddingLeft)+(k?parseFloat(t.paddingRight):0))),p.display="inline-block",p.position="relative",p.overflow="visible",p.verticalAlign="top",p.boxSizing="content-box",p.width="100%",p.paddingRight=v+"px",k&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,y=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=u.offsetHeight,p.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=u,this.element=i,this._skip=!1,this.enable()}function Za(e){if(V()&&document.body){var t=window&&window.navigator;xe=window,me=document,ye=me.documentElement,l=me.body,s=da("div"),Ye=!!window.PointerEvent,(ve=da("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===ve.style.cursor?"grab":"move",Xe=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),Te="ontouchstart"in ye&&"orientation"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=da("div"),r=da("div"),i=r.style,a=l,i.display="inline-block",i.position="relative",o.style.cssText=r.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),k=n,De=function(e){for(var t=e.split(","),n=(("onpointerdown"in s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in s?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ye.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),xa(me,"touchcancel",$),xa(xe,"touchmove",$),l&&l.addEventListener("touchstart",$),xa(me,"contextmenu",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag()}),ge=we=W()}var n,o,r,i,a;ge?(Le=ge.plugins.inertia,c=ge.utils.checkPrefix,_=c(_),Ce=c(Ce),be=ge.utils.toArray,P=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var ge,xe,me,ye,l,s,ve,we,c,be,d,Te,De,Ee,Me,Xe,Le,Se,Ye,P,k,n,_="transform",Ce="transformOrigin",Ne=Array.isArray,Oe=180/Math.PI,Pe=1e20,a=new fe,ke=Date.now||function(){return(new Date).getTime()},_e=[],Re={},Ae=0,o=/^(?:a|input|textarea|button|select)$/i,Be=0,Ie={},He={},Fe=function _isRoot(e){return!(e&&e!==ye&&9!==e.nodeType&&e!==me.body&&e!==xe&&e.nodeType&&e.parentNode)},u={},ze={},R=function _getElementBounds(e,t){t=be(t)[0];var n,o,r,i,a,l,s,c,d,u,p,h,f,g,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||me;if(e===xe)r=Da(m),o=(n=Ea(m))+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),i=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===xe||Z(t))return e.getBoundingClientRect();n=r=0,x?(p=(u=e.getBBox()).width,h=u.height):(e.viewBox&&(u=e.viewBox.baseVal)&&(n=u.x||0,r=u.y||0,p=u.width,h=u.height),p||(u="border-box"===(f=La(e)).boxSizing,p=(parseFloat(f.width)||e.clientWidth||0)+(u?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(u?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=p,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),n=Math.min(l.x,s.x,c.x,d.x),r=Math.min(l.y,s.y,c.y,d.y),{left:n+((g=t.parentNode||{}).scrollLeft||0),top:r+(g.scrollTop||0),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},B=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t)||-1;-1<o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var We,I=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,We=B),Draggable.register=function register(e){ge=e,Za()},Draggable.create=function create(e,t){return we||Za(!0),be(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(be(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(ke()-Be)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Na(e),l=Na(t),s=a.top,c=a.left,d=a.right,u=a.bottom,p=a.width,h=a.height,f=l.left>d||l.right<c||l.top>u||l.bottom<s;return f||!n?!f:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(u,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?p*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,u){var e;e=We.call(this)||this,we||Za(1),h=be(h)[0],Le=Le||ge.plugins.inertia,e.vars=u=pa(u||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(u.dragResistance)||0,e.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,e.lockAxis=u.lockAxis,e.autoScroll=u.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!u.allowEventDefault,ge.getProperty(h,"x");function Og(e,t){return parseFloat(le.get(h,e,t))}function uh(e){return za(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function vh(e){if(J.autoScroll&&J.isDragging&&(ee||O)){var t,n,o,r,i,a,l,s,c=h,d=15*J.autoScroll;for(ee=!1,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=J.pointerX-He.scrollLeft,i=J.pointerY-He.scrollTop;c&&!n;)t=(n=Fe(c.parentNode))?He:c.parentNode,o=n?{bottom:Math.max(ye.clientHeight,xe.innerHeight||0),right:Math.max(ye.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,$&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-oe&&s?(ee=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/oe)|0)):i<o.top+te&&t.scrollTop&&(ee=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/te)|0)),l&&(t.scrollTop+=l)),U&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-ne&&s?(ee=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/ne)|0)):r<o.left+re&&t.scrollLeft&&(ee=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/re)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(xe.scrollTo(t.scrollLeft,t.scrollTop),pe(J.pointerX+a,J.pointerY+l)),c=t}if(O){var u=J.x,p=J.y;G?(J.deltaX=u-parseFloat(le.rotation),J.rotation=u,le.rotation=u+"deg",le.renderTransform(1,le)):f?($&&(J.deltaY=p-f.top(),f.top(p)),U&&(J.deltaX=u-f.left(),f.left(u))):W?($&&(J.deltaY=p-parseFloat(le.y),le.y=p+"px"),U&&(J.deltaX=u-parseFloat(le.x),le.x=u+"px"),le.renderTransform(1,le)):($&&(J.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),U&&(J.deltaX=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!g||e||H||(!(H=!0)===Oa(J,"drag","onDrag")&&(U&&(J.x-=J.deltaX),$&&(J.y-=J.deltaY),vh(!0)),H=!1)}O=!1}function wh(e,t){var n,o,r=J.x,i=J.y;h._gsap||(le=ge.core.getCache(h)),le.uncache&&ge.getProperty(h,"x"),W?(J.x=parseFloat(le.x),J.y=parseFloat(le.y)):G?J.x=J.rotation=parseFloat(le.rotation):f?(J.y=f.top(),J.x=f.left()):(J.y=parseFloat(h.style.top||(o=La(h))&&o.top)||0,J.x=parseFloat(h.style.left||(o||{}).left)||0),(P||k||_)&&!t&&(J.isDragging||J.isThrowing)&&(_&&(Ie.x=J.x,Ie.y=J.y,(n=_(Ie)).x!==J.x&&(J.x=n.x,O=!0),n.y!==J.y&&(J.y=n.y,O=!0)),P&&(n=P(J.x))!==J.x&&(J.x=n,G&&(J.rotation=n),O=!0),k&&((n=k(J.y))!==J.y&&(J.y=n),O=!0)),O&&vh(!0),e||(J.deltaX=J.x-r,J.deltaY=J.y-i,Oa(J,"throwupdate","onThrowUpdate"))}function xh(a,l,s,n){return null==l&&(l=-Pe),null==s&&(s=Pe),X(a)?function(e){var t=J.isPressed?1-J.edgeResistance:1;return a.call(J,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:Ne(a)?function(e){for(var t,n,o=a.length,r=0,i=Pe;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function zh(){var e,t,n,o;E=!1,f?(f.calibrate(),J.minX=L=-f.maxScrollLeft(),J.minY=C=-f.maxScrollTop(),J.maxX=M=J.maxY=S=0,E=!0):u.bounds&&(e=Pa(u.bounds,h.parentNode),G?(J.minX=L=e.left,J.maxX=M=e.left+e.width,J.minY=C=J.maxY=S=0):Z(u.bounds.maxX)&&Z(u.bounds.maxY)?(t=Pa(h,h.parentNode),J.minX=L=Math.round(Og(K,"px")+e.left-t.left),J.minY=C=Math.round(Og(V,"px")+e.top-t.top),J.maxX=M=Math.round(L+(e.width-t.width)),J.maxY=S=Math.round(C+(e.height-t.height))):(e=u.bounds,J.minX=L=e.minX,J.minY=C=e.minY,J.maxX=M=e.maxX,J.maxY=S=e.maxY),M<L&&(J.minX=M,J.maxX=M=L,L=J.minX),S<C&&(J.minY=S,J.maxY=S=C,C=J.minY),G&&(J.minRotation=L,J.maxRotation=M),E=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=Ne(n)||X(n),G?(P=xh(o?n:n.rotation,L,M,1),k=null):n.points?_=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<Pe?p*p:Pe,X(s)?function(e){var t,n,o,r=J.isPressed?1-J.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=u<a?u+(a-u)*r:a<d?d+(a-d)*r:a,(t=s.call(J,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<Pe&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:Ne(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=Pe;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=p?s[a]:e}:function(e){return e}}(o?n:n.points,L,M,C,S,n.radius,f?-1:1):(U&&(P=xh(o?n:n.x||n.left||n.scrollLeft,L,M,f?-1:1)),$&&(k=xh(o?n:n.y||n.top||n.scrollTop,C,S,f?-1:1))))}function Ah(){J.isThrowing=!1,Oa(J,"throwcomplete","onThrowComplete")}function Bh(){J.isThrowing=!1}function Ch(e,t){var n,o,r,i;e&&Le?(!0===e&&(n=u.snap||u.liveSnap||{},o=Ne(n)||X(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(G?10:1)},G?e.rotation=Sa(J,o?n:n.rotation,M,L,1,t):(U&&(e[K]=Sa(J,o?n:n.points||n.x||n.left,M,L,f?-1:1,t||"x"===J.lockedAxis)),$&&(e[V]=Sa(J,o?n:n.points||n.y||n.top,S,C,f?-1:1,t||"y"===J.lockedAxis)),(n.points||Ne(n)&&Y(n[0]))&&(e.linkedProps=K+","+V,e.radius=n.radius))),J.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-J.edgeResistance+.2:u.overshootTolerance,e.duration||(e.duration={max:Math.max(u.minDuration||0,"maxDuration"in u?u.maxDuration:2),min:isNaN(u.minDuration)?0===i||Y(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),J.tween=r=ge.to(f||h,{inertia:e,data:"_draggable",onComplete:Ah,onInterrupt:Bh,onUpdate:u.fastMode?Oa:wh,onUpdateParams:u.fastMode?[J,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),wh(!0,!0),J.endX=J.x,J.endY=J.y,G&&(J.endRotation=J.x),r.play(0),wh(!0,!0),f&&(f._skip=!1))):E&&J.applyBounds()}function Dh(e){var t,n=R;R=getGlobalMatrix(h.parentNode,!0),e&&J.isPressed&&!R.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),R.apply(t,t),w=t.x,b=t.y),R.equals(a)&&(R=null)}function Eh(){var e,t,n,o=1-J.edgeResistance,r=se?Ea(ce):0,i=se?Da(ce):0;Dh(!1),ze.x=J.pointerX-r,ze.y=J.pointerY-i,R&&R.apply(ze,ze),w=ze.x,b=ze.y,O&&(pe(J.pointerX,J.pointerY),vh(!0)),d=getGlobalMatrix(h),f?(zh(),D=f.top(),T=f.left()):(de()?(wh(!0,!0),zh()):J.applyBounds(),G?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(La(h)[Ce]||"0 0").split(" "),N=J.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),wh(!0,!0),t=J.pointerX-N.x-r,n=N.y-J.pointerY+i,T=J.x,D=J.y=Math.atan2(n,t)*Oe):(D=Og(V,"px"),T=Og(K,"px"))),E&&o&&(M<T?T=M+(T-M)/o:T<L&&(T=L-(L-T)/o),G||(S<D?D=S+(D-S)/o:D<C&&(D=C-(C-D)/o))),J.startX=T=ba(T),J.startY=D=ba(D)}function Gh(){!ve.parentNode||de()||J.isDragging||ve.parentNode.removeChild(ve)}function Hh(e,t){var n;if(!p||J.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&ke()-ae<30&&De[J.pointerEvent.type])z&&e&&p&&za(e);else{if(A=de(),J.pointerEvent=e,De[e.type]?(v=~e.type.indexOf("touch")?e.currentTarget||e.target:ce,xa(v,"touchend",he),xa(v,"touchmove",ue),xa(v,"touchcancel",he),xa(ce,"touchstart",Ca)):(v=null,xa(ce,"mousemove",ue)),I=null,Ye&&v||(xa(ce,"mouseup",he),e&&e.target&&xa(e.target,"mouseup",he)),y=ie.call(J,e.target)&&!1===u.dragClickables&&!t)return xa(e.target,"change",he),Oa(J,"pressInit","onPressInit"),Oa(J,"press","onPress"),Ua(q,!0),void(z=!1);if(B=!(!v||U==$||!1===J.vars.allowNativeTouchScrolling||J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(U?"y":"x"),(z=!B&&!J.allowEventDefault)&&(za(e),xa(xe,"touchforcechange",za)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,Ee++,function _addToRenderQueue(e){_e.push(e),1===_e.length&&ge.ticker.add(sa)}(vh),b=J.pointerY=e.pageY,w=J.pointerX=e.pageX,Oa(J,"pressInit","onPressInit"),(B||J.autoScroll)&&Ja(h.parentNode),!h.parentNode||!J.autoScroll||f||G||!h.parentNode._gsMaxScrollX||ve.parentNode||h.getBBox||(ve.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(ve)),Eh(),J.tween&&J.tween.kill(),J.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),J.tween=J.lockedAxis=null,!u.zIndexBoost&&(G||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),J.isPressed=!0,g=!(!u.onDrag&&!J._listeners.drag),s=!(!u.onMove&&!J._listeners.move),!1!==u.cursor||u.activeCursor)for(n=q.length;-1<--n;)ge.set(q[n],{cursor:u.activeCursor||u.cursor||("grab"===Se?"grabbing":Se)});Oa(J,"press","onPress")}}function Lh(e){if(e&&J.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(R?(w-=n*R.a+o*R.c,b-=o*R.d+n*R.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(J.pointerX,J.pointerY))}}function Mh(e){var t=ke(),n=t-ae<100,o=t-Q<50,r=n&&F===ae,i=J.pointerEvent&&J.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==J.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!J.pointerEvent||!J.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(F=ae);(J.isPressed||o||n)&&(l&&e.detail&&n&&!i||za(e)),n||o||(e&&e.target&&(J.pointerEvent=e),Oa(J,"click","onClick"))}function Nh(e){return R?{x:e.x*R.a+e.y*R.c+R.e,y:e.x*R.b+e.y*R.d+R.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,E,g,s,M,L,S,C,x,m,N,O,t,P,k,_,y,v,R,A,B,I,H,F,c,z,d,n=(u.type||"x,y").toLowerCase(),W=~n.indexOf("x")||~n.indexOf("y"),G=-1!==n.indexOf("rotation"),K=G?"rotation":W?"x":"left",V=W?"y":"top",U=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),$=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),j=u.minimumMovement||2,J=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),q=be(u.trigger||u.handle||h),o={},Q=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Ta,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return"fixed"===La(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),ce=h.ownerDocument||me,de=function isTweening(){return J.tween&&J.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Me&&J.isPressed&&e){if(t=(J.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m&&e.target!==h;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;v&&B&&!I&&(ze.x=e.pageX-(se?Ea(ce):0),ze.y=e.pageY-(se?Da(ce):0),R&&R.apply(ze,ze),n=ze.x,o=ze.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(j<i||j<a)||Xe&&B===I)&&(I=a<i&&U?"x":"y",B&&I!==B&&xa(xe,"touchforcechange",za),!1!==J.vars.lockAxisOnTouchScroll&&U&&$&&(J.lockedAxis="x"===I?"y":"x",X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,l)),Xe&&B===I))?he(l):(z=J.allowEventDefault||B&&(!I||B===I)||!1===l.cancelable?z&&!1:(za(l),!0),J.autoScroll&&(ee=!0),pe(e.pageX,e.pageY,s))}else z&&e&&p&&za(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-J.dragResistance,d=1-J.edgeResistance,u=J.pointerX,p=J.pointerY,h=D,f=J.x,g=J.y,x=J.endX,m=J.endY,y=J.endRotation,v=O;J.pointerX=e,J.pointerY=t,se&&(e-=Ea(ce),t-=Da(ce)),G?(a=Math.atan2(N.y-t,e-N.x)*Oe,180<(l=J.y-a)?(D-=360,J.y=a):l<-180&&(D+=360,J.y=a),i=J.x!==T||Math.abs(D-a)>j?(J.y=a,T+(D-a)*c):T):(R&&(s=e*R.a+t*R.c+R.e,t=e*R.b+t*R.d+R.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(J.lockAxis||J.lockedAxis)&&(o||r)&&((s=J.lockedAxis)||(J.lockedAxis=s=U&&Math.abs(o)>Math.abs(r)?"y":$?"x":null,s&&X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,J.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=ba(T+o*c),a=ba(D+r*c)),(P||k||_)&&(J.x!==i||J.y!==a&&!G)&&(_&&(Ie.x=i,Ie.y=a,s=_(Ie),i=ba(s.x),a=ba(s.y)),P&&(i=ba(P(i))),k&&(a=ba(k(a)))),E&&(M<i?i=M+Math.round((i-M)*d):i<L&&(i=L+Math.round((i-L)*d)),G||(S<a?a=Math.round(S+(a-S)*d):a<C&&(a=Math.round(C+(a-C)*d)))),J.x===i&&(J.y===a||G)||(G?(J.endRotation=J.x=J.endX=i,O=!0):($&&(J.y=J.endY=a,O=!0),U&&(J.x=J.endX=i,O=!0)),n&&!1===Oa(J,"move","onMove")?(J.pointerX=u,J.pointerY=p,D=h,J.x=f,J.y=g,J.endX=x,J.endY=m,J.endRotation=y,O=v):!J.isDragging&&J.isPressed&&(J.isDragging=!0,Oa(J,"dragstart","onDragStart")))},he=function onRelease(e,t){if(p&&J.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m&&e.target!==h||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){J.isPressed=!1;var n,o,r,i,a,l=e,s=J.isDragging,c=J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,Gh);if(v?(ya(v,"touchend",onRelease),ya(v,"touchmove",ue),ya(v,"touchcancel",onRelease),ya(ce,"touchstart",Ca)):ya(ce,"mousemove",ue),ya(xe,"touchforcechange",za),Ye&&v||(ya(ce,"mouseup",onRelease),e&&e.target&&ya(e.target,"mouseup",onRelease)),O=!1,s&&(Q=Be=ke(),J.isDragging=!1),y&&!c)return e&&(ya(e.target,"change",onRelease),J.pointerEvent=l),Ua(q,!1),Oa(J,"release","onRelease"),Oa(J,"click","onClick"),void(y=!1);for(va(vh),o=q.length;-1<--o;)Ka(q[o],"cursor",u.cursor||(!1!==u.cursor?Se:null));if(Ee--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m&&e.target!==h;);if(o<0)return}J.pointerEvent=l,J.pointerX=e.pageX,J.pointerY=e.pageY}return c&&l?(za(l),z=!0,Oa(J,"release","onRelease")):l&&!s?(z=!1,A&&(u.snap||u.bounds)&&Ch(u.inertia||u.throwProps),Oa(J,"release","onRelease"),Xe&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Oa(J,"click","onClick"),ke()-ae<300&&Oa(J,"doubleclick","onDoubleClick"),i=l.target||h,ae=ke(),a=function syntheticClick(){ae===F||!J.enabled()||J.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,xe,1,J.pointerEvent.screenX,J.pointerEvent.screenY,J.pointerX,J.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Xe||l.defaultPrevented||ge.delayedCall(.05,a))):(Ch(u.inertia||u.throwProps),J.allowEventDefault||!l||!1===u.dragClickables&&ie.call(J,l.target)||!s||B&&(!I||B!==I)||!1===l.cancelable?z=!1:(z=!0,za(l)),Oa(J,"release","onRelease")),de()&&d.duration(J.tween.duration()),s&&Oa(J,"dragend","onDragEnd"),!0}z&&e&&p&&za(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;Hh(e||J.pointerEvent,!0),t&&!J.hitTest(e||J.pointerEvent)&&(n=Na(e||J.pointerEvent),o=Na(h),r=Nh({x:n.left+n.width/2,y:n.top+n.height/2}),i=Nh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),J.isDragging||(J.isDragging=!0,Oa(J,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return he(e||J.pointerEvent,!0)},e.timeSinceDrag=function(){return J.isDragging?0:(ke()-Q)/1e3},e.timeSinceClick=function(){return(ke()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(J.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Le?e:Y(e)&&!G?"element":"start";return"element"===s&&(a=Na(J.target),l=Na(e)),n="start"===s?J.x-T:"velocity"===s?Le.getVelocity(h,K):a.left+a.width/2-(l.left+l.width/2),G?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?J.y-D:"velocity"===s?Le.getVelocity(h,V):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&u.bounds!==e)return u.bounds=e,J.update(!0,t);if(wh(!0),zh(),E&&!de()){if(n=J.x,o=J.y,M<n?n=M:n<L&&(n=L),S<o?o=S:o<C&&(o=C),(J.x!==n||J.y!==o)&&(r=!0,J.x=J.endX=n,G?J.endRotation=n:J.y=J.endY=o,vh(O=!0),J.autoScroll&&!J.isDragging))for(Ja(h.parentNode),i=h,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=Fe(i.parentNode))?He:i.parentNode,$&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),U&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;J.isThrowing&&(r||J.endX>M||J.endX<L||J.endY>S||J.endY<C)&&Ch(u.inertia||u.throwProps,r)}return J},e.update=function(e,t,n){if(t&&J.isPressed){var o=getGlobalMatrix(h),r=d.apply({x:J.x-T,y:J.y-D}),i=getGlobalMatrix(h.parentNode,!0);i.apply({x:o.e-r.x,y:o.f-r.y},r),J.x-=r.x-i.e,J.y-=r.y-i.f,vh(!0),Eh()}var a=J.x,l=J.y;return Dh(!t),e?J.applyBounds():(O&&n&&vh(!0),wh(!0)),t&&(pe(J.pointerX,J.pointerY),O&&vh(!0)),J.isPressed&&!t&&(U&&.01<Math.abs(a-J.x)||$&&.01<Math.abs(l-J.y)&&!G)&&Eh(),J.autoScroll&&(Ja(h.parentNode,J.isDragging),ee=J.isDragging,vh(!0),Ga(h,Lh),Fa(h,Lh)),J},e.enable=function(e){var t,n,o,r={lazy:!0};if(!1!==u.cursor&&(r.cursor=u.cursor||Se),ge.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),"soft"!==e){for(ra(q,U==$?"none":u.allowNativeTouchScrolling&&h.scrollHeight===h.clientHeight==(h.scrollWidth===h.clientHeight)||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"),n=q.length;-1<--n;)o=q[n],Ye||xa(o,"mousedown",Hh),xa(o,"touchstart",Hh),xa(o,"click",Mh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:U==$?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"}),u.allowContextMenu||xa(o,"contextmenu",uh);Ua(q,!1)}return Fa(h,Lh),p=!0,Le&&"soft"!==e&&Le.track(f||h,W?"x,y":G?"rotation":"top,left"),h._gsDragID=t="d"+Ae++,Re[t]=J,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||G)&&Eh(),u.bounds&&J.applyBounds(),J},e.disable=function(e){for(var t,n=J.isDragging,o=q.length;-1<--o;)Ka(q[o],"cursor",null);if("soft"!==e){for(ra(q,null),o=q.length;-1<--o;)t=q[o],Ka(t,"touchCallout",null),ya(t,"mousedown",Hh),ya(t,"touchstart",Hh),ya(t,"click",Mh),ya(t,"contextmenu",uh);Ua(q,!0),v&&(ya(v,"touchcancel",he),ya(v,"touchend",he),ya(v,"touchmove",ue)),ya(ce,"mouseup",he),ya(ce,"mousemove",ue)}return Ga(h,Lh),p=!1,Le&&"soft"!==e&&Le.untrack(f||h,W?"x,y":G?"rotation":"top,left"),f&&f.disable(),va(vh),J.isDragging=J.isPressed=y=!1,n&&Oa(J,"dragend","onDragEnd"),J},e.enabled=function(e,t){return arguments.length?e?J.enable(t):J.disable(t):p},e.kill=function(){return J.isThrowing=!1,J.tween&&J.tween.kill(),J.disable(),ge.set(q,{clearProps:"userSelect"}),delete Re[h._gsDragID],J},~n.indexOf("scroll")&&(f=e.scrollProxy=new Ya(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){J.isPressed&&he(null)}},u)),h.style.overflowY=$&&!Te?"auto":"hidden",h.style.overflowX=U&&!Te?"auto":"hidden",h=f.content),G?o.rotation=1:(U&&(o[K]=1),$&&(o[V]=1)),le.force3D=!("force3D"in u)||u.force3D,e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(I.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),I.zIndex=1e3,I.version="3.10.2",W()&&ge.registerPlugin(I),e.Draggable=I,e.default=I;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* EaselPlugin 3.10.1 | ||
* EaselPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -278,3 +278,3 @@ * | ||
var EaselPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "easel", | ||
@@ -281,0 +281,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* EaselPlugin 3.10.1 | ||
* EaselPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(b=b||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:"3.10.1",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(b=b||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:"3.10.2",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* EasePack 3.10.1 | ||
* EasePack 3.10.2 | ||
* https://greensock.com | ||
@@ -205,3 +205,3 @@ * | ||
EasePack[p].register = _initCore; | ||
EasePack[p].version = "3.10.1"; | ||
EasePack[p].version = "3.10.2"; | ||
} | ||
@@ -208,0 +208,0 @@ |
/*! | ||
* EasePack 3.10.1 | ||
* EasePack 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.10.1";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.10.2";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -364,3 +364,3 @@ (function (global, factory) { | ||
/*! | ||
* Flip 3.10.1 | ||
* Flip 3.10.2 | ||
* https://greensock.com | ||
@@ -1793,3 +1793,3 @@ * | ||
}(); | ||
Flip.version = "3.10.1"; | ||
Flip.version = "3.10.2"; | ||
typeof window !== "undefined" && window.gsap && window.gsap.registerPlugin(Flip); | ||
@@ -1796,0 +1796,0 @@ |
/*! | ||
* Flip 3.10.1 | ||
* Flip 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function p(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(S=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,d=new _,e){r=(g=e).documentElement,b=e.body,(a=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div");b.appendChild(i),i.appendChild(n),i.style.position="static",i.style[w]="translate3d(0,0,1px)",m=n.offsetParent!==i,b.removeChild(i)}return e}function t(){return y.pageYOffset||g.scrollTop||r.scrollTop||b.scrollTop||0}function u(){return y.pageXOffset||g.scrollLeft||r.scrollLeft||b.scrollLeft||0}function v(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function x(t,e){if(t.parentNode&&(g||p(t))){var i=v(t),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",a=2!==e?0:100,s=3===e?100:0,o="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),r):g.createElement(r);return e&&(i?(f=f||x(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+a+","+s+")"),f.appendChild(l)):(c||((c=x(t)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+s+"px;left:"+a+"px",c.appendChild(l))),l}throw"Need document and parent."}function z(t){var e,i=t.getCTM();return i||(e=t.style[w],t.style[w]="none",t.appendChild(a),i=a.getCTM(),t.removeChild(a),e?t.style[w]=e:t.style.removeProperty(w.replace(/([A-Z])/g,"-$1").toLowerCase())),i||d.clone()}function A(t,e){var i,n,r,a,s,o,l=v(t),u=t===l,h=l?C:k,p=t.parentNode;if(t===y)return t;if(h.length||h.push(x(t,1),x(t,2),x(t,3)),i=l?f:c,l)u?(a=-(r=z(t)).e/r.a,s=-r.f/r.d,n=d):(r=t.getBBox(),a=(n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(t){for(var e=new _,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:d).a*r.x+n.c*r.y,s=n.b*r.x+n.d*r.y),e&&"g"===t.tagName.toLowerCase()&&(a=s=0),(u?l:p).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+s)+")");else{if(a=s=0,m)for(n=t.offsetParent,r=t;(r=r&&r.parentNode)&&r!==n&&r.parentNode;)4<(y.getComputedStyle(r)[w]+"").length&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=y.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;p&&p!==n;)a+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;(r=i.style).top=t.offsetTop-s+"px",r.left=t.offsetLeft-a+"px",r[w]=o[w],r[S]=o[S],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}function B(t,e,i,n,r,a,s){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=a,t.f=s,t}var g,y,r,b,c,f,d,a,m,i,w="transform",S=w+"Origin",C=[],k=[],_=((i=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,a=this.f,s=t*n-e*i||1e-10;return B(this,n/s,-e/s,-i/s,t/s,(i*a-n*r)/s,-(t*a-e*r)/s)},i.multiply=function multiply(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f,o=t.a,l=t.c,u=t.b,h=t.d,p=t.e,c=t.f;return B(this,o*e+u*n,o*i+u*r,l*e+h*n,l*i+h*r,a+p*e+c*n,s+p*i+c*r)},i.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},i.equals=function equals(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&a===t.e&&s===t.f},i.apply=function apply(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*s+l||0,e.y=i*a+n*o+u||0,e},Matrix2D);function Matrix2D(t,e,i,n,r,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=0),B(this,t,e,i,n,r,a)}function getGlobalMatrix(e,i,n,r){if(!e||!e.parentNode||(g||p(e)).documentElement===e)return new _;var a=function _forceNonZeroScale(t){for(var e,i;t&&t!==b;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(e),s=v(e)?C:k,o=A(e,n),l=s[0].getBoundingClientRect(),h=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),f=o.parentNode,d=!r&&function _isFixed(t){return"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(e),m=new _((h.left-l.left)/100,(h.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(d?0:u()),l.top+(d?0:t()));if(f.removeChild(o),a)for(l=a.length;l--;)(h=a[l]).scaleX=h.scaleY=0,h.renderTransform(1,h);return i?m.inverse():m}function K(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})}function R(t){return"string"==typeof t?t.split(" ").join("").split(","):t}function U(t){return T(t)[0]||console.warn("Element not found:",t)}function V(t){return Math.round(1e4*t)/1e4||0}function W(t,e,i){return t.forEach(function(t){return t.classList[i](e)})}function Z(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function $(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n}function aa(t){var e=at[t]=R(t);return tt[t]=e.concat(it),e}function da(t,e,i){return t.forEach(function(t){return t.d=function _getDOMDepth(t,e,i){void 0===i&&(i=0);for(var n=t.parentNode,r=1e3*Math.pow(10,i)*(e?-1:1),a=e?900*-r:0;t;)a+=r,t=t.previousSibling;return n?a+_getDOMDepth(n,e,i+1):a}(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t}function ea(t,e){for(var i,n,r=t.element.style,a=t.css=t.css||[],s=e.length;s--;)n=r[i=e[s]]||r.getPropertyValue(i),a.push(n?i:F[i]||(F[i]=Z(i)),n);return r}function fa(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n])}function ga(t,e){t.forEach(function(t){return t.a.cache.uncache=1}),e||t.finalStates.forEach(fa)}function ia(e,i,n){var r,a,s,o=e.element,l=e.width,h=e.height,p=e.uncache,c=e.getProp,f=o.style,d=4;if("object"!=typeof i&&(i=e),Q&&1!==n)return Q._abs.push({t:o,b:e,a:e,sd:0}),Q._final.push(function(){return(e.cache.uncache=1)&&fa(e)}),o;for(a="none"===c("display"),e.isVisible&&!a||(a&&(ea(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=l=e.width||i.width,e.height=h=e.height||i.height),ea(e,I),s=window.getComputedStyle(o);d--;)f[I[d]]=s[I[d]];if(f.gridArea="1 / 1 / 1 / 1",f.transition="none",f.position="absolute",f.width=l+"px",f.height=h+"px",f.top||(f.top="0px"),f.left||(f.left="0px"),p)r=new lt(o);else if((r=$(e,M)).position="absolute",e.simple){var m=o.getBoundingClientRect();r.matrix=new _(1,0,0,1,m.left+u(),m.top+t())}else r.matrix=getGlobalMatrix(o,!1,!1,!0);return r=st(r,e,!0),e.x=N(r.x,.01),e.y=N(r.y,.01),o}function ja(t,e){return!0!==e&&(e=T(e),t=t.filter(function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px"})),t}function ka(t){return da(t,!0).forEach(function(t){return(t.a.isVisible||t.b.isVisible)&&ia(t.sd<0?t.b:t.a,t.b,1)})}function oa(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]}function qa(t){return t.map(function(t){return t.element})}function ra(t,e,i){return t&&e.length&&i.add(t(qa(e),i,new ot(e,0,!0)),0)}function ta(t,e){return t instanceof ot?t:new ot(t,e)}function ua(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r}function ya(t){if(t!==l){var e=o.style,i=o.clientWidth===window.outerWidth,n=o.clientHeight===window.outerHeight,r=4;if(t&&(i||n)){for(;r--;)X[r]=e[D[r]];i&&(e.width=o.clientWidth+"px",e.overflowY="hidden"),n&&(e.height=o.clientHeight+"px",e.overflowX="hidden"),l=t}else if(l){for(;r--;)X[r]?e[D[r]]=X[r]:e.removeProperty(Z(D[r]));l=t}}}function za(t,e,r,i){t instanceof ot&&e instanceof ot||console.warn("Not a valid state object.");var a,s,o,l,u,h,p,c,f,n,d,m,g,y,x,v=(r=r||{}).clearProps,b=r.onEnter,w=r.onLeave,S=r.absolute,C=r.absoluteOnLeave,k=r.custom,V=r.delay,_=r.paused,E=r.repeat,B=r.repeatDelay,M=r.yoyo,F=r.toggleClass,I=r.nested,L=r.zIndex,T=r.scale,N=r.fade,O=r.stagger,P=r.spin,A=r.prune,X=("props"in r?r:t).props,z=$(r,nt),D=J.timeline({delay:V,paused:_,repeat:E,repeatDelay:B,yoyo:M}),R=z,Y=[],G=[],j=[],q=[],U=!0===P?1:P||0,H="function"==typeof P?P:function(){return U},Z=t.interrupted||e.interrupted,K=D[1!==i?"to":"from"];for(s in e.idLookup)d=e.alt[s]?ua(e,t,s):e.idLookup[s],u=d.element,n=t.idLookup[s],!t.alt[s]||u!==n.element||!t.alt[s].isVisible&&d.isVisible||(n=t.alt[s]),n?(h={t:u,b:n,a:d,sd:n.element===u?0:d.isVisible?1:-1},j.push(h),h.sd&&(h.sd<0&&(h.b=d,h.a=n),Z&&ea(h.b,X?tt[X]:it),N&&j.push(h.swap={t:n.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),u._flip=n.element._flip=Q?Q.timeline:D):d.isVisible&&(j.push({t:u,b:$(d,{isVisible:1}),a:d,sd:0,entering:1}),u._flip=Q?Q.timeline:D);return X&&(at[X]||aa(X)).forEach(function(e){return z[e]=function(t){return j[t].a.props[e]}}),j.finalStates=f=[],m=function run(){for(da(j),ya(!0),l=0;l<j.length;l++)h=j[l],g=h.a,y=h.b,!A||g.isDifferent(y)||h.entering?(u=h.t,!I||h.sd<0||!l||(g.matrix=getGlobalMatrix(u,!1,!1,!0)),h.sd||y.isVisible&&g.isVisible?(h.sd<0?(p=new lt(u,X,t.simple),st(p,g,T,0,0,p),p.matrix=getGlobalMatrix(u,!1,!1,!0),p.css=h.b.css,h.a=g=p,N&&(u.style.opacity=Z?y.opacity:g.opacity),O&&q.push(u)):0<h.sd&&N&&(u.style.opacity=Z?g.opacity-y.opacity:"0"),st(g,y,T,X)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,G.push(y),j.splice(l--,1),S&&I&&st(g,y,T,X)):(g.isVisible&&Y.push(g),j.splice(l--,1))),T||(u.style.maxWidth=Math.max(g.width,y.width)+"px",u.style.maxHeight=Math.max(g.height,y.height)+"px",u.style.minWidth=Math.min(g.width,y.width)+"px",u.style.minHeight=Math.min(g.height,y.height)+"px"),I&&F&&u.classList.add(F)):j.splice(l--,1),f.push(g);var e;if(F&&(e=f.map(function(t){return t.element}),I&&e.forEach(function(t){return t.classList.remove(F)})),ya(!1),T?(z.scaleX=function(t){return j[t].a.scaleX},z.scaleY=function(t){return j[t].a.scaleY}):(z.width=function(t){return j[t].a.width+"px"},z.height=function(t){return j[t].a.height+"px"},z.autoRound=r.autoRound||!1),z.x=function(t){return j[t].a.x+"px"},z.y=function(t){return j[t].a.y+"px"},z.rotation=function(t){return j[t].a.rotation+(P?360*H(t,c[t],c):0)},z.skewX=function(t){return j[t].a.skewX},c=j.map(function(t){return t.t}),!L&&0!==L||(z.modifiers={zIndex:function zIndex(){return L}},z.zIndex=L,z.immediateRender=!1!==r.immediateRender),N&&(z.opacity=function(t){return j[t].sd<0?0:0<j[t].sd?j[t].a.opacity:"+=0"}),q.length){O=J.utils.distribute(O);var i=c.slice(q.length);z.stagger=function(t,e){return O(~q.indexOf(e)?c.indexOf(j[t].swap.t):t,e,i)}}if(et.forEach(function(t){return r[t]&&D.eventCallback(t,r[t],r[t+"Params"])}),k&&c.length)for(s in R=$(z,nt),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)(a=$(k[s],rt))[s]=z[s],!("duration"in a)&&"duration"in z&&(a.duration=z.duration),a.stagger=z.stagger,K.call(D,c,a,0),delete R[s];(c.length||G.length||Y.length)&&(F&&D.add(function(){return W(e,F,D._zTime<0?"remove":"add")},0)&&!_&&W(e,F,"add"),c.length&&K.call(D,c,R,0)),ra(b,Y,D),ra(w,G,D);var n=Q&&Q.timeline;n&&(n.add(D,0),Q._final.push(function(){return ga(j,!v)})),o=D.duration(),D.call(function(){var t=D.time()>=o;t&&!n&&ga(j,!v),F&&W(e,F,t?"remove":"add")})},C&&(S=j.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),Q?(S&&(x=Q._abs).push.apply(x,ja(j,S)),Q._run.push(m)):(S&&ka(ja(j,S)),m()),Q?Q.timeline:D}function Ba(t,e){if(t&&t.progress()<1&&!t.paused())return e&&(function _interrupt(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(_interrupt)}(t),e<2&&t.progress(1),t.kill()),!0}function Ca(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,a=r.length;a--;)i[(e=r[a]).id]?n[e.id]=e:i[e.id]=e}var T,J,Q,s,o,N,l,n,E=1,h={},O=180/Math.PI,P=Math.PI/180,M={},F={},tt={},et=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),it=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),nt={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},rt={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},at={},I="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),L=function _parseElementState(t,e,i,n){return t instanceof lt?t:t instanceof ot?function _findElStateInState(t,e){return e&&t.idLookup[L(e).id]||t.elementStates[0]}(t,n):new lt("string"==typeof t?U(t)||console.warn(t+" not found"):t,e,i)},st=function _fit(t,e,i,n,r,a){var s,o,l,u,h,p,c,f=t.element,d=t.cache,m=t.parent,g=t.x,y=t.y,x=e.width,v=e.height,b=e.scaleX,w=e.scaleY,S=e.rotation,C=e.bounds,k=a&&f.style.cssText,_=a&&f.getBBox&&f.getAttribute("transform"),E=t,B=e.matrix,M=B.e,F=B.f,I=t.bounds.width!==C.width||t.bounds.height!==C.height||t.scaleX!==b||t.scaleY!==w||t.rotation!==S,L=!I&&t.simple&&e.simple&&!r;return L||!m?(b=w=1,S=s=0):(p=(h=function _getInverseGlobalMatrix(t){var e=t._gsap||J.core.getCache(t);return e.gmCache===J.ticker.frame?e.gMatrix:(e.gmCache=J.ticker.frame,e.gMatrix=getGlobalMatrix(t,!0,!1,!0))}(m)).clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=V(Math.atan2(p.b,p.a)*O),s=V(Math.atan2(p.c,p.d)*O+S)%360,b=Math.sqrt(Math.pow(p.a,2)+Math.pow(p.b,2)),w=Math.sqrt(Math.pow(p.c,2)+Math.pow(p.d,2))*Math.cos(s*P),r&&(r=T(r)[0],u=J.getProperty(r),c=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),E={scaleX:u("scaleX"),scaleY:u("scaleY"),width:c?c.width:Math.ceil(parseFloat(u("width","px"))),height:c?c.height:parseFloat(u("height","px"))}),d.rotation=S+"deg",d.skewX=s+"deg"),i?(b*=x!==E.width&&E.width?x/E.width:1,w*=v!==E.height&&E.height?v/E.height:1,d.scaleX=b,d.scaleY=w):(x=N(x*b/E.scaleX,0),v=N(v*w/E.scaleY,0),f.style.width=x+"px",f.style.height=v+"px"),n&&oa(f,e.props),L||!m?(g+=M-t.matrix.e,y+=F-t.matrix.f):I||m!==e.parent?(d.renderTransform(1,d),p=getGlobalMatrix(r||f,!1,!1,!0),o=h.apply({x:p.e,y:p.f}),g+=(l=h.apply({x:M,y:F})).x-o.x,y+=l.y-o.y):(h.e=h.f=0,g+=(l=h.apply({x:M-t.matrix.e,y:F-t.matrix.f})).x,y+=l.y),g=N(g,.02),y=N(y,.02),!a||a instanceof lt?(d.x=g+"px",d.y=y+"px",d.renderTransform(1,d)):(f.style.cssText=k,f.getBBox&&f.setAttribute("transform",_||""),d.uncache=1),a&&(a.x=g,a.y=y,a.rotation=S,a.skewX=s,i?(a.scaleX=b,a.scaleY=w):(a.width=x,a.height=v)),a||d},X=[],D="width,height,overflowX,overflowY".split(","),ot=((n=FlipState.prototype).update=function update(t){var e=this;return this.elementStates=this.targets.map(function(t){return new lt(t,e.props,e.simple)}),Ca(this),this.interrupt(t),this.recordInlineStyles(),this},n.clear=function clear(){return this.targets.length=this.elementStates.length=0,Ca(this),this},n.fit=function fit(t,e,i){for(var n,r,a=da(this.elementStates.slice(0),!1,!0),s=(t||this).idLookup,o=0;o<a.length;o++)n=a[o],i&&(n.matrix=getGlobalMatrix(n.element,!1,!1,!0)),(r=s[n.id])&&st(n,r,e,!0,0,n),n.matrix=getGlobalMatrix(n.element,!1,!1,!0);return this},n.getProperty=function getProperty(t,e){var i=this.getElementState(t)||M;return(e in i?i:i.props||M)[e]},n.add=function add(t){for(var e,i,n,r=t.targets.length,a=this.idLookup,s=this.alt;r--;)(n=a[(i=t.elementStates[r]).id])&&(i.element===n.element||s[i.id]&&s[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===n.element?n:s[i.id]),this.targets.splice(e,1,t.targets[r]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[r]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),Ca(this),this},n.compare=function compare(t){function hh(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?f:d:t.isVisible?c:p).push(i)&&m.push(i)}function ih(t,e,i){return m.indexOf(i)<0&&hh(t,e,i)}var e,i,n,r,a,s,o,l,u=t.idLookup,h=this.idLookup,p=[],c=[],f=[],d=[],m=[],g=t.alt,y=this.alt;for(n in u)a=g[n],s=y[n],r=(e=a?ua(t,this,n):u[n]).element,i=h[n],s?(l=i.isVisible||!s.isVisible&&r===i.element?i:s,(o=!a||e.isVisible||a.isVisible||l.element!==a.element?e:a).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:p).push(o.element,l.element),m.push(o.element,l.element)):hh(o,l,o.element),a&&o.element===a.element&&(a=u[n]),ih(o.element!==i.element&&a?a:o,i,i.element),ih(a&&a.element===s.element?a:o,s,s.element),a&&ih(a,s.element===a.element?s:i,a.element)):(i?i.isDifferent(e)?hh(e,i,r):p.push(r):f.push(r),a&&ih(a,i,a.element));for(n in h)u[n]||(d.push(h[n].element),y[n]&&d.push(y[n].element));return{changed:c,unchanged:p,enter:f,leave:d}},n.recordInlineStyles=function recordInlineStyles(){for(var t=tt[this.props]||it,e=this.elementStates.length;e--;)ea(this.elementStates[e],t)},n.interrupt=function interrupt(n){var r=this,a=[];this.targets.forEach(function(t){var e=t._flip,i=Ba(e,n?0:1);n&&i&&a.indexOf(e)<0&&e.add(function(){return r.updateVisibility()}),i&&a.push(e)}),!n&&a.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!a.length)},n.updateVisibility=function updateVisibility(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},n.getElementState=function getElementState(t){return this.elementStates[this.targets.indexOf(U(t))]},n.makeAbsolute=function makeAbsolute(){return da(this.elementStates.slice(0),!0,!0).map(ia)},FlipState);function FlipState(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=qa(t),this.elementStates=t,Ca(this);else{this.targets=T(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);Q&&!n&&Q._kill.push(this),this.update(n||!!Q)}}var Y,lt=((Y=ElementState.prototype).isDifferent=function isDifferent(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},Y.update=function update(e,i){var n=this,r=n.element,a=J.getProperty(r),s=J.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),h=i?new _(1,0,0,1,o.left+u(),o.top+t()):getGlobalMatrix(r,!1,!1,!0);n.getProp=a,n.element=r,n.id=function _getID(t){var e=t.getAttribute("data-flip-id");return e||t.setAttribute("data-flip-id",e="auto-"+E++),e}(r),n.matrix=h,n.cache=s,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=a("display"),n.position=a("position"),n.parent=r.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=l?l.width:N(a("width","px"),.04),n.height=l?l.height:N(a("height","px"),.04),e&&function _recordProps(t,e){for(var i=J.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(n,at[e]||aa(e)),n.ctm=r.getCTM&&"svg"===r.nodeName.toLowerCase()&&z(r).inverse(),n.simple=i||1===V(h.a)&&!V(h.b)&&!V(h.c)&&1===V(h.d),n.uncache=0},ElementState);function ElementState(t,e,i){this.element=t,this.update(e,i)}var G,j=((G=FlipAction.prototype).getStateById=function getStateById(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},G.kill=function kill(){this.batch.remove(this)},FlipAction);function FlipAction(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var q,H=((q=FlipBatch.prototype).add=function add(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new j("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)},q.remove=function remove(t){var e=this.actions.indexOf(t);return 0<=e&&this.actions.splice(e,1),this},q.getState=function getState(e){var i=this,t=Q,n=s;return(Q=this).state.clear(),this._kill.length=0,this.actions.forEach(function(t){t.vars.getState&&(t.states.length=0,(s=t).state=t.vars.getState(t)),e&&t.states.forEach(function(t){return i.state.add(t)})}),s=n,Q=t,this.killConflicts(),this},q.animate=function animate(){var t,e,i=this,n=Q,r=this.timeline,a=this.actions.length;for(Q=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,a=t.targets;a&&a.length&&(n||r)&&(e=new ot,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(ut.getState(a))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),ka(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),K(i,"onComplete"))}),Q=n;a--;)this.actions[a].vars.once&&this.actions[a].kill();return K(this,"onStart"),r.restart(),this},q.loadState=function loadState(n){n=n||function done(){return 0};var r=[];return this.actions.forEach(function(e){if(e.vars.loadState){var i,t=function f(t){t&&(e.targets=t),~(i=r.indexOf(f))&&(r.splice(i,1),r.length||n())};r.push(t),e.vars.loadState(t)}}),r.length||n(),this},q.setState=function setState(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},q.killConflicts=function killConflicts(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},q.run=function run(t,e){var i=this;return this!==Q&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},q.clear=function clear(t){this.state.clear(),t||(this.actions.length=0)},q.getStateById=function getStateById(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},q.kill=function kill(){this._killed=1,this.clear(),delete h[this.id]},FlipBatch);function FlipBatch(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ot,this.timeline=J.timeline()}var ut=(Flip.getState=function getState(t,e){var i=ta(t,e);return s&&s.states.push(i),e&&e.batch&&Flip.batch(e.batch).state.add(i),i},Flip.from=function from(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},Flip.to=function to(t,e){return za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},Flip.fromTo=function fromTo(t,e,i){return za(t,e,i)},Flip.fit=function fit(t,e,i){var n=i?$(i,rt):{},r=i||n,a=r.absolute,s=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,h=r.onComplete,p=r.simple,c=i&&i.fitChild&&U(i.fitChild),f=L(e,l,p,t),d=L(t,0,p,f),m=l?tt[l]:it;return l&&oa(n,f.props),u&&(ea(d,m),"immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){fa(d),h&&h.apply(this,arguments)}),a&&ia(d,f),n=st(d,f,s||c,l,c,n.duration||o?n:0),o?n:n.duration?J.to(d.element,n):null},Flip.makeAbsolute=function makeAbsolute(t,e){return(t instanceof ot?t:new ot(t,e)).makeAbsolute()},Flip.batch=function batch(t){return h[t=t||"default"]||(h[t]=new H(t))},Flip.killFlipsOf=function killFlipsOf(t,e){(t instanceof ot?t.targets:T(t)).forEach(function(t){return t&&Ba(t._flip,!1!==e?1:2)})},Flip.isFlipping=function isFlipping(t){var e=Flip.getByTarget(t);return!!e&&e.isActive()},Flip.getByTarget=function getByTarget(t){return(U(t)||M)._flip},Flip.getElementState=function getElementState(t,e){return new lt(U(t),e)},Flip.convertCoordinates=function convertCoordinates(t,e,i){var n=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return i?n.apply(i):n},Flip.register=function register(t){if(o="undefined"!=typeof document&&document.body){J=t,p(o),T=J.utils.toArray;var i=J.utils.snap(.1);N=function _closestTenth(t,e){return i(parseFloat(t)+e)}}},Flip);function Flip(){}ut.version="3.10.1","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ut),e.Flip=ut,e.default=ut;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function p(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(S=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,d=new _,e){r=(g=e).documentElement,b=e.body,(a=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div");b.appendChild(i),i.appendChild(n),i.style.position="static",i.style[w]="translate3d(0,0,1px)",m=n.offsetParent!==i,b.removeChild(i)}return e}function t(){return y.pageYOffset||g.scrollTop||r.scrollTop||b.scrollTop||0}function u(){return y.pageXOffset||g.scrollLeft||r.scrollLeft||b.scrollLeft||0}function v(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function x(t,e){if(t.parentNode&&(g||p(t))){var i=v(t),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",a=2!==e?0:100,s=3===e?100:0,o="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),r):g.createElement(r);return e&&(i?(f=f||x(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+a+","+s+")"),f.appendChild(l)):(c||((c=x(t)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+s+"px;left:"+a+"px",c.appendChild(l))),l}throw"Need document and parent."}function z(t){var e,i=t.getCTM();return i||(e=t.style[w],t.style[w]="none",t.appendChild(a),i=a.getCTM(),t.removeChild(a),e?t.style[w]=e:t.style.removeProperty(w.replace(/([A-Z])/g,"-$1").toLowerCase())),i||d.clone()}function A(t,e){var i,n,r,a,s,o,l=v(t),u=t===l,h=l?C:k,p=t.parentNode;if(t===y)return t;if(h.length||h.push(x(t,1),x(t,2),x(t,3)),i=l?f:c,l)u?(a=-(r=z(t)).e/r.a,s=-r.f/r.d,n=d):(r=t.getBBox(),a=(n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(t){for(var e=new _,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:d).a*r.x+n.c*r.y,s=n.b*r.x+n.d*r.y),e&&"g"===t.tagName.toLowerCase()&&(a=s=0),(u?l:p).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+s)+")");else{if(a=s=0,m)for(n=t.offsetParent,r=t;(r=r&&r.parentNode)&&r!==n&&r.parentNode;)4<(y.getComputedStyle(r)[w]+"").length&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=y.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;p&&p!==n;)a+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;(r=i.style).top=t.offsetTop-s+"px",r.left=t.offsetLeft-a+"px",r[w]=o[w],r[S]=o[S],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}function B(t,e,i,n,r,a,s){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=a,t.f=s,t}var g,y,r,b,c,f,d,a,m,i,w="transform",S=w+"Origin",C=[],k=[],_=((i=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,a=this.f,s=t*n-e*i||1e-10;return B(this,n/s,-e/s,-i/s,t/s,(i*a-n*r)/s,-(t*a-e*r)/s)},i.multiply=function multiply(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f,o=t.a,l=t.c,u=t.b,h=t.d,p=t.e,c=t.f;return B(this,o*e+u*n,o*i+u*r,l*e+h*n,l*i+h*r,a+p*e+c*n,s+p*i+c*r)},i.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},i.equals=function equals(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&a===t.e&&s===t.f},i.apply=function apply(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*s+l||0,e.y=i*a+n*o+u||0,e},Matrix2D);function Matrix2D(t,e,i,n,r,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=0),B(this,t,e,i,n,r,a)}function getGlobalMatrix(e,i,n,r){if(!e||!e.parentNode||(g||p(e)).documentElement===e)return new _;var a=function _forceNonZeroScale(t){for(var e,i;t&&t!==b;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(e),s=v(e)?C:k,o=A(e,n),l=s[0].getBoundingClientRect(),h=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),f=o.parentNode,d=!r&&function _isFixed(t){return"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(e),m=new _((h.left-l.left)/100,(h.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(d?0:u()),l.top+(d?0:t()));if(f.removeChild(o),a)for(l=a.length;l--;)(h=a[l]).scaleX=h.scaleY=0,h.renderTransform(1,h);return i?m.inverse():m}function K(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})}function R(t){return"string"==typeof t?t.split(" ").join("").split(","):t}function U(t){return T(t)[0]||console.warn("Element not found:",t)}function V(t){return Math.round(1e4*t)/1e4||0}function W(t,e,i){return t.forEach(function(t){return t.classList[i](e)})}function Z(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function $(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n}function aa(t){var e=at[t]=R(t);return tt[t]=e.concat(it),e}function da(t,e,i){return t.forEach(function(t){return t.d=function _getDOMDepth(t,e,i){void 0===i&&(i=0);for(var n=t.parentNode,r=1e3*Math.pow(10,i)*(e?-1:1),a=e?900*-r:0;t;)a+=r,t=t.previousSibling;return n?a+_getDOMDepth(n,e,i+1):a}(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t}function ea(t,e){for(var i,n,r=t.element.style,a=t.css=t.css||[],s=e.length;s--;)n=r[i=e[s]]||r.getPropertyValue(i),a.push(n?i:F[i]||(F[i]=Z(i)),n);return r}function fa(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n])}function ga(t,e){t.forEach(function(t){return t.a.cache.uncache=1}),e||t.finalStates.forEach(fa)}function ia(e,i,n){var r,a,s,o=e.element,l=e.width,h=e.height,p=e.uncache,c=e.getProp,f=o.style,d=4;if("object"!=typeof i&&(i=e),Q&&1!==n)return Q._abs.push({t:o,b:e,a:e,sd:0}),Q._final.push(function(){return(e.cache.uncache=1)&&fa(e)}),o;for(a="none"===c("display"),e.isVisible&&!a||(a&&(ea(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=l=e.width||i.width,e.height=h=e.height||i.height),ea(e,I),s=window.getComputedStyle(o);d--;)f[I[d]]=s[I[d]];if(f.gridArea="1 / 1 / 1 / 1",f.transition="none",f.position="absolute",f.width=l+"px",f.height=h+"px",f.top||(f.top="0px"),f.left||(f.left="0px"),p)r=new lt(o);else if((r=$(e,M)).position="absolute",e.simple){var m=o.getBoundingClientRect();r.matrix=new _(1,0,0,1,m.left+u(),m.top+t())}else r.matrix=getGlobalMatrix(o,!1,!1,!0);return r=st(r,e,!0),e.x=N(r.x,.01),e.y=N(r.y,.01),o}function ja(t,e){return!0!==e&&(e=T(e),t=t.filter(function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px"})),t}function ka(t){return da(t,!0).forEach(function(t){return(t.a.isVisible||t.b.isVisible)&&ia(t.sd<0?t.b:t.a,t.b,1)})}function oa(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]}function qa(t){return t.map(function(t){return t.element})}function ra(t,e,i){return t&&e.length&&i.add(t(qa(e),i,new ot(e,0,!0)),0)}function ta(t,e){return t instanceof ot?t:new ot(t,e)}function ua(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r}function ya(t){if(t!==l){var e=o.style,i=o.clientWidth===window.outerWidth,n=o.clientHeight===window.outerHeight,r=4;if(t&&(i||n)){for(;r--;)X[r]=e[D[r]];i&&(e.width=o.clientWidth+"px",e.overflowY="hidden"),n&&(e.height=o.clientHeight+"px",e.overflowX="hidden"),l=t}else if(l){for(;r--;)X[r]?e[D[r]]=X[r]:e.removeProperty(Z(D[r]));l=t}}}function za(t,e,r,i){t instanceof ot&&e instanceof ot||console.warn("Not a valid state object.");var a,s,o,l,u,h,p,c,f,n,d,m,g,y,x,v=(r=r||{}).clearProps,b=r.onEnter,w=r.onLeave,S=r.absolute,C=r.absoluteOnLeave,k=r.custom,V=r.delay,_=r.paused,E=r.repeat,B=r.repeatDelay,M=r.yoyo,F=r.toggleClass,I=r.nested,L=r.zIndex,T=r.scale,N=r.fade,O=r.stagger,P=r.spin,A=r.prune,X=("props"in r?r:t).props,z=$(r,nt),D=J.timeline({delay:V,paused:_,repeat:E,repeatDelay:B,yoyo:M}),R=z,Y=[],G=[],j=[],q=[],U=!0===P?1:P||0,H="function"==typeof P?P:function(){return U},Z=t.interrupted||e.interrupted,K=D[1!==i?"to":"from"];for(s in e.idLookup)d=e.alt[s]?ua(e,t,s):e.idLookup[s],u=d.element,n=t.idLookup[s],!t.alt[s]||u!==n.element||!t.alt[s].isVisible&&d.isVisible||(n=t.alt[s]),n?(h={t:u,b:n,a:d,sd:n.element===u?0:d.isVisible?1:-1},j.push(h),h.sd&&(h.sd<0&&(h.b=d,h.a=n),Z&&ea(h.b,X?tt[X]:it),N&&j.push(h.swap={t:n.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),u._flip=n.element._flip=Q?Q.timeline:D):d.isVisible&&(j.push({t:u,b:$(d,{isVisible:1}),a:d,sd:0,entering:1}),u._flip=Q?Q.timeline:D);return X&&(at[X]||aa(X)).forEach(function(e){return z[e]=function(t){return j[t].a.props[e]}}),j.finalStates=f=[],m=function run(){for(da(j),ya(!0),l=0;l<j.length;l++)h=j[l],g=h.a,y=h.b,!A||g.isDifferent(y)||h.entering?(u=h.t,!I||h.sd<0||!l||(g.matrix=getGlobalMatrix(u,!1,!1,!0)),h.sd||y.isVisible&&g.isVisible?(h.sd<0?(p=new lt(u,X,t.simple),st(p,g,T,0,0,p),p.matrix=getGlobalMatrix(u,!1,!1,!0),p.css=h.b.css,h.a=g=p,N&&(u.style.opacity=Z?y.opacity:g.opacity),O&&q.push(u)):0<h.sd&&N&&(u.style.opacity=Z?g.opacity-y.opacity:"0"),st(g,y,T,X)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,G.push(y),j.splice(l--,1),S&&I&&st(g,y,T,X)):(g.isVisible&&Y.push(g),j.splice(l--,1))),T||(u.style.maxWidth=Math.max(g.width,y.width)+"px",u.style.maxHeight=Math.max(g.height,y.height)+"px",u.style.minWidth=Math.min(g.width,y.width)+"px",u.style.minHeight=Math.min(g.height,y.height)+"px"),I&&F&&u.classList.add(F)):j.splice(l--,1),f.push(g);var e;if(F&&(e=f.map(function(t){return t.element}),I&&e.forEach(function(t){return t.classList.remove(F)})),ya(!1),T?(z.scaleX=function(t){return j[t].a.scaleX},z.scaleY=function(t){return j[t].a.scaleY}):(z.width=function(t){return j[t].a.width+"px"},z.height=function(t){return j[t].a.height+"px"},z.autoRound=r.autoRound||!1),z.x=function(t){return j[t].a.x+"px"},z.y=function(t){return j[t].a.y+"px"},z.rotation=function(t){return j[t].a.rotation+(P?360*H(t,c[t],c):0)},z.skewX=function(t){return j[t].a.skewX},c=j.map(function(t){return t.t}),!L&&0!==L||(z.modifiers={zIndex:function zIndex(){return L}},z.zIndex=L,z.immediateRender=!1!==r.immediateRender),N&&(z.opacity=function(t){return j[t].sd<0?0:0<j[t].sd?j[t].a.opacity:"+=0"}),q.length){O=J.utils.distribute(O);var i=c.slice(q.length);z.stagger=function(t,e){return O(~q.indexOf(e)?c.indexOf(j[t].swap.t):t,e,i)}}if(et.forEach(function(t){return r[t]&&D.eventCallback(t,r[t],r[t+"Params"])}),k&&c.length)for(s in R=$(z,nt),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)(a=$(k[s],rt))[s]=z[s],!("duration"in a)&&"duration"in z&&(a.duration=z.duration),a.stagger=z.stagger,K.call(D,c,a,0),delete R[s];(c.length||G.length||Y.length)&&(F&&D.add(function(){return W(e,F,D._zTime<0?"remove":"add")},0)&&!_&&W(e,F,"add"),c.length&&K.call(D,c,R,0)),ra(b,Y,D),ra(w,G,D);var n=Q&&Q.timeline;n&&(n.add(D,0),Q._final.push(function(){return ga(j,!v)})),o=D.duration(),D.call(function(){var t=D.time()>=o;t&&!n&&ga(j,!v),F&&W(e,F,t?"remove":"add")})},C&&(S=j.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),Q?(S&&(x=Q._abs).push.apply(x,ja(j,S)),Q._run.push(m)):(S&&ka(ja(j,S)),m()),Q?Q.timeline:D}function Ba(t,e){if(t&&t.progress()<1&&!t.paused())return e&&(function _interrupt(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(_interrupt)}(t),e<2&&t.progress(1),t.kill()),!0}function Ca(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,a=r.length;a--;)i[(e=r[a]).id]?n[e.id]=e:i[e.id]=e}var T,J,Q,s,o,N,l,n,E=1,h={},O=180/Math.PI,P=Math.PI/180,M={},F={},tt={},et=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),it=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),nt={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},rt={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},at={},I="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),L=function _parseElementState(t,e,i,n){return t instanceof lt?t:t instanceof ot?function _findElStateInState(t,e){return e&&t.idLookup[L(e).id]||t.elementStates[0]}(t,n):new lt("string"==typeof t?U(t)||console.warn(t+" not found"):t,e,i)},st=function _fit(t,e,i,n,r,a){var s,o,l,u,h,p,c,f=t.element,d=t.cache,m=t.parent,g=t.x,y=t.y,x=e.width,v=e.height,b=e.scaleX,w=e.scaleY,S=e.rotation,C=e.bounds,k=a&&f.style.cssText,_=a&&f.getBBox&&f.getAttribute("transform"),E=t,B=e.matrix,M=B.e,F=B.f,I=t.bounds.width!==C.width||t.bounds.height!==C.height||t.scaleX!==b||t.scaleY!==w||t.rotation!==S,L=!I&&t.simple&&e.simple&&!r;return L||!m?(b=w=1,S=s=0):(p=(h=function _getInverseGlobalMatrix(t){var e=t._gsap||J.core.getCache(t);return e.gmCache===J.ticker.frame?e.gMatrix:(e.gmCache=J.ticker.frame,e.gMatrix=getGlobalMatrix(t,!0,!1,!0))}(m)).clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=V(Math.atan2(p.b,p.a)*O),s=V(Math.atan2(p.c,p.d)*O+S)%360,b=Math.sqrt(Math.pow(p.a,2)+Math.pow(p.b,2)),w=Math.sqrt(Math.pow(p.c,2)+Math.pow(p.d,2))*Math.cos(s*P),r&&(r=T(r)[0],u=J.getProperty(r),c=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),E={scaleX:u("scaleX"),scaleY:u("scaleY"),width:c?c.width:Math.ceil(parseFloat(u("width","px"))),height:c?c.height:parseFloat(u("height","px"))}),d.rotation=S+"deg",d.skewX=s+"deg"),i?(b*=x!==E.width&&E.width?x/E.width:1,w*=v!==E.height&&E.height?v/E.height:1,d.scaleX=b,d.scaleY=w):(x=N(x*b/E.scaleX,0),v=N(v*w/E.scaleY,0),f.style.width=x+"px",f.style.height=v+"px"),n&&oa(f,e.props),L||!m?(g+=M-t.matrix.e,y+=F-t.matrix.f):I||m!==e.parent?(d.renderTransform(1,d),p=getGlobalMatrix(r||f,!1,!1,!0),o=h.apply({x:p.e,y:p.f}),g+=(l=h.apply({x:M,y:F})).x-o.x,y+=l.y-o.y):(h.e=h.f=0,g+=(l=h.apply({x:M-t.matrix.e,y:F-t.matrix.f})).x,y+=l.y),g=N(g,.02),y=N(y,.02),!a||a instanceof lt?(d.x=g+"px",d.y=y+"px",d.renderTransform(1,d)):(f.style.cssText=k,f.getBBox&&f.setAttribute("transform",_||""),d.uncache=1),a&&(a.x=g,a.y=y,a.rotation=S,a.skewX=s,i?(a.scaleX=b,a.scaleY=w):(a.width=x,a.height=v)),a||d},X=[],D="width,height,overflowX,overflowY".split(","),ot=((n=FlipState.prototype).update=function update(t){var e=this;return this.elementStates=this.targets.map(function(t){return new lt(t,e.props,e.simple)}),Ca(this),this.interrupt(t),this.recordInlineStyles(),this},n.clear=function clear(){return this.targets.length=this.elementStates.length=0,Ca(this),this},n.fit=function fit(t,e,i){for(var n,r,a=da(this.elementStates.slice(0),!1,!0),s=(t||this).idLookup,o=0;o<a.length;o++)n=a[o],i&&(n.matrix=getGlobalMatrix(n.element,!1,!1,!0)),(r=s[n.id])&&st(n,r,e,!0,0,n),n.matrix=getGlobalMatrix(n.element,!1,!1,!0);return this},n.getProperty=function getProperty(t,e){var i=this.getElementState(t)||M;return(e in i?i:i.props||M)[e]},n.add=function add(t){for(var e,i,n,r=t.targets.length,a=this.idLookup,s=this.alt;r--;)(n=a[(i=t.elementStates[r]).id])&&(i.element===n.element||s[i.id]&&s[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===n.element?n:s[i.id]),this.targets.splice(e,1,t.targets[r]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[r]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),Ca(this),this},n.compare=function compare(t){function hh(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?f:d:t.isVisible?c:p).push(i)&&m.push(i)}function ih(t,e,i){return m.indexOf(i)<0&&hh(t,e,i)}var e,i,n,r,a,s,o,l,u=t.idLookup,h=this.idLookup,p=[],c=[],f=[],d=[],m=[],g=t.alt,y=this.alt;for(n in u)a=g[n],s=y[n],r=(e=a?ua(t,this,n):u[n]).element,i=h[n],s?(l=i.isVisible||!s.isVisible&&r===i.element?i:s,(o=!a||e.isVisible||a.isVisible||l.element!==a.element?e:a).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:p).push(o.element,l.element),m.push(o.element,l.element)):hh(o,l,o.element),a&&o.element===a.element&&(a=u[n]),ih(o.element!==i.element&&a?a:o,i,i.element),ih(a&&a.element===s.element?a:o,s,s.element),a&&ih(a,s.element===a.element?s:i,a.element)):(i?i.isDifferent(e)?hh(e,i,r):p.push(r):f.push(r),a&&ih(a,i,a.element));for(n in h)u[n]||(d.push(h[n].element),y[n]&&d.push(y[n].element));return{changed:c,unchanged:p,enter:f,leave:d}},n.recordInlineStyles=function recordInlineStyles(){for(var t=tt[this.props]||it,e=this.elementStates.length;e--;)ea(this.elementStates[e],t)},n.interrupt=function interrupt(n){var r=this,a=[];this.targets.forEach(function(t){var e=t._flip,i=Ba(e,n?0:1);n&&i&&a.indexOf(e)<0&&e.add(function(){return r.updateVisibility()}),i&&a.push(e)}),!n&&a.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!a.length)},n.updateVisibility=function updateVisibility(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},n.getElementState=function getElementState(t){return this.elementStates[this.targets.indexOf(U(t))]},n.makeAbsolute=function makeAbsolute(){return da(this.elementStates.slice(0),!0,!0).map(ia)},FlipState);function FlipState(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=qa(t),this.elementStates=t,Ca(this);else{this.targets=T(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);Q&&!n&&Q._kill.push(this),this.update(n||!!Q)}}var Y,lt=((Y=ElementState.prototype).isDifferent=function isDifferent(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},Y.update=function update(e,i){var n=this,r=n.element,a=J.getProperty(r),s=J.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),h=i?new _(1,0,0,1,o.left+u(),o.top+t()):getGlobalMatrix(r,!1,!1,!0);n.getProp=a,n.element=r,n.id=function _getID(t){var e=t.getAttribute("data-flip-id");return e||t.setAttribute("data-flip-id",e="auto-"+E++),e}(r),n.matrix=h,n.cache=s,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=a("display"),n.position=a("position"),n.parent=r.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=l?l.width:N(a("width","px"),.04),n.height=l?l.height:N(a("height","px"),.04),e&&function _recordProps(t,e){for(var i=J.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(n,at[e]||aa(e)),n.ctm=r.getCTM&&"svg"===r.nodeName.toLowerCase()&&z(r).inverse(),n.simple=i||1===V(h.a)&&!V(h.b)&&!V(h.c)&&1===V(h.d),n.uncache=0},ElementState);function ElementState(t,e,i){this.element=t,this.update(e,i)}var G,j=((G=FlipAction.prototype).getStateById=function getStateById(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},G.kill=function kill(){this.batch.remove(this)},FlipAction);function FlipAction(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var q,H=((q=FlipBatch.prototype).add=function add(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new j("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)},q.remove=function remove(t){var e=this.actions.indexOf(t);return 0<=e&&this.actions.splice(e,1),this},q.getState=function getState(e){var i=this,t=Q,n=s;return(Q=this).state.clear(),this._kill.length=0,this.actions.forEach(function(t){t.vars.getState&&(t.states.length=0,(s=t).state=t.vars.getState(t)),e&&t.states.forEach(function(t){return i.state.add(t)})}),s=n,Q=t,this.killConflicts(),this},q.animate=function animate(){var t,e,i=this,n=Q,r=this.timeline,a=this.actions.length;for(Q=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,a=t.targets;a&&a.length&&(n||r)&&(e=new ot,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(ut.getState(a))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),ka(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),K(i,"onComplete"))}),Q=n;a--;)this.actions[a].vars.once&&this.actions[a].kill();return K(this,"onStart"),r.restart(),this},q.loadState=function loadState(n){n=n||function done(){return 0};var r=[];return this.actions.forEach(function(e){if(e.vars.loadState){var i,t=function f(t){t&&(e.targets=t),~(i=r.indexOf(f))&&(r.splice(i,1),r.length||n())};r.push(t),e.vars.loadState(t)}}),r.length||n(),this},q.setState=function setState(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},q.killConflicts=function killConflicts(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},q.run=function run(t,e){var i=this;return this!==Q&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},q.clear=function clear(t){this.state.clear(),t||(this.actions.length=0)},q.getStateById=function getStateById(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},q.kill=function kill(){this._killed=1,this.clear(),delete h[this.id]},FlipBatch);function FlipBatch(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ot,this.timeline=J.timeline()}var ut=(Flip.getState=function getState(t,e){var i=ta(t,e);return s&&s.states.push(i),e&&e.batch&&Flip.batch(e.batch).state.add(i),i},Flip.from=function from(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},Flip.to=function to(t,e){return za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},Flip.fromTo=function fromTo(t,e,i){return za(t,e,i)},Flip.fit=function fit(t,e,i){var n=i?$(i,rt):{},r=i||n,a=r.absolute,s=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,h=r.onComplete,p=r.simple,c=i&&i.fitChild&&U(i.fitChild),f=L(e,l,p,t),d=L(t,0,p,f),m=l?tt[l]:it;return l&&oa(n,f.props),u&&(ea(d,m),"immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){fa(d),h&&h.apply(this,arguments)}),a&&ia(d,f),n=st(d,f,s||c,l,c,n.duration||o?n:0),o?n:n.duration?J.to(d.element,n):null},Flip.makeAbsolute=function makeAbsolute(t,e){return(t instanceof ot?t:new ot(t,e)).makeAbsolute()},Flip.batch=function batch(t){return h[t=t||"default"]||(h[t]=new H(t))},Flip.killFlipsOf=function killFlipsOf(t,e){(t instanceof ot?t.targets:T(t)).forEach(function(t){return t&&Ba(t._flip,!1!==e?1:2)})},Flip.isFlipping=function isFlipping(t){var e=Flip.getByTarget(t);return!!e&&e.isActive()},Flip.getByTarget=function getByTarget(t){return(U(t)||M)._flip},Flip.getElementState=function getElementState(t,e){return new lt(U(t),e)},Flip.convertCoordinates=function convertCoordinates(t,e,i){var n=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return i?n.apply(i):n},Flip.register=function register(t){if(o="undefined"!=typeof document&&document.body){J=t,p(o),T=J.utils.toArray;var i=J.utils.snap(.1);N=function _closestTenth(t,e){return i(parseFloat(t)+e)}}},Flip);function Flip(){}ut.version="3.10.2","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ut),e.Flip=ut,e.default=ut;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -1456,3 +1456,3 @@ (function (global, factory) { | ||
/*! | ||
* MotionPathPlugin 3.10.1 | ||
* MotionPathPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -1651,3 +1651,3 @@ * | ||
var MotionPathPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "motionPath", | ||
@@ -1654,0 +1654,0 @@ register: function register(core, Plugin, propTween) { |
/*! | ||
* MotionPathPlugin 3.10.1 | ||
* MotionPathPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function p(t){return"string"==typeof t}function x(t){return Math.round(1e10*t)/1e10||0}function y(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function C(t,e){var n=t.length,r=t[n-1]||[],a=r.length;n&&e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,q=Math.PI/180,s=180/Math.PI,F=Math.sin,U=Math.cos,H=Math.abs,$=Math.sqrt,l=Math.atan2,A=1e8,h=function _isNumber(t){return"number"==typeof t},S={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+A)%1*e)/e||(t<0?0:1)},N=function _round(t){return Math.round(t*e)/e||0},m=function _getSampleIndex(t,e,n){var r=t.length,a=~~(n*r);if(t[a]>e){for(;--a&&t[a]>e;);a<0&&(a=0)}else for(;t[++a]<e&&a<r;);return a<r?a:r-1},B=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):h(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var O={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w,P,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,O[R]),"rect"===R?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,g=M.width-2*o,f=M.height-2*i,n=o||i?"M"+(v=(d=(c=r+o)+g)+o)+","+(y=a+i)+" V"+(w=y+f)+" C"+[v,P=w+i*L,m=d+o*L,b=w+i,d,b,d-(d-c)/3,b,c+(d-c)/3,b,c,b,p=r+o*(1-L),b,r,P,r,w,r,w-(w-y)/3,r,y+(w-y)/3,r,y,r,x=a+i*(1-L),p,a,c,a,c+(d-c)/3,a,d-(d-c)/3,a,d,a,m,a,v,x,v,y].join(",")+"z":"M"+(r+g)+","+a+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,N(l(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){n=function _isUndefined(t){return void 0===t}(n)?1:x(n)||0,e=x(e)||0;var r=Math.max(0,~~(H(n-e)-1e-8)),a=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=B(t[n],t[n].slice(0));return B(t,e)}(t);if(n<e&&(e=1-e,n=1-n,function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(a),a.totalLength=0),e<0||n<0){var o=Math.abs(~~Math.min(e,n))+1;e+=o,n+=o}a.totalLength||cacheRawPathMeasurements(a);var i,s,l,h,u,g,f,p,c=1<n,d=getProgressData(a,e,S,!0),m=getProgressData(a,n,_),v=m.segment,w=d.segment,P=m.segIndex,b=d.segIndex,M=m.i,R=d.i,L=b===P,T=M===R&&L;if(c||r){for(i=P<b||L&&M<R||T&&m.t<d.t,y(a,b,R,d.t)&&(b++,i||(P++,T?(m.t=(m.t-d.t)/(1-d.t),M=0):L&&(M-=R))),Math.abs(1-(n-e))<1e-5?P=b-1:!m.t&&P?P--:y(a,P,M,m.t)&&i&&b++,1===d.t&&(b=(b+1)%a.length),u=[],f=1+(g=a.length)*r,f+=(g-(p=b)+P)%g,h=0;h<f;h++)C(u,a[p++%g]);a=u}else if(l=1===m.t?6:subdivideSegment(v,M,m.t),e!==n)for(s=subdivideSegment(w,R,T?d.t/m.t:d.t),L&&(l+=s),v.splice(M+l+2),(s||R)&&w.splice(0,R+s),h=a.length;h--;)(h<b||P<h)&&a.splice(h,1);else v.angle=getRotationAtBezierT(v,M+l,0),d=v[M+=l],m=v[M+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return a.totalLength=0,a}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w=~~t.resolution||12,P=1/w,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*w:0,T=t.samples,S=t.lookup,_=(e?t.minLength:A)||A,C=T[L+n*w-1],N=e?T[L-1]:0;for(T.length=S.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,g=t[a+3]-R,f=t[a+1]-R,l=h=p=c=0,H(o)<.01&&H(u)<.01&&H(s)+H(f)<.01)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=w;r++)l=h-(h=((m=P*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),p=c-(c=(m*m*u+3*d*(m*g+d*f))*m),(x=$(p*p+l*l))<_&&(_=x),N+=x,T[L++]=N;M+=o,R+=u}if(C)for(C-=N;L<T.length;L++)T[L]+=C;if(T.length&&_){if(t.totalLength=y=T[T.length-1]||0,y/(t.minLength=_)<9999)for(x=v=0,r=0;r<y;r+=_)S[x++]=T[v]<r?++v:v}else t.totalLength=T[0]=0;return e?N-T[e/2-1]:N}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,g=a+(i-a)*n,f=i+(l-i)*n,p=h+(u-h)*n,c=g+(f-g)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,f+=(m-f)*n,t.splice(e+2,4,N(h),N(g),N(p),N(c),N(p+(u-p)*n),N(c+(f-c)*n),N(u),N(f),N(d),N(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,g=0,f=t[0];if(e)if(1===e)u=1,h=(f=t[g=t.length-1]).length-8;else{if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)g=h;e=(i-(s=l-(f=t[g]).totalLength))/(l-s)||0}a=f.samples,o=f.resolution,i=f.totalLength*e,s=(h=f.lookup.length?f.lookup[~~(i/f.minLength)]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<f.length?(h+=6,u=0):g+1<t.length&&(h=u=0,f=t[++g]))}else u=h=g=0,f=t[0];return n.t=u,n.i=h,n.path=t,n.segment=f,n.segIndex=g,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,g,f,p=t[0],c=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)p=t[h];e=(i-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,o=p.resolution,i=p.totalLength*e,s=(h=p.lookup.length?p.lookup[e<1?~~(i/p.minLength):p.lookup.length-1]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),f=1-(u=1/o*((i-s)/(l-s)+h%o)||0),g=p[h=6*~~(h/o)],c.x=N((u*u*(p[h+6]-g)+3*f*(u*(p[h+4]-g)+f*(p[h+2]-g)))*u+g),c.y=N((u*u*(p[h+7]-(g=p[h+1]))+3*f*(u*(p[h+5]-g)+f*(p[h+3]-g)))*u+g),n&&(c.angle=p.totalLength?getRotationAtBezierT(p,h,1<=u?1-1e-9:u||1e-9):p.angle||0),c}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,g,f=t.length;-1<--f;)for(l=(s=t[f]).length,h=0;h<l;h+=2)u=s[h],g=s[h+1],s[h]=u*e+g*r+o,s[h+1]=u*n+g*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*q,u=U(h),g=F(h),f=Math.PI,p=2*f,c=(t-s)/2,d=(e-l)/2,m=u*c+g*d,v=-g*c+u*d,x=m*m,y=v*v,w=x/(n*n)+y/(r*r);1<w&&(n=$(w)*n,r=$(w)*r);var P=n*n,b=r*r,M=(P*b-P*y-b*x)/(P*y+b*x);M<0&&(M=0);var R=(o===i?-1:1)*$(M),L=n*v/r*R,T=-r*m/n*R,S=u*L-g*T+(t+s)/2,_=g*L+u*T+(e+l)/2,C=(m-L)/n,N=(v-T)/r,A=(-m-L)/n,B=(-v-T)/r,O=C*C+N*N,E=(N<0?-1:1)*Math.acos(C/$(O)),G=(C*B-N*A<0?-1:1)*Math.acos((C*A+N*B)/$(O*(A*A+B*B)));isNaN(G)&&(G=f),!i&&0<G?G-=p:i&&G<0&&(G+=p),E%=p,G%=p;var I,D=Math.ceil(H(G)/(p/4)),X=[],z=G/D,k=4/3*F(z/2)/(1+U(z/2)),Z=u*n,V=g*n,Y=g*-r,j=u*r;for(I=0;I<D;I++)m=U(a=E+I*z),v=F(a),C=U(a+=z),N=F(a),X.push(m-k*v,v+k*m,C+k*N,N-k*C,C,N);for(I=0;I<X.length;I+=2)m=X[I],v=X[I+1],X[I]=m*Z+v*Y+S,X[I+1]=m*V+v*j+_;return X[I-2]=s,X[I-1]=l,X}}function stringToRawPath(t){function Af(t,e,n,r){u=(n-t)/3,g=(r-e)/3,s.push(t+u,e+g,n-u,r-g,n,r)}var e,n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=(t+"").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],x=0,y=0,w=m.length,P=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<w;e++)if(p=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=x,a+=y),e||(l=r,h=a),"M"===o)s&&(s.length<8?--v.length:P+=s.length),x=l=r,y=h=a,s=[r,a],v.push(s),e+=2,o="L";else if("C"===o)i||(x=y=0),(s=s||[0,0]).push(r,a,x+1*m[e+3],y+1*m[e+4],x+=1*m[e+5],y+=1*m[e+6]),e+=6;else if("S"===o)u=x,g=y,"C"!==p&&"S"!==p||(u+=x-s[s.length-4],g+=y-s[s.length-3]),i||(x=y=0),s.push(u,g,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if("Q"===o)u=x+2/3*(r-x),g=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,g,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if("T"===o)u=x-s[s.length-4],g=y-s[s.length-3],s.push(x+u,y+g,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*g-a),x=r,y=a),e+=2;else if("H"===o)Af(x,y,x=r,y),e+=1;else if("V"===o)Af(x,y,x,y=r+(i?y-x:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(x-r)||.5<H(y-a))&&(Af(x,y,r,a),"L"===o&&(e+=2)),x=r,y=a;else if("A"===o){if(c=m[e+4],d=m[e+5],u=m[e+6],g=m[e+7],n=7,1<c.length&&(c.length<3?(g=u,u=d,n--):(g=d,u=c.substr(2),n-=2),d=c.charAt(1),c=c.charAt(0)),f=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+c,+d,(i?x:0)+1*u,(i?y:0)+1*g),e+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);x=s[s.length-2],y=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=P+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e){H(t[0]-t[2])<1e-4&&H(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=t.length-2,v=+t[0],x=+t[1],y=+t[2],w=+t[3],P=[v,x,v,x],b=y-v,M=w-x,R=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-x)<.001;for(R&&(t.push(y,w),y=v,w=x,v=t[m-2],x=t[m-1],t.unshift(v,x),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)n=v,r=x,v=y,x=w,y=+t[a+2],w=+t[a+3],v===y&&x===w||(o=b,i=M,b=y-v,M=w-x,h=((s=$(o*o+i*i))+(l=$(b*b+M*M)))*e*.25/$(Math.pow(b/l+o/s,2)+Math.pow(M/l+i/s,2)),f=v-((u=v-(v-n)*(s?h/s:0))+(((g=v+(y-v)*(l?h/l:0))-u)*(3*s/(s+l)+.5)/4||0)),d=x-((p=x-(x-r)*(s?h/s:0))+(((c=x+(w-x)*(l?h/l:0))-p)*(3*s/(s+l)+.5)/4||0)),v===n&&x===r||P.push(N(u+f),N(p+d),N(v),N(x),N(g+f),N(c+d)));return v!==y||x!==w||P.length<4?P.push(N(y),N(w),N(y),N(w)):P.length-=2,2===P.length?P.push(v,x,v,x,v,x):R&&(P.splice(0,6),P.length=P.length-6),P}function rawPathToString(t){h(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+N(a[0])+","+N(a[1])+" C",e=a.length,r=2;r<e;r++)o+=N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r])+" ";a.closed&&(o+="z")}return o}function R(t){var e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(z=(D="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(v=window,E=new Y,e){w=(c=e).documentElement,P=e.body,(G=c.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div");P.appendChild(n),n.appendChild(r),n.style.position="static",n.style[D]="translate3d(0,0,1px)",I=r.offsetParent!==n,P.removeChild(n)}return e}function X(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function Z(t,e){if(t.parentNode&&(c||R(t))){var n=X(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=c.createElementNS?c.createElementNS(r.replace(/^https/,"http"),a):c.createElement(a);return e&&(n?(b=b||Z(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),b.appendChild(l)):(f||((f=Z(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",f.appendChild(l))),l}throw"Need document and parent."}function aa(t,e){var n,r,a,o,i,s,l=X(t),h=t===l,u=l?k:V,g=t.parentNode;if(t===v)return t;if(u.length||u.push(Z(t,1),Z(t,2),Z(t,3)),n=l?b:f,l)h?(o=-(a=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(G),n=G.getCTM(),t.removeChild(G),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||E.clone()}(t)).e/a.a,i=-a.f/a.d,r=E):(a=t.getBBox(),o=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?1<r.numberOfItems?function _consolidate(t){for(var e=new Y,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix:E).a*a.x+r.c*a.y,i=r.b*a.x+r.d*a.y),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),(h?l:g).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")");else{if(o=i=0,I)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(v.getComputedStyle(a)[D]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=v.getComputedStyle(t)).position&&"fixed"!==s.position)for(r=t.offsetParent;g&&g!==r;)o+=g.scrollLeft||0,i+=g.scrollTop||0,g=g.parentNode;(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",a[D]=s[D],a[z]=s[z],a.position="fixed"===s.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function ba(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var c,v,w,P,f,b,E,G,I,n,D="transform",z=D+"Origin",k=[],V=[],Y=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return ba(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,g=t.e,f=t.f;return ba(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+g*e+f*r,i+g*n+f*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),ba(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n,r){if(!t||!t.parentNode||(c||R(t)).documentElement===t)return new Y;var a=function _forceNonZeroScale(t){for(var e,n;t&&t!==P;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=X(t)?k:V,i=aa(t,n),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),u=i.parentNode,g=!r&&function _isFixed(t){return"fixed"===v.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new Y((l.left-s.left)/100,(l.top-s.top)/100,(h.left-s.left)/100,(h.top-s.top)/100,s.left+(g?0:function _getDocScrollLeft(){return v.pageXOffset||c.scrollLeft||w.scrollLeft||P.scrollLeft||0}()),s.top+(g?0:function _getDocScrollTop(){return v.pageYOffset||c.scrollTop||w.scrollTop||P.scrollTop||0}()));if(u.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}function la(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function ma(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function na(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function oa(t,e,n,r,a,o,i,s,l){return e="cubic"===i.type?[e]:(!1!==i.fromCurrent&&e.unshift(ma(n,r,s),a?ma(n,a,l):0),i.relative&&na(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(et(e,n,i)),nt(t,n,r,e,"x",s),a&&nt(t,n,a,e,"y",l),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function pa(t){return t}function ra(t,e,n){var r,a=getGlobalMatrix(t),o=0,i=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,i=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})}function sa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=ra(t,n,o),l=ra(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(a=e.getAttribute("d").match(tt)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),(a||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var j,g,Q,W,J="x,translateX,left,marginLeft,xPercent".split(","),K="y,translateY,top,marginTop,yPercent".split(","),o=Math.PI/180,tt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,et=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,g=t[0][0],f=t[0][1],p=ma(e,"x"),c=ma(e,"y");return t&&t.length?(i&&("self"===i||(r=W(i)[0]||e)===e?transformRawPath(t,1,0,0,1,p-g,c-f):(u&&!1!==u[2]?j.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[ma(e,"xPercent")/-100,ma(e,"yPercent")/-100],o=(a=sa(e,r,u,"auto")).apply({x:g,y:f}),transformRawPath(t,a.a,a.b,a.c,a.d,p+a.e-(o.x-a.e),c+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath("M0,0L0,0")},nt=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(",")<0?l:n,u=t._pt=new g(t._pt,e,h,0,0,pa,0,i.set(e,h,t));u.u=Q(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.10.1",name:"motionPath",register:function register(t,e,n){Q=(j=t).utils.getUnit,W=j.utils.toArray,g=n},init:function init(t,e){if(!j)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a=[],o=e.path,i=e.autoRotate,s=e.unitX,l=e.unitY,h=e.x,u=e.y,g=o[0],f=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=a,this.target=t,(this.rotate=i||0===i)&&(this.rOffset=parseFloat(i)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Q(t._gsap.get(t,this.rProp))||0),!Array.isArray(o)||"closed"in o||"number"==typeof g)cacheRawPathMeasurements(n=f(et(getRawPath(e.path),t,e)),e.resolution),a.push(n),nt(this,t,e.x||"x",n,"x",e.unitX||"px"),nt(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in g)!h&&~J.indexOf(r)?h=r:!u&&~K.indexOf(r)&&(u=r);for(r in h&&u?a.push(oa(this,la(la([],o,h,0),o,u,1),t,h,u,f,e,s||Q(o[0][h]),l||Q(o[0][u]))):h=u=0,g)r!==h&&r!==u&&a.push(oa(this,la([],o,r,2),t,r,0,f,e,Q(o[0][r])))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return W(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:sa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=sa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=la(la([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&na(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return j||"undefined"!=typeof window&&(j=window.gsap)&&j.registerPlugin&&j}()||j.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function p(t){return"string"==typeof t}function x(t){return Math.round(1e10*t)/1e10||0}function y(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function C(t,e){var n=t.length,r=t[n-1]||[],a=r.length;n&&e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,q=Math.PI/180,s=180/Math.PI,F=Math.sin,U=Math.cos,H=Math.abs,$=Math.sqrt,l=Math.atan2,A=1e8,h=function _isNumber(t){return"number"==typeof t},S={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+A)%1*e)/e||(t<0?0:1)},N=function _round(t){return Math.round(t*e)/e||0},m=function _getSampleIndex(t,e,n){var r=t.length,a=~~(n*r);if(t[a]>e){for(;--a&&t[a]>e;);a<0&&(a=0)}else for(;t[++a]<e&&a<r;);return a<r?a:r-1},B=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):h(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var O={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w,P,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,O[R]),"rect"===R?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,g=M.width-2*o,f=M.height-2*i,n=o||i?"M"+(v=(d=(c=r+o)+g)+o)+","+(y=a+i)+" V"+(w=y+f)+" C"+[v,P=w+i*L,m=d+o*L,b=w+i,d,b,d-(d-c)/3,b,c+(d-c)/3,b,c,b,p=r+o*(1-L),b,r,P,r,w,r,w-(w-y)/3,r,y+(w-y)/3,r,y,r,x=a+i*(1-L),p,a,c,a,c+(d-c)/3,a,d-(d-c)/3,a,d,a,m,a,v,x,v,y].join(",")+"z":"M"+(r+g)+","+a+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,N(l(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){n=function _isUndefined(t){return void 0===t}(n)?1:x(n)||0,e=x(e)||0;var r=Math.max(0,~~(H(n-e)-1e-8)),a=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=B(t[n],t[n].slice(0));return B(t,e)}(t);if(n<e&&(e=1-e,n=1-n,function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(a),a.totalLength=0),e<0||n<0){var o=Math.abs(~~Math.min(e,n))+1;e+=o,n+=o}a.totalLength||cacheRawPathMeasurements(a);var i,s,l,h,u,g,f,p,c=1<n,d=getProgressData(a,e,S,!0),m=getProgressData(a,n,_),v=m.segment,w=d.segment,P=m.segIndex,b=d.segIndex,M=m.i,R=d.i,L=b===P,T=M===R&&L;if(c||r){for(i=P<b||L&&M<R||T&&m.t<d.t,y(a,b,R,d.t)&&(b++,i||(P++,T?(m.t=(m.t-d.t)/(1-d.t),M=0):L&&(M-=R))),Math.abs(1-(n-e))<1e-5?P=b-1:!m.t&&P?P--:y(a,P,M,m.t)&&i&&b++,1===d.t&&(b=(b+1)%a.length),u=[],f=1+(g=a.length)*r,f+=(g-(p=b)+P)%g,h=0;h<f;h++)C(u,a[p++%g]);a=u}else if(l=1===m.t?6:subdivideSegment(v,M,m.t),e!==n)for(s=subdivideSegment(w,R,T?d.t/m.t:d.t),L&&(l+=s),v.splice(M+l+2),(s||R)&&w.splice(0,R+s),h=a.length;h--;)(h<b||P<h)&&a.splice(h,1);else v.angle=getRotationAtBezierT(v,M+l,0),d=v[M+=l],m=v[M+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return a.totalLength=0,a}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w=~~t.resolution||12,P=1/w,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*w:0,T=t.samples,S=t.lookup,_=(e?t.minLength:A)||A,C=T[L+n*w-1],N=e?T[L-1]:0;for(T.length=S.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,g=t[a+3]-R,f=t[a+1]-R,l=h=p=c=0,H(o)<.01&&H(u)<.01&&H(s)+H(f)<.01)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=w;r++)l=h-(h=((m=P*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),p=c-(c=(m*m*u+3*d*(m*g+d*f))*m),(x=$(p*p+l*l))<_&&(_=x),N+=x,T[L++]=N;M+=o,R+=u}if(C)for(C-=N;L<T.length;L++)T[L]+=C;if(T.length&&_){if(t.totalLength=y=T[T.length-1]||0,y/(t.minLength=_)<9999)for(x=v=0,r=0;r<y;r+=_)S[x++]=T[v]<r?++v:v}else t.totalLength=T[0]=0;return e?N-T[e/2-1]:N}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,g=a+(i-a)*n,f=i+(l-i)*n,p=h+(u-h)*n,c=g+(f-g)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,f+=(m-f)*n,t.splice(e+2,4,N(h),N(g),N(p),N(c),N(p+(u-p)*n),N(c+(f-c)*n),N(u),N(f),N(d),N(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,g=0,f=t[0];if(e)if(1===e)u=1,h=(f=t[g=t.length-1]).length-8;else{if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)g=h;e=(i-(s=l-(f=t[g]).totalLength))/(l-s)||0}a=f.samples,o=f.resolution,i=f.totalLength*e,s=(h=f.lookup.length?f.lookup[~~(i/f.minLength)]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<f.length?(h+=6,u=0):g+1<t.length&&(h=u=0,f=t[++g]))}else u=h=g=0,f=t[0];return n.t=u,n.i=h,n.path=t,n.segment=f,n.segIndex=g,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,g,f,p=t[0],c=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)p=t[h];e=(i-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,o=p.resolution,i=p.totalLength*e,s=(h=p.lookup.length?p.lookup[e<1?~~(i/p.minLength):p.lookup.length-1]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),f=1-(u=1/o*((i-s)/(l-s)+h%o)||0),g=p[h=6*~~(h/o)],c.x=N((u*u*(p[h+6]-g)+3*f*(u*(p[h+4]-g)+f*(p[h+2]-g)))*u+g),c.y=N((u*u*(p[h+7]-(g=p[h+1]))+3*f*(u*(p[h+5]-g)+f*(p[h+3]-g)))*u+g),n&&(c.angle=p.totalLength?getRotationAtBezierT(p,h,1<=u?1-1e-9:u||1e-9):p.angle||0),c}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,g,f=t.length;-1<--f;)for(l=(s=t[f]).length,h=0;h<l;h+=2)u=s[h],g=s[h+1],s[h]=u*e+g*r+o,s[h+1]=u*n+g*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*q,u=U(h),g=F(h),f=Math.PI,p=2*f,c=(t-s)/2,d=(e-l)/2,m=u*c+g*d,v=-g*c+u*d,x=m*m,y=v*v,w=x/(n*n)+y/(r*r);1<w&&(n=$(w)*n,r=$(w)*r);var P=n*n,b=r*r,M=(P*b-P*y-b*x)/(P*y+b*x);M<0&&(M=0);var R=(o===i?-1:1)*$(M),L=n*v/r*R,T=-r*m/n*R,S=u*L-g*T+(t+s)/2,_=g*L+u*T+(e+l)/2,C=(m-L)/n,N=(v-T)/r,A=(-m-L)/n,B=(-v-T)/r,O=C*C+N*N,E=(N<0?-1:1)*Math.acos(C/$(O)),G=(C*B-N*A<0?-1:1)*Math.acos((C*A+N*B)/$(O*(A*A+B*B)));isNaN(G)&&(G=f),!i&&0<G?G-=p:i&&G<0&&(G+=p),E%=p,G%=p;var I,D=Math.ceil(H(G)/(p/4)),X=[],z=G/D,k=4/3*F(z/2)/(1+U(z/2)),Z=u*n,V=g*n,Y=g*-r,j=u*r;for(I=0;I<D;I++)m=U(a=E+I*z),v=F(a),C=U(a+=z),N=F(a),X.push(m-k*v,v+k*m,C+k*N,N-k*C,C,N);for(I=0;I<X.length;I+=2)m=X[I],v=X[I+1],X[I]=m*Z+v*Y+S,X[I+1]=m*V+v*j+_;return X[I-2]=s,X[I-1]=l,X}}function stringToRawPath(t){function Af(t,e,n,r){u=(n-t)/3,g=(r-e)/3,s.push(t+u,e+g,n-u,r-g,n,r)}var e,n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=(t+"").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],x=0,y=0,w=m.length,P=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<w;e++)if(p=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=x,a+=y),e||(l=r,h=a),"M"===o)s&&(s.length<8?--v.length:P+=s.length),x=l=r,y=h=a,s=[r,a],v.push(s),e+=2,o="L";else if("C"===o)i||(x=y=0),(s=s||[0,0]).push(r,a,x+1*m[e+3],y+1*m[e+4],x+=1*m[e+5],y+=1*m[e+6]),e+=6;else if("S"===o)u=x,g=y,"C"!==p&&"S"!==p||(u+=x-s[s.length-4],g+=y-s[s.length-3]),i||(x=y=0),s.push(u,g,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if("Q"===o)u=x+2/3*(r-x),g=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,g,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if("T"===o)u=x-s[s.length-4],g=y-s[s.length-3],s.push(x+u,y+g,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*g-a),x=r,y=a),e+=2;else if("H"===o)Af(x,y,x=r,y),e+=1;else if("V"===o)Af(x,y,x,y=r+(i?y-x:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(x-r)||.5<H(y-a))&&(Af(x,y,r,a),"L"===o&&(e+=2)),x=r,y=a;else if("A"===o){if(c=m[e+4],d=m[e+5],u=m[e+6],g=m[e+7],n=7,1<c.length&&(c.length<3?(g=u,u=d,n--):(g=d,u=c.substr(2),n-=2),d=c.charAt(1),c=c.charAt(0)),f=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+c,+d,(i?x:0)+1*u,(i?y:0)+1*g),e+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);x=s[s.length-2],y=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=P+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e){H(t[0]-t[2])<1e-4&&H(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=t.length-2,v=+t[0],x=+t[1],y=+t[2],w=+t[3],P=[v,x,v,x],b=y-v,M=w-x,R=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-x)<.001;for(R&&(t.push(y,w),y=v,w=x,v=t[m-2],x=t[m-1],t.unshift(v,x),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)n=v,r=x,v=y,x=w,y=+t[a+2],w=+t[a+3],v===y&&x===w||(o=b,i=M,b=y-v,M=w-x,h=((s=$(o*o+i*i))+(l=$(b*b+M*M)))*e*.25/$(Math.pow(b/l+o/s,2)+Math.pow(M/l+i/s,2)),f=v-((u=v-(v-n)*(s?h/s:0))+(((g=v+(y-v)*(l?h/l:0))-u)*(3*s/(s+l)+.5)/4||0)),d=x-((p=x-(x-r)*(s?h/s:0))+(((c=x+(w-x)*(l?h/l:0))-p)*(3*s/(s+l)+.5)/4||0)),v===n&&x===r||P.push(N(u+f),N(p+d),N(v),N(x),N(g+f),N(c+d)));return v!==y||x!==w||P.length<4?P.push(N(y),N(w),N(y),N(w)):P.length-=2,2===P.length?P.push(v,x,v,x,v,x):R&&(P.splice(0,6),P.length=P.length-6),P}function rawPathToString(t){h(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+N(a[0])+","+N(a[1])+" C",e=a.length,r=2;r<e;r++)o+=N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r])+" ";a.closed&&(o+="z")}return o}function R(t){var e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(z=(D="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(v=window,E=new Y,e){w=(c=e).documentElement,P=e.body,(G=c.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div");P.appendChild(n),n.appendChild(r),n.style.position="static",n.style[D]="translate3d(0,0,1px)",I=r.offsetParent!==n,P.removeChild(n)}return e}function X(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function Z(t,e){if(t.parentNode&&(c||R(t))){var n=X(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=c.createElementNS?c.createElementNS(r.replace(/^https/,"http"),a):c.createElement(a);return e&&(n?(b=b||Z(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),b.appendChild(l)):(f||((f=Z(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",f.appendChild(l))),l}throw"Need document and parent."}function aa(t,e){var n,r,a,o,i,s,l=X(t),h=t===l,u=l?k:V,g=t.parentNode;if(t===v)return t;if(u.length||u.push(Z(t,1),Z(t,2),Z(t,3)),n=l?b:f,l)h?(o=-(a=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(G),n=G.getCTM(),t.removeChild(G),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||E.clone()}(t)).e/a.a,i=-a.f/a.d,r=E):(a=t.getBBox(),o=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?1<r.numberOfItems?function _consolidate(t){for(var e=new Y,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix:E).a*a.x+r.c*a.y,i=r.b*a.x+r.d*a.y),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),(h?l:g).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")");else{if(o=i=0,I)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(v.getComputedStyle(a)[D]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=v.getComputedStyle(t)).position&&"fixed"!==s.position)for(r=t.offsetParent;g&&g!==r;)o+=g.scrollLeft||0,i+=g.scrollTop||0,g=g.parentNode;(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",a[D]=s[D],a[z]=s[z],a.position="fixed"===s.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function ba(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var c,v,w,P,f,b,E,G,I,n,D="transform",z=D+"Origin",k=[],V=[],Y=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return ba(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,g=t.e,f=t.f;return ba(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+g*e+f*r,i+g*n+f*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),ba(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n,r){if(!t||!t.parentNode||(c||R(t)).documentElement===t)return new Y;var a=function _forceNonZeroScale(t){for(var e,n;t&&t!==P;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=X(t)?k:V,i=aa(t,n),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),u=i.parentNode,g=!r&&function _isFixed(t){return"fixed"===v.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new Y((l.left-s.left)/100,(l.top-s.top)/100,(h.left-s.left)/100,(h.top-s.top)/100,s.left+(g?0:function _getDocScrollLeft(){return v.pageXOffset||c.scrollLeft||w.scrollLeft||P.scrollLeft||0}()),s.top+(g?0:function _getDocScrollTop(){return v.pageYOffset||c.scrollTop||w.scrollTop||P.scrollTop||0}()));if(u.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}function la(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function ma(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function na(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function oa(t,e,n,r,a,o,i,s,l){return e="cubic"===i.type?[e]:(!1!==i.fromCurrent&&e.unshift(ma(n,r,s),a?ma(n,a,l):0),i.relative&&na(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(et(e,n,i)),nt(t,n,r,e,"x",s),a&&nt(t,n,a,e,"y",l),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function pa(t){return t}function ra(t,e,n){var r,a=getGlobalMatrix(t),o=0,i=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,i=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})}function sa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=ra(t,n,o),l=ra(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(a=e.getAttribute("d").match(tt)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),(a||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var j,g,Q,W,J="x,translateX,left,marginLeft,xPercent".split(","),K="y,translateY,top,marginTop,yPercent".split(","),o=Math.PI/180,tt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,et=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,g=t[0][0],f=t[0][1],p=ma(e,"x"),c=ma(e,"y");return t&&t.length?(i&&("self"===i||(r=W(i)[0]||e)===e?transformRawPath(t,1,0,0,1,p-g,c-f):(u&&!1!==u[2]?j.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[ma(e,"xPercent")/-100,ma(e,"yPercent")/-100],o=(a=sa(e,r,u,"auto")).apply({x:g,y:f}),transformRawPath(t,a.a,a.b,a.c,a.d,p+a.e-(o.x-a.e),c+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath("M0,0L0,0")},nt=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(",")<0?l:n,u=t._pt=new g(t._pt,e,h,0,0,pa,0,i.set(e,h,t));u.u=Q(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.10.2",name:"motionPath",register:function register(t,e,n){Q=(j=t).utils.getUnit,W=j.utils.toArray,g=n},init:function init(t,e){if(!j)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a=[],o=e.path,i=e.autoRotate,s=e.unitX,l=e.unitY,h=e.x,u=e.y,g=o[0],f=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=a,this.target=t,(this.rotate=i||0===i)&&(this.rOffset=parseFloat(i)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Q(t._gsap.get(t,this.rProp))||0),!Array.isArray(o)||"closed"in o||"number"==typeof g)cacheRawPathMeasurements(n=f(et(getRawPath(e.path),t,e)),e.resolution),a.push(n),nt(this,t,e.x||"x",n,"x",e.unitX||"px"),nt(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in g)!h&&~J.indexOf(r)?h=r:!u&&~K.indexOf(r)&&(u=r);for(r in h&&u?a.push(oa(this,la(la([],o,h,0),o,u,1),t,h,u,f,e,s||Q(o[0][h]),l||Q(o[0][u]))):h=u=0,g)r!==h&&r!==u&&a.push(oa(this,la([],o,r,2),t,r,0,f,e,Q(o[0][r])))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return W(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:sa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=sa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=la(la([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&na(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return j||"undefined"!=typeof window&&(j=window.gsap)&&j.registerPlugin&&j}()||j.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
@@ -24,3 +24,3 @@ (function (global, factory) { | ||
/*! | ||
* Observer 3.10.1 | ||
* Observer 3.10.2 | ||
* https://greensock.com | ||
@@ -199,3 +199,3 @@ * | ||
if (gsap && !_coreInitted && typeof document !== "undefined") { | ||
if (gsap && !_coreInitted && typeof document !== "undefined" && document.body) { | ||
_win = window; | ||
@@ -583,3 +583,3 @@ _doc = document; | ||
}(); | ||
Observer.version = "3.10.1"; | ||
Observer.version = "3.10.2"; | ||
@@ -586,0 +586,0 @@ Observer.create = function (vars) { |
/*! | ||
* Observer 3.10.1 | ||
* Observer 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(pe){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}var he,ve,ye,xe,_e,be,me,we,Oe,t,Pe,n=1,Me=[];pe._scrollers=[],pe._proxies=[];function v(e,t){return~pe._proxies.indexOf(e)&&pe._proxies[pe._proxies.indexOf(e)+1][t]}function w(e){return!!~t.indexOf(e)}function x(e,t,n,r){return e.addEventListener(t,n,{passive:!r})}function y(e,t,n){return e.removeEventListener(t,n)}function B(){return Pe&&Pe.isPressed||pe._scrollers.cache++}function C(t){return function(e){return e||0===e?(n&&(ye.history.scrollRestoration="manual"),t(e),t.v=e,t.c=pe._scrollers.cache,Pe&&Pe.isPressed&&Xe("ss",e)):pe._scrollers.cache===t.c&&!Xe("ref")||(t.c=pe._scrollers.cache,t.v=t()),t.v}}function F(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function G(t,e){var n=e.s,r=e.sc,o=pe._scrollers.indexOf(t),i=r===De.sc?1:2;return~o||(o=pe._scrollers.push(t)-1),pe._scrollers[o+i]||(pe._scrollers[o+i]=v(t,n)||(w(t)?r:function(e){return arguments.length?t[n]=e:t[n]}))}function H(e,t,o){function Ea(e,t){var n=u();t||r<n-c?(s=i,i=e,a=c,c=n):o?i+=e:i=s+(e-s)/(n-a)*(c-a)}var i=e,s=e,c=u(),a=c,r=t||50,l=Math.max(500,3*r);return{update:Ea,reset:function reset(){s=i=o?0:i,a=c=0},getVelocity:function getVelocity(e){var t=a,n=s,r=u();return!e&&0!==e||e===i||Ea(e),c===a||l<r-a?0:(i+(o?n:-n))/((o?r:c)-t)*1e3}}}function I(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function J(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n}function K(e){return(he=e||p())&&!ve&&"undefined"!=typeof document&&(ye=window,_e=(xe=document).documentElement,be=xe.body,t=[ye,xe,_e,be],he.utils.clamp,we="onpointerenter"in be?"pointer":"mouse",me=i.isTouch=ye.matchMedia&&ye.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ye||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return n=0},500),ve=1),ve}var u=Date.now,Xe=function _bridge(e,t){return t},r="scrollLeft",o="scrollTop",Ye={s:r,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:C(function(e){return arguments.length?ye.scrollTo(e,De.sc()):ye.pageXOffset||xe[r]||_e[r]||be[r]||0})},De={s:o,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ye,sc:C(function(e){return arguments.length?ye.scrollTo(Ye.sc(),e):ye.pageYOffset||xe[o]||_e[o]||be[o]||0})};Ye.op=De,pe._scrollers.cache=0;var i=(Observer.prototype.init=function init(e){ve||K(he)||console.warn("Please gsap.registerPlugin(Observer)"),Oe||(Oe=he.core.globals().ScrollTrigger)&&Oe.core&&function _integrate(){var e=Oe.core,n=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,pe._scrollers),r.push.apply(r,pe._proxies),pe._scrollers=t,pe._proxies=r,Xe=function _bridge(e,t){return n[e](t)}}();var o=e.tolerance,s=e.dragMinimum,t=e.type,n=e.target,r=e.lineHeight,i=e.debounce,c=e.preventDefault,a=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,g=e.onDragStart,p=e.onDragEnd,h=e.onDrag,v=e.onPress,_=e.onRelease,b=e.onRight,m=e.onLeft,O=e.onUp,P=e.onDown,M=e.onChangeX,X=e.onChangeY,Y=e.onChange,D=e.onToggleX,T=e.onToggleY,E=e.onHover,k=e.onHoverEnd,C=e.onMove,S=e.ignoreCheck,Z=e.isNormalizer,j=e.onGestureStart,V=e.onGestureEnd,L=e.onWheel,A=e.onEnable,R=e.onDisable,W=e.onClick,z=e.scrollSpeed;function Zb(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&ae&&"touch"!==e.pointerType||S&&S(e)}function _b(){var e=ee.deltaX=J(de),t=ee.deltaY=J(fe),n=Math.abs(e)>=o,r=Math.abs(t)>=o;Y&&(n||r)&&Y(ee,e,t,de,fe),n&&(b&&0<ee.deltaX&&b(ee),m&&ee.deltaX<0&&m(ee),M&&M(ee),D&&ee.deltaX<0!=te<0&&D(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),r&&(P&&0<ee.deltaY&&P(ee),O&&ee.deltaY<0&&O(ee),X&&X(ee),T&&ee.deltaY<0!=ne<0&&T(ee),ne=ee.deltaY,fe[0]=fe[1]=fe[2]=0),Q&&(C(ee),Q=!1),U&&(h(ee),U=!1),$&&(L(ee),$=!1),q=0}function ac(e,t,n){de[n]+=e,fe[n]+=t,ee._vx.update(e,2===n),ee._vy.update(t,2===n),i?q=q||requestAnimationFrame(_b):_b()}function bc(e){if(!Zb(e,1)){var t=(e=I(e,c)).clientX,n=e.clientY,r=t-ee.x,o=n-ee.y,i=ee.isDragging;ee.x=t,ee.y=n,(i||Math.abs(ee.startX-t)>=s||Math.abs(ee.startY-n)>=s)&&(h&&(U=!0),i||(ee.isDragging=!0),ac(r,o,2),i||g&&g(ee))}}function dc(e){if(!Zb(e,1)){y(Z?n:ue,ce[1],bc);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,a&&!Z&&N.restart(!0),p&&t&&p(ee),_&&_(ee,t)}}function ec(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&j(e,ee.isDragging)}function fc(){return(ee.isGesturing=!1)||V(ee)}function gc(e){if(!Zb(e)){var t=re(),n=oe();ac((t-ie)*z,(n-se)*z,1),ie=t,se=n,a&&N.restart(!0)}}function hc(e){if(!Zb(e)){e=I(e,c),L&&($=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?ye.innerHeight:1)*d;ac(e.deltaX*t,e.deltaY*t,0),a&&!Z&&N.restart(!0)}}function ic(e){if(!Zb(e)){var t=e.clientX,n=e.clientY,r=t-ee.x,o=n-ee.y;ee.x=t,ee.y=n,C&&(Q=!0),(r||o)&&ac(r,o,2)}}function jc(e){ee.event=e,E(ee)}function kc(e){ee.event=e,k(ee)}function lc(e){return Zb(e)||I(e,c)&&W(ee)}this.target=n=F(n)||_e,this.vars=e,u=u&&he.utils.toArray(u),o=o||0,s=s||0,d=d||1,z=z||1,t=t||"wheel,touch,pointer",i=!1!==i,r=r||parseFloat(ye.getComputedStyle(be).lineHeight)||22;var q,N,U,Q,$,ee=this,te=0,ne=0,re=G(n,Ye),oe=G(n,De),ie=re(),se=oe(),ce=("ontouchstart"in _e?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in _e)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),ae=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===ce[0],le=w(n),ue=n.ownerDocument||xe,de=[0,0,0],fe=[0,0,0],ge=ee.onPress=function(e){Zb(e,1)||(N.pause(),ee.isPressed=!0,e=I(e,c),te=ne=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),x(Z?n:ue,ce[1],bc,c),ee.deltaX=ee.deltaY=0,v&&v(ee))};N=ee._dc=he.delayedCall(l||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),N.pause(),a&&a(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=H(0,50,!0),ee._vy=H(0,50,!0),ee.scrollX=re,ee.scrollY=oe,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(x(le?ue:n,"scroll",B),0<=t.indexOf("scroll")&&x(le?ue:n,"scroll",gc,c),0<=t.indexOf("wheel")&&x(n,"wheel",hc,c),(0<=t.indexOf("touch")&&me||0<=t.indexOf("pointer"))&&(x(n,ce[0],ge,c),x(ue,ce[2],dc),x(ue,ce[3],dc),W&&x(n,"click",lc),j&&x(ue,"gesturestart",ec),V&&x(ue,"gestureend",fc),E&&x(n,we+"enter",jc),k&&x(n,we+"leave",kc),C&&x(n,we+"move",ic)),ee.isEnabled=!0,e&&e.type&&ge(e),A&&A(ee)),ee},ee.disable=function(){ee.isEnabled&&(Me.filter(function(e){return e!==ee&&w(e.target)}).length||y(le?ue:n,"scroll",B),y(le?ue:n,"scroll",gc),y(n,"wheel",hc),y(n,ce[0],ge),y(ue,ce[2],dc),y(ue,ce[3],dc),y(n,"click",lc),y(ue,"gesturestart",ec),y(ue,"gestureend",fc),y(n,we+"enter",jc),y(n,we+"leave",kc),y(n,we+"move",ic),ee.isEnabled=!1,R&&R(ee))},ee.kill=function(){ee.disable();var e=Me.indexOf(ee);0<=e&&Me.splice(e,1),Pe===ee&&(Pe=0)},Me.push(ee),Z&&(Pe=ee),ee.enable(f)},function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}i.version="3.10.1",i.create=function(e){return new i(e)},i.register=K,i.getAll=function(){return Me.slice()},i.getById=function(t){return Me.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(i),pe.Observer=i,pe._getProxyProp=v,pe._getScrollFunc=G,pe._getTarget=F,pe._getVelocityProp=H,pe._horizontal=Ye,pe._isViewport=w,pe._vertical=De,pe.default=i,Object.defineProperty(pe,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(pe){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}var he,ve,ye,xe,_e,be,me,we,Oe,t,Pe,n=1,Me=[];pe._scrollers=[],pe._proxies=[];function v(e,t){return~pe._proxies.indexOf(e)&&pe._proxies[pe._proxies.indexOf(e)+1][t]}function w(e){return!!~t.indexOf(e)}function x(e,t,n,r){return e.addEventListener(t,n,{passive:!r})}function y(e,t,n){return e.removeEventListener(t,n)}function B(){return Pe&&Pe.isPressed||pe._scrollers.cache++}function C(t){return function(e){return e||0===e?(n&&(ye.history.scrollRestoration="manual"),t(e),t.v=e,t.c=pe._scrollers.cache,Pe&&Pe.isPressed&&Xe("ss",e)):pe._scrollers.cache===t.c&&!Xe("ref")||(t.c=pe._scrollers.cache,t.v=t()),t.v}}function F(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function G(t,e){var n=e.s,r=e.sc,o=pe._scrollers.indexOf(t),i=r===De.sc?1:2;return~o||(o=pe._scrollers.push(t)-1),pe._scrollers[o+i]||(pe._scrollers[o+i]=v(t,n)||(w(t)?r:function(e){return arguments.length?t[n]=e:t[n]}))}function H(e,t,o){function Ea(e,t){var n=u();t||r<n-c?(s=i,i=e,a=c,c=n):o?i+=e:i=s+(e-s)/(n-a)*(c-a)}var i=e,s=e,c=u(),a=c,r=t||50,l=Math.max(500,3*r);return{update:Ea,reset:function reset(){s=i=o?0:i,a=c=0},getVelocity:function getVelocity(e){var t=a,n=s,r=u();return!e&&0!==e||e===i||Ea(e),c===a||l<r-a?0:(i+(o?n:-n))/((o?r:c)-t)*1e3}}}function I(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function J(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n}function K(e){return(he=e||p())&&!ve&&"undefined"!=typeof document&&document.body&&(ye=window,_e=(xe=document).documentElement,be=xe.body,t=[ye,xe,_e,be],he.utils.clamp,we="onpointerenter"in be?"pointer":"mouse",me=i.isTouch=ye.matchMedia&&ye.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ye||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return n=0},500),ve=1),ve}var u=Date.now,Xe=function _bridge(e,t){return t},r="scrollLeft",o="scrollTop",Ye={s:r,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:C(function(e){return arguments.length?ye.scrollTo(e,De.sc()):ye.pageXOffset||xe[r]||_e[r]||be[r]||0})},De={s:o,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ye,sc:C(function(e){return arguments.length?ye.scrollTo(Ye.sc(),e):ye.pageYOffset||xe[o]||_e[o]||be[o]||0})};Ye.op=De,pe._scrollers.cache=0;var i=(Observer.prototype.init=function init(e){ve||K(he)||console.warn("Please gsap.registerPlugin(Observer)"),Oe||(Oe=he.core.globals().ScrollTrigger)&&Oe.core&&function _integrate(){var e=Oe.core,n=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,pe._scrollers),r.push.apply(r,pe._proxies),pe._scrollers=t,pe._proxies=r,Xe=function _bridge(e,t){return n[e](t)}}();var o=e.tolerance,s=e.dragMinimum,t=e.type,n=e.target,r=e.lineHeight,i=e.debounce,c=e.preventDefault,a=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,g=e.onDragStart,p=e.onDragEnd,h=e.onDrag,v=e.onPress,_=e.onRelease,b=e.onRight,m=e.onLeft,O=e.onUp,P=e.onDown,M=e.onChangeX,X=e.onChangeY,Y=e.onChange,D=e.onToggleX,T=e.onToggleY,E=e.onHover,k=e.onHoverEnd,C=e.onMove,S=e.ignoreCheck,Z=e.isNormalizer,j=e.onGestureStart,V=e.onGestureEnd,L=e.onWheel,A=e.onEnable,R=e.onDisable,W=e.onClick,z=e.scrollSpeed;function Zb(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&ae&&"touch"!==e.pointerType||S&&S(e)}function _b(){var e=ee.deltaX=J(de),t=ee.deltaY=J(fe),n=Math.abs(e)>=o,r=Math.abs(t)>=o;Y&&(n||r)&&Y(ee,e,t,de,fe),n&&(b&&0<ee.deltaX&&b(ee),m&&ee.deltaX<0&&m(ee),M&&M(ee),D&&ee.deltaX<0!=te<0&&D(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),r&&(P&&0<ee.deltaY&&P(ee),O&&ee.deltaY<0&&O(ee),X&&X(ee),T&&ee.deltaY<0!=ne<0&&T(ee),ne=ee.deltaY,fe[0]=fe[1]=fe[2]=0),Q&&(C(ee),Q=!1),U&&(h(ee),U=!1),$&&(L(ee),$=!1),q=0}function ac(e,t,n){de[n]+=e,fe[n]+=t,ee._vx.update(e,2===n),ee._vy.update(t,2===n),i?q=q||requestAnimationFrame(_b):_b()}function bc(e){if(!Zb(e,1)){var t=(e=I(e,c)).clientX,n=e.clientY,r=t-ee.x,o=n-ee.y,i=ee.isDragging;ee.x=t,ee.y=n,(i||Math.abs(ee.startX-t)>=s||Math.abs(ee.startY-n)>=s)&&(h&&(U=!0),i||(ee.isDragging=!0),ac(r,o,2),i||g&&g(ee))}}function dc(e){if(!Zb(e,1)){y(Z?n:ue,ce[1],bc);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,a&&!Z&&N.restart(!0),p&&t&&p(ee),_&&_(ee,t)}}function ec(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&j(e,ee.isDragging)}function fc(){return(ee.isGesturing=!1)||V(ee)}function gc(e){if(!Zb(e)){var t=re(),n=oe();ac((t-ie)*z,(n-se)*z,1),ie=t,se=n,a&&N.restart(!0)}}function hc(e){if(!Zb(e)){e=I(e,c),L&&($=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?ye.innerHeight:1)*d;ac(e.deltaX*t,e.deltaY*t,0),a&&!Z&&N.restart(!0)}}function ic(e){if(!Zb(e)){var t=e.clientX,n=e.clientY,r=t-ee.x,o=n-ee.y;ee.x=t,ee.y=n,C&&(Q=!0),(r||o)&&ac(r,o,2)}}function jc(e){ee.event=e,E(ee)}function kc(e){ee.event=e,k(ee)}function lc(e){return Zb(e)||I(e,c)&&W(ee)}this.target=n=F(n)||_e,this.vars=e,u=u&&he.utils.toArray(u),o=o||0,s=s||0,d=d||1,z=z||1,t=t||"wheel,touch,pointer",i=!1!==i,r=r||parseFloat(ye.getComputedStyle(be).lineHeight)||22;var q,N,U,Q,$,ee=this,te=0,ne=0,re=G(n,Ye),oe=G(n,De),ie=re(),se=oe(),ce=("ontouchstart"in _e?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in _e)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),ae=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===ce[0],le=w(n),ue=n.ownerDocument||xe,de=[0,0,0],fe=[0,0,0],ge=ee.onPress=function(e){Zb(e,1)||(N.pause(),ee.isPressed=!0,e=I(e,c),te=ne=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),x(Z?n:ue,ce[1],bc,c),ee.deltaX=ee.deltaY=0,v&&v(ee))};N=ee._dc=he.delayedCall(l||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),N.pause(),a&&a(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=H(0,50,!0),ee._vy=H(0,50,!0),ee.scrollX=re,ee.scrollY=oe,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(x(le?ue:n,"scroll",B),0<=t.indexOf("scroll")&&x(le?ue:n,"scroll",gc,c),0<=t.indexOf("wheel")&&x(n,"wheel",hc,c),(0<=t.indexOf("touch")&&me||0<=t.indexOf("pointer"))&&(x(n,ce[0],ge,c),x(ue,ce[2],dc),x(ue,ce[3],dc),W&&x(n,"click",lc),j&&x(ue,"gesturestart",ec),V&&x(ue,"gestureend",fc),E&&x(n,we+"enter",jc),k&&x(n,we+"leave",kc),C&&x(n,we+"move",ic)),ee.isEnabled=!0,e&&e.type&&ge(e),A&&A(ee)),ee},ee.disable=function(){ee.isEnabled&&(Me.filter(function(e){return e!==ee&&w(e.target)}).length||y(le?ue:n,"scroll",B),y(le?ue:n,"scroll",gc),y(n,"wheel",hc),y(n,ce[0],ge),y(ue,ce[2],dc),y(ue,ce[3],dc),y(n,"click",lc),y(ue,"gesturestart",ec),y(ue,"gestureend",fc),y(n,we+"enter",jc),y(n,we+"leave",kc),y(n,we+"move",ic),ee.isEnabled=!1,R&&R(ee))},ee.kill=function(){ee.disable();var e=Me.indexOf(ee);0<=e&&Me.splice(e,1),Pe===ee&&(Pe=0)},Me.push(ee),Z&&(Pe=ee),ee.enable(f)},function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}i.version="3.10.2",i.create=function(e){return new i(e)},i.register=K,i.getAll=function(){return Me.slice()},i.getById=function(t){return Me.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(i),pe.Observer=i,pe._getProxyProp=v,pe._getScrollFunc=G,pe._getTarget=F,pe._getVelocityProp=H,pe._horizontal=Ye,pe._isViewport=w,pe._vertical=De,pe.default=i,Object.defineProperty(pe,"__esModule",{value:!0})}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* PixiPlugin 3.10.1 | ||
* PixiPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -372,3 +372,3 @@ * | ||
var PixiPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "pixi", | ||
@@ -375,0 +375,0 @@ register: function register(core, Plugin, propTween) { |
/*! | ||
* PixiPlugin 3.10.1 | ||
* PixiPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,function(i){"use strict";function l(){return"undefined"!=typeof window}function m(){return o||l()&&(o=window.gsap)&&o.registerPlugin&&o}function n(t){return"function"==typeof t}function t(t,i){var r,o,n=[],e=0,s=0;for(r=0;r<4;r++){for(o=0;o<5;o++)s=4===o?t[e+4]:0,n[e+o]=t[e]*i[o]+t[e+1]*i[o+5]+t[e+2]*i[o+10]+t[e+3]*i[o+15]+s;e+=5}return n}function u(i,r){var o=1-r,n=o*g,e=o*b,s=o*I;return t([n+r,e,s,0,0,n,e+r,s,0,0,n,e,s+r,0,0,0,0,0,1,0],i)}function v(i,r,o){var n=c(r),e=n[0]/255,s=n[1]/255,l=n[2]/255,a=1-o;return t([a+o*e*g,o*e*b,o*e*I,0,0,o*s*g,a+o*s*b,o*s*I,0,0,o*l*g,o*l*b,a+o*l*I,0,0,0,0,0,1,0],i)}function w(i,r){r*=Math.PI/180;var o=Math.cos(r),n=Math.sin(r);return t([g+o*(1-g)+n*-g,b+o*-b+n*-b,I+o*-I+n*(1-I),0,0,g+o*-g+.143*n,b+o*(1-b)+.14*n,I+o*-I+-.283*n,0,0,g+o*-g+n*-(1-g),b+o*-b+n*b,I+o*(1-I)+n*I,0,0,0,0,0,1,0,0,0,0,0,1],i)}function x(i,r){return t([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],i)}function y(t,i){var r,o=f.filters[i],n=t.filters||[],e=n.length;for(o||function _warn(t){console.warn(t)}(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--e;)if(n[e]instanceof o)return n[e];return r=new o,"BlurFilter"===i&&(r.blur=0),n.push(r),t.filters=n,r}function z(t,i,r,o){i.add(r,t,r[t],o[t]),i._props.push(t)}function A(t,i){var r=new f.filters.ColorMatrixFilter;return r.matrix=i,r.brightness(t,!0),r.matrix}function D(t,i,r){var o,n,e,s=y(t,"ColorMatrixFilter"),l=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function _copy(t){var i,r={};for(i in t)r[i]=t[i];return r}(M),a=i.combineCMF&&!("colorMatrixFilter"in i&&!i.colorMatrixFilter);e=s.matrix,i.resolution&&(s.resolution=i.resolution),i.matrix&&i.matrix.length===e.length?(n=i.matrix,1!==l.contrast&&z("contrast",r,l,M),l.hue&&z("hue",r,l,M),1!==l.brightness&&z("brightness",r,l,M),l.colorizeAmount&&(z("colorize",r,l,M),z("colorizeAmount",r,l,M)),1!==l.saturation&&z("saturation",r,l,M)):(n=p.slice(),null!=i.contrast?(n=x(n,+i.contrast),z("contrast",r,l,i)):1!==l.contrast&&(a?n=x(n,l.contrast):z("contrast",r,l,M)),null!=i.hue?(n=w(n,+i.hue),z("hue",r,l,i)):l.hue&&(a?n=w(n,l.hue):z("hue",r,l,M)),null!=i.brightness?(n=A(+i.brightness,n),z("brightness",r,l,i)):1!==l.brightness&&(a?n=A(l.brightness,n):z("brightness",r,l,M)),null!=i.colorize?(i.colorizeAmount="colorizeAmount"in i?+i.colorizeAmount:1,n=v(n,i.colorize,i.colorizeAmount),z("colorize",r,l,i),z("colorizeAmount",r,l,i)):l.colorizeAmount&&(a?n=v(n,l.colorize,l.colorizeAmount):(z("colorize",r,l,M),z("colorizeAmount",r,l,M))),null!=i.saturation?(n=u(n,+i.saturation),z("saturation",r,l,i)):1!==l.saturation&&(a?n=u(n,l.saturation):z("saturation",r,l,M))),o=n.length;for(;-1<--o;)n[o]!==e[o]&&r.add(e,o,e[o],n[o],"colorMatrixFilter");r._props.push("colorMatrixFilter")}function E(t,i){var r=i.t,o=i.p,n=i.color;(0,i.set)(r,o,n[0]<<16|n[1]<<8|n[2])}function F(t,i){var r=i.g;r&&(r.dirty++,r.clearDirty++)}function G(t,i){i.t.visible=!!i.t.alpha}function H(t,i,r,o){var e=t[i],s=c(n(e)?t[i.indexOf("set")||!n(t["get"+i.substr(3)])?i:"get"+i.substr(3)]():e),l=c(r);o._pt=new d(o._pt,t,i,0,0,E,{t:t,p:i,color:s,set:a(t,i)}),o.add(s,0,s[0],l[0]),o.add(s,1,s[1],l[1]),o.add(s,2,s[2],l[2])}function N(t){return"string"==typeof t}function O(t){return N(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function P(t,i){return i.set(i.t,i.p,1===t?i.e:Math.round(1e5*(i.s+i.c*t))/1e5,i)}function Q(t,i,r,o,n,e){var s,l,a=360*(e?j:1),u=N(n),c=u&&"="===n.charAt(1)?+(n.charAt(0)+"1"):0,f=parseFloat(c?n.substr(2):n)*(e?j:1),h=c?f*c:f-o,p=o+h;return u&&("short"===(s=n.split("_")[1])&&(h%=a)!==h%(a/2)&&(h+=h<0?a:-a),"cw"===s&&h<0?h=(h+1e10*a)%a-~~(h/a)*a:"ccw"===s&&0<h&&(h=(h-1e10*a)%a-~~(h/a)*a)),t._pt=l=new d(t._pt,i,r,o,h,P),l.e=p,l}function R(){l()&&(r=window,o=m(),f=f||r.PIXI,h=f&&f.VERSION&&"4"===f.VERSION.charAt(0),c=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,r,c,f,d,a,h,e,s,p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],g=.212671,b=.71516,I=.072169,M={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_={tint:1,lineColor:1,fillColor:1},C="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),X={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},S={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180;for(e=0;e<C.length;e++)s=C[e],X[s+"X"]=s,X[s+"Y"]=s;var Y={version:"3.10.1",name:"pixi",register:function register(t,i,r){o=t,d=r,a=i.getSetter,R()},registerPIXI:function registerPIXI(t){f=t},init:function init(t,i){if(f||R(),!(f&&t instanceof f.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var r,o,n,e,s,l,a,u,c;for(l in i){if(r=X[l],n=i[l],r)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[r],o,t[r][o],"skew"===r?O(n):n);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,n),this.add(t[l],"y",t[l].y,n);else if("rotation"===l||"angle"===l)Q(this,t,l,t[l],n,"rotation"===l);else if(S[l])e||(D(t,i.colorMatrixFilter||i,this),e=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=y(t,"BlurFilter"),this.add(s,l,s[l],n),0!==i.blurPadding)for(a=i.blurPadding||2*Math.max(s[l],n),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(_[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof f.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,F,{g:t.geometry||t}),u=c.length;-1<--u;)H(h?c[u]:c[u][l.substr(0,4)+"Style"],h?l:"color",n,this);else H(t,l,n,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,G),this.add(t,"alpha",t.alpha,n),this._props.push("alpha","visible")):"resolution"!==l&&this.add(t,l,"get",n);this._props.push(l)}}};m()&&o.registerPlugin(Y),i.PixiPlugin=Y,i.default=Y;if (typeof(window)==="undefined"||window!==i){Object.defineProperty(i,"__esModule",{value:!0})} else {delete i.default}}); | ||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,function(i){"use strict";function l(){return"undefined"!=typeof window}function m(){return o||l()&&(o=window.gsap)&&o.registerPlugin&&o}function n(t){return"function"==typeof t}function t(t,i){var r,o,n=[],e=0,s=0;for(r=0;r<4;r++){for(o=0;o<5;o++)s=4===o?t[e+4]:0,n[e+o]=t[e]*i[o]+t[e+1]*i[o+5]+t[e+2]*i[o+10]+t[e+3]*i[o+15]+s;e+=5}return n}function u(i,r){var o=1-r,n=o*g,e=o*b,s=o*I;return t([n+r,e,s,0,0,n,e+r,s,0,0,n,e,s+r,0,0,0,0,0,1,0],i)}function v(i,r,o){var n=c(r),e=n[0]/255,s=n[1]/255,l=n[2]/255,a=1-o;return t([a+o*e*g,o*e*b,o*e*I,0,0,o*s*g,a+o*s*b,o*s*I,0,0,o*l*g,o*l*b,a+o*l*I,0,0,0,0,0,1,0],i)}function w(i,r){r*=Math.PI/180;var o=Math.cos(r),n=Math.sin(r);return t([g+o*(1-g)+n*-g,b+o*-b+n*-b,I+o*-I+n*(1-I),0,0,g+o*-g+.143*n,b+o*(1-b)+.14*n,I+o*-I+-.283*n,0,0,g+o*-g+n*-(1-g),b+o*-b+n*b,I+o*(1-I)+n*I,0,0,0,0,0,1,0,0,0,0,0,1],i)}function x(i,r){return t([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],i)}function y(t,i){var r,o=f.filters[i],n=t.filters||[],e=n.length;for(o||function _warn(t){console.warn(t)}(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--e;)if(n[e]instanceof o)return n[e];return r=new o,"BlurFilter"===i&&(r.blur=0),n.push(r),t.filters=n,r}function z(t,i,r,o){i.add(r,t,r[t],o[t]),i._props.push(t)}function A(t,i){var r=new f.filters.ColorMatrixFilter;return r.matrix=i,r.brightness(t,!0),r.matrix}function D(t,i,r){var o,n,e,s=y(t,"ColorMatrixFilter"),l=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function _copy(t){var i,r={};for(i in t)r[i]=t[i];return r}(M),a=i.combineCMF&&!("colorMatrixFilter"in i&&!i.colorMatrixFilter);e=s.matrix,i.resolution&&(s.resolution=i.resolution),i.matrix&&i.matrix.length===e.length?(n=i.matrix,1!==l.contrast&&z("contrast",r,l,M),l.hue&&z("hue",r,l,M),1!==l.brightness&&z("brightness",r,l,M),l.colorizeAmount&&(z("colorize",r,l,M),z("colorizeAmount",r,l,M)),1!==l.saturation&&z("saturation",r,l,M)):(n=p.slice(),null!=i.contrast?(n=x(n,+i.contrast),z("contrast",r,l,i)):1!==l.contrast&&(a?n=x(n,l.contrast):z("contrast",r,l,M)),null!=i.hue?(n=w(n,+i.hue),z("hue",r,l,i)):l.hue&&(a?n=w(n,l.hue):z("hue",r,l,M)),null!=i.brightness?(n=A(+i.brightness,n),z("brightness",r,l,i)):1!==l.brightness&&(a?n=A(l.brightness,n):z("brightness",r,l,M)),null!=i.colorize?(i.colorizeAmount="colorizeAmount"in i?+i.colorizeAmount:1,n=v(n,i.colorize,i.colorizeAmount),z("colorize",r,l,i),z("colorizeAmount",r,l,i)):l.colorizeAmount&&(a?n=v(n,l.colorize,l.colorizeAmount):(z("colorize",r,l,M),z("colorizeAmount",r,l,M))),null!=i.saturation?(n=u(n,+i.saturation),z("saturation",r,l,i)):1!==l.saturation&&(a?n=u(n,l.saturation):z("saturation",r,l,M))),o=n.length;for(;-1<--o;)n[o]!==e[o]&&r.add(e,o,e[o],n[o],"colorMatrixFilter");r._props.push("colorMatrixFilter")}function E(t,i){var r=i.t,o=i.p,n=i.color;(0,i.set)(r,o,n[0]<<16|n[1]<<8|n[2])}function F(t,i){var r=i.g;r&&(r.dirty++,r.clearDirty++)}function G(t,i){i.t.visible=!!i.t.alpha}function H(t,i,r,o){var e=t[i],s=c(n(e)?t[i.indexOf("set")||!n(t["get"+i.substr(3)])?i:"get"+i.substr(3)]():e),l=c(r);o._pt=new d(o._pt,t,i,0,0,E,{t:t,p:i,color:s,set:a(t,i)}),o.add(s,0,s[0],l[0]),o.add(s,1,s[1],l[1]),o.add(s,2,s[2],l[2])}function N(t){return"string"==typeof t}function O(t){return N(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function P(t,i){return i.set(i.t,i.p,1===t?i.e:Math.round(1e5*(i.s+i.c*t))/1e5,i)}function Q(t,i,r,o,n,e){var s,l,a=360*(e?j:1),u=N(n),c=u&&"="===n.charAt(1)?+(n.charAt(0)+"1"):0,f=parseFloat(c?n.substr(2):n)*(e?j:1),h=c?f*c:f-o,p=o+h;return u&&("short"===(s=n.split("_")[1])&&(h%=a)!==h%(a/2)&&(h+=h<0?a:-a),"cw"===s&&h<0?h=(h+1e10*a)%a-~~(h/a)*a:"ccw"===s&&0<h&&(h=(h-1e10*a)%a-~~(h/a)*a)),t._pt=l=new d(t._pt,i,r,o,h,P),l.e=p,l}function R(){l()&&(r=window,o=m(),f=f||r.PIXI,h=f&&f.VERSION&&"4"===f.VERSION.charAt(0),c=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,r,c,f,d,a,h,e,s,p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],g=.212671,b=.71516,I=.072169,M={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_={tint:1,lineColor:1,fillColor:1},C="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),X={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},S={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180;for(e=0;e<C.length;e++)s=C[e],X[s+"X"]=s,X[s+"Y"]=s;var Y={version:"3.10.2",name:"pixi",register:function register(t,i,r){o=t,d=r,a=i.getSetter,R()},registerPIXI:function registerPIXI(t){f=t},init:function init(t,i){if(f||R(),!(f&&t instanceof f.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var r,o,n,e,s,l,a,u,c;for(l in i){if(r=X[l],n=i[l],r)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[r],o,t[r][o],"skew"===r?O(n):n);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,n),this.add(t[l],"y",t[l].y,n);else if("rotation"===l||"angle"===l)Q(this,t,l,t[l],n,"rotation"===l);else if(S[l])e||(D(t,i.colorMatrixFilter||i,this),e=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=y(t,"BlurFilter"),this.add(s,l,s[l],n),0!==i.blurPadding)for(a=i.blurPadding||2*Math.max(s[l],n),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(_[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof f.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,F,{g:t.geometry||t}),u=c.length;-1<--u;)H(h?c[u]:c[u][l.substr(0,4)+"Style"],h?l:"color",n,this);else H(t,l,n,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,G),this.add(t,"alpha",t.alpha,n),this._props.push("alpha","visible")):"resolution"!==l&&this.add(t,l,"get",n);this._props.push(l)}}};m()&&o.registerPlugin(Y),i.PixiPlugin=Y,i.default=Y;if (typeof(window)==="undefined"||window!==i){Object.defineProperty(i,"__esModule",{value:!0})} else {delete i.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* ScrollToPlugin 3.10.1 | ||
* ScrollToPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -131,3 +131,3 @@ * | ||
var ScrollToPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "scrollTo", | ||
@@ -134,0 +134,0 @@ rawVars: 1, |
/*! | ||
* ScrollToPlugin 3.10.1 | ||
* ScrollToPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return u||k()&&(u=window.gsap)&&u.registerPlugin&&u}function m(e){return"string"==typeof e}function n(e){return"function"==typeof e}function o(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function p(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function r(e,t){if(!(e=f(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=p(t,"x")(),l.y+=p(t,"y")()),l}function s(e,t,n,l,i){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-i:"max"===e?o(t,n)-i:Math.min(o(t,n),r(e,t)[n]-i):parseFloat(e)-i}function t(){u=l(),k()&&u&&document.body&&(T=window,c=document.body,i=document.documentElement,f=u.utils.toArray,u.config({autoKillThreshold:7}),v=u.config(),a=1)}var u,a,T,i,c,f,v,y={version:"3.10.1",name:"scrollTo",rawVars:1,register:function register(e){u=e,t()},init:function init(e,o,r,l,i){a||t();var c=this,f=u.getProperty(e,"scrollSnapType");c.isWin=e===T,c.target=e,c.tween=r,o=function _clean(e,t,o,r){if(n(e)&&(e=e(t,o,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,i={};for(l in e)i[l]="onAutoKill"!==l&&n(e[l])?e[l](t,o,r):e[l];return i}(o,l,e,i),c.vars=o,c.autoKill=!!o.autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=o.x?(c.add(c,"x",c.x,s(o.x,e,"x",c.x,o.offsetX||0),l,i),c._props.push("scrollTo_x")):c.skipX=1,null!=o.y?(c.add(c,"y",c.y,s(o.y,e,"y",c.y,o.offsetY||0),l,i),c._props.push("scrollTo_y")):c.skipY=1},render:function render(e,t){for(var n,r,l,i,s,p=t._pt,c=t.target,f=t.tween,u=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,x=t.snap,g=t.snapInline;p;)p.r(e,p.d),p=p._next;n=d||!t.skipX?t.getX():a,l=(r=d||!t.skipY?t.getY():y)-y,i=n-a,s=v.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(s<i||i<-s)&&n<o(c,"x")&&(t.skipX=1),!t.skipY&&(s<l||l<-s)&&r<o(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!x||1!==e&&0!==e||(r=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=n+1,c.scrollTop=r,c.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y},kill:function kill(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};y.max=o,y.getOffset=r,y.buildGetter=p,l()&&u.registerPlugin(y),e.ScrollToPlugin=y,e.default=y;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return u||k()&&(u=window.gsap)&&u.registerPlugin&&u}function m(e){return"string"==typeof e}function n(e){return"function"==typeof e}function o(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function p(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function r(e,t){if(!(e=f(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=p(t,"x")(),l.y+=p(t,"y")()),l}function s(e,t,n,l,i){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-i:"max"===e?o(t,n)-i:Math.min(o(t,n),r(e,t)[n]-i):parseFloat(e)-i}function t(){u=l(),k()&&u&&document.body&&(T=window,c=document.body,i=document.documentElement,f=u.utils.toArray,u.config({autoKillThreshold:7}),v=u.config(),a=1)}var u,a,T,i,c,f,v,y={version:"3.10.2",name:"scrollTo",rawVars:1,register:function register(e){u=e,t()},init:function init(e,o,r,l,i){a||t();var c=this,f=u.getProperty(e,"scrollSnapType");c.isWin=e===T,c.target=e,c.tween=r,o=function _clean(e,t,o,r){if(n(e)&&(e=e(t,o,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,i={};for(l in e)i[l]="onAutoKill"!==l&&n(e[l])?e[l](t,o,r):e[l];return i}(o,l,e,i),c.vars=o,c.autoKill=!!o.autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=o.x?(c.add(c,"x",c.x,s(o.x,e,"x",c.x,o.offsetX||0),l,i),c._props.push("scrollTo_x")):c.skipX=1,null!=o.y?(c.add(c,"y",c.y,s(o.y,e,"y",c.y,o.offsetY||0),l,i),c._props.push("scrollTo_y")):c.skipY=1},render:function render(e,t){for(var n,r,l,i,s,p=t._pt,c=t.target,f=t.tween,u=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,x=t.snap,g=t.snapInline;p;)p.r(e,p.d),p=p._next;n=d||!t.skipX?t.getX():a,l=(r=d||!t.skipY?t.getY():y)-y,i=n-a,s=v.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(s<i||i<-s)&&n<o(c,"x")&&(t.skipX=1),!t.skipY&&(s<l||l<-s)&&r<o(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!x||1!==e&&0!==e||(r=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=n+1,c.scrollTop=r,c.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y},kill:function kill(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};y.max=o,y.getOffset=r,y.buildGetter=p,l()&&u.registerPlugin(y),e.ScrollToPlugin=y,e.default=y;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
/*! | ||
* ScrollTrigger 3.10.1 | ||
* ScrollTrigger 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}function x(e,t){return~Ye.indexOf(e)&&Ye[Ye.indexOf(e)+1][t]}function y(e){return!!~t.indexOf(e)}function z(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function A(e,t,r){return e.removeEventListener(t,r)}function D(){return Pe&&Pe.isPressed||ze.cache++}function E(t){return function(e){return e||0===e?(r&&(ve.history.scrollRestoration="manual"),t(e),t.v=e,t.c=ze.cache,Pe&&Pe.isPressed&&Re("ss",e)):ze.cache===t.c&&!Re("ref")||(t.c=ze.cache,t.v=t()),t.v}}function H(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function I(t,e){var r=e.s,n=e.sc,i=ze.indexOf(t),o=n===Xe.sc?1:2;return~i||(i=ze.push(t)-1),ze[i+o]||(ze[i+o]=x(t,r)||(y(t)?n:function(e){return arguments.length?t[r]=e:t[r]}))}function J(e,t,i){function _c(e,t){var r=u();t||n<r-s?(a=o,o=e,l=s,s=r):i?o+=e:o=a+(e-a)/(r-l)*(s-l)}var o=e,a=e,s=u(),l=s,n=t||50,c=Math.max(500,3*n);return{update:_c,reset:function reset(){a=o=i?0:o,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=u();return!e&&0!==e||e===o||_c(e),s===l||c<n-l?0:(o+(i?r:-r))/((i?n:s)-t)*1e3}}}function K(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function L(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function M(e){return(he=e||p())&&!be&&"undefined"!=typeof document&&(ve=window,Se=(me=document).documentElement,_e=me.body,t=[ve,me,Se,_e],he.utils.clamp,ke="onpointerenter"in _e?"pointer":"mouse",Te=w.isTouch=ve.matchMedia&&ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return r=0},500),be=1),be}var he,be,ve,me,Se,_e,Te,ke,Me,t,Pe,r=1,Oe=[],ze=[],Ye=[],u=Date.now,Re=function _bridge(e,t){return t},n="scrollLeft",i="scrollTop",Le={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:E(function(e){return arguments.length?ve.scrollTo(e,Xe.sc()):ve.pageXOffset||me[n]||Se[n]||_e[n]||0})},Xe={s:i,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Le,sc:E(function(e){return arguments.length?ve.scrollTo(Le.sc(),e):ve.pageYOffset||me[i]||Se[i]||_e[i]||0})};Le.op=Xe,ze.cache=0;var w=(Observer.prototype.init=function init(e){be||M(he)||console.warn("Please gsap.registerPlugin(Observer)"),Me||(Me=he.core.globals().ScrollTrigger)&&Me.core&&function _integrate(){var e=Me.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,ze),n.push.apply(n,Ye),ze=t,Ye=n,Re=function _bridge(e,t){return r[e](t)}}();var i=e.tolerance,a=e.dragMinimum,t=e.type,r=e.target,n=e.lineHeight,o=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,b=e.onPress,v=e.onRelease,m=e.onRight,x=e.onLeft,w=e.onUp,S=e.onDown,_=e.onChangeX,T=e.onChangeY,k=e.onChange,E=e.onToggleX,C=e.onToggleY,P=e.onHover,O=e.onHoverEnd,F=e.onMove,Y=e.ignoreCheck,R=e.isNormalizer,B=e.onGestureStart,X=e.onGestureEnd,j=e.onWheel,V=e.onEnable,G=e.onDisable,N=e.onClick,W=e.scrollSpeed;function ue(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&le&&"touch"!==e.pointerType||Y&&Y(e)}function we(){var e=ee.deltaX=L(de),t=ee.deltaY=L(pe),r=Math.abs(e)>=i,n=Math.abs(t)>=i;k&&(r||n)&&k(ee,e,t,de,pe),r&&(m&&0<ee.deltaX&&m(ee),x&&ee.deltaX<0&&x(ee),_&&_(ee),E&&ee.deltaX<0!=te<0&&E(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),n&&(S&&0<ee.deltaY&&S(ee),w&&ee.deltaY<0&&w(ee),T&&T(ee),C&&ee.deltaY<0!=re<0&&C(ee),re=ee.deltaY,pe[0]=pe[1]=pe[2]=0),$&&(F(ee),$=!1),Z&&(h(ee),Z=!1),Q&&(j(ee),Q=!1),q=0}function xe(e,t,r){de[r]+=e,pe[r]+=t,ee._vx.update(e,2===r),ee._vy.update(t,2===r),o?q=q||requestAnimationFrame(we):we()}function ye(e){if(!ue(e,1)){var t=(e=K(e,s)).clientX,r=e.clientY,n=t-ee.x,i=r-ee.y,o=ee.isDragging;ee.x=t,ee.y=r,(o||Math.abs(ee.startX-t)>=a||Math.abs(ee.startY-r)>=a)&&(h&&(Z=!0),o||(ee.isDragging=!0),xe(n,i,2),o||p&&p(ee))}}function Ae(e){if(!ue(e,1)){A(R?r:fe,se[1],ye);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,l&&!R&&U.restart(!0),g&&t&&g(ee),v&&v(ee,t)}}function Be(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&B(e,ee.isDragging)}function Ce(){return(ee.isGesturing=!1)||X(ee)}function De(e){if(!ue(e)){var t=ne(),r=ie();xe((t-oe)*W,(r-ae)*W,1),oe=t,ae=r,l&&U.restart(!0)}}function Ee(e){if(!ue(e)){e=K(e,s),j&&(Q=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?ve.innerHeight:1)*f;xe(e.deltaX*t,e.deltaY*t,0),l&&!R&&U.restart(!0)}}function Fe(e){if(!ue(e)){var t=e.clientX,r=e.clientY,n=t-ee.x,i=r-ee.y;ee.x=t,ee.y=r,F&&($=!0),(n||i)&&xe(n,i,2)}}function Ge(e){ee.event=e,P(ee)}function He(e){ee.event=e,O(ee)}function Ie(e){return ue(e)||K(e,s)&&N(ee)}this.target=r=H(r)||Se,this.vars=e,u=u&&he.utils.toArray(u),i=i||0,a=a||0,f=f||1,W=W||1,t=t||"wheel,touch,pointer",o=!1!==o,n=n||parseFloat(ve.getComputedStyle(_e).lineHeight)||22;var q,U,Z,$,Q,ee=this,te=0,re=0,ne=I(r,Le),ie=I(r,Xe),oe=ne(),ae=ie(),se=("ontouchstart"in Se?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in Se)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),le=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===se[0],ce=y(r),fe=r.ownerDocument||me,de=[0,0,0],pe=[0,0,0],ge=ee.onPress=function(e){ue(e,1)||(U.pause(),ee.isPressed=!0,e=K(e,s),te=re=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),z(R?r:fe,se[1],ye,s),ee.deltaX=ee.deltaY=0,b&&b(ee))};U=ee._dc=he.delayedCall(c||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),U.pause(),l&&l(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=J(0,50,!0),ee._vy=J(0,50,!0),ee.scrollX=ne,ee.scrollY=ie,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(z(ce?fe:r,"scroll",D),0<=t.indexOf("scroll")&&z(ce?fe:r,"scroll",De,s),0<=t.indexOf("wheel")&&z(r,"wheel",Ee,s),(0<=t.indexOf("touch")&&Te||0<=t.indexOf("pointer"))&&(z(r,se[0],ge,s),z(fe,se[2],Ae),z(fe,se[3],Ae),N&&z(r,"click",Ie),B&&z(fe,"gesturestart",Be),X&&z(fe,"gestureend",Ce),P&&z(r,ke+"enter",Ge),O&&z(r,ke+"leave",He),F&&z(r,ke+"move",Fe)),ee.isEnabled=!0,e&&e.type&&ge(e),V&&V(ee)),ee},ee.disable=function(){ee.isEnabled&&(Oe.filter(function(e){return e!==ee&&y(e.target)}).length||A(ce?fe:r,"scroll",D),A(ce?fe:r,"scroll",De),A(r,"wheel",Ee),A(r,se[0],ge),A(fe,se[2],Ae),A(fe,se[3],Ae),A(r,"click",Ie),A(fe,"gesturestart",Be),A(fe,"gestureend",Ce),A(r,ke+"enter",Ge),A(r,ke+"leave",He),A(r,ke+"move",Fe),ee.isEnabled=!1,G&&G(ee))},ee.kill=function(){ee.disable();var e=Oe.indexOf(ee);0<=e&&Oe.splice(e,1),Pe===ee&&(Pe=0)},Oe.push(ee),R&&(Pe=ee),ee.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}w.version="3.10.1",w.create=function(e){return new w(e)},w.register=M,w.getAll=function(){return Oe.slice()},w.getById=function(t){return Oe.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(w);function sa(){return $e=1}function ta(){return $e=0}function ua(e){return e}function va(e){return Math.round(1e5*e)/1e5||0}function wa(){return"undefined"!=typeof window}function xa(){return je||wa()&&(je=window.gsap)&&je.registerPlugin&&je}function ya(e){return!!~a.indexOf(e)}function za(e){return x(e,"getBoundingClientRect")||(ya(e)?function(){return Mt.width=Ve.innerWidth,Mt.height=Ve.innerHeight,Mt}:function(){return wt(e)})}function Ca(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=x(e,r))?o()-za(e)()[i]:ya(e)?(Ke[r]||We[r])-(Ve["inner"+n]||Ke["client"+n]||We["client"+n]):e[r]-e["offset"+n]}function Da(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ea(e){return"string"==typeof e}function Fa(e){return"function"==typeof e}function Ga(e){return"number"==typeof e}function Ha(e){return"object"==typeof e}function Ia(e){return Fa(e)&&e()}function Ja(r,n){return function(){var e=Ia(r),t=Ia(n);return function(){Ia(e),Ia(t)}}}function Ka(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function La(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function ab(e){return Ve.getComputedStyle(e)}function cb(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function eb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function fb(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function hb(i){var o=je.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return o(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:o(t<0?e-i:e+i)}}function jb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function kb(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function lb(e,t,r){return e.removeEventListener(t,r)}function mb(e,t,r){return r&&r.wheelHandler&&e(t,"wheel",r)}function qb(e,t){if(Ea(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in F?F[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function rb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=Ne.createElement("div"),g=ya(r)||"fixed"===x(r,"pinType"),h=-1!==e.indexOf("scroller"),b=g?We:r,v=-1!==e.indexOf("start"),m=v?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Xe?C:P)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+n.op.d2],Y(p,0,n,v),p}function wb(){return 34<st()-lt&&Z()}function xb(){b&&b.isPressed||(ze.cache++,_=_||requestAnimationFrame(Z),lt||j("scrollStart"),lt=st())}function yb(){ze.cache++,Ze||h||Ne.fullscreenElement||v&&S===Ve.innerWidth&&!(Math.abs(Ve.innerHeight-m)>.25*Ve.innerHeight)||s.restart(!0)}function Eb(e){var t,r=je.ticker.frame,n=[],i=0;if(T!==r||at){for(N();i<X.length;i+=4)(t=Ve.matchMedia(X[i]).matches)!==X[i+3]&&((X[i+3]=t)?n.push(i):N(1,X[i])||Fa(X[i+2])&&X[i+2]());for(G(),i=0;i<n.length;i++)t=n[i],nt=X[t],X[t+2]=X[t+1](e);nt=0,o&&q(0,1),T=r,j("matchMedia")}}function Fb(){return lb(re,"scrollEnd",Fb)||q(!0)}function Kb(){return ze.cache++&&ze.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function Vb(e,t,r,n){if(e.parentNode!==t){for(var i,o=$.length,a=t.style,s=e.style;o--;)a[i=$[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[P]=s[C]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[ft]=eb(e,Le)+xt,a[dt]=eb(e,Xe)+xt,a[vt]=s[mt]=s.top=s.left="0",Ct(n),s[ft]=s.maxWidth=r[ft],s[dt]=s.maxHeight=r[dt],s[vt]=r[vt],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function Yb(e){for(var t=Q.length,r=e.style,n=[],i=0;i<t;i++)n.push(Q[i],r[Q[i]]);return n.t=e,n}function _b(e,t,r,n,i,o,a,s,l,c,u,f,d){Fa(e)&&(e=e(s)),Ea(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?qb("0"+e.substr(3),r):0));var p,g,h,b=d?d.time():0;if(d&&d.seek(0),Ga(e))a&&Y(a,r,n,!0);else{Fa(t)&&(t=t(s));var v,m,y,x,w=e.split(" ");h=H(t)||We,(v=wt(h)||{})&&(v.left||v.top)||"none"!==ab(h).display||(x=h.style.display,h.style.display="block",v=wt(h),x?h.style.display=x:h.style.removeProperty("display")),m=qb(w[0],v[n.d]),y=qb(w[1]||"0",r),e=v[n.p]-l[n.p]-c+m+i-y,a&&Y(a,y,n,r-y<20||a._isStart&&20<y),r-=r-y}if(o){var S=e+r,_=o._isStart;p="scroll"+n.d2,Y(o,S,n,_&&20<S||!_&&(u?Math.max(We[p],Ke[p]):o.parentNode[p])<=S+1),u&&(l=wt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+xt))}return d&&h&&(p=wt(h),d.seek(f),g=wt(h),d._caScrollDist=p[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function bc(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===We){for(i in e._stOrig=a.cssText,o=ab(e))+i||te.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;je.core.getCache(e).uncache=1,t.appendChild(e)}}function cc(l,e){function nj(e,t,r,n,i){var o=nj.tween,a=t.onComplete,s={};return r=r||f(),i=n&&i||0,n=n||e-r,o&&o.kill(),c=Math.round(r),t[d]=e,(t.modifiers=s)[d]=function(e){return(e=va(f()))!==c&&e!==u&&2<Math.abs(e-c)&&2<Math.abs(e-u)?(o.kill(),nj.tween=0):e=r+n*o.ratio+i*o.ratio*o.ratio,u=c,c=va(e)},t.onComplete=function(){nj.tween=0,a&&a.call(o)},o=nj.tween=je.to(l,t)}var c,u,f=I(l,e),d="_scroll"+e.p2;return(l[d]=f).wheelHandler=function(){return nj.tween&&nj.tween.kill()&&(nj.tween=0)},kb(l,"wheel",f.wheelHandler),nj}var je,o,Ve,Ne,Ke,We,a,s,qe,Je,Ue,l,Ze,$e,c,Qe,f,d,g,et,tt,h,b,v,m,S,rt,_,nt,T,it,ot,at=1,st=Date.now,k=st(),lt=0,ct=0,ut=Math.abs,C="right",P="bottom",ft="width",dt="height",pt="Right",gt="Left",ht="Top",bt="Bottom",vt="padding",mt="margin",yt="Width",O="Height",xt="px",wt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ab(e)[c]&&je.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},St={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_t={toggleActions:"play",anticipatePin:0},F={top:0,left:0,center:.5,bottom:1,right:1},Y=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+yt]=1,i["border"+a+yt]=0,i[r.p]=t+"px",je.set(e,i)},Tt=[],kt={},R={},B=[],X=[],j=function _dispatch(e){return R[e]&&R[e].map(function(e){return e()})||B},V=[],G=function _revertRecorded(e){for(var t=0;t<V.length;t+=5)e&&V[t+4]!==e||(V[t].style.cssText=V[t+1],V[t].getBBox&&V[t].setAttribute("transform",V[t+2]||""),V[t+3].uncache=1)},N=function _revertAll(e,t){var r;for(Qe=0;Qe<Tt.length;Qe++)r=Tt[Qe],t&&r.media!==t||(e?r.kill(1):r.revert());t&&G(t),t||j("revert")},W=0,q=function _refreshAll(e,t){if(!lt||e){it=!0;var r=j("refreshInit");et&&re.sort(),t||N(),Tt.slice(0).forEach(function(e){return e.refresh()}),Tt.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,Ca(e.scroller,e._dir))}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),Kb(),s.pause(),W++,it=!1,j("refresh")}else kb(re,"scrollEnd",Fb)},U=0,Et=1,Z=function _updateAll(){if(!it){ot&&ot.update(0),re.isUpdating=!0;var e=Tt.length,t=st(),r=50<=t-k,n=e&&Tt[0].scroll();if(Et=n<U?-1:1,U=n,r&&(lt&&!$e&&200<t-lt&&(lt=0,j("scrollEnd")),Ue=k,k=t),Et<0){for(Qe=e;0<Qe--;)Tt[Qe]&&Tt[Qe].update(0,r);Et=1}else for(Qe=0;Qe<e;Qe++)Tt[Qe]&&Tt[Qe].update(0,r);re.isUpdating=!1}_=0},$=["left","top",P,C,mt+bt,mt+pt,mt+ht,mt+gt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Q=$.concat([ft,dt,"boxSizing","max"+yt,"max"+O,"position",mt,vt,vt+ht,vt+pt,vt+bt,vt+gt]),ee=/([A-Z])/g,Ct=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||je.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(ee,"-$1").toLowerCase())}},Mt={left:0,top:0},te=/(webkit|moz|length|cssText|inset)/i,re=(ScrollTrigger.prototype.init=function init(_,T){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),ct){var v,n,f,k,E,C,M,P,O,A,D,e,z,F,Y,R,L,t,B,m,X,j,y,V,w,S,r,G,N,K,i,d,W,q,J,U,Z,o,$=(_=cb(Ea(_)||Ga(_)||_.nodeType?{trigger:_}:_,_t)).onUpdate,Q=_.toggleClass,a=_.id,ee=_.onToggle,te=_.onRefresh,re=_.scrub,ne=_.trigger,ie=_.pin,oe=_.pinSpacing,ae=_.invalidateOnRefresh,se=_.anticipatePin,s=_.onScrubComplete,p=_.onSnapComplete,le=_.once,ce=_.snap,ue=_.pinReparent,l=_.pinSpacer,fe=_.containerAnimation,de=_.fastScrollEnd,pe=_.preventOverlaps,ge=_.horizontal||_.containerAnimation&&!1!==_.horizontal?Le:Xe,he=!re&&0!==re,be=H(_.scroller||Ve),c=je.core.getCache(be),ve=ya(be),me="fixed"===("pinType"in _?_.pinType:x(be,"pinType")||ve&&"fixed"),ye=[_.onEnter,_.onLeave,_.onEnterBack,_.onLeaveBack],xe=he&&_.toggleActions.split(" "),u="markers"in _?_.markers:_t.markers,we=ve?0:parseFloat(ab(be)["border"+ge.p2+yt])||0,Se=this,_e=_.onRefreshInit&&function(){return _.onRefreshInit(Se)},Te=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=x(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ve["inner"+i]:e["client"+i])||0}}(be,ve,ge),ke=function _getOffsetsFunc(e,t){return!t||~Ye.indexOf(e)?za(e):function(){return Mt}}(be,ve),g=0,Ee=I(be,ge);if(Se.media=nt,Se._dir=ge,se*=45,Se.scroller=be,Se.scroll=fe?fe.time.bind(fe):Ee,k=Ee(),Se.vars=_,T=T||_.animation,"refreshPriority"in _&&(et=1,-9999===_.refreshPriority&&(ot=Se)),c.tweenScroll=c.tweenScroll||{top:cc(be,Xe),left:cc(be,Le)},Se.tweenTo=v=c.tweenScroll[ge.p],Se.scrubDuration=function(e){(i=Ga(e)&&e)?K?K.duration(e):K=je.to(T,{ease:"expo",totalProgress:"+=0.001",duration:i,paused:!0,onComplete:function onComplete(){return s&&s(Se)}}):(K&&K.progress(1).kill(),K=0)},T&&(T.vars.lazy=!1,T._initted||!1!==T.vars.immediateRender&&!1!==_.immediateRender&&T.render(0,!0,!0),Se.animation=T.pause(),(T.scrollTrigger=Se).scrubDuration(re),G=0,a=a||T.vars.id),Tt.push(Se),ce&&(Ha(ce)&&!ce.push||(ce={snapTo:ce}),"scrollBehavior"in We.style&&je.set(ve?[We,Ke]:be,{scrollBehavior:"auto"}),f=Fa(ce.snapTo)?ce.snapTo:"labels"===ce.snapTo?function _getClosestLabel(t){return function(e){return je.utils.snap(fb(t),e)}}(T):"labelsDirectional"===ce.snapTo?function _getLabelAtDirection(r){return function(e,t){return hb(fb(r))(e,t.direction)}}(T):!1!==ce.directional?function(e,t){return hb(ce.snapTo)(e,Ze?0:t.direction)}:je.utils.snap(ce.snapTo),d=ce.duration||{min:.1,max:2},d=Ha(d)?Je(d.min,d.max):Je(d,d),W=je.delayedCall(ce.delay||i/2||.1,function(){if(Math.abs(Se.getVelocity())<10&&!$e&&g!==Ee()){var e=T&&!he?T.totalProgress():Se.progress,t=(e-N)/(st()-Ue)*1e3||0,r=je.utils.clamp(-Se.progress,1-Se.progress,ut(t/2)*t/.185),n=Se.progress+(!1===ce.inertia?0:r),i=Je(0,1,f(n,Se)),o=Ee(),a=Math.round(C+i*z),s=ce.onStart,l=ce.onInterrupt,c=ce.onComplete,u=v.tween;if(o<=M&&C<=o&&a!==o){if(u&&!u._initted&&u.data<=ut(a-o))return;!1===ce.inertia&&(r=i-Se.progress),v(a,{duration:d(ut(.185*Math.max(ut(n-e),ut(i-e))/t/.05||0)),ease:ce.ease||"power3",data:ut(a-o),onInterrupt:function onInterrupt(){return W.restart(!0)&&l&&l(Se)},onComplete:function onComplete(){Se.update(),g=Ee(),G=N=T&&!he?T.totalProgress():Se.progress,p&&p(Se),c&&c(Se)}},o,r*z,a-o-r*z),s&&s(Se,v.tween)}}else Se.isActive&&W.restart(!0)}).pause()),a&&(kt[a]=Se),o=(o=(ne=Se.trigger=H(ne||ie))&&ne._gsap&&ne._gsap.stRevert)&&o(Se),ie=!0===ie?ne:H(ie),Ea(Q)&&(Q={targets:ne,className:Q}),ie&&(!1===oe||oe===mt||(oe=!(!oe&&"flex"===ab(ie.parentNode).display)&&vt),Se.pin=ie,!1!==_.force3D&&je.set(ie,{force3D:!0}),(n=je.core.getCache(ie)).spacer?F=n.pinState:(l&&((l=H(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=Yb(l))),n.spacer=L=l||Ne.createElement("div"),L.classList.add("pin-spacer"),a&&L.classList.add("pin-spacer-"+a),n.pinState=F=Yb(ie)),Se.spacer=L=n.spacer,r=ab(ie),y=r[oe+ge.os2],B=je.getProperty(ie),m=je.quickSetter(ie,ge.a,xt),Vb(ie,L,r),R=Yb(ie)),u){e=Ha(u)?cb(u,St):St,A=rb("scroller-start",a,be,ge,e,0),D=rb("scroller-end",a,be,ge,e,0,A),t=A["offset"+ge.op.d2];var h=H(x(be,"content")||be);P=this.markerStart=rb("start",a,h,ge,e,t,0,fe),O=this.markerEnd=rb("end",a,h,ge,e,t,0,fe),fe&&(Z=je.quickSetter([P,O],ge.a,xt)),me||Ye.length&&!0===x(be,"fixedMarkers")||(function _makePositionable(e){var t=ab(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(ve?We:be),je.set([A,D],{force3D:!0}),w=je.quickSetter(A,ge.a,xt),S=je.quickSetter(D,ge.a,xt))}if(fe){var b=fe.vars.onUpdate,Ce=fe.vars.onUpdateParams;fe.eventCallback("onUpdate",function(){Se.update(0,0,1),b&&b.apply(Ce||[])})}Se.previous=function(){return Tt[Tt.indexOf(Se)-1]},Se.next=function(){return Tt[Tt.indexOf(Se)+1]},Se.revert=function(e){var t=!1!==e||!Se.enabled,r=Ze;t!==Se.isReverted&&(t&&(!Se.scroll.rec&&Ze&&it&&(Se.scroll.rec=Ee()),J=Math.max(Ee(),Se.scroll.rec||0),q=Se.progress,U=T&&T.progress()),P&&[P,O,A,D].forEach(function(e){return e.style.display=t?"none":"block"}),t&&(Ze=1),Se.update(t),Ze=r,ie&&(t?function _swapPinOut(e,t,r){Ct(r);var n=e._gsap;if(n.spacerIsNative)Ct(n.spacerState);else if(e.parentNode===t){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}}(ie,L,F):ue&&Se.isActive||Vb(ie,L,ab(ie),V)),Se.isReverted=t)},Se.refresh=function(e,t){if(!Ze&&Se.enabled||t)if(ie&&e&<)kb(ScrollTrigger,"scrollEnd",Fb);else{!it&&_e&&_e(Se),Ze=1,K&&K.pause(),ae&&T&&T.time(-.01,!0).invalidate(),Se.isReverted||Se.revert();for(var r,n,i,o,a,s,l,c,u,f,d=Te(),p=ke(),g=fe?fe.duration():Ca(be,ge),h=0,b=0,v=_.end,m=_.endTrigger||ne,y=_.start||(0!==_.start&&ne?ie?"0 0":"0 100%":0),x=Se.pinnedContainer=_.pinnedContainer&&H(_.pinnedContainer),w=ne&&Math.max(0,Tt.indexOf(Se))||0,S=w;S--;)(s=Tt[S]).end||s.refresh(0,1)||(Ze=1),!(l=s.pin)||l!==ne&&l!==ie||s.isReverted||((f=f||[]).unshift(s),s.revert()),s!==Tt[S]&&(w--,S--);for(Fa(y)&&(y=y(Se)),C=_b(y,ne,d,ge,Ee(),P,A,Se,p,we,me,g,fe)||(ie?-.001:0),Fa(v)&&(v=v(Se)),Ea(v)&&!v.indexOf("+=")&&(~v.indexOf(" ")?v=(Ea(y)?y.split(" ")[0]:"")+v:(h=qb(v.substr(2),d),v=Ea(y)?y:C+h,m=ne)),M=Math.max(C,_b(v||(m?"100% 0":g),m,d,ge,Ee()+h,O,D,Se,p,we,me,g,fe))||-.001,z=M-C||(C-=.01)&&.001,h=0,S=w;S--;)(l=(s=Tt[S]).pin)&&s.start-s._pinPush<C&&!fe&&0<s.end&&(r=s.end-s.start,l!==ne&&l!==x||Ga(y)||(h+=r*(1-s.progress)),l===ie&&(b+=r));if(C+=h,M+=h,Se._pinPush=b,P&&h&&((r={})[ge.a]="+="+h,x&&(r[ge.p]="-="+Ee()),je.set([P,O],r)),ie)r=ab(ie),o=ge===Xe,i=Ee(),X=parseFloat(B(ge.a))+b,!g&&1<M&&((ve?We:be).style["overflow-"+ge.a]="scroll"),Vb(ie,L,r),R=Yb(ie),n=wt(ie,!0),c=me&&I(be,o?Le:Xe)(),oe&&((V=[oe+ge.os2,z+b+xt]).t=L,(S=oe===vt?eb(ie,ge)+z+b:0)&&V.push(ge.d,S+xt),Ct(V),me&&Ee(J)),me&&((a={top:n.top+(o?i-C:c)+xt,left:n.left+(o?c:i-C)+xt,boxSizing:"border-box",position:"fixed"})[ft]=a.maxWidth=Math.ceil(n.width)+xt,a[dt]=a.maxHeight=Math.ceil(n.height)+xt,a[mt]=a[mt+ht]=a[mt+pt]=a[mt+bt]=a[mt+gt]="0",a[vt]=r[vt],a[vt+ht]=r[vt+ht],a[vt+pt]=r[vt+pt],a[vt+bt]=r[vt+bt],a[vt+gt]=r[vt+gt],Y=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(F,a,ue)),T?(u=T._initted,tt(1),T.render(T.duration(),!0,!0),j=B(ge.a)-X+z+b,z!==j&&Y.splice(Y.length-2,2),T.render(0,!0,!0),u||T.invalidate(),tt(0)):j=z;else if(ne&&Ee()&&!fe)for(n=ne.parentNode;n&&n!==We;)n._pinOffset&&(C-=n._pinOffset,M-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Se.start=C,Se.end=M,k=E=Ee(),fe||(k<J&&Ee(J),Se.scroll.rec=0),Se.revert(!1),W&&Se.isActive&&Ee(C+z*q),Ze=0,T&&he&&(T._initted||U)&&T.progress()!==U&&T.progress(U,!0).render(T.time(),!0,!0),q===Se.progress&&!fe||(T&&!he&&T.totalProgress(q,!0),Se.progress=q,Se.update(0,0,1)),ie&&oe&&(L._pinOffset=Math.round(Se.progress*j)),te&&te(Se)}},Se.getVelocity=function(){return(Ee()-E)/(st()-Ue)*1e3||0},Se.endAnimation=function(){Ka(Se.callbackAnimation),T&&(K?K.progress(1):T.paused()?he||Ka(T,Se.direction<0,1):Ka(T,T.reversed()))},Se.labelToScroll=function(e){return T&&T.labels&&(C||Se.refresh()||C)+T.labels[e]/T.duration()*z||0},Se.getTrailing=function(t){var e=Tt.indexOf(Se),r=0<Se.direction?Tt.slice(0,e).reverse():Tt.slice(e+1);return(Ea(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Se.direction?e.end<=C:e.start>=M})},Se.update=function(e,t,r){if(!fe||r||e){var n,i,o,a,s,l,c,u=Se.scroll(),f=e?0:(u-C)/z,d=f<0?0:1<f?1:f||0,p=Se.progress;if(t&&(E=k,k=fe?Ee():u,ce&&(N=G,G=T&&!he?T.totalProgress():d)),se&&!d&&ie&&!Ze&&!at&<&&C<u+(u-E)/(st()-Ue)*se&&(d=1e-4),d!==p&&Se.enabled){if(a=(s=(n=Se.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Se.direction=p<d?1:-1,Se.progress=d,a&&!Ze&&(i=d&&!p?0:1===d?1:1===p?2:3,he&&(o=!s&&"none"!==xe[i+1]&&xe[i+1]||xe[i],c=T&&("complete"===o||"reset"===o||o in T))),pe&&(s||c)&&(c||re||!T)&&(Fa(pe)?pe(Se):Se.getTrailing(pe).forEach(function(e){return e.endAnimation()})),he||(!K||Ze||at?T&&T.totalProgress(d,!!Ze):((fe||ot&&ot!==Se)&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo("totalProgress",d,T._tTime/T._tDur):(K.vars.totalProgress=d,K.invalidate().restart()))),ie)if(e&&oe&&(L.style[oe+ge.os2]=y),me){if(a){if(l=!e&&p<d&&u<M+1&&u+1>=Ca(be,ge),ue)if(e||!n&&!l)bc(ie,L);else{var g=wt(ie,!0),h=u-C;bc(ie,We,g.top+(ge===Xe?h:0)+xt,g.left+(ge===Xe?0:h)+xt)}Ct(n||l?Y:R),j!==z&&d<1&&n||m(X+(1!==d||l?0:j))}}else m(va(X+j*d));!ce||v.tween||Ze||at||W.restart(!0),Q&&(s||le&&d&&(d<1||!rt))&&qe(Q.targets).forEach(function(e){return e.classList[n||le?"add":"remove"](Q.className)}),!$||he||e||$(Se),a&&!Ze?(he&&(c&&("complete"===o?T.pause().totalProgress(1):"reset"===o?T.restart(!0).pause():"restart"===o?T.restart(!0):T[o]()),$&&$(Se)),!s&&rt||(ee&&s&&La(Se,ee),ye[i]&&La(Se,ye[i]),le&&(1===d?Se.kill(!1,1):ye[i]=0),s||ye[i=1===d?1:3]&&La(Se,ye[i])),de&&!n&&Math.abs(Se.getVelocity())>(Ga(de)?de:2500)&&(Ka(Se.callbackAnimation),K?K.progress(1):Ka(T,!d,1))):he&&$&&!Ze&&$(Se)}if(S){var b=fe?u/fe.duration()*(fe._caScrollDist||0):u;w(b+(A._isFlipped?1:0)),S(b)}Z&&Z(-u/fe.duration()*(fe._caScrollDist||0))}},Se.enable=function(e,t){Se.enabled||(Se.enabled=!0,kb(be,"resize",yb),kb(ve?Ne:be,"scroll",xb),_e&&kb(ScrollTrigger,"refreshInit",_e),!1!==e&&(Se.progress=q=0,k=E=g=Ee()),!1!==t&&Se.refresh())},Se.getTween=function(e){return e&&v?v.tween:K},Se.setPositions=function(e,t){ie&&(X+=e-C,j+=t-e-z),Se.start=C=e,Se.end=M=t,z=t-e,Se.update()},Se.disable=function(e,t){if(Se.enabled&&(!1!==e&&Se.revert(),Se.enabled=Se.isActive=!1,t||K&&K.pause(),J=0,n&&(n.uncache=1),_e&&lb(ScrollTrigger,"refreshInit",_e),W&&(W.pause(),v.tween&&v.tween.kill()&&(v.tween=0)),!ve)){for(var r=Tt.length;r--;)if(Tt[r].scroller===be&&Tt[r]!==Se)return;lb(be,"resize",yb),lb(be,"scroll",xb)}},Se.kill=function(e,t){Se.disable(e,t),K&&!t&&K.kill(),a&&delete kt[a];var r=Tt.indexOf(Se);0<=r&&Tt.splice(r,1),r===Qe&&0<Et&&Qe--,r=0,Tt.forEach(function(e){return e.scroller===Se.scroller&&(r=1)}),r||(Se.scroll.rec=0),T&&(T.scrollTrigger=null,e&&T.render(-1),t||T.kill()),P&&[P,O,A,D].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ie&&(n&&(n.uncache=1),r=0,Tt.forEach(function(e){return e.pin===ie&&r++}),r||(n.spacer=0)),_.onKill&&_.onKill(Se)},Se.enable(!1,!1),o&&o(Se),T&&T.add&&!z?je.delayedCall(.01,function(){return C||M||Se.refresh()})&&(z=.01)&&(C=M=0):Se.refresh()}else this.update=this.refresh=this.kill=ua},ScrollTrigger.register=function register(e){return o||(je=e||xa(),wa()&&window.document&&ScrollTrigger.enable(),o=ct),o},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)_t[t]=e[t];return _t},ScrollTrigger.disable=function disable(t,r){ct=0,Tt.forEach(function(e){return e[r?"kill":"disable"](t)}),lb(Ve,"wheel",xb),lb(Ne,"scroll",xb),clearInterval(l),lb(Ne,"touchcancel",ua),lb(We,"touchstart",ua),jb(lb,Ne,"pointerdown,touchstart,mousedown",sa),jb(lb,Ne,"pointerup,touchend,mouseup",ta),s.kill(),Da(lb);for(var e=0;e<ze.length;e+=3)mb(lb,ze[e],ze[e+1]),mb(lb,ze[e],ze[e+2])},ScrollTrigger.enable=function enable(){if(Ve=window,Ne=document,Ke=Ne.documentElement,We=Ne.body,je&&(qe=je.utils.toArray,Je=je.utils.clamp,tt=je.core.suppressOverwrites||ua,je.core.globals("ScrollTrigger",ScrollTrigger),We)){ct=1,ScrollTrigger.isTouch=Ve.matchMedia&&Ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,a=[Ve,Ne,Ke,We],m=Ve.innerHeight,S=Ve.innerWidth,w.register(je),kb(Ne,"scroll",xb);var e,t,r=We.style,n=r.borderTopStyle;for(r.borderTopStyle="solid",e=wt(We),Xe.m=Math.round(e.top+Xe.sc())||0,Le.m=Math.round(e.left+Le.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),l=setInterval(wb,250),je.delayedCall(.5,function(){return at=0}),kb(Ne,"touchcancel",ua),kb(We,"touchstart",ua),jb(kb,Ne,"pointerdown,touchstart,mousedown",sa),jb(kb,Ne,"pointerup,touchend,mouseup",ta),c=je.utils.checkPrefix("transform"),Q.push(c),o=st(),s=je.delayedCall(.2,q).pause(),g=[Ne,"visibilitychange",function(){var e=Ve.innerWidth,t=Ve.innerHeight;Ne.hidden?(f=e,d=t):f===e&&d===t||yb()},Ne,"DOMContentLoaded",q,Ve,"load",q,Ve,"resize",yb],Da(kb),Tt.forEach(function(e){return e.enable(0,1)}),t=0;t<ze.length;t+=3)mb(lb,ze[t],ze[t+1]),mb(lb,ze[t],ze[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(rt=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(l)||(l=t)&&setInterval(wb,t),"ignoreMobileResize"in e&&(v=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Da(lb)||Da(kb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=H(e),n=ze.indexOf(r),i=ya(r);~n&&ze.splice(n,i?6:2),t&&(i?Ye.unshift(Ve,t,We,t,Ke,t):Ye.unshift(r,t))},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,i,o;for(r in e)n=X.indexOf(r),i=e[r],"all"===(nt=r)?i():(t=Ve.matchMedia(r))&&(t.matches&&(o=i()),~n?(X[n+1]=Ja(X[n+1],i),X[n+2]=Ja(X[n+2],o)):(n=X.length,X.push(r,i,o),t.addListener?t.addListener(Eb):t.addEventListener("change",Eb)),X[n+3]=t.matches),nt=0;return X},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(X.length=0),0<=(e=X.indexOf(e))&&X.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(Ea(e)?H(e):e).getBoundingClientRect(),i=n[r?ft:dt]*t||0;return r?0<n.right-i&&n.left+i<Ve.innerWidth:0<n.bottom-i&&n.top+i<Ve.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){Ea(e)&&(e=H(e));var n=e.getBoundingClientRect(),i=n[r?ft:dt],o=null==t?i/2:t in F?F[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/Ve.innerWidth:(n.top+o)/Ve.innerHeight},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(je)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}re.version="3.10.1",re.saveStyles=function(e){return e?qe(e).forEach(function(e){if(e&&e.style){var t=V.indexOf(e);0<=t&&V.splice(t,5),V.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),je.core.getCache(e),nt)}}):V},re.revert=function(e,t){return N(!e,t)},re.create=function(e,t){return new re(e,t)},re.refresh=function(e){return e?yb():(o||re.register())&&q(!0)},re.update=Z,re.clearScrollMemory=Kb,re.maxScroll=function(e,t){return Ca(e,t?Le:Xe)},re.getScrollFunc=function(e,t){return I(H(e),t?Le:Xe)},re.getById=function(e){return kt[e]},re.getAll=function(){return Tt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},re.isScrolling=function(){return!!lt},re.snapDirectional=hb,re.addEventListener=function(e,t){var r=R[e]||(R[e]=[]);~r.indexOf(t)||r.push(t)},re.removeEventListener=function(e,t){var r=R[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},re.batch=function(e,t){function On(e,t){var r=[],n=[],i=je.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&Fa(t[r])&&"onRefreshInit"!==r?On(0,t[r]):t[r];return Fa(a)&&(a=a(),kb(re,"refresh",function(){return a=t.batchMax()})),qe(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(re.create(t))}),n};function ec(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function fc(e){!0===e?(We.style.removeProperty("touch-action"),Ke.style.removeProperty("touch-action")):We.style.touchAction=Ke.style.touchAction=e?"pan-"+e:"none"}function gc(e){function po(){return d=st()}function qo(){return n=!1}function to(){r=Ca(Ke,Xe),m=Je(0,r),f&&(v=Je(0,Ca(Ke,Le))),o=W}function Bo(){to(),s.isActive()&&s.vars.scrollY>r&&s.resetTo("scrollY",Ca(Ke,Xe))}Ha(e)||(e={}),e.preventDefault=e.isNormalizer=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,o,s,a,l,c,u,f=e.normalizeScrollX,i=e.momentum,d=0,p=I(Ke,Xe),g=I(Ke,Le),h=1,b=Fa(i)?function(){return i(t)}:function(){return i||2.8},v=ua,m=ua,y=re.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent);return e.ignoreCheck=function(e){return y&&"touchmove"===e.type&&function ignoreDrag(){if(n)return requestAnimationFrame(qo),!0;n=!0}()||1<h||t.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){var e=h;h=Ve.visualViewport&&Ve.visualViewport.scale||1,s.pause(),e!==h&&fc(1<h||!f&&"x"),n=!1,a=g(),l=p(),to(),o=W},e.onRelease=e.onGestureStart=function(e,t){var r=e.event,n=r.changedTouches?r.changedTouches[0]:r;if(!t||Math.abs(e.x-e.startX)<=3&&Math.abs(e.y-e.startY)<=3)je.delayedCall(.05,function(){if(300<st()-d&&!r.defaultPrevented)if(r.target.click)r.target.click();else if(c.createEvent){var e=c.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Ve,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(e)}}),u.restart(!0);else{var i,o,a=b();f&&(o=(i=g())+.05*a*-e.velocityX/.227/h,a*=ec(g,i,o,Ca(Ke,Le)),s.vars.scrollX=v(o)),o=(i=p())+.05*a*-e.velocityY/.227/h,a*=ec(p,i,o,Ca(Ke,Xe)),s.vars.scrollY=m(o),s.invalidate().duration(a).play(.01)}},e.onWheel=function(){return s._ts&&s.pause()},e.onChange=function(e,t,r,n,i){W!==o&&to(),t&&f&&g(v(n[2]===t?a+(e.startX-e.x)/h:g()+t-n[1])),r&&p(m(i[2]===r?l+(e.startY-e.y)/h:p()+r-i[1])),Z()},e.onEnable=function(e){fc(!f&&"x"),kb(Ve,"resize",Bo),e.target.addEventListener("click",po,{capture:!0})},e.onDisable=function(e){fc(!0),lb(Ve,"resize",Bo),lb(e.target,"click",po)},t=new w(e),c=t.target.ownerDocument||Ne,u=t._dc,s=je.to(t,{ease:"power4",paused:!0,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:u.vars.onComplete}),t}re.sort=function(e){return Tt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},re.observe=function(e){return new w(e)},re.normalizeScroll=function(e){if(void 0===e)return b;if(!0===e&&b)return b.enable();var t=e instanceof w;return b&&(!1===e||t&&e!==b)&&b.kill(),e&&!t&&(e=gc(e)),b=e&&e.enable()},re.core={_getVelocityProp:J,_scrollers:ze,_proxies:Ye,bridge:{ss:function ss(){lt||j("scrollStart"),lt=st()},ref:function ref(){return Ze}}},xa()&&je.registerPlugin(re),e.ScrollTrigger=re,e.default=re;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}function x(e,t){return~Ye.indexOf(e)&&Ye[Ye.indexOf(e)+1][t]}function y(e){return!!~t.indexOf(e)}function z(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function A(e,t,r){return e.removeEventListener(t,r)}function D(){return Pe&&Pe.isPressed||ze.cache++}function E(t){return function(e){return e||0===e?(r&&(ve.history.scrollRestoration="manual"),t(e),t.v=e,t.c=ze.cache,Pe&&Pe.isPressed&&Re("ss",e)):ze.cache===t.c&&!Re("ref")||(t.c=ze.cache,t.v=t()),t.v}}function H(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function I(t,e){var r=e.s,n=e.sc,i=ze.indexOf(t),o=n===Xe.sc?1:2;return~i||(i=ze.push(t)-1),ze[i+o]||(ze[i+o]=x(t,r)||(y(t)?n:function(e){return arguments.length?t[r]=e:t[r]}))}function J(e,t,i){function _c(e,t){var r=u();t||n<r-s?(a=o,o=e,l=s,s=r):i?o+=e:o=a+(e-a)/(r-l)*(s-l)}var o=e,a=e,s=u(),l=s,n=t||50,c=Math.max(500,3*n);return{update:_c,reset:function reset(){a=o=i?0:o,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=u();return!e&&0!==e||e===o||_c(e),s===l||c<n-l?0:(o+(i?r:-r))/((i?n:s)-t)*1e3}}}function K(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function L(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function M(e){return(he=e||p())&&!be&&"undefined"!=typeof document&&document.body&&(ve=window,Se=(me=document).documentElement,_e=me.body,t=[ve,me,Se,_e],he.utils.clamp,ke="onpointerenter"in _e?"pointer":"mouse",Te=w.isTouch=ve.matchMedia&&ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return r=0},500),be=1),be}var he,be,ve,me,Se,_e,Te,ke,Me,t,Pe,r=1,Oe=[],ze=[],Ye=[],u=Date.now,Re=function _bridge(e,t){return t},n="scrollLeft",i="scrollTop",Le={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:E(function(e){return arguments.length?ve.scrollTo(e,Xe.sc()):ve.pageXOffset||me[n]||Se[n]||_e[n]||0})},Xe={s:i,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Le,sc:E(function(e){return arguments.length?ve.scrollTo(Le.sc(),e):ve.pageYOffset||me[i]||Se[i]||_e[i]||0})};Le.op=Xe,ze.cache=0;var w=(Observer.prototype.init=function init(e){be||M(he)||console.warn("Please gsap.registerPlugin(Observer)"),Me||(Me=he.core.globals().ScrollTrigger)&&Me.core&&function _integrate(){var e=Me.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,ze),n.push.apply(n,Ye),ze=t,Ye=n,Re=function _bridge(e,t){return r[e](t)}}();var i=e.tolerance,a=e.dragMinimum,t=e.type,r=e.target,n=e.lineHeight,o=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,b=e.onPress,v=e.onRelease,m=e.onRight,x=e.onLeft,w=e.onUp,S=e.onDown,_=e.onChangeX,T=e.onChangeY,k=e.onChange,E=e.onToggleX,C=e.onToggleY,P=e.onHover,O=e.onHoverEnd,F=e.onMove,Y=e.ignoreCheck,R=e.isNormalizer,B=e.onGestureStart,X=e.onGestureEnd,j=e.onWheel,V=e.onEnable,G=e.onDisable,N=e.onClick,W=e.scrollSpeed;function ue(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&le&&"touch"!==e.pointerType||Y&&Y(e)}function we(){var e=ee.deltaX=L(de),t=ee.deltaY=L(pe),r=Math.abs(e)>=i,n=Math.abs(t)>=i;k&&(r||n)&&k(ee,e,t,de,pe),r&&(m&&0<ee.deltaX&&m(ee),x&&ee.deltaX<0&&x(ee),_&&_(ee),E&&ee.deltaX<0!=te<0&&E(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),n&&(S&&0<ee.deltaY&&S(ee),w&&ee.deltaY<0&&w(ee),T&&T(ee),C&&ee.deltaY<0!=re<0&&C(ee),re=ee.deltaY,pe[0]=pe[1]=pe[2]=0),$&&(F(ee),$=!1),Z&&(h(ee),Z=!1),Q&&(j(ee),Q=!1),q=0}function xe(e,t,r){de[r]+=e,pe[r]+=t,ee._vx.update(e,2===r),ee._vy.update(t,2===r),o?q=q||requestAnimationFrame(we):we()}function ye(e){if(!ue(e,1)){var t=(e=K(e,s)).clientX,r=e.clientY,n=t-ee.x,i=r-ee.y,o=ee.isDragging;ee.x=t,ee.y=r,(o||Math.abs(ee.startX-t)>=a||Math.abs(ee.startY-r)>=a)&&(h&&(Z=!0),o||(ee.isDragging=!0),xe(n,i,2),o||p&&p(ee))}}function Ae(e){if(!ue(e,1)){A(R?r:fe,se[1],ye);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,l&&!R&&U.restart(!0),g&&t&&g(ee),v&&v(ee,t)}}function Be(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&B(e,ee.isDragging)}function Ce(){return(ee.isGesturing=!1)||X(ee)}function De(e){if(!ue(e)){var t=ne(),r=ie();xe((t-oe)*W,(r-ae)*W,1),oe=t,ae=r,l&&U.restart(!0)}}function Ee(e){if(!ue(e)){e=K(e,s),j&&(Q=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?ve.innerHeight:1)*f;xe(e.deltaX*t,e.deltaY*t,0),l&&!R&&U.restart(!0)}}function Fe(e){if(!ue(e)){var t=e.clientX,r=e.clientY,n=t-ee.x,i=r-ee.y;ee.x=t,ee.y=r,F&&($=!0),(n||i)&&xe(n,i,2)}}function Ge(e){ee.event=e,P(ee)}function He(e){ee.event=e,O(ee)}function Ie(e){return ue(e)||K(e,s)&&N(ee)}this.target=r=H(r)||Se,this.vars=e,u=u&&he.utils.toArray(u),i=i||0,a=a||0,f=f||1,W=W||1,t=t||"wheel,touch,pointer",o=!1!==o,n=n||parseFloat(ve.getComputedStyle(_e).lineHeight)||22;var q,U,Z,$,Q,ee=this,te=0,re=0,ne=I(r,Le),ie=I(r,Xe),oe=ne(),ae=ie(),se=("ontouchstart"in Se?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in Se)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),le=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===se[0],ce=y(r),fe=r.ownerDocument||me,de=[0,0,0],pe=[0,0,0],ge=ee.onPress=function(e){ue(e,1)||(U.pause(),ee.isPressed=!0,e=K(e,s),te=re=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),z(R?r:fe,se[1],ye,s),ee.deltaX=ee.deltaY=0,b&&b(ee))};U=ee._dc=he.delayedCall(c||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),U.pause(),l&&l(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=J(0,50,!0),ee._vy=J(0,50,!0),ee.scrollX=ne,ee.scrollY=ie,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(z(ce?fe:r,"scroll",D),0<=t.indexOf("scroll")&&z(ce?fe:r,"scroll",De,s),0<=t.indexOf("wheel")&&z(r,"wheel",Ee,s),(0<=t.indexOf("touch")&&Te||0<=t.indexOf("pointer"))&&(z(r,se[0],ge,s),z(fe,se[2],Ae),z(fe,se[3],Ae),N&&z(r,"click",Ie),B&&z(fe,"gesturestart",Be),X&&z(fe,"gestureend",Ce),P&&z(r,ke+"enter",Ge),O&&z(r,ke+"leave",He),F&&z(r,ke+"move",Fe)),ee.isEnabled=!0,e&&e.type&&ge(e),V&&V(ee)),ee},ee.disable=function(){ee.isEnabled&&(Oe.filter(function(e){return e!==ee&&y(e.target)}).length||A(ce?fe:r,"scroll",D),A(ce?fe:r,"scroll",De),A(r,"wheel",Ee),A(r,se[0],ge),A(fe,se[2],Ae),A(fe,se[3],Ae),A(r,"click",Ie),A(fe,"gesturestart",Be),A(fe,"gestureend",Ce),A(r,ke+"enter",Ge),A(r,ke+"leave",He),A(r,ke+"move",Fe),ee.isEnabled=!1,G&&G(ee))},ee.kill=function(){ee.disable();var e=Oe.indexOf(ee);0<=e&&Oe.splice(e,1),Pe===ee&&(Pe=0)},Oe.push(ee),R&&(Pe=ee),ee.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}w.version="3.10.2",w.create=function(e){return new w(e)},w.register=M,w.getAll=function(){return Oe.slice()},w.getById=function(t){return Oe.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(w);function sa(){return $e=1}function ta(){return $e=0}function ua(e){return e}function va(e){return Math.round(1e5*e)/1e5||0}function wa(){return"undefined"!=typeof window}function xa(){return je||wa()&&(je=window.gsap)&&je.registerPlugin&&je}function ya(e){return!!~a.indexOf(e)}function za(e){return x(e,"getBoundingClientRect")||(ya(e)?function(){return Mt.width=Ve.innerWidth,Mt.height=Ve.innerHeight,Mt}:function(){return wt(e)})}function Ca(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=x(e,r))?o()-za(e)()[i]:ya(e)?(Ke[r]||We[r])-(Ve["inner"+n]||Ke["client"+n]||We["client"+n]):e[r]-e["offset"+n]}function Da(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ea(e){return"string"==typeof e}function Fa(e){return"function"==typeof e}function Ga(e){return"number"==typeof e}function Ha(e){return"object"==typeof e}function Ia(e){return Fa(e)&&e()}function Ja(r,n){return function(){var e=Ia(r),t=Ia(n);return function(){Ia(e),Ia(t)}}}function Ka(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function La(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function ab(e){return Ve.getComputedStyle(e)}function cb(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function eb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function fb(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function hb(i){var o=je.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return o(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:o(t<0?e-i:e+i)}}function jb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function kb(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function lb(e,t,r){return e.removeEventListener(t,r)}function mb(e,t,r){return r&&r.wheelHandler&&e(t,"wheel",r)}function qb(e,t){if(Ea(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in F?F[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function rb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=Ne.createElement("div"),g=ya(r)||"fixed"===x(r,"pinType"),h=-1!==e.indexOf("scroller"),b=g?We:r,v=-1!==e.indexOf("start"),m=v?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Xe?C:P)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+n.op.d2],Y(p,0,n,v),p}function wb(){return 34<st()-lt&&Z()}function xb(){b&&b.isPressed||(ze.cache++,_=_||requestAnimationFrame(Z),lt||j("scrollStart"),lt=st())}function yb(){ze.cache++,Ze||h||Ne.fullscreenElement||v&&S===Ve.innerWidth&&!(Math.abs(Ve.innerHeight-m)>.25*Ve.innerHeight)||s.restart(!0)}function Eb(e){var t,r=je.ticker.frame,n=[],i=0;if(T!==r||at){for(N();i<X.length;i+=4)(t=Ve.matchMedia(X[i]).matches)!==X[i+3]&&((X[i+3]=t)?n.push(i):N(1,X[i])||Fa(X[i+2])&&X[i+2]());for(G(),i=0;i<n.length;i++)t=n[i],nt=X[t],X[t+2]=X[t+1](e);nt=0,o&&q(0,1),T=r,j("matchMedia")}}function Fb(){return lb(re,"scrollEnd",Fb)||q(!0)}function Kb(){return ze.cache++&&ze.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function Vb(e,t,r,n){if(e.parentNode!==t){for(var i,o=$.length,a=t.style,s=e.style;o--;)a[i=$[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[P]=s[C]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[ft]=eb(e,Le)+xt,a[dt]=eb(e,Xe)+xt,a[vt]=s[mt]=s.top=s.left="0",Ct(n),s[ft]=s.maxWidth=r[ft],s[dt]=s.maxHeight=r[dt],s[vt]=r[vt],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function Yb(e){for(var t=Q.length,r=e.style,n=[],i=0;i<t;i++)n.push(Q[i],r[Q[i]]);return n.t=e,n}function _b(e,t,r,n,i,o,a,s,l,c,u,f,d){Fa(e)&&(e=e(s)),Ea(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?qb("0"+e.substr(3),r):0));var p,g,h,b=d?d.time():0;if(d&&d.seek(0),Ga(e))a&&Y(a,r,n,!0);else{Fa(t)&&(t=t(s));var v,m,y,x,w=e.split(" ");h=H(t)||We,(v=wt(h)||{})&&(v.left||v.top)||"none"!==ab(h).display||(x=h.style.display,h.style.display="block",v=wt(h),x?h.style.display=x:h.style.removeProperty("display")),m=qb(w[0],v[n.d]),y=qb(w[1]||"0",r),e=v[n.p]-l[n.p]-c+m+i-y,a&&Y(a,y,n,r-y<20||a._isStart&&20<y),r-=r-y}if(o){var S=e+r,_=o._isStart;p="scroll"+n.d2,Y(o,S,n,_&&20<S||!_&&(u?Math.max(We[p],Ke[p]):o.parentNode[p])<=S+1),u&&(l=wt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+xt))}return d&&h&&(p=wt(h),d.seek(f),g=wt(h),d._caScrollDist=p[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function bc(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===We){for(i in e._stOrig=a.cssText,o=ab(e))+i||te.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;je.core.getCache(e).uncache=1,t.appendChild(e)}}function cc(l,e){function nj(e,t,r,n,i){var o=nj.tween,a=t.onComplete,s={};return r=r||f(),i=n&&i||0,n=n||e-r,o&&o.kill(),c=Math.round(r),t[d]=e,(t.modifiers=s)[d]=function(e){return(e=va(f()))!==c&&e!==u&&2<Math.abs(e-c)&&2<Math.abs(e-u)?(o.kill(),nj.tween=0):e=r+n*o.ratio+i*o.ratio*o.ratio,u=c,c=va(e)},t.onComplete=function(){nj.tween=0,a&&a.call(o)},o=nj.tween=je.to(l,t)}var c,u,f=I(l,e),d="_scroll"+e.p2;return(l[d]=f).wheelHandler=function(){return nj.tween&&nj.tween.kill()&&(nj.tween=0)},kb(l,"wheel",f.wheelHandler),nj}var je,o,Ve,Ne,Ke,We,a,s,qe,Je,Ue,l,Ze,$e,c,Qe,f,d,g,et,tt,h,b,v,m,S,rt,_,nt,T,it,ot,at=1,st=Date.now,k=st(),lt=0,ct=0,ut=Math.abs,C="right",P="bottom",ft="width",dt="height",pt="Right",gt="Left",ht="Top",bt="Bottom",vt="padding",mt="margin",yt="Width",O="Height",xt="px",wt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ab(e)[c]&&je.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},St={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_t={toggleActions:"play",anticipatePin:0},F={top:0,left:0,center:.5,bottom:1,right:1},Y=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+yt]=1,i["border"+a+yt]=0,i[r.p]=t+"px",je.set(e,i)},Tt=[],kt={},R={},B=[],X=[],j=function _dispatch(e){return R[e]&&R[e].map(function(e){return e()})||B},V=[],G=function _revertRecorded(e){for(var t=0;t<V.length;t+=5)e&&V[t+4]!==e||(V[t].style.cssText=V[t+1],V[t].getBBox&&V[t].setAttribute("transform",V[t+2]||""),V[t+3].uncache=1)},N=function _revertAll(e,t){var r;for(Qe=0;Qe<Tt.length;Qe++)r=Tt[Qe],t&&r.media!==t||(e?r.kill(1):r.revert());t&&G(t),t||j("revert")},W=0,q=function _refreshAll(e,t){if(!lt||e){it=!0;var r=j("refreshInit");et&&re.sort(),t||N(),Tt.slice(0).forEach(function(e){return e.refresh()}),Tt.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,Ca(e.scroller,e._dir))}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),Kb(),s.pause(),W++,it=!1,j("refresh")}else kb(re,"scrollEnd",Fb)},U=0,Et=1,Z=function _updateAll(){if(!it){ot&&ot.update(0),re.isUpdating=!0;var e=Tt.length,t=st(),r=50<=t-k,n=e&&Tt[0].scroll();if(Et=n<U?-1:1,U=n,r&&(lt&&!$e&&200<t-lt&&(lt=0,j("scrollEnd")),Ue=k,k=t),Et<0){for(Qe=e;0<Qe--;)Tt[Qe]&&Tt[Qe].update(0,r);Et=1}else for(Qe=0;Qe<e;Qe++)Tt[Qe]&&Tt[Qe].update(0,r);re.isUpdating=!1}_=0},$=["left","top",P,C,mt+bt,mt+pt,mt+ht,mt+gt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Q=$.concat([ft,dt,"boxSizing","max"+yt,"max"+O,"position",mt,vt,vt+ht,vt+pt,vt+bt,vt+gt]),ee=/([A-Z])/g,Ct=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||je.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(ee,"-$1").toLowerCase())}},Mt={left:0,top:0},te=/(webkit|moz|length|cssText|inset)/i,re=(ScrollTrigger.prototype.init=function init(_,T){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),ct){var v,n,f,k,E,C,M,P,O,A,D,e,z,F,Y,R,L,t,B,m,X,j,y,V,w,S,r,G,N,K,i,d,W,q,J,U,Z,o,$=(_=cb(Ea(_)||Ga(_)||_.nodeType?{trigger:_}:_,_t)).onUpdate,Q=_.toggleClass,a=_.id,ee=_.onToggle,te=_.onRefresh,re=_.scrub,ne=_.trigger,ie=_.pin,oe=_.pinSpacing,ae=_.invalidateOnRefresh,se=_.anticipatePin,s=_.onScrubComplete,p=_.onSnapComplete,le=_.once,ce=_.snap,ue=_.pinReparent,l=_.pinSpacer,fe=_.containerAnimation,de=_.fastScrollEnd,pe=_.preventOverlaps,ge=_.horizontal||_.containerAnimation&&!1!==_.horizontal?Le:Xe,he=!re&&0!==re,be=H(_.scroller||Ve),c=je.core.getCache(be),ve=ya(be),me="fixed"===("pinType"in _?_.pinType:x(be,"pinType")||ve&&"fixed"),ye=[_.onEnter,_.onLeave,_.onEnterBack,_.onLeaveBack],xe=he&&_.toggleActions.split(" "),u="markers"in _?_.markers:_t.markers,we=ve?0:parseFloat(ab(be)["border"+ge.p2+yt])||0,Se=this,_e=_.onRefreshInit&&function(){return _.onRefreshInit(Se)},Te=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=x(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ve["inner"+i]:e["client"+i])||0}}(be,ve,ge),ke=function _getOffsetsFunc(e,t){return!t||~Ye.indexOf(e)?za(e):function(){return Mt}}(be,ve),g=0,Ee=I(be,ge);if(Se.media=nt,Se._dir=ge,se*=45,Se.scroller=be,Se.scroll=fe?fe.time.bind(fe):Ee,k=Ee(),Se.vars=_,T=T||_.animation,"refreshPriority"in _&&(et=1,-9999===_.refreshPriority&&(ot=Se)),c.tweenScroll=c.tweenScroll||{top:cc(be,Xe),left:cc(be,Le)},Se.tweenTo=v=c.tweenScroll[ge.p],Se.scrubDuration=function(e){(i=Ga(e)&&e)?K?K.duration(e):K=je.to(T,{ease:"expo",totalProgress:"+=0.001",duration:i,paused:!0,onComplete:function onComplete(){return s&&s(Se)}}):(K&&K.progress(1).kill(),K=0)},T&&(T.vars.lazy=!1,T._initted||!1!==T.vars.immediateRender&&!1!==_.immediateRender&&T.render(0,!0,!0),Se.animation=T.pause(),(T.scrollTrigger=Se).scrubDuration(re),G=0,a=a||T.vars.id),Tt.push(Se),ce&&(Ha(ce)&&!ce.push||(ce={snapTo:ce}),"scrollBehavior"in We.style&&je.set(ve?[We,Ke]:be,{scrollBehavior:"auto"}),f=Fa(ce.snapTo)?ce.snapTo:"labels"===ce.snapTo?function _getClosestLabel(t){return function(e){return je.utils.snap(fb(t),e)}}(T):"labelsDirectional"===ce.snapTo?function _getLabelAtDirection(r){return function(e,t){return hb(fb(r))(e,t.direction)}}(T):!1!==ce.directional?function(e,t){return hb(ce.snapTo)(e,Ze?0:t.direction)}:je.utils.snap(ce.snapTo),d=ce.duration||{min:.1,max:2},d=Ha(d)?Je(d.min,d.max):Je(d,d),W=je.delayedCall(ce.delay||i/2||.1,function(){if(Math.abs(Se.getVelocity())<10&&!$e&&g!==Ee()){var e=T&&!he?T.totalProgress():Se.progress,t=(e-N)/(st()-Ue)*1e3||0,r=je.utils.clamp(-Se.progress,1-Se.progress,ut(t/2)*t/.185),n=Se.progress+(!1===ce.inertia?0:r),i=Je(0,1,f(n,Se)),o=Ee(),a=Math.round(C+i*z),s=ce.onStart,l=ce.onInterrupt,c=ce.onComplete,u=v.tween;if(o<=M&&C<=o&&a!==o){if(u&&!u._initted&&u.data<=ut(a-o))return;!1===ce.inertia&&(r=i-Se.progress),v(a,{duration:d(ut(.185*Math.max(ut(n-e),ut(i-e))/t/.05||0)),ease:ce.ease||"power3",data:ut(a-o),onInterrupt:function onInterrupt(){return W.restart(!0)&&l&&l(Se)},onComplete:function onComplete(){Se.update(),g=Ee(),G=N=T&&!he?T.totalProgress():Se.progress,p&&p(Se),c&&c(Se)}},o,r*z,a-o-r*z),s&&s(Se,v.tween)}}else Se.isActive&&W.restart(!0)}).pause()),a&&(kt[a]=Se),o=(o=(ne=Se.trigger=H(ne||ie))&&ne._gsap&&ne._gsap.stRevert)&&o(Se),ie=!0===ie?ne:H(ie),Ea(Q)&&(Q={targets:ne,className:Q}),ie&&(!1===oe||oe===mt||(oe=!(!oe&&"flex"===ab(ie.parentNode).display)&&vt),Se.pin=ie,!1!==_.force3D&&je.set(ie,{force3D:!0}),(n=je.core.getCache(ie)).spacer?F=n.pinState:(l&&((l=H(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=Yb(l))),n.spacer=L=l||Ne.createElement("div"),L.classList.add("pin-spacer"),a&&L.classList.add("pin-spacer-"+a),n.pinState=F=Yb(ie)),Se.spacer=L=n.spacer,r=ab(ie),y=r[oe+ge.os2],B=je.getProperty(ie),m=je.quickSetter(ie,ge.a,xt),Vb(ie,L,r),R=Yb(ie)),u){e=Ha(u)?cb(u,St):St,A=rb("scroller-start",a,be,ge,e,0),D=rb("scroller-end",a,be,ge,e,0,A),t=A["offset"+ge.op.d2];var h=H(x(be,"content")||be);P=this.markerStart=rb("start",a,h,ge,e,t,0,fe),O=this.markerEnd=rb("end",a,h,ge,e,t,0,fe),fe&&(Z=je.quickSetter([P,O],ge.a,xt)),me||Ye.length&&!0===x(be,"fixedMarkers")||(function _makePositionable(e){var t=ab(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(ve?We:be),je.set([A,D],{force3D:!0}),w=je.quickSetter(A,ge.a,xt),S=je.quickSetter(D,ge.a,xt))}if(fe){var b=fe.vars.onUpdate,Ce=fe.vars.onUpdateParams;fe.eventCallback("onUpdate",function(){Se.update(0,0,1),b&&b.apply(Ce||[])})}Se.previous=function(){return Tt[Tt.indexOf(Se)-1]},Se.next=function(){return Tt[Tt.indexOf(Se)+1]},Se.revert=function(e){var t=!1!==e||!Se.enabled,r=Ze;t!==Se.isReverted&&(t&&(!Se.scroll.rec&&Ze&&it&&(Se.scroll.rec=Ee()),J=Math.max(Ee(),Se.scroll.rec||0),q=Se.progress,U=T&&T.progress()),P&&[P,O,A,D].forEach(function(e){return e.style.display=t?"none":"block"}),t&&(Ze=1),Se.update(t),Ze=r,ie&&(t?function _swapPinOut(e,t,r){Ct(r);var n=e._gsap;if(n.spacerIsNative)Ct(n.spacerState);else if(e.parentNode===t){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}}(ie,L,F):ue&&Se.isActive||Vb(ie,L,ab(ie),V)),Se.isReverted=t)},Se.refresh=function(e,t){if(!Ze&&Se.enabled||t)if(ie&&e&<)kb(ScrollTrigger,"scrollEnd",Fb);else{!it&&_e&&_e(Se),Ze=1,K&&K.pause(),ae&&T&&T.time(-.01,!0).invalidate(),Se.isReverted||Se.revert();for(var r,n,i,o,a,s,l,c,u,f,d=Te(),p=ke(),g=fe?fe.duration():Ca(be,ge),h=0,b=0,v=_.end,m=_.endTrigger||ne,y=_.start||(0!==_.start&&ne?ie?"0 0":"0 100%":0),x=Se.pinnedContainer=_.pinnedContainer&&H(_.pinnedContainer),w=ne&&Math.max(0,Tt.indexOf(Se))||0,S=w;S--;)(s=Tt[S]).end||s.refresh(0,1)||(Ze=1),!(l=s.pin)||l!==ne&&l!==ie||s.isReverted||((f=f||[]).unshift(s),s.revert()),s!==Tt[S]&&(w--,S--);for(Fa(y)&&(y=y(Se)),C=_b(y,ne,d,ge,Ee(),P,A,Se,p,we,me,g,fe)||(ie?-.001:0),Fa(v)&&(v=v(Se)),Ea(v)&&!v.indexOf("+=")&&(~v.indexOf(" ")?v=(Ea(y)?y.split(" ")[0]:"")+v:(h=qb(v.substr(2),d),v=Ea(y)?y:C+h,m=ne)),M=Math.max(C,_b(v||(m?"100% 0":g),m,d,ge,Ee()+h,O,D,Se,p,we,me,g,fe))||-.001,z=M-C||(C-=.01)&&.001,h=0,S=w;S--;)(l=(s=Tt[S]).pin)&&s.start-s._pinPush<C&&!fe&&0<s.end&&(r=s.end-s.start,l!==ne&&l!==x||Ga(y)||(h+=r*(1-s.progress)),l===ie&&(b+=r));if(C+=h,M+=h,Se._pinPush=b,P&&h&&((r={})[ge.a]="+="+h,x&&(r[ge.p]="-="+Ee()),je.set([P,O],r)),ie)r=ab(ie),o=ge===Xe,i=Ee(),X=parseFloat(B(ge.a))+b,!g&&1<M&&((ve?We:be).style["overflow-"+ge.a]="scroll"),Vb(ie,L,r),R=Yb(ie),n=wt(ie,!0),c=me&&I(be,o?Le:Xe)(),oe&&((V=[oe+ge.os2,z+b+xt]).t=L,(S=oe===vt?eb(ie,ge)+z+b:0)&&V.push(ge.d,S+xt),Ct(V),me&&Ee(J)),me&&((a={top:n.top+(o?i-C:c)+xt,left:n.left+(o?c:i-C)+xt,boxSizing:"border-box",position:"fixed"})[ft]=a.maxWidth=Math.ceil(n.width)+xt,a[dt]=a.maxHeight=Math.ceil(n.height)+xt,a[mt]=a[mt+ht]=a[mt+pt]=a[mt+bt]=a[mt+gt]="0",a[vt]=r[vt],a[vt+ht]=r[vt+ht],a[vt+pt]=r[vt+pt],a[vt+bt]=r[vt+bt],a[vt+gt]=r[vt+gt],Y=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(F,a,ue)),T?(u=T._initted,tt(1),T.render(T.duration(),!0,!0),j=B(ge.a)-X+z+b,z!==j&&Y.splice(Y.length-2,2),T.render(0,!0,!0),u||T.invalidate(),tt(0)):j=z;else if(ne&&Ee()&&!fe)for(n=ne.parentNode;n&&n!==We;)n._pinOffset&&(C-=n._pinOffset,M-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Se.start=C,Se.end=M,k=E=Ee(),fe||(k<J&&Ee(J),Se.scroll.rec=0),Se.revert(!1),W&&Se.isActive&&Ee(C+z*q),Ze=0,T&&he&&(T._initted||U)&&T.progress()!==U&&T.progress(U,!0).render(T.time(),!0,!0),q===Se.progress&&!fe||(T&&!he&&T.totalProgress(q,!0),Se.progress=q,Se.update(0,0,1)),ie&&oe&&(L._pinOffset=Math.round(Se.progress*j)),te&&te(Se)}},Se.getVelocity=function(){return(Ee()-E)/(st()-Ue)*1e3||0},Se.endAnimation=function(){Ka(Se.callbackAnimation),T&&(K?K.progress(1):T.paused()?he||Ka(T,Se.direction<0,1):Ka(T,T.reversed()))},Se.labelToScroll=function(e){return T&&T.labels&&(C||Se.refresh()||C)+T.labels[e]/T.duration()*z||0},Se.getTrailing=function(t){var e=Tt.indexOf(Se),r=0<Se.direction?Tt.slice(0,e).reverse():Tt.slice(e+1);return(Ea(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Se.direction?e.end<=C:e.start>=M})},Se.update=function(e,t,r){if(!fe||r||e){var n,i,o,a,s,l,c,u=Se.scroll(),f=e?0:(u-C)/z,d=f<0?0:1<f?1:f||0,p=Se.progress;if(t&&(E=k,k=fe?Ee():u,ce&&(N=G,G=T&&!he?T.totalProgress():d)),se&&!d&&ie&&!Ze&&!at&<&&C<u+(u-E)/(st()-Ue)*se&&(d=1e-4),d!==p&&Se.enabled){if(a=(s=(n=Se.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Se.direction=p<d?1:-1,Se.progress=d,a&&!Ze&&(i=d&&!p?0:1===d?1:1===p?2:3,he&&(o=!s&&"none"!==xe[i+1]&&xe[i+1]||xe[i],c=T&&("complete"===o||"reset"===o||o in T))),pe&&(s||c)&&(c||re||!T)&&(Fa(pe)?pe(Se):Se.getTrailing(pe).forEach(function(e){return e.endAnimation()})),he||(!K||Ze||at?T&&T.totalProgress(d,!!Ze):((fe||ot&&ot!==Se)&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo("totalProgress",d,T._tTime/T._tDur):(K.vars.totalProgress=d,K.invalidate().restart()))),ie)if(e&&oe&&(L.style[oe+ge.os2]=y),me){if(a){if(l=!e&&p<d&&u<M+1&&u+1>=Ca(be,ge),ue)if(e||!n&&!l)bc(ie,L);else{var g=wt(ie,!0),h=u-C;bc(ie,We,g.top+(ge===Xe?h:0)+xt,g.left+(ge===Xe?0:h)+xt)}Ct(n||l?Y:R),j!==z&&d<1&&n||m(X+(1!==d||l?0:j))}}else m(va(X+j*d));!ce||v.tween||Ze||at||W.restart(!0),Q&&(s||le&&d&&(d<1||!rt))&&qe(Q.targets).forEach(function(e){return e.classList[n||le?"add":"remove"](Q.className)}),!$||he||e||$(Se),a&&!Ze?(he&&(c&&("complete"===o?T.pause().totalProgress(1):"reset"===o?T.restart(!0).pause():"restart"===o?T.restart(!0):T[o]()),$&&$(Se)),!s&&rt||(ee&&s&&La(Se,ee),ye[i]&&La(Se,ye[i]),le&&(1===d?Se.kill(!1,1):ye[i]=0),s||ye[i=1===d?1:3]&&La(Se,ye[i])),de&&!n&&Math.abs(Se.getVelocity())>(Ga(de)?de:2500)&&(Ka(Se.callbackAnimation),K?K.progress(1):Ka(T,!d,1))):he&&$&&!Ze&&$(Se)}if(S){var b=fe?u/fe.duration()*(fe._caScrollDist||0):u;w(b+(A._isFlipped?1:0)),S(b)}Z&&Z(-u/fe.duration()*(fe._caScrollDist||0))}},Se.enable=function(e,t){Se.enabled||(Se.enabled=!0,kb(be,"resize",yb),kb(ve?Ne:be,"scroll",xb),_e&&kb(ScrollTrigger,"refreshInit",_e),!1!==e&&(Se.progress=q=0,k=E=g=Ee()),!1!==t&&Se.refresh())},Se.getTween=function(e){return e&&v?v.tween:K},Se.setPositions=function(e,t){ie&&(X+=e-C,j+=t-e-z),Se.start=C=e,Se.end=M=t,z=t-e,Se.update()},Se.disable=function(e,t){if(Se.enabled&&(!1!==e&&Se.revert(),Se.enabled=Se.isActive=!1,t||K&&K.pause(),J=0,n&&(n.uncache=1),_e&&lb(ScrollTrigger,"refreshInit",_e),W&&(W.pause(),v.tween&&v.tween.kill()&&(v.tween=0)),!ve)){for(var r=Tt.length;r--;)if(Tt[r].scroller===be&&Tt[r]!==Se)return;lb(be,"resize",yb),lb(be,"scroll",xb)}},Se.kill=function(e,t){Se.disable(e,t),K&&!t&&K.kill(),a&&delete kt[a];var r=Tt.indexOf(Se);0<=r&&Tt.splice(r,1),r===Qe&&0<Et&&Qe--,r=0,Tt.forEach(function(e){return e.scroller===Se.scroller&&(r=1)}),r||(Se.scroll.rec=0),T&&(T.scrollTrigger=null,e&&T.render(-1),t||T.kill()),P&&[P,O,A,D].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ie&&(n&&(n.uncache=1),r=0,Tt.forEach(function(e){return e.pin===ie&&r++}),r||(n.spacer=0)),_.onKill&&_.onKill(Se)},Se.enable(!1,!1),o&&o(Se),T&&T.add&&!z?je.delayedCall(.01,function(){return C||M||Se.refresh()})&&(z=.01)&&(C=M=0):Se.refresh()}else this.update=this.refresh=this.kill=ua},ScrollTrigger.register=function register(e){return o||(je=e||xa(),wa()&&window.document&&ScrollTrigger.enable(),o=ct),o},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)_t[t]=e[t];return _t},ScrollTrigger.disable=function disable(t,r){ct=0,Tt.forEach(function(e){return e[r?"kill":"disable"](t)}),lb(Ve,"wheel",xb),lb(Ne,"scroll",xb),clearInterval(l),lb(Ne,"touchcancel",ua),lb(We,"touchstart",ua),jb(lb,Ne,"pointerdown,touchstart,mousedown",sa),jb(lb,Ne,"pointerup,touchend,mouseup",ta),s.kill(),Da(lb);for(var e=0;e<ze.length;e+=3)mb(lb,ze[e],ze[e+1]),mb(lb,ze[e],ze[e+2])},ScrollTrigger.enable=function enable(){if(Ve=window,Ne=document,Ke=Ne.documentElement,We=Ne.body,je&&(qe=je.utils.toArray,Je=je.utils.clamp,tt=je.core.suppressOverwrites||ua,je.core.globals("ScrollTrigger",ScrollTrigger),We)){ct=1,ScrollTrigger.isTouch=Ve.matchMedia&&Ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,a=[Ve,Ne,Ke,We],m=Ve.innerHeight,S=Ve.innerWidth,w.register(je),kb(Ne,"scroll",xb);var e,t,r=We.style,n=r.borderTopStyle;for(r.borderTopStyle="solid",e=wt(We),Xe.m=Math.round(e.top+Xe.sc())||0,Le.m=Math.round(e.left+Le.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),l=setInterval(wb,250),je.delayedCall(.5,function(){return at=0}),kb(Ne,"touchcancel",ua),kb(We,"touchstart",ua),jb(kb,Ne,"pointerdown,touchstart,mousedown",sa),jb(kb,Ne,"pointerup,touchend,mouseup",ta),c=je.utils.checkPrefix("transform"),Q.push(c),o=st(),s=je.delayedCall(.2,q).pause(),g=[Ne,"visibilitychange",function(){var e=Ve.innerWidth,t=Ve.innerHeight;Ne.hidden?(f=e,d=t):f===e&&d===t||yb()},Ne,"DOMContentLoaded",q,Ve,"load",q,Ve,"resize",yb],Da(kb),Tt.forEach(function(e){return e.enable(0,1)}),t=0;t<ze.length;t+=3)mb(lb,ze[t],ze[t+1]),mb(lb,ze[t],ze[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(rt=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(l)||(l=t)&&setInterval(wb,t),"ignoreMobileResize"in e&&(v=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Da(lb)||Da(kb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=H(e),n=ze.indexOf(r),i=ya(r);~n&&ze.splice(n,i?6:2),t&&(i?Ye.unshift(Ve,t,We,t,Ke,t):Ye.unshift(r,t))},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,i,o;for(r in e)n=X.indexOf(r),i=e[r],"all"===(nt=r)?i():(t=Ve.matchMedia(r))&&(t.matches&&(o=i()),~n?(X[n+1]=Ja(X[n+1],i),X[n+2]=Ja(X[n+2],o)):(n=X.length,X.push(r,i,o),t.addListener?t.addListener(Eb):t.addEventListener("change",Eb)),X[n+3]=t.matches),nt=0;return X},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(X.length=0),0<=(e=X.indexOf(e))&&X.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(Ea(e)?H(e):e).getBoundingClientRect(),i=n[r?ft:dt]*t||0;return r?0<n.right-i&&n.left+i<Ve.innerWidth:0<n.bottom-i&&n.top+i<Ve.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){Ea(e)&&(e=H(e));var n=e.getBoundingClientRect(),i=n[r?ft:dt],o=null==t?i/2:t in F?F[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/Ve.innerWidth:(n.top+o)/Ve.innerHeight},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(je)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}re.version="3.10.2",re.saveStyles=function(e){return e?qe(e).forEach(function(e){if(e&&e.style){var t=V.indexOf(e);0<=t&&V.splice(t,5),V.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),je.core.getCache(e),nt)}}):V},re.revert=function(e,t){return N(!e,t)},re.create=function(e,t){return new re(e,t)},re.refresh=function(e){return e?yb():(o||re.register())&&q(!0)},re.update=Z,re.clearScrollMemory=Kb,re.maxScroll=function(e,t){return Ca(e,t?Le:Xe)},re.getScrollFunc=function(e,t){return I(H(e),t?Le:Xe)},re.getById=function(e){return kt[e]},re.getAll=function(){return Tt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},re.isScrolling=function(){return!!lt},re.snapDirectional=hb,re.addEventListener=function(e,t){var r=R[e]||(R[e]=[]);~r.indexOf(t)||r.push(t)},re.removeEventListener=function(e,t){var r=R[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},re.batch=function(e,t){function On(e,t){var r=[],n=[],i=je.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&Fa(t[r])&&"onRefreshInit"!==r?On(0,t[r]):t[r];return Fa(a)&&(a=a(),kb(re,"refresh",function(){return a=t.batchMax()})),qe(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(re.create(t))}),n};function ec(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function fc(e){!0===e?(We.style.removeProperty("touch-action"),Ke.style.removeProperty("touch-action")):We.style.touchAction=Ke.style.touchAction=e?"pan-"+e:"none"}function gc(e){function po(){return d=st()}function qo(){return n=!1}function to(){r=Ca(Ke,Xe),m=Je(0,r),f&&(v=Je(0,Ca(Ke,Le))),o=W}function Bo(){to(),s.isActive()&&s.vars.scrollY>r&&s.resetTo("scrollY",Ca(Ke,Xe))}Ha(e)||(e={}),e.preventDefault=e.isNormalizer=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,o,s,a,l,c,u,f=e.normalizeScrollX,i=e.momentum,d=0,p=I(Ke,Xe),g=I(Ke,Le),h=1,b=Fa(i)?function(){return i(t)}:function(){return i||2.8},v=ua,m=ua,y=re.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent);return e.ignoreCheck=function(e){return y&&"touchmove"===e.type&&function ignoreDrag(){if(n)return requestAnimationFrame(qo),!0;n=!0}()||1<h||t.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){var e=h;h=Ve.visualViewport&&Ve.visualViewport.scale||1,s.pause(),e!==h&&fc(1<h||!f&&"x"),n=!1,a=g(),l=p(),to(),o=W},e.onRelease=e.onGestureStart=function(e,t){var r=e.event,n=r.changedTouches?r.changedTouches[0]:r;if(!t||Math.abs(e.x-e.startX)<=3&&Math.abs(e.y-e.startY)<=3)je.delayedCall(.05,function(){if(300<st()-d&&!r.defaultPrevented)if(r.target.click)r.target.click();else if(c.createEvent){var e=c.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Ve,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(e)}}),u.restart(!0);else{var i,o,a=b();f&&(o=(i=g())+.05*a*-e.velocityX/.227/h,a*=ec(g,i,o,Ca(Ke,Le)),s.vars.scrollX=v(o)),o=(i=p())+.05*a*-e.velocityY/.227/h,a*=ec(p,i,o,Ca(Ke,Xe)),s.vars.scrollY=m(o),s.invalidate().duration(a).play(.01)}},e.onWheel=function(){return s._ts&&s.pause()},e.onChange=function(e,t,r,n,i){W!==o&&to(),t&&f&&g(v(n[2]===t?a+(e.startX-e.x)/h:g()+t-n[1])),r&&p(m(i[2]===r?l+(e.startY-e.y)/h:p()+r-i[1])),Z()},e.onEnable=function(e){fc(!f&&"x"),kb(Ve,"resize",Bo),e.target.addEventListener("click",po,{capture:!0})},e.onDisable=function(e){fc(!0),lb(Ve,"resize",Bo),lb(e.target,"click",po)},t=new w(e),c=t.target.ownerDocument||Ne,u=t._dc,s=je.to(t,{ease:"power4",paused:!0,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:u.vars.onComplete}),t}re.sort=function(e){return Tt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},re.observe=function(e){return new w(e)},re.normalizeScroll=function(e){if(void 0===e)return b;if(!0===e&&b)return b.enable();var t=e instanceof w;return b&&(!1===e||t&&e!==b)&&b.kill(),e&&!t&&(e=gc(e)),b=e&&e.enable()},re.core={_getVelocityProp:J,_scrollers:ze,_proxies:Ye,bridge:{ss:function ss(){lt||j("scrollStart"),lt=st()},ref:function ref(){return Ze}}},xa()&&je.registerPlugin(re),e.ScrollTrigger=re,e.default=re;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -92,3 +92,3 @@ (function (global, factory) { | ||
/*! | ||
* TextPlugin 3.10.1 | ||
* TextPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -109,3 +109,3 @@ * | ||
var TextPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "text", | ||
@@ -112,0 +112,0 @@ init: function init(target, value, tween) { |
/*! | ||
* TextPlugin 3.10.1 | ||
* TextPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(^\s+|\s+$)/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function splitInnerHTML(D,u,F,C){for(var E,e=D.firstChild,t=[];e;)3===e.nodeType?(E=(e.nodeValue+"").replace(/^\n+/g,""),C||(E=E.replace(/\s+/g," ")),t.push.apply(t,emojiSafeSplit(E,u,F,C))):"br"===(e.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(e.outerHTML),e=e.nextSibling;for(E=t.length;E--;)"&"===t[E]&&t.splice(E,1,"&");return t}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.replace(i,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var E,e,t=[],n=D.length,B=0;B<n;B++)(55296<=(e=D.charAt(B)).charCodeAt(0)&&e.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(E=((D.substr(B,12).split(A)||[])[1]||"").length||2,e=D.substr(B,E),B+=E-(t.emoji=1)),t.push(">"===e?">":"<"===e?"<":!C||" "!==e||" "!==D.charAt(B-1)&&" "!==D.charAt(B+1)?e:" ");return t}var u,g,F={version:"3.10.1",name:"text",init:function init(D,u,F){"object"!=typeof u&&(u={value:u});var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this,l=u.newClass,o=u.oldClass,a=u.preserveSpaces,p=u.rtl,f=s.delimiter=u.delimiter||"",d=s.fillChar=u.fillChar||(u.padSpace?" ":"");if(s.svg=D.getBBox&&("TEXT"===r||"TSPAN"===r),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"value"in u){for(e=splitInnerHTML(D,f,!1,a),(g=g||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(g,f),s.from=F._from,!s.from&&!p||p&&s.from||(r=e,e=E,E=r),s.hasClass=!(!l&&!o),s.newClass=p?o:l,s.oldClass=p?l:o,C=(r=e.length-E.length)<0?e:E,r<0&&(r=-r);-1<--r;)C.push(d);if("diff"===u.type){for(n=[],B=[],i="",r=t=0;r<E.length;r++)(A=E[r])===e[r]?i+=A:(n[t]=i+A,B[t++]=i+e[r],i="");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),s.rtl=p,s.original=e,s.text=E,s._props.push("text")}else s.text=s.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,A=u.target,r=u.fillChar,s=u.original,l=u.rtl,o=e.length,a=(l?1-D:D)*o+.5|0;E=t&&D?(C=B&&a!==o,((F=n&&a)?"<span class='"+n+"'>":"")+e.slice(0,a).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(a).join(i)+(C?"</span>":"")):e.slice(0,a).join(i)+i+s.slice(a).join(i),u.svg?A.textContent=E:A.innerHTML=" "===r&&~E.indexOf(" ")?E.split(" ").join(" "):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(^\s+|\s+$)/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function splitInnerHTML(D,u,F,C){for(var E,e=D.firstChild,t=[];e;)3===e.nodeType?(E=(e.nodeValue+"").replace(/^\n+/g,""),C||(E=E.replace(/\s+/g," ")),t.push.apply(t,emojiSafeSplit(E,u,F,C))):"br"===(e.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(e.outerHTML),e=e.nextSibling;for(E=t.length;E--;)"&"===t[E]&&t.splice(E,1,"&");return t}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.replace(i,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var E,e,t=[],n=D.length,B=0;B<n;B++)(55296<=(e=D.charAt(B)).charCodeAt(0)&&e.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(E=((D.substr(B,12).split(A)||[])[1]||"").length||2,e=D.substr(B,E),B+=E-(t.emoji=1)),t.push(">"===e?">":"<"===e?"<":!C||" "!==e||" "!==D.charAt(B-1)&&" "!==D.charAt(B+1)?e:" ");return t}var u,g,F={version:"3.10.2",name:"text",init:function init(D,u,F){"object"!=typeof u&&(u={value:u});var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this,l=u.newClass,o=u.oldClass,a=u.preserveSpaces,p=u.rtl,f=s.delimiter=u.delimiter||"",d=s.fillChar=u.fillChar||(u.padSpace?" ":"");if(s.svg=D.getBBox&&("TEXT"===r||"TSPAN"===r),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"value"in u){for(e=splitInnerHTML(D,f,!1,a),(g=g||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(g,f),s.from=F._from,!s.from&&!p||p&&s.from||(r=e,e=E,E=r),s.hasClass=!(!l&&!o),s.newClass=p?o:l,s.oldClass=p?l:o,C=(r=e.length-E.length)<0?e:E,r<0&&(r=-r);-1<--r;)C.push(d);if("diff"===u.type){for(n=[],B=[],i="",r=t=0;r<E.length;r++)(A=E[r])===e[r]?i+=A:(n[t]=i+A,B[t++]=i+e[r],i="");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),s.rtl=p,s.original=e,s.text=E,s._props.push("text")}else s.text=s.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,A=u.target,r=u.fillChar,s=u.original,l=u.rtl,o=e.length,a=(l?1-D:D)*o+.5|0;E=t&&D?(C=B&&a!==o,((F=n&&a)?"<span class='"+n+"'>":"")+e.slice(0,a).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(a).join(i)+(C?"</span>":"")):e.slice(0,a).join(i)+i+s.slice(a).join(i),u.svg?A.textContent=E:A.innerHTML=" "===r&&~E.indexOf(" ")?E.split(" ").join(" "):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); | ||
/*! | ||
* EaselPlugin 3.10.1 | ||
* EaselPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -273,3 +273,3 @@ * | ||
export var EaselPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "easel", | ||
@@ -276,0 +276,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* EasePack 3.10.1 | ||
* EasePack 3.10.2 | ||
* https://greensock.com | ||
@@ -208,3 +208,3 @@ * | ||
EasePack[p].register = _initCore; | ||
EasePack[p].version = "3.10.1"; | ||
EasePack[p].version = "3.10.2"; | ||
} | ||
@@ -211,0 +211,0 @@ |
/*! | ||
* Flip 3.10.1 | ||
* Flip 3.10.2 | ||
* https://greensock.com | ||
@@ -1484,3 +1484,3 @@ * | ||
}(); | ||
Flip.version = "3.10.1"; // function whenImagesLoad(el, func) { | ||
Flip.version = "3.10.2"; // function whenImagesLoad(el, func) { | ||
// let pending = [], | ||
@@ -1487,0 +1487,0 @@ // onLoad = e => { |
/*! | ||
* MotionPathPlugin 3.10.1 | ||
* MotionPathPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -217,3 +217,3 @@ * | ||
export var MotionPathPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "motionPath", | ||
@@ -220,0 +220,0 @@ register: function register(core, Plugin, propTween) { |
@@ -6,3 +6,3 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } | ||
/*! | ||
* Observer 3.10.1 | ||
* Observer 3.10.2 | ||
* https://greensock.com | ||
@@ -190,3 +190,3 @@ * | ||
if (gsap && !_coreInitted && typeof document !== "undefined") { | ||
if (gsap && !_coreInitted && typeof document !== "undefined" && document.body) { | ||
_win = window; | ||
@@ -580,3 +580,3 @@ _doc = document; | ||
}(); | ||
Observer.version = "3.10.1"; | ||
Observer.version = "3.10.2"; | ||
@@ -583,0 +583,0 @@ Observer.create = function (vars) { |
{ | ||
"name": "gsap", | ||
"version": "3.10.1", | ||
"version": "3.10.2", | ||
"description": "GSAP is a robust JavaScript toolset that turns developers into animation superheroes. Build high-performance animations that work in **every** major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! The ScrollTrigger plugin lets you create jaw-dropping scroll-based animations with minimal code. No other library delivers such advanced sequencing, reliability, and tight control while solving real-world problems on millions of sites. GSAP works around countless browser inconsistencies; your animations **just work**. At its core, GSAP is a high-speed property manipulator, updating values over time with extreme accuracy. It's up to 20x faster than jQuery! See https://greensock.com/why-gsap/ for what makes GSAP so special.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://greensock.com", |
/*! | ||
* PixiPlugin 3.10.1 | ||
* PixiPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -371,3 +371,3 @@ * | ||
export var PixiPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "pixi", | ||
@@ -374,0 +374,0 @@ register: function register(core, Plugin, propTween) { |
@@ -21,3 +21,3 @@ # GSAP (GreenSock Animation Platform) | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.1/gsap.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.10.2/gsap.min.js"></script> | ||
``` | ||
@@ -24,0 +24,0 @@ Click the green "Get GSAP Now" button at <a href="https://greensock.com/?download=GSAP-JS">greensock.com</a> for more options and installation instructions, including CDN URLs for various plugins. |
/*! | ||
* ScrollToPlugin 3.10.1 | ||
* ScrollToPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -128,3 +128,3 @@ * | ||
export var ScrollToPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "scrollTo", | ||
@@ -131,0 +131,0 @@ rawVars: 1, |
/*! | ||
* CSSPlugin 3.10.1 | ||
* CSSPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* CSSRulePlugin 3.10.1 | ||
* CSSRulePlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -40,3 +40,3 @@ * | ||
export const CSSRulePlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "cssRule", | ||
@@ -43,0 +43,0 @@ init(target, value, tween, index, targets) { |
/*! | ||
* CustomEase 3.10.1 | ||
* CustomEase 3.10.2 | ||
* https://greensock.com | ||
@@ -273,4 +273,4 @@ * | ||
CustomEase.version = "3.10.1"; | ||
CustomEase.version = "3.10.2"; | ||
export { CustomEase as default }; |
/*! | ||
* EaselPlugin 3.10.1 | ||
* EaselPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -218,3 +218,3 @@ * | ||
export const EaselPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "easel", | ||
@@ -221,0 +221,0 @@ init(target, value, tween, index, targets) { |
/*! | ||
* EasePack 3.10.1 | ||
* EasePack 3.10.2 | ||
* https://greensock.com | ||
@@ -158,3 +158,3 @@ * | ||
EasePack[p].register = _initCore; | ||
EasePack[p].version = "3.10.1"; | ||
EasePack[p].version = "3.10.2"; | ||
} | ||
@@ -161,0 +161,0 @@ |
/*! | ||
* Flip 3.10.1 | ||
* Flip 3.10.2 | ||
* https://greensock.com | ||
@@ -1007,3 +1007,3 @@ * | ||
Flip.version = "3.10.1"; | ||
Flip.version = "3.10.2"; | ||
@@ -1010,0 +1010,0 @@ // function whenImagesLoad(el, func) { |
/*! | ||
* MotionPathPlugin 3.10.1 | ||
* MotionPathPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -157,3 +157,3 @@ * | ||
export const MotionPathPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "motionPath", | ||
@@ -160,0 +160,0 @@ register(core, Plugin, propTween) { |
/*! | ||
* Observer 3.10.1 | ||
* Observer 3.10.2 | ||
* https://greensock.com | ||
@@ -103,3 +103,3 @@ * | ||
gsap = core || _getGSAP(); | ||
if (gsap && !_coreInitted && typeof(document) !== "undefined") { | ||
if (gsap && !_coreInitted && typeof(document) !== "undefined" && document.body) { | ||
_win = window; | ||
@@ -359,3 +359,3 @@ _doc = document; | ||
Observer.version = "3.10.1"; | ||
Observer.version = "3.10.2"; | ||
Observer.create = vars => new Observer(vars); | ||
@@ -362,0 +362,0 @@ Observer.register = _initCore; |
/*! | ||
* PixiPlugin 3.10.1 | ||
* PixiPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -262,3 +262,3 @@ * | ||
export const PixiPlugin = { | ||
version:"3.10.1", | ||
version:"3.10.2", | ||
name:"pixi", | ||
@@ -265,0 +265,0 @@ register(core, Plugin, propTween) { |
/*! | ||
* ScrollToPlugin 3.10.1 | ||
* ScrollToPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -79,3 +79,3 @@ * | ||
export const ScrollToPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "scrollTo", | ||
@@ -82,0 +82,0 @@ rawVars: 1, |
/*! | ||
* TextPlugin 3.10.1 | ||
* TextPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -19,3 +19,3 @@ * | ||
export const TextPlugin = { | ||
version:"3.10.1", | ||
version:"3.10.2", | ||
name:"text", | ||
@@ -22,0 +22,0 @@ init(target, value, tween) { |
/*! | ||
* matrix 3.10.1 | ||
* matrix 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* paths 3.10.1 | ||
* paths 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* strings: 3.10.1 | ||
* strings: 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* TextPlugin 3.10.1 | ||
* TextPlugin 3.10.2 | ||
* https://greensock.com | ||
@@ -21,3 +21,3 @@ * | ||
export var TextPlugin = { | ||
version: "3.10.1", | ||
version: "3.10.2", | ||
name: "text", | ||
@@ -24,0 +24,0 @@ init: function init(target, value, tween) { |
@@ -93,3 +93,3 @@ declare class ScrollSmoother { | ||
*/ | ||
effects(targets: gsap.DOMTarget, vars: ScrollSmoother.EffectsVars | null): ScrollTrigger[]; | ||
effects(targets: gsap.DOMTarget, vars?: ScrollSmoother.EffectsVars | null): ScrollTrigger[]; | ||
@@ -96,0 +96,0 @@ /** |
/*! | ||
* matrix 3.10.1 | ||
* matrix 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* paths 3.10.1 | ||
* paths 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* strings: 3.10.1 | ||
* strings: 3.10.2 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3197622