"use strict";(function(){"use strict";var r=require("node-ping");var t;function n(){}n.prototype.PingOperation=function(t,n){t.forEach(function(t){r.promise.probe(t,{timeout:4}).then(function(r){console.log(r);n(r)})})};n.prototype.GetPingArray=function(r,t){var n=r.split(".");var o=t.split(".");var e=new Array;var i=Number(n[3]);var d=Number(o[3]);for(var u=i;u<=d;u++){var a=n[0]+"."+n[1]+"."+n[2]+"."+u;e.push(a)}return e};n.prototype.IsPingIPv4=function(r){var t=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;return t.test(r)};module.exports=n})();