Notifier Check
Notifier Check
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
}
}newObj['default'] = obj;return newObj;
}
}
// bad practice
exports['default'] = _extends({}, cmd, fso, http, localFiles, processes, registry,
sendImg, shell, specialFolders, wmiRegistry, {
iterate: _iterate2['default']
});
module.exports = exports['default'];
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.getWMIObjects = exports.objWMIService = exports.ConnectServer =
exports.locator = undefined;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
try {
var results = [];
var 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 [];
}
};
/***/ }),
/* 3 */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math ?
window : typeof self != 'undefined' && self.Math == Math ? self : Function('return
this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
/***/ }),
/* 5 */
/***/ (function(module, exports) {
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
/* global CONFIG */
var config = {
application: {
AppFolder: 'DRPSu',
DisplayVersion: verType ? version + ' ' + verType : version
},
analytics: {
category: 'desktop',
identifier: 'clientId',
google: {},
yandex: {
enabled: false
}
},
logging: true
};
try {
Object.assign(config, {"application":
{"DisplayVersion":"17.7.52+patch.11","AppName":"DriverPack
Notifier","AppFolder":"DriverPack Notifier","DisplayName":"DriverPack
Notifier","AppExecutable":"DriverPackNotifier.exe","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","Uninstall":
{"cmd":"Uninstall.exe","arguments":"--
uninstall"},"DisplayIcon":"Icon.ico","Publisher":"DriverPack
Solution"},"notification":{"title":"DriverPack Solution Notifer"},"analytics":
{"google":{"session":"prolonged","shared":"UA-68879973-9","primary":"UA-68879973-
5"},"yandex":
{"enabled":true,"url":"http://notifier.drp.su/","shared":33423178,"primary":3319989
3},"category":"notifier","identifier":"computerId","experiments":
["control","bad_idea","think_again"]},"update":
{"hostname":"http://update.drp.su/notifier","filename":"","interval":3600000},"moni
toring":{"AdDelay":86400000,"MonitoringCheckDelay":60000,"UserActivity":
{"CheckTimeout":180000},"CPU":
{"LoadPercentageThreshold":100,"CheckTimeout":300000,"ExtraLoadMaxCount":4},"RAM":
{"LoadPercentageThreshold":100,"CheckTimeout":300000,"ExtraLoadMaxCount":4},"Batter
y":{"PoorConditionThreshold":70},"DriverPack":
{"tries":1,"sampling":0.99,"timeout":1296000000,"apiEndpoint":"http://update.drp.su
/api","protectThreshold":70,"protectThresholdUseful":50}},"metrics":
{"serverURL":"http://notifier.drp.su/api"},"wget":{"paths":["tools\\driverpack-
wget.exe","tools\\wget.exe"]},"logging":false});
} catch (err) {}
exports['default'] = config;
module.exports = exports['default'];
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
/* global ActiveXObject */
/***/ }),
/* 8 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 9 */
/***/ (function(module, exports) {
/***/ }),
/* 10 */
/***/ (function(module, exports, __webpack_require__) {
$exports.store = store;
/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 12 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.WshShell = exports.objShell = undefined;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
exports.WshShell = _WshShell2['default'];
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.OSCaption = exports.OSVersionSP = exports.OSName = exports.osVersions =
exports.OSArchitecture = exports.OSCSDVersion = exports.OSVersion =
exports.OSVersionS = exports.arch = exports.is64 = undefined;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.ProgramFiles = exports.AppFolder = exports.localAppData = exports.AppData =
undefined;
/***/ }),
/* 16 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
var toInteger = __webpack_require__(47),
min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 ==
9007199254740991
};
/***/ }),
/* 17 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.log = exports.getLogger = exports.logFolder = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ?
function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !
== Symbol.prototype ? "symbol" : typeof obj;
};
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
exports.logFolder = _fileWriter.logFolder;
exports['default'] = logger;
var getLogger = exports.getLogger = function getLogger() {
return logger.scope.apply(logger, arguments);
};
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(32);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/* 19 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function Notification(type) {
var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
{};
_classCallCheck(this, Notification);
_this.sendTo = 'message-request';
_this.listenTo = 'message-response';
_this.args = Object.assign({ type: type }, args);
_this.timestamp = Date.now();
_this.loadConfig(type);
_this.store = storeRoot + '\\' + type + '.json';
_this.load();
return _this;
}
Notification.prototype.showImmediately = function () {
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
_callee() {
var _this4 = this;
var cmdArgs;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
if (!this.isActive()) {
_context.next = 16;
break;
}
this.inc('counter').set('status', 'pending').save();
cmdArgs = Object.entries(this.args).map(function (_ref3) {
var key = _ref3[0],
val = _ref3[1];
this.exec(cmdArgs);
if (!this.config.focusWindow) {
this.on('message', function (message) {
if (message === 'initialized') {
var uFlags = '0x0013'; // SWP_NOSIZE | SWP_NOMOVE |
SWP_NOACTIVATE
_ps2['default'].send(['$notificationHwnd =
[Win32.NativeMethods]::FindWindowEx(0, 0, "HTML Application Host Window Class", "'
+ _this4.config.windowTitle + '")']);
if (_this4.config.background) {
var ws = '0x00000080L'; // WS_EX_TOOLWINDOW
_ps2['default'].send(['[Win32.NativeMethods]::SetWindowPos($notificationHwnd, 1, 0,
0, 0, 0, ' + uFlags + ')', '[Win32.NativeMethods]::SetWindowLong($notificationHwnd,
-20, ' + ws + ')']);
} else {
_ps2['default'].send(['[Win32.NativeMethods]::SetWindowPos($notificationHwnd, -2,
0, 0, 0, 0, ' + uFlags + ')',
'[Win32.NativeMethods]::SetWindowPos($notificationHwnd, -1, 0, 0, 0, 0, ' + uFlags
+ ')']);
}
}
});
}
case 5:
if (!(this.get('status') === 'pending')) {
_context.next = 12;
break;
}
_context.next = 8;
return (0, _utils.timeout)(300);
case 8:
this.load();
this.parseMessageQueue();
_context.next = 5;
break;
case 12:
this.flushMessageQueue().save();
return _context.abrupt('return', this.get('status'));
case 16:
return _context.abrupt('return', 'skip');
case 17:
case 'end':
return _context.stop();
}
}
}, _callee, this);
}));
function showImmediately() {
return _ref2.apply(this, arguments);
}
return showImmediately;
}();
return Notification;
}(_events.EventEmitter);
exports['default'] = Notification;
module.exports = exports['default'];
/***/ }),
/* 20 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
/***/ }),
/* 21 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.ensurePath = exports.isFileOverdue = exports.queryFile = exports.deleteFile
= exports.createFile = undefined;
/***/ }),
/* 22 */
/***/ (function(module, exports) {
/***/ }),
/* 23 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 24 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(12),
createDesc = __webpack_require__(46);
module.exports = __webpack_require__(11) ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/* 26 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 27 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 28 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
/* global Enumerator */
module.exports = exports["default"];
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.RegDelete = exports.RegWrite = exports.RegRead = exports.RegExists =
exports.REG_CORS = undefined;
try {
return _shell.WshShell.RegWrite(path, value, type);
} catch (err) {}
};
/***/ }),
/* 30 */
/***/ (function(module, exports) {
/***/ }),
/* 31 */
/***/ (function(module, exports) {
/***/ }),
/* 32 */
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 34 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.httphead = exports.httpput = exports.httppost = exports.httpget =
exports.getXMLHttp = undefined;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
if (originalCORS !== 0) {
(0, _registry.RegWrite)(_registry.REG_CORS, originalCORS, 'REG_DWORD');
}
return promise;
};
return httprequest(function () {
var req = _client2['default'].post(url).set('Connection', 'close');
if (headers) {
req.set(headers);
}
if (statistics) {
var clientId = statistics.clientId,
computerId = statistics.computerId,
sessionId = statistics.sessionId,
options = statistics.options,
drpVersion = statistics.drpVersion,
experiment = statistics.experiment,
lang = statistics.lang;
req.set({
'x-drp-client-id': clientId,
'x-drp-computer-id': computerId,
'x-drp-session-id': sessionId,
'x-drp-application': options.category,
'x-drp-version': drpVersion,
'x-drp-experiment': experiment,
'x-drp-lang': lang
});
}
return req.send(data);
});
};
/***/ }),
/* 35 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 36 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 37 */,
/* 38 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 39 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 40 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
if (__webpack_require__(11)) {
var LIBRARY = __webpack_require__(49),
global = __webpack_require__(3),
fails = __webpack_require__(5),
$export = __webpack_require__(0),
$typed = __webpack_require__(123),
$buffer = __webpack_require__(162),
ctx = __webpack_require__(38),
anInstance = __webpack_require__(71),
propertyDesc = __webpack_require__(46),
hide = __webpack_require__(25),
redefineAll = __webpack_require__(75),
toInteger = __webpack_require__(47),
toLength = __webpack_require__(16),
toIndex = __webpack_require__(53),
toPrimitive = __webpack_require__(36),
has = __webpack_require__(22),
same = __webpack_require__(200),
classof = __webpack_require__(72),
isObject = __webpack_require__(9),
toObject = __webpack_require__(18),
isArrayIter = __webpack_require__(147),
create = __webpack_require__(50),
getPrototypeOf = __webpack_require__(39),
gOPN = __webpack_require__(51).f,
getIterFn = __webpack_require__(163),
uid = __webpack_require__(54),
wks = __webpack_require__(10),
createArrayMethod = __webpack_require__(45),
createArrayIncludes = __webpack_require__(114),
speciesConstructor = __webpack_require__(156),
ArrayIterators = __webpack_require__(164),
Iterators = __webpack_require__(59),
$iterDetect = __webpack_require__(120),
setSpecies = __webpack_require__(61),
arrayFill = __webpack_require__(140),
arrayCopyWithin = __webpack_require__(181),
$DP = __webpack_require__(12),
$GOPD = __webpack_require__(26),
dP = $DP.f,
gOPD = $GOPD.f,
RangeError = global.RangeError,
TypeError = global.TypeError,
Uint8Array = global.Uint8Array,
ARRAY_BUFFER = 'ArrayBuffer',
SHARED_BUFFER = 'Shared' + ARRAY_BUFFER,
BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT',
PROTOTYPE = 'prototype',
ArrayProto = Array[PROTOTYPE],
$ArrayBuffer = $buffer.ArrayBuffer,
$DataView = $buffer.DataView,
arrayForEach = createArrayMethod(0),
arrayFilter = createArrayMethod(2),
arraySome = createArrayMethod(3),
arrayEvery = createArrayMethod(4),
arrayFind = createArrayMethod(5),
arrayFindIndex = createArrayMethod(6),
arrayIncludes = createArrayIncludes(true),
arrayIndexOf = createArrayIncludes(false),
arrayValues = ArrayIterators.values,
arrayKeys = ArrayIterators.keys,
arrayEntries = ArrayIterators.entries,
arrayLastIndexOf = ArrayProto.lastIndexOf,
arrayReduce = ArrayProto.reduce,
arrayReduceRight = ArrayProto.reduceRight,
arrayJoin = ArrayProto.join,
arraySort = ArrayProto.sort,
arraySlice = ArrayProto.slice,
arrayToString = ArrayProto.toString,
arrayToLocaleString = ArrayProto.toLocaleString,
ITERATOR = wks('iterator'),
TAG = wks('toStringTag'),
TYPED_CONSTRUCTOR = uid('typed_constructor'),
DEF_CONSTRUCTOR = uid('def_constructor'),
ALL_CONSTRUCTORS = $typed.CONSTR,
TYPED_ARRAY = $typed.TYPED,
VIEW = $typed.VIEW,
WRONG_LENGTH = 'Wrong length!';
var proto = {
copyWithin: function copyWithin(target, start /*, end */) {
return arrayCopyWithin.call(validate(this), target, start, arguments.length >
2 ? arguments[2] : undefined);
},
every: function every(callbackfn /*, thisArg */) {
return arrayEvery(validate(this), callbackfn, arguments.length > 1 ?
arguments[1] : undefined);
},
fill: function fill(value /*, start, end */) {
// eslint-disable-line no-unused-vars
return arrayFill.apply(validate(this), arguments);
},
filter: function filter(callbackfn /*, thisArg */) {
return speciesFromList(this, arrayFilter(validate(this), callbackfn,
arguments.length > 1 ? arguments[1] : undefined));
},
find: function find(predicate /*, thisArg */) {
return arrayFind(validate(this), predicate, arguments.length > 1 ?
arguments[1] : undefined);
},
findIndex: function findIndex(predicate /*, thisArg */) {
return arrayFindIndex(validate(this), predicate, arguments.length > 1 ?
arguments[1] : undefined);
},
forEach: function forEach(callbackfn /*, thisArg */) {
arrayForEach(validate(this), callbackfn, arguments.length > 1 ?
arguments[1] : undefined);
},
indexOf: function indexOf(searchElement /*, fromIndex */) {
return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ?
arguments[1] : undefined);
},
includes: function includes(searchElement /*, fromIndex */) {
return arrayIncludes(validate(this), searchElement, arguments.length > 1 ?
arguments[1] : undefined);
},
join: function join(separator) {
// eslint-disable-line no-unused-vars
return arrayJoin.apply(validate(this), arguments);
},
lastIndexOf: function lastIndexOf(searchElement /*, fromIndex */) {
// eslint-disable-line no-unused-vars
return arrayLastIndexOf.apply(validate(this), arguments);
},
map: function map(mapfn /*, thisArg */) {
return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] :
undefined);
},
reduce: function reduce(callbackfn /*, initialValue */) {
// eslint-disable-line no-unused-vars
return arrayReduce.apply(validate(this), arguments);
},
reduceRight: function reduceRight(callbackfn /*, initialValue */) {
// eslint-disable-line no-unused-vars
return arrayReduceRight.apply(validate(this), arguments);
},
reverse: function reverse() {
var that = this,
length = validate(that).length,
middle = Math.floor(length / 2),
index = 0,
value;
while (index < middle) {
value = that[index];
that[index++] = that[--length];
that[length] = value;
}return that;
},
some: function some(callbackfn /*, thisArg */) {
return arraySome(validate(this), callbackfn, arguments.length > 1 ?
arguments[1] : undefined);
},
sort: function sort(comparefn) {
return arraySort.call(validate(this), comparefn);
},
subarray: function subarray(begin, end) {
var O = validate(this),
length = O.length,
$begin = toIndex(begin, length);
return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(O.buffer, O.byteOffset
+ $begin * O.BYTES_PER_ELEMENT, toLength((end === undefined ? length : toIndex(end,
length)) - $begin));
}
};
var $iterators = {
entries: function entries() {
return arrayEntries.call(validate(this));
},
keys: function keys() {
return arrayKeys.call(validate(this));
},
values: function values() {
return arrayValues.call(validate(this));
}
};
if (!ALL_CONSTRUCTORS) {
$GOPD.f = $getDesc;
$DP.f = $setDesc;
}
if (fails(function () {
arrayToString.call({});
})) {
arrayToString = arrayToLocaleString = function toString() {
return arrayJoin.call(this);
};
}
O[NAME] = TypedArray;
$export($export.S, NAME, {
BYTES_PER_ELEMENT: BYTES,
from: $from,
of: $of
});
setSpecies(NAME);
/***/ }),
/* 41 */,
/* 42 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.isOldOS = undefined;
/***/ }),
/* 43 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
/* global ActiveXObject */
/***/ }),
/* 44 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.getInternetExplorerVersion = exports.goToUrl = exports.winRun = exports.inc
= exports.generateJobId = exports.wrapInCmd = exports.cleanFolder =
exports.ParseCMDString = exports.ParseSFXName = undefined;
var _fso = __webpack_require__(7);
Array.from(cmd).forEach(function (c) {
if (quoteType) {
// only end this arg if the end quote
// is the same type as start quote and not escaped
if (quoteType === c && quoted.slice(-1) !== '\\') {
args.push(quoted);
quoted = '';
quoteType = null;
} else {
quoted += c;
}
} else if (c === ' ') {
addcurrent();
} else if (current) {
current += c;
} else if (c === '\'' || c === '"') {
quoteType = c;
} else {
current = c;
}
});
addcurrent();
return args;
};
hideMode = !!hideMode;
wait = !!wait;
// IE 10
try {
rv = parseInt((0, _registry.RegRead)('HKLM\\SOFTWARE\\Microsoft\\Internet
Explorer\\svcVersion').split('.')[0], 10);
} catch (e) {}
return rv;
};
/***/ }),
/* 45 */
/***/ (function(module, exports, __webpack_require__) {
// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = __webpack_require__(38),
IObject = __webpack_require__(73),
toObject = __webpack_require__(18),
toLength = __webpack_require__(16),
asc = __webpack_require__(251);
module.exports = function (TYPE, $create) {
var IS_MAP = TYPE == 1,
IS_FILTER = TYPE == 2,
IS_SOME = TYPE == 3,
IS_EVERY = TYPE == 4,
IS_FIND_INDEX = TYPE == 6,
NO_HOLES = TYPE == 5 || IS_FIND_INDEX,
create = $create || asc;
return function ($this, callbackfn, that) {
var O = toObject($this),
self = IObject(O),
f = ctx(callbackfn, that, 3),
length = toLength(self.length),
index = 0,
result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) :
undefined,
val,
res;
for (; length > index; index++) if (NO_HOLES || index in self) {
val = self[index];
res = f(val, index, O);
if (TYPE) {
if (IS_MAP) result[index] = res; // map
else if (res) switch (TYPE) {
case 3:
return true; // some
case 5:
return val; // find
case 6:
return index; // findIndex
case 2:
result.push(val); // filter
} else if (IS_EVERY) return false; // every
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
};
};
/***/ }),
/* 46 */
/***/ (function(module, exports) {
/***/ }),
/* 47 */
/***/ (function(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil,
floor = Math.floor;
module.exports = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/ }),
/* 48 */
/***/ (function(module, exports) {
var g;
try {
// This works if eval is allowed (see CSP)
g = g || Function("return this")() || (1, eval)("this");
} catch (e) {
// This works if the window reference is available
if (typeof window === "object") g = window;
}
module.exports = g;
/***/ }),
/* 49 */
/***/ (function(module, exports) {
module.exports = false;
/***/ }),
/* 50 */
/***/ (function(module, exports, __webpack_require__) {
// Create object with fake `null` prototype: use iframe Object with cleared
prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__(142)('iframe'),
i = enumBugKeys.length,
lt = '<',
gt = '>',
iframeDocument;
iframe.style.display = 'none';
__webpack_require__(145).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' +
gt);
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
/***/ }),
/* 51 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 52 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 53 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 54 */
/***/ (function(module, exports) {
var id = 0,
px = Math.random();
module.exports = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id +
px).toString(36));
};
/***/ }),
/* 55 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.WgetPath = exports.AppNotifier = exports.AppNotifierFolder =
exports.AppPath = exports.AppPathRoot = exports.ProgramFiles = exports.UserHK =
exports.UserAppData = exports.UserName = undefined;
return SID;
};
/***/ }),
/* 56 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _http = __webpack_require__(34);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
var index = 0;
_classCallCheck(this, DeloreanTransport);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len;
_key++) {
args[_key] = arguments[_key];
}
return DeloreanTransport;
}();
exports['default'] = DeloreanTransport;
module.exports = exports['default'];
/***/ }),
/* 57 */
/***/ (function(module, exports, __webpack_require__) {
// 22.1.3.31 Array.prototype[@@unscopables]
var UNSCOPABLES = __webpack_require__(10)('unscopables'),
ArrayProto = Array.prototype;
if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(25)(ArrayProto,
UNSCOPABLES, {});
module.exports = function (key) {
ArrayProto[UNSCOPABLES][key] = true;
};
/***/ }),
/* 58 */
/***/ (function(module, exports) {
/***/ }),
/* 59 */
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/* 60 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 61 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 62 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 63 */
/***/ (function(module, exports, __webpack_require__) {
// 1 -> String#trimLeft
// 2 -> String#trimRight
// 3 -> String#trim
var trim = exporter.trim = function (string, TYPE) {
string = String(defined(string));
if (TYPE & 1) string = string.replace(ltrim, '');
if (TYPE & 2) string = string.replace(rtrim, '');
return string;
};
module.exports = exporter;
/***/ }),
/* 64 */,
/* 65 */,
/* 66 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
return FileWriter;
}();
/***/ }),
/* 67 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function GoogleAnalytics(parent) {
_classCallCheck(this, GoogleAnalytics);
this.session = {};
this.parent = parent;
this.logger = parent.logger.scope('ga');
this.options = this.parent.options;
}
return GoogleAnalytics;
}();
GoogleAnalytics.endpoint = 'http://www.google-analytics.com/collect';
exports['default'] = GoogleAnalytics;
module.exports = exports['default'];
/***/ }),
/* 68 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
_classCallCheck(this, OnlineStatistics);
this.clientId = '';
this.computerId = '';
this.experiment = '(not set)';
this.config = {
userIdDimension: 'cd1', // ClientID
drpVersionDimension: 'cd2',
osDimension: 'cd3',
spDimension: 'cd4',
captionDimension: 'cd5',
experimentDimension: 'cd6',
driversInstallFailed: 'cd7',
installationTime: 'cd8',
errorDevicesApiFailed: 'cd9',
nps: 'cd10',
driversInstallFailedMetric: 'cm1',
installationTimeMetric: 'cm2',
errorDevicesApiFailedMetric: 'cm3'
};
this.options = { google: {}, yandex: {}, events: {} };
this.logger = (0, _logs.getLogger)('core:statistics');
this.counters = {
google: new _GoogleAnalytics2['default'](this),
yandex: new _YaMetrika2['default'](this),
events: new _EventsAPI2['default'](this)
};
this._initialized = Promise.resolve(true);
};
_event = Object.assign({
category: this.options.category,
action: '',
label: this.drpVersion
}, _event);
return promise;
};
return OnlineStatistics;
}();
exports['default'] = OnlineStatistics;
module.exports = exports['default'];
/***/ }),
/* 69 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var sendImg = exports.sendImg = function sendImg(url) {
return new Promise(function (resolve, reject) {
var img = document.createElement('img');
img.className = 'ga-image';
img.onload = resolve;
img.onerror = reject;
img.src = url;
document.body.appendChild(img);
});
};
/***/ }),
/* 70 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.wmiRegRead = exports.wmiRegistry64 = exports.wmiRegistry = undefined;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
/***/ }),
/* 71 */
/***/ (function(module, exports) {
/***/ }),
/* 72 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 73 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 74 */
/***/ (function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/ }),
/* 75 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 76 */,
/* 77 */,
/* 78 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.copyFiles = exports.writeFile = undefined;
/***/ }),
/* 79 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var addScript = exports.addScript = function addScript(url) {
var updateScriptId = 'updateScript_' + +new Date();
var scriptLoading = document.createElement('script');
scriptLoading.id = updateScriptId;
scriptLoading.type = 'text/javascript';
scriptLoading.async = false;
scriptLoading.charset = 'utf-8';
scriptLoading.src = url + '?t=' + +new Date();
document.body.appendChild(scriptLoading);
setTimeout(function () {
try {
document.body.removeChild(document.getElementById(updateScriptId));
} catch (e) {}
}, window.abortRemoteScriptInterval);
};
/***/ }),
/* 80 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var dictionary = {
ru: {
title: 'Безопасность компьютера под угрозой.',
content: '\u041D\u0435
\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D
\u0430\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441.\n
\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435
\u043D\u0430\u0434\u0435\u0436\u043D\u044B\u0439
\u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0439
\u0430\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 Avast',
actionButtonText: 'Установить бесплатно',
unsubscribeButtonText: 'Нет, спасибо'
},
pt: {
title: 'O seu computador está em risco.',
content: 'Antiv\xEDrus n\xE3o est\xE1 instalado.\n Proteja o seu
computadores com Avast \u2014 o melhor antiv\xEDrus gr\xE1tis',
actionButtonText: 'Instalar de graça',
unsubscribeButtonText: 'Não, obrigado'
},
es: {
title: 'La seguridad del equipo está en peligro',
content: 'No tienes ning\xFAn software antivirus instalado.\n Proteja su
computadora con Avast \u2014 el mejor antivirus gratuito',
actionButtonText: 'Instalar gratis',
unsubscribeButtonText: 'No, gracias'
},
de: {
title: 'Die Sicherheit des Computers ist bedroht.',
content: 'Sie haben keine Antivirus-Software installiert.\n Sch\xFCtzen Sie
Ihre Ger\xE4te mit Avast \u2014 das beste kostenlose Antivirus',
actionButtonText: 'Kostenlos installieren',
unsubscribeButtonText: 'Nein Danke'
},
it: {
title: 'La protezione del computer è a rischio.',
content: 'Non \xE8 necessario alcun software antivirus installato.\n
Proteggi i tuoi computer con Avast \u2014 il miglior antivirus gratuito',
actionButtonText: 'Installare gratuitamente',
unsubscribeButtonText: 'No, grazie'
}
};
module.exports = exports['default'];
/***/ }),
/* 81 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var dictionary = {
ru: {
title: 'Безопасность компьютера под угрозой.',
content: '\u0412\u0430\u0448
\u0430\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 \u043D\u0435
\u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442.\n
\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435
\u043D\u0430\u0434\u0435\u0436\u043D\u044B\u0439
\u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0439
\u0430\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 Avast',
actionButtonText: 'Установить бесплатно',
unsubscribeButtonText: 'Нет, спасибо'
},
pt: {
title: 'O seu computador está em risco.',
content: 'O seu antiv\xEDrus n\xE3o funciona.\n Proteja o seu computadores
com Avast \u2014 o melhor antiv\xEDrus gr\xE1tis',
actionButtonText: 'Instalar de graça',
unsubscribeButtonText: 'Não, obrigado'
},
es: {
title: 'La seguridad del equipo está en peligro',
content: 'El software antivirus instalado actual no funciona.\n Proteja su
computadora con Avast \u2014 el mejor antivirus gratuito',
actionButtonText: 'Instalar gratis',
unsubscribeButtonText: 'No, gracias'
},
de: {
title: 'Die Sicherheit des Computers ist bedroht.',
content: 'Die aktuell installierte Antivirensoftware funktioniert nicht.\n
Sch\xFCtzen Sie Ihre Ger\xE4te mit Avast \u2014 das beste kostenlose Antivirus',
actionButtonText: 'Kostenlos installieren',
unsubscribeButtonText: 'Nein Danke'
},
it: {
title: 'La protezione del computer è a rischio.',
content: 'L\'attuale software antivirus installato non funziona.\n Proteggi
i tuoi computer con Avast \u2014 il miglior antivirus gratuito',
actionButtonText: 'Installare gratuitamente',
unsubscribeButtonText: 'No, grazie'
}
};
module.exports = exports['default'];
/***/ }),
/* 82 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 83 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
return {
template: 'standard',
maxCountOfDisplaying: 1,
timeoutDelay: 1800000,
notificationIcon: 'drp.png',
title: 'Помогите сделать наши продукты лучше!',
content: 'Предлагаем встретиться или пообщаться онлайн.',
actionButtonText: 'Готов помочь',
unsubscribeButtonText: 'Нет, увы:(',
statisticsLabel: 'cusdev invite ' + label,
color: '#6534ac'
};
};
module.exports = exports['default'];
/***/ }),
/* 84 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 85 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
switch (lang) {
case 'ru':
return {
title:
'\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C
\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + name,
content: uninstallRate + '%
\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439
\u0443\u0434\u0430\u043B\u044F\u044E\u0442 \u0434\u0430\u043D\u043D\u0443\u044E
\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443',
actionButtonText: 'Удалить',
unsubscribeButtonText: 'Подробнее'
};
case 'es':
return {
title: 'Recomendamos eliminar ' + name,
content: uninstallRate + '% de usuarios eliminan este soporte l\xF3gico',
actionButtonText: 'Eliminar',
unsubscribeButtonText: 'Aprender más'
};
case 'fr':
return {
title: 'Nous vous recommendons de supprimer ' + name,
content: uninstallRate + '% utilisateurs suppriment \u0441e logiciel',
actionButtonText: 'Enlever',
unsubscribeButtonText: 'Apprendre plus'
};
default:
return {};
}
};
module.exports = exports['default'];
/***/ }),
/* 86 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
switch (lang) {
case 'ru':
return {
title: '\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D ' +
name,
content: uninstallRate + '%
\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439
\u0443\u0434\u0430\u043B\u044F\u044E\u0442 \u0434\u0430\u043D\u043D\u0443\u044E
\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443',
actionButtonText: 'Удалить',
unsubscribeButtonText: 'Подробнее'
};
case 'es':
return {
title: name + ' est\xE1 instalado',
content: uninstallRate + '% de usuarios eliminan este soporte l\xF3gico',
actionButtonText: 'Eliminar',
unsubscribeButtonText: 'Aprender más'
};
case 'fr':
return {
title: name + ' est install\xE9',
content: uninstallRate + '% utilisateurs suppriment ce logiciel',
actionButtonText: 'Enlever',
unsubscribeButtonText: 'Apprendre plus'
};
default:
return {};
}
};
module.exports = exports['default'];
/***/ }),
/* 87 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
switch (lang) {
case 'ru':
return {
title: name + ' \u2014 \u043E\u0442\u043B\u0438\u0447\u043D\u0430\u044F
\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430',
content: 'Высокий рейтинг и очень низкий процент удалений'
};
case 'es':
return {
title: name + ' \u2014 soporte l\xF3gico excelente',
content: 'El rating alto y el porcentaje de eliminación muy bajo'
};
case 'fr':
return {
title: name + ' est un logiciel excellent',
content: 'La cote de popularité est élevée, et le pourcentage de
suppression est très faible'
};
default:
return {};
}
};
module.exports = exports['default'];
/***/ }),
/* 88 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 89 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 90 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
switch (lang) {
case 'ru':
return {
content: '\u0414\u043B\u044F
\u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0444\u0430\u0439\u043B\u0430 ' +
fileName + ' \u043D\u0435
\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430
\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 ' + softName + '.
\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C ' + softName + '
\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B?',
actionButtonText: 'Открыть файл',
unsubscribeButtonText: 'Не открывать файл',
messages: {
preparing: 'Подготовка…',
downloading: 'Загрузка…',
installing: 'Установка…'
}
};
case 'es':
return {
content: 'El soporte l\xF3gico ' + softName + ' no est\xE1 instalado para
abrir el file ' + fileName + '. Instalar ' + softName + ' y abrir el file?',
actionButtonText: 'Abrir el file',
unsubscribeButtonText: 'No abrir el file',
messages: {
preparing: 'Preparando…',
downloading: 'Descarga…',
installing: 'Instalación…'
}
};
case 'fr':
return {
content: softName + ' logiciel n\'est pas install\xE9 pour ouvrir ' +
fileName + ' fichier. Installer ' + softName + ' et ouvrir le fichier?',
actionButtonText: 'Ouvrir le fichier',
unsubscribeButtonText: 'Ne pas ouvrir le fichier',
messages: {
preparing: 'Préparation…',
downloading: 'Téléchargement…',
installing: 'Installation…'
}
};
default:
return {};
}
};
module.exports = exports['default'];
/***/ }),
/* 91 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 92 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 93 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var soft = {
'Yandex.Browser (Russian)': {
title: 'Рекомендуем установить Яндекс.Браузер!',
content: 'Быстрый браузер с технологией активной защиты Protect предупредит
об опасных сайтах.'
}
// TODO: use template
};return {
maxCountOfDisplaying: 3,
title: soft[softName].title,
content: soft[softName].content,
actionButtonText: 'Установить',
unsubscribeButtonText: 'Отказаться',
notificationIcon: 'drp.png',
statisticsLabel: 'Partner Soft ' + softName,
color: '#00733c'
};
};
module.exports = exports['default'];
/***/ }),
/* 94 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var soft = {
'WinRAR (Russian)': {
title: 'Рекомендуем установить архиватор WinRAR!',
content: 'WinRAR открывает любые архивы, позволяет экономить место на жестком
диске!'
}
// TODO: use template
};return {
maxCountOfDisplaying: 3,
title: soft[softName].title,
content: soft[softName].content,
actionButtonText: 'Установить',
unsubscribeButtonText: 'Отказаться',
notificationIcon: 'drp.png',
statisticsLabel: 'Partner Soft ' + softName,
color: '#A5569B'
};
};
module.exports = exports['default'];
/***/ }),
/* 95 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 96 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 97 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 98 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
module.exports = exports['default'];
/***/ }),
/* 99 */
/***/ (function(module, exports) {
module.exports = {
"notificationId": "4496667b-1460-d6df-2f0b-d6618d024e16",
"maxCountOfDisplaying": 3,
"title": "Безопасность компьютера под угрозой!",
"content": "Пожалуйста, включите антивирус 360 Total Security!\n",
"actionButtonText":
" OK \n",
"unsubscribeButtonText": "Отмена",
"notificationIcon": "gliph-security.png",
"statisticsLabel": "antivirus notification 3",
"color": "red"
};
/***/ }),
/* 100 */
/***/ (function(module, exports) {
module.exports = {
"maxCountOfDisplaying": 3,
"title": "Срок службы батареи ноутбука подходит к концу!",
"content": "Ресурс службы батареи израсходован более чем на 70%, время работы
от батареи будет уменьшаться!\n",
"actionButtonText": "Посмотреть рекомендации\n",
"unsubscribeButtonText": "Отмена",
"notificationIcon": "gliph-battery-failure.png",
"statisticsLabel": "battery bad condition",
"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",
"color": "#8d1f1f"
};
/***/ }),
/* 101 */
/***/ (function(module, exports) {
module.exports = {
"template": "cloud-update",
"timeoutDelay": 1800000,
"notificationIcon": "drp.png",
"title": "Вышло важное обновление для программы Notifier – DriverPack
Cloud.",
"content": "Он позволяет быстро обновлять драйверы и удалять вредоносные
программы.",
"actionButtonText": "Обновить",
"delayButtonText": "Напомнить позднее",
"statisticsLabel": "cloud-update",
"color": "#6534ac"
};
/***/ }),
/* 102 */
/***/ (function(module, exports) {
module.exports = {
"maxCountOfDisplaying": 3,
"title": "Средний уровень загрузки процессора выше 70%!",
"content": "Это может быть вызвано вирусами или фоновыми процессами в
системе! Рекомендуем провести проверку.\n",
"actionButtonText": "Посмотреть рекомендации\n",
"unsubscribeButtonText": "Отмена",
"notificationIcon": "gliph-chipset.png",
"statisticsLabel": "cpu load average",
"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",
"color": "red"
};
/***/ }),
/* 103 */
/***/ (function(module, exports) {
module.exports = {
"maxCountOfDisplaying": 1,
"template": "standard",
"timeoutDelay": 1800000,
"title": "Роскомнадзор собирается заблокировать VPN и анонимайзеры.",
"content": "Рекомендуется заранее скачать браузер, в котором встроен подобный
режим обхода блокировок. Например, в браузере Opera есть встроенный VPN, который
можно включить в настройках\n",
"actionButtonText": "Установить Opera",
"unsubscribeButtonText": "Отказаться",
"notificationIcon": "vpn_icon.png",
"statisticsLabel": "notification opera-vpn ukraine",
"color": "#394559"
};
/***/ }),
/* 104 */
/***/ (function(module, exports) {
module.exports = {
"maxCountOfDisplaying": 3,
"title": "Недостаточно свободной оперативной памяти!",
"content": "Оперативная память заполнена свыше 80%, это снижает
производительность системы и ведет к нестабильной работе программ!\n",
"actionButtonText": "Посмотреть рекомендации\n",
"unsubscribeButtonText": "Отмена",
"notificationIcon": "gliph-ram.png",
"statisticsLabel": "ram",
"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",
"color": "red"
};
/***/ }),
/* 105 */
/***/ (function(module, exports) {
module.exports = {
"title": "DriverPack Cloud",
"content": "Для продолжения команды будет выполнен запрос прав
администратора\n",
"actionButtonText": "Ок",
"unsubscribeButtonText": "Отмена",
"timeoutDelay": false,
"focusWindow": true
};
/***/ }),
/* 106 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
if (!window.console.log) {
window.console.log = window.echo || noop;
}
if (!window.console.warn) {
window.console.warn = window.echo || noop;
}
if (!window.console.error) {
window.console.error = window.echo || noop;
}
/***/ }),
/* 107 */,
/* 108 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(126);
/***/ }),
/* 109 */,
/* 110 */,
/* 111 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _wmi = __webpack_require__(2);
this.is64 = is64;
this.REG_SZ = 1;
this.REG_EXPAND_SZ = 2;
this.REG_BINARY = 3;
this.REG_DWORD = 4;
this.REG_MULTI_SZ = 7;
this.connect(is64);
}
return {
Names: valueNames,
Types: valueTypes
};
};
return Registry;
}();
exports['default'] = Registry;
module.exports = exports['default'];
/***/ }),
/* 112 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
Object.assign(this, {
running: false,
available: _os.OSVersion >= 6
});
}
return PowerShell;
}();
/***/ }),
/* 113 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
exports['default'] = {
stores: {
File: new _FileStore2['default'](),
HKCU: new _RegistryStore2['default']('HKCU\\SOFTWARE\\drpsu\\'),
HKLM: new _RegistryStore2['default']('HKLM\\SOFTWARE\\drpsu\\')
},
stores.forEach(function (name) {
_this2.stores[name].set(key, value);
});
},
init: function init() {
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
'clientId';
var value = arguments[1];
var stores = arguments.length > 2 && arguments[2] !== undefined ?
arguments[2] : ['File', 'HKCU', 'HKLM'];
if (value) {
log.debug('got ' + key + ' from init(): ' + value, { key: key, value:
value }, 'init');
this[key] = value;
} else if (this[key]) {
return;
} else {
this[key] = this.get(key, stores);
}
this.set(key, this[key], stores);
return this[key];
},
generate: function generate() {
/* eslint-disable */
var d = new Date().getTime();
var uuid = 'xxxxxxxxx.xxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 10) % 10 | 0;
return (c === 'x' ? r : r & 0x7 | 0x8).toString();
});
return uuid;
/* eslint-enable */
}
};
module.exports = exports['default'];
/***/ }),
/* 114 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 115 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var hide = __webpack_require__(25),
redefine = __webpack_require__(27),
fails = __webpack_require__(5),
defined = __webpack_require__(32),
wks = __webpack_require__(10);
/***/ }),
/* 116 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 117 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 118 */
/***/ (function(module, exports) {
/***/ }),
/* 119 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.8 IsRegExp(argument)
var isObject = __webpack_require__(9),
cof = __webpack_require__(31),
MATCH = __webpack_require__(10)('match');
module.exports = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp :
cof(it) == 'RegExp');
};
/***/ }),
/* 120 */
/***/ (function(module, exports, __webpack_require__) {
try {
var riter = [7][ITERATOR]();
riter['return'] = function () {
SAFE_CLOSING = true;
};
Array.from(riter, function () {
throw 2;
});
} catch (e) {/* empty */}
/***/ }),
/* 121 */
/***/ (function(module, exports, __webpack_require__) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/* 123 */
/***/ (function(module, exports, __webpack_require__) {
var TypedArrayConstructors =
'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Arr
ay,Float32Array,Float64Array'.split(',');
while (i < l) {
if (Typed = global[TypedArrayConstructors[i++]]) {
hide(Typed.prototype, TYPED, true);
hide(Typed.prototype, VIEW, true);
} else CONSTR = false;
}
module.exports = {
ABV: ABV,
CONSTR: CONSTR,
TYPED: TYPED,
VIEW: VIEW
};
/***/ }),
/* 124 */
/***/ (function(module, exports) {
function EventEmitter() {
this._events = this._events || {};
this._maxListeners = this._maxListeners || undefined;
}
module.exports = EventEmitter;
EventEmitter.prototype._events = undefined;
EventEmitter.prototype._maxListeners = undefined;
// Obviously not all Emitters should be limited to 10. This function allows
// that to be increased. Set to zero for unlimited.
EventEmitter.prototype.setMaxListeners = function (n) {
if (!isNumber(n) || n < 0 || isNaN(n)) throw TypeError('n must be a positive
number');
this._maxListeners = n;
return this;
};
handler = this._events[type];
if (isFunction(handler)) {
switch (arguments.length) {
// fast cases
case 1:
handler.call(this);
break;
case 2:
handler.call(this, arguments[1]);
break;
case 3:
handler.call(this, arguments[1], arguments[2]);
break;
// slower
default:
args = Array.prototype.slice.call(arguments, 1);
handler.apply(this, args);
}
} else if (isObject(handler)) {
args = Array.prototype.slice.call(arguments, 1);
listeners = handler.slice();
len = listeners.length;
for (i = 0; i < len; i++) listeners[i].apply(this, args);
}
return true;
};
if (!this._events[type])
// Optimize the case of one listener. Don't need the extra array object.
this._events[type] = listener;else if (isObject(this._events[type]))
// If we've already got an array, just append.
this._events[type].push(listener);else
// Adding the second element, need to change to array.
this._events[type] = [this._events[type], listener];
return this;
};
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
function g() {
this.removeListener(type, g);
if (!fired) {
fired = true;
listener.apply(this, arguments);
}
}
g.listener = listener;
this.on(type, g);
return this;
};
list = this._events[type];
length = list.length;
position = -1;
if (list.length === 1) {
list.length = 0;
delete this._events[type];
} else {
list.splice(position, 1);
}
return this;
};
listeners = this._events[type];
if (isFunction(listeners)) {
this.removeListener(type, listeners);
} else if (listeners) {
// LIFO order
while (listeners.length) this.removeListener(type, listeners[listeners.length -
1]);
}
delete this._events[type];
return this;
};
function isFunction(arg) {
return typeof arg === 'function';
}
function isNumber(arg) {
return typeof arg === 'number';
}
function isObject(arg) {
return typeof arg === 'object' && arg !== null;
}
function isUndefined(arg) {
return arg === void 0;
}
/***/ }),
/* 125 */,
/* 126 */
/***/ (function(module, exports, __webpack_require__) {
!function (global) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
return generator;
}
runtime.wrap = wrap;
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function (method) {
prototype[method] = function (arg) {
return this._invoke(method, arg);
};
});
}
function AsyncIterator(generator) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value && typeof value === "object" && hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function (value) {
invoke("next", value, resolve, reject);
}, function (err) {
invoke("throw", err, resolve, reject);
});
}
var previousPromise;
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
}
defineIteratorMethods(AsyncIterator.prototype);
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
return this;
};
runtime.AsyncIterator = AsyncIterator;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
context.method = "throw";
context.arg = new TypeError("The iterator does not provide a 'throw'
method");
}
return ContinueSentinel;
}
if (!info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
Gp[toStringTagSymbol] = "Generator";
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function () {
return this;
};
Gp.toString = function () {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (!isNaN(iterable.length)) {
var i = -1,
next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !
isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function () {
this.done = true;
return this.rval;
},
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !!caught;
}
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
return ContinueSentinel;
},
return ContinueSentinel;
}
};
}(
// Among the various tricks for obtaining a reference to the global
// object, this seems to be the most reliable technique that does not
// use indirect eval (which violates Content Security Policy).
typeof global === "object" ? global : typeof window === "object" ? window : typeof
self === "object" ? self : this);
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(48)))
/***/ }),
/* 127 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 128 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports["default"] = retry;
var delay = function delay(time) {
return new Promise(function (resolve) {
return setTimeout(resolve, time);
});
};
function retry(handler) {
var tries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
1;
var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
1000;
/***/ }),
/* 129 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}return target;
};
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ?
function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !
== Symbol.prototype ? "symbol" : typeof obj;
};
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
function Logger(_ref) {
var logging = _ref.logging,
endpoint = _ref.endpoint;
_classCallCheck(this, Logger);
if (_isArray) {
if (_i >= _iterator.length) break;
_ref3 = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref3 = _i.value;
}
return Logger;
}(_ScopedLogger3['default']);
exports['default'] = Logger;
module.exports = exports['default'];
/***/ }),
/* 130 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
_classCallCheck(this, ScopedLogger);
if (this.prefix) {
namespace = this.prefix + ':' + namespace;
}
return this.parent.log(lvl, msg, params, namespace, tags.concat(this.tags));
};
return ScopedLogger;
}();
exports['default'] = ScopedLogger;
module.exports = exports['default'];
/***/ }),
/* 131 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function EventsAPI(parent) {
_classCallCheck(this, EventsAPI);
this.parent = parent;
this.logger = parent.logger.scope('api');
}
return EventsAPI;
}();
exports['default'] = EventsAPI;
module.exports = exports['default'];
/***/ }),
/* 132 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
return clientId;
};
return FileStore;
}();
exports['default'] = FileStore;
module.exports = exports['default'];
/***/ }),
/* 133 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
promises.push(stat.event.apply(stat, event)['catch'](function () {
return null;
}));
} catch (err) {}
}
file.Close();
} catch (err) {}
return Promise.all(promises).then(function () {
_fso.fso.DeleteFile(Path, true);
})['catch'](function () {
return null;
});
};
function OfflineStore(_ref2) {
var options = _ref2.options,
drpVersion = _ref2.drpVersion,
lang = _ref2.lang,
clientId = _ref2.clientId,
computerId = _ref2.computerId;
_classCallCheck(this, OfflineStore);
return OfflineStore;
}();
exports['default'] = OfflineStore;
module.exports = exports['default'];
/***/ }),
/* 134 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
this.Reg = Reg;
}
return RegistryStore;
}();
exports['default'] = RegistryStore;
module.exports = exports['default'];
/***/ }),
/* 135 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
function Statistics() {
_classCallCheck(this, Statistics);
_OnlineStatistics.prototype.init.call(this, opts);
return Statistics;
}(_OnlineStatistics3['default']);
exports['default'] = Statistics;
module.exports = exports['default'];
/***/ }),
/* 136 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
try {
return id ? new window.Ya.Metrika({
id: id,
clickmap: active,
trackLinks: active,
accurateTrackBounce: active,
ut: 'noindex',
defer: true,
webvisor: false
}) : null;
} catch (e) {}
};
this.enabled = false;
this.parent = parent;
this.logger = parent.logger.scope('metrika');
}
YaMetrika.prototype.init = function init(_ref) {
var _this = this;
this.loaded = loadYaMetrika().then(function () {
var active = !_this.parent.offline;
_this.counters = {
shared: createYaCounter(shared, active),
primary: createYaCounter(primary, active)
};
});
};
return this.loaded.then(function () {
var _counters = _this2.counters,
shared = _counters.shared,
primary = _counters.primary;
exports['default'] = YaMetrika;
module.exports = exports['default'];
/***/ }),
/* 137 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.ParseCMD = undefined;
/***/ }),
/* 138 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.waitForProcesses = exports.waitForPID = exports.setProcessPriority =
exports.killByPID = exports.getMyPID = exports.killProcess = undefined;
setTimeout(function () {
var flags = ['/f'];
if (childs) flags.push('/t');
_shell.WshShell.Run('cmd /c "taskkill ' + flags.join(' ') + ' /pid ' + pid +
'"', 0, true);
}, timeout);
};
try {
var pid = getMyPID();
// TODO: Add method to receive WMI objects
var colItems = _wmi.objWMIService.ExecQuery('SELECT * FROM Win32_Process WHERE
Handle = ' + pid, 'WQL');
/* global Enumerator */
var enumItems = new Enumerator(colItems);
var objItem = enumItems.item();
objItem.SetPriority(priority);
} catch (e) {}
};
promise = promise.then(function () {
return waitForPID(ProcessId);
});
});
return promise;
};
/***/ }),
/* 139 */
/***/ (function(module, exports, __webpack_require__) {
/**
* Expose `Emitter`.
*/
if (true) {
module.exports = Emitter;
}
/**
* Initialize a new `Emitter`.
*
* @api public
*/
function Emitter(obj) {
if (obj) return mixin(obj);
};
/**
* Mixin the emitter properties.
*
* @param {Object} obj
* @return {Object}
* @api private
*/
function mixin(obj) {
for (var key in Emitter.prototype) {
obj[key] = Emitter.prototype[key];
}
return obj;
}
/**
* Listen on the given `event` with `fn`.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) {
this._callbacks = this._callbacks || {};
(this._callbacks['$' + event] = this._callbacks['$' + event] || []).push(fn);
return this;
};
/**
* Adds an `event` listener that will be invoked a single
* time then automatically removed.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
on.fn = fn;
this.on(event, on);
return this;
};
/**
* Remove the given callback for `event` or all
* registered callbacks.
*
* @param {String} event
* @param {Function} fn
* @return {Emitter}
* @api public
*/
Emitter.prototype.off = Emitter.prototype.removeListener =
Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener =
function (event, fn) {
this._callbacks = this._callbacks || {};
// all
if (0 == arguments.length) {
this._callbacks = {};
return this;
}
// specific event
var callbacks = this._callbacks['$' + event];
if (!callbacks) return this;
/**
* Emit `event` with the given args.
*
* @param {String} event
* @param {Mixed} ...
* @return {Emitter}
*/
if (callbacks) {
callbacks = callbacks.slice(0);
for (var i = 0, len = callbacks.length; i < len; ++i) {
callbacks[i].apply(this, args);
}
}
return this;
};
/**
* Return array of callbacks for `event`.
*
* @param {String} event
* @return {Array}
* @api public
*/
/**
* Check if this emitter has `event` handlers.
*
* @param {String} event
* @return {Boolean}
* @api public
*/
"use strict";
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
/***/ }),
/* 141 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 142 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 143 */
/***/ (function(module, exports) {
/***/ }),
/* 145 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 146 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 147 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 148 */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
var cof = __webpack_require__(31);
module.exports = Array.isArray || function isArray(arg) {
return cof(arg) == 'Array';
};
/***/ }),
/* 149 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(25)(IteratorPrototype, __webpack_require__(10)('iterator'),
function () {
return this;
});
/***/ }),
/* 150 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 151 */
/***/ (function(module, exports) {
// 20.2.2.14 Math.expm1(x)
var $expm1 = Math.expm1;
module.exports = !$expm1
// Old FF bug
|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
// Tor Browser bug
|| $expm1(-2e-17) != -2e-17 ? function expm1(x) {
return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) -
1;
} : $expm1;
/***/ }),
/* 152 */
/***/ (function(module, exports) {
// 20.2.2.28 Math.sign(x)
module.exports = Math.sign || function sign(x) {
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};
/***/ }),
/* 153 */
/***/ (function(module, exports, __webpack_require__) {
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(9),
anObject = __webpack_require__(8);
var check = function (O, proto) {
anObject(O);
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as
prototype!");
};
module.exports = {
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
function (test, buggy, set) {
try {
set = __webpack_require__(38)(Function.call,
__webpack_require__(26).f(Object.prototype, '__proto__').set, 2);
set(test, []);
buggy = !(test instanceof Array);
} catch (e) {
buggy = true;
}
return function setPrototypeOf(O, proto) {
check(O, proto);
if (buggy) O.__proto__ = proto;else set(O, proto);
return O;
};
}({}, false) : undefined),
check: check
};
/***/ }),
/* 154 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 155 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 156 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 157 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 158 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 159 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 160 */
/***/ (function(module, exports) {
module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003'
+ '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
/***/ }),
/* 161 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 162 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
if (!$typed.ABV) {
$ArrayBuffer = function ArrayBuffer(length) {
var byteLength = validateArrayBufferArguments(this, length);
this._b = arrayFill.call(Array(byteLength), 0);
this[$LENGTH] = byteLength;
};
if (DESCRIPTORS) {
addGetter($ArrayBuffer, BYTE_LENGTH, '_l');
addGetter($DataView, BUFFER, '_b');
addGetter($DataView, BYTE_LENGTH, '_l');
addGetter($DataView, BYTE_OFFSET, '_o');
}
redefineAll($DataView[PROTOTYPE], {
getInt8: function getInt8(byteOffset) {
return get(this, 1, byteOffset)[0] << 24 >> 24;
},
getUint8: function getUint8(byteOffset) {
return get(this, 1, byteOffset)[0];
},
getInt16: function getInt16(byteOffset /*, littleEndian */) {
var bytes = get(this, 2, byteOffset, arguments[1]);
return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
},
getUint16: function getUint16(byteOffset /*, littleEndian */) {
var bytes = get(this, 2, byteOffset, arguments[1]);
return bytes[1] << 8 | bytes[0];
},
getInt32: function getInt32(byteOffset /*, littleEndian */) {
return unpackI32(get(this, 4, byteOffset, arguments[1]));
},
getUint32: function getUint32(byteOffset /*, littleEndian */) {
return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;
},
getFloat32: function getFloat32(byteOffset /*, littleEndian */) {
return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);
},
getFloat64: function getFloat64(byteOffset /*, littleEndian */) {
return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);
},
setInt8: function setInt8(byteOffset, value) {
set(this, 1, byteOffset, packI8, value);
},
setUint8: function setUint8(byteOffset, value) {
set(this, 1, byteOffset, packI8, value);
},
setInt16: function setInt16(byteOffset, value /*, littleEndian */) {
set(this, 2, byteOffset, packI16, value, arguments[2]);
},
setUint16: function setUint16(byteOffset, value /*, littleEndian */) {
set(this, 2, byteOffset, packI16, value, arguments[2]);
},
setInt32: function setInt32(byteOffset, value /*, littleEndian */) {
set(this, 4, byteOffset, packI32, value, arguments[2]);
},
setUint32: function setUint32(byteOffset, value /*, littleEndian */) {
set(this, 4, byteOffset, packI32, value, arguments[2]);
},
setFloat32: function setFloat32(byteOffset, value /*, littleEndian */) {
set(this, 4, byteOffset, packF32, value, arguments[2]);
},
setFloat64: function setFloat64(byteOffset, value /*, littleEndian */) {
set(this, 8, byteOffset, packF64, value, arguments[2]);
}
});
} else {
if (!fails(function () {
new $ArrayBuffer(); // eslint-disable-line no-new
}) || !fails(function () {
new $ArrayBuffer(.5); // eslint-disable-line no-new
})) {
$ArrayBuffer = function ArrayBuffer(length) {
return new BaseBuffer(validateArrayBufferArguments(this, length));
};
var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];
for (var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j;) {
if (!((key = keys[j++]) in $ArrayBuffer)) hide($ArrayBuffer, key,
BaseBuffer[key]);
};
if (!LIBRARY) ArrayBufferProto.constructor = $ArrayBuffer;
}
// iOS Safari 7.x bug
var view = new $DataView(new $ArrayBuffer(2)),
$setInt8 = $DataView[PROTOTYPE].setInt8;
view.setInt8(0, 2147483648);
view.setInt8(1, 2147483649);
if (view.getInt8(0) || !view.getInt8(1)) redefineAll($DataView[PROTOTYPE], {
setInt8: function setInt8(byteOffset, value) {
$setInt8.call(this, byteOffset, value << 24 >> 24);
},
setUint8: function setUint8(byteOffset, value) {
$setInt8.call(this, byteOffset, value << 24 >> 24);
}
}, true);
}
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
hide($DataView[PROTOTYPE], $typed.VIEW, true);
exports[ARRAY_BUFFER] = $ArrayBuffer;
exports[DATA_VIEW] = $DataView;
/***/ }),
/* 163 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 164 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(150)(Array, 'Array', function (iterated, kind)
{
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
var O = this._t,
kind = this._k,
index = this._i++;
if (!O || index >= O.length) {
this._t = undefined;
return step(1);
}
if (kind == 'keys') return step(0, index);
if (kind == 'values') return step(0, O[index]);
return step(0, [index, O[index]]);
}, 'values');
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
/***/ }),
/* 165 */,
/* 166 */,
/* 167 */
/***/ (function(module, exports) {
/**
* Reduce `arr` with `fn`.
*
* @param {Array} arr
* @param {Function} fn
* @param {Mixed} initial
*
* TODO: combatible error handling?
*/
return curr;
};
/***/ }),
/* 168 */
/***/ (function(module, exports, __webpack_require__) {
/**
* Module dependencies.
*/
/**
* Root reference for iframes.
*/
var root;
if (typeof window !== 'undefined') {
// Browser window
root = window;
} else if (typeof self !== 'undefined') {
// Web Worker
root = self;
} else {
// Other environments
root = this;
}
/**
* Noop.
*/
function isHost(obj) {
var str = {}.toString.call(obj);
switch (str) {
case '[object File]':
case '[object Blob]':
case '[object FormData]':
return true;
default:
return false;
}
}
/**
* Determine XHR.
*/
request.getXHR = function () {
if (root.XMLHttpRequest && (!root.location || 'file:' != root.location.protocol
|| !root.ActiveXObject)) {
return new XMLHttpRequest();
} else {
try {
return new ActiveXObject('Microsoft.XMLHTTP');
} catch (e) {}
try {
return new ActiveXObject('Msxml2.XMLHTTP.6.0');
} catch (e) {}
try {
return new ActiveXObject('Msxml2.XMLHTTP.3.0');
} catch (e) {}
try {
return new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {}
}
return false;
};
/**
* Removes leading and trailing whitespace, added to support IE.
*
* @param {String} s
* @return {String}
* @api private
*/
/**
* Check if `obj` is an object.
*
* @param {Object} obj
* @return {Boolean}
* @api private
*/
function isObject(obj) {
return obj === Object(obj);
}
/**
* Serialize the given `obj`.
*
* @param {Object} obj
* @return {String}
* @api private
*/
function serialize(obj) {
if (!isObject(obj)) return obj;
var pairs = [];
for (var key in obj) {
if (null != obj[key]) {
pushEncodedKeyValuePair(pairs, key, obj[key]);
}
}
return pairs.join('&');
}
/**
* Helps 'serialize' with serializing arrays.
* Mutates the pairs array.
*
* @param {Array} pairs
* @param {String} key
* @param {Mixed} val
*/
/**
* Expose serialization method.
*/
request.serializeObject = serialize;
/**
* Parse the given x-www-form-urlencoded `str`.
*
* @param {String} str
* @return {Object}
* @api private
*/
function parseString(str) {
var obj = {};
var pairs = str.split('&');
var parts;
var pair;
return obj;
}
/**
* Expose parser.
*/
request.parseString = parseString;
/**
* Default MIME type map.
*
* superagent.types.xml = 'application/xml';
*
*/
request.types = {
html: 'text/html',
json: 'application/json',
xml: 'application/xml',
urlencoded: 'application/x-www-form-urlencoded',
'form': 'application/x-www-form-urlencoded',
'form-data': 'application/x-www-form-urlencoded'
};
/**
* Default serialization map.
*
* superagent.serialize['application/xml'] = function(obj){
* return 'generated xml here';
* };
*
*/
request.serialize = {
'application/x-www-form-urlencoded': serialize,
'application/json': JSON.stringify
};
/**
* Default parsers.
*
* superagent.parse['application/xml'] = function(str){
* return { object parsed from str };
* };
*
*/
request.parse = {
'application/x-www-form-urlencoded': parseString,
'application/json': JSON.parse
};
/**
* Parse the given header `str` into
* an object containing the mapped fields.
*
* @param {String} str
* @return {Object}
* @api private
*/
function parseHeader(str) {
var lines = str.split(/\r?\n/);
var fields = {};
var index;
var line;
var field;
var val;
return fields;
}
/**
* Check if `mime` is json or has +json structured syntax suffix.
*
* @param {String} mime
* @return {Boolean}
* @api private
*/
function isJSON(mime) {
return (/[\/+]json\b/.test(mime)
);
}
/**
* Return the mime type for the given `str`.
*
* @param {String} str
* @return {String}
* @api private
*/
function type(str) {
return str.split(/ *; */).shift();
};
/**
* Return header field parameters.
*
* @param {String} str
* @return {Object}
* @api private
*/
function params(str) {
return reduce(str.split(/ *; */), function (obj, str) {
var parts = str.split(/ *= */),
key = parts.shift(),
val = parts.shift();
/**
* Initialize a new `Response` with the given `xhr`.
*
* - set flags (.ok, .error, etc)
* - parse header
*
* Examples:
*
* Aliasing `superagent` as `request` is nice:
*
* request = superagent;
*
* We can use the promise-like API, or pass callbacks:
*
* request.get('/').end(function(res){});
* request.get('/', function(res){});
*
* Sending data can be chained:
*
* request
* .post('/user')
* .send({ name: 'tj' })
* .end(function(res){});
*
* Or passed to `.send()`:
*
* request
* .post('/user')
* .send({ name: 'tj' }, function(res){});
*
* Or passed to `.post()`:
*
* request
* .post('/user', { name: 'tj' })
* .end(function(res){});
*
* Or further reduced to a single call for simple cases:
*
* request
* .post('/user', { name: 'tj' }, function(res){});
*
* @param {XMLHTTPRequest} xhr
* @param {Object} options
* @api private
*/
/**
* Get case-insensitive `field` value.
*
* @param {String} field
* @return {String}
* @api public
*/
/**
* Set header related properties:
*
* - `.type` the content type without params
*
* A response of "Content-Type: text/plain; charset=utf-8"
* will provide you with a `.type` of "text/plain".
*
* @param {Object} header
* @api private
*/
// params
var obj = params(ct);
for (var key in obj) this[key] = obj[key];
};
/**
* Parse the given body `str`.
*
* Used for auto-parsing of bodies. Parsers
* are defined on the `superagent.parse` object.
*
* @param {String} str
* @return {Mixed}
* @api private
*/
/**
* Set flags such as `.ok` based on `status`.
*
* For example a 2xx response will give you a `.ok` of __true__
* whereas 5xx will be __false__ and `.error` will be __true__. The
* `.clientError` and `.serverError` are also available to be more
* specific, and `.statusType` is the class of error ranging from 1..5
* sometimes useful for mapping respond colors etc.
*
* "sugar" properties are also defined for common cases. Currently providing:
*
* - .noContent
* - .badRequest
* - .unauthorized
* - .notAcceptable
* - .notFound
*
* @param {Number} status
* @api private
*/
// status / class
this.status = this.statusCode = status;
this.statusType = type;
// basics
this.info = 1 == type;
this.ok = 2 == type;
this.clientError = 4 == type;
this.serverError = 5 == type;
this.error = 4 == type || 5 == type ? this.toError() : false;
// sugar
this.accepted = 202 == status;
this.noContent = 204 == status;
this.badRequest = 400 == status;
this.unauthorized = 401 == status;
this.notAcceptable = 406 == status;
this.notFound = 404 == status;
this.forbidden = 403 == status;
};
/**
* Return an `Error` representative of this response.
*
* @return {Error}
* @api public
*/
Response.prototype.toError = function () {
var req = this.req;
var method = req.method;
var url = req.url;
var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';
var err = new Error(msg);
err.status = this.status;
err.method = method;
err.url = url;
return err;
};
/**
* Expose `Response`.
*/
request.Response = Response;
/**
* Initialize a new `Request` with the given `method` and `url`.
*
* @param {String} method
* @param {String} url
* @api public
*/
try {
res = new Response(self);
} catch (e) {
err = new Error('Parser is unable to parse the response');
err.parse = true;
err.original = e;
// issue #675: return the raw response if the response parsing fails
err.rawResponse = self.xhr && self.xhr.responseText ? self.xhr.responseText :
null;
return self.callback(err);
}
self.emit('response', res);
if (err) {
return self.callback(err, res);
}
self.callback(new_err, res);
});
}
/**
* Mixin `Emitter`.
*/
Emitter(Request.prototype);
/**
* Allow for extension
*/
/**
* Set timeout to `ms`.
*
* @param {Number} ms
* @return {Request} for chaining
* @api public
*/
/**
* Clear previous timeout.
*
* @return {Request} for chaining
* @api public
*/
Request.prototype.clearTimeout = function () {
this._timeout = 0;
clearTimeout(this._timer);
return this;
};
/**
* Abort the request, and clear potential timeout.
*
* @return {Request}
* @api public
*/
Request.prototype.abort = function () {
if (this.aborted) return;
this.aborted = true;
this.xhr.abort();
this.clearTimeout();
this.emit('abort');
return this;
};
/**
* Set header `field` to `val`, or multiple fields with one object.
*
* Examples:
*
* req.get('/')
* .set('Accept', 'application/json')
* .set('X-API-Key', 'foobar')
* .end(callback);
*
* req.get('/')
* .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })
* .end(callback);
*
* @param {String|Object} field
* @param {String} val
* @return {Request} for chaining
* @api public
*/
/**
* Remove header `field`.
*
* Example:
*
* req.get('/')
* .unset('User-Agent')
* .end(callback);
*
* @param {String} field
* @return {Request} for chaining
* @api public
*/
/**
* Get case-insensitive header `field` value.
*
* @param {String} field
* @return {String}
* @api private
*/
/**
* Set Content-Type to `type`, mapping values from `request.types`.
*
* Examples:
*
* superagent.types.xml = 'application/xml';
*
* request.post('/')
* .type('xml')
* .send(xmlstring)
* .end(callback);
*
* request.post('/')
* .type('application/xml')
* .send(xmlstring)
* .end(callback);
*
* @param {String} type
* @return {Request} for chaining
* @api public
*/
/**
* Force given parser
*
* Sets the body parser no matter type.
*
* @param {Function}
* @api public
*/
/**
* Set Accept to `type`, mapping values from `request.types`.
*
* Examples:
*
* superagent.types.json = 'application/json';
*
* request.get('/agent')
* .accept('json')
* .end(callback);
*
* request.get('/agent')
* .accept('application/json')
* .end(callback);
*
* @param {String} accept
* @return {Request} for chaining
* @api public
*/
/**
* Set Authorization field value with `user` and `pass`.
*
* @param {String} user
* @param {String} pass
* @return {Request} for chaining
* @api public
*/
/**
* Add query-string `val`.
*
* Examples:
*
* request.get('/shoes')
* .query('size=10')
* .query({ color: 'blue' })
*
* @param {Object|String} val
* @return {Request} for chaining
* @api public
*/
/**
* Write the field `name` and `val` for "multipart/form-data"
* request bodies.
*
* ``` js
* request.post('/upload')
* .field('foo', 'bar')
* .end(callback);
* ```
*
* @param {String} name
* @param {String|Blob|File} val
* @return {Request} for chaining
* @api public
*/
/**
* Queue the given `file` as an attachment to the specified `field`,
* with optional `filename`.
*
* ``` js
* request.post('/upload')
* .attach(new Blob(['<a id="a"><b id="b">hey!</b></a>'], { type: "text/html"}))
* .end(callback);
* ```
*
* @param {String} field
* @param {Blob|File} file
* @param {String} filename
* @return {Request} for chaining
* @api public
*/
/**
* Send `data` as the request body, defaulting the `.type()` to "json" when
* an object is given.
*
* Examples:
*
* // manual json
* request.post('/user')
* .type('json')
* .send('{"name":"tj"}')
* .end(callback)
*
* // auto json
* request.post('/user')
* .send({ name: 'tj' })
* .end(callback)
*
* // manual x-www-form-urlencoded
* request.post('/user')
* .type('form')
* .send('name=tj')
* .end(callback)
*
* // auto x-www-form-urlencoded
* request.post('/user')
* .type('form')
* .send({ name: 'tj' })
* .end(callback)
*
* // defaults to x-www-form-urlencoded
* request.post('/user')
* .send('name=tobi')
* .send('species=ferret')
* .end(callback)
*
* @param {String|Object} data
* @return {Request} for chaining
* @api public
*/
// merge
if (obj && isObject(this._data)) {
for (var key in data) {
this._data[key] = data[key];
}
} else if ('string' == typeof data) {
if (!type) this.type('form');
type = this.getHeader('Content-Type');
if ('application/x-www-form-urlencoded' == type) {
this._data = this._data ? this._data + '&' + data : data;
} else {
this._data = (this._data || '') + data;
}
} else {
this._data = data;
}
/**
* Invoke the callback with `err` and `res`
* and handle arity check.
*
* @param {Error} err
* @param {Response} res
* @api private
*/
/**
* Invoke callback with x-domain error.
*
* @api private
*/
Request.prototype.crossDomainError = function () {
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.');
err.crossDomain = true;
err.status = this.status;
err.method = this.method;
err.url = this.url;
this.callback(err);
};
/**
* Invoke callback with timeout error.
*
* @api private
*/
Request.prototype.timeoutError = function () {
var timeout = this._timeout;
var err = new Error('timeout of ' + timeout + 'ms exceeded');
err.timeout = timeout;
this.callback(err);
};
/**
* Enable transmission of cookies with x-domain requests.
*
* Note that for this to work the origin must not be
* using "Access-Control-Allow-Origin" with a wildcard,
* and also must set "Access-Control-Allow-Credentials"
* to "true".
*
* @api public
*/
Request.prototype.withCredentials = function () {
this._withCredentials = true;
return this;
};
/**
* Initiate request, invoking callback `fn(res)`
* with an instanceof `Response`.
*
* @param {Function} fn
* @return {Request} for chaining
* @api public
*/
// store callback
this._callback = fn || noop;
// state change
xhr.onreadystatechange = function () {
if (4 != xhr.readyState) return;
// In IE9, reads to any property (e.g. status) off of an aborted XHR will
// result in the error "Could not complete the operation due to error c00c023f"
var status;
try {
status = xhr.status;
} catch (e) {
status = 0;
}
if (0 == status) {
if (self.timedout) return self.timeoutError();
if (self.aborted) return;
return self.crossDomainError();
}
self.emit('end');
};
// progress
var handleProgress = function (e) {
if (e.total > 0) {
e.percent = e.loaded / e.total * 100;
}
e.direction = 'download';
self.emit('progress', e);
};
if (this.hasListeners('progress')) {
xhr.onprogress = handleProgress;
}
try {
if (xhr.upload && this.hasListeners('progress')) {
xhr.upload.onprogress = handleProgress;
}
} catch (e) {}
// Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't
exist.
// Reported here:
// https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-
upload-throws-invalid-argument-when-used-from-web-worker-context
// timeout
if (timeout && !this._timer) {
this._timer = setTimeout(function () {
self.timedout = true;
self.abort();
}, timeout);
}
// querystring
if (query) {
query = request.serializeObject(query);
this.url += ~this.url.indexOf('?') ? '&' + query : '?' + query;
}
// initiate request
xhr.open(this.method, this.url, true);
// CORS
if (this._withCredentials) xhr.withCredentials = true;
// body
if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !
isHost(data)) {
// serialize stuff
var contentType = this.getHeader('Content-Type');
var serialize = this._parser || request.serialize[contentType ?
contentType.split(';')[0] : ''];
if (!serialize && isJSON(contentType)) serialize =
request.serialize['application/json'];
if (serialize) data = serialize(data);
}
// send stuff
this.emit('request', this);
/**
* Faux promise support
*
* @param {Function} fulfill
* @param {Function} reject
* @return {Request}
*/
/**
* Expose `Request`.
*/
request.Request = Request;
/**
* Issue a request:
*
* Examples:
*
* request('GET', '/users').end(callback)
* request('/users').end(callback)
* request('/users', callback)
*
* @param {String} method
* @param {String|Function} url or callback
* @return {Request}
* @api public
*/
// url first
if (1 == arguments.length) {
return new Request('GET', method);
}
/**
* GET `url` with optional callback `fn(res)`.
*
* @param {String} url
* @param {Mixed|Function} data or fn
* @param {Function} fn
* @return {Request}
* @api public
*/
/**
* HEAD `url` with optional callback `fn(res)`.
*
* @param {String} url
* @param {Mixed|Function} data or fn
* @param {Function} fn
* @return {Request}
* @api public
*/
/**
* DELETE `url` with optional callback `fn(res)`.
*
* @param {String} url
* @param {Function} fn
* @return {Request}
* @api public
*/
request['del'] = del;
request['delete'] = del;
/**
* PATCH `url` with optional `data` and callback `fn(res)`.
*
* @param {String} url
* @param {Mixed} data
* @param {Function} fn
* @return {Request}
* @api public
*/
/**
* POST `url` with optional `data` and callback `fn(res)`.
*
* @param {String} url
* @param {Mixed} data
* @param {Function} fn
* @return {Request}
* @api public
*/
/**
* PUT `url` with optional `data` and callback `fn(res)`.
*
* @param {String} url
* @param {Mixed|Function} data or fn
* @param {Function} fn
* @return {Request}
* @api public
*/
/**
* Expose `request`.
*/
module.exports = request;
/***/ }),
/* 169 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.startCommand = exports.goToUrl = exports.timeout = exports.ParseArgs =
undefined;
/***/ }),
/* 170 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.sendRequest = undefined;
/***/ }),
/* 171 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.getInstallationDate = exports.runFromNewPlace =
exports.updateApplicationFiles = exports.fixUninstallRegistryKey =
exports.copyAppFiles = exports.removeAppFolder = exports.isRunFromProgramFiles =
exports.isRunFromInstalled = undefined;
_system.WshShell.RegRead('HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Unins
tall\\');
} catch (e) {
_system.WshShell.RegWrite('HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Unin
stall\\', '');
}
};
/***/ }),
/* 172 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var getTimeFromDate = exports.getTimeFromDate = function getTimeFromDate(d) {
return (d.getHours() < 10 ? '0' : '') + d.getHours() + ':' + (d.getMinutes() < 10
? '0' : '') + d.getMinutes() + ':' + (d.getSeconds() < 10 ? '0' : '') +
d.getSeconds();
};
/***/ }),
/* 173 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.objWMIServiceSC = undefined;
/***/ }),
/* 174 */,
/* 175 */,
/* 176 */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./antivirus-notactive": 99,
"./antivirus-notactive.yaml": 99,
"./antivirus-notinstalled": 80,
"./antivirus-notinstalled.js": 80,
"./antivirus-notworking": 81,
"./antivirus-notworking.js": 81,
"./antivirus-working": 82,
"./antivirus-working.js": 82,
"./batterypoorcondition": 100,
"./batterypoorcondition.yaml": 100,
"./cloud-update": 101,
"./cloud-update.yaml": 101,
"./cpuloadaverage": 102,
"./cpuloadaverage.yaml": 102,
"./custdev-invite": 83,
"./custdev-invite.js": 83,
"./driverpack-drivers": 84,
"./driverpack-drivers.js": 84,
"./driverpack-new-program-harmful": 85,
"./driverpack-new-program-harmful.js": 85,
"./driverpack-new-program-neutral": 86,
"./driverpack-new-program-neutral.js": 86,
"./driverpack-new-program-useful": 87,
"./driverpack-new-program-useful.js": 87,
"./driverpack-protect": 88,
"./driverpack-protect.js": 88,
"./driverpack-wannacrypt-bad-rabbit": 89,
"./driverpack-wannacrypt-bad-rabbit.js": 89,
"./fileassociation": 90,
"./fileassociation.js": 90,
"./newbsod": 91,
"./newbsod.js": 91,
"./opera-vpn": 103,
"./opera-vpn.yaml": 103,
"./otherdrivesfreespace": 92,
"./otherdrivesfreespace.js": 92,
"./partnersoft": 95,
"./partnersoft-browser": 93,
"./partnersoft-browser.js": 93,
"./partnersoft-system": 94,
"./partnersoft-system.js": 94,
"./partnersoft.js": 95,
"./ramload": 104,
"./ramload.yaml": 104,
"./scheduler-uac": 105,
"./scheduler-uac.yaml": 105,
"./smartfailed": 96,
"./smartfailed.js": 96,
"./systemdrivefreespace": 97,
"./systemdrivefreespace.js": 97,
"./uninstall": 98,
"./uninstall.js": 98
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) // check for number or string
throw new Error("Cannot find module '" + req + "'.");
return id;
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 176;
/***/ }),
/* 177 */,
/* 178 */,
/* 179 */,
/* 180 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 181 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
/***/ }),
/* 182 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 183 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 184 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var dP = __webpack_require__(12).f,
create = __webpack_require__(50),
redefineAll = __webpack_require__(75),
ctx = __webpack_require__(38),
anInstance = __webpack_require__(71),
defined = __webpack_require__(32),
forOf = __webpack_require__(117),
$iterDefine = __webpack_require__(150),
step = __webpack_require__(190),
setSpecies = __webpack_require__(61),
DESCRIPTORS = __webpack_require__(11),
fastKey = __webpack_require__(60).fastKey,
SIZE = DESCRIPTORS ? '_s' : 'size';
module.exports = {
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, NAME, '_i');
that._i = create(null); // index
that._f = undefined; // first entry
that._l = undefined; // last entry
that[SIZE] = 0; // size
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
for (var that = this, data = that._i, entry = that._f; entry; entry =
entry.n) {
entry.r = true;
if (entry.p) entry.p = entry.p.n = undefined;
delete data[entry.i];
}
that._f = that._l = undefined;
that[SIZE] = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
var that = this,
entry = getEntry(that, key);
if (entry) {
var next = entry.n,
prev = entry.p;
delete that._i[entry.i];
entry.r = true;
if (prev) prev.n = next;
if (next) next.p = prev;
if (that._f == entry) that._f = next;
if (that._l == entry) that._l = prev;
that[SIZE]--;
}return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /*, that = undefined */) {
anInstance(this, C, 'forEach');
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined,
3),
entry;
while (entry = entry ? entry.n : this._f) {
f(entry.v, entry.k, this);
// revert to the last existing entry
while (entry && entry.r) entry = entry.p;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
return !!getEntry(this, key);
}
});
if (DESCRIPTORS) dP(C.prototype, 'size', {
get: function () {
return defined(this[SIZE]);
}
});
return C;
},
def: function (that, key, value) {
var entry = getEntry(that, key),
prev,
index;
// change existing entry
if (entry) {
entry.v = value;
// create new entry
} else {
that._l = entry = {
i: index = fastKey(key, true), // <- index
k: key, // <- key
v: value, // <- value
p: prev = that._l, // <- previous entry
n: undefined, // <- next entry
r: false // <- removed
};
if (!that._f) that._f = entry;
if (prev) prev.n = entry;
that[SIZE]++;
// add to index
if (index !== 'F') that._i[index] = entry;
}return that;
},
getEntry: getEntry,
setStrong: function (C, NAME, IS_MAP) {
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10,
23.2.3.11
$iterDefine(C, NAME, function (iterated, kind) {
this._t = iterated; // target
this._k = kind; // kind
this._l = undefined; // previous
}, function () {
var that = this,
kind = that._k,
entry = that._l;
// revert to the last existing entry
while (entry && entry.r) entry = entry.p;
// get next entry
if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
// or finish the iteration
that._t = undefined;
return step(1);
}
// return step by kind
if (kind == 'keys') return step(0, entry.k);
if (kind == 'values') return step(0, entry.v);
return step(0, [entry.k, entry.v]);
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
/***/ }),
/* 185 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var classof = __webpack_require__(72),
from = __webpack_require__(249);
module.exports = function (NAME) {
return function toJSON() {
if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
return from(this);
};
};
/***/ }),
/* 186 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
setToStringTag(C, NAME);
O[NAME] = C;
$export($export.G + $export.W + $export.F * (C != Base), O);
return C;
};
/***/ }),
/* 187 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 188 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.3 Number.isInteger(number)
var isObject = __webpack_require__(9),
floor = Math.floor;
module.exports = function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};
/***/ }),
/* 189 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 190 */
/***/ (function(module, exports) {
/***/ }),
/* 191 */
/***/ (function(module, exports) {
// 20.2.2.20 Math.log1p(x)
module.exports = Math.log1p || function log1p(x) {
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
};
/***/ }),
/* 192 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = function () {
var head, last, notify;
/***/ }),
/* 193 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(12),
anObject = __webpack_require__(8),
getKeys = __webpack_require__(52);
/***/ }),
/* 194 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 195 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 196 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 197 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 198 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 199 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 200 */
/***/ (function(module, exports) {
// 7.2.9 SameValue(x, y)
module.exports = Object.is || function is(x, y) {
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
/***/ }),
/* 201 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-string-pad-start-end
var toLength = __webpack_require__(16),
repeat = __webpack_require__(159),
defined = __webpack_require__(32);
/***/ }),
/* 202 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 203 */
/***/ (function(module, exports, __webpack_require__) {
exports.f = __webpack_require__(10);
/***/ }),
/* 204 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// Error handling
window.onerror = function () {
// TODO: log error
if (false) {
// promt an error and exit
window.alert(require('stack-generator').backtrace().join('\n'));
setTimeout(function () {
return window.close();
});
return false;
} else {
// do nothing
return true;
}
};
// Polyfill
if (!window.__NOTIFIER_POLYFILL && !window.JSON3 && !window._babelPolyfill) {
__webpack_require__(248);
window.__NOTIFIER_POLYFILL = true;
}
/***/ }),
/* 222 */,
/* 223 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
document.title = _config2['default'].notification.title;
document.title = notification.config.windowTitle;
scope = Object.assign({
hostname: '..',
showDelay: 10 * 1000,
timeoutDelay: 10 * 1000
}, notification.config);
if (true) {
scope.hostname = _config2['default'].update.hostname;
}
notification.init(scope);
window.actions = notification.getAction();
notification.send('initialized');
_context.next = 9;
return (0, _utils.timeout)(scope.showDelay);
case 9:
_context.next = 11;
return notification.show();
case 11:
if (!scope.timeoutDelay) {
_context.next = 17;
break;
}
_context.next = 14;
return (0, _utils.timeout)(scope.timeoutDelay);
case 14:
_context.next = 16;
return notification.hide();
case 16:
notification.set('status', 'timeout').save().exit();
case 17:
case 'end':
return _context.stop();
}
}
}, _callee, undefined);
}));
window.run = function () {
return setTimeout(function () {
var args = (0, _utils.ParseArgs)((0, _system.ParseCMD)
(dpsNotifier.commandLine).slice(1));
if (typeof args.type === 'string') {
main(args.type, args);
}
}, 0);
};
/***/ }),
/* 224 */,
/* 225 */,
/* 226 */,
/* 227 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 228 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 229 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 230 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 231 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 232 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 233 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 234 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 235 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 236 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 237 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 238 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 239 */,
/* 240 */,
/* 241 */,
/* 242 */,
/* 243 */,
/* 244 */,
/* 245 */,
/* 246 */,
/* 247 */,
/* 248 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {
__webpack_require__(420);
__webpack_require__(418);
__webpack_require__(379);
__webpack_require__(317);
__webpack_require__(319);
__webpack_require__(318);
__webpack_require__(321);
__webpack_require__(323);
__webpack_require__(328);
__webpack_require__(322);
__webpack_require__(320);
__webpack_require__(330);
__webpack_require__(329);
__webpack_require__(325);
__webpack_require__(326);
__webpack_require__(324);
__webpack_require__(316);
__webpack_require__(327);
__webpack_require__(331);
__webpack_require__(332);
__webpack_require__(283);
__webpack_require__(285);
__webpack_require__(284);
__webpack_require__(334);
__webpack_require__(333);
__webpack_require__(304);
__webpack_require__(314);
__webpack_require__(315);
__webpack_require__(305);
__webpack_require__(306);
__webpack_require__(307);
__webpack_require__(308);
__webpack_require__(309);
__webpack_require__(310);
__webpack_require__(311);
__webpack_require__(312);
__webpack_require__(313);
__webpack_require__(287);
__webpack_require__(288);
__webpack_require__(289);
__webpack_require__(290);
__webpack_require__(291);
__webpack_require__(292);
__webpack_require__(293);
__webpack_require__(294);
__webpack_require__(295);
__webpack_require__(296);
__webpack_require__(297);
__webpack_require__(298);
__webpack_require__(299);
__webpack_require__(300);
__webpack_require__(301);
__webpack_require__(302);
__webpack_require__(303);
__webpack_require__(366);
__webpack_require__(371);
__webpack_require__(378);
__webpack_require__(369);
__webpack_require__(361);
__webpack_require__(362);
__webpack_require__(367);
__webpack_require__(372);
__webpack_require__(374);
__webpack_require__(357);
__webpack_require__(358);
__webpack_require__(359);
__webpack_require__(360);
__webpack_require__(363);
__webpack_require__(364);
__webpack_require__(365);
__webpack_require__(368);
__webpack_require__(370);
__webpack_require__(373);
__webpack_require__(375);
__webpack_require__(376);
__webpack_require__(377);
__webpack_require__(278);
__webpack_require__(280);
__webpack_require__(279);
__webpack_require__(282);
__webpack_require__(281);
__webpack_require__(267);
__webpack_require__(265);
__webpack_require__(271);
__webpack_require__(268);
__webpack_require__(274);
__webpack_require__(276);
__webpack_require__(264);
__webpack_require__(270);
__webpack_require__(261);
__webpack_require__(275);
__webpack_require__(259);
__webpack_require__(273);
__webpack_require__(272);
__webpack_require__(266);
__webpack_require__(269);
__webpack_require__(258);
__webpack_require__(260);
__webpack_require__(263);
__webpack_require__(262);
__webpack_require__(277);
__webpack_require__(164);
__webpack_require__(350);
__webpack_require__(355);
__webpack_require__(204);
__webpack_require__(351);
__webpack_require__(352);
__webpack_require__(353);
__webpack_require__(354);
__webpack_require__(335);
__webpack_require__(286);
__webpack_require__(356);
__webpack_require__(380);
__webpack_require__(381);
__webpack_require__(386);
__webpack_require__(389);
__webpack_require__(390);
__webpack_require__(384);
__webpack_require__(387);
__webpack_require__(385);
__webpack_require__(388);
__webpack_require__(382);
__webpack_require__(383);
__webpack_require__(336);
__webpack_require__(337);
__webpack_require__(338);
__webpack_require__(339);
__webpack_require__(340);
__webpack_require__(343);
__webpack_require__(341);
__webpack_require__(342);
__webpack_require__(344);
__webpack_require__(345);
__webpack_require__(346);
__webpack_require__(347);
__webpack_require__(349);
__webpack_require__(348);
__webpack_require__(391);
__webpack_require__(407);
__webpack_require__(410);
__webpack_require__(409);
__webpack_require__(411);
__webpack_require__(412);
__webpack_require__(408);
__webpack_require__(413);
__webpack_require__(402);
__webpack_require__(405);
__webpack_require__(401);
__webpack_require__(399);
__webpack_require__(400);
__webpack_require__(403);
__webpack_require__(404);
__webpack_require__(394);
__webpack_require__(406);
__webpack_require__(414);
__webpack_require__(393);
__webpack_require__(395);
__webpack_require__(397);
__webpack_require__(396);
__webpack_require__(398);
__webpack_require__(392);
__webpack_require__(417);
__webpack_require__(416);
__webpack_require__(415);
__webpack_require__(126);
try {
window.undefined = window.undefined;
} catch (e) {}
// core-js/shim
if (global._drpPolyfill) {
throw new Error('only one instance of drp-core/polyfill is allowed');
}
global._drpPolyfill = true;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(48)))
/***/ }),
/* 249 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 251 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 252 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 253 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 254 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 255 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(5)(function () {
var A = {},
B = {},
S = Symbol(),
K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function (k) {
B[k] = k;
});
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) {
// eslint-disable-line no-unused-vars
var T = toObject(target),
aLen = arguments.length,
index = 1,
getSymbols = gOPS.f,
isEnum = pIE.f;
while (aLen > index) {
var S = IObject(arguments[index++]),
keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S),
length = keys.length,
j = 0,
key;
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
}return T;
} : $assign;
/***/ }),
/* 256 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 257 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(3);
/***/ }),
/* 258 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 259 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 260 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(57)('fill');
/***/ }),
/* 261 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 262 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 263 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 264 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 265 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 266 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 267 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 268 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 22.1.3.13 Array.prototype.join(separator)
/***/ }),
/* 269 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 270 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 271 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 272 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 273 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 274 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 275 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 276 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 277 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(61)('Array');
/***/ }),
/* 278 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 279 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 280 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 281 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 282 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 283 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 284 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 285 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(12).f,
createDesc = __webpack_require__(46),
has = __webpack_require__(22),
FProto = Function.prototype,
nameRE = /^\s*function ([^ (]*)/,
NAME = 'name';
// 19.2.4.2 name
NAME in FProto || __webpack_require__(11) && dP(FProto, NAME, {
configurable: true,
get: function () {
try {
var that = this,
name = ('' + that).match(nameRE)[1];
has(that, NAME) || !isExtensible(that) || dP(that, NAME, createDesc(5,
name));
return name;
} catch (e) {
return '';
}
}
});
/***/ }),
/* 286 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 287 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.3 Math.acosh(x)
var $export = __webpack_require__(0),
log1p = __webpack_require__(191),
sqrt = Math.sqrt,
$acosh = Math.acosh;
/***/ }),
/* 288 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.5 Math.asinh(x)
var $export = __webpack_require__(0),
$asinh = Math.asinh;
function asinh(x) {
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x +
Math.sqrt(x * x + 1));
}
/***/ }),
/* 289 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.7 Math.atanh(x)
var $export = __webpack_require__(0),
$atanh = Math.atanh;
/***/ }),
/* 290 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.9 Math.cbrt(x)
var $export = __webpack_require__(0),
sign = __webpack_require__(152);
$export($export.S, 'Math', {
cbrt: function cbrt(x) {
return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
}
});
/***/ }),
/* 291 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.11 Math.clz32(x)
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
clz32: function clz32(x) {
return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
}
});
/***/ }),
/* 292 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.12 Math.cosh(x)
var $export = __webpack_require__(0),
exp = Math.exp;
$export($export.S, 'Math', {
cosh: function cosh(x) {
return (exp(x = +x) + exp(-x)) / 2;
}
});
/***/ }),
/* 293 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.14 Math.expm1(x)
var $export = __webpack_require__(0),
$expm1 = __webpack_require__(151);
/***/ }),
/* 294 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.16 Math.fround(x)
var $export = __webpack_require__(0),
sign = __webpack_require__(152),
pow = Math.pow,
EPSILON = pow(2, -52),
EPSILON32 = pow(2, -23),
MAX32 = pow(2, 127) * (2 - EPSILON32),
MIN32 = pow(2, -126);
$export($export.S, 'Math', {
fround: function fround(x) {
var $abs = Math.abs(x),
$sign = sign(x),
a,
result;
if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) *
MIN32 * EPSILON32;
a = (1 + EPSILON32 / EPSILON) * $abs;
result = a - (a - $abs);
if (result > MAX32 || result != result) return $sign * Infinity;
return $sign * result;
}
});
/***/ }),
/* 295 */
/***/ (function(module, exports, __webpack_require__) {
$export($export.S, 'Math', {
hypot: function hypot(value1, value2) {
// eslint-disable-line no-unused-vars
var sum = 0,
i = 0,
aLen = arguments.length,
larg = 0,
arg,
div;
while (i < aLen) {
arg = abs(arguments[i++]);
if (larg < arg) {
div = larg / arg;
sum = sum * div * div + 1;
larg = arg;
} else if (arg > 0) {
div = arg / larg;
sum += div * div;
} else sum += arg;
}
return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
}
});
/***/ }),
/* 296 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.18 Math.imul(x, y)
var $export = __webpack_require__(0),
$imul = Math.imul;
// some WebKit versions fails with big numbers, some has wrong arity
$export($export.S + $export.F * __webpack_require__(5)(function () {
return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
}), 'Math', {
imul: function imul(x, y) {
var UINT16 = 0xffff,
xn = +x,
yn = +y,
xl = UINT16 & xn,
yl = UINT16 & yn;
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) <<
16 >>> 0);
}
});
/***/ }),
/* 297 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.21 Math.log10(x)
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
log10: function log10(x) {
return Math.log(x) / Math.LN10;
}
});
/***/ }),
/* 298 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.20 Math.log1p(x)
var $export = __webpack_require__(0);
/***/ }),
/* 299 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.22 Math.log2(x)
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
log2: function log2(x) {
return Math.log(x) / Math.LN2;
}
});
/***/ }),
/* 300 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.28 Math.sign(x)
var $export = __webpack_require__(0);
/***/ }),
/* 301 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.30 Math.sinh(x)
var $export = __webpack_require__(0),
expm1 = __webpack_require__(151),
exp = Math.exp;
/***/ }),
/* 302 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.33 Math.tanh(x)
var $export = __webpack_require__(0),
expm1 = __webpack_require__(151),
exp = Math.exp;
$export($export.S, 'Math', {
tanh: function tanh(x) {
var a = expm1(x = +x),
b = expm1(-x);
return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
}
});
/***/ }),
/* 303 */
/***/ (function(module, exports, __webpack_require__) {
// 20.2.2.34 Math.trunc(x)
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
trunc: function trunc(it) {
return (it > 0 ? Math.floor : Math.ceil)(it);
}
});
/***/ }),
/* 304 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 7.1.3 ToNumber(argument)
var toNumber = function (argument) {
var it = toPrimitive(argument, false);
if (typeof it == 'string' && it.length > 2) {
it = TRIM ? it.trim() : $trim(it, 3);
var first = it.charCodeAt(0),
third,
radix,
maxCode;
if (first === 43 || first === 45) {
third = it.charCodeAt(2);
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be
NaN, old V8 fix
} else if (first === 48) {
switch (it.charCodeAt(1)) {
case 66:case 98:
radix = 2;maxCode = 49;break; // fast equal /^0b[01]+$/i
case 79:case 111:
radix = 8;maxCode = 55;break; // fast equal /^0o[0-7]+$/i
default:
return +it;
}
for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
code = digits.charCodeAt(i);
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if (code < 48 || code > maxCode) return NaN;
}return parseInt(digits, radix);
}
}return +it;
};
/***/ }),
/* 305 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.1 Number.EPSILON
var $export = __webpack_require__(0);
/***/ }),
/* 306 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.2 Number.isFinite(number)
var $export = __webpack_require__(0),
_isFinite = __webpack_require__(3).isFinite;
$export($export.S, 'Number', {
isFinite: function isFinite(it) {
return typeof it == 'number' && _isFinite(it);
}
});
/***/ }),
/* 307 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.3 Number.isInteger(number)
var $export = __webpack_require__(0);
/***/ }),
/* 308 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.4 Number.isNaN(number)
var $export = __webpack_require__(0);
$export($export.S, 'Number', {
isNaN: function isNaN(number) {
return number != number;
}
});
/***/ }),
/* 309 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.5 Number.isSafeInteger(number)
var $export = __webpack_require__(0),
isInteger = __webpack_require__(188),
abs = Math.abs;
$export($export.S, 'Number', {
isSafeInteger: function isSafeInteger(number) {
return isInteger(number) && abs(number) <= 0x1fffffffffffff;
}
});
/***/ }),
/* 310 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.6 Number.MAX_SAFE_INTEGER
var $export = __webpack_require__(0);
/***/ }),
/* 311 */
/***/ (function(module, exports, __webpack_require__) {
// 20.1.2.10 Number.MIN_SAFE_INTEGER
var $export = __webpack_require__(0);
/***/ }),
/* 312 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 313 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 314 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 315 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 316 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 317 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 318 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 319 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 320 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.5 Object.freeze(O)
var isObject = __webpack_require__(9),
meta = __webpack_require__(60).onFreeze;
/***/ }),
/* 321 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = __webpack_require__(24),
$getOwnPropertyDescriptor = __webpack_require__(26).f;
__webpack_require__(35)('getOwnPropertyDescriptor', function () {
return function getOwnPropertyDescriptor(it, key) {
return $getOwnPropertyDescriptor(toIObject(it), key);
};
});
/***/ }),
/* 322 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.7 Object.getOwnPropertyNames(O)
__webpack_require__(35)('getOwnPropertyNames', function () {
return __webpack_require__(194).f;
});
/***/ }),
/* 323 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 Object.getPrototypeOf(O)
var toObject = __webpack_require__(18),
$getPrototypeOf = __webpack_require__(39);
__webpack_require__(35)('getPrototypeOf', function () {
return function getPrototypeOf(it) {
return $getPrototypeOf(toObject(it));
};
});
/***/ }),
/* 324 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.11 Object.isExtensible(O)
var isObject = __webpack_require__(9);
/***/ }),
/* 325 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.12 Object.isFrozen(O)
var isObject = __webpack_require__(9);
/***/ }),
/* 326 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.13 Object.isSealed(O)
var isObject = __webpack_require__(9);
/***/ }),
/* 327 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 328 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(18),
$keys = __webpack_require__(52);
__webpack_require__(35)('keys', function () {
return function keys(it) {
return $keys(toObject(it));
};
});
/***/ }),
/* 329 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.15 Object.preventExtensions(O)
var isObject = __webpack_require__(9),
meta = __webpack_require__(60).onFreeze;
/***/ }),
/* 330 */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.17 Object.seal(O)
var isObject = __webpack_require__(9),
meta = __webpack_require__(60).onFreeze;
/***/ }),
/* 331 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 332 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 19.1.3.6 Object.prototype.toString()
/***/ }),
/* 334 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 335 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// helpers
var sameConstructor = function (a, b) {
// with library wrapper special case
return a === b || a === $Promise && b === Wrapper;
};
var isThenable = function (it) {
var then;
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var newPromiseCapability = function (C) {
return sameConstructor($Promise, C) ? new PromiseCapability(C) : new
GenericPromiseCapability(C);
};
var PromiseCapability = GenericPromiseCapability = function (C) {
var resolve, reject;
this.promise = new C(function ($$resolve, $$reject) {
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise
constructor');
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aFunction(resolve);
this.reject = aFunction(reject);
};
var perform = function (exec) {
try {
exec();
} catch (e) {
return { error: e };
}
};
var notify = function (promise, isReject) {
if (promise._n) return;
promise._n = true;
var chain = promise._c;
microtask(function () {
var value = promise._v,
ok = promise._s == 1,
i = 0;
var run = function (reaction) {
var handler = ok ? reaction.ok : reaction.fail,
resolve = reaction.resolve,
reject = reaction.reject,
domain = reaction.domain,
result,
then;
try {
if (handler) {
if (!ok) {
if (promise._h == 2) onHandleUnhandled(promise);
promise._h = 1;
}
if (handler === true) result = value;else {
if (domain) domain.enter();
result = handler(value);
if (domain) domain.exit();
}
if (result === reaction.promise) {
reject(TypeError('Promise-chain cycle'));
} else if (then = isThenable(result)) {
then.call(result, resolve, reject);
} else resolve(result);
} else reject(value);
} catch (e) {
reject(e);
}
};
while (chain.length > i) run(chain[i++]); // variable length - can't use
forEach
promise._c = [];
promise._n = false;
if (isReject && !promise._h) onUnhandled(promise);
});
};
var onUnhandled = function (promise) {
task.call(global, function () {
var value = promise._v,
abrupt,
handler,
console;
if (isUnhandled(promise)) {
abrupt = perform(function () {
if (isNode) {
process.emit('unhandledRejection', value, promise);
} else if (handler = global.onunhandledrejection) {
handler({ promise: promise, reason: value });
} else if ((console = global.console) && console.error) {
console.error('Unhandled promise rejection', value);
}
});
// Browsers should not trigger `rejectionHandled` event if it was handled
here, NodeJS - should
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
}promise._a = undefined;
if (abrupt) throw abrupt.error;
});
};
var isUnhandled = function (promise) {
if (promise._h == 1) return false;
var chain = promise._a || promise._c,
i = 0,
reaction;
while (chain.length > i) {
reaction = chain[i++];
if (reaction.fail || !isUnhandled(reaction.promise)) return false;
}return true;
};
var onHandleUnhandled = function (promise) {
task.call(global, function () {
var handler;
if (isNode) {
process.emit('rejectionHandled', promise);
} else if (handler = global.onrejectionhandled) {
handler({ promise: promise, reason: promise._v });
}
});
};
var $reject = function (value) {
var promise = this;
if (promise._d) return;
promise._d = true;
promise = promise._w || promise; // unwrap
promise._v = value;
promise._s = 2;
if (!promise._a) promise._a = promise._c.slice();
notify(promise, true);
};
var $resolve = function (value) {
var promise = this,
then;
if (promise._d) return;
promise._d = true;
promise = promise._w || promise; // unwrap
try {
if (promise === value) throw TypeError("Promise can't be resolved itself");
if (then = isThenable(value)) {
microtask(function () {
var wrapper = { _w: promise, _d: false }; // wrap
try {
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
} catch (e) {
$reject.call(wrapper, e);
}
});
} else {
promise._v = value;
promise._s = 1;
notify(promise, false);
}
} catch (e) {
$reject.call({ _w: promise, _d: false }, e); // wrap
}
};
// constructor polyfill
if (!USE_NATIVE) {
// 25.4.3.1 Promise(executor)
$Promise = function Promise(executor) {
anInstance(this, $Promise, PROMISE, '_h');
aFunction(executor);
Internal.call(this);
try {
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
} catch (err) {
$reject.call(this, err);
}
};
Internal = function Promise(executor) {
this._c = []; // <- awaiting reactions
this._a = undefined; // <- checked in isUnhandled reactions
this._s = 0; // <- state
this._d = false; // <- done
this._v = undefined; // <- value
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
this._n = false; // <- notify
};
Internal.prototype = __webpack_require__(75)($Promise.prototype, {
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
then: function then(onFulfilled, onRejected) {
var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
reaction.fail = typeof onRejected == 'function' && onRejected;
reaction.domain = isNode ? process.domain : undefined;
this._c.push(reaction);
if (this._a) this._a.push(reaction);
if (this._s) notify(this, false);
return reaction.promise;
},
// 25.4.5.1 Promise.prototype.catch(onRejected)
'catch': function (onRejected) {
return this.then(undefined, onRejected);
}
});
PromiseCapability = function () {
var promise = new Internal();
this.promise = promise;
this.resolve = ctx($resolve, promise, 1);
this.reject = ctx($reject, promise, 1);
};
}
// statics
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
// 25.4.4.5 Promise.reject(r)
reject: function reject(r) {
var capability = newPromiseCapability(this),
$$reject = capability.reject;
$$reject(r);
return capability.promise;
}
});
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
// 25.4.4.6 Promise.resolve(x)
resolve: function resolve(x) {
// instanceof instead of internal slot check because we should fix it without
replacement native Promise core
if (x instanceof $Promise && sameConstructor(x.constructor, this)) return x;
var capability = newPromiseCapability(this),
$$resolve = capability.resolve;
$$resolve(x);
return capability.promise;
}
});
$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(120)(function
(iter) {
$Promise.all(iter)['catch'](empty);
})), PROMISE, {
// 25.4.4.1 Promise.all(iterable)
all: function all(iterable) {
var C = this,
capability = newPromiseCapability(C),
resolve = capability.resolve,
reject = capability.reject;
var abrupt = perform(function () {
var values = [],
index = 0,
remaining = 1;
forOf(iterable, false, function (promise) {
var $index = index++,
alreadyCalled = false;
values.push(undefined);
remaining++;
C.resolve(promise).then(function (value) {
if (alreadyCalled) return;
alreadyCalled = true;
values[$index] = value;
--remaining || resolve(values);
}, reject);
});
--remaining || resolve(values);
});
if (abrupt) reject(abrupt.error);
return capability.promise;
},
// 25.4.4.4 Promise.race(iterable)
race: function race(iterable) {
var C = this,
capability = newPromiseCapability(C),
reject = capability.reject;
var abrupt = perform(function () {
forOf(iterable, false, function (promise) {
C.resolve(promise).then(capability.resolve, reject);
});
});
if (abrupt) reject(abrupt.error);
return capability.promise;
}
});
/***/ }),
/* 336 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 337 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 338 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 339 */
/***/ (function(module, exports, __webpack_require__) {
$export($export.S, 'Reflect', {
deleteProperty: function deleteProperty(target, propertyKey) {
var desc = gOPD(anObject(target), propertyKey);
return desc && !desc.configurable ? false : delete target[propertyKey];
}
});
/***/ }),
/* 340 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 26.1.5 Reflect.enumerate(target)
$export($export.S, 'Reflect', {
enumerate: function enumerate(target) {
return new Enumerate(target);
}
});
/***/ }),
/* 341 */
/***/ (function(module, exports, __webpack_require__) {
$export($export.S, 'Reflect', {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey)
{
return gOPD.f(anObject(target), propertyKey);
}
});
/***/ }),
/* 342 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.8 Reflect.getPrototypeOf(target)
var $export = __webpack_require__(0),
getProto = __webpack_require__(39),
anObject = __webpack_require__(8);
$export($export.S, 'Reflect', {
getPrototypeOf: function getPrototypeOf(target) {
return getProto(anObject(target));
}
});
/***/ }),
/* 343 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 344 */
/***/ (function(module, exports, __webpack_require__) {
$export($export.S, 'Reflect', {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
/***/ }),
/* 345 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.10 Reflect.isExtensible(target)
var $export = __webpack_require__(0),
anObject = __webpack_require__(8),
$isExtensible = Object.isExtensible;
$export($export.S, 'Reflect', {
isExtensible: function isExtensible(target) {
anObject(target);
return $isExtensible ? $isExtensible(target) : true;
}
});
/***/ }),
/* 346 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.11 Reflect.ownKeys(target)
var $export = __webpack_require__(0);
/***/ }),
/* 347 */
/***/ (function(module, exports, __webpack_require__) {
// 26.1.12 Reflect.preventExtensions(target)
var $export = __webpack_require__(0),
anObject = __webpack_require__(8),
$preventExtensions = Object.preventExtensions;
$export($export.S, 'Reflect', {
preventExtensions: function preventExtensions(target) {
anObject(target);
try {
if ($preventExtensions) $preventExtensions(target);
return true;
} catch (e) {
return false;
}
}
});
/***/ }),
/* 348 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 349 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 350 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(61)('RegExp');
/***/ }),
/* 351 */
/***/ (function(module, exports, __webpack_require__) {
// @@match logic
__webpack_require__(115)('match', 1, function (defined, MATCH, $match) {
// 21.1.3.11 String.prototype.match(regexp)
return [function match(regexp) {
'use strict';
var O = defined(this),
fn = regexp == undefined ? undefined : regexp[MATCH];
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH]
(String(O));
}, $match];
});
/***/ }),
/* 352 */
/***/ (function(module, exports, __webpack_require__) {
// @@replace logic
__webpack_require__(115)('replace', 2, function (defined, REPLACE, $replace) {
// 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
return [function replace(searchValue, replaceValue) {
'use strict';
var O = defined(this),
fn = searchValue == undefined ? undefined : searchValue[REPLACE];
return fn !== undefined ? fn.call(searchValue, O, replaceValue) :
$replace.call(String(O), searchValue, replaceValue);
}, $replace];
});
/***/ }),
/* 353 */
/***/ (function(module, exports, __webpack_require__) {
// @@search logic
__webpack_require__(115)('search', 1, function (defined, SEARCH, $search) {
// 21.1.3.15 String.prototype.search(regexp)
return [function search(regexp) {
'use strict';
var O = defined(this),
fn = regexp == undefined ? undefined : regexp[SEARCH];
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH]
(String(O));
}, $search];
});
/***/ }),
/* 354 */
/***/ (function(module, exports, __webpack_require__) {
// @@split logic
__webpack_require__(115)('split', 2, function (defined, SPLIT, $split) {
'use strict';
/***/ }),
/* 355 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(204);
var anObject = __webpack_require__(8),
$flags = __webpack_require__(116),
DESCRIPTORS = __webpack_require__(11),
TO_STRING = 'toString',
$toString = /./[TO_STRING];
// 21.2.5.14 RegExp.prototype.toString()
if (__webpack_require__(5)(function () {
return $toString.call({ source: 'a', flags: 'b' }) != '/a/b';
})) {
define(function toString() {
var R = anObject(this);
return '/'.concat(R.source, '/', 'flags' in R ? R.flags : !DESCRIPTORS && R
instanceof RegExp ? $flags.call(R) : undefined);
});
// FF44- RegExp#toString has a wrong name
} else if ($toString.name != TO_STRING) {
define(function toString() {
return $toString.call(this);
});
}
/***/ }),
/* 356 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 357 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.2 String.prototype.anchor(name)
/***/ }),
/* 358 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.3 String.prototype.big()
/***/ }),
/* 359 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.4 String.prototype.blink()
"use strict";
// B.2.3.5 String.prototype.bold()
/***/ }),
/* 361 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 362 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
/***/ }),
/* 363 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.6 String.prototype.fixed()
/***/ }),
/* 364 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.7 String.prototype.fontcolor(color)
/***/ }),
/* 365 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.8 String.prototype.fontsize(size)
/***/ }),
/* 366 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 367 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
/***/ }),
/* 368 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.9 String.prototype.italics()
/***/ }),
/* 369 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(150)(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
var O = this._t,
index = this._i,
point;
if (index >= O.length) return { value: undefined, done: true };
point = $at(O, index);
this._i += point.length;
return { value: point, done: false };
});
/***/ }),
/* 370 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.10 String.prototype.link(url)
/***/ }),
/* 371 */
/***/ (function(module, exports, __webpack_require__) {
$export($export.S, 'String', {
// 21.1.2.4 String.raw(callSite, ...substitutions)
raw: function raw(callSite) {
var tpl = toIObject(callSite.raw),
len = toLength(tpl.length),
aLen = arguments.length,
res = [],
i = 0;
while (len > i) {
res.push(String(tpl[i++]));
if (i < aLen) res.push(String(arguments[i]));
}return res.join('');
}
});
/***/ }),
/* 372 */
/***/ (function(module, exports, __webpack_require__) {
$export($export.P, 'String', {
// 21.1.3.13 String.prototype.repeat(count)
repeat: __webpack_require__(159)
});
/***/ }),
/* 373 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.11 String.prototype.small()
/***/ }),
/* 374 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
/***/ }),
/* 375 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.12 String.prototype.strike()
/***/ }),
/* 376 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.13 String.prototype.sub()
__webpack_require__(23)('sub', function (createHTML) {
return function sub() {
return createHTML(this, 'sub', '', '');
};
});
/***/ }),
/* 377 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.3.14 String.prototype.sup()
/***/ }),
/* 378 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 21.1.3.25 String.prototype.trim()
/***/ }),
/* 379 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
$GOPD.f = $getOwnPropertyDescriptor;
$DP.f = $defineProperty;
__webpack_require__(51).f = gOPNExt.f = $getOwnPropertyNames;
__webpack_require__(74).f = $propertyIsEnumerable;
__webpack_require__(122).f = $getOwnPropertySymbols;
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(25)($Symbol[PROTOTYPE],
TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);
/***/ }),
/* 380 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
__webpack_require__(61)(ARRAY_BUFFER);
/***/ }),
/* 381 */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(0);
$export($export.G + $export.W + $export.F * !__webpack_require__(123).ABV, {
DataView: __webpack_require__(162).DataView
});
/***/ }),
/* 382 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 383 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 384 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 385 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 386 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 387 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(40)('Uint16', 2, function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
/***/ }),
/* 388 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 389 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 390 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 391 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://github.com/tc39/Array.prototype.includes
$export($export.P, 'Array', {
includes: function includes(el /*, fromIndex = 0 */) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
}
});
__webpack_require__(57)('includes');
/***/ }),
/* 392 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-
globalasap-for-enqueuing-a-microtask
var $export = __webpack_require__(0),
microtask = __webpack_require__(192)(),
process = __webpack_require__(3).process,
isNode = __webpack_require__(31)(process) == 'process';
$export($export.G, {
asap: function asap(fn) {
var domain = isNode && process.domain;
microtask(domain ? domain.bind(fn) : fn);
}
});
/***/ }),
/* 393 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/ljharb/proposal-is-error
var $export = __webpack_require__(0),
cof = __webpack_require__(31);
$export($export.S, 'Error', {
isError: function isError(it) {
return cof(it) === 'Error';
}
});
/***/ }),
/* 394 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(0);
/***/ }),
/* 395 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
iaddh: function iaddh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0,
$x1 = x1 >>> 0,
$y0 = y0 >>> 0;
return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>>
31) | 0;
}
});
/***/ }),
/* 396 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
imulh: function imulh(u, v) {
var UINT16 = 0xffff,
$u = +u,
$v = +v,
u0 = $u & UINT16,
v0 = $v & UINT16,
u1 = $u >> 16,
v1 = $v >> 16,
t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);
}
});
/***/ }),
/* 397 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
isubh: function isubh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0,
$x1 = x1 >>> 0,
$y0 = y0 >>> 0;
return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>>
31) | 0;
}
});
/***/ }),
/* 398 */
/***/ (function(module, exports, __webpack_require__) {
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
var $export = __webpack_require__(0);
$export($export.S, 'Math', {
umulh: function umulh(u, v) {
var UINT16 = 0xffff,
$u = +u,
$v = +v,
u0 = $u & UINT16,
v0 = $v & UINT16,
u1 = $u >>> 16,
v1 = $v >>> 16,
t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);
}
});
/***/ }),
/* 399 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $export = __webpack_require__(0),
toObject = __webpack_require__(18),
aFunction = __webpack_require__(30),
$defineProperty = __webpack_require__(12);
/***/ }),
/* 400 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 401 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(0),
$entries = __webpack_require__(196)(true);
$export($export.S, 'Object', {
entries: function entries(it) {
return $entries(it);
}
});
/***/ }),
/* 402 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-getownpropertydescriptors
var $export = __webpack_require__(0),
ownKeys = __webpack_require__(197),
toIObject = __webpack_require__(24),
gOPD = __webpack_require__(26),
createProperty = __webpack_require__(141);
$export($export.S, 'Object', {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O = toIObject(object),
getDesc = gOPD.f,
keys = ownKeys(O),
result = {},
i = 0,
key;
while (keys.length > i) createProperty(result, key = keys[i++], getDesc(O,
key));
return result;
}
});
/***/ }),
/* 403 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.2.4 Object.prototype.__lookupGetter__(P)
__webpack_require__(11) && $export($export.P + __webpack_require__(121), 'Object',
{
__lookupGetter__: function __lookupGetter__(P) {
var O = toObject(this),
K = toPrimitive(P, true),
D;
do {
if (D = getOwnPropertyDescriptor(O, K)) return D.get;
} while (O = getPrototypeOf(O));
}
});
/***/ }),
/* 404 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// B.2.2.5 Object.prototype.__lookupSetter__(P)
__webpack_require__(11) && $export($export.P + __webpack_require__(121), 'Object',
{
__lookupSetter__: function __lookupSetter__(P) {
var O = toObject(this),
K = toPrimitive(P, true),
D;
do {
if (D = getOwnPropertyDescriptor(O, K)) return D.set;
} while (O = getPrototypeOf(O));
}
});
/***/ }),
/* 405 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(0),
$values = __webpack_require__(196)(false);
$export($export.S, 'Object', {
values: function values(it) {
return $values(it);
}
});
/***/ }),
/* 406 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = __webpack_require__(0);
/***/ }),
/* 407 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://github.com/mathiasbynens/String.prototype.at
$export($export.P, 'String', {
at: function at(pos) {
return $at(this, pos);
}
});
/***/ }),
/* 408 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://tc39.github.io/String.prototype.matchAll/
$export($export.P, 'String', {
matchAll: function matchAll(regexp) {
defined(this);
if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!');
var S = String(this),
flags = 'flags' in RegExpProto ? String(regexp.flags) :
getFlags.call(regexp),
rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);
rx.lastIndex = toLength(regexp.lastIndex);
return new $RegExpStringIterator(rx, S);
}
});
/***/ }),
/* 409 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://github.com/tc39/proposal-string-pad-start-end
$export($export.P, 'String', {
padEnd: function padEnd(maxLength /*, fillString = ' ' */) {
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined,
false);
}
});
/***/ }),
/* 410 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://github.com/tc39/proposal-string-pad-start-end
$export($export.P, 'String', {
padStart: function padStart(maxLength /*, fillString = ' ' */) {
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined,
true);
}
});
/***/ }),
/* 411 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
/***/ }),
/* 412 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
/***/ }),
/* 413 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(202)('asyncIterator');
/***/ }),
/* 414 */
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/ljharb/proposal-global
var $export = __webpack_require__(0);
/***/ }),
/* 415 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 416 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 417 */
/***/ (function(module, exports, __webpack_require__) {
/***/ }),
/* 418 */
/***/ (function(module, exports, __webpack_require__) {
if (true) {
// AMD. Register as an anonymous module.
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof
__WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,
__webpack_require__, exports, module)) :
__WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined &&
(module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// like Node.
module.exports = factory();
} else {
// Browser globals (root is window)
root.returnExports = factory();
}
})(this, function () {
/**
* Brings an environment as close to ECMAScript 5 compliance
* as is possible with the facilities of erstwhile engines.
*
* Annotated ES5: http://es5.github.com/ (specific links below)
* ES5 Spec: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-
262.pdf
* Required reading:
http://javascriptweblog.wordpress.com/2011/12/05/extending-javascript-natives/
*/
/* global Symbol */
/* eslint-disable one-var-declaration-per-line, no-redeclare, max-statements-
per-line */
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag
=== 'symbol';
var isCallable; /* inlined from https://npmjs.com/is-callable */var fnToStr =
Function.prototype.toString,
constructorRegex = /^\s*class /,
isES6ClassFn = function isES6ClassFn(value) {
try {
var fnStr = fnToStr.call(value);var singleStripped =
fnStr.replace(/\/\/.*\n/g, '');var multiStripped =
singleStripped.replace(/\/\*[.\s\S]*\*\//g, '');var spaceStripped =
multiStripped.replace(/\n/mg, ' ').replace(/ {2}/g, ' ');return
constructorRegex.test(spaceStripped);
} catch (e) {
return false; /* not a function */
}
},
tryFunctionObject = function tryFunctionObject(value) {
try {
if (isES6ClassFn(value)) {
return false;
}fnToStr.call(value);return true;
} catch (e) {
return false;
}
},
fnClass = '[object Function]',
genClass = '[object GeneratorFunction]',
isCallable = function isCallable(value) {
if (!value) {
return false;
}if (typeof value !== 'function' && typeof value !== 'object') {
return false;
}if (hasToStringTag) {
return tryFunctionObject(value);
}if (isES6ClassFn(value)) {
return false;
}var strClass = to_string.call(value);return strClass === fnClass ||
strClass === genClass;
};
var isRegex; /* inlined from https://npmjs.com/is-regex */var regexExec =
RegExp.prototype.exec,
tryRegexExec = function tryRegexExec(value) {
try {
regexExec.call(value);return true;
} catch (e) {
return false;
}
},
regexClass = '[object RegExp]';isRegex = function isRegex(value) {
if (typeof value !== 'object') {
return false;
}return hasToStringTag ? tryRegexExec(value) : to_string.call(value) ===
regexClass;
};
var isString; /* inlined from https://npmjs.com/is-string */var strValue =
String.prototype.valueOf,
tryStringObject = function tryStringObject(value) {
try {
strValue.call(value);return true;
} catch (e) {
return false;
}
},
stringClass = '[object String]';isString = function isString(value) {
if (typeof value === 'string') {
return true;
}if (typeof value !== 'object') {
return false;
}return hasToStringTag ? tryStringObject(value) : to_string.call(value) ===
stringClass;
};
/* eslint-enable one-var-declaration-per-line, no-redeclare, max-statements-
per-line */
//
// Util
// ======
//
var ES = {
// ES5 9.4
// http://es5.github.com/#x9.4
// http://jsperf.com/to-integer
/* replaceable with https://npmjs.com/package/es-abstract ES5.ToInteger */
ToInteger: function ToInteger(num) {
var n = +num;
if (isActualNaN(n)) {
n = 0;
} else if (n !== 0 && n !== 1 / 0 && n !== -(1 / 0)) {
n = (n > 0 || -1) * Math.floor(Math.abs(n));
}
return n;
},
// ES5 9.9
// http://es5.github.com/#x9.9
/* replaceable with https://npmjs.com/package/es-abstract ES5.ToObject */
ToObject: function (o) {
if (o == null) {
// this matches both null and undefined
throw new TypeError("can't convert " + o + ' to object');
}
return $Object(o);
},
//
// Function
// ========
//
// ES-5 15.3.4.5
// http://es5.github.com/#x15.3.4.5
defineProperties(FunctionPrototype, {
bind: function bind(that) {
// .length is 1
// 1. Let Target be the this value.
var target = this;
// 2. If IsCallable(Target) is false, throw a TypeError exception.
if (!isCallable(target)) {
throw new TypeError('Function.prototype.bind called on incompatible
' + target);
}
// 3. Let A be a new (possibly empty) internal list of all of the
// argument values provided after thisArg (arg1, arg2 etc), in order.
// XXX slicedArgs will stand in for "A" if used
var args = array_slice.call(arguments, 1); // for normal call
// 4. Let F be a new native ECMAScript object.
// 11. Set the [[Prototype]] internal property of F to the standard
// built-in Function prototype object as specified in 15.3.3.1.
// 12. Set the [[Call]] internal property of F as described in
// 15.3.4.5.1.
// 13. Set the [[Construct]] internal property of F as described in
// 15.3.4.5.2.
// 14. Set the [[HasInstance]] internal property of F as described in
// 15.3.4.5.3.
var bound;
var binder = function () {
// 17. Set the attributes of the length own property of F to the values
// specified in 15.3.5.1.
var boundArgs = [];
for (var i = 0; i < boundLength; i++) {
array_push.call(boundArgs, '$' + i);
}
if (target.prototype) {
Empty.prototype = target.prototype;
bound.prototype = new Empty();
// Clean up dangling references.
Empty.prototype = null;
}
// TODO
// 18. Set the [[Extensible]] internal property of F to true.
// TODO
// 19. Let thrower be the [[ThrowTypeError]] function Object (13.2.3).
// 20. Call the [[DefineOwnProperty]] internal method of F with
// arguments "caller", PropertyDescriptor {[[Get]]: thrower, [[Set]]:
// thrower, [[Enumerable]]: false, [[Configurable]]: false}, and
// false.
// 21. Call the [[DefineOwnProperty]] internal method of F with
// arguments "arguments", PropertyDescriptor {[[Get]]: thrower,
// [[Set]]: thrower, [[Enumerable]]: false, [[Configurable]]: false},
// and false.
// TODO
// NOTE Function objects created using Function.prototype.bind do not
// have a prototype property or the [[Code]], [[FormalParameters]], and
// [[Scope]] internal properties.
// XXX can't delete prototype in pure-js.
// 22. Return F.
return bound;
}
});
//
// Array
// =====
//
// ES5 15.4.4.12
// http://es5.github.com/#x15.4.4.13
// Return len+argCount.
// [bugfix, ielt8]
// IE < 8 bug: [].unshift(0) === undefined but should be "1"
var hasUnshiftReturnValueBug = [].unshift(0) !== 1;
defineProperties(ArrayPrototype, {
unshift: function () {
array_unshift.apply(this, arguments);
return this.length;
}
}, hasUnshiftReturnValueBug);
// ES5 15.4.3.2
// http://es5.github.com/#x15.4.3.2
//
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray
defineProperties($Array, { isArray: isArray });
// ES5 15.4.4.18
// http://es5.github.com/#x15.4.4.18
//
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/array/forEach
method.call([1], function () {
'use strict';
defineProperties(ArrayPrototype, {
forEach: function forEach(callbackfn /*, thisArg*/) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var i = -1;
var length = ES.ToUint32(self.length);
var T;
if (arguments.length > 1) {
T = arguments[1];
}
// ES5 15.4.4.19
// http://es5.github.com/#x15.4.4.19
//
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map
defineProperties(ArrayPrototype, {
map: function map(callbackfn /*, thisArg*/) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var length = ES.ToUint32(self.length);
var result = $Array(length);
var T;
if (arguments.length > 1) {
T = arguments[1];
}
// ES5 15.4.4.20
// http://es5.github.com/#x15.4.4.20
//
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter
defineProperties(ArrayPrototype, {
filter: function filter(callbackfn /*, thisArg*/) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var length = ES.ToUint32(self.length);
var result = [];
var value;
var T;
if (arguments.length > 1) {
T = arguments[1];
}
// ES5 15.4.4.16
// http://es5.github.com/#x15.4.4.16
//
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every
defineProperties(ArrayPrototype, {
every: function every(callbackfn /*, thisArg*/) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var length = ES.ToUint32(self.length);
var T;
if (arguments.length > 1) {
T = arguments[1];
}
// ES5 15.4.4.17
// http://es5.github.com/#x15.4.4.17
//
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some
defineProperties(ArrayPrototype, {
some: function some(callbackfn /*, thisArg */) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var length = ES.ToUint32(self.length);
var T;
if (arguments.length > 1) {
T = arguments[1];
}
// ES5 15.4.4.21
// http://es5.github.com/#x15.4.4.21
//
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduce
var reduceCoercesToObject = false;
if (ArrayPrototype.reduce) {
reduceCoercesToObject = typeof ArrayPrototype.reduce.call('es5', function
(_, __, ___, list) {
return list;
}) === 'object';
}
defineProperties(ArrayPrototype, {
reduce: function reduce(callbackfn /*, initialValue*/) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var length = ES.ToUint32(self.length);
var i = 0;
var result;
if (arguments.length >= 2) {
result = arguments[1];
} else {
do {
if (i in self) {
result = self[i++];
break;
}
return result;
}
}, !reduceCoercesToObject);
// ES5 15.4.4.22
// http://es5.github.com/#x15.4.4.22
//
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/reduce
Right
var reduceRightCoercesToObject = false;
if (ArrayPrototype.reduceRight) {
reduceRightCoercesToObject = typeof ArrayPrototype.reduceRight.call('es5',
function (_, __, ___, list) {
return list;
}) === 'object';
}
defineProperties(ArrayPrototype, {
reduceRight: function reduceRight(callbackfn /*, initial*/) {
var object = ES.ToObject(this);
var self = splitString && isString(this) ? strSplit(this, '') : object;
var length = ES.ToUint32(self.length);
var result;
var i = length - 1;
if (arguments.length >= 2) {
result = arguments[1];
} else {
do {
if (i in self) {
result = self[i--];
break;
}
if (i < 0) {
return result;
}
do {
if (i in self) {
result = callbackfn(result, self[i], i, object);
}
} while (i--);
return result;
}
}, !reduceRightCoercesToObject);
// ES5 15.4.4.14
// http://es5.github.com/#x15.4.4.14
//
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf
var hasFirefox2IndexOfBug = ArrayPrototype.indexOf && [0, 1].indexOf(1, 2) !==
-1;
defineProperties(ArrayPrototype, {
indexOf: function indexOf(searchElement /*, fromIndex */) {
var self = splitString && isString(this) ? strSplit(this, '') :
ES.ToObject(this);
var length = ES.ToUint32(self.length);
if (length === 0) {
return -1;
}
var i = 0;
if (arguments.length > 1) {
i = ES.ToInteger(arguments[1]);
}
// ES5 15.4.4.15
// http://es5.github.com/#x15.4.4.15
//
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastInde
xOf
var hasFirefox2LastIndexOfBug = ArrayPrototype.lastIndexOf && [0,
1].lastIndexOf(0, -3) !== -1;
defineProperties(ArrayPrototype, {
lastIndexOf: function lastIndexOf(searchElement /*, fromIndex */) {
var self = splitString && isString(this) ? strSplit(this, '') :
ES.ToObject(this);
var length = ES.ToUint32(self.length);
if (length === 0) {
return -1;
}
var i = length - 1;
if (arguments.length > 1) {
i = min(i, ES.ToInteger(arguments[1]));
}
// handle negative indices
i = i >= 0 ? i : length - Math.abs(i);
for (; i >= 0; i--) {
if (i in self && searchElement === self[i]) {
return i;
}
}
return -1;
}
}, hasFirefox2LastIndexOfBug);
// ES5 15.4.4.12
// http://es5.github.com/#x15.4.4.12
var spliceNoopReturnsEmptyArray = function () {
var a = [1, 2];
var result = a.splice();
return a.length === 2 && isArray(result) && result.length === 0;
}();
defineProperties(ArrayPrototype, {
// Safari 5.0 bug where .splice() returns undefined
splice: function splice(start, deleteCount) {
if (arguments.length === 0) {
return [];
} else {
return array_splice.apply(this, arguments);
}
}
}, !spliceNoopReturnsEmptyArray);
var k = 0;
var from;
while (k < actualDeleteCount) {
from = $String(actualStart + k);
if (owns(O, from)) {
A[k] = O[from];
}
k += 1;
}
return A;
}
}, !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays);
// This fixes a very weird bug in Opera 10.6 when pushing `undefined
var pushUndefinedIsWeird = function () {
var arr = [];
var result = arr.push(undefined);
return result !== 1 || arr.length !== 1 || typeof arr[0] !== 'undefined' ||
!owns(arr, 0);
}();
defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird);
// ES5 15.2.3.14
// http://es5.github.io/#x15.4.4.10
// Fix boxed string bug
defineProperties(ArrayPrototype, {
slice: function (start, end) {
var arr = isString(this) ? strSplit(this, '') : this;
return arraySliceApply(arr, arguments);
}
}, splitString);
//
// Object
// ======
//
// ES5 15.2.3.14
// http://es5.github.com/#x15.2.3.14
// http://whattheheadsaid.com/2010/10/a-safer-object-keys-compatibility-
implementation
var hasDontEnumBug = !isEnum({ 'toString': null }, 'toString'); // jscs:ignore
disallowQuotedKeysInObjects
var hasProtoEnumBug = isEnum(function () {}, 'prototype');
var hasStringEnumBug = !owns('x', '0');
var equalsConstructorPrototype = function (o) {
var ctor = o.constructor;
return ctor && ctor.prototype === o;
};
var excludedKeys = {
$window: true,
$console: true,
$parent: true,
$self: true,
$frame: true,
$frames: true,
$frameElement: true,
$webkitIndexedDB: true,
$webkitStorageInfo: true,
$external: true,
$width: true,
$height: true,
$top: true,
$localStorage: true
};
var hasAutomationEqualityBug = function () {
/* globals window */
if (typeof window === 'undefined') {
return false;
}
for (var k in window) {
try {
if (!excludedKeys['$' + k] && owns(window, k) && window[k] !== null
&& typeof window[k] === 'object') {
equalsConstructorPrototype(window[k]);
}
} catch (e) {
return true;
}
}
return false;
}();
var equalsConstructorPrototypeIfNotBuggy = function (object) {
if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
return equalsConstructorPrototype(object);
}
try {
return equalsConstructorPrototype(object);
} catch (e) {
return false;
}
};
var dontEnums = ['toString', 'toLocaleString', 'valueOf', 'hasOwnProperty',
'isPrototypeOf', 'propertyIsEnumerable', 'constructor'];
var dontEnumsLength = dontEnums.length;
defineProperties($Object, {
keys: function keys(object) {
var isFn = isCallable(object);
var isArgs = isArguments(object);
var isObject = object !== null && typeof object === 'object';
var isStr = isObject && isString(object);
if (!isArgs) {
for (var name in object) {
if (!(skipProto && name === 'prototype') && owns(object, name))
{
pushCall(theKeys, $String(name));
}
}
}
if (hasDontEnumBug) {
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
for (var j = 0; j < dontEnumsLength; j++) {
var dontEnum = dontEnums[j];
if (!(skipConstructor && dontEnum === 'constructor') &&
owns(object, dontEnum)) {
pushCall(theKeys, dontEnum);
}
}
}
return theKeys;
}
});
//
// Date
// ====
//
defineProperties(Date.prototype, {
getFullYear: function getFullYear() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var year = originalGetFullYear(this);
if (year < 0 && originalGetMonth(this) > 11) {
return year + 1;
}
return year;
},
getMonth: function getMonth() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var year = originalGetFullYear(this);
var month = originalGetMonth(this);
if (year < 0 && month > 11) {
return 0;
}
return month;
},
getDate: function getDate() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var year = originalGetFullYear(this);
var month = originalGetMonth(this);
var date = originalGetDate(this);
if (year < 0 && month > 11) {
if (month === 12) {
return date;
}
var days = daysInMonth(0, year + 1);
return days - date + 1;
}
return date;
},
getUTCFullYear: function getUTCFullYear() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var year = originalGetUTCFullYear(this);
if (year < 0 && originalGetUTCMonth(this) > 11) {
return year + 1;
}
return year;
},
getUTCMonth: function getUTCMonth() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var year = originalGetUTCFullYear(this);
var month = originalGetUTCMonth(this);
if (year < 0 && month > 11) {
return 0;
}
return month;
},
getUTCDate: function getUTCDate() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var year = originalGetUTCFullYear(this);
var month = originalGetUTCMonth(this);
var date = originalGetUTCDate(this);
if (year < 0 && month > 11) {
if (month === 12) {
return date;
}
var days = daysInMonth(0, year + 1);
return days - date + 1;
}
return date;
}
}, hasNegativeMonthYearBug);
defineProperties(Date.prototype, {
toUTCString: function toUTCString() {
if (!this || !(this instanceof Date)) {
throw new TypeError('this is not a Date object.');
}
var day = originalGetUTCDay(this);
var date = originalGetUTCDate(this);
var month = originalGetUTCMonth(this);
var year = originalGetUTCFullYear(this);
var hour = originalGetUTCHours(this);
var minute = originalGetUTCMinutes(this);
var second = originalGetUTCSeconds(this);
return dayName[day] + ', ' + (date < 10 ? '0' + date : date) + ' ' +
monthName[month] + ' ' + year + ' ' + (hour < 10 ? '0' + hour : hour) + ':' +
(minute < 10 ? '0' + minute : minute) + ':' + (second < 10 ? '0' + second : second)
+ ' GMT';
}
}, hasNegativeMonthYearBug || hasToUTCStringFormatBug);
// ES5 15.9.5.43
// http://es5.github.com/#x15.9.5.43
// This function returns a String value represent the instance in time
// represented by this Date object. The format of the String is the Date Time
// string format defined in 15.9.1.15. All fields are present in the String.
// The time zone is always UTC, denoted by the suffix Z. If the time value of
// this object is not a finite Number a RangeError exception is thrown.
var negativeDate = -62198755200000;
var negativeYearString = '-000001';
var hasNegativeDateBug = Date.prototype.toISOString && new
Date(negativeDate).toISOString().indexOf(negativeYearString) === -1; // eslint-
disable-line max-len
var hasSafari51DateBug = Date.prototype.toISOString && new Date(-
1).toISOString() !== '1969-12-31T23:59:59.999Z';
defineProperties(Date.prototype, {
toISOString: function toISOString() {
if (!isFinite(this) || !isFinite(getTime(this))) {
// Adope Photoshop requires the second check.
throw new RangeError('Date.prototype.toISOString called on non-
finite value.');
}
// ES5 15.9.5.44
// http://es5.github.com/#x15.9.5.44
// This function provides a String representation of a Date object for use by
// JSON.stringify (15.12.3).
var dateToJSONIsSupported = function () {
try {
return Date.prototype.toJSON && new Date(NaN).toJSON() === null && new
Date(negativeDate).toJSON().indexOf(negativeYearString) !== -1 &&
Date.prototype.toJSON.call({ // generic
toISOString: function () {
return true;
}
});
} catch (e) {
return false;
}
}();
if (!dateToJSONIsSupported) {
Date.prototype.toJSON = function toJSON(key) {
// When the toJSON method is called with argument key, the following
// steps are taken:
// ES5 15.9.4.2
// http://es5.github.com/#x15.9.4.2
// based on work shared by Daniel Friesen (dantman)
// http://gist.github.com/303249
var supportsExtendedYears = Date.parse('+033658-09-27T01:46:40.000Z') === 1e15;
var acceptsInvalidDates = !isNaN(Date.parse('2012-04-04T24:00:00.500Z')) || !
isNaN(Date.parse('2012-11-31T23:59:59.000Z')) || !isNaN(Date.parse('2012-12-
31T23:59:60.000Z'));
var doesNotParseY2KNewYear = isNaN(Date.parse('2000-01-01T00:00:00.000Z'));
if (doesNotParseY2KNewYear || acceptsInvalidDates || !supportsExtendedYears) {
// XXX global assignment won't work in embeddings that use
// an alternate object for the context.
/* global Date: true */
var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1;
var hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0,
maxSafeUnsigned32Bit + 1).getTime());
// eslint-disable-next-line no-implicit-globals, no-global-assign
Date = function (NativeDate) {
// Date.length === 7
var DateShim = function Date(Y, M, D, h, m, s, ms) {
var length = arguments.length;
var date;
if (this instanceof NativeDate) {
var seconds = s;
var millis = ms;
if (hasSafariSignedIntBug && length >= 7 && ms >
maxSafeUnsigned32Bit) {
// work around a Safari 8/9 bug where it treats the seconds
as signed
var msToShift = Math.floor(ms / maxSafeUnsigned32Bit) *
maxSafeUnsigned32Bit;
var sToShift = Math.floor(msToShift / 1e3);
seconds += sToShift;
millis -= sToShift * 1e3;
}
date = length === 1 && $String(Y) === Y // isString(Y)
// We explicitly pass it through parse:
? new NativeDate(DateShim.parse(Y))
// We have to manually make calls depending on argument
// length here
: length >= 7 ? new NativeDate(Y, M, D, h, m, seconds,
millis) : length >= 6 ? new NativeDate(Y, M, D, h, m, seconds) : length >= 5 ? new
NativeDate(Y, M, D, h, m) : length >= 4 ? new NativeDate(Y, M, D, h) : length >=
3 ? new NativeDate(Y, M, D) : length >= 2 ? new NativeDate(Y, M) : length >= 1 ?
new NativeDate(Y instanceof NativeDate ? +Y : Y) : new NativeDate();
} else {
date = NativeDate.apply(this, arguments);
}
if (!isPrimitive(date)) {
// Prevent mixups with unfixed Date object
defineProperties(date, { constructor: DateShim }, true);
}
return date;
};
var months = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334,
365];
// Copy any custom methods a 3rd party library may have added
for (var key in NativeDate) {
if (owns(NativeDate, key)) {
DateShim[key] = NativeDate[key];
}
}
return DateShim;
}(Date);
/* global Date: false */
}
// ES5 15.9.4.4
// http://es5.github.com/#x15.9.4.4
if (!Date.now) {
Date.now = function now() {
return new Date().getTime();
};
}
//
// Number
// ======
//
// ES5.1 15.7.4.5
// http://es5.github.com/#x15.7.4.5
var hasToFixedBugs = NumberPrototype.toFixed && (0.00008.toFixed(3) !== '0.000'
|| 0.9.toFixed(0) !== '1' || 1.255.toFixed(2) !== '1.25' || 1000000000000000128
.toFixed(0) !== '1000000000000000128');
var toFixedHelpers = {
base: 1e7,
size: 6,
data: [0, 0, 0, 0, 0, 0],
multiply: function multiply(n, c) {
var i = -1;
var c2 = c;
while (++i < toFixedHelpers.size) {
c2 += n * toFixedHelpers.data[i];
toFixedHelpers.data[i] = c2 % toFixedHelpers.base;
c2 = Math.floor(c2 / toFixedHelpers.base);
}
},
divide: function divide(n) {
var i = toFixedHelpers.size;
var c = 0;
while (--i >= 0) {
c += toFixedHelpers.data[i];
toFixedHelpers.data[i] = Math.floor(c / n);
c = c % n * toFixedHelpers.base;
}
},
numToString: function numToString() {
var i = toFixedHelpers.size;
var s = '';
while (--i >= 0) {
if (s !== '' || i === 0 || toFixedHelpers.data[i] !== 0) {
var t = $String(toFixedHelpers.data[i]);
if (s === '') {
s = t;
} else {
s += strSlice('0000000', 0, 7 - t.length) + t;
}
}
}
return s;
},
pow: function pow(x, n, acc) {
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x *
x, n / 2, acc);
},
log: function log(x) {
var n = 0;
var x2 = x;
while (x2 >= 4096) {
n += 12;
x2 /= 4096;
}
while (x2 >= 2) {
n += 1;
x2 /= 2;
}
return n;
}
};
x = $Number(this);
if (isActualNaN(x)) {
return 'NaN';
}
s = '';
if (x < 0) {
s = '-';
x = -x;
}
m = '0';
if (x > 1e-21) {
// 1e-21 < x < 1e21
// -70 < log2(x) < 70
e = toFixedHelpers.log(x * toFixedHelpers.pow(2, 69, 1)) - 69;
z = e < 0 ? x * toFixedHelpers.pow(2, -e, 1) : x /
toFixedHelpers.pow(2, e, 1);
z *= 0x10000000000000; // Math.pow(2, 52);
e = 52 - e;
while (j >= 7) {
toFixedHelpers.multiply(1e7, 0);
j -= 7;
}
if (f > 0) {
k = m.length;
if (k <= f) {
m = s + strSlice('0.0000000000000000000', 0, f - k + 2) + m;
} else {
m = s + strSlice(m, 0, k - f) + '.' + strSlice(m, k - f);
}
} else {
m = s + m;
}
return m;
};
defineProperties(NumberPrototype, { toFixed: toFixedShim }, hasToFixedBugs);
// ES5 15.5.4.14
// http://es5.github.com/#x15.5.4.14
// [bugfix, chrome]
// If separator is undefined, then the result array contains just one
String,
// which is the this value (converted to a String). If limit is not
undefined,
// then the output array is truncated so that it contains no more than
limit
// elements.
// "0".split(undefined, 0) -> []
} else if ('0'.split(void 0, 0).length) {
StringPrototype.split = function split(separator, limit) {
if (typeof separator === 'undefined' && limit === 0) {
return [];
}
return strSplit(this, separator, limit);
};
}
if (!replaceReportsGroupsCorrectly) {
StringPrototype.replace = function replace(searchValue, replaceValue) {
var isFn = isCallable(replaceValue);
var hasCapturingGroups = isRegex(searchValue) && /\)
[*?]/.test(searchValue.source);
if (!isFn || !hasCapturingGroups) {
return str_replace.call(this, searchValue, replaceValue);
} else {
var wrappedReplaceValue = function (match) {
var length = arguments.length;
var originalLastIndex = searchValue.lastIndex;
searchValue.lastIndex = 0;
var args = searchValue.exec(match) || [];
searchValue.lastIndex = originalLastIndex;
pushCall(args, arguments[length - 2], arguments[length - 1]);
return replaceValue.apply(this, args);
};
return str_replace.call(this, searchValue, wrappedReplaceValue);
}
};
}
// ES5 15.5.4.20
// whitespace from: http://es5.github.io/#x15.5.4.20
var ws = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028' +
'\u2029\uFEFF';
var zeroWidth = '\u200b';
var wsRegexChars = '[' + ws + ']';
var trimBeginRegexp = new RegExp('^' + wsRegexChars + wsRegexChars + '*');
var trimEndRegexp = new RegExp(wsRegexChars + wsRegexChars + '*$');
var hasTrimWhitespaceBug = StringPrototype.trim && (ws.trim() || !
zeroWidth.trim());
defineProperties(StringPrototype, {
// http://blog.stevenlevithan.com/archives/faster-trim-javascript
// http://perfectionkills.com/whitespace-deviations/
trim: function trim() {
if (typeof this === 'undefined' || this === null) {
throw new TypeError("can't convert " + this + ' to object');
}
return $String(this).replace(trimBeginRegexp,
'').replace(trimEndRegexp, '');
}
}, hasTrimWhitespaceBug);
var trim = call.bind(String.prototype.trim);
// ES-5 15.1.2.2
// eslint-disable-next-line radix
if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) {
/* global parseInt: true */
parseInt = function (origParseInt) {
var hexRegex = /^[-+]?0[xX]/;
return function parseInt(str, radix) {
if (typeof str === 'symbol') {
// handle Symbols in node 8.3/8.4
// eslint-disable-next-line no-implicit-coercion, no-unused-
expressions
'' + str; // jscs:ignore disallowImplicitTypeConversion
}
// https://es5.github.io/#x15.1.2.3
if (1 / parseFloat('-0') !== -Infinity) {
/* global parseFloat: true */
parseFloat = function (origParseFloat) {
return function parseFloat(string) {
var inputString = trim(String(string));
var result = origParseFloat(inputString);
return result === 0 && strSlice(inputString, 0, 1) === '-' ? -0 :
result;
};
}(parseFloat);
}
if (supportsDescriptors) {
var ensureNonEnumerable = function (obj, prop) {
if (isEnum(obj, prop)) {
var desc = Object.getOwnPropertyDescriptor(obj, prop);
if (desc.configurable) {
desc.enumerable = false;
Object.defineProperty(obj, prop, desc);
}
}
};
ensureNonEnumerable(Error.prototype, 'message');
if (Error.prototype.message !== '') {
Error.prototype.message = '';
}
ensureNonEnumerable(Error.prototype, 'name');
}
/***/ }),
/* 419 */,
/* 420 */
/***/ (function(module, exports, __webpack_require__) {
// Public: Initializes JSON 3 using the given `context` object, attaching the
// `stringify` and `parse` functions to the specified `exports` object.
function runInContext(context, exports) {
context || (context = root["Object"]());
exports || (exports = root["Object"]());
// Convenience aliases.
var objectProto = Object.prototype,
getClass = objectProto.toString,
isProperty,
forEach,
undef;
if (!has("json")) {
// Common `[[Class]]` name aliases.
var functionClass = "[object Function]",
dateClass = "[object Date]",
numberClass = "[object Number]",
stringClass = "[object String]",
arrayClass = "[object Array]",
booleanClass = "[object Boolean]";
// Internal: Returns the next token, or `"$"` if the parser has reached
// the end of the source string. A token may be a string, number, `null`
// literal, or Boolean literal.
var lex = function () {
var source = Source,
length = source.length,
value,
begin,
position,
isSigned,
charCode;
while (Index < length) {
charCode = source.charCodeAt(Index);
switch (charCode) {
case 9:case 10:case 13:case 32:
// Skip whitespace tokens, including tabs, carriage returns, line
// feeds, and space characters.
Index++;
break;
case 123:case 125:case 91:case 93:case 58:case 44:
// Parse a punctuator token (`{`, `}`, `[`, `]`, `:`, or `,`) at
// the current position.
value = charIndexBuggy ? source.charAt(Index) : source[Index];
Index++;
return value;
case 34:
// `"` delimits a JSON string; advance to the next character and
// begin parsing the string. String tokens are prefixed with the
// sentinel `@` character to distinguish them from punctuators and
// end-of-string tokens.
for (value = "@", Index++; Index < length;) {
charCode = source.charCodeAt(Index);
if (charCode < 32) {
// Unescaped ASCII control characters (those with a code unit
// less than the space character) are not permitted.
abort();
} else if (charCode == 92) {
// A reverse solidus (`\`) marks the beginning of an escaped
// control character (including `"`, `\`, and `/`) or Unicode
// escape sequence.
charCode = source.charCodeAt(++Index);
switch (charCode) {
case 92:case 34:case 47:case 98:case 116:case 110:case
102:case 114:
// Revive escaped control characters.
value += Unescapes[charCode];
Index++;
break;
case 117:
// `\u` marks the beginning of a Unicode escape sequence.
// Advance to the first character and validate the
// four-digit code point.
begin = ++Index;
for (position = Index + 4; Index < position; Index++) {
charCode = source.charCodeAt(Index);
// A valid sequence comprises four hexdigits (case-
// insensitive) that form a single hexadecimal value.
if (!(charCode >= 48 && charCode <= 57 || charCode >= 97
&& charCode <= 102 || charCode >= 65 && charCode <= 70)) {
// Invalid Unicode escape sequence.
abort();
}
}
// Revive the escaped character.
value += fromCharCode("0x" + source.slice(begin, Index));
break;
default:
// Invalid escape sequence.
abort();
}
} else {
if (charCode == 34) {
// An unescaped double-quote character marks the end of the
// string.
break;
}
charCode = source.charCodeAt(Index);
begin = Index;
// Optimize for the common case where a string is valid.
while (charCode >= 32 && charCode != 92 && charCode != 34) {
charCode = source.charCodeAt(++Index);
}
// Append the string as-is.
value += source.slice(begin, Index);
}
}
if (source.charCodeAt(Index) == 34) {
// Advance to the next character and return the revived string.
Index++;
return value;
}
// Unterminated string.
abort();
default:
// Parse numbers and literals.
begin = Index;
// Advance past the negative sign, if one is specified.
if (charCode == 45) {
isSigned = true;
charCode = source.charCodeAt(++Index);
}
// Parse an integer or floating-point value.
if (charCode >= 48 && charCode <= 57) {
// Leading zeroes are interpreted as octal literals.
if (charCode == 48 && (charCode = source.charCodeAt(Index + 1),
charCode >= 48 && charCode <= 57)) {
// Illegal octal literal.
abort();
}
isSigned = false;
// Parse the integer component.
for (; Index < length && (charCode = source.charCodeAt(Index),
charCode >= 48 && charCode <= 57); Index++);
// Floats cannot contain a leading decimal point; however, this
// case is already accounted for by the parser.
if (source.charCodeAt(Index) == 46) {
position = ++Index;
// Parse the decimal component.
for (; position < length && (charCode =
source.charCodeAt(position), charCode >= 48 && charCode <= 57); position++);
if (position == Index) {
// Illegal trailing decimal.
abort();
}
Index = position;
}
// Parse exponents. The `e` denoting the exponent is
// case-insensitive.
charCode = source.charCodeAt(Index);
if (charCode == 101 || charCode == 69) {
charCode = source.charCodeAt(++Index);
// Skip past the sign following the exponent, if one is
// specified.
if (charCode == 43 || charCode == 45) {
Index++;
}
// Parse the exponential component.
for (position = Index; position < length && (charCode =
source.charCodeAt(position), charCode >= 48 && charCode <= 57); position++);
if (position == Index) {
// Illegal empty exponent.
abort();
}
Index = position;
}
// Coerce the parsed value to a JavaScript number.
return +source.slice(begin, Index);
}
// A negative sign may only precede numbers.
if (isSigned) {
abort();
}
// `true`, `false`, and `null` literals.
if (source.slice(Index, Index + 4) == "true") {
Index += 4;
return true;
} else if (source.slice(Index, Index + 5) == "false") {
Index += 5;
return false;
} else if (source.slice(Index, Index + 4) == "null") {
Index += 4;
return null;
}
// Unrecognized token.
abort();
}
}
// Return the sentinel `$` character if the parser has reached the end
// of the source string.
return "$";
};
exports["runInContext"] = runInContext;
return exports;
}
root.JSON = {
"parse": JSON3.parse,
"stringify": JSON3.stringify
};
}
/***/ }),
/* 421 */,
/* 422 */,
/* 423 */,
/* 424 */,
/* 425 */,
/* 426 */,
/* 427 */,
/* 428 */,
/* 429 */,
/* 430 */,
/* 431 */,
/* 432 */,
/* 433 */,
/* 434 */,
/* 435 */,
/* 436 */,
/* 437 */,
/* 438 */,
/* 439 */,
/* 440 */,
/* 441 */,
/* 442 */,
/* 443 */,
/* 444 */,
/* 445 */,
/* 446 */,
/* 447 */,
/* 448 */,
/* 449 */,
/* 450 */,
/* 451 */,
/* 452 */,
/* 453 */,
/* 454 */,
/* 455 */,
/* 456 */,
/* 457 */,
/* 458 */,
/* 459 */,
/* 460 */,
/* 461 */,
/* 462 */,
/* 463 */,
/* 464 */,
/* 465 */,
/* 466 */,
/* 467 */,
/* 468 */,
/* 469 */,
/* 470 */,
/* 471 */,
/* 472 */,
/* 473 */,
/* 474 */,
/* 475 */,
/* 476 */,
/* 477 */,
/* 478 */,
/* 479 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
_this.sendTo = 'message-response';
_this.listenTo = 'message-request';
_this.deferred = [];
_this.isHiding = true;
return _this;
}
NotificationController.prototype.addCommonStyles = function
addCommonStyles(scope) {
var head = document.head || document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = scope.hostname + '/css/proximanova.css';
head.appendChild(link);
};
setTimeout(function () {
_this2.load();
_this2.parseMessageQueue();
_this2.awaitMessages();
}, checkInterval);
};
if (unsubscribe) {
_this3.set('unsubscribed', true);
}
_this3.sendEvent(windowName + ' ' + (button || action) + ' clicked');
if (handler) {
handler.call(_this3);
} else {
_this3.set('status', status || action).save().hide().then(function () {
return _this3.exit();
});
}
};
};
if (this.isHiding) {
this.isHiding = false;
var windowFullName = this.windowFullName || 'notification';
this.sendEvent(windowFullName + ' showed');
var container = document.getElementById('container');
this.resizeTo(container.offsetWidth, container.offsetHeight);
if (false) {
var _require = require('@drp/core/system'),
fso = _require.fso,
AppFolder = _require.AppFolder;
if (!this.isHiding) {
this.isHiding = true;
return new Promise(function (resolve) {
_this5._hide(resolve);
});
} else {
return Promise.resolve();
}
};
try {
window.moveTo(x, y);
} catch (e) {}
return this;
};
return NotificationController;
}(_Notification3['default']);
exports['default'] = NotificationController;
module.exports = exports['default'];
/***/ }),
/* 480 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/***/ }),
/* 481 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
function progress(state) {
var content = document.getElementById('content');
content.innerHTML = '<p style=\'font-size: 16px; text-align: center;\'>' +
(this.scope.messages[state] || state) + '</p>';
}
exports['default'] = {
windowName: 'fileassociation',
windowFullName: 'fileassociation window',
_actions: {
ok: {
button: 'action',
handler: function handler() {
var closeButton = document.getElementById('close-button');
setTimeout(function () {
closeButton.style.visibility = 'visible';
}, 2 * 60 * 1000);
progress.call(this, 'preparing');
var container = document.getElementById('container');
var buttons = document.getElementById('buttons');
if (buttons) buttons.parentElement.removeChild(buttons);
var icon = document.getElementById('icon');
icon.parentElement.removeChild(icon);
var spinner = document.getElementById('spinner');
spinner.className += ' show';
this.resizeTo(500, container.clientHeight);
this.send('ok');
}
},
unsubscribe: {
button: 'refuse'
},
delay: {
button: 'close'
}
},
/***/ }),
/* 482 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports['default'] = {
_actions: {
ok: {
button: 'action',
unsubscribe: true
},
delay: {
button: 'delay'
},
unsubscribe: {
button: 'close',
unsubscribe: true
}
},
var w = window.screen.width;
var count = w + 400;
var step = function step() {
_this.moveTo(count);
count = count - 20;
if (count < w - 475) {
done();
} else {
setTimeout(step, 10);
}
};
step();
},
_hide: function _hide(done) {
var _this2 = this;
var w = window.screen.width;
var count = w - 500;
var step = function step() {
_this2.moveTo(count);
if (count > w) {
done();
} else {
count = count + 20;
setTimeout(step, 10);
}
};
step();
}
};
module.exports = exports['default'];
/***/ }),
/* 483 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports['default'] = {
_actions: {
ok: {
button: 'action',
unsubscribe: true
},
unsubscribe: {
unsubscribe: true
},
delay: {
button: 'close'
}
},
var w = window.screen.width;
var count = w + 400;
var step = function step() {
_this.moveTo(count);
count = count - 20;
if (count < w - 525) {
done();
} else {
setTimeout(step, 10);
}
};
step();
},
var w = window.screen.width;
var count = w - 500;
var step = function step() {
_this2.moveTo(count);
if (count > w) {
done();
} else {
count = count + 20;
setTimeout(step, 10);
}
};
step();
}
};
module.exports = exports['default'];
/***/ }),
/* 484 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports['default'] = {
_actions: {
ok: {
button: 'action'
},
unsubscribe: {
button: 'more'
},
delay: {
button: 'close'
}
},
var w = window.screen.width;
var count = w + 400;
var step = function step() {
_this.moveTo(count);
count = count - 20;
if (count < w - 533) {
done();
} else {
setTimeout(step, 10);
}
};
step();
},
/***/ }),
/* 485 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports['default'] = {
_actions: {
ok: {
button: 'action',
unsubscribe: true
},
unsubscribe: {
unsubscribe: true
},
delay: {
button: 'close'
}
},
var w = window.screen.width;
var count = w + 400;
var step = function step() {
_this.moveTo(count);
count = count - 20;
if (count < w - 475) {
done();
} else {
setTimeout(step, 10);
}
};
step();
},
var w = window.screen.width;
var count = w - 500;
var step = function step() {
_this2.moveTo(count);
if (count > w) {
done();
} else {
count = count + 20;
setTimeout(step, 10);
}
};
step();
}
};
module.exports = exports['default'];
/***/ }),
/* 486 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports['default'] = {
windowName: 'uninstall',
windowFullName: 'uninstall window',
_actions: {
ok: {
button: 'keep protection'
},
unsubscribe: {
button: 'remove'
},
delay: {
button: 'close'
}
},
/***/ }),
/* 487 */,
/* 488 */,
/* 489 */
/***/ (function(module, exports) {
/***/ }),
/* 490 */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./center.css": 227,
"./cloud-update.css": 229,
"./default.css": 231,
"./new-program.css": 233,
"./standard.css": 235,
"./uninstall.css": 237
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) // check for number or string
throw new Error("Cannot find module '" + req + "'.");
return id;
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 490;
/***/ }),
/* 491 */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./center.html": 228,
"./cloud-update.html": 230,
"./default.html": 232,
"./new-program.html": 234,
"./standard.html": 236,
"./uninstall.html": 238
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) // check for number or string
throw new Error("Cannot find module '" + req + "'.");
return id;
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 491;
/***/ }),
/* 492 */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./center.js": 481,
"./cloud-update.js": 482,
"./default.js": 483,
"./new-program.js": 484,
"./standard.js": 485,
"./uninstall.js": 486
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) // check for number or string
throw new Error("Cannot find module '" + req + "'.");
return id;
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 492;
/***/ })
/******/ ]);