text: (function(e){function t(t){for(var r,s,i=t[0],l=t[1],c=t[2],d=0,p=[];d<i.length;d++)s=i[d],Object.prototype.hasOwnProperty.call(n,s)&&n[s]&&p.push(n[s][0]),n[s]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);u&&u(t);while(p.length)p.shift()();return a.push.apply(a,c||[]),o()}function o(){for(var e,t=0;t<a.length;t++){for(var o=a[t],r=!0,s=1;s<o.length;s++){var l=o[s];0!==n[l]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=o[0]))}return e}var r={},n={app:0},a=[];function s(e){return i.p+"js/"+({about:"about"}[e]||e)+"."+{about:"5de8c738"}[e]+".js"}function i(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.e=function(e){var t=[],o=n[e];if(0!==o)if(o)t.push(o[2]);else{var r=new Promise((function(t,r){o=n[e]=[t,r]}));t.push(o[2]=r);var a,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=s(e);var c=new Error;a=function(t){l.onerror=l.onload=null,clearTimeout(d);var o=n[e];if(0!==o){if(o){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",c.name="ChunkLoadError",c.type=r,c.request=a,o[1](c)}n[e]=void 0}};var d=setTimeout((function(){a({type:"timeout",target:l})}),12e4);l.onerror=l.onload=a,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(o,r,function(t){return e[t]}.bind(null,r));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="app://./",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],c=l.push.bind(l);l.push=t,l=l.slice();for(var d=0;d<l.length;d++)t(l[d]);var u=c;a.push([0,"chunk-vendors"]),o()})({0:function(e,t,o){e.exports=o("ae1c")},1:function(e,t){},2849:function(e,t){e.exports=require("http")},"34bb":function(e,t){e.exports=require("electron")},3940:function(e,t,o){},"3c93":function(e,t){e.exports=require("crypto")},"42cd":function(e,t){e.exports=require("net")},"42cdc":function(e,t){e.exports=require("assert")},4600:function(e,t){e.exports=require("timers")},6265:function(e,t,o){},"6f3a":function(e,t){e.exports=require("url")},"7d76":function(e,t,o){"use strict";var r=o("a548"),n=o.n(r);n.a},"8cad":function(e,t){e.exports=require("util")},"8e57":function(e,t){e.exports=require("os")},"9ac2":function(e,t){e.exports=require("stream")},a548:function(e,t,o){},ae1c:function(e,t,o){"use strict";o.r(t);var r=o("4f1c"),n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app"}},[o("vue-particles",{attrs:{color:"#FFF5FC",clickMode:"repulse"}}),o("main-bar"),o("router-view")],1)},a=[],s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"hello"},[o("b-container",{staticClass:"main-container",attrs:{fluid:""}},[o("b-row",{staticClass:"pr-2 pt-2 tab-row"},[o("b-col",{staticClass:"drag-bar h-100",attrs:{cols:"10"}},[o("span",{staticClass:"header-title mx-auto"},[e._v("NetSpeed")])]),o("b-col",{staticClass:"text-right",attrs:{cols:"1"}},[o("button",{staticClass:"bar-button action-button",on:{click:e.minimizeWindow}},[o("i",{staticClass:"fas fa-minus"})])]),o("b-col",{staticClass:"text-right",attrs:{cols:"1"}},[o("button",{staticClass:"bar-button action-button",on:{click:e.closeWindow}},[o("i",{staticClass:"fas fa-times"})])])],1)],1)],1)},i=[],l=o("34bb"),c={name:"main-bar",data(){return{}},mounted(){},methods:{closeWindow(){l["remote"].getCurrentWindow().close()},minimizeWindow(){l["remote"].getCurrentWindow().minimize()}}},d=c,u=(o("f7b2"),o("8f2d")),p=Object(u["a"])(d,s,i,!1,null,"92760446",null),b=p.exports,f={name:"mainApp",components:{mainBar:b},mounted(){this.$forceUpdate()}},v=f,m=(o("7d76"),Object(u["a"])(v,n,a,!1,null,null,null)),g=m.exports,h=(o("222a"),o("8b87")),w=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"home"},[o("b-container",{attrs:{fluid:""}},[o("b-row",{staticClass:"p-3"},[o("b-card",{staticClass:"w-100",attrs:{"bg-variant":"info"}},[o("b-row",[o("b-col",[o("p",[o("i",{staticClass:"fas fa-hourglass-half"}),e._v(" Ping: ")]),o("div",{staticClass:"text-center numbers"},[e.pingLoad?o("b-spinner",{attrs:{variant:"dark",type:"grow",label:"Spinning"}}):o("div",[e._v(" "+e._s(e.ping)+" ")])],1)]),o("b-col",{class:{loadingText:e.downloadLoad}},[o("p",[o("i",{staticClass:"fas fa-cloud-download-alt"}),e._v(" Download speed: ")]),o("div",{staticClass:"text-center numbers"},[o("div",[e._v(" "+e._s(e.download)+" ")])])]),o("b-col",{class:{loadingText:e.uploadLoad}},[o("p",[o("i",{staticClass:"fas fa-cloud-upload-alt"}),e._v(" Upload speed:")]),o("div",{staticClass:"text-center numbers"},[o("div",[e._v(" "+e._s(e.upload)+" ")])])])],1)],1)],1),o("b-row",[o("b-col",[o("b-tabs",{attrs:{"content-class":"mt-3"}},[o("b-tab",{attrs:{active:""},scopedSlots:e._u([{key:"title",fn:function(){return[e.pingLoad?o("b-spinner",{attrs:{type:"grow",small:""}}):o("i",{staticClass:"fas fa-hdd"}),e._v(" "+e._s(e.pingLoad?"Connecting to server":"Best server")+" ")]},proxy:!0}])},[o("b-card",{attrs:{"bg-variant":"danger","img-alt":"Image","img-top":""}},[e.pingLoad?e._e():o("b-card-text",[e._v(" Country: "+e._s(e.bestServer.country)+" "),o("br"),e._v(" Sponsor: "+e._s(e.bestServer.sponsor)+" URL: "+e._s(e.bestServer.url)+" ")]),o("b-card-text",{staticClass:"small"},[e._v(e._s(e.bestServer.host))])],1)],1),o("b-tab",{scopedSlots:e._u([{key:"title",fn:function(){return[e.pingLoad?o("b-spinner",{attrs:{type:"grow",small:""}}):o("i",{staticClass:"fas fa-server"}),e._v(" "+e._s(e.pingLoad?"Connecting...":"Next best servers")+" ")]},proxy:!0}])},[e.servers.length?o("b-row",{staticClass:"mt-2 mb-0"},[o("b-col",[o("b-table",{staticClass:"mb-0",attrs:{responsive:!0,dark:!0,items:e.servers}})],1)],1):e._e()],1)],1)],1)],1),e.pingLoad?e._e():o("b-row",{staticClass:"mt-2"},[o("b-col",[o("b-button",{attrs:{variant:"danger",disabled:e.disabledButton},on:{click:e.startTest}},[e.disabledButton?o("div",[o("b-spinner",{attrs:{small:"",type:"grow"}}),o("span",[e._v(" Testing...")])],1):o("div",[o("i",{staticClass:"fas fa-redo-alt"}),o("span",[e._v(" Test again")])])])],1)],1)],1)],1)},x=[],_=(o("af65"),o("424c")),C=o.n(_),y={name:"home",data(){return{offline:!0,error:!1,errorMessage:"",ping:"",download:"",upload:"",pingLoad:!1,downloadLoad:!1,uploadLoad:!1,bestServer:[],servers:[],serversFields:["Country","Sponsor","Host","Ping"]}},computed:{disabledButton(){return this.pingLoad||this.downloadLoad||this.uploadLoad}},mounted(){this.startTest()},methods:{startTest(){var e=this,t=C()({maxTime:5e3});navigator.onLine?console.log("online"):console.log("offline"),e.pingLoad=!0,e.downloadLoad=!0,e.uploadLoad=!0,e.bestServer=[],e.servers=[],t.on("error",t=>{console.error(t),e.pingLoad=!1,e.downloadLoad=!1,e.uploadLoad=!1}),t.on("bestservers",t=>{var o=t.filter(e=>{return delete e["cc"],delete e["dist"],delete e["distMi"],delete e["id"],delete e["lat"],delete e["lon"],delete e["name"],delete e["url2"],e.bestPing=parseFloat(e.bestPing).toFixed(2),e});o.splice(0,1),e.servers=o,console.log("Closest servers: ",o)}),t.on("downloadspeedprogress",t=>{console.log(t),e.download=(125*t/100).toFixed(2)+" Mbps"}),t.on("downloadspeed",t=>{console.log(t),e.downloadLoad=!1,e.download=(125*t/100).toFixed(2)+" Mbps"}),t.on("uploadspeedprogress",t=>{console.warn(t),e.upload=(125*t/100).toFixed(2)+" Mbps"}),t.on("uploadspeed",t=>{console.log(t),e.uploadLoad=!1,e.upload=(125*t/100).toFixed(2)+" Mbps"}),t.on("testserver",t=>{console.log("Test server:"),console.dir(t),e.bestServer=t,e.pingLoad=!1,e.ping=parseFloat(t.bestPing).toFixed(2)+" ms"})}}},L=y,S=(o("ebdb"),Object(u["a"])(L,w,x,!1,null,null,null)),q=S.exports;r["default"].use(h["a"]);var P=[{path:"/",name:"home",component:q},{path:"/about",name:"about",component:()=>o.e("about").then(o.bind(null,"6cb6"))}],j=new h["a"]({mode:"hash",base:require("electron").remote.app.getAppPath(),routes:P}),O=j,T=o("32ca"),k=o("a37f");o("7334"),o("850b");r["default"].use(T["a"]),r["default"].use(k["a"]),r["default"].config.productionTip=!1,new r["default"]({router:O,render:e=>e(g)}).$mount("#app")},b658:function(e,t){e.exports=require("string_decoder")},ba09:function(e,t){e.exports=require("tls")},ebdb:function(e,t,o){"use strict";var r=o("3940"),n=o.n(r);n.a},ed62:function(e,t){e.exports=require("https")},f7b2:function(e,t,o){"use strict";var r=o("6265"),n=o.n(r);n.a},ff4a:function(e,t){e.exports=require("events")}});
  //# sourceMappingURL=app.f38bb475.js.map