text: /*
   * anime.js v3.0.2
   * (c) 2019 Julian Garnier
   * Released under the MIT license
   * animejs.com
   */
  
  !function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.anime=e()}(this,function(){"use strict";var m={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},y={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],p={CSS:{},springs:{}};function O(n,e,r){return Math.min(Math.max(n,e),r)}function i(n,e){return-1<n.indexOf(e)}function o(n,e){return n.apply(null,e)}var C={arr:function(n){return Array.isArray(n)},obj:function(n){return i(Object.prototype.toString.call(n),"Object")},pth:function(n){return C.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||C.svg(n)},str:function(n){return"string"==typeof n},fnc:function(n){return"function"==typeof n},und:function(n){return void 0===n},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return C.hex(n)||C.rgb(n)||C.hsl(n)},key:function(n){return!m.hasOwnProperty(n)&&!y.hasOwnProperty(n)&&"targets"!==n&&"keyframes"!==n}};function v(n){var e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(function(n){return parseFloat(n)}):[]}function u(a,r){var n=v(a),e=O(C.und(n[0])?1:n[0],.1,100),t=O(C.und(n[1])?100:n[1],.1,100),o=O(C.und(n[2])?10:n[2],.1,100),i=O(C.und(n[3])?0:n[3],.1,100),u=Math.sqrt(t/e),s=o/(2*Math.sqrt(t*e)),c=s<1?u*Math.sqrt(1-s*s):0,f=1,l=s<1?(s*u-i)/c:-i+u;function d(n){var e=r?r*n/1e3:n;return e=s<1?Math.exp(-e*s*u)*(f*Math.cos(c*e)+l*Math.sin(c*e)):(f+l*e)*Math.exp(-e*u),0===n||1===n?n:1-e}return r?d:function(){var n=p.springs[a];if(n)return n;for(var e=0,r=0;;)if(1===d(e+=1/6)){if(16<=++r)break}else r=0;var t=e*(1/6)*1e3;return p.springs[a]=t}}function s(n,e){void 0===n&&(n=1),void 0===e&&(e=.5);var r=O(n,1,10),t=O(e,.1,2);return function(n){return 0===n||1===n?n:-r*Math.pow(2,10*(n-1))*Math.sin((n-1-t/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/t)}}function c(e){return void 0===e&&(e=10),function(n){return Math.round(n*e)*(1/e)}}var f=function(o,e,i,r){if(0<=o&&o<=1&&0<=i&&i<=1){var u=new Float32Array(11);if(o!==e||i!==r)for(var n=0;n<11;++n)u[n]=d(.1*n,o,i);return function(n){return o===e&&i===r?n:0===n||1===n?n:d(t(n),e,r)}}function t(n){for(var e=0,r=1;10!==r&&u[r]<=n;++r)e+=.1;var t=e+(n-u[--r])/(u[r+1]-u[r])*.1,a=h(t,o,i);return.001<=a?function(n,e,r,t){for(var a=0;a<4;++a){var o=h(e,r,t);if(0===o)return e;e-=(d(e,r,t)-n)/o}return e}(n,t,o,i):0===a?t:function(n,e,r,t,a){for(var o,i,u=0;0<(o=d(i=e+(r-e)/2,t,a)-n)?r=i:e=i,1e-7<Math.abs(o)&&++u<10;);return i}(n,e,e+.1,o,i)}};function t(n,e){return 1-3*e+3*n}function a(n,e){return 3*e-6*n}function l(n){return 3*n}function d(n,e,r){return((t(e,r)*n+a(e,r))*n+l(e))*n}function h(n,e,r){return 3*t(e,r)*n*n+2*a(e,r)*n+l(e)}var g=function(){function n(r){e[r].forEach(function(n,e){a["ease"+r+t[e]]=n})}var t=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],s],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(e,r){return function(n){return 1-s(e,r)(1-n)}}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(e,r){return function(n){return n<.5?s(e,r)(2*n)/2:1-s(e,r)(-2*n+2)/2}}]},a={linear:[.25,.25,.75,.75]};for(var r in e)n(r);return a}();function P(n,e){if(C.fnc(n))return n;var r=n.split("(")[0],t=g[r],a=v(n);switch(r){case"spring":return u(n,e);case"cubicBezier":return o(f,a);case"steps":return o(c,a);default:return C.fnc(t)?o(t,a):o(f,t)}}function b(n){try{return document.querySelectorAll(n)}catch(n){return}}function T(n,e){for(var r=n.length,t=2<=arguments.length?e:void 0,a=[],o=0;o<r;o++)if(o in n){var i=n[o];e.call(t,i,o,n)&&a.push(i)}return a}function x(n){return n.reduce(function(n,e){return n.concat(C.arr(e)?x(e):e)},[])}function e(n){return C.arr(n)?n:(C.str(n)&&(n=b(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function w(n,e){return n.some(function(n){return n===e})}function M(n){var e={};for(var r in n)e[r]=n[r];return e}function k(n,e){var r=M(n);for(var t in n)r[t]=e.hasOwnProperty(t)?e[t]:n[t];return r}function I(n,e){var r=M(n);for(var t in e)r[t]=C.und(n[t])?e[t]:n[t];return r}function B(n){return C.rgb(n)?function(n){var e=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);return e?"rgba("+e[1]+",1)":n}(n):C.hex(n)?function(n){var e=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,e,r,t){return e+e+r+r+t+t}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+parseInt(r[1],16)+","+parseInt(r[2],16)+","+parseInt(r[3],16)+",1)"}(n):C.hsl(n)?function(n){var e,r,t,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),o=parseInt(a[1],10)/360,i=parseInt(a[2],10)/100,u=parseInt(a[3],10)/100,s=a[4]||1;function c(n,e,r){return r<0&&(r+=1),1<r&&(r-=1),r<1/6?n+6*(e-n)*r:r<.5?e:r<2/3?n+(e-n)*(2/3-r)*6:n}if(0==i)e=r=t=u;else{var f=u<.5?u*(1+i):u+i-u*i,l=2*u-f;e=c(l,f,o+1/3),r=c(l,f,o),t=c(l,f,o-1/3)}return"rgba("+255*e+","+255*r+","+255*t+","+s+")"}(n):void 0}function D(n){var e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(e)return e[2]}function F(n,e){return C.fnc(n)?n(e.target,e.id,e.total):n}function N(n,e){return n.getAttribute(e)}function A(n,e,r){if(w([r,"deg","rad","turn"],D(e)))return e;var t=p.CSS[e+r];if(!C.und(t))return t;var a=document.createElement(n.tagName),o=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;o.appendChild(a),a.style.position="absolute",a.style.width=100+r;var i=100/a.offsetWidth;o.removeChild(a);var u=i*parseFloat(e);return p.CSS[e+r]=u}function E(n,e,r){if(e in n.style){var t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[e]||getComputedStyle(n).getPropertyValue(t)||"0";return r?A(n,a,r):a}}function L(n,e){return C.dom(n)&&!C.inp(n)&&(N(n,e)||C.svg(n)&&n[e])?"attribute":C.dom(n)&&w(r,e)?"transform":C.dom(n)&&"transform"!==e&&E(n,e)?"css":null!=n[e]?"object":void 0}function S(n){if(C.dom(n)){for(var e,r=n.style.transform||n.style.webkitTransform||"",t=/(\w+)\(([^)]*)\)/g,a=new Map;e=t.exec(r);)a.set(e[1],e[2]);return a}}function j(n,e,r,t){var a=i(e,"scale")?1:0+function(n){return i(n,"translate")||"perspective"===n?"px":i(n,"rotate")||i(n,"skew")?"deg":void 0}(e),o=S(n).get(e)||a;return r&&(r.transforms.list.set(e,o),r.transforms.last=e),t?A(n,o,t):o}function q(n,e,r,t){switch(L(n,e)){case"transform":return j(n,e,t,r);case"css":return E(n,e,r);case"attribute":return N(n,e);default:return n[e]||0}}function $(n,e){var r=/^(\*=|\+=|-=)/.exec(n);if(!r)return n;var t=D(n)||0,a=parseFloat(e),o=parseFloat(n.replace(r[0],""));switch(r[0][0]){case"+":return a+o+t;case"-":return a-o+t;case"*":return a*o+t}}function X(n,e){if(C.col(n))return B(n);var r=D(n),t=r?n.substr(0,n.length-r.length):n;return e&&!/\s/g.test(n)?t+e:t}function Y(n,e){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Z(n){for(var e,r=n.points,t=0,a=0;a<r.numberOfItems;a++){var o=r.getItem(a);0<a&&(t+=Y(e,o)),e=o}return t}function Q(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return function(n){return 2*Math.PI*N(n,"r")}(n);case"rect":return function(n){return 2*N(n,"width")+2*N(n,"height")}(n);case"line":return function(n){return Y({x:N(n,"x1"),y:N(n,"y1")},{x:N(n,"x2"),y:N(n,"y2")})}(n);case"polyline":return Z(n);case"polygon":return function(n){var e=n.points;return Z(n)+Y(e.getItem(e.numberOfItems-1),e.getItem(0))}(n)}}function V(n,e){var r=e||{},t=r.el||function(n){for(var e=n.parentNode;C.svg(e)&&(e=e.parentNode,C.svg(e.parentNode)););return e}(n),a=t.getBoundingClientRect(),o=N(t,"viewBox"),i=a.width,u=a.height,s=r.viewBox||(o?o.split(" "):[0,0,i,u]);return{el:t,viewBox:s,x:s[0]/1,y:s[1]/1,w:i/s[2],h:u/s[3]}}function z(r,t){function n(n){void 0===n&&(n=0);var e=1<=t+n?t+n:0;return r.el.getPointAtLength(e)}var e=V(r.el,r.svg),a=n(),o=n(-1),i=n(1);switch(r.property){case"x":return(a.x-e.x)*e.w;case"y":return(a.y-e.y)*e.h;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function H(n,e){var r=/-?\d*\.?\d+/g,t=X(C.pth(n)?n.totalLength:n,e)+"";return{original:t,numbers:t.match(r)?t.match(r).map(Number):[0],strings:C.str(n)||e?t.split(r):[]}}function G(n){return T(n?x(C.arr(n)?n.map(e):e(n)):[],function(n,e,r){return r.indexOf(n)===e})}function R(n){var r=G(n);return r.map(function(n,e){return{target:n,id:e,total:r.length,transforms:{list:S(n)}}})}function W(n,t){var e=M(t);if(/^spring/.test(e.easing)&&(e.duration=u(e.easing)),C.arr(n)){var r=n.length;2===r&&!C.obj(n[0])?n={value:n}:C.fnc(t.duration)||(e.duration=t.duration/r)}var a=C.arr(n)?n:[n];return a.map(function(n,e){var r=C.obj(n)&&!C.pth(n)?n:{value:n};return C.und(r.delay)&&(r.delay=e?0:t.delay),C.und(r.endDelay)&&(r.endDelay=e===a.length-1?t.endDelay:0),r}).map(function(n){return I(n,e)})}function J(n,e){var r=[],t=e.keyframes;for(var a in t&&(e=I(function(e){for(var r=T(x(e.map(function(n){return Object.keys(n)})),function(n){return C.key(n)}).reduce(function(n,e){return n.indexOf(e)<0&&n.push(e),n},[]),a={},n=function(n){var t=r[n];a[t]=e.map(function(n){var e={};for(var r in n)C.key(r)?r==t&&(e.value=n[r]):e[r]=n[r];return e})},t=0;t<r.length;t++)n(t);return a}(t),e)),e)C.key(a)&&r.push({name:a,tweens:W(e[a],n)});return r}function K(f,l){var d;return f.tweens.map(function(n){var e=function(n,e){var r={};for(var t in n){var a=F(n[t],e);C.arr(a)&&1===(a=a.map(function(n){return F(n,e)})).length&&(a=a[0]),r[t]=a}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(n,l),r=e.value,t=C.arr(r)?r[1]:r,a=D(t),o=q(l.target,f.name,a,l),i=d?d.to.original:o,u=C.arr(r)?r[0]:i,s=D(u)||D(o),c=a||s;return C.und(t)&&(t=i),e.from=H(u,c),e.to=H($(t,u),c),e.start=d?d.end:0,e.end=e.start+e.delay+e.duration+e.endDelay,e.easing=P(e.easing,e.duration),e.isPath=C.pth(r),e.isColor=C.col(e.from.original),e.isColor&&(e.round=1),d=e})}var U={css:function(n,e,r){return n.style[e]=r},attribute:function(n,e,r){return n.setAttribute(e,r)},object:function(n,e,r){return n[e]=r},transform:function(n,e,r,t,a){if(t.list.set(e,r),e===t.last||a){var o="";t.list.forEach(function(n,e){o+=e+"("+n+") "}),n.style.transform?n.style.transform=o:n.style.webkitTransform&&(n.style.webkitTransform=o)}}};function _(n,s){R(n).forEach(function(n){for(var e in s){var r=F(s[e],n),t=n.target,a=D(r),o=q(t,e,a,n),i=$(X(r,a||D(o)),o),u=L(t,e);U[u](t,e,i,n.transforms,!0)}})}function nn(n,r){return T(x(n.map(function(e){return r.map(function(n){return function(n,e){var r=L(n.target,e.name);if(r){var t=K(e,n),a=t[t.length-1];return{type:r,property:e.name,animatable:n,tweens:t,duration:a.end,delay:t[0].delay,endDelay:a.endDelay}}}(e,n)})})),function(n){return!C.und(n)})}function en(n,e){function r(n){return n.timelineOffset?n.timelineOffset:0}var t=n.length,a={};return a.duration=t?Math.max.apply(Math,n.map(function(n){return r(n)+n.duration})):e.duration,a.delay=t?Math.min.apply(Math,n.map(function(n){return r(n)+n.delay})):e.delay,a.endDelay=t?a.duration-Math.max.apply(Math,n.map(function(n){return r(n)+n.duration-n.endDelay})):e.endDelay,a}var rn=0;var tn,an=[],n=[],on=un;function un(){tn=requestAnimationFrame(sn)}function sn(n){var e=an.length;if(e){for(var r=0;r<e;){var t=an[r];if(t.paused){var a=an.indexOf(t);-1<a&&(an.splice(a,1),e=an.length)}else t.tick(n);r++}un()}else tn=cancelAnimationFrame(tn)}function cn(n){void 0===n&&(n={});var o,i=0,u=0,s=0,c=0,f=null;function l(n){var e=window.Promise&&new Promise(function(n){return f=n});return n.finished=e}var C=function(n){var e=k(m,n),r=k(y,n),t=J(r,n),a=R(n.targets),o=nn(a,t),i=en(o,r),u=rn;return rn++,I(e,{id:u,children:[],animatables:a,animations:o,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}(n);l(C);function d(){var n=C.direction;"alternate"!==n&&(C.direction="normal"!==n?"normal":"reverse"),C.reversed=!C.reversed,o.forEach(function(n){return n.reversed=C.reversed})}function p(n){return C.reversed?C.duration-n:n}function e(){i=0,u=p(C.currentTime)*(1/cn.speed)}function v(n,e){e&&e.seek(n-e.timelineOffset)}function h(e){for(var n=0,r=C.animations,t=r.length;n<t;){var a=r[n],o=a.animatable,i=a.tweens,u=i.length-1,s=i[u];u&&(s=T(i,function(n){return e<n.end})[0]||s);for(var c=O(e-s.start-s.delay,0,s.duration)/s.duration,f=isNaN(c)?1:s.easing(c),l=s.to.strings,d=s.round,p=[],v=s.to.numbers.length,h=void 0,g=0;g<v;g++){var m=void 0,y=s.to.numbers[g],b=s.from.numbers[g]||0;m=s.isPath?z(s.value,f*y):b+f*(y-b),d&&(s.isColor&&2<g||(m=Math.round(m*d)/d)),p.push(m)}var x=l.length;if(x){h=l[0];for(var w=0;w<x;w++){l[w];var M=l[w+1],k=p[w];isNaN(k)||(h+=M?k+M:k+" ")}}else h=p[0];U[a.type](o.target,a.property,h,o.transforms),a.currentValue=h,n++}}function g(n){C[n]&&!C.passThrough&&C[n](C)}function r(n){var e=C.duration,r=C.delay,t=e-C.endDelay,a=p(n);C.progress=O(a/e*100,0,100),C.reversePlayback=a<C.currentTime,o&&function(n){if(C.reversePlayback)for(var e=c;e--;)v(n,o[e]);else for(var r=0;r<c;r++)v(n,o[r])}(a),!C.began&&0<C.currentTime&&(C.began=!0,g("begin"),g("loopBegin")),a<=r&&0!==C.currentTime&&h(0),(t<=a&&C.currentTime!==e||!e)&&h(e),r<a&&a<t?(C.changeBegan||(C.changeBegan=!0,C.changeCompleted=!1,g("changeBegin")),g("change"),h(a)):C.changeBegan&&(C.changeCompleted=!0,C.changeBegan=!1,g("changeComplete")),C.currentTime=O(a,0,e),C.began&&g("update"),e<=n&&(u=0,C.remaining&&!0!==C.remaining&&C.remaining--,C.remaining?(i=s,g("loopComplete"),g("loopBegin"),"alternate"===C.direction&&d()):(C.paused=!0,C.completed||(C.completed=!0,g("loopComplete"),g("complete"),!C.passThrough&&"Promise"in window&&(f(),l(C)))))}return C.reset=function(){var n=C.direction;C.passThrough=!1,C.currentTime=0,C.progress=0,C.paused=!0,C.began=!1,C.changeBegan=!1,C.completed=!1,C.changeCompleted=!1,C.reversePlayback=!1,C.reversed="reverse"===n,C.remaining=C.loop,o=C.children;for(var e=c=o.length;e--;)C.children[e].reset();(C.reversed&&!0!==C.loop||"alternate"===n&&1===C.loop)&&C.remaining++,h(0)},C.set=function(n,e){return _(n,e),C},C.tick=function(n){r(((s=n)+(u-(i=i||s)))*cn.speed)},C.seek=function(n){r(p(n))},C.pause=function(){C.paused=!0,e()},C.play=function(){C.paused&&(C.completed&&C.reset(),C.paused=!1,an.push(C),e(),tn||on())},C.reverse=function(){d(),e()},C.restart=function(){C.reset(),C.play()},C.reset(),C.autoplay&&C.play(),C}function fn(n,e){for(var r=e.length;r--;)w(n,e[r].animatable.target)&&e.splice(r,1)}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(an.forEach(function(n){return n.pause()}),n=an.slice(0),an=[]):n.forEach(function(n){return n.play()})}),cn.version="3.0.2",cn.speed=1,cn.running=an,cn.remove=function(n){for(var e=G(n),r=an.length;r--;){var t=an[r],a=t.animations,o=t.children;fn(e,a);for(var i=o.length;i--;){var u=o[i],s=u.animations;fn(e,s),s.length||u.children.length||o.splice(i,1)}a.length||o.length||t.pause()}},cn.get=q,cn.set=_,cn.convertPx=A,cn.path=function(n,e){var r=C.str(n)?b(n)[0]:n,t=e||100;return function(n){return{property:n,el:r,svg:V(r),totalLength:Q(r)*(t/100)}}},cn.setDashoffset=function(n){var e=Q(n);return n.setAttribute("stroke-dasharray",e),e},cn.stagger=function(n,e){void 0===e&&(e={});var c=e.direction||"normal",f=e.easing?P(e.easing):null,l=e.grid,d=e.axis,p=e.from||0,v="first"===p,h="center"===p,g="last"===p,m=C.arr(n),y=m?parseFloat(n[0]):parseFloat(n),b=m?parseFloat(n[1]):0,x=D(m?n[1]:n)||0,w=e.start||0+(m?y:0),M=[],k=0;return function(n,e,r){if(v&&(p=0),h&&(p=(r-1)/2),g&&(p=r-1),!M.length){for(var t=0;t<r;t++){if(l){var a=h?(l[0]-1)/2:p%l[0],o=h?(l[1]-1)/2:Math.floor(p/l[0]),i=a-t%l[0],u=o-Math.floor(t/l[0]),s=Math.sqrt(i*i+u*u);"x"===d&&(s=-i),"y"===d&&(s=-u),M.push(s)}else M.push(Math.abs(p-t));k=Math.max.apply(Math,M)}f&&(M=M.map(function(n){return f(n/k)*k})),"reverse"===c&&(M=M.map(function(n){return d?n<0?-1*n:-n:Math.abs(k-n)}))}return w+(m?(b-y)/k:y)*(Math.round(100*M[e])/100)+x}},cn.timeline=function(f){void 0===f&&(f={});var l=cn(f);return l.duration=0,l.add=function(n,e){var r=an.indexOf(l),t=l.children;function a(n){n.passThrough=!0}-1<r&&an.splice(r,1);for(var o=0;o<t.length;o++)a(t[o]);var i=I(n,k(y,f));i.targets=i.targets||f.targets;var u=l.duration;i.autoplay=!1,i.direction=l.direction,i.timelineOffset=C.und(e)?u:$(e,u),a(l),l.seek(i.timelineOffset);var s=cn(i);a(s),t.push(s);var c=en(t,f);return l.delay=c.delay,l.endDelay=c.endDelay,l.duration=c.duration,l.seek(0),l.reset(),l.autoplay&&l.play(),l},l},cn.easing=P,cn.penner=g,cn.random=function(n,e){return Math.floor(Math.random()*(e-n+1))+n},cn});