diff --git a/README.md b/README.md index f26e3d2..255842f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ $ npm install webpack-auto-inject-version --save-dev [How to use](#user-content-how-to-use)
[Available options](#user-content-available-options)
[Output examples](#user-content-output-examples) - +[Change log](#user-content-change-log) @@ -81,11 +81,33 @@ Default: true ### components.InjectAsComment This will inject your version as a comment into any css,js,html file.
+You can change what is injected into the file by changing componentsOptions.InjectAsComment.tag. +Currently only 2 tags are supported: +* {version} +* {date} ( current date ) +Example: +``` javascript + ... + plugins: [ + ... + new WebpackAutoInject({ + PACKAGE_JSON_PATH: './package.json', + components: { + ... + InjectAsComment: true + }, + componentsOptions: { + ... + InjectAsComment: { + tag: 'Build version: {version} - {date}' // default + } + }) + ] +``` Default: true - # Output-examples AIV can inject version number for all your bundle files (css,js,html).

```js @@ -103,3 +125,11 @@ Example html: ``` + +# Change log +## [0.5.13] - 12/04/2017 +- Tag from InjectAsComment can now be configured by options ( componentsOptions.InjectAsComment.tag ) +- Default tag template for InjectAsComment has change +## [0.5.12] - 12/04/2017 +- Fix dependency missing issue +- Remove export as object with .default as a class diff --git a/demo/dist/index-bundle.js b/demo/dist/index-bundle.js index ddc74d3..ed8cb4f 100644 --- a/demo/dist/index-bundle.js +++ b/demo/dist/index-bundle.js @@ -1,4 +1,4 @@ -// [AIV] Build version: 0.13.4 +// [AIV] Build version: 0.13.4 - Wednesday, April 12th, 2017, 11:34:31 PM /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -64,20 +64,14 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1); +/******/ return __webpack_require__(__webpack_require__.s = 2); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ -/***/ (function(module, exports) { - -module.exports = "TitleMy awesome project | 0.13.4>" - -/***/ }), -/* 1 */ /***/ (function(module, exports, __webpack_require__) { -var html = __webpack_require__(0); +var html = __webpack_require__(1); /** * Sample code @@ -90,5 +84,18 @@ var test = function(val) { test(myVariable); +/***/ }), +/* 1 */ +/***/ (function(module, exports) { + +module.exports = "TitleMy awesome project | 0.13.4>" + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(0); + + /***/ }) /******/ ]); \ No newline at end of file diff --git a/demo/package.json b/demo/package.json index 5213983..4f64167 100644 --- a/demo/package.json +++ b/demo/package.json @@ -11,6 +11,7 @@ "author": "Radoslaw Swiat", "license": "ISC", "devDependencies": { + "html-loader": "^0.4.5", "html-minify-loader": "^1.1.0", "raw-loader": "^0.5.1", "webpack": "^2.3.3", diff --git a/demo/webpack.conf.js b/demo/webpack.conf.js index 5d76060..1cd860f 100644 --- a/demo/webpack.conf.js +++ b/demo/webpack.conf.js @@ -1,12 +1,12 @@ var path = require('path'); // Require WebpackAutoInject from npm installed modules ( preferred ) -var WebpackAutoInject = require('webpack-auto-inject-version'); +// var WebpackAutoInject = require('webpack-auto-inject-version'); // Require WebpackAutoInject from dist - dev purpose only ( do not use the below line ) -// var WebpackAutoInject = require('../dist/WebpackAutoInjectVersion'); +var WebpackAutoInject = require('../dist/WebpackAutoInjectVersion'); module.exports = { entry: { - index: './src/main.js' + index: ['./src/main.js'] }, resolve: { extensions: ['.js', '.html'] diff --git a/dist/WebpackAutoInjectVersion.js b/dist/WebpackAutoInjectVersion.js index 7c8d7c8..9eca201 100644 --- a/dist/WebpackAutoInjectVersion.js +++ b/dist/WebpackAutoInjectVersion.js @@ -7,7 +7,7 @@ var a = typeof exports === 'object' ? factory(require("path"), require("fs"), require("os")) : factory(root["path"], root["fs"], root["os"]); for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; } -})(this, function(__WEBPACK_EXTERNAL_MODULE_75__, __WEBPACK_EXTERNAL_MODULE_154__, __WEBPACK_EXTERNAL_MODULE_155__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_75__, __WEBPACK_EXTERNAL_MODULE_155__, __WEBPACK_EXTERNAL_MODULE_156__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 394); +/******/ return __webpack_require__(__webpack_require__.s = 396); /******/ }) /************************************************************************/ /******/ ([ @@ -193,7 +193,7 @@ module.exports = !__webpack_require__(3)(function(){ /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(1) - , IE8_DOM_DEFINE = __webpack_require__(132) + , IE8_DOM_DEFINE = __webpack_require__(133) , toPrimitive = __webpack_require__(25) , dP = Object.defineProperty; @@ -342,7 +342,7 @@ var pIE = __webpack_require__(57) , toIObject = __webpack_require__(15) , toPrimitive = __webpack_require__(25) , has = __webpack_require__(10) - , IE8_DOM_DEFINE = __webpack_require__(132) + , IE8_DOM_DEFINE = __webpack_require__(133) , gOPD = Object.getOwnPropertyDescriptor; exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P){ @@ -376,8 +376,8 @@ module.exports = Object.getPrototypeOf || function(O){ /* 18 */ /***/ (function(module, exports, __webpack_require__) { -var store = __webpack_require__(120)('wks') - , uid = __webpack_require__(123) +var store = __webpack_require__(121)('wks') + , uid = __webpack_require__(124) , Symbol = __webpack_require__(22).Symbol , USE_SYMBOL = typeof Symbol == 'function'; @@ -444,7 +444,7 @@ var ctx = __webpack_require__(27) , IObject = __webpack_require__(56) , toObject = __webpack_require__(9) , toLength = __webpack_require__(8) - , asc = __webpack_require__(205); + , asc = __webpack_require__(206); module.exports = function(TYPE, $create){ var IS_MAP = TYPE == 1 , IS_FILTER = TYPE == 2 @@ -546,10 +546,10 @@ module.exports = function(fn, that, length){ /* 28 */ /***/ (function(module, exports, __webpack_require__) { -var Map = __webpack_require__(148) +var Map = __webpack_require__(149) , $export = __webpack_require__(0) , shared = __webpack_require__(73)('metadata') - , store = shared.store || (shared.store = new (__webpack_require__(151))); + , store = shared.store || (shared.store = new (__webpack_require__(152))); var getOrCreateMetadataMap = function(target, targetKey, create){ var targetMetadata = store.get(target); @@ -621,7 +621,7 @@ if(__webpack_require__(6)){ , toIndex = __webpack_require__(41) , toPrimitive = __webpack_require__(25) , has = __webpack_require__(10) - , same = __webpack_require__(145) + , same = __webpack_require__(146) , classof = __webpack_require__(55) , isObject = __webpack_require__(4) , toObject = __webpack_require__(9) @@ -640,7 +640,7 @@ if(__webpack_require__(6)){ , $iterDetect = __webpack_require__(70) , setSpecies = __webpack_require__(40) , arrayFill = __webpack_require__(85) - , arrayCopyWithin = __webpack_require__(125) + , arrayCopyWithin = __webpack_require__(126) , $DP = __webpack_require__(7) , $GOPD = __webpack_require__(16) , dP = $DP.f @@ -1194,7 +1194,7 @@ module.exports = false; // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(1) - , dPs = __webpack_require__(138) + , dPs = __webpack_require__(139) , enumBugKeys = __webpack_require__(88) , IE_PROTO = __webpack_require__(100)('IE_PROTO') , Empty = function(){ /* empty */ } @@ -1240,7 +1240,7 @@ module.exports = Object.create || function create(O, Properties){ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var $keys = __webpack_require__(140) +var $keys = __webpack_require__(141) , hiddenKeys = __webpack_require__(88).concat('length', 'prototype'); exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ @@ -1252,7 +1252,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(140) +var $keys = __webpack_require__(141) , enumBugKeys = __webpack_require__(88); module.exports = Object.keys || function keys(O){ @@ -1325,7 +1325,7 @@ module.exports = function(it){ /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(115)(function(){ +module.exports = !__webpack_require__(116)(function(){ return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; }); @@ -1334,7 +1334,7 @@ module.exports = !__webpack_require__(115)(function(){ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(54) - , createDesc = __webpack_require__(119); + , createDesc = __webpack_require__(120); module.exports = __webpack_require__(44) ? function(object, key, value){ return dP.f(object, key, createDesc(1, value)); } : function(object, key, value){ @@ -1359,7 +1359,7 @@ module.exports = function(key){ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(27) - , call = __webpack_require__(134) + , call = __webpack_require__(135) , isArrayIter = __webpack_require__(92) , anObject = __webpack_require__(1) , toLength = __webpack_require__(8) @@ -1461,7 +1461,7 @@ exports.default = function (instance, Constructor) { exports.__esModule = true; -var _defineProperty = __webpack_require__(163); +var _defineProperty = __webpack_require__(165); var _defineProperty2 = _interopRequireDefault(_defineProperty); @@ -1496,8 +1496,8 @@ module.exports = {}; /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(43) - , IE8_DOM_DEFINE = __webpack_require__(175) - , toPrimitive = __webpack_require__(196) + , IE8_DOM_DEFINE = __webpack_require__(176) + , toPrimitive = __webpack_require__(197) , dP = Object.defineProperty; exports.f = __webpack_require__(44) ? Object.defineProperty : function defineProperty(O, P, Attributes){ @@ -1579,7 +1579,7 @@ var _config = __webpack_require__(76); var _config2 = _interopRequireDefault(_config); -var _chalk = __webpack_require__(166); +var _chalk = __webpack_require__(113); var _chalk2 = _interopRequireDefault(_chalk); @@ -1587,7 +1587,7 @@ var _utils = __webpack_require__(112); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var endOfLine = __webpack_require__(155).EOL; +var endOfLine = __webpack_require__(156).EOL; var Log = function () { // default 1 @@ -1671,7 +1671,7 @@ exports.default = new Log(); /* 59 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(170), __esModule: true }; +module.exports = { "default": __webpack_require__(171), __esModule: true }; /***/ }), /* 60 */ @@ -2039,6 +2039,9 @@ exports.default = { InjectByTag: true }, componentsOptions: { + InjectAsComment: { + tag: 'Build version: {version} - {date}' + }, InjectByTag: { fileRegex: /\.+/ } @@ -2161,8 +2164,8 @@ module.exports = function(it, tag, stat){ /* 82 */ /***/ (function(module, exports, __webpack_require__) { -var shared = __webpack_require__(120)('keys') - , uid = __webpack_require__(123); +var shared = __webpack_require__(121)('keys') + , uid = __webpack_require__(124); module.exports = function(key){ return shared[key] || (shared[key] = uid(key)); }; @@ -2183,7 +2186,7 @@ module.exports = function(it){ /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(177) +var IObject = __webpack_require__(178) , defined = __webpack_require__(78); module.exports = function(it){ return IObject(defined(it)); @@ -2975,7 +2978,7 @@ exports[DATA_VIEW] = $DataView; var global = __webpack_require__(2) , core = __webpack_require__(26) , LIBRARY = __webpack_require__(35) - , wksExt = __webpack_require__(147) + , wksExt = __webpack_require__(148) , defineProperty = __webpack_require__(7).f; module.exports = function(name){ var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); @@ -3002,7 +3005,7 @@ module.exports = __webpack_require__(26).getIteratorMethod = function(it){ "use strict"; var addToUnscopables = __webpack_require__(46) - , step = __webpack_require__(135) + , step = __webpack_require__(136) , Iterators = __webpack_require__(48) , toIObject = __webpack_require__(15); @@ -3057,7 +3060,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.isArgv = isArgv; -var argv = __webpack_require__(388).argv; +var argv = __webpack_require__(390).argv; /** * Get argv from webpack env[argv] @@ -3081,6 +3084,129 @@ function isArgv(arg) { /* 113 */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; + +var escapeStringRegexp = __webpack_require__(386); +var ansiStyles = __webpack_require__(159); +var stripAnsi = __webpack_require__(394); +var hasAnsi = __webpack_require__(387); +var supportsColor = __webpack_require__(395); +var defineProps = Object.defineProperties; +var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); + +function Chalk(options) { + // detect mode if not set manually + this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled; +} + +// use bright blue on Windows as the normal blue color is illegible +if (isSimpleWindowsTerm) { + ansiStyles.blue.open = '\u001b[94m'; +} + +var styles = (function () { + var ret = {}; + + Object.keys(ansiStyles).forEach(function (key) { + ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); + + ret[key] = { + get: function () { + return build.call(this, this._styles.concat(key)); + } + }; + }); + + return ret; +})(); + +var proto = defineProps(function chalk() {}, styles); + +function build(_styles) { + var builder = function () { + return applyStyle.apply(builder, arguments); + }; + + builder._styles = _styles; + builder.enabled = this.enabled; + // __proto__ is used because we must return a function, but there is + // no way to create a function with a different prototype. + /* eslint-disable no-proto */ + builder.__proto__ = proto; + + return builder; +} + +function applyStyle() { + // support varags, but simply cast to string in case there's only one arg + var args = arguments; + var argsLen = args.length; + var str = argsLen !== 0 && String(arguments[0]); + + if (argsLen > 1) { + // don't slice `arguments`, it prevents v8 optimizations + for (var a = 1; a < argsLen; a++) { + str += ' ' + args[a]; + } + } + + if (!this.enabled || !str) { + return str; + } + + var nestedStyles = this._styles; + var i = nestedStyles.length; + + // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, + // see https://github.com/chalk/chalk/issues/58 + // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. + var originalDim = ansiStyles.dim.open; + if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { + ansiStyles.dim.open = ''; + } + + while (i--) { + var code = ansiStyles[nestedStyles[i]]; + + // Replace any instances already present with a re-opening code + // otherwise only the part of the string until said closing code + // will be colored, and the rest will simply be 'plain'. + str = code.open + str.replace(code.closeRe, code.open) + code.close; + } + + // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. + ansiStyles.dim.open = originalDim; + + return str; +} + +function init() { + var ret = {}; + + Object.keys(styles).forEach(function (name) { + ret[name] = { + get: function () { + return build.call(this, [name]); + } + }; + }); + + return ret; +} + +defineProps(Chalk.prototype, init()); + +module.exports = new Chalk(); +module.exports.styles = ansiStyles; +module.exports.hasColor = hasAnsi; +module.exports.stripColor = stripAnsi; +module.exports.supportsColor = supportsColor; + + +/***/ }), +/* 114 */ +/***/ (function(module, exports, __webpack_require__) { + // getting tag from 19.1.3.6 Object.prototype.toString() var cof = __webpack_require__(60) , TAG = __webpack_require__(18)('toStringTag') @@ -3106,7 +3232,7 @@ module.exports = function(it){ }; /***/ }), -/* 114 */ +/* 115 */ /***/ (function(module, exports) { // IE 8- don't enum bug keys @@ -3115,7 +3241,7 @@ module.exports = ( ).split(','); /***/ }), -/* 115 */ +/* 116 */ /***/ (function(module, exports) { module.exports = function(exec){ @@ -3127,26 +3253,26 @@ module.exports = function(exec){ }; /***/ }), -/* 116 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(22).document && document.documentElement; /***/ }), -/* 117 */ +/* 118 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var LIBRARY = __webpack_require__(118) +var LIBRARY = __webpack_require__(119) , $export = __webpack_require__(80) - , redefine = __webpack_require__(190) + , redefine = __webpack_require__(191) , hide = __webpack_require__(45) , has = __webpack_require__(62) , Iterators = __webpack_require__(53) - , $iterCreate = __webpack_require__(180) + , $iterCreate = __webpack_require__(181) , setToStringTag = __webpack_require__(81) - , getPrototypeOf = __webpack_require__(186) + , getPrototypeOf = __webpack_require__(187) , ITERATOR = __webpack_require__(18)('iterator') , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next` , FF_ITERATOR = '@@iterator' @@ -3209,13 +3335,13 @@ module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED }; /***/ }), -/* 118 */ +/* 119 */ /***/ (function(module, exports) { module.exports = true; /***/ }), -/* 119 */ +/* 120 */ /***/ (function(module, exports) { module.exports = function(bitmap, value){ @@ -3228,7 +3354,7 @@ module.exports = function(bitmap, value){ }; /***/ }), -/* 120 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(22) @@ -3239,12 +3365,12 @@ module.exports = function(key){ }; /***/ }), -/* 121 */ +/* 122 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(61) - , invoke = __webpack_require__(176) - , html = __webpack_require__(116) + , invoke = __webpack_require__(177) + , html = __webpack_require__(117) , cel = __webpack_require__(79) , global = __webpack_require__(22) , process = global.process @@ -3319,7 +3445,7 @@ module.exports = { }; /***/ }), -/* 122 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.15 ToLength @@ -3330,7 +3456,7 @@ module.exports = function(it){ }; /***/ }), -/* 123 */ +/* 124 */ /***/ (function(module, exports) { var id = 0 @@ -3340,7 +3466,7 @@ module.exports = function(key){ }; /***/ }), -/* 124 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { var cof = __webpack_require__(19); @@ -3350,7 +3476,7 @@ module.exports = function(it, msg){ }; /***/ }), -/* 125 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3382,7 +3508,7 @@ module.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, }; /***/ }), -/* 126 */ +/* 127 */ /***/ (function(module, exports, __webpack_require__) { var forOf = __webpack_require__(47); @@ -3395,7 +3521,7 @@ module.exports = function(iter, ITERATOR){ /***/ }), -/* 127 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { var aFunction = __webpack_require__(11) @@ -3428,7 +3554,7 @@ module.exports = function(that, callbackfn, aLen, memo, isRight){ }; /***/ }), -/* 128 */ +/* 129 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3458,7 +3584,7 @@ module.exports = Function.bind || function bind(that /*, args... */){ }; /***/ }), -/* 129 */ +/* 130 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3471,7 +3597,7 @@ var dP = __webpack_require__(7).f , defined = __webpack_require__(20) , forOf = __webpack_require__(47) , $iterDefine = __webpack_require__(95) - , step = __webpack_require__(135) + , step = __webpack_require__(136) , setSpecies = __webpack_require__(40) , DESCRIPTORS = __webpack_require__(6) , fastKey = __webpack_require__(30).fastKey @@ -3606,12 +3732,12 @@ module.exports = { }; /***/ }), -/* 130 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var classof = __webpack_require__(55) - , from = __webpack_require__(126); + , from = __webpack_require__(127); module.exports = function(NAME){ return function toJSON(){ if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic"); @@ -3620,7 +3746,7 @@ module.exports = function(NAME){ }; /***/ }), -/* 131 */ +/* 132 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3709,7 +3835,7 @@ module.exports = { }; /***/ }), -/* 132 */ +/* 133 */ /***/ (function(module, exports, __webpack_require__) { module.exports = !__webpack_require__(6) && !__webpack_require__(3)(function(){ @@ -3717,7 +3843,7 @@ module.exports = !__webpack_require__(6) && !__webpack_require__(3)(function(){ }); /***/ }), -/* 133 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.3 Number.isInteger(number) @@ -3728,7 +3854,7 @@ module.exports = function isInteger(it){ }; /***/ }), -/* 134 */ +/* 135 */ /***/ (function(module, exports, __webpack_require__) { // call something on iterator step with safe closing on error @@ -3745,7 +3871,7 @@ module.exports = function(iterator, fn, value, entries){ }; /***/ }), -/* 135 */ +/* 136 */ /***/ (function(module, exports) { module.exports = function(done, value){ @@ -3753,7 +3879,7 @@ module.exports = function(done, value){ }; /***/ }), -/* 136 */ +/* 137 */ /***/ (function(module, exports) { // 20.2.2.20 Math.log1p(x) @@ -3762,7 +3888,7 @@ module.exports = Math.log1p || function log1p(x){ }; /***/ }), -/* 137 */ +/* 138 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3801,7 +3927,7 @@ module.exports = !$assign || __webpack_require__(3)(function(){ } : $assign; /***/ }), -/* 138 */ +/* 139 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(7) @@ -3819,7 +3945,7 @@ module.exports = __webpack_require__(6) ? Object.defineProperties : function def }; /***/ }), -/* 139 */ +/* 140 */ /***/ (function(module, exports, __webpack_require__) { // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window @@ -3844,7 +3970,7 @@ module.exports.f = function getOwnPropertyNames(it){ /***/ }), -/* 140 */ +/* 141 */ /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(10) @@ -3866,7 +3992,7 @@ module.exports = function(object, names){ }; /***/ }), -/* 141 */ +/* 142 */ /***/ (function(module, exports, __webpack_require__) { var getKeys = __webpack_require__(38) @@ -3887,7 +4013,7 @@ module.exports = function(isEntries){ }; /***/ }), -/* 142 */ +/* 143 */ /***/ (function(module, exports, __webpack_require__) { // all object keys, includes non-enumerable and symbols @@ -3902,7 +4028,7 @@ module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){ }; /***/ }), -/* 143 */ +/* 144 */ /***/ (function(module, exports, __webpack_require__) { var $parseFloat = __webpack_require__(2).parseFloat @@ -3915,7 +4041,7 @@ module.exports = 1 / $parseFloat(__webpack_require__(105) + '-0') !== -Infinity } : $parseFloat; /***/ }), -/* 144 */ +/* 145 */ /***/ (function(module, exports, __webpack_require__) { var $parseInt = __webpack_require__(2).parseInt @@ -3929,7 +4055,7 @@ module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? f } : $parseInt; /***/ }), -/* 145 */ +/* 146 */ /***/ (function(module, exports) { // 7.2.9 SameValue(x, y) @@ -3938,7 +4064,7 @@ module.exports = Object.is || function is(x, y){ }; /***/ }), -/* 146 */ +/* 147 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-string-pad-start-end @@ -3960,18 +4086,18 @@ module.exports = function(that, maxLength, fillString, left){ /***/ }), -/* 147 */ +/* 148 */ /***/ (function(module, exports, __webpack_require__) { exports.f = __webpack_require__(5); /***/ }), -/* 148 */ +/* 149 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var strong = __webpack_require__(129); +var strong = __webpack_require__(130); // 23.1 Map Objects module.exports = __webpack_require__(65)('Map', function(get){ @@ -3989,7 +4115,7 @@ module.exports = __webpack_require__(65)('Map', function(get){ }, strong, true); /***/ }), -/* 149 */ +/* 150 */ /***/ (function(module, exports, __webpack_require__) { // 21.2.5.3 get RegExp.prototype.flags() @@ -3999,12 +4125,12 @@ if(__webpack_require__(6) && /./g.flags != 'g')__webpack_require__(7).f(RegExp.p }); /***/ }), -/* 150 */ +/* 151 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var strong = __webpack_require__(129); +var strong = __webpack_require__(130); // 23.2 Set Objects module.exports = __webpack_require__(65)('Set', function(get){ @@ -4017,7 +4143,7 @@ module.exports = __webpack_require__(65)('Set', function(get){ }, strong); /***/ }), -/* 151 */ +/* 152 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4025,8 +4151,8 @@ module.exports = __webpack_require__(65)('Set', function(get){ var each = __webpack_require__(23)(0) , redefine = __webpack_require__(13) , meta = __webpack_require__(30) - , assign = __webpack_require__(137) - , weak = __webpack_require__(131) + , assign = __webpack_require__(138) + , weak = __webpack_require__(132) , isObject = __webpack_require__(4) , getWeak = meta.getWeak , isExtensible = Object.isExtensible @@ -4079,7 +4205,7 @@ if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){ } /***/ }), -/* 152 */ +/* 153 */ /***/ (function(module, exports) { /** @@ -4808,7 +4934,7 @@ if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){ /***/ }), -/* 153 */ +/* 154 */ /***/ (function(module, exports) { module.exports = function(module) { @@ -4836,19 +4962,19 @@ module.exports = function(module) { /***/ }), -/* 154 */ +/* 155 */ /***/ (function(module, exports) { module.exports = require("fs"); /***/ }), -/* 155 */ +/* 156 */ /***/ (function(module, exports) { module.exports = require("os"); /***/ }), -/* 156 */ +/* 157 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4858,11 +4984,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _regenerator = __webpack_require__(165); +var _regenerator = __webpack_require__(167); var _regenerator2 = _interopRequireDefault(_regenerator); -var _asyncToGenerator2 = __webpack_require__(164); +var _asyncToGenerator2 = __webpack_require__(166); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); @@ -4874,7 +5000,7 @@ var _createClass2 = __webpack_require__(52); var _createClass3 = _interopRequireDefault(_createClass2); -var _fs = __webpack_require__(154); +var _fs = __webpack_require__(155); var _fs2 = _interopRequireDefault(_fs); @@ -4890,17 +5016,17 @@ var _log = __webpack_require__(58); var _log2 = _interopRequireDefault(_log); -var _lodash = __webpack_require__(386); +var _lodash = __webpack_require__(388); -var _autoIncreaseVersion = __webpack_require__(159); +var _autoIncreaseVersion = __webpack_require__(160); var _autoIncreaseVersion2 = _interopRequireDefault(_autoIncreaseVersion); -var _injectAsComment = __webpack_require__(160); +var _injectAsComment = __webpack_require__(161); var _injectAsComment2 = _interopRequireDefault(_injectAsComment); -var _injectByTag = __webpack_require__(161); +var _injectByTag = __webpack_require__(163); var _injectByTag2 = _interopRequireDefault(_injectByTag); @@ -5141,17 +5267,17 @@ exports.default = WebpackAutoInject; __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), -/* 157 */ +/* 158 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__(383); +__webpack_require__(384); -__webpack_require__(152); +__webpack_require__(153); -__webpack_require__(167); +__webpack_require__(168); if (global._babelPolyfill) { throw new Error("only one instance of babel-polyfill is allowed"); @@ -5175,7 +5301,7 @@ define(String.prototype, "padRight", "".padEnd); }); /***/ }), -/* 158 */ +/* 159 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5245,10 +5371,10 @@ Object.defineProperty(module, 'exports', { get: assembleStyles }); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(153)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(154)(module))) /***/ }), -/* 159 */ +/* 160 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5258,7 +5384,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _stringify = __webpack_require__(162); +var _stringify = __webpack_require__(164); var _stringify2 = _interopRequireDefault(_stringify); @@ -5274,7 +5400,7 @@ var _createClass2 = __webpack_require__(52); var _createClass3 = _interopRequireDefault(_createClass2); -var _semver = __webpack_require__(391); +var _semver = __webpack_require__(393); var _semver2 = _interopRequireDefault(_semver); @@ -5282,7 +5408,7 @@ var _path = __webpack_require__(75); var _path2 = _interopRequireDefault(_path); -var _fs = __webpack_require__(154); +var _fs = __webpack_require__(155); var _fs2 = _interopRequireDefault(_fs); @@ -5416,7 +5542,7 @@ AutoIncreaseVersion.componentName = 'AutoIncreaseVersion'; exports.default = AutoIncreaseVersion; /***/ }), -/* 160 */ +/* 161 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5450,9 +5576,17 @@ var _log = __webpack_require__(58); var _log2 = _interopRequireDefault(_log); +var _tags = __webpack_require__(162); + +var _tags2 = _interopRequireDefault(_tags); + +var _chalk = __webpack_require__(113); + +var _chalk2 = _interopRequireDefault(_chalk); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var endOfLine = __webpack_require__(155).EOL; +var endOfLine = __webpack_require__(156).EOL; /** * Inject version number into HTML @@ -5485,12 +5619,15 @@ var InjectAsComment = function () { var asset = compilation.assets[basename]; switch (ext) { case '.js': + console.log(_chalk2.default.blue.bold('js')); _this.injectIntoJs(asset); break; case '.html': + console.log(_chalk2.default.blue.bold('html')); _this.injectIntoHtml(asset); break; case '.css': + console.log(_chalk2.default.blue.bold('css')); _this.injectIntoCss(asset); break; default: @@ -5504,10 +5641,26 @@ var InjectAsComment = function () { resolve(); }); } + }, { + key: 'parseTags', + value: function parseTags(baseOpen, baseClose) { + var _this2 = this; + + var tagPattern = this.context.config.componentsOptions.InjectAsComment.tag; + tagPattern = tagPattern.replace(/(\{([a-zA-Z]+)\})/g, function (tag) { + var tagName = tag.replace(/(\{|\})/g, ''); + if (typeof _tags2.default[tagName] === 'function') { + return _tags2.default[tagName](_this2.context); + } + _log2.default.error('unsupported tag in componentsOptions.InjectAsComment.tag [' + tagName + ']'); + return tag; + }); + return baseOpen + ' ' + tagPattern + ' ' + baseClose; + } }, { key: 'injectIntoCss', value: function injectIntoCss(asset) { - var modAsset = '/** [' + _config2.default.SHORT + '] Build version: ' + this.context.version + ' **/ '; + var modAsset = this.parseTags('/** [' + _config2.default.SHORT + '] ', ' **/ '); modAsset += endOfLine + ' ' + asset.source() + ' '; asset.source = function () { return modAsset; @@ -5516,7 +5669,7 @@ var InjectAsComment = function () { }, { key: 'injectIntoHtml', value: function injectIntoHtml(asset) { - var modAsset = ' '; + var modAsset = this.parseTags(' '); modAsset += endOfLine + ' ' + asset.source() + ' '; asset.source = function () { return modAsset; @@ -5525,8 +5678,8 @@ var InjectAsComment = function () { }, { key: 'injectIntoJs', value: function injectIntoJs(asset) { - var modAsset = '// [' + _config2.default.SHORT + '] Build version: ' + this.context.version + ' '; - modAsset = endOfLine + ' ' + asset.source() + ' '; + var modAsset = this.parseTags('// [' + _config2.default.SHORT + '] ', ' '); + modAsset += endOfLine + ' ' + asset.source() + ' '; asset.source = function () { return modAsset; }; @@ -5539,7 +5692,33 @@ InjectAsComment.componentName = 'InjectAsComment'; exports.default = InjectAsComment; /***/ }), -/* 161 */ +/* 162 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +var _dateformat = __webpack_require__(385); + +var _dateformat2 = _interopRequireDefault(_dateformat); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +exports.default = { + version: function version(context) { + return context.version; + }, + date: function date() { + return (0, _dateformat2.default)(new Date(), 'dddd, mmmm dS, yyyy, h:MM:ss TT'); + } +}; + +/***/ }), +/* 163 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5633,19 +5812,19 @@ InjectByTag.componentName = 'InjectByTag'; exports.default = InjectByTag; /***/ }), -/* 162 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(168), __esModule: true }; - -/***/ }), -/* 163 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(169), __esModule: true }; /***/ }), -/* 164 */ +/* 165 */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = { "default": __webpack_require__(170), __esModule: true }; + +/***/ }), +/* 166 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5688,147 +5867,24 @@ exports.default = function (fn) { }; }; -/***/ }), -/* 165 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(390); - - -/***/ }), -/* 166 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var escapeStringRegexp = __webpack_require__(384); -var ansiStyles = __webpack_require__(158); -var stripAnsi = __webpack_require__(392); -var hasAnsi = __webpack_require__(385); -var supportsColor = __webpack_require__(393); -var defineProps = Object.defineProperties; -var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM); - -function Chalk(options) { - // detect mode if not set manually - this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled; -} - -// use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001b[94m'; -} - -var styles = (function () { - var ret = {}; - - Object.keys(ansiStyles).forEach(function (key) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - ret[key] = { - get: function () { - return build.call(this, this._styles.concat(key)); - } - }; - }); - - return ret; -})(); - -var proto = defineProps(function chalk() {}, styles); - -function build(_styles) { - var builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder.enabled = this.enabled; - // __proto__ is used because we must return a function, but there is - // no way to create a function with a different prototype. - /* eslint-disable no-proto */ - builder.__proto__ = proto; - - return builder; -} - -function applyStyle() { - // support varags, but simply cast to string in case there's only one arg - var args = arguments; - var argsLen = args.length; - var str = argsLen !== 0 && String(arguments[0]); - - if (argsLen > 1) { - // don't slice `arguments`, it prevents v8 optimizations - for (var a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || !str) { - return str; - } - - var nestedStyles = this._styles; - var i = nestedStyles.length; - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - var originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { - ansiStyles.dim.open = ''; - } - - while (i--) { - var code = ansiStyles[nestedStyles[i]]; - - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - } - - // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. - ansiStyles.dim.open = originalDim; - - return str; -} - -function init() { - var ret = {}; - - Object.keys(styles).forEach(function (name) { - ret[name] = { - get: function () { - return build.call(this, [name]); - } - }; - }); - - return ret; -} - -defineProps(Chalk.prototype, init()); - -module.exports = new Chalk(); -module.exports.styles = ansiStyles; -module.exports.hasColor = hasAnsi; -module.exports.stripColor = stripAnsi; -module.exports.supportsColor = supportsColor; - - /***/ }), /* 167 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(212); -module.exports = __webpack_require__(26).RegExp.escape; +module.exports = __webpack_require__(392); + /***/ }), /* 168 */ /***/ (function(module, exports, __webpack_require__) { +__webpack_require__(213); +module.exports = __webpack_require__(26).RegExp.escape; + +/***/ }), +/* 169 */ +/***/ (function(module, exports, __webpack_require__) { + var core = __webpack_require__(33) , $JSON = core.JSON || (core.JSON = {stringify: JSON.stringify}); module.exports = function stringify(it){ // eslint-disable-line no-unused-vars @@ -5836,33 +5892,33 @@ module.exports = function stringify(it){ // eslint-disable-line no-unused-vars }; /***/ }), -/* 169 */ +/* 170 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(199); +__webpack_require__(200); var $Object = __webpack_require__(33).Object; module.exports = function defineProperty(it, key, desc){ return $Object.defineProperty(it, key, desc); }; /***/ }), -/* 170 */ +/* 171 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(200); -__webpack_require__(202); -__webpack_require__(203); __webpack_require__(201); +__webpack_require__(203); +__webpack_require__(204); +__webpack_require__(202); module.exports = __webpack_require__(33).Promise; /***/ }), -/* 171 */ +/* 172 */ /***/ (function(module, exports) { module.exports = function(){ /* empty */ }; /***/ }), -/* 172 */ +/* 173 */ /***/ (function(module, exports) { module.exports = function(it, Constructor, name, forbiddenField){ @@ -5872,14 +5928,14 @@ module.exports = function(it, Constructor, name, forbiddenField){ }; /***/ }), -/* 173 */ +/* 174 */ /***/ (function(module, exports, __webpack_require__) { // false -> Array#indexOf // true -> Array#includes var toIObject = __webpack_require__(84) - , toLength = __webpack_require__(122) - , toIndex = __webpack_require__(194); + , toLength = __webpack_require__(123) + , toIndex = __webpack_require__(195); module.exports = function(IS_INCLUDES){ return function($this, el, fromIndex){ var O = toIObject($this) @@ -5898,15 +5954,15 @@ module.exports = function(IS_INCLUDES){ }; /***/ }), -/* 174 */ +/* 175 */ /***/ (function(module, exports, __webpack_require__) { var ctx = __webpack_require__(61) - , call = __webpack_require__(179) - , isArrayIter = __webpack_require__(178) + , call = __webpack_require__(180) + , isArrayIter = __webpack_require__(179) , anObject = __webpack_require__(43) - , toLength = __webpack_require__(122) - , getIterFn = __webpack_require__(197) + , toLength = __webpack_require__(123) + , getIterFn = __webpack_require__(198) , BREAK = {} , RETURN = {}; var exports = module.exports = function(iterable, entries, fn, that, ITERATOR){ @@ -5928,15 +5984,15 @@ exports.BREAK = BREAK; exports.RETURN = RETURN; /***/ }), -/* 175 */ +/* 176 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = !__webpack_require__(44) && !__webpack_require__(115)(function(){ +module.exports = !__webpack_require__(44) && !__webpack_require__(116)(function(){ return Object.defineProperty(__webpack_require__(79)('div'), 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }), -/* 176 */ +/* 177 */ /***/ (function(module, exports) { // fast apply, http://jsperf.lnkit.com/fast-apply/5 @@ -5957,7 +6013,7 @@ module.exports = function(fn, args, that){ }; /***/ }), -/* 177 */ +/* 178 */ /***/ (function(module, exports, __webpack_require__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings @@ -5967,7 +6023,7 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){ }; /***/ }), -/* 178 */ +/* 179 */ /***/ (function(module, exports, __webpack_require__) { // check on default Array iterator @@ -5980,7 +6036,7 @@ module.exports = function(it){ }; /***/ }), -/* 179 */ +/* 180 */ /***/ (function(module, exports, __webpack_require__) { // call something on iterator step with safe closing on error @@ -5997,13 +6053,13 @@ module.exports = function(iterator, fn, value, entries){ }; /***/ }), -/* 180 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var create = __webpack_require__(184) - , descriptor = __webpack_require__(119) +var create = __webpack_require__(185) + , descriptor = __webpack_require__(120) , setToStringTag = __webpack_require__(81) , IteratorPrototype = {}; @@ -6016,7 +6072,7 @@ module.exports = function(Constructor, NAME, next){ }; /***/ }), -/* 181 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { var ITERATOR = __webpack_require__(18)('iterator') @@ -6042,7 +6098,7 @@ module.exports = function(exec, skipClosing){ }; /***/ }), -/* 182 */ +/* 183 */ /***/ (function(module, exports) { module.exports = function(done, value){ @@ -6050,11 +6106,11 @@ module.exports = function(done, value){ }; /***/ }), -/* 183 */ +/* 184 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(22) - , macrotask = __webpack_require__(121).set + , macrotask = __webpack_require__(122).set , Observer = global.MutationObserver || global.WebKitMutationObserver , process = global.process , Promise = global.Promise @@ -6123,13 +6179,13 @@ module.exports = function(){ }; /***/ }), -/* 184 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(43) - , dPs = __webpack_require__(185) - , enumBugKeys = __webpack_require__(114) + , dPs = __webpack_require__(186) + , enumBugKeys = __webpack_require__(115) , IE_PROTO = __webpack_require__(82)('IE_PROTO') , Empty = function(){ /* empty */ } , PROTOTYPE = 'prototype'; @@ -6143,7 +6199,7 @@ var createDict = function(){ , gt = '>' , iframeDocument; iframe.style.display = 'none'; - __webpack_require__(116).appendChild(iframe); + __webpack_require__(117).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); @@ -6170,12 +6226,12 @@ module.exports = Object.create || function create(O, Properties){ /***/ }), -/* 185 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(54) , anObject = __webpack_require__(43) - , getKeys = __webpack_require__(188); + , getKeys = __webpack_require__(189); module.exports = __webpack_require__(44) ? Object.defineProperties : function defineProperties(O, Properties){ anObject(O); @@ -6188,12 +6244,12 @@ module.exports = __webpack_require__(44) ? Object.defineProperties : function de }; /***/ }), -/* 186 */ +/* 187 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) var has = __webpack_require__(62) - , toObject = __webpack_require__(195) + , toObject = __webpack_require__(196) , IE_PROTO = __webpack_require__(82)('IE_PROTO') , ObjectProto = Object.prototype; @@ -6206,12 +6262,12 @@ module.exports = Object.getPrototypeOf || function(O){ }; /***/ }), -/* 187 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { var has = __webpack_require__(62) , toIObject = __webpack_require__(84) - , arrayIndexOf = __webpack_require__(173)(false) + , arrayIndexOf = __webpack_require__(174)(false) , IE_PROTO = __webpack_require__(82)('IE_PROTO'); module.exports = function(object, names){ @@ -6228,19 +6284,19 @@ module.exports = function(object, names){ }; /***/ }), -/* 188 */ +/* 189 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(187) - , enumBugKeys = __webpack_require__(114); +var $keys = __webpack_require__(188) + , enumBugKeys = __webpack_require__(115); module.exports = Object.keys || function keys(O){ return $keys(O, enumBugKeys); }; /***/ }), -/* 189 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { var hide = __webpack_require__(45); @@ -6252,13 +6308,13 @@ module.exports = function(target, src, safe){ }; /***/ }), -/* 190 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(45); /***/ }), -/* 191 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6278,7 +6334,7 @@ module.exports = function(KEY){ }; /***/ }), -/* 192 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { // 7.3.20 SpeciesConstructor(O, defaultConstructor) @@ -6291,7 +6347,7 @@ module.exports = function(O, D){ }; /***/ }), -/* 193 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(83) @@ -6313,7 +6369,7 @@ module.exports = function(TO_STRING){ }; /***/ }), -/* 194 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { var toInteger = __webpack_require__(83) @@ -6325,7 +6381,7 @@ module.exports = function(index, length){ }; /***/ }), -/* 195 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) @@ -6335,7 +6391,7 @@ module.exports = function(it){ }; /***/ }), -/* 196 */ +/* 197 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) @@ -6352,10 +6408,10 @@ module.exports = function(it, S){ }; /***/ }), -/* 197 */ +/* 198 */ /***/ (function(module, exports, __webpack_require__) { -var classof = __webpack_require__(113) +var classof = __webpack_require__(114) , ITERATOR = __webpack_require__(18)('iterator') , Iterators = __webpack_require__(53); module.exports = __webpack_require__(33).getIteratorMethod = function(it){ @@ -6365,13 +6421,13 @@ module.exports = __webpack_require__(33).getIteratorMethod = function(it){ }; /***/ }), -/* 198 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var addToUnscopables = __webpack_require__(171) - , step = __webpack_require__(182) +var addToUnscopables = __webpack_require__(172) + , step = __webpack_require__(183) , Iterators = __webpack_require__(53) , toIObject = __webpack_require__(84); @@ -6379,7 +6435,7 @@ var addToUnscopables = __webpack_require__(171) // 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__(117)(Array, 'Array', function(iterated, kind){ +module.exports = __webpack_require__(118)(Array, 'Array', function(iterated, kind){ this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind @@ -6405,7 +6461,7 @@ addToUnscopables('values'); addToUnscopables('entries'); /***/ }), -/* 199 */ +/* 200 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(80); @@ -6413,29 +6469,29 @@ var $export = __webpack_require__(80); $export($export.S + $export.F * !__webpack_require__(44), 'Object', {defineProperty: __webpack_require__(54).f}); /***/ }), -/* 200 */ +/* 201 */ /***/ (function(module, exports) { /***/ }), -/* 201 */ +/* 202 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var LIBRARY = __webpack_require__(118) +var LIBRARY = __webpack_require__(119) , global = __webpack_require__(22) , ctx = __webpack_require__(61) - , classof = __webpack_require__(113) + , classof = __webpack_require__(114) , $export = __webpack_require__(80) , isObject = __webpack_require__(63) , aFunction = __webpack_require__(77) - , anInstance = __webpack_require__(172) - , forOf = __webpack_require__(174) - , speciesConstructor = __webpack_require__(192) - , task = __webpack_require__(121).set - , microtask = __webpack_require__(183)() + , anInstance = __webpack_require__(173) + , forOf = __webpack_require__(175) + , speciesConstructor = __webpack_require__(193) + , task = __webpack_require__(122).set + , microtask = __webpack_require__(184)() , PROMISE = 'Promise' , TypeError = global.TypeError , process = global.process @@ -6627,7 +6683,7 @@ if(!USE_NATIVE){ this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled this._n = false; // <- notify }; - Internal.prototype = __webpack_require__(189)($Promise.prototype, { + Internal.prototype = __webpack_require__(190)($Promise.prototype, { // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) then: function then(onFulfilled, onRejected){ var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); @@ -6654,7 +6710,7 @@ if(!USE_NATIVE){ $export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise}); __webpack_require__(81)($Promise, PROMISE); -__webpack_require__(191)(PROMISE); +__webpack_require__(192)(PROMISE); Wrapper = __webpack_require__(33)[PROMISE]; // statics @@ -6678,7 +6734,7 @@ $export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { return capability.promise; } }); -$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(181)(function(iter){ +$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(182)(function(iter){ $Promise.all(iter)['catch'](empty); })), PROMISE, { // 25.4.4.1 Promise.all(iterable) @@ -6724,15 +6780,15 @@ $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(181)(functio }); /***/ }), -/* 202 */ +/* 203 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var $at = __webpack_require__(193)(true); +var $at = __webpack_require__(194)(true); // 21.1.3.27 String.prototype[@@iterator]() -__webpack_require__(117)(String, 'String', function(iterated){ +__webpack_require__(118)(String, 'String', function(iterated){ this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() @@ -6747,10 +6803,10 @@ __webpack_require__(117)(String, 'String', function(iterated){ }); /***/ }), -/* 203 */ +/* 204 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(198); +__webpack_require__(199); var global = __webpack_require__(22) , hide = __webpack_require__(45) , Iterators = __webpack_require__(53) @@ -6765,7 +6821,7 @@ for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList' } /***/ }), -/* 204 */ +/* 205 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(4) @@ -6786,18 +6842,18 @@ module.exports = function(original){ }; /***/ }), -/* 205 */ +/* 206 */ /***/ (function(module, exports, __webpack_require__) { // 9.4.2.3 ArraySpeciesCreate(originalArray, length) -var speciesConstructor = __webpack_require__(204); +var speciesConstructor = __webpack_require__(205); module.exports = function(original, length){ return new (speciesConstructor(original))(length); }; /***/ }), -/* 206 */ +/* 207 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6812,7 +6868,7 @@ module.exports = function(hint){ }; /***/ }), -/* 207 */ +/* 208 */ /***/ (function(module, exports, __webpack_require__) { // all enumerable object keys, includes symbols @@ -6832,7 +6888,7 @@ module.exports = function(it){ }; /***/ }), -/* 208 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { var getKeys = __webpack_require__(38) @@ -6847,12 +6903,12 @@ module.exports = function(object, el){ }; /***/ }), -/* 209 */ +/* 210 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var path = __webpack_require__(210) +var path = __webpack_require__(211) , invoke = __webpack_require__(68) , aFunction = __webpack_require__(11); module.exports = function(/* ...pargs */){ @@ -6876,13 +6932,13 @@ module.exports = function(/* ...pargs */){ }; /***/ }), -/* 210 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(2); /***/ }), -/* 211 */ +/* 212 */ /***/ (function(module, exports) { module.exports = function(regExp, replace){ @@ -6895,29 +6951,29 @@ module.exports = function(regExp, replace){ }; /***/ }), -/* 212 */ +/* 213 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/benjamingr/RexExp.escape var $export = __webpack_require__(0) - , $re = __webpack_require__(211)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); + , $re = __webpack_require__(212)(/[\\^$*+?.()|[\]{}]/g, '\\$&'); $export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }}); /***/ }), -/* 213 */ +/* 214 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length) var $export = __webpack_require__(0); -$export($export.P, 'Array', {copyWithin: __webpack_require__(125)}); +$export($export.P, 'Array', {copyWithin: __webpack_require__(126)}); __webpack_require__(46)('copyWithin'); /***/ }), -/* 214 */ +/* 215 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6933,7 +6989,7 @@ $export($export.P + $export.F * !__webpack_require__(21)([].every, true), 'Array }); /***/ }), -/* 215 */ +/* 216 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length) @@ -6944,7 +7000,7 @@ $export($export.P, 'Array', {fill: __webpack_require__(85)}); __webpack_require__(46)('fill'); /***/ }), -/* 216 */ +/* 217 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6960,7 +7016,7 @@ $export($export.P + $export.F * !__webpack_require__(21)([].filter, true), 'Arra }); /***/ }), -/* 217 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6980,7 +7036,7 @@ $export($export.P + $export.F * forced, 'Array', { __webpack_require__(46)(KEY); /***/ }), -/* 218 */ +/* 219 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7000,7 +7056,7 @@ $export($export.P + $export.F * forced, 'Array', { __webpack_require__(46)(KEY); /***/ }), -/* 219 */ +/* 220 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7017,7 +7073,7 @@ $export($export.P + $export.F * !STRICT, 'Array', { }); /***/ }), -/* 220 */ +/* 221 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7025,7 +7081,7 @@ $export($export.P + $export.F * !STRICT, 'Array', { var ctx = __webpack_require__(27) , $export = __webpack_require__(0) , toObject = __webpack_require__(9) - , call = __webpack_require__(134) + , call = __webpack_require__(135) , isArrayIter = __webpack_require__(92) , toLength = __webpack_require__(8) , createProperty = __webpack_require__(86) @@ -7061,7 +7117,7 @@ $export($export.S + $export.F * !__webpack_require__(70)(function(iter){ Array.f /***/ }), -/* 221 */ +/* 222 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7082,7 +7138,7 @@ $export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(21)($nati }); /***/ }), -/* 222 */ +/* 223 */ /***/ (function(module, exports, __webpack_require__) { // 22.1.2.2 / 15.4.3.2 Array.isArray(arg) @@ -7091,7 +7147,7 @@ var $export = __webpack_require__(0); $export($export.S, 'Array', {isArray: __webpack_require__(93)}); /***/ }), -/* 223 */ +/* 224 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7109,7 +7165,7 @@ $export($export.P + $export.F * (__webpack_require__(56) != Object || !__webpack }); /***/ }), -/* 224 */ +/* 225 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7137,7 +7193,7 @@ $export($export.P + $export.F * (NEGATIVE_ZERO || !__webpack_require__(21)($nati }); /***/ }), -/* 225 */ +/* 226 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7153,7 +7209,7 @@ $export($export.P + $export.F * !__webpack_require__(21)([].map, true), 'Array', }); /***/ }), -/* 226 */ +/* 227 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7178,13 +7234,13 @@ $export($export.S + $export.F * __webpack_require__(3)(function(){ }); /***/ }), -/* 227 */ +/* 228 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $export = __webpack_require__(0) - , $reduce = __webpack_require__(127); + , $reduce = __webpack_require__(128); $export($export.P + $export.F * !__webpack_require__(21)([].reduceRight, true), 'Array', { // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue]) @@ -7194,13 +7250,13 @@ $export($export.P + $export.F * !__webpack_require__(21)([].reduceRight, true), }); /***/ }), -/* 228 */ +/* 229 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $export = __webpack_require__(0) - , $reduce = __webpack_require__(127); + , $reduce = __webpack_require__(128); $export($export.P + $export.F * !__webpack_require__(21)([].reduce, true), 'Array', { // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue]) @@ -7210,7 +7266,7 @@ $export($export.P + $export.F * !__webpack_require__(21)([].reduce, true), 'Arra }); /***/ }), -/* 229 */ +/* 230 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7244,7 +7300,7 @@ $export($export.P + $export.F * __webpack_require__(3)(function(){ }); /***/ }), -/* 230 */ +/* 231 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7260,7 +7316,7 @@ $export($export.P + $export.F * !__webpack_require__(21)([].some, true), 'Array' }); /***/ }), -/* 231 */ +/* 232 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7289,13 +7345,13 @@ $export($export.P + $export.F * (fails(function(){ }); /***/ }), -/* 232 */ +/* 233 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(40)('Array'); /***/ }), -/* 233 */ +/* 234 */ /***/ (function(module, exports, __webpack_require__) { // 20.3.3.1 / 15.9.4.4 Date.now() @@ -7304,7 +7360,7 @@ var $export = __webpack_require__(0); $export($export.S, 'Date', {now: function(){ return new Date().getTime(); }}); /***/ }), -/* 234 */ +/* 235 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7338,7 +7394,7 @@ $export($export.P + $export.F * (fails(function(){ }); /***/ }), -/* 235 */ +/* 236 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7358,16 +7414,16 @@ $export($export.P + $export.F * __webpack_require__(3)(function(){ }); /***/ }), -/* 236 */ +/* 237 */ /***/ (function(module, exports, __webpack_require__) { var TO_PRIMITIVE = __webpack_require__(5)('toPrimitive') , proto = Date.prototype; -if(!(TO_PRIMITIVE in proto))__webpack_require__(12)(proto, TO_PRIMITIVE, __webpack_require__(206)); +if(!(TO_PRIMITIVE in proto))__webpack_require__(12)(proto, TO_PRIMITIVE, __webpack_require__(207)); /***/ }), -/* 237 */ +/* 238 */ /***/ (function(module, exports, __webpack_require__) { var DateProto = Date.prototype @@ -7383,16 +7439,16 @@ if(new Date(NaN) + '' != INVALID_DATE){ } /***/ }), -/* 238 */ +/* 239 */ /***/ (function(module, exports, __webpack_require__) { // 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...) var $export = __webpack_require__(0); -$export($export.P, 'Function', {bind: __webpack_require__(128)}); +$export($export.P, 'Function', {bind: __webpack_require__(129)}); /***/ }), -/* 239 */ +/* 240 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7411,7 +7467,7 @@ if(!(HAS_INSTANCE in FunctionProto))__webpack_require__(7).f(FunctionProto, HAS_ }}); /***/ }), -/* 240 */ +/* 241 */ /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(7).f @@ -7441,12 +7497,12 @@ NAME in FProto || __webpack_require__(6) && dP(FProto, NAME, { }); /***/ }), -/* 241 */ +/* 242 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.3 Math.acosh(x) var $export = __webpack_require__(0) - , log1p = __webpack_require__(136) + , log1p = __webpack_require__(137) , sqrt = Math.sqrt , $acosh = Math.acosh; @@ -7464,7 +7520,7 @@ $export($export.S + $export.F * !($acosh }); /***/ }), -/* 242 */ +/* 243 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.5 Math.asinh(x) @@ -7479,7 +7535,7 @@ function asinh(x){ $export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', {asinh: asinh}); /***/ }), -/* 243 */ +/* 244 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.7 Math.atanh(x) @@ -7494,7 +7550,7 @@ $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', { }); /***/ }), -/* 244 */ +/* 245 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.9 Math.cbrt(x) @@ -7508,7 +7564,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 245 */ +/* 246 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.11 Math.clz32(x) @@ -7521,7 +7577,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 246 */ +/* 247 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.12 Math.cosh(x) @@ -7535,7 +7591,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 247 */ +/* 248 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.14 Math.expm1(x) @@ -7545,7 +7601,7 @@ var $export = __webpack_require__(0) $export($export.S + $export.F * ($expm1 != Math.expm1), 'Math', {expm1: $expm1}); /***/ }), -/* 248 */ +/* 249 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.16 Math.fround(x) @@ -7576,7 +7632,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 249 */ +/* 250 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.17 Math.hypot([value1[, value2[, … ]]]) @@ -7606,7 +7662,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 250 */ +/* 251 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.18 Math.imul(x, y) @@ -7628,7 +7684,7 @@ $export($export.S + $export.F * __webpack_require__(3)(function(){ }); /***/ }), -/* 251 */ +/* 252 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.21 Math.log10(x) @@ -7641,16 +7697,16 @@ $export($export.S, 'Math', { }); /***/ }), -/* 252 */ +/* 253 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.20 Math.log1p(x) var $export = __webpack_require__(0); -$export($export.S, 'Math', {log1p: __webpack_require__(136)}); +$export($export.S, 'Math', {log1p: __webpack_require__(137)}); /***/ }), -/* 253 */ +/* 254 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.22 Math.log2(x) @@ -7663,7 +7719,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 254 */ +/* 255 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.28 Math.sign(x) @@ -7672,7 +7728,7 @@ var $export = __webpack_require__(0); $export($export.S, 'Math', {sign: __webpack_require__(97)}); /***/ }), -/* 255 */ +/* 256 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.30 Math.sinh(x) @@ -7692,7 +7748,7 @@ $export($export.S + $export.F * __webpack_require__(3)(function(){ }); /***/ }), -/* 256 */ +/* 257 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.33 Math.tanh(x) @@ -7709,7 +7765,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 257 */ +/* 258 */ /***/ (function(module, exports, __webpack_require__) { // 20.2.2.34 Math.trunc(x) @@ -7722,7 +7778,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 258 */ +/* 259 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7797,7 +7853,7 @@ if(!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')){ } /***/ }), -/* 259 */ +/* 260 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.1 Number.EPSILON @@ -7806,7 +7862,7 @@ var $export = __webpack_require__(0); $export($export.S, 'Number', {EPSILON: Math.pow(2, -52)}); /***/ }), -/* 260 */ +/* 261 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.2 Number.isFinite(number) @@ -7820,16 +7876,16 @@ $export($export.S, 'Number', { }); /***/ }), -/* 261 */ +/* 262 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.3 Number.isInteger(number) var $export = __webpack_require__(0); -$export($export.S, 'Number', {isInteger: __webpack_require__(133)}); +$export($export.S, 'Number', {isInteger: __webpack_require__(134)}); /***/ }), -/* 262 */ +/* 263 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.4 Number.isNaN(number) @@ -7842,12 +7898,12 @@ $export($export.S, 'Number', { }); /***/ }), -/* 263 */ +/* 264 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.5 Number.isSafeInteger(number) var $export = __webpack_require__(0) - , isInteger = __webpack_require__(133) + , isInteger = __webpack_require__(134) , abs = Math.abs; $export($export.S, 'Number', { @@ -7857,7 +7913,7 @@ $export($export.S, 'Number', { }); /***/ }), -/* 264 */ +/* 265 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.6 Number.MAX_SAFE_INTEGER @@ -7866,7 +7922,7 @@ var $export = __webpack_require__(0); $export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff}); /***/ }), -/* 265 */ +/* 266 */ /***/ (function(module, exports, __webpack_require__) { // 20.1.2.10 Number.MIN_SAFE_INTEGER @@ -7875,32 +7931,32 @@ var $export = __webpack_require__(0); $export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff}); /***/ }), -/* 266 */ +/* 267 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) - , $parseFloat = __webpack_require__(143); + , $parseFloat = __webpack_require__(144); // 20.1.2.12 Number.parseFloat(string) $export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', {parseFloat: $parseFloat}); /***/ }), -/* 267 */ +/* 268 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) - , $parseInt = __webpack_require__(144); + , $parseInt = __webpack_require__(145); // 20.1.2.13 Number.parseInt(string, radix) $export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', {parseInt: $parseInt}); /***/ }), -/* 268 */ +/* 269 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $export = __webpack_require__(0) , toInteger = __webpack_require__(32) - , aNumberValue = __webpack_require__(124) + , aNumberValue = __webpack_require__(125) , repeat = __webpack_require__(104) , $toFixed = 1..toFixed , floor = Math.floor @@ -8012,14 +8068,14 @@ $export($export.P + $export.F * (!!$toFixed && ( }); /***/ }), -/* 269 */ +/* 270 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $export = __webpack_require__(0) , $fails = __webpack_require__(3) - , aNumberValue = __webpack_require__(124) + , aNumberValue = __webpack_require__(125) , $toPrecision = 1..toPrecision; $export($export.P + $export.F * ($fails(function(){ @@ -8036,16 +8092,16 @@ $export($export.P + $export.F * ($fails(function(){ }); /***/ }), -/* 270 */ +/* 271 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.1 Object.assign(target, source) var $export = __webpack_require__(0); -$export($export.S + $export.F, 'Object', {assign: __webpack_require__(137)}); +$export($export.S + $export.F, 'Object', {assign: __webpack_require__(138)}); /***/ }), -/* 271 */ +/* 272 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) @@ -8053,15 +8109,15 @@ var $export = __webpack_require__(0) $export($export.S, 'Object', {create: __webpack_require__(36)}); /***/ }), -/* 272 */ +/* 273 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0); // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) -$export($export.S + $export.F * !__webpack_require__(6), 'Object', {defineProperties: __webpack_require__(138)}); +$export($export.S + $export.F * !__webpack_require__(6), 'Object', {defineProperties: __webpack_require__(139)}); /***/ }), -/* 273 */ +/* 274 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0); @@ -8069,7 +8125,7 @@ var $export = __webpack_require__(0); $export($export.S + $export.F * !__webpack_require__(6), 'Object', {defineProperty: __webpack_require__(7).f}); /***/ }), -/* 274 */ +/* 275 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.5 Object.freeze(O) @@ -8083,7 +8139,7 @@ __webpack_require__(24)('freeze', function($freeze){ }); /***/ }), -/* 275 */ +/* 276 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) @@ -8097,16 +8153,16 @@ __webpack_require__(24)('getOwnPropertyDescriptor', function(){ }); /***/ }), -/* 276 */ +/* 277 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 Object.getOwnPropertyNames(O) __webpack_require__(24)('getOwnPropertyNames', function(){ - return __webpack_require__(139).f; + return __webpack_require__(140).f; }); /***/ }), -/* 277 */ +/* 278 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 Object.getPrototypeOf(O) @@ -8120,7 +8176,7 @@ __webpack_require__(24)('getPrototypeOf', function(){ }); /***/ }), -/* 278 */ +/* 279 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.11 Object.isExtensible(O) @@ -8133,7 +8189,7 @@ __webpack_require__(24)('isExtensible', function($isExtensible){ }); /***/ }), -/* 279 */ +/* 280 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.12 Object.isFrozen(O) @@ -8146,7 +8202,7 @@ __webpack_require__(24)('isFrozen', function($isFrozen){ }); /***/ }), -/* 280 */ +/* 281 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.13 Object.isSealed(O) @@ -8159,15 +8215,15 @@ __webpack_require__(24)('isSealed', function($isSealed){ }); /***/ }), -/* 281 */ +/* 282 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.10 Object.is(value1, value2) var $export = __webpack_require__(0); -$export($export.S, 'Object', {is: __webpack_require__(145)}); +$export($export.S, 'Object', {is: __webpack_require__(146)}); /***/ }), -/* 282 */ +/* 283 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 Object.keys(O) @@ -8181,7 +8237,7 @@ __webpack_require__(24)('keys', function(){ }); /***/ }), -/* 283 */ +/* 284 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.15 Object.preventExtensions(O) @@ -8195,7 +8251,7 @@ __webpack_require__(24)('preventExtensions', function($preventExtensions){ }); /***/ }), -/* 284 */ +/* 285 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.17 Object.seal(O) @@ -8209,7 +8265,7 @@ __webpack_require__(24)('seal', function($seal){ }); /***/ }), -/* 285 */ +/* 286 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.3.19 Object.setPrototypeOf(O, proto) @@ -8217,7 +8273,7 @@ var $export = __webpack_require__(0); $export($export.S, 'Object', {setPrototypeOf: __webpack_require__(99).set}); /***/ }), -/* 286 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8233,25 +8289,25 @@ if(test + '' != '[object z]'){ } /***/ }), -/* 287 */ +/* 288 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) - , $parseFloat = __webpack_require__(143); + , $parseFloat = __webpack_require__(144); // 18.2.4 parseFloat(string) $export($export.G + $export.F * (parseFloat != $parseFloat), {parseFloat: $parseFloat}); /***/ }), -/* 288 */ +/* 289 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) - , $parseInt = __webpack_require__(144); + , $parseInt = __webpack_require__(145); // 18.2.5 parseInt(string, radix) $export($export.G + $export.F * (parseInt != $parseInt), {parseInt: $parseInt}); /***/ }), -/* 289 */ +/* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8556,7 +8612,7 @@ $export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(70)(function }); /***/ }), -/* 290 */ +/* 291 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.1 Reflect.apply(target, thisArgument, argumentsList) @@ -8577,7 +8633,7 @@ $export($export.S + $export.F * !__webpack_require__(3)(function(){ }); /***/ }), -/* 291 */ +/* 292 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) @@ -8587,7 +8643,7 @@ var $export = __webpack_require__(0) , anObject = __webpack_require__(1) , isObject = __webpack_require__(4) , fails = __webpack_require__(3) - , bind = __webpack_require__(128) + , bind = __webpack_require__(129) , rConstruct = (__webpack_require__(2).Reflect || {}).construct; // MS Edge supports only 2 arguments and argumentsList argument is optional @@ -8629,7 +8685,7 @@ $export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { }); /***/ }), -/* 292 */ +/* 293 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.3 Reflect.defineProperty(target, propertyKey, attributes) @@ -8656,7 +8712,7 @@ $export($export.S + $export.F * __webpack_require__(3)(function(){ }); /***/ }), -/* 293 */ +/* 294 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.4 Reflect.deleteProperty(target, propertyKey) @@ -8672,7 +8728,7 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 294 */ +/* 295 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -8704,7 +8760,7 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 295 */ +/* 296 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey) @@ -8719,7 +8775,7 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 296 */ +/* 297 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.8 Reflect.getPrototypeOf(target) @@ -8734,7 +8790,7 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 297 */ +/* 298 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.6 Reflect.get(target, propertyKey [, receiver]) @@ -8760,7 +8816,7 @@ function get(target, propertyKey/*, receiver*/){ $export($export.S, 'Reflect', {get: get}); /***/ }), -/* 298 */ +/* 299 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.9 Reflect.has(target, propertyKey) @@ -8773,7 +8829,7 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 299 */ +/* 300 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.10 Reflect.isExtensible(target) @@ -8789,16 +8845,16 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 300 */ +/* 301 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.11 Reflect.ownKeys(target) var $export = __webpack_require__(0); -$export($export.S, 'Reflect', {ownKeys: __webpack_require__(142)}); +$export($export.S, 'Reflect', {ownKeys: __webpack_require__(143)}); /***/ }), -/* 301 */ +/* 302 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.12 Reflect.preventExtensions(target) @@ -8819,7 +8875,7 @@ $export($export.S, 'Reflect', { }); /***/ }), -/* 302 */ +/* 303 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.14 Reflect.setPrototypeOf(target, proto) @@ -8839,7 +8895,7 @@ if(setProto)$export($export.S, 'Reflect', { }); /***/ }), -/* 303 */ +/* 304 */ /***/ (function(module, exports, __webpack_require__) { // 26.1.13 Reflect.set(target, propertyKey, V [, receiver]) @@ -8875,7 +8931,7 @@ function set(target, propertyKey, V/*, receiver*/){ $export($export.S, 'Reflect', {set: set}); /***/ }), -/* 304 */ +/* 305 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(2) @@ -8923,7 +8979,7 @@ if(__webpack_require__(6) && (!CORRECT_NEW || __webpack_require__(3)(function(){ __webpack_require__(40)('RegExp'); /***/ }), -/* 305 */ +/* 306 */ /***/ (function(module, exports, __webpack_require__) { // @@match logic @@ -8938,7 +8994,7 @@ __webpack_require__(66)('match', 1, function(defined, MATCH, $match){ }); /***/ }), -/* 306 */ +/* 307 */ /***/ (function(module, exports, __webpack_require__) { // @@replace logic @@ -8955,7 +9011,7 @@ __webpack_require__(66)('replace', 2, function(defined, REPLACE, $replace){ }); /***/ }), -/* 307 */ +/* 308 */ /***/ (function(module, exports, __webpack_require__) { // @@search logic @@ -8970,7 +9026,7 @@ __webpack_require__(66)('search', 1, function(defined, SEARCH, $search){ }); /***/ }), -/* 308 */ +/* 309 */ /***/ (function(module, exports, __webpack_require__) { // @@split logic @@ -9045,12 +9101,12 @@ __webpack_require__(66)('split', 2, function(defined, SPLIT, $split){ }); /***/ }), -/* 309 */ +/* 310 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__(149); +__webpack_require__(150); var anObject = __webpack_require__(1) , $flags = __webpack_require__(67) , DESCRIPTORS = __webpack_require__(6) @@ -9076,7 +9132,7 @@ if(__webpack_require__(3)(function(){ return $toString.call({source: 'a', flags: } /***/ }), -/* 310 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9089,7 +9145,7 @@ __webpack_require__(14)('anchor', function(createHTML){ }); /***/ }), -/* 311 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9102,7 +9158,7 @@ __webpack_require__(14)('big', function(createHTML){ }); /***/ }), -/* 312 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9115,7 +9171,7 @@ __webpack_require__(14)('blink', function(createHTML){ }); /***/ }), -/* 313 */ +/* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9128,7 +9184,7 @@ __webpack_require__(14)('bold', function(createHTML){ }); /***/ }), -/* 314 */ +/* 315 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9143,7 +9199,7 @@ $export($export.P, 'String', { }); /***/ }), -/* 315 */ +/* 316 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9169,7 +9225,7 @@ $export($export.P + $export.F * __webpack_require__(89)(ENDS_WITH), 'String', { }); /***/ }), -/* 316 */ +/* 317 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9182,7 +9238,7 @@ __webpack_require__(14)('fixed', function(createHTML){ }); /***/ }), -/* 317 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9195,7 +9251,7 @@ __webpack_require__(14)('fontcolor', function(createHTML){ }); /***/ }), -/* 318 */ +/* 319 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9208,7 +9264,7 @@ __webpack_require__(14)('fontsize', function(createHTML){ }); /***/ }), -/* 319 */ +/* 320 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) @@ -9236,7 +9292,7 @@ $export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1) }); /***/ }), -/* 320 */ +/* 321 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9254,7 +9310,7 @@ $export($export.P + $export.F * __webpack_require__(89)(INCLUDES), 'String', { }); /***/ }), -/* 321 */ +/* 322 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9267,7 +9323,7 @@ __webpack_require__(14)('italics', function(createHTML){ }); /***/ }), -/* 322 */ +/* 323 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9290,7 +9346,7 @@ __webpack_require__(95)(String, 'String', function(iterated){ }); /***/ }), -/* 323 */ +/* 324 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9303,7 +9359,7 @@ __webpack_require__(14)('link', function(createHTML){ }); /***/ }), -/* 324 */ +/* 325 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) @@ -9326,7 +9382,7 @@ $export($export.S, 'String', { }); /***/ }), -/* 325 */ +/* 326 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0); @@ -9337,7 +9393,7 @@ $export($export.P, 'String', { }); /***/ }), -/* 326 */ +/* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9350,7 +9406,7 @@ __webpack_require__(14)('small', function(createHTML){ }); /***/ }), -/* 327 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9374,7 +9430,7 @@ $export($export.P + $export.F * __webpack_require__(89)(STARTS_WITH), 'String', }); /***/ }), -/* 328 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9387,7 +9443,7 @@ __webpack_require__(14)('strike', function(createHTML){ }); /***/ }), -/* 329 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9400,7 +9456,7 @@ __webpack_require__(14)('sub', function(createHTML){ }); /***/ }), -/* 330 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9413,7 +9469,7 @@ __webpack_require__(14)('sup', function(createHTML){ }); /***/ }), -/* 331 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9426,7 +9482,7 @@ __webpack_require__(50)('trim', function($trim){ }); /***/ }), -/* 332 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9443,17 +9499,17 @@ var global = __webpack_require__(2) , setToStringTag = __webpack_require__(49) , uid = __webpack_require__(42) , wks = __webpack_require__(5) - , wksExt = __webpack_require__(147) + , wksExt = __webpack_require__(148) , wksDefine = __webpack_require__(108) - , keyOf = __webpack_require__(208) - , enumKeys = __webpack_require__(207) + , keyOf = __webpack_require__(209) + , enumKeys = __webpack_require__(208) , isArray = __webpack_require__(93) , anObject = __webpack_require__(1) , toIObject = __webpack_require__(15) , toPrimitive = __webpack_require__(25) , createDesc = __webpack_require__(31) , _create = __webpack_require__(36) - , gOPNExt = __webpack_require__(139) + , gOPNExt = __webpack_require__(140) , $GOPD = __webpack_require__(16) , $DP = __webpack_require__(7) , $keys = __webpack_require__(38) @@ -9667,7 +9723,7 @@ setToStringTag(Math, 'Math', true); setToStringTag(global.JSON, 'JSON', true); /***/ }), -/* 333 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9719,7 +9775,7 @@ $export($export.P + $export.U + $export.F * __webpack_require__(3)(function(){ __webpack_require__(40)(ARRAY_BUFFER); /***/ }), -/* 334 */ +/* 335 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0); @@ -9728,7 +9784,7 @@ $export($export.G + $export.W + $export.F * !__webpack_require__(74).ABV, { }); /***/ }), -/* 335 */ +/* 336 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Float32', 4, function(init){ @@ -9738,7 +9794,7 @@ __webpack_require__(29)('Float32', 4, function(init){ }); /***/ }), -/* 336 */ +/* 337 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Float64', 8, function(init){ @@ -9748,7 +9804,7 @@ __webpack_require__(29)('Float64', 8, function(init){ }); /***/ }), -/* 337 */ +/* 338 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Int16', 2, function(init){ @@ -9758,7 +9814,7 @@ __webpack_require__(29)('Int16', 2, function(init){ }); /***/ }), -/* 338 */ +/* 339 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Int32', 4, function(init){ @@ -9768,7 +9824,7 @@ __webpack_require__(29)('Int32', 4, function(init){ }); /***/ }), -/* 339 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Int8', 1, function(init){ @@ -9778,7 +9834,7 @@ __webpack_require__(29)('Int8', 1, function(init){ }); /***/ }), -/* 340 */ +/* 341 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Uint16', 2, function(init){ @@ -9788,7 +9844,7 @@ __webpack_require__(29)('Uint16', 2, function(init){ }); /***/ }), -/* 341 */ +/* 342 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Uint32', 4, function(init){ @@ -9798,7 +9854,7 @@ __webpack_require__(29)('Uint32', 4, function(init){ }); /***/ }), -/* 342 */ +/* 343 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Uint8', 1, function(init){ @@ -9808,7 +9864,7 @@ __webpack_require__(29)('Uint8', 1, function(init){ }); /***/ }), -/* 343 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(29)('Uint8', 1, function(init){ @@ -9818,12 +9874,12 @@ __webpack_require__(29)('Uint8', 1, function(init){ }, true); /***/ }), -/* 344 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var weak = __webpack_require__(131); +var weak = __webpack_require__(132); // 23.4 WeakSet Objects __webpack_require__(65)('WeakSet', function(get){ @@ -9836,7 +9892,7 @@ __webpack_require__(65)('WeakSet', function(get){ }, weak, false, true); /***/ }), -/* 345 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9854,7 +9910,7 @@ $export($export.P, 'Array', { __webpack_require__(46)('includes'); /***/ }), -/* 346 */ +/* 347 */ /***/ (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 @@ -9871,7 +9927,7 @@ $export($export.G, { }); /***/ }), -/* 347 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-is-error @@ -9885,16 +9941,16 @@ $export($export.S, 'Error', { }); /***/ }), -/* 348 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = __webpack_require__(0); -$export($export.P + $export.R, 'Map', {toJSON: __webpack_require__(130)('Map')}); +$export($export.P + $export.R, 'Map', {toJSON: __webpack_require__(131)('Map')}); /***/ }), -/* 349 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -9910,7 +9966,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 350 */ +/* 351 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -9931,7 +9987,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 351 */ +/* 352 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -9947,7 +10003,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 352 */ +/* 353 */ /***/ (function(module, exports, __webpack_require__) { // https://gist.github.com/BrendanEich/4294d5c212a6d2254703 @@ -9968,7 +10024,7 @@ $export($export.S, 'Math', { }); /***/ }), -/* 353 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9986,7 +10042,7 @@ __webpack_require__(6) && $export($export.P + __webpack_require__(71), 'Object', }); /***/ }), -/* 354 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10004,12 +10060,12 @@ __webpack_require__(6) && $export($export.P + __webpack_require__(71), 'Object', }); /***/ }), -/* 355 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-values-entries var $export = __webpack_require__(0) - , $entries = __webpack_require__(141)(true); + , $entries = __webpack_require__(142)(true); $export($export.S, 'Object', { entries: function entries(it){ @@ -10018,12 +10074,12 @@ $export($export.S, 'Object', { }); /***/ }), -/* 356 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-getownpropertydescriptors var $export = __webpack_require__(0) - , ownKeys = __webpack_require__(142) + , ownKeys = __webpack_require__(143) , toIObject = __webpack_require__(15) , gOPD = __webpack_require__(16) , createProperty = __webpack_require__(86); @@ -10042,7 +10098,7 @@ $export($export.S, 'Object', { }); /***/ }), -/* 357 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10066,7 +10122,7 @@ __webpack_require__(6) && $export($export.P + __webpack_require__(71), 'Object', }); /***/ }), -/* 358 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10090,12 +10146,12 @@ __webpack_require__(6) && $export($export.P + __webpack_require__(71), 'Object', }); /***/ }), -/* 359 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/tc39/proposal-object-values-entries var $export = __webpack_require__(0) - , $values = __webpack_require__(141)(false); + , $values = __webpack_require__(142)(false); $export($export.S, 'Object', { values: function values(it){ @@ -10104,7 +10160,7 @@ $export($export.S, 'Object', { }); /***/ }), -/* 360 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10309,7 +10365,7 @@ $export($export.G, {Observable: $Observable}); __webpack_require__(40)('Observable'); /***/ }), -/* 361 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10322,7 +10378,7 @@ metadata.exp({defineMetadata: function defineMetadata(metadataKey, metadataValue }}); /***/ }), -/* 362 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10342,11 +10398,11 @@ metadata.exp({deleteMetadata: function deleteMetadata(metadataKey, target /*, ta }}); /***/ }), -/* 363 */ +/* 364 */ /***/ (function(module, exports, __webpack_require__) { -var Set = __webpack_require__(150) - , from = __webpack_require__(126) +var Set = __webpack_require__(151) + , from = __webpack_require__(127) , metadata = __webpack_require__(28) , anObject = __webpack_require__(1) , getPrototypeOf = __webpack_require__(17) @@ -10366,7 +10422,7 @@ metadata.exp({getMetadataKeys: function getMetadataKeys(target /*, targetKey */) }}); /***/ }), -/* 364 */ +/* 365 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10388,7 +10444,7 @@ metadata.exp({getMetadata: function getMetadata(metadataKey, target /*, targetKe }}); /***/ }), -/* 365 */ +/* 366 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10401,7 +10457,7 @@ metadata.exp({getOwnMetadataKeys: function getOwnMetadataKeys(target /*, targetK }}); /***/ }), -/* 366 */ +/* 367 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10415,7 +10471,7 @@ metadata.exp({getOwnMetadata: function getOwnMetadata(metadataKey, target /*, ta }}); /***/ }), -/* 367 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10436,7 +10492,7 @@ metadata.exp({hasMetadata: function hasMetadata(metadataKey, target /*, targetKe }}); /***/ }), -/* 368 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10450,7 +10506,7 @@ metadata.exp({hasOwnMetadata: function hasOwnMetadata(metadataKey, target /*, ta }}); /***/ }), -/* 369 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { var metadata = __webpack_require__(28) @@ -10470,16 +10526,16 @@ metadata.exp({metadata: function metadata(metadataKey, metadataValue){ }}); /***/ }), -/* 370 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/DavidBruant/Map-Set.prototype.toJSON var $export = __webpack_require__(0); -$export($export.P + $export.R, 'Set', {toJSON: __webpack_require__(130)('Set')}); +$export($export.P + $export.R, 'Set', {toJSON: __webpack_require__(131)('Set')}); /***/ }), -/* 371 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10495,7 +10551,7 @@ $export($export.P, 'String', { }); /***/ }), -/* 372 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10531,14 +10587,14 @@ $export($export.P, 'String', { }); /***/ }), -/* 373 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // https://github.com/tc39/proposal-string-pad-start-end var $export = __webpack_require__(0) - , $pad = __webpack_require__(146); + , $pad = __webpack_require__(147); $export($export.P, 'String', { padEnd: function padEnd(maxLength /*, fillString = ' ' */){ @@ -10547,14 +10603,14 @@ $export($export.P, 'String', { }); /***/ }), -/* 374 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // https://github.com/tc39/proposal-string-pad-start-end var $export = __webpack_require__(0) - , $pad = __webpack_require__(146); + , $pad = __webpack_require__(147); $export($export.P, 'String', { padStart: function padStart(maxLength /*, fillString = ' ' */){ @@ -10563,7 +10619,7 @@ $export($export.P, 'String', { }); /***/ }), -/* 375 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10576,7 +10632,7 @@ __webpack_require__(50)('trimLeft', function($trim){ }, 'trimStart'); /***/ }), -/* 376 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10589,19 +10645,19 @@ __webpack_require__(50)('trimRight', function($trim){ }, 'trimEnd'); /***/ }), -/* 377 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(108)('asyncIterator'); /***/ }), -/* 378 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(108)('observable'); /***/ }), -/* 379 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { // https://github.com/ljharb/proposal-global @@ -10610,7 +10666,7 @@ var $export = __webpack_require__(0); $export($export.S, 'System', {global: __webpack_require__(2)}); /***/ }), -/* 380 */ +/* 381 */ /***/ (function(module, exports, __webpack_require__) { var $iterators = __webpack_require__(110) @@ -10637,7 +10693,7 @@ for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList' } /***/ }), -/* 381 */ +/* 382 */ /***/ (function(module, exports, __webpack_require__) { var $export = __webpack_require__(0) @@ -10648,14 +10704,14 @@ $export($export.G + $export.B, { }); /***/ }), -/* 382 */ +/* 383 */ /***/ (function(module, exports, __webpack_require__) { // ie9- setTimeout & setInterval additional parameters fix var global = __webpack_require__(2) , $export = __webpack_require__(0) , invoke = __webpack_require__(68) - , partial = __webpack_require__(209) + , partial = __webpack_require__(210) , navigator = global.navigator , MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check var wrap = function(set){ @@ -10673,36 +10729,35 @@ $export($export.G + $export.B + $export.F * MSIE, { }); /***/ }), -/* 383 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(332); -__webpack_require__(271); -__webpack_require__(273); +__webpack_require__(333); __webpack_require__(272); -__webpack_require__(275); -__webpack_require__(277); -__webpack_require__(282); -__webpack_require__(276); __webpack_require__(274); -__webpack_require__(284); -__webpack_require__(283); -__webpack_require__(279); -__webpack_require__(280); +__webpack_require__(273); +__webpack_require__(276); __webpack_require__(278); -__webpack_require__(270); -__webpack_require__(281); +__webpack_require__(283); +__webpack_require__(277); +__webpack_require__(275); __webpack_require__(285); +__webpack_require__(284); +__webpack_require__(280); +__webpack_require__(281); +__webpack_require__(279); +__webpack_require__(271); +__webpack_require__(282); __webpack_require__(286); -__webpack_require__(238); -__webpack_require__(240); -__webpack_require__(239); -__webpack_require__(288); __webpack_require__(287); -__webpack_require__(258); -__webpack_require__(268); -__webpack_require__(269); +__webpack_require__(239); +__webpack_require__(241); +__webpack_require__(240); +__webpack_require__(289); +__webpack_require__(288); __webpack_require__(259); +__webpack_require__(269); +__webpack_require__(270); __webpack_require__(260); __webpack_require__(261); __webpack_require__(262); @@ -10711,7 +10766,7 @@ __webpack_require__(264); __webpack_require__(265); __webpack_require__(266); __webpack_require__(267); -__webpack_require__(241); +__webpack_require__(268); __webpack_require__(242); __webpack_require__(243); __webpack_require__(244); @@ -10728,133 +10783,367 @@ __webpack_require__(254); __webpack_require__(255); __webpack_require__(256); __webpack_require__(257); -__webpack_require__(319); -__webpack_require__(324); -__webpack_require__(331); -__webpack_require__(322); -__webpack_require__(314); -__webpack_require__(315); +__webpack_require__(258); __webpack_require__(320); __webpack_require__(325); -__webpack_require__(327); -__webpack_require__(310); +__webpack_require__(332); +__webpack_require__(323); +__webpack_require__(315); +__webpack_require__(316); +__webpack_require__(321); +__webpack_require__(326); +__webpack_require__(328); __webpack_require__(311); __webpack_require__(312); __webpack_require__(313); -__webpack_require__(316); +__webpack_require__(314); __webpack_require__(317); __webpack_require__(318); -__webpack_require__(321); -__webpack_require__(323); -__webpack_require__(326); -__webpack_require__(328); +__webpack_require__(319); +__webpack_require__(322); +__webpack_require__(324); +__webpack_require__(327); __webpack_require__(329); __webpack_require__(330); -__webpack_require__(233); -__webpack_require__(235); +__webpack_require__(331); __webpack_require__(234); -__webpack_require__(237); __webpack_require__(236); -__webpack_require__(222); +__webpack_require__(235); +__webpack_require__(238); +__webpack_require__(237); +__webpack_require__(223); +__webpack_require__(221); +__webpack_require__(227); +__webpack_require__(224); +__webpack_require__(230); +__webpack_require__(232); __webpack_require__(220); __webpack_require__(226); -__webpack_require__(223); -__webpack_require__(229); -__webpack_require__(231); -__webpack_require__(219); -__webpack_require__(225); -__webpack_require__(216); -__webpack_require__(230); -__webpack_require__(214); -__webpack_require__(228); -__webpack_require__(227); -__webpack_require__(221); -__webpack_require__(224); -__webpack_require__(213); -__webpack_require__(215); -__webpack_require__(218); __webpack_require__(217); -__webpack_require__(232); +__webpack_require__(231); +__webpack_require__(215); +__webpack_require__(229); +__webpack_require__(228); +__webpack_require__(222); +__webpack_require__(225); +__webpack_require__(214); +__webpack_require__(216); +__webpack_require__(219); +__webpack_require__(218); +__webpack_require__(233); __webpack_require__(110); -__webpack_require__(304); -__webpack_require__(309); -__webpack_require__(149); __webpack_require__(305); +__webpack_require__(310); +__webpack_require__(150); __webpack_require__(306); __webpack_require__(307); __webpack_require__(308); -__webpack_require__(289); -__webpack_require__(148); -__webpack_require__(150); +__webpack_require__(309); +__webpack_require__(290); +__webpack_require__(149); __webpack_require__(151); -__webpack_require__(344); -__webpack_require__(333); +__webpack_require__(152); +__webpack_require__(345); __webpack_require__(334); -__webpack_require__(339); -__webpack_require__(342); -__webpack_require__(343); -__webpack_require__(337); +__webpack_require__(335); __webpack_require__(340); +__webpack_require__(343); +__webpack_require__(344); __webpack_require__(338); __webpack_require__(341); -__webpack_require__(335); +__webpack_require__(339); +__webpack_require__(342); __webpack_require__(336); -__webpack_require__(290); +__webpack_require__(337); __webpack_require__(291); __webpack_require__(292); __webpack_require__(293); __webpack_require__(294); -__webpack_require__(297); __webpack_require__(295); -__webpack_require__(296); __webpack_require__(298); +__webpack_require__(296); +__webpack_require__(297); __webpack_require__(299); __webpack_require__(300); __webpack_require__(301); -__webpack_require__(303); __webpack_require__(302); -__webpack_require__(345); -__webpack_require__(371); -__webpack_require__(374); -__webpack_require__(373); -__webpack_require__(375); -__webpack_require__(376); +__webpack_require__(304); +__webpack_require__(303); +__webpack_require__(346); __webpack_require__(372); +__webpack_require__(375); +__webpack_require__(374); +__webpack_require__(376); __webpack_require__(377); +__webpack_require__(373); __webpack_require__(378); -__webpack_require__(356); -__webpack_require__(359); -__webpack_require__(355); -__webpack_require__(353); -__webpack_require__(354); -__webpack_require__(357); -__webpack_require__(358); -__webpack_require__(348); -__webpack_require__(370); __webpack_require__(379); -__webpack_require__(347); +__webpack_require__(357); +__webpack_require__(360); +__webpack_require__(356); +__webpack_require__(354); +__webpack_require__(355); +__webpack_require__(358); +__webpack_require__(359); __webpack_require__(349); -__webpack_require__(351); +__webpack_require__(371); +__webpack_require__(380); +__webpack_require__(348); __webpack_require__(350); __webpack_require__(352); -__webpack_require__(361); +__webpack_require__(351); +__webpack_require__(353); __webpack_require__(362); -__webpack_require__(364); __webpack_require__(363); -__webpack_require__(366); __webpack_require__(365); +__webpack_require__(364); __webpack_require__(367); +__webpack_require__(366); __webpack_require__(368); __webpack_require__(369); -__webpack_require__(346); -__webpack_require__(360); +__webpack_require__(370); +__webpack_require__(347); +__webpack_require__(361); +__webpack_require__(383); __webpack_require__(382); __webpack_require__(381); -__webpack_require__(380); module.exports = __webpack_require__(26); /***/ }), -/* 384 */ +/* 385 */ +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_RESULT__;/* + * Date Format 1.2.3 + * (c) 2007-2009 Steven Levithan + * MIT license + * + * Includes enhancements by Scott Trenda + * and Kris Kowal + * + * Accepts a date, a mask, or a date and a mask. + * Returns a formatted version of the given date. + * The date defaults to the current date/time. + * The mask defaults to dateFormat.masks.default. + */ + +(function(global) { + 'use strict'; + + var dateFormat = (function() { + var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; + var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; + var timezoneClip = /[^-+\dA-Z]/g; + + // Regexes and supporting functions are cached through closure + return function (date, mask, utc, gmt) { + + // You can't provide utc if you skip other args (use the 'UTC:' mask prefix) + if (arguments.length === 1 && kindOf(date) === 'string' && !/\d/.test(date)) { + mask = date; + date = undefined; + } + + date = date || new Date; + + if(!(date instanceof Date)) { + date = new Date(date); + } + + if (isNaN(date)) { + throw TypeError('Invalid date'); + } + + mask = String(dateFormat.masks[mask] || mask || dateFormat.masks['default']); + + // Allow setting the utc/gmt argument via the mask + var maskSlice = mask.slice(0, 4); + if (maskSlice === 'UTC:' || maskSlice === 'GMT:') { + mask = mask.slice(4); + utc = true; + if (maskSlice === 'GMT:') { + gmt = true; + } + } + + var _ = utc ? 'getUTC' : 'get'; + var d = date[_ + 'Date'](); + var D = date[_ + 'Day'](); + var m = date[_ + 'Month'](); + var y = date[_ + 'FullYear'](); + var H = date[_ + 'Hours'](); + var M = date[_ + 'Minutes'](); + var s = date[_ + 'Seconds'](); + var L = date[_ + 'Milliseconds'](); + var o = utc ? 0 : date.getTimezoneOffset(); + var W = getWeek(date); + var N = getDayOfWeek(date); + var flags = { + d: d, + dd: pad(d), + ddd: dateFormat.i18n.dayNames[D], + dddd: dateFormat.i18n.dayNames[D + 7], + m: m + 1, + mm: pad(m + 1), + mmm: dateFormat.i18n.monthNames[m], + mmmm: dateFormat.i18n.monthNames[m + 12], + yy: String(y).slice(2), + yyyy: y, + h: H % 12 || 12, + hh: pad(H % 12 || 12), + H: H, + HH: pad(H), + M: M, + MM: pad(M), + s: s, + ss: pad(s), + l: pad(L, 3), + L: pad(Math.round(L / 10)), + t: H < 12 ? 'a' : 'p', + tt: H < 12 ? 'am' : 'pm', + T: H < 12 ? 'A' : 'P', + TT: H < 12 ? 'AM' : 'PM', + Z: gmt ? 'GMT' : utc ? 'UTC' : (String(date).match(timezone) || ['']).pop().replace(timezoneClip, ''), + o: (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), + S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], + W: W, + N: N + }; + + return mask.replace(token, function (match) { + if (match in flags) { + return flags[match]; + } + return match.slice(1, match.length - 1); + }); + }; + })(); + + dateFormat.masks = { + 'default': 'ddd mmm dd yyyy HH:MM:ss', + 'shortDate': 'm/d/yy', + 'mediumDate': 'mmm d, yyyy', + 'longDate': 'mmmm d, yyyy', + 'fullDate': 'dddd, mmmm d, yyyy', + 'shortTime': 'h:MM TT', + 'mediumTime': 'h:MM:ss TT', + 'longTime': 'h:MM:ss TT Z', + 'isoDate': 'yyyy-mm-dd', + 'isoTime': 'HH:MM:ss', + 'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso', + 'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'', + 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z' + }; + + // Internationalization strings + dateFormat.i18n = { + dayNames: [ + 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', + 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' + ], + monthNames: [ + 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', + 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' + ] + }; + +function pad(val, len) { + val = String(val); + len = len || 2; + while (val.length < len) { + val = '0' + val; + } + return val; +} + +/** + * Get the ISO 8601 week number + * Based on comments from + * http://techblog.procurios.nl/k/n618/news/view/33796/14863/Calculate-ISO-8601-week-and-year-in-javascript.html + * + * @param {Object} `date` + * @return {Number} + */ +function getWeek(date) { + // Remove time components of date + var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); + + // Change date to Thursday same week + targetThursday.setDate(targetThursday.getDate() - ((targetThursday.getDay() + 6) % 7) + 3); + + // Take January 4th as it is always in week 1 (see ISO 8601) + var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); + + // Change date to Thursday same week + firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3); + + // Check if daylight-saving-time-switch occured and correct for it + var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); + targetThursday.setHours(targetThursday.getHours() - ds); + + // Number of weeks between target Thursday and first Thursday + var weekDiff = (targetThursday - firstThursday) / (86400000*7); + return 1 + Math.floor(weekDiff); +} + +/** + * Get ISO-8601 numeric representation of the day of the week + * 1 (for Monday) through 7 (for Sunday) + * + * @param {Object} `date` + * @return {Number} + */ +function getDayOfWeek(date) { + var dow = date.getDay(); + if(dow === 0) { + dow = 7; + } + return dow; +} + +/** + * kind-of shortcut + * @param {*} val + * @return {String} + */ +function kindOf(val) { + if (val === null) { + return 'null'; + } + + if (val === undefined) { + return 'undefined'; + } + + if (typeof val !== 'object') { + return typeof val; + } + + if (Array.isArray(val)) { + return 'array'; + } + + return {}.toString.call(val) + .slice(8, -1).toLowerCase(); +}; + + + + if (true) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = function () { + return dateFormat; + }.call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if (typeof exports === 'object') { + module.exports = dateFormat; + } else { + global.dateFormat = dateFormat; + } +})(this); + + +/***/ }), +/* 386 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10872,7 +11161,7 @@ module.exports = function (str) { /***/ }), -/* 385 */ +/* 387 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10883,7 +11172,7 @@ module.exports = re.test.bind(re); /***/ }), -/* 386 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_RESULT__;/** @@ -27972,10 +28261,10 @@ module.exports = re.test.bind(re); } }.call(this)); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(153)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(154)(module))) /***/ }), -/* 387 */ +/* 389 */ /***/ (function(module, exports) { module.exports = function (args, opts) { @@ -28168,12 +28457,12 @@ function longest (xs) { /***/ }), -/* 388 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { var path = __webpack_require__(75); -var minimist = __webpack_require__(387); -var wordwrap = __webpack_require__(389); +var minimist = __webpack_require__(389); +var wordwrap = __webpack_require__(391); /* Hack an instance of Argv with process.argv into Argv so people can do @@ -28517,7 +28806,7 @@ function rebase (base, dir) { /***/ }), -/* 389 */ +/* 391 */ /***/ (function(module, exports) { var wordwrap = module.exports = function (start, stop, params) { @@ -28599,7 +28888,7 @@ wordwrap.hard = function (start, stop) { /***/ }), -/* 390 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { // This method of obtaining a reference to the global object needs to be @@ -28620,7 +28909,7 @@ var oldRuntime = hadRuntime && g.regeneratorRuntime; // Force reevalutation of runtime.js. g.regeneratorRuntime = undefined; -module.exports = __webpack_require__(152); +module.exports = __webpack_require__(153); if (hadRuntime) { // Restore the original runtime. @@ -28636,7 +28925,7 @@ if (hadRuntime) { /***/ }), -/* 391 */ +/* 393 */ /***/ (function(module, exports) { exports = module.exports = SemVer; @@ -29845,7 +30134,7 @@ function prerelease(version, loose) { /***/ }), -/* 392 */ +/* 394 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -29858,7 +30147,7 @@ module.exports = function (str) { /***/ }), -/* 393 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -29915,11 +30204,11 @@ module.exports = (function () { /***/ }), -/* 394 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(157); -module.exports = __webpack_require__(156); +__webpack_require__(158); +module.exports = __webpack_require__(157); /***/ }) diff --git a/package.json b/package.json index d131854..ec2fd23 100644 --- a/package.json +++ b/package.json @@ -1,37 +1,38 @@ { - "name": "webpack-auto-inject-version", - "version": "0.5.12", - "repository": "radswiat/webpack-auto-inject-version", - "description": "Webpack plugin for auto inject version from package.json", - "main": "dist/WebpackAutoInjectVersion.js", - "scripts": { - "start": "babel-node tools/compile.js" - }, - "author": "Radoslaw Swiat", - "license": "ISC", - "devDependencies": { - "chalk": "^1.1.3", - "lodash": "^4.17.4", - "optimist": "^0.6.1", - "semver": "^5.3.0", - "babel-cli": "^6.10.1", - "babel-core": "^6.24.1", - "babel-eslint": "^6.0.0", - "babel-loader": "^6.2.4", - "babel-plugin-module-resolver": "^2.4.0", - "babel-plugin-transform-runtime": "^6.12.0", - "babel-preset-es2015": "^6.6.0", - "babel-preset-node5": "^11.0.1", - "babel-preset-react": "^6.5.0", - "babel-preset-stage-2": "^6.22.0", - "gutil": "^1.6.4", - "webpack": "^2.3.3", - "webpack-node-externals": "^1.5.4", - "eslint": "^2.7.0", - "eslint-config-airbnb": "^6.2.0", - "eslint-loader": "^1.5.0", - "eslint-plugin-babel": "^3.2.0", - "eslint-plugin-jsx-control-statements": "^2.1.1", - "eslint-plugin-react": "^4.2.3" - } + "name": "webpack-auto-inject-version", + "version": "0.5.12", + "repository": "radswiat/webpack-auto-inject-version", + "description": "Webpack plugin for auto inject version from package.json", + "main": "dist/WebpackAutoInjectVersion.js", + "scripts": { + "start": "babel-node tools/compile.js" + }, + "author": "Radoslaw Swiat", + "license": "ISC", + "devDependencies": { + "babel-cli": "^6.10.1", + "babel-core": "^6.24.1", + "babel-eslint": "^6.0.0", + "babel-loader": "^6.2.4", + "babel-plugin-module-resolver": "^2.4.0", + "babel-plugin-transform-runtime": "^6.12.0", + "babel-preset-es2015": "^6.6.0", + "babel-preset-node5": "^11.0.1", + "babel-preset-react": "^6.5.0", + "babel-preset-stage-2": "^6.22.0", + "chalk": "^1.1.3", + "dateformat": "^2.0.0", + "eslint": "^2.7.0", + "eslint-config-airbnb": "^6.2.0", + "eslint-loader": "^1.5.0", + "eslint-plugin-babel": "^3.2.0", + "eslint-plugin-jsx-control-statements": "^2.1.1", + "eslint-plugin-react": "^4.2.3", + "gutil": "^1.6.4", + "lodash": "^4.17.4", + "optimist": "^0.6.1", + "semver": "^5.3.0", + "webpack": "^2.3.3", + "webpack-node-externals": "^1.5.4" + } } diff --git a/src/components/auto-increase-version.js b/src/components/auto-increase-version/auto-increase-version.js similarity index 100% rename from src/components/auto-increase-version.js rename to src/components/auto-increase-version/auto-increase-version.js diff --git a/src/components/inject-as-comment.js b/src/components/inject-as-comment/inject-as-comment.js similarity index 60% rename from src/components/inject-as-comment.js rename to src/components/inject-as-comment/inject-as-comment.js index 870e398..1137fb5 100644 --- a/src/components/inject-as-comment.js +++ b/src/components/inject-as-comment/inject-as-comment.js @@ -1,6 +1,8 @@ import path from 'path'; import config from 'config'; import log from 'core/log'; +import tags from './tags'; +import chalk from 'chalk'; const endOfLine = require('os').EOL; @@ -29,12 +31,15 @@ export default class InjectAsComment { let asset = compilation.assets[basename]; switch (ext) { case '.js' : + console.log(chalk.blue.bold('js')); this.injectIntoJs(asset); break; case '.html' : + console.log(chalk.blue.bold('html')); this.injectIntoHtml(asset); break; case '.css' : + console.log(chalk.blue.bold('css')); this.injectIntoCss(asset); break; default: @@ -47,21 +52,34 @@ export default class InjectAsComment { return new Promise((resolve) => { resolve(); }); } + parseTags(baseOpen, baseClose) { + let tagPattern = this.context.config.componentsOptions.InjectAsComment.tag; + tagPattern = tagPattern.replace(/(\{([a-zA-Z]+)\})/g, (tag) => { + let tagName = tag.replace(/(\{|\})/g, ''); + if (typeof tags[tagName] === 'function') { + return tags[tagName](this.context); + } + log.error(`unsupported tag in componentsOptions.InjectAsComment.tag [${tagName}]`); + return tag; + }); + return `${baseOpen} ${tagPattern} ${baseClose}`; + } + injectIntoCss(asset) { - let modAsset = `/** [${config.SHORT}] Build version: ${this.context.version} **/ `; + let modAsset = this.parseTags(`/** [${config.SHORT}] `, ' **/ '); modAsset += `${endOfLine} ${asset.source()} `; asset.source = () => modAsset; } injectIntoHtml(asset) { - let modAsset = ` `; + let modAsset = this.parseTags(` '); modAsset += `${endOfLine} ${asset.source()} `; asset.source = () => modAsset; } injectIntoJs(asset) { - let modAsset = `// [${config.SHORT}] Build version: ${this.context.version} `; - modAsset = `${endOfLine} ${asset.source()} `; + let modAsset = this.parseTags(`// [${config.SHORT}] `, ' '); + modAsset += `${endOfLine} ${asset.source()} `; asset.source = () => modAsset; } } diff --git a/src/components/inject-as-comment/tags.js b/src/components/inject-as-comment/tags.js new file mode 100644 index 0000000..a5c5a07 --- /dev/null +++ b/src/components/inject-as-comment/tags.js @@ -0,0 +1,10 @@ +import dateFormat from 'dateformat'; + +export default { + version: (context) => { + return context.version; + }, + date: () => { + return dateFormat(new Date(), 'dddd, mmmm dS, yyyy, h:MM:ss TT'); + } +}; diff --git a/src/components/inject-by-tag.js b/src/components/inject-by-tag/inject-by-tag.js similarity index 100% rename from src/components/inject-by-tag.js rename to src/components/inject-by-tag/inject-by-tag.js diff --git a/src/config.js b/src/config.js index 8da763a..01f5ee8 100644 --- a/src/config.js +++ b/src/config.js @@ -6,6 +6,9 @@ export default { InjectByTag: true }, componentsOptions: { + InjectAsComment: { + tag: 'Build version: {version} - {date}' + }, InjectByTag: { fileRegex: /\.+/ } diff --git a/src/main.js b/src/main.js index a9fee3f..6addc6b 100644 --- a/src/main.js +++ b/src/main.js @@ -6,9 +6,9 @@ import log from 'core/log'; import { merge, transform } from 'lodash'; // import sub components -import AutoIncreaseVersion from 'components/auto-increase-version'; -import InjectAsComment from 'components/inject-as-comment'; -import InjectByTag from 'components/inject-by-tag'; +import AutoIncreaseVersion from 'components/auto-increase-version/auto-increase-version'; +import InjectAsComment from 'components/inject-as-comment/inject-as-comment'; +import InjectByTag from 'components/inject-by-tag/inject-by-tag'; export default class WebpackAutoInject {