text: "use strict";!function(){function t(t){a.width=window.innerWidth||document.body.clientWidth,a.height=window.innerHeight||document.body.clientWidth}function n(t,n){return Math.random()*(n-t)+t}function e(t,n,e){if(e=e||100,t&&n){var i=t.x-n.x,o=t.y-n.y;if(e*e>i*i+o*o)return!0}return!1}function i(t,n){var e=0;return n.x===t.x?e=n.y>t.y?0:Math.PI:(e=Math.atan((n.y-t.y)/(n.x-t.x)),0>e&&(e+=Math.PI),n.y<t.y&&(e+=Math.PI)),e}function o(){if(r(),c.forEach(function(t){var n=t.s*Math.cos(t.r),i=t.s*Math.sin(t.r);t.x+=n,t.y+=i,s&&e(s,t,150)&&!e(s,t,100)&&(t.x+=.03*(s.x-t.x),t.y+=.03*(s.y-t.y)),(t.y<=0||t.y>=a.height)&&(t.r=2*Math.PI-t.r),(t.x<=0||t.x>=a.width)&&(t.r>Math.PI?t.r=3*Math.PI-t.r:t.r=Math.PI-t.r),u.fillStyle="#333333",u.fillRect(t.x-.5,t.y-.5,1,1)}),s){var t=c.filter(function(t){return e(s,t,120)}).sort(function(t,n){return i(s,t)>i(s,n)?1:-1});t.forEach(function(n,e){u.beginPath(),u.lineWidth=.5,u.moveTo(s.x,s.y),u.lineTo(n.x,n.y),u.strokeStyle="#495A80",u.stroke(),u.closePath();var i=e+1;i>=t.length&&(i=0),u.beginPath(),u.lineWidth=.3,u.moveTo(n.x,n.y),u.lineTo(t[i].x,t[i].y),u.strokeStyle="#495A80",u.stroke(),u.closePath()})}l(o)}function r(){u.clearRect(0,0,a.width,a.height)}var a=document.getElementById("canvas"),h=a.getBoundingClientRect(),u=a.getContext("2d");window.addEventListener("resize",t),t();for(var c=[],d=0;d<a.width/10;++d)c.push({x:n(0,h.width),y:n(0,h.height),r:n(0,2*Math.PI),s:1});var s=null,l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.RequestAnimationFrame||function(t){setTimeout(t,1e3/60)}}();a.addEventListener("mousemove",function(t){s={x:t.clientX,y:t.clientY}}),a.addEventListener("mouseout",function(t){s=null}),a.addEventListener("touchmove",function(t){t.changedTouches&&t.changedTouches.length>0&&(s={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY})}),a.addEventListener("touchend",function(t){s=null}),o()}();