UNPKG

wavy-canvas

Version:

Create a wave animation on the canvas

2 lines 40.9 kB
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Wavy=e()}}(function(){return function e(t,r,n){function o(a,u){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){var r=t[a][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,exports){t.exports={default:e("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":10}],2:[function(e,t,exports){t.exports={default:e("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":11}],3:[function(e,t,exports){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":12}],4:[function(e,t,exports){t.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":13}],5:[function(e,t,exports){t.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":14}],6:[function(e,t,exports){"use strict";exports.__esModule=!0,exports.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},{}],7:[function(e,t,exports){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}exports.__esModule=!0;var n=e("../core-js/object/define-property"),o=r(n);exports.default=function(){function e(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),(0,o.default)(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},{"../core-js/object/define-property":3}],8:[function(e,t,exports){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}exports.__esModule=!0;var n=e("../core-js/is-iterable"),o=r(n),i=e("../core-js/get-iterator"),a=r(i);exports.default=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var u,s=(0,a.default)(e);!(n=(u=s.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},{"../core-js/get-iterator":1,"../core-js/is-iterable":2}],9:[function(e,t,exports){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}exports.__esModule=!0;var n=e("../core-js/symbol/iterator"),o=r(n),i=e("../core-js/symbol"),a=r(i),u="function"==typeof a.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default?"symbol":typeof e};exports.default="function"==typeof a.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default?"symbol":"undefined"==typeof e?"undefined":u(e)}},{"../core-js/symbol":4,"../core-js/symbol/iterator":5}],10:[function(e,t,exports){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),t.exports=e("../modules/core.get-iterator")},{"../modules/core.get-iterator":73,"../modules/es6.string.iterator":78,"../modules/web.dom.iterable":82}],11:[function(e,t,exports){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),t.exports=e("../modules/core.is-iterable")},{"../modules/core.is-iterable":74,"../modules/es6.string.iterator":78,"../modules/web.dom.iterable":82}],12:[function(e,t,exports){e("../../modules/es6.object.define-property");var r=e("../../modules/_core").Object;t.exports=function(e,t,n){return r.defineProperty(e,t,n)}},{"../../modules/_core":21,"../../modules/es6.object.define-property":76}],13:[function(e,t,exports){e("../../modules/es6.symbol"),e("../../modules/es6.object.to-string"),e("../../modules/es7.symbol.async-iterator"),e("../../modules/es7.symbol.observable"),t.exports=e("../../modules/_core").Symbol},{"../../modules/_core":21,"../../modules/es6.object.to-string":77,"../../modules/es6.symbol":79,"../../modules/es7.symbol.async-iterator":80,"../../modules/es7.symbol.observable":81}],14:[function(e,t,exports){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),t.exports=e("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":70,"../../modules/es6.string.iterator":78,"../../modules/web.dom.iterable":82}],15:[function(e,t,exports){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],16:[function(e,t,exports){t.exports=function(){}},{}],17:[function(e,t,exports){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":37}],18:[function(e,t,exports){var r=e("./_to-iobject"),n=e("./_to-length"),o=e("./_to-index");t.exports=function(e){return function(t,i,a){var u,s=r(t),c=n(s.length),l=o(a,c);if(e&&i!=i){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===i)return e||l||0;return!e&&-1}}},{"./_to-index":62,"./_to-iobject":64,"./_to-length":65}],19:[function(e,t,exports){var r=e("./_cof"),n=e("./_wks")("toStringTag"),o="Arguments"==r(function(){return arguments}()),i=function(e,t){try{return e[t]}catch(e){}};t.exports=function(e){var t,a,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=i(t=Object(e),n))?a:o?r(t):"Object"==(u=r(t))&&"function"==typeof t.callee?"Arguments":u}},{"./_cof":20,"./_wks":71}],20:[function(e,t,exports){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],21:[function(e,t,exports){var r=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},{}],22:[function(e,t,exports){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":15}],23:[function(e,t,exports){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],24:[function(e,t,exports){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":29}],25:[function(e,t,exports){var r=e("./_is-object"),n=e("./_global").document,o=r(n)&&r(n.createElement);t.exports=function(e){return o?n.createElement(e):{}}},{"./_global":30,"./_is-object":37}],26:[function(e,t,exports){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],27:[function(e,t,exports){var r=e("./_object-keys"),n=e("./_object-gops"),o=e("./_object-pie");t.exports=function(e){var t=r(e),i=n.f;if(i)for(var a,u=i(e),s=o.f,c=0;u.length>c;)s.call(e,a=u[c++])&&t.push(a);return t}},{"./_object-gops":51,"./_object-keys":54,"./_object-pie":55}],28:[function(e,t,exports){var r=e("./_global"),n=e("./_core"),o=e("./_ctx"),i=e("./_hide"),a="prototype",u=function(e,t,s){var c,l,f,p=e&u.F,d=e&u.G,h=e&u.S,_=e&u.P,b=e&u.B,y=e&u.W,exports=d?n:n[t]||(n[t]={}),v=exports[a],m=d?r:h?r[t]:(r[t]||{})[a];d&&(s=t);for(c in s)l=!p&&m&&void 0!==m[c],l&&c in exports||(f=l?m[c]:s[c],exports[c]=d&&"function"!=typeof m[c]?s[c]:b&&l?o(f,r):y&&m[c]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[a]=e[a],t}(f):_&&"function"==typeof f?o(Function.call,f):f,_&&((exports.virtual||(exports.virtual={}))[c]=f,e&u.R&&v&&!v[c]&&i(v,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},{"./_core":21,"./_ctx":22,"./_global":30,"./_hide":32}],29:[function(e,t,exports){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],30:[function(e,t,exports){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],31:[function(e,t,exports){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],32:[function(e,t,exports){var r=e("./_object-dp"),n=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,o){return r.f(e,t,n(1,o))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":24,"./_object-dp":46,"./_property-desc":56}],33:[function(e,t,exports){t.exports=e("./_global").document&&document.documentElement},{"./_global":30}],34:[function(e,t,exports){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":24,"./_dom-create":25,"./_fails":29}],35:[function(e,t,exports){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":20}],36:[function(e,t,exports){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":20}],37:[function(e,t,exports){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],38:[function(e,t,exports){"use strict";var r=e("./_object-create"),n=e("./_property-desc"),o=e("./_set-to-string-tag"),i={};e("./_hide")(i,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,a){e.prototype=r(i,{next:n(1,a)}),o(e,t+" Iterator")}},{"./_hide":32,"./_object-create":45,"./_property-desc":56,"./_set-to-string-tag":58,"./_wks":71}],39:[function(e,t,exports){"use strict";var r=e("./_library"),n=e("./_export"),o=e("./_redefine"),i=e("./_hide"),a=e("./_has"),u=e("./_iterators"),s=e("./_iter-create"),c=e("./_set-to-string-tag"),l=e("./_object-gpo"),f=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",_="values",b=function(){return this};t.exports=function(e,t,y,v,m,g,j){s(y,t,v);var w,x,k,O=function(e){if(!p&&e in P)return P[e];switch(e){case h:return function(){return new y(this,e)};case _:return function(){return new y(this,e)}}return function(){return new y(this,e)}},S=t+" Iterator",M=m==_,C=!1,P=e.prototype,E=P[f]||P[d]||m&&P[m],T=E||O(m),I=m?M?O("entries"):T:void 0,A="Array"==t?P.entries||E:E;if(A&&(k=l(A.call(new e)),k!==Object.prototype&&(c(k,S,!0),r||a(k,f)||i(k,f,b))),M&&E&&E.name!==_&&(C=!0,T=function(){return E.call(this)}),r&&!j||!p&&!C&&P[f]||i(P,f,T),u[t]=T,u[S]=b,m)if(w={values:M?T:O(_),keys:g?T:O(h),entries:I},j)for(x in w)x in P||o(P,x,w[x]);else n(n.P+n.F*(p||C),t,w);return w}},{"./_export":28,"./_has":31,"./_hide":32,"./_iter-create":38,"./_iterators":41,"./_library":43,"./_object-gpo":52,"./_redefine":57,"./_set-to-string-tag":58,"./_wks":71}],40:[function(e,t,exports){t.exports=function(e,t){return{value:t,done:!!e}}},{}],41:[function(e,t,exports){t.exports={}},{}],42:[function(e,t,exports){var r=e("./_object-keys"),n=e("./_to-iobject");t.exports=function(e,t){for(var o,i=n(e),a=r(i),u=a.length,s=0;u>s;)if(i[o=a[s++]]===t)return o}},{"./_object-keys":54,"./_to-iobject":64}],43:[function(e,t,exports){t.exports=!0},{}],44:[function(e,t,exports){var r=e("./_uid")("meta"),n=e("./_is-object"),o=e("./_has"),i=e("./_object-dp").f,a=0,u=Object.isExtensible||function(){return!0},s=!e("./_fails")(function(){return u(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++a,w:{}}})},l=function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},p=function(e){return s&&d.NEED&&u(e)&&!o(e,r)&&c(e),e},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:f,onFreeze:p}},{"./_fails":29,"./_has":31,"./_is-object":37,"./_object-dp":46,"./_uid":68}],45:[function(e,t,exports){var r=e("./_an-object"),n=e("./_object-dps"),o=e("./_enum-bug-keys"),i=e("./_shared-key")("IE_PROTO"),a=function(){},u="prototype",s=function(){var t,r=e("./_dom-create")("iframe"),n=o.length,i="<",a=">";for(r.style.display="none",e("./_html").appendChild(r),r.src="javascript:",t=r.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),s=t.F;n--;)delete s[u][o[n]];return s()};t.exports=Object.create||function(e,t){var o;return null!==e?(a[u]=r(e),o=new a,a[u]=null,o[i]=e):o=s(),void 0===t?o:n(o,t)}},{"./_an-object":17,"./_dom-create":25,"./_enum-bug-keys":26,"./_html":33,"./_object-dps":47,"./_shared-key":59}],46:[function(e,t,exports){var r=e("./_an-object"),n=e("./_ie8-dom-define"),o=e("./_to-primitive"),i=Object.defineProperty;exports.f=e("./_descriptors")?Object.defineProperty:function(e,t,a){if(r(e),t=o(t,!0),r(a),n)try{return i(e,t,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(e[t]=a.value),e}},{"./_an-object":17,"./_descriptors":24,"./_ie8-dom-define":34,"./_to-primitive":67}],47:[function(e,t,exports){var r=e("./_object-dp"),n=e("./_an-object"),o=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){n(e);for(var i,a=o(t),u=a.length,s=0;u>s;)r.f(e,i=a[s++],t[i]);return e}},{"./_an-object":17,"./_descriptors":24,"./_object-dp":46,"./_object-keys":54}],48:[function(e,t,exports){var r=e("./_object-pie"),n=e("./_property-desc"),o=e("./_to-iobject"),i=e("./_to-primitive"),a=e("./_has"),u=e("./_ie8-dom-define"),s=Object.getOwnPropertyDescriptor;exports.f=e("./_descriptors")?s:function(e,t){if(e=o(e),t=i(t,!0),u)try{return s(e,t)}catch(e){}if(a(e,t))return n(!r.f.call(e,t),e[t])}},{"./_descriptors":24,"./_has":31,"./_ie8-dom-define":34,"./_object-pie":55,"./_property-desc":56,"./_to-iobject":64,"./_to-primitive":67}],49:[function(e,t,exports){var r=e("./_to-iobject"),n=e("./_object-gopn").f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return n(e)}catch(e){return i.slice()}};t.exports.f=function(e){return i&&"[object Window]"==o.call(e)?a(e):n(r(e))}},{"./_object-gopn":50,"./_to-iobject":64}],50:[function(e,t,exports){var r=e("./_object-keys-internal"),n=e("./_enum-bug-keys").concat("length","prototype");exports.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},{"./_enum-bug-keys":26,"./_object-keys-internal":53}],51:[function(e,t,exports){exports.f=Object.getOwnPropertySymbols},{}],52:[function(e,t,exports){var r=e("./_has"),n=e("./_to-object"),o=e("./_shared-key")("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=n(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},{"./_has":31,"./_shared-key":59,"./_to-object":66}],53:[function(e,t,exports){var r=e("./_has"),n=e("./_to-iobject"),o=e("./_array-includes")(!1),i=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var a,u=n(e),s=0,c=[];for(a in u)a!=i&&r(u,a)&&c.push(a);for(;t.length>s;)r(u,a=t[s++])&&(~o(c,a)||c.push(a));return c}},{"./_array-includes":18,"./_has":31,"./_shared-key":59,"./_to-iobject":64}],54:[function(e,t,exports){var r=e("./_object-keys-internal"),n=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,n)}},{"./_enum-bug-keys":26,"./_object-keys-internal":53}],55:[function(e,t,exports){exports.f={}.propertyIsEnumerable},{}],56:[function(e,t,exports){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],57:[function(e,t,exports){t.exports=e("./_hide")},{"./_hide":32}],58:[function(e,t,exports){var r=e("./_object-dp").f,n=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,i){e&&!n(e=i?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},{"./_has":31,"./_object-dp":46,"./_wks":71}],59:[function(e,t,exports){var r=e("./_shared")("keys"),n=e("./_uid");t.exports=function(e){return r[e]||(r[e]=n(e))}},{"./_shared":60,"./_uid":68}],60:[function(e,t,exports){var r=e("./_global"),n="__core-js_shared__",o=r[n]||(r[n]={});t.exports=function(e){return o[e]||(o[e]={})}},{"./_global":30}],61:[function(e,t,exports){var r=e("./_to-integer"),n=e("./_defined");t.exports=function(e){return function(t,o){var i,a,u=String(n(t)),s=r(o),c=u.length;return s<0||s>=c?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},{"./_defined":23,"./_to-integer":63}],62:[function(e,t,exports){var r=e("./_to-integer"),n=Math.max,o=Math.min;t.exports=function(e,t){return e=r(e),e<0?n(e+t,0):o(e,t)}},{"./_to-integer":63}],63:[function(e,t,exports){var r=Math.ceil,n=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},{}],64:[function(e,t,exports){var r=e("./_iobject"),n=e("./_defined");t.exports=function(e){return r(n(e))}},{"./_defined":23,"./_iobject":35}],65:[function(e,t,exports){var r=e("./_to-integer"),n=Math.min;t.exports=function(e){return e>0?n(r(e),9007199254740991):0}},{"./_to-integer":63}],66:[function(e,t,exports){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":23}],67:[function(e,t,exports){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":37}],68:[function(e,t,exports){var r=0,n=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},{}],69:[function(e,t,exports){var r=e("./_global"),n=e("./_core"),o=e("./_library"),i=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=n.Symbol||(n.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:i.f(e)})}},{"./_core":21,"./_global":30,"./_library":43,"./_object-dp":46,"./_wks-ext":70}],70:[function(e,t,exports){exports.f=e("./_wks")},{"./_wks":71}],71:[function(e,t,exports){var r=e("./_shared")("wks"),n=e("./_uid"),o=e("./_global").Symbol,i="function"==typeof o,a=t.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:n)("Symbol."+e))};a.store=r},{"./_global":30,"./_shared":60,"./_uid":68}],72:[function(e,t,exports){var r=e("./_classof"),n=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[n]||e["@@iterator"]||o[r(e)]}},{"./_classof":19,"./_core":21,"./_iterators":41,"./_wks":71}],73:[function(e,t,exports){var r=e("./_an-object"),n=e("./core.get-iterator-method");t.exports=e("./_core").getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},{"./_an-object":17,"./_core":21,"./core.get-iterator-method":72}],74:[function(e,t,exports){var r=e("./_classof"),n=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").isIterable=function(e){var t=Object(e);return void 0!==t[n]||"@@iterator"in t||o.hasOwnProperty(r(t))}},{"./_classof":19,"./_core":21,"./_iterators":41,"./_wks":71}],75:[function(e,t,exports){"use strict";var r=e("./_add-to-unscopables"),n=e("./_iter-step"),o=e("./_iterators"),i=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,n(1)):"keys"==t?n(0,r):"values"==t?n(0,e[r]):n(0,[r,e[r]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":16,"./_iter-define":39,"./_iter-step":40,"./_iterators":41,"./_to-iobject":64}],76:[function(e,t,exports){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":24,"./_export":28,"./_object-dp":46}],77:[function(e,t,exports){},{}],78:[function(e,t,exports){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":39,"./_string-at":61}],79:[function(e,t,exports){"use strict";var r=e("./_global"),n=e("./_has"),o=e("./_descriptors"),i=e("./_export"),a=e("./_redefine"),u=e("./_meta").KEY,s=e("./_fails"),c=e("./_shared"),l=e("./_set-to-string-tag"),f=e("./_uid"),p=e("./_wks"),d=e("./_wks-ext"),h=e("./_wks-define"),_=e("./_keyof"),b=e("./_enum-keys"),y=e("./_is-array"),v=e("./_an-object"),m=e("./_to-iobject"),g=e("./_to-primitive"),j=e("./_property-desc"),w=e("./_object-create"),x=e("./_object-gopn-ext"),k=e("./_object-gopd"),O=e("./_object-dp"),S=e("./_object-keys"),M=k.f,C=O.f,P=x.f,E=r.Symbol,T=r.JSON,I=T&&T.stringify,A="prototype",W=p("_hidden"),R=p("toPrimitive"),F={}.propertyIsEnumerable,B=c("symbol-registry"),N=c("symbols"),q=c("op-symbols"),D=Object[A],L="function"==typeof E,Q=r.QObject,z=!Q||!Q[A]||!Q[A].findChild,G=o&&s(function(){return 7!=w(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=M(D,t);n&&delete D[t],C(e,t,r),n&&e!==D&&C(D,t,n)}:C,Y=function(e){var t=N[e]=w(E[A]);return t._k=e,t},J=L&&"symbol"==typeof E.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof E},U=function(e,t,r){return e===D&&U(q,t,r),v(e),t=g(t,!0),v(r),n(N,t)?(r.enumerable?(n(e,W)&&e[W][t]&&(e[W][t]=!1),r=w(r,{enumerable:j(0,!1)})):(n(e,W)||C(e,W,j(1,{})),e[W][t]=!0),G(e,t,r)):C(e,t,r)},K=function(e,t){v(e);for(var r,n=b(t=m(t)),o=0,i=n.length;i>o;)U(e,r=n[o++],t[r]);return e},X=function(e,t){return void 0===t?w(e):K(w(e),t)},H=function(e){var t=F.call(this,e=g(e,!0));return!(this===D&&n(N,e)&&!n(q,e))&&(!(t||!n(this,e)||!n(N,e)||n(this,W)&&this[W][e])||t)},V=function(e,t){if(e=m(e),t=g(t,!0),e!==D||!n(N,t)||n(q,t)){var r=M(e,t);return!r||!n(N,t)||n(e,W)&&e[W][t]||(r.enumerable=!0),r}},Z=function(e){for(var t,r=P(m(e)),o=[],i=0;r.length>i;)n(N,t=r[i++])||t==W||t==u||o.push(t);return o},$=function(e){for(var t,r=e===D,o=P(r?q:m(e)),i=[],a=0;o.length>a;)!n(N,t=o[a++])||r&&!n(D,t)||i.push(N[t]);return i};L||(E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(r){this===D&&t.call(q,r),n(this,W)&&n(this[W],e)&&(this[W][e]=!1),G(this,e,j(1,r))};return o&&z&&G(D,e,{configurable:!0,set:t}),Y(e)},a(E[A],"toString",function(){return this._k}),k.f=V,O.f=U,e("./_object-gopn").f=x.f=Z,e("./_object-pie").f=H,e("./_object-gops").f=$,o&&!e("./_library")&&a(D,"propertyIsEnumerable",H,!0),d.f=function(e){return Y(p(e))}),i(i.G+i.W+i.F*!L,{Symbol:E});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)p(ee[te++]);for(var ee=S(p.store),te=0;ee.length>te;)h(ee[te++]);i(i.S+i.F*!L,"Symbol",{for:function(e){return n(B,e+="")?B[e]:B[e]=E(e)},keyFor:function(e){if(J(e))return _(B,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),i(i.S+i.F*!L,"Object",{create:X,defineProperty:U,defineProperties:K,getOwnPropertyDescriptor:V,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),T&&i(i.S+i.F*(!L||s(function(){var e=E();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!J(e)){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);return t=n[1],"function"==typeof t&&(r=t),!r&&y(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!J(t))return t}),n[1]=t,I.apply(T,n)}}}),E[A][R]||e("./_hide")(E[A],R,E[A].valueOf),l(E,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},{"./_an-object":17,"./_descriptors":24,"./_enum-keys":27,"./_export":28,"./_fails":29,"./_global":30,"./_has":31,"./_hide":32,"./_is-array":36,"./_keyof":42,"./_library":43,"./_meta":44,"./_object-create":45,"./_object-dp":46,"./_object-gopd":48,"./_object-gopn":50,"./_object-gopn-ext":49,"./_object-gops":51,"./_object-keys":54,"./_object-pie":55,"./_property-desc":56,"./_redefine":57,"./_set-to-string-tag":58,"./_shared":60,"./_to-iobject":64,"./_to-primitive":67,"./_uid":68,"./_wks":71,"./_wks-define":69,"./_wks-ext":70}],80:[function(e,t,exports){e("./_wks-define")("asyncIterator")},{"./_wks-define":69}],81:[function(e,t,exports){e("./_wks-define")("observable")},{"./_wks-define":69}],82:[function(e,t,exports){e("./es6.array.iterator");for(var r=e("./_global"),n=e("./_hide"),o=e("./_iterators"),i=e("./_wks")("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var s=a[u],c=r[s],l=c&&c.prototype;l&&!l[i]&&n(l,i,s),o[s]=o.Array}},{"./_global":30,"./_hide":32,"./_iterators":41,"./_wks":71,"./es6.array.iterator":75}],83:[function(e,t,exports){"use strict";var r={linear:function(e,t,r,n){return r*e/n+t},easeInQuad:function(e,t,r,n){return r*(e/=n)*e+t},easeOutQuad:function(e,t,r,n){return-r*(e/=n)*(e-2)+t},easeInOutQuad:function(e,t,r,n){return(e/=n/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,r,n){return r*(e/=n)*e*e+t},easeOutCubic:function(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t},easeInOutCubic:function(e,t,r,n){return(e/=n/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,r,n){return r*(e/=n)*e*e*e+t},easeOutQuart:function(e,t,r,n){return-r*((e=e/n-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,r,n){return(e/=n/2)<1?r/2*e*e*e*e+t:-r/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,r,n){return r*(e/=n)*e*e*e*e+t},easeOutQuint:function(e,t,r,n){return r*((e=e/n-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,r,n){return(e/=n/2)<1?r/2*e*e*e*e*e+t:r/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,r,n){return-r*Math.cos(e/n*(Math.PI/2))+r+t},easeOutSine:function(e,t,r,n){return r*Math.sin(e/n*(Math.PI/2))+t},easeInOutSine:function(e,t,r,n){return-r/2*(Math.cos(Math.PI*e/n)-1)+t},easeInExpo:function(e,t,r,n){var o;return null!==(o=0===e)?o:{b:r*Math.pow(2,10*(e/n-1))+t}},easeOutExpo:function(e,t,r,n){var o;return null!==(o=e===n)?o:t+{c:r*(-Math.pow(2,-10*e/n)+1)+t}},easeInOutExpo:function(e,t,r,n){return(e/=n/2)<1?r/2*Math.pow(2,10*(e-1))+t:r/2*(-Math.pow(2,-10*--e)+2)+t},easeInCirc:function(e,t,r,n){return-r*(Math.sqrt(1-(e/=n)*e)-1)+t},easeOutCirc:function(e,t,r,n){return r*Math.sqrt(1-(e=e/n-1)*e)+t},easeInOutCirc:function(e,t,r,n){return(e/=n/2)<1?-r/2*(Math.sqrt(1-e*e)-1)+t:r/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,r,n){var o,i,a;return a=1.70158,i=0,o=r,0===e||1===(e/=n),i||(i=.3*n),o<Math.abs(r)?(o=r,a=i/4):a=i/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(e-=1))*Math.sin((e*n-a)*(2*Math.PI)/i))+t},easeOutElastic:function(e,t,r,n){var o,i,a;return a=1.70158,i=0,o=r,0===e||1===(e/=n),i||(i=.3*n),o<Math.abs(r)?(o=r,a=i/4):a=i/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*e)*Math.sin((e*n-a)*(2*Math.PI)/i)+r+t},easeInOutElastic:function(e,t,r,n){var o,i,a;return a=1.70158,i=0,o=r,0===e||2===(e/=n/2),i||(i=n*(.3*1.5)),o<Math.abs(r)?(o=r,a=i/4):a=i/(2*Math.PI)*Math.asin(r/o),e<1?-.5*(o*Math.pow(2,10*(e-=1))*Math.sin((e*n-a)*(2*Math.PI)/i))+t:o*Math.pow(2,-10*(e-=1))*Math.sin((e*n-a)*(2*Math.PI)/i)*.5+r+t},easeInBack:function(e,t,r,n,o){return void 0===o&&(o=1.70158),r*(e/=n)*e*((o+1)*e-o)+t},easeOutBack:function(e,t,r,n,o){return void 0===o&&(o=1.70158),r*((e=e/n-1)*e*((o+1)*e+o)+1)+t},easeInOutBack:function(e,t,r,n,o){return void 0===o&&(o=1.70158),(e/=n/2)<1?r/2*(e*e*(((o*=1.525)+1)*e-o))+t:r/2*((e-=2)*e*(((o*=1.525)+1)*e+o)+2)+t},easeInBounce:function(e,t,n,o){var i;return i=r.easeOutBounce(o-e,0,n,o),n-i+t},easeOutBounce:function(e,t,r,n){return(e/=n)<1/2.75?r*(7.5625*e*e)+t:e<2/2.75?r*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?r*(7.5625*(e-=2.25/2.75)*e+.9375)+t:r*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,o){var i;return e<o/2?(i=r.easeInBounce(2*e,0,n,o),.5*i+t):(i=r.easeOutBounce(2*e-o,0,n,o),.5*i+.5*n+t)}};t.exports=r},{}],84:[function(e,t,exports){"use strict";t.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t]}},{}],85:[function(e,t,exports){!function(e){var t=function(){var e=document.createElement("canvas"),t=e.getContext("2d"),r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}(),r=function(e,t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},n={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all"};1!==t&&(r(n,function(r,n){e[n]=function(e){return function(){var n,o,i=Array.prototype.slice.call(arguments);if("all"===r)i=i.map(function(e){return e*t});else if(Array.isArray(r))for(n=0,o=r.length;n<o;n++)i[r[n]]*=t;return e.apply(this,i)}}(e[n])}),e.stroke=function(e){return function(){this.lineWidth*=t,e.apply(this,arguments),this.lineWidth/=t}}(e.stroke),e.fillText=function(e){return function(){var r=Array.prototype.slice.call(arguments);r[1]*=t,r[2]*=t,this.font=this.font.replace(/(\d+)(px|em|rem|pt)/g,function(e,r,n){return r*t+n}),e.apply(this,r),this.font=this.font.replace(/(\d+)(px|em|rem|pt)/g,function(e,r,n){return r/t+n})}}(e.fillText),e.strokeText=function(e){return function(){var r=Array.prototype.slice.call(arguments);r[1]*=t,r[2]*=t,this.font=this.font.replace(/(\d+)(px|em|rem|pt)/g,function(e,r,n){return r*t+n}),e.apply(this,r),this.font=this.font.replace(/(\d+)(px|em|rem|pt)/g,function(e,r,n){return r/t+n})}}(e.strokeText))}(CanvasRenderingContext2D.prototype),function(e){e.getContext=function(e){return function(t){var r,n,o=e.call(this,t);return"2d"===t&&(r=o.backingStorePixelRatio||o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1,n=(window.devicePixelRatio||1)/r,n>1&&(this.style.height=this.height+"px",this.style.width=this.width+"px",this.width*=n,this.height*=n)),o}}(e.getContext)}(HTMLCanvasElement.prototype)},{}],86:[function(e,t,exports){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function n(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=n()?Object.assign:function(e,t){for(var n,a,u=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var c in n)o.call(n,c)&&(u[c]=n[c]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(u[a[l]]=n[a[l]])}}return u}},{}],87:[function(e,t,exports){(function(e){(function(){var r,n,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(r()-o)/1e6},n=e.hrtime,r=function(){var e;return e=n(),1e9*e[0]+e[1]},o=r()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o; },o=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:88}],88:[function(e,t,exports){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===n||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){_&&d&&(_=!1,d.length?h=d.concat(h):b=-1,h.length&&u())}function u(){if(!_){var e=o(a);_=!0;for(var t=h.length;t;){for(d=h,h=[];++b<t;)d&&d[b].run();b=-1,t=h.length}d=null,_=!1,i(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,f,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{f="function"==typeof clearTimeout?clearTimeout:n}catch(e){f=n}}();var d,h=[],_=!1,b=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new s(e,t)),1!==h.length||_||o(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],89:[function(e,t,exports){(function(r){for(var n=e("performance-now"),o="undefined"==typeof window?r:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!u&&c<i.length;c++)u=o[i[c]+"Request"+a],s=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!u||!s){var l=0,f=0,p=[],d=1e3/60;u=function(e){if(0===p.length){var t=n(),r=Math.max(0,d-(t-l));l=r+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return p.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}t.exports=function(e){return u.call(o,e)},t.exports.cancel=function(){s.apply(o,arguments)},t.exports.polyfill=function(){o.requestAnimationFrame=u,o.cancelAnimationFrame=s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":87}],90:[function(e,t,exports){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if("string"!=typeof e)throw new Error("color argument must be defined in the hex format as a string");t<0?t=0:t>1&&(t=1),e.indexOf("#")>-1&&(e=e.substr(1));var r=(0,p.default)(e),n=(0,a.default)(r,3),o=n[0],i=n[1],u=n[2];return{red:o,green:i,blue:u,alpha:t}}function o(e){var t=e.red,r=e.green,n=e.blue,o=e.alpha;return"rgba("+t+", "+r+", "+n+", "+o+")"}Object.defineProperty(exports,"__esModule",{value:!0});var i=e("babel-runtime/helpers/slicedToArray"),a=r(i),u=e("babel-runtime/helpers/classCallCheck"),s=r(u),c=e("babel-runtime/helpers/createClass"),l=r(c),f=e("hex-rgb"),p=r(f),d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ff0000",n=arguments[2];(0,s.default)(this,e),this.radius=t,this.setFillStyle(r,0),this.setStrokeStyle(n||r,1),this.x=0,this.y=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.lineWidth=.5}return(0,l.default)(e,[{key:"setScale",value:function(e){this.scaleX=e.x<0?0:e.x,this.scaleY=e.y<0?0:e.y}},{key:"setFillStyle",value:function(e,t){this.fillColor=n(e,t),this.fillStyle=o(this.fillColor)}},{key:"setStrokeStyle",value:function(e,t){this.strokeColor=n(e,t),this.strokeStyle=o(this.strokeColor)}},{key:"setFillAlpha",value:function(e){this.fillColor.alpha=e,this.fillStyle=o(this.fillColor)}},{key:"setStrokeAlpha",value:function(e){this.strokeColor.alpha=e,this.strokeStyle=o(this.strokeColor)}},{key:"draw",value:function(e){e.save(),e.translate(this.x,this.y),e.rotate(this.rotation),e.scale(this.scaleX,this.scaleY),e.lineWidth=this.lineWidth,e.fillStyle=this.fillStyle,e.beginPath(),e.arc(0,0,this.radius,0,2*Math.PI,!0),e.closePath(),e.fill(),this.lineWidth>0&&(e.strokeStyle=this.strokeStyle,e.stroke()),e.restore()}}]),e}();exports.default=d,t.exports=exports.default},{"babel-runtime/helpers/classCallCheck":6,"babel-runtime/helpers/createClass":7,"babel-runtime/helpers/slicedToArray":8,"hex-rgb":84}],91:[function(e,t,exports){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function n(e){function t(){return null!==this.options.centerWave&&"object"===(0,i.default)(this.options.centerWave)&&"number"==typeof this.options.centerWave.x&&"number"==typeof this.options.centerWave.y}function r(){var e=this;s.clearRect(0,0,l,h);var t=!0,n=!1,i=void 0;try{for(var a,c=(0,u.default)(g);!(t=(a=c.next()).done);t=!0){var f=a.value,p=y.default.easeInOutCubic(v,1,-.99,b),_=y.default.easeInOutCubic(v,1,.618,b);f.setScale({x:_,y:_}),this.onlyWaves||f.setFillAlpha(p),f.setStrokeAlpha(p),f.draw(s)}}catch(e){n=!0,i=e}finally{try{!t&&c.return&&c.return()}finally{if(n)throw i}}v=v<b?v+1:0,o=(0,d.default)(function(){return r.call(e)})}function n(){return"undefined"!=typeof o}var o,a,s,l,h,b,v,g=[],w=".js-wavy-center",x=function(){function e(t){(0,c.default)(this,e),this.options=(0,_.default)({},t),this.hexFillColor=t.hexFillColor,this.hexStrokeColor=t.hexStrokeColor,this.onlyWaves="undefined"==typeof t.onlyWaves||t.onlyWaves,this.radiuses=t.radiuses,this.duration=t.duration,this.selector=t.selector,this.centerWave=t.centerWave,this.centerWaveSelector=t.centerWaveSelector||w,this.selectorEl=this.options.selectorEl||null,this.generateCircles(),this.createCanvas(),this.setupCanvas(),this.setupCenterWave(),this.setupAnimation(),this.attachEvents()}return(0,f.default)(e,[{key:"generateCircles",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,o=(0,u.default)(this.radiuses);!(e=(n=o.next()).done);e=!0){var i=n.value;g.push(new m.default(i,this.hexFillColor,this.hexStrokeColor))}}catch(e){t=!0,r=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw r}}}},{key:"setupCanvas",value:function(){a.removeAttribute("width"),a.removeAttribute("height"),a.removeAttribute("style"),l=a.clientWidth,h=a.clientHeight,a.width=l,a.height=h,s=a.getContext("2d")}},{key:"setupCenterWave",value:function(){if(!t.call(this)){var e=this.selectorEl.querySelector(this.centerWaveSelector);return null===e?void(this.centerWave={x:l/2,y:h/2}):void(this.centerWave=(0,j.default)(this.selectorEl,e))}}},{key:"start",value:function(){return n()||r.call(this),this}},{key:"stop",value:function(){return n()&&((0,p.cancel)(o),o=void 0),this}},{key:"attachEvents",value:function(){var e=this;window.addEventListener("resize",function(){e.setupCanvas(),e.setupCenterWave(),e.setupAnimation()})}},{key:"setupAnimation",value:function(){b=this.duration/1e3*60,v=0;var e=!0,t=!1,r=void 0;try{for(var n,o=(0,u.default)(g);!(e=(n=o.next()).done);e=!0){var i=n.value;i.x=this.centerWave.x,i.y=this.centerWave.y,i.setFillAlpha(0)}}catch(e){t=!0,r=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw r}}}},{key:"createCanvas",value:function(){a=document.createElement("canvas");var e=this.selectorEl?this.selectorEl:document.querySelector(this.selector);if(null===e)throw new Error("Not found element: "+this.selector+" in the DOM");e.appendChild(a),this.selectorEl=e}}]),e}();return new x(e)}Object.defineProperty(exports,"__esModule",{value:!0});var o=e("babel-runtime/helpers/typeof"),i=r(o),a=e("babel-runtime/core-js/get-iterator"),u=r(a),s=e("babel-runtime/helpers/classCallCheck"),c=r(s),l=e("babel-runtime/helpers/createClass"),f=r(l);exports.default=n,e("hidpi-canvas/dist/hidpi-canvas");var p=e("raf"),d=r(p),h=e("object-assign"),_=r(h),b=e("easing-js"),y=r(b),v=e("./Circle"),m=r(v),g=e("./offsetParent"),j=r(g);t.exports=exports.default},{"./Circle":90,"./offsetParent":92,"babel-runtime/core-js/get-iterator":1,"babel-runtime/helpers/classCallCheck":6,"babel-runtime/helpers/createClass":7,"babel-runtime/helpers/typeof":9,"easing-js":83,"hidpi-canvas/dist/hidpi-canvas":85,"object-assign":86,raf:89}],92:[function(e,t,exports){"use strict";function r(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:-(r.left-n.left-n.width/2),y:-(r.top-n.top-n.height/2)}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=r,t.exports=exports.default},{}]},{},[91])(91)});