(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{484:function(t,i,e){"use strict";e.r(i),e.d(i,"DefaultOptions",(function(){return r})),e.d(i,"default",(function(){return h}));var n=e(13),s=e.n(n);function o(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function a(t){for(var i=1;i1&&void 0!==arguments[1]?arguments[1]:3e3;t&&(i.isRunning=!0,i.context=t.getContext("2d"),i.supportsAnimationFrame.call(window,i.updateWorld),e&&window.setTimeout(i.stop,e))})),s()(this,"updateWorld",(()=>{(this.isRunning||0!==this.particles.length)&&(this.update(),this.paint(),this.supportsAnimationFrame.call(window,this.updateWorld))})),s()(this,"update",(()=>{this.particles.length{if(this.context&&this.context.canvas){this.context.globalCompositeOperation="destination-out",this.context.fillStyle="rgba(0,0,0,0.5)",this.context.fillRect(0,0,this.context.canvas.width,this.context.canvas.height),this.context.globalCompositeOperation="lighter";for(let t=0;t{if(!this.context||!this.context.canvas)return;const t=this.context.canvas.width,i=this.context.canvas.height,e=Math.random()*(t-200)+100,n=Math.random()*(i-200)+100,s=50*Math.random()+100,o="rgb("+~~(200*Math.random()+55)+","+~~(200*Math.random()+55)+","+~~(200*Math.random()+55)+")";for(let t=0;ti&&(t.vy=t.vy>0?i:-i),this.particles.push(t)}})),s()(this,"stop",(async()=>{this.isRunning=!1})),s()(this,"drawParticle",(t=>{this.context&&this.context.canvas&&(this.context.save(),this.context.beginPath(),this.context.translate(t.x+t.w/2,t.y+t.h/2),this.context.arc(0,0,t.w,0,2*Math.PI),this.context.fillStyle=t.color,this.context.globalAlpha=t.alpha,this.context.closePath(),this.context.fill(),this.context.restore())})),s()(this,"move",(t=>(t.x+=t.vx,t.vy+=this.options.gravity,t.y+=t.vy,t.alpha-=.01,!(t.x<=-t.w||t.x>=screen.width||t.y>=screen.height||t.alpha<=0)))),this.options=a(a({},r),t)}}}}]); //# sourceMappingURL=2.js.map