text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("vueCanvasEffect",[],e):"object"==typeof exports?exports.vueCanvasEffect=e():t.vueCanvasEffect=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e){t.exports=function(t,e,n,o){var i,r=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,r=t.default);var s="function"==typeof r?r.options:r;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),o){var u=Object.create(s.computed||null);Object.keys(o).forEach(function(t){var e=o[t];u[t]=function(){return e}}),s.computed=u}return{esModule:i,exports:r,options:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),i=function(t,e){window.addEventListener("resize",o(t,e))};e.default=i},function(t,e){var n=function(){window.cancelAnimationFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t)}}(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}()};t.exports=n},function(t,e){function n(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t=void 0,e=void 0,i=void 0,r=void 0,a=void 0,s=void 0,u=1,d=arguments[0]||{},c=!1,l=arguments.length;if("boolean"==typeof d&&(c=d,d=arguments[1]||{},u++),"object"!==(void 0===d?"undefined":o(d))&&"function"!=typeof d&&(d={}),u===l)return d;for(;u<l;u++)if(null!=(e=arguments[u]))for(t in e)i=d[t],r=e[t],a=Array.isArray(r),c&&r&&("object"===(void 0===r?"undefined":o(r))||a)?(a?(a=!1,s=i&&Array.isArray(i)?i:[]):s=i&&"object"===(void 0===i?"undefined":o(i))?i:{},d[t]=n(c,s,r)):void 0!==r&&(d[t]=r);return d}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=n},function(t,e){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=t,o=void 0,i=!0;return function(){var t=this,r=arguments;if(i&&(n.apply(this,r),i=!1),o)return!1;o=setTimeout(function(){clearTimeout(o),o=null,n.apply(t,r)},e)}};t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),i=function(t){return t&&t.__esModule?t:{default:t}}(o);"undefined"!=typeof window&&window.Vue&&Vue.component(i.default.name,i.default),e.default=i.default},function(t,e,n){var o=n(0)(n(7),n(8),null,null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=function(t){return t&&t.__esModule?t:{default:t}}(o);n(2)();var r=n(3);e.default={name:"bubblesEffect",data:function(){return{circles:[],requestAniId:null}},props:{options:{type:Object,default:function(){return{}}}},computed:{opts:function(){return r({},{color:"rgba(225,225,225,0.5)",radius:15,densety:.3,clearOffset:.2},this.options)}},methods:{randomColor:function(){return"rgba("+Math.floor(255*Math.random())+", "+Math.floor(255*Math.random())+", "+Math.floor(255*Math.random())+", "+Math.random().toPrecision(2)+")"}},mounted:function(){function t(){cancelAnimationFrame(self.requestAniId),a.clearRect(0,0,n,o);for(var e in s)s[e].draw();self.requestAniId=requestAnimationFrame(t)}function e(){function t(){e.pos.x=Math.random()*n,e.pos.y=o+100*Math.random(),e.alpha=.1+Math.random()*u.clearOffset,e.scale=.1+.3*Math.random(),e.speed=Math.random(),e.color="random"===u.color?d.randomColor():u.color}var e=this;this.pos={},t(),this.draw=function(){e.alpha<=0&&t(),e.pos.y-=e.speed,e.alpha-=5e-4,a.beginPath(),a.arc(e.pos.x,e.pos.y,e.scale*u.radius,0,2*Math.PI,!1),a.fillStyle=e.color,a.fill(),a.closePath()}}var n=void 0,o=void 0,r=void 0,a=void 0,s=[],u=this.opts,d=this;!function(){n=window.innerWidth,o=window.innerHeight,r=d.$refs.canvas,r.width=n,r.height=o,a=r.getContext("2d");for(var i=0;i<n*u.densety;i++){var c=new e;s.push(c)}t()}(),(0,i.default)(function(){n=window.innerWidth,o=window.innerHeight,r.width=n,r.height=o})},beforeDestroy:function(){cancelAnimationFrame(this.requestAniId)}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{ref:"canvas",staticStyle:{position:"absolute",top:"0",left:"0"}})},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),i=function(t){return t&&t.__esModule?t:{default:t}}(o);"undefined"!=typeof window&&window.Vue&&Vue.component(i.default.name,i.default),e.default=i.default},function(t,e,n){var o=n(0)(n(11),n(12),null,null);t.exports=o.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=function(t){return t&&t.__esModule?t:{default:t}}(o);n(2)();var r=n(3);e.default={name:"neonEffect",data:function(){return{defaultOptions:{len:20,count:50,rate:20,dieChance:.05,spawnChance:1,sparkChance:.1,sparkDist:10,sparkSize:2,color:"hsl(hue,100%,light%)",contentLight:60,shadowToTimePropMult:6,LightInputMultiplier:.03,cx:window.innerWidth/2,cy:window.innerHeight/2,bgColorArr:[0,0,0],repaintAlpha:.04,hueChange:.1},requestAniId:null}},props:{options:{type:Object,default:function(){return{}}}},computed:{opts:function(){return r({},this.defaultOptions,this.options)}},components:{},methods:{},mounted:function(){function t(){this.opts=s.opts,this.reset()}var e=this,n=this.$refs.canvas,o=n.width=window.innerWidth,r=n.height=window.innerHeight,a=n.getContext("2d"),s=this,u=0,d=[],c=o/2/this.opts.len,l=r/2/this.opts.len,f=2*Math.PI/6;a.fillRect(0,0,o,r);t.prototype.reset=function(){this.x=0,this.y=0,this.addedX=0,this.addedY=0,this.rad=0,this.lightInputMultiplier=this.opts.LightInputMultiplier*Math.random(),this.color=this.opts.color.replace("hue",u*this.opts.hueChange),this.cumulativeTime=0,this.beginPhase()},t.prototype.beginPhase=function(){this.x+=this.addedX,this.y+=this.addedY,this.time=0,this.targetTime=this.opts.rate*Math.random()|0,this.rad+=f*(Math.random()<.5?1:-1),this.addedX=Math.cos(this.rad),this.addedY=Math.sin(this.rad),(Math.random()<this.opts.dieChance||this.x>c||this.x<-c||this.y>l||this.y<-l)&&this.reset()},t.prototype.step=function(){++this.time,++this.cumulativeTime,this.time>=this.targetTime&&this.beginPhase();var t=this.time/this.targetTime,e=Math.sin(t*Math.PI/2),n=this.addedX*e,o=this.addedY*e;a.shadowBlur=t*this.opts.shadowToTimePropMult,a.fillStyle=a.shadowColor=this.color.replace("light",this.opts.contentLight*Math.sin(this.cumulativeTime*this.lightInputMultiplier)),a.fillRect(this.opts.cx+(this.x+n)*this.opts.len,this.opts.cy+(this.y+o)*this.opts.len,2,2),Math.random()<this.opts.sparkChance&&a.fillRect(this.opts.cx+(this.x+n)*this.opts.len+Math.random()*this.opts.sparkDist*(Math.random()<.5?1:-1)-this.opts.sparkSize/2,this.opts.cy+(this.y+o)*this.opts.len+Math.random()*this.opts.sparkDist*(Math.random()<.5?1:-1)-this.opts.sparkSize/2,this.opts.sparkSize,this.opts.sparkSize)},function n(){cancelAnimationFrame(e.requestAniId),e.requestAniId=requestAnimationFrame(n),++u,a.globalCompositeOperation="source-over",a.shadowBlur=0,a.fillStyle="rgba("+e.opts.bgColorArr[0]+","+e.opts.bgColorArr[1]+","+e.opts.bgColorArr[2]+","+e.opts.repaintAlpha+")",a.fillRect(0,0,o,r),a.globalCompositeOperation="lighter",d.length<e.opts.count&&Math.random()<e.opts.spawnChance&&d.push(new t),d.map(function(t){t.step()})}(),(0,i.default)(function(){o=n.width=window.innerWidth,r=n.height=window.innerHeight,a.fillRect(0,0,o,r),e.opts.cx=o/2,e.opts.cy=r/2,c=o/2/e.opts.len,l=r/2/e.opts.len})},beforeDestroy:function(){window.cancelAnimationFrame(this.requestAniId)}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{ref:"canvas",staticStyle:{position:"absolute",top:"0",left:"0"}})},staticRenderFns:[]}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r=n(9),a=o(r),s=n(5),u=o(s),d=[a.default,u.default],c={Neon:a.default,Bubbles:u.default},l=function t(e){t.installed||d.map(function(t){e.component(t.name,t)})};"undefined"!=typeof window&&window.Vue&&l(window.Vue);var f=i({install:l},c);t.exports.default=t.exports=f}])});