UNPKG

draw-lottery

Version:

一个老虎机抽奖,可以XY切换的插件,可以循环多个使用

10 lines 70.9 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("draw",[],e):"object"==typeof exports?exports.draw=e():t.draw=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,r){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};e.a={name:"draw-lottery",props:{multiDrawData:{type:Array,default:function(){return[1]}},animationTime:{type:Number,default:10},winPrizeIndex:{type:String,default:"-2200"},winIndex:{type:Number,default:0},drawXY:{type:Boolean,default:!0},resData:{type:Object,default:function(){return{WH:{width:"110",height:"110"},IdBox:[""],classBox:["",""],classImg:[""]}}},TweenMaxInit:{type:Object,default:function(){return{repeatDelay:1,repeat:0,yoyo:!1,ease:"Expo.easeOut",delay:0}}},getStart:{type:Function,default:function(){return function(){console.log("动画开始")}}},getUpdate:{type:Function,default:function(){return function(){console.log("进行中")}}},getComplete:{type:Function,default:function(){return function(){console.log("已结束")}}},getRepeat:{type:Function,default:function(){return function(){console.log("......")}}}},data:function(){return{play:null}},computed:{drawSuccess:function(){var t=0;return t=this.drawXY?-1*this.winPrizeIndex/this.resData.WH.height:-1*this.winPrizeIndex/this.resData.WH.width,Number(t.toFixed(0))},drawDataArr:function(){for(var t=JSON.parse(JSON.stringify(this.drawData)),e=[],r=0;r<100;r++)e.push(t[Math.floor(Math.random()*t.length)]);return e.splice(this.drawSuccess+this.winIndex-1,0,this.drawDataSuccess),e},multiDataArr:function(){for(var t=JSON.parse(JSON.stringify(this.multiDrawData)),e=0;e<t.length;e++){for(var r=0;r<100;r++)t[e].drawData.push(t[e].drawData[Math.floor(Math.random()*t.length)]);t[e].drawData.splice(this.drawSuccess+this.winIndex-1,0,t[e].drawDataSuccess)}return console.log(t),t}},methods:{playStart:function(){this.play=this.$TweenMax.to(this.$refs.box,this.animationTime,n({y:this.drawXY?this.winPrizeIndex:"",x:this.drawXY?"":this.winPrizeIndex,repeatDelay:1,yoyo:!1,repeat:0,ease:"Expo.easeOut",delay:0,onUpdate:this.getUpdate,onUpdateParams:[this.$refs.box,"param2 value"],onStart:this.getStart,onStartParams:["{self}","param2"],onStartScope:Object,onComplete:this.getComplete,onCompleteParams:["{self}","param2"],onRepeat:this.getRepeat},this.TweenMaxInit))},playClick:function(){this.playStart()},playClickStop:function(){try{this.play.restart(!0),this.play.pause()}catch(t){return alert("请先开始动画"),"请先开始动画"}}}}},function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.d(e,"a",function(){return Be}),r.d(e,"b",function(){return lr}),r.d(e,"x",function(){return mr}),r.d(e,"w",function(){return qt}),r.d(e,"i",function(){return nt}),r.d(e,"n",function(){return z}),r.d(e,"o",function(){return E}),r.d(e,"k",function(){return T}),r.d(e,"l",function(){return C}),r.d(e,"r",function(){return sr}),r.d(e,"q",function(){return I}),r.d(e,"g",function(){return it}),r.d(e,"u",function(){return fr}),r.d(e,"e",function(){return we}),r.d(e,"s",function(){return ue}),r.d(e,"c",function(){return Ve}),r.d(e,"p",function(){return J}),r.d(e,"v",function(){return Te}),r.d(e,"f",function(){return d}),r.d(e,"t",function(){return st}),r.d(e,"m",function(){return X}),r.d(e,"j",function(){return rr}),r.d(e,"h",function(){return rt}),r.d(e,"d",function(){return be});/*! * GSAP 3.7.1 * https://greensock.com * * @license Copyright 2008-2021, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ var s,a,o,u,h,f,l,c,p,d={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_={duration:.5,overwrite:!1,delay:0},m=1e-8,g=2*Math.PI,v=g/4,y=0,b=Math.sqrt,x=Math.cos,w=Math.sin,T=function(t){return"string"==typeof t},O=function(t){return"function"==typeof t},M=function(t){return"number"==typeof t},C=function(t){return void 0===t},D=function(t){return"object"==typeof t},k=function(t){return!1!==t},S=function(){return"undefined"!=typeof window},A=function(t){return O(t)||T(t)},P="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},j=Array.isArray,R=/(?:-?\.?\d|\.)+/gi,z=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,E=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,F=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,I=/[+-]=-?[.\d]+/,B=/[^,'"\[\]\s]+/gi,N=/[\d.+\-=]+(?:e[-+]\d*)*/i,U={},L={},Y=function(t){return(L=pt(t,U))&&mr},X=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},q=function(t,e){return!e&&console.warn(t)},V=function(t,e){return t&&(U[t]=e)&&L&&(L[t]=e)||U},W=function(){return 0},$={},G=[],H={},J={},Q={},Z=30,K=[],tt="",et=function(t){var e,r,n=t[0];if(D(n)||O(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=K.length;r--&&!K[r].targetTest(n););e=K[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Be(t[r],e)))||t.splice(r,1);return t},rt=function(t){return t._gsap||et(Ht(t))[0]._gsap},nt=function(t,e,r){return(r=t[e])&&O(r)?t[e]():C(r)&&t.getAttribute&&t.getAttribute(e)||r},it=function(t,e){return(t=t.split(",")).forEach(e)||t},st=function(t){return Math.round(1e5*t)/1e5||0},at=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},ot=function(){var t,e,r=G.length,n=G.slice(0);for(H={},G.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},ut=function(t,e,r,n){G.length&&ot(),t.render(e,r,n),G.length&&ot()},ht=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(B).length<2?e:T(t)?t.trim():t},ft=function(t){return t},lt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},ct=function(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])},pt=function(t,e){for(var r in e)t[r]=e[r];return t},dt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=D(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},_t=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},mt=function(t){var e=t.parent||a,r=t.keyframes?ct:lt;if(k(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t},gt=function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0},vt=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,a=t[n];if(i)for(s=e[i];a&&a[i]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},yt=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},bt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},xt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},wt=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Tt=function t(e){return!e||e._ts&&t(e.parent)},Ot=function(t){return t._repeat?Mt(t._tTime,t=t.duration()+t._rDelay)*t:0},Mt=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},Ct=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Dt=function(t){return t._end=st(t._start+(t._tDur/Math.abs(t._ts||t._rts||m)||0))},kt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=st(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Dt(t),r._dirty||xt(r,t)),t},St=function(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=Ct(t.rawTime(),e),(!e._dur||Xt(0,e.totalDuration(),r)-e._tTime>m)&&e.render(r,!0)),xt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-m}},At=function(t,e,r,n){return e.parent&&bt(e),e._start=st((M(r)?r:r||t!==a?Ut(t,r,e):t._time)+e._delay),e._end=st(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),vt(t,e,"_first","_last",t._sort?"_start":0),zt(e)||(t._recent=e),n||St(t,e),t},Pt=function(t,e){return(U.ScrollTrigger||X("scrollTrigger",e))&&U.ScrollTrigger.create(e,t)},jt=function(t,e,r,n){return We(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&l!==Te.frame?(G.push(t),t._lazy=[e,n],1):void 0:1},Rt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},zt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Et=function(t,e,r,n){var i,s,a,o=t.ratio,u=e<0||!e&&(!t._start&&Rt(t)&&(t._initted||!zt(t))||(t._ts<0||t._dp._ts<0)&&!zt(t))?0:1,h=t._rDelay,f=0;if(h&&t._repeat&&(f=Xt(0,t._tDur,e),s=Mt(f,h),a=Mt(t._tTime,h),t._yoyo&&1&s&&(u=1-u),s!==a&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||n||t._zTime===m||!e&&t._zTime){if(!t._initted&&jt(t,e,n,r))return;for(a=t._zTime,t._zTime=e||(r?m:0),r||(r=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=f,i=t._pt;i;)i.r(u,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&ce(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&ce(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&bt(t,1),r||(ce(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Ft=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if(!n._dur&&"isPause"===n.data&&n._start<e)return n;n=n._prev}},It=function(t,e,r,n){var i=t._repeat,s=st(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:st(s*(i+1)+t._rDelay*i):s,a&&!n?kt(t,t._tTime=t._tDur*a):t.parent&&Dt(t),r||xt(t.parent,t),t},Bt=function(t){return t instanceof Ue?xt(t):It(t,t._dur)},Nt={_start:0,endTime:W,totalDuration:W},Ut=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||Nt,h=e.duration()>=1e8?u.endTime(!1):e._dur;return T(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?u:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*(j(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:h+s)):null==r?h:+r},Lt=function(t,e,r){var n,i,s=M(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(n=o,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=k(i.vars.inherit)&&i.parent;o.immediateRender=k(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Qe(e[0],o,e[a+1])},Yt=function(t,e){return t||0===t?e(t):e},Xt=function(t,e,r){return r<t?t:r>e?e:r},qt=function(t){if("string"!=typeof t)return"";var e=N.exec(t);return e?t.substr(e.index+e[0].length):""},Vt=function(t,e,r){return Yt(r,function(r){return Xt(t,e,r)})},Wt=[].slice,$t=function(t,e){return t&&D(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&D(t[0]))&&!t.nodeType&&t!==o},Gt=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return T(t)&&!e||$t(t,1)?(n=r).push.apply(n,Ht(t)):r.push(t)})||r},Ht=function(t,e,r){return!T(t)||r||!u&&Oe()?j(t)?Gt(t,r):$t(t)?Wt.call(t,0):t?[t]:[]:Wt.call((e||h).querySelectorAll(t),0)},Jt=function(t){return t=Ht(t)[0]||q("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Ht(e,r.querySelectorAll?r:r===t?q("Invalid scope")||h.createElement("div"):t)}},Qt=function(t){return t.sort(function(){return.5-Math.random()})},Zt=function(t){if(O(t))return t;var e=D(t)?t:{each:t},r=Re(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,u=e.axis,h=n,f=n;return T(n)?h=f={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(h=n[0],f=n[1]),function(t,a,l){var c,p,d,_,m,g,v,y,x,w=(l||e).length,T=s[w];if(!T){if(!(x="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(v=-1e8;v<(v=l[x++].getBoundingClientRect().left)&&x<w;);x--}for(T=s[w]=[],c=o?Math.min(x,w)*h-.5:n%x,p=o?w*f/x-.5:n/x|0,v=0,y=1e8,g=0;g<w;g++)d=g%x-c,_=p-(g/x|0),T[g]=m=u?Math.abs("y"===u?_:d):b(d*d+_*_),m>v&&(v=m),m<y&&(y=m);"random"===n&&Qt(T),T.max=v-y,T.min=y,T.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(x>w?w-1:u?"y"===u?w/x:x:Math.max(x,w/x))||0)*("edges"===n?-1:1),T.b=w<0?i-w:i,T.u=qt(e.amount||e.each)||0,r=r&&w<0?Pe(r):r}return w=(T[t]-T.min)/T.max||0,st(T.b+(r?r(w):w)*T.v)+T.u}},Kt=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(r){var n=Math.round(parseFloat(r)/t)*t*e;return(n-n%1)/e+(M(r)?0:qt(r))}},te=function(t,e){var r,n,i=j(t);return!i&&D(t)&&(r=i=t.radius||1e8,t.values?(t=Ht(t.values),(n=!M(t[0]))&&(r*=r)):t=Kt(t.increment)),Yt(e,i?O(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),u=1e8,h=0,f=t.length;f--;)n?(i=t[f].x-a,s=t[f].y-o,i=i*i+s*s):i=Math.abs(t[f]-a),i<u&&(u=i,h=f);return h=!r||u<=r?t[h]:e,n||h===e||M(e)?h:h+qt(e)}:Kt(t))},ee=function(t,e,r,n){return Yt(j(t)?!e:!0===r?!!(r=0):!n,function(){return j(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n})},re=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},ne=function(t,e){return function(r){return t(parseFloat(r))+(e||qt(r))}},ie=function(t,e,r){return he(t,e,0,1,r)},se=function(t,e,r){return Yt(r,function(r){return t[~~e(r)]})},ae=function t(e,r,n){var i=r-e;return j(e)?se(e,t(0,e.length),r):Yt(n,function(t){return(i+(t-e)%i)%i+e})},oe=function t(e,r,n){var i=r-e,s=2*i;return j(e)?se(e,t(0,e.length-1),r):Yt(n,function(t){return t=(s+(t-e)%s)%s||0,e+(t>i?s-t:t)})},ue=function(t){for(var e,r,n,i,s=0,a="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?B:R),a+=t.substr(s,e-s)+ee(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},he=function(t,e,r,n,i){var s=e-t,a=n-r;return Yt(i,function(e){return r+((e-t)/s*a||0)})},fe=function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,h,f,l=T(e),c={};if(!0===n&&(i=1)&&(n=null),l)e={p:e},r={p:r};else if(j(e)&&!j(r)){for(u=[],h=e.length,f=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(f,~~t);return u[e](t-e)},n=r}else i||(e=pt(j(e)?[]:{},e));if(!u){for(a in r)Xe.call(c,e,a,"get",r[a]);s=function(t){return ar(t,c)||(l?e.p:e)}}}return Yt(n,s)},le=function(t,e,r){var n,i,s,a=t.labels,o=1e8;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},ce=function(t,e,r){var n,i,s=t.vars,a=s[e];if(a)return n=s[e+"Params"],i=s.callbackScope||t,r&&G.length&&ot(),n?a.apply(i,n):a.call(i)},pe=function(t){return bt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&ce(t,"onInterrupt"),t},de=function(t){t=!t.name&&t.default||t;var e=t.name,r=O(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:W,render:ar,add:Xe,kill:ur,modifier:or,rawVars:0},s={targetTest:0,get:0,getSetter:rr,aliases:{},register:0};if(Oe(),t!==n){if(J[e])return;lt(n,lt(_t(t,i),s)),pt(n.prototype,pt(i,_t(t,s))),J[n.prop=e]=n,t.targetTest&&(K.push(n),$[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}V(e,n),t.register&&t.register(mr,n,lr)},_e={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},me=function(t,e,r){return t=t<0?t+1:t>1?t-1:t,255*(6*t<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)+.5|0},ge=function(t,e,r){var n,i,s,a,o,u,h,f,l,c,p=t?M(t)?[t>>16,t>>8&255,255&t]:0:_e.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),_e[t])p=_e[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return p=parseInt(t.substr(1,6),16),[p>>16,p>>8&255,255&p,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),p=[t>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(p=c=t.match(R),e){if(~t.indexOf("="))return p=t.match(z),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,u=+p[2]/100,i=u<=.5?u*(o+1):u+o-u*o,n=2*u-i,p.length>3&&(p[3]*=1),p[0]=me(a+1/3,n,i),p[1]=me(a,n,i),p[2]=me(a-1/3,n,i);else p=t.match(R)||_e.transparent;p=p.map(Number)}return e&&!c&&(n=p[0]/255,i=p[1]/255,s=p[2]/255,h=Math.max(n,i,s),f=Math.min(n,i,s),u=(h+f)/2,h===f?a=o=0:(l=h-f,o=u>.5?l/(2-h-f):l/(h+f),a=h===n?(i-s)/l+(i<s?6:0):h===i?(s-n)/l+2:(n-i)/l+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p},ve=function(t){var e=[],r=[],n=-1;return t.split(be).forEach(function(t){var i=t.match(E)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},ye=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(be),h=e?"hsla(":"rgba(",f=0;if(!u)return t;if(u=u.map(function(t){return(t=ge(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=ve(t),n=r.c,n.join(o)!==s.c.join(o)))for(i=t.replace(be,"1").split(E),a=i.length-1;f<a;f++)o+=i[f]+(~n.indexOf(f)?u.shift()||h+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(i=t.split(be),a=i.length-1;f<a;f++)o+=i[f]+u[f];return o+i[a]},be=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in _e)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),xe=/hsl[a]?\(/,we=function(t){var e,r=t.join(" ");if(be.lastIndex=0,be.test(r))return e=xe.test(r),t[1]=ye(t[1],e),t[0]=ye(t[0],e,ve(t[1])),!0},Te=function(){var t,e,r,n,i,s,a=Date.now,l=500,c=33,d=a(),_=d,g=1e3/240,v=g,y=[],b=function r(o){var u,h,f,p,m=a()-_,b=!0===o;if(m>l&&(d+=m-c),_+=m,f=_-d,u=f-v,(u>0||b)&&(p=++n.frame,i=f-1e3*n.time,n.time=f/=1e3,v+=u+(u>=g?4:g-u),h=1),b||(t=e(r)),h)for(s=0;s<y.length;s++)y[s](f,i,p,o)};return n={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){f&&(!u&&S()&&(o=u=window,h=o.document||{},U.gsap=mr,(o.gsapVersions||(o.gsapVersions=[])).push(mr.version),Y(L||o.GreenSockGlobals||!o.gsap&&o||{}),r=o.requestAnimationFrame),t&&n.sleep(),e=r||function(t){return setTimeout(t,v-1e3*n.time+1|0)},p=1,b(2))},sleep:function(){(r?o.cancelAnimationFrame:clearTimeout)(t),p=0,e=W},lagSmoothing:function(t,e){l=t||1/m,c=Math.min(e,l,0)},fps:function(t){g=1e3/(t||240),v=1e3*n.time+g},add:function(t){y.indexOf(t)<0&&y.push(t),Oe()},remove:function(t){var e;~(e=y.indexOf(t))&&y.splice(e,1)&&s>=e&&s--},_listeners:y}}(),Oe=function(){return!p&&Te.wake()},Me={},Ce=/^[\d.\-M][\d.\-,\s]/,De=/["']/g,ke=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(De,"").trim():+n,a=r.substr(e+1).trim();return i},Se=function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),n=t.indexOf("(",e);return t.substring(e,~n&&n<r?t.indexOf(")",r+1):r)},Ae=function(t){var e=(t+"").split("("),r=Me[e[0]];return r&&e.length>1&&r.config?r.config.apply(null,~t.indexOf("{")?[ke(e[1])]:Se(t).split(",").map(ht)):Me._CE&&Ce.test(t)?Me._CE("",t):r},Pe=function(t){return function(e){return 1-t(1-e)}},je=function t(e,r){for(var n,i=e._first;i;)i instanceof Ue?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Re=function(t,e){return t?(O(t)?t:Me[t]||Ae(t))||e:e},ze=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return it(t,function(t){Me[t]=U[t]=s,Me[i=t.toLowerCase()]=r;for(var e in s)Me[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Me[t+"."+e]=s[e]}),s},Ee=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Fe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/g*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*w((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ee(o);return s=g/s,u.config=function(r,n){return t(e,r,n)},u},Ie=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Ee(n);return i.config=function(r){return t(e,r)},i};it("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;ze(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Me.Linear.easeNone=Me.none=Me.Linear.easeIn,ze("Elastic",Fe("in"),Fe("out"),Fe()),function(t,e){var r=1/e,n=function(n){return n<r?t*n*n:n<.7272727272727273?t*Math.pow(n-1.5/e,2)+.75:n<.9090909090909092?t*(n-=2.25/e)*n+.9375:t*Math.pow(n-2.625/e,2)+.984375};ze("Bounce",function(t){return 1-n(1-t)},n)}(7.5625,2.75),ze("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),ze("Circ",function(t){return-(b(1-t*t)-1)}),ze("Sine",function(t){return 1===t?1:1-x(t*v)}),ze("Back",Ie("in"),Ie("out"),Ie()),Me.SteppedEase=Me.steps=U.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0,s=1-m;return function(t){return((n*Xt(0,s,t)|0)+i)*r}}},_.ease=Me["quad.out"],it("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return tt+=t+","+t+"Params,"});var Be=function(t,e){this.id=y++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:nt,this.set=e?e.getSetter:rr},Ne=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,It(this,+t.duration,1,1),this.data=t.data,p||Te.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,It(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Oe(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(kt(this,t),!r._dp||r.parent||St(r,this);r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&At(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===m||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ut(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ot(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ot(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Mt(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-m?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ct(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-m?0:this._rts,wt(this.totalTime(Xt(-this._delay,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Oe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==m&&(this._tTime-=m)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&At(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(k(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ct(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Bt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Bt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Ut(this,t),k(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,k(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-m:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-m,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-m))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise(function(r){var n=O(t)?t:ft,i=function(){var t=e.then;e.then=null,O(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i})},e.kill=function(){pe(this)},t}();lt(Ne.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-m,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function e(e,r){var i;return void 0===e&&(e={}),i=t.call(this,e)||this,i.labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=k(e.sortChildren),a&&At(e.parent||a,n(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Pt(n(i),e.scrollTrigger),i}i(e,t);var r=e.prototype;return r.to=function(t,e,r){return Lt(0,arguments,this),this},r.from=function(t,e,r){return Lt(1,arguments,this),this},r.fromTo=function(t,e,r,n){return Lt(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,mt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Qe(t,e,Ut(this,r),1),this},r.call=function(t,e,r){return At(this,Qe.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,s,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new Qe(t,r,Ut(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,mt(r).immediateRender=k(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},r.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,mt(n).immediateRender=k(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,o,u,h,f,l,c,p,d,_,g=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,b=this!==a&&t>v-m&&t>=0?v:t<m?0:t,x=this._zTime<0!=t<0&&(this._initted||!y);if(b!==this._tTime||r||x){if(g!==this._time&&y&&(b+=this._time-g,t+=this._time-g),n=b,c=this._start,l=this._ts,h=!l,x&&(y||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,u=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*u+t,e,r);if(n=st(b%u),b===v?(o=this._repeat,n=y):(o=~~(b/u),o&&o===b/u&&(n=y,o--),n>y&&(n=y)),p=Mt(this._tTime,u),!g&&this._tTime&&p!==o&&(p=o),d&&1&o&&(n=y-n,_=1),o!==p&&!this._lock){var w=d&&1&p,T=w===(d&&1&o);if(o<p&&(w=!w),g=w?0:y,this._lock=1,this.render(g||(_?0:st(o*u)),e,!y)._lock=0,this._tTime=b,!e&&this.parent&&ce(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1),g&&g!==this._time||h!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,T&&(this._lock=2,g=w?y:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!h)return this;je(this,_)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=Ft(this,st(g),st(n)))&&(b-=n-(n=f._start)),this._tTime=b,this._time=n,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&n&&!e&&(ce(this,"onStart"),this._tTime!==b))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!h){f=0,s&&(b+=this._zTime=-m);break}}i=s}else{i=this._last;for(var O=t<0?t:n;i;){if(s=i._prev,(i._act||O<=i._end)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(O-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(O-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!h){f=0,s&&(b+=this._zTime=O?-m:m);break}}i=s}}if(f&&!e&&(this.pause(),f.render(n>=g?0:-m)._zTime=n>=g?1:-1,this._ts))return this._start=c,Dt(this),this.render(t,e,r);this._onUpdate&&!e&&ce(this,"onUpdate",!0),(b===v&&v>=this.totalDuration()||!b&&g)&&(c!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||((t||!y)&&(b===v&&this._ts>0||!b&&this._ts<0)&&bt(this,1),e||t<0&&!g||!b&&!g&&v||(ce(this,b===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(b<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(M(e)||(e=Ut(this,e,t)),!(t instanceof Ne)){if(j(t))return t.forEach(function(t){return r.add(t,e)}),this;if(T(t))return this.addLabel(t,e);if(!O(t))return this;t=Qe.delayedCall(0,t)}return this!==t?At(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-1e8);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof Qe?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return T(t)?this.removeLabel(t):O(t)?this.killTweensOf(t):(yt(this,t),t===this._recent&&(this._recent=this._last),xt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=st(Te.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=Ut(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=Qe.delayedCall(0,e||W,r);return n.data="isPause",this._hasPause=1,At(this,n,Ut(this,t))},r.removePause=function(t){var e=this._first;for(t=Ut(this,t);e;)e._start===t&&"isPause"===e.data&&bt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Le!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=Ht(t),s=this._first,a=M(e);s;)s instanceof Qe?at(s._targets,i)&&(a?(!Le||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=Ut(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,f=Qe.to(n,lt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||m,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());f._dur!==t&&It(f,t,0,1).render(f._time,!0,!0),r=1}o&&o.apply(f,u||[])}},e));return h?f.render(0):f},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,lt({startAt:{time:Ut(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),le(this,Ut(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),le(this,Ut(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+m)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return xt(this)},r.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),xt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,o=s._last,u=1e8;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),r=o._start,r>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,At(s,o,r-o._delay,1)._lock=0):u=r,r<0&&o._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),u=0),o._end>i&&o._ts&&(i=o._end),o=e;It(s,s===a&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(a._ts&&(ut(a,Ct(t,a)),l=Te.frame),Te.frame>=Z){Z+=d.autoSleep||120;var e=a._first;if((!e||!e._ts)&&d.autoSleep&&Te._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Te.sleep()}}},e}(Ne);lt(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var Le,Ye=function(t,e,r,n,i,s,a){var o,u,h,f,l,c,p,d,_=new lr(this._pt,t,e,0,1,sr,null,i),m=0,g=0;for(_.b=r,_.e=n,r+="",n+="",(p=~n.indexOf("random("))&&(n=ue(n)),s&&(d=[r,n],s(d,t,e),r=d[0],n=d[1]),u=r.match(F)||[];o=F.exec(n);)f=o[0],l=n.substring(m,o.index),h?h=(h+1)%5:"rgba("===l.substr(-5)&&(h=1),f!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:l||1===g?l:",",s:c,c:"="===f.charAt(1)?parseFloat(f.substr(2))*("-"===f.charAt(0)?-1:1):parseFloat(f)-c,m:h&&h<4?Math.round:0},m=F.lastIndex);return _.c=m<n.length?n.substring(m,n.length):"",_.fp=a,(I.test(n)||p)&&(_.e=0),this._pt=_,_},Xe=function(t,e,r,n,i,s,a,o,u){O(n)&&(n=n(i||0,t,s));var h,f=t[e],l="get"!==r?r:O(f)?u?t[e.indexOf("set")||!O(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,c=O(f)?u?tr:Ke:Ze;if(T(n)&&(~n.indexOf("random(")&&(n=ue(n)),"="===n.charAt(1)&&((h=parseFloat(l)+parseFloat(n.substr(2))*("-"===n.charAt(0)?-1:1)+(qt(l)||0))||0===h)&&(n=h)),l!==n)return isNaN(l*n)||""===n?(!f&&!(e in t)&&X(e,n),Ye.call(this,t,e,l,n,c,o||d.stringFilter,u)):(h=new lr(this._pt,t,e,+l||0,n-(l||0),"boolean"==typeof f?ir:nr,0,c),u&&(h.fp=u),a&&h.modifier(a,this,t),this._pt=h)},qe=function(t,e,r,n,i){if(O(t)&&(t=Ge(t,i,e,r,n)),!D(t)||t.style&&t.nodeType||j(t)||P(t))return T(t)?Ge(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=Ge(t[s],i,e,r,n);return a},Ve=function(t,e,r,n,i,s){var a,o,u,h;if(J[t]&&!1!==(a=new J[t]).init(i,a.rawVars?e[t]:qe(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new lr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==c))for(u=r._ptLookup[r._targets.indexOf(i)],h=a._props.length;h--;)u[a._props[h]]=o;return a},We=function t(e,r){var n,i,o,u,h,f,l,c,p,d,g,v,y,b=e.vars,x=b.ease,w=b.startAt,T=b.immediateRender,O=b.lazy,M=b.onUpdate,C=b.onUpdateParams,D=b.callbackScope,S=b.runBackwards,A=b.yoyoEase,P=b.keyframes,j=b.autoRevert,R=e._dur,z=e._startAt,E=e._targets,F=e.parent,I=F&&"nested"===F.data?F.parent._targets:E,B="auto"===e._overwrite&&!s,N=e.timeline;if(N&&(!P||!x)&&(x="none"),e._ease=Re(x,_.ease),e._yEase=A?Pe(Re(!0===A?x:A,_.ease)):0,A&&e._yoyo&&!e._repeat&&(A=e._yEase,e._yEase=e._ease,e._ease=A),e._from=!N&&!!b.runBackwards,!N){if(c=E[0]?rt(E[0]).harness:0,v=c&&b[c.prop],n=_t(b,$),z&&z.render(-1,!0).kill(),w)if(bt(e._startAt=Qe.set(E,lt({data:"isStart",overwrite:!1,parent:F,immediateRender:!0,lazy:k(O),startAt:null,delay:0,onUpdate:M,onUpdateParams:C,callbackScope:D,stagger:0},w))),r<0&&!T&&!j&&e._startAt.render(-1,!0),T){if(r>0&&!j&&(e._startAt=0),R&&r<=0)return void(r&&(e._zTime=r))}else!1===j&&(e._startAt=0);else if(S&&R)if(z)!j&&(e._startAt=0);else if(r&&(T=!1),o=lt({overwrite:!1,data:"isFromStart",lazy:T&&k(O),immediateRender:T,stagger:0,parent:F},n),v&&(o[c.prop]=v),bt(e._startAt=Qe.set(E,o)),r<0&&e._startAt.render(-1,!0),T){if(!r)return}else t(e._startAt,m);for(e._pt=0,O=R&&k(O)||O&&!R,i=0;i<E.length;i++){if(h=E[i],l=h._gsap||et(E)[i]._gsap,e._ptLookup[i]=d={},H[l.id]&&G.length&&ot(),g=I===E?i:I.indexOf(h),c&&!1!==(p=new c).init(h,v||n,e,g,I)&&(e._pt=u=new lr(e._pt,h,p.name,0,1,p.render,p,0,p.priority),p._props.forEach(function(t){d[t]=u}),p.priority&&(f=1)),!c||v)for(o in n)J[o]&&(p=Ve(o,n,e,g,h,I))?p.priority&&(f=1):d[o]=u=Xe.call(e,h,o,"get",n[o],g,I,0,b.stringFilter);e._op&&e._op[i]&&e.kill(h,e._op[i]),B&&e._pt&&(Le=e,a.killTweensOf(h,d,e.globalTime(0)),y=!e.parent,Le=0),e._pt&&O&&(H[l.id]=1)}f&&fr(e),e._onInit&&e._onInit(e)}e._onUpdate=M,e._initted=(!e._op||e._pt)&&!y},$e=function(t,e){var r,n,i,s,a=t[0]?rt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;r=pt({},e);for(n in o)if(n in r)for(s=o[n].split(","),i=s.length;i--;)r[s[i]]=r[n];return r},Ge=function(t,e,r,n,i){return O(t)?t.call(e,r,n,i):T(t)&&~t.indexOf("random(")?ue(t):t},He=tt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Je=(He+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Qe=function(t){function e(e,r,i,o){var u;"number"==typeof r&&(i.duration=r,r=i,i=null),u=t.call(this,o?r:mt(r))||this;var h,f,l,c,p,_,g,v,y=u.vars,b=y.duration,x=y.delay,w=y.immediateRender,T=y.stagger,O=y.overwrite,C=y.keyframes,S=y.defaults,R=y.scrollTrigger,z=y.yoyoEase,E=r.parent||a,F=(j(e)||P(e)?M(e[0]):"length"in r)?[e]:Ht(e);if(u._targets=F.length?et(F):q("GSAP target "+e+" not found. https://greensock.com",!d.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=O,C||T||A(b)||A(x)){if(r=u.vars,h=u.timeline=new Ue({data:"nested",defaults:S||{}}),h.kill(),h.parent=h._dp=n(u),h._start=0,C)lt(h.vars.defaults,{ease:"none"}),T?F.forEach(function(t,e){return C.forEach(function(r,n){return h.to(t,r,n?">":e*T)})}):C.forEach(function(t){return h.to(F,t,">")});else{if(c=F.length,g=T?Zt(T):W,D(T))for(p in T)~He.indexOf(p)&&(v||(v={}),v[p]=T[p]);for(f=0;f<c;f++){l={};for(p in r)Je.indexOf(p)<0&&(l[p]=r[p]);l.stagger=0,z&&(l.yoyoEase=z),v&&pt(l,v),_=F[f],l.duration=+Ge(b,n(u),f,_,F),l.delay=(+Ge(x,n(u),f,_,F)||0)-u._delay,!T&&1===c&&l.delay&&(u._delay=x=l.delay,u._start+=x,l.delay=0),h.to(_,l,g(f,_,F))}h.duration()?b=x=0:u.timeline=0}b||u.duration(b=h.duration())}else u.timeline=0;return!0!==O||s||(Le=n(u),a.killTweensOf(F),Le=0),At(E,n(u),i),r.reversed&&u.reverse(),r.paused&&u.paused(!0),(w||!b&&!C&&u._start===st(E._time)&&k(w)&&Tt(n(u))&&"nested"!==E.data)&&(u._tTime=-m,u.render(Math.max(0,-x))),R&&Pt(n(u),R),u}i(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,u,h,f,l,c=this._time,p=this._tDur,d=this._dur,_=t>p-m&&t>=0?p:t<m?0:t;if(d){if(_!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(n=_,f=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(n=st(_%a),_===p?(s=this._repeat,n=d):(s=~~(_/a),s&&s===_/a&&(n=d,s--),n>d&&(n=d)),u=this._yoyo&&1&s,u&&(l=this._yEase,n=d-n),o=Mt(this._tTime,a),n===c&&!r&&this._initted)return this;s!==o&&(f&&this._yEase&&je(f,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(st(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(jt(this,t<0?t:n,r,e))return this._tTime=0,this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=_,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(l||this._ease)(n/d),this._from&&(this.ratio=h=1-h),n&&!c&&!e&&(ce(this,"onStart"),this._tTime!==_))return this;for(i=this._pt;i;)i.r(h,i.d),i=i._next;f&&f.render(t<0?t:!n&&u?-m:f._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),ce(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&ce(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!d)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&bt(this,1),e||t<0&&!c||!_&&!c||(ce(this,_===p?"onComplete":"onReverseComplete",!0),this._prom&&!(_<p&&this.timeScale()>0)&&this._prom()))}}else Et(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?pe(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Le&&!0!==Le.vars.overwrite)._first||pe(this),this.parent&&r!==this.timeline.totalDuration()&&It(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,u,h,f=this._targets,l=t?Ht(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&gt(f,l))return"all"===e&&(this._pt=0),pe(this);for(n=this._op=this._op||[],"all"!==e&&(T(e)&&(o={},it(e,function(t){return o[t]=1}),e=o),e=$e(f,e)),h=f.length;h--;)if(~l.indexOf(f[h])){i=c[h],"all"===e?(n[h]=e,a=i,s={}):(s=n[h]=n[h]||{},a=e);for(o in a)u=i&&i[o],u&&("kill"in u.d&&!0!==u.d.kill(o)||yt(this,u,"_pt"),delete i[o]),"all"!==s&&(s[o]=1)}return this._initted&&!this._pt&&p&&pe(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Lt(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return Lt(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return a.killTweensOf(t,e,r)},e}(Ne);lt(Qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),it("staggerTo,staggerFrom,staggerFromTo",function(t){Qe[t]=function(){var e=new Ue,r=Wt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var Ze=function(t,e,r){return t[e]=r},Ke=function(t,e,r){return t[e](r)},tr=function(t,e,r,n){return t[e](n.fp,r)},er=function(t,e,r){return t.setAttribute(e,r)},rr=function(t,e){return O(t[e])?Ke:C(t[e])&&t.setAttribute?er:Ze},nr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ir=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},sr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},ar=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},or=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},ur=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?yt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},hr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},fr=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},lr=function(){function t(t,e,r,n,i,s,a,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||nr,this.d=a||this,this.set=o||Ze,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=hr,this.m=t,this.mt=r,this.tween=e},t}();it(tt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return $[t]=1}),U.TweenMax=U.TweenLite=Qe,U.TimelineLite=U.TimelineMax=Ue,a=new Ue({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),d.stringFilter=we;var cr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return de(t)})},timeline:function(t){return new Ue(t)},getTweensOf:function(t,e){return a.getTweensOf(t,e)},getProperty:function(t,e,r,n){T(t)&&(t=Ht(t)[0]);var i=rt(t||{}).get,s=r?ft:ht;return"native"===r&&(r=""),t?e?s((J[e]&&J[e].get||i)(t,e,r,n)):function(e,r,n){return s((J[e]&&J[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if(t=Ht(t),t.length>1){var n=t.map(function(t){return mr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=J[e],a=rt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;c._pt=0,n.init(t,r?e+r:e,c,0,[t]),n.render(1,n),c._pt&&ar(1,c)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},isTweening:function(t){return a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Re(t.ease,_.ease)),dt(_,t||{})},config:function(t){return dt(d,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach(function(t){return t&&!J[t]&&!U[t]&&q(e+" effect requires "+t+" plugin.")}),Q[e]=function(t,e,n){return r(Ht(t),lt(e||{},i),n)},s&&(Ue.prototype[e]=function(t,r,n){return this.add(Q[e](t,D(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Me[t]=Re(e)},parseEase:function(t,e){return arguments.length?Re(t,e):Me},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Ue(t);for(i.smoothChildTiming=k(t.smoothChildTiming),a.remove(i),i._dp=0,i._time=i._tTime=a._time,r=a._first;r;)n=r._next,!e&&!r._dur&&r instanceof Qe&&r.vars.onComplete===r._targets[0]||At(i,r,r._start-r._delay),r=n;return At(a,i,0),i},utils:{wrap:ae,wrapYoyo:oe,distribute:Zt,random:ee,snap:te,normalize:ie,getUnit:qt,clamp:Vt,splitColor:ge,toArray:Ht,selector:Jt,mapRange:he,pipe:re,unitize:ne,interpolate:fe,shuffle:Qt},install:Y,effects:Q,ticker:Te,updateRoot:Ue.updateRoot,plugins:J,globalTimeline:a,core:{PropTween:lr,globals:V,Tween:Qe,Timeline:Ue,Animation:Ne,getCache:rt,_removeLinkedListItem:yt,suppressOverwrites:function(t){return s=t}}};it("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return cr[t]=Qe[t]}),Te.add(Ue.updateRoot),c=cr.to({},{duration:0});var pr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},dr=function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=pr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))},_r=function(t,e){return{name:t,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(T(r)&&(n={},it(r,function(t){return n[t]=1}),r=n),e){n={};for(i in r)n[i]=e(r[i]);r=n}dr(t,r)}}}},mr=cr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,a;for(s in e)a=this.add(t,"setAttribute",(t.getAttribute(s)||0)+"",e[s],n,i,0,0,s),a&&(a.op=s),this._props.push(s)}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},_r("roundProps",Kt),_r("modifiers"),_r("snap",te))||cr;Qe.version=Ue.version=mr.version="3.7.1",f=1,S()&&Oe();Me.Power0,Me.Power1,Me.Power2,Me.Power3,Me.Power4,Me.Linear,Me.Quad,Me.Cubic,Me.Quart,Me.Quint,Me.Strong,Me.Elastic,Me.Back,Me.SteppedEase,Me.Bounce,Me.Sine,Me.Expo,Me.Circ},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i=r(11),s={};s.install=function(t){t.prototype.$TweenMax=i.a,t.component(n.a.name,n.a)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(s),e.default=s},function(t,e,r){"use strict";function n(t){r(4)}var i=r(0),s=r(10),a=r(9),o=n,u=a(i.a,s.a,!1,o,"data-v-1162272a",null);e.a=u.exports},function(t,e,r){var n=r(5);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);r(7)("1c63def4",n,!0,{})},function(t,e,r){e=t.exports=r(6)(!1),e.push([t.i,".green[data-v-1162272a]{width:110px;height:110px;text-align:center;color:#000;border-radius:6px;display:inline-block;background:red;margin:10px;background-color:#6fb936}",""])},function(t,e){function r(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var s=n(i);return[r].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([s]).join("\n")}return[r].join("\n")}function n(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(functi