@lumx/core 3.15.1 → 3.15.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/constants/design-tokens.js +2293 -5484
- package/js/constants/design-tokens.min.js +1 -2
- package/js/constants/index.js +30 -199
- package/js/constants/index.min.js +1 -2
- package/js/constants/keycodes.js +21 -121
- package/js/constants/keycodes.min.js +1 -2
- package/js/custom-colors.js +21 -1088
- package/js/custom-colors.min.js +1 -2
- package/js/date-picker.js +32 -2835
- package/js/date-picker.min.js +1 -2
- package/js/utils.js +229 -4290
- package/js/utils.min.js +1 -2
- package/lumx.css +13051 -1
- package/lumx.min.css +1 -1
- package/package.json +10 -34
- package/js/constants/design-tokens.min.js.map +0 -1
- package/js/constants/index.min.js.map +0 -1
- package/js/constants/keycodes.min.js.map +0 -1
- package/js/custom-colors.min.js.map +0 -1
- package/js/date-picker.min.js.map +0 -1
- package/js/utils.min.js.map +0 -1
package/js/custom-colors.js
CHANGED
|
@@ -1,1031 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
/******/ // The module cache
|
|
3
|
-
/******/ var installedModules = {};
|
|
4
|
-
/******/
|
|
5
|
-
/******/ // The require function
|
|
6
|
-
/******/ function __webpack_require__(moduleId) {
|
|
7
|
-
/******/
|
|
8
|
-
/******/ // Check if module is in cache
|
|
9
|
-
/******/ if(installedModules[moduleId]) {
|
|
10
|
-
/******/ return installedModules[moduleId].exports;
|
|
11
|
-
/******/ }
|
|
12
|
-
/******/ // Create a new module (and put it into the cache)
|
|
13
|
-
/******/ var module = installedModules[moduleId] = {
|
|
14
|
-
/******/ i: moduleId,
|
|
15
|
-
/******/ l: false,
|
|
16
|
-
/******/ exports: {}
|
|
17
|
-
/******/ };
|
|
18
|
-
/******/
|
|
19
|
-
/******/ // Execute the module function
|
|
20
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
21
|
-
/******/
|
|
22
|
-
/******/ // Flag the module as loaded
|
|
23
|
-
/******/ module.l = true;
|
|
24
|
-
/******/
|
|
25
|
-
/******/ // Return the exports of the module
|
|
26
|
-
/******/ return module.exports;
|
|
27
|
-
/******/ }
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
31
|
-
/******/ __webpack_require__.m = modules;
|
|
32
|
-
/******/
|
|
33
|
-
/******/ // expose the module cache
|
|
34
|
-
/******/ __webpack_require__.c = installedModules;
|
|
35
|
-
/******/
|
|
36
|
-
/******/ // define getter function for harmony exports
|
|
37
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
38
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
39
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
40
|
-
/******/ }
|
|
41
|
-
/******/ };
|
|
42
|
-
/******/
|
|
43
|
-
/******/ // define __esModule on exports
|
|
44
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
45
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
46
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
47
|
-
/******/ }
|
|
48
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
49
|
-
/******/ };
|
|
50
|
-
/******/
|
|
51
|
-
/******/ // create a fake namespace object
|
|
52
|
-
/******/ // mode & 1: value is a module id, require it
|
|
53
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
54
|
-
/******/ // mode & 4: return value when already ns object
|
|
55
|
-
/******/ // mode & 8|1: behave like require
|
|
56
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
57
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
58
|
-
/******/ if(mode & 8) return value;
|
|
59
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
60
|
-
/******/ var ns = Object.create(null);
|
|
61
|
-
/******/ __webpack_require__.r(ns);
|
|
62
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
63
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
64
|
-
/******/ return ns;
|
|
65
|
-
/******/ };
|
|
66
|
-
/******/
|
|
67
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
68
|
-
/******/ __webpack_require__.n = function(module) {
|
|
69
|
-
/******/ var getter = module && module.__esModule ?
|
|
70
|
-
/******/ function getDefault() { return module['default']; } :
|
|
71
|
-
/******/ function getModuleExports() { return module; };
|
|
72
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
73
|
-
/******/ return getter;
|
|
74
|
-
/******/ };
|
|
75
|
-
/******/
|
|
76
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
77
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
78
|
-
/******/
|
|
79
|
-
/******/ // __webpack_public_path__
|
|
80
|
-
/******/ __webpack_require__.p = "";
|
|
81
|
-
/******/
|
|
82
|
-
/******/
|
|
83
|
-
/******/ // Load entry module and return exports
|
|
84
|
-
/******/ return __webpack_require__(__webpack_require__.s = 110);
|
|
85
|
-
/******/ })
|
|
86
|
-
/************************************************************************/
|
|
87
|
-
/******/ ([
|
|
88
|
-
/* 0 */
|
|
89
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1
|
+
'use strict';
|
|
90
2
|
|
|
91
|
-
|
|
92
|
-
return it && it.Math == Math && it;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
96
|
-
module.exports =
|
|
97
|
-
// eslint-disable-next-line no-undef
|
|
98
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
99
|
-
check(typeof window == 'object' && window) ||
|
|
100
|
-
check(typeof self == 'object' && self) ||
|
|
101
|
-
check(typeof global == 'object' && global) ||
|
|
102
|
-
// eslint-disable-next-line no-new-func
|
|
103
|
-
Function('return this')();
|
|
104
|
-
|
|
105
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(33)))
|
|
106
|
-
|
|
107
|
-
/***/ }),
|
|
108
|
-
/* 1 */
|
|
109
|
-
/***/ (function(module, exports) {
|
|
110
|
-
|
|
111
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
112
|
-
|
|
113
|
-
module.exports = function (it, key) {
|
|
114
|
-
return hasOwnProperty.call(it, key);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
/***/ }),
|
|
119
|
-
/* 2 */
|
|
120
|
-
/***/ (function(module, exports) {
|
|
121
|
-
|
|
122
|
-
module.exports = function (exec) {
|
|
123
|
-
try {
|
|
124
|
-
return !!exec();
|
|
125
|
-
} catch (error) {
|
|
126
|
-
return true;
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/***/ }),
|
|
132
|
-
/* 3 */,
|
|
133
|
-
/* 4 */
|
|
134
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
135
|
-
|
|
136
|
-
var fails = __webpack_require__(2);
|
|
137
|
-
|
|
138
|
-
// Thank's IE8 for his funny defineProperty
|
|
139
|
-
module.exports = !fails(function () {
|
|
140
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
/***/ }),
|
|
145
|
-
/* 5 */
|
|
146
|
-
/***/ (function(module, exports) {
|
|
147
|
-
|
|
148
|
-
module.exports = function (it) {
|
|
149
|
-
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
/***/ }),
|
|
154
|
-
/* 6 */
|
|
155
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
156
|
-
|
|
157
|
-
var DESCRIPTORS = __webpack_require__(4);
|
|
158
|
-
var definePropertyModule = __webpack_require__(8);
|
|
159
|
-
var createPropertyDescriptor = __webpack_require__(9);
|
|
160
|
-
|
|
161
|
-
module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
162
|
-
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
|
163
|
-
} : function (object, key, value) {
|
|
164
|
-
object[key] = value;
|
|
165
|
-
return object;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
/***/ }),
|
|
170
|
-
/* 7 */
|
|
171
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
172
|
-
|
|
173
|
-
var isObject = __webpack_require__(5);
|
|
174
|
-
|
|
175
|
-
module.exports = function (it) {
|
|
176
|
-
if (!isObject(it)) {
|
|
177
|
-
throw TypeError(String(it) + ' is not an object');
|
|
178
|
-
} return it;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
/***/ }),
|
|
183
|
-
/* 8 */
|
|
184
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
185
|
-
|
|
186
|
-
var DESCRIPTORS = __webpack_require__(4);
|
|
187
|
-
var IE8_DOM_DEFINE = __webpack_require__(27);
|
|
188
|
-
var anObject = __webpack_require__(7);
|
|
189
|
-
var toPrimitive = __webpack_require__(15);
|
|
190
|
-
|
|
191
|
-
var nativeDefineProperty = Object.defineProperty;
|
|
192
|
-
|
|
193
|
-
// `Object.defineProperty` method
|
|
194
|
-
// https://tc39.github.io/ecma262/#sec-object.defineproperty
|
|
195
|
-
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
|
|
196
|
-
anObject(O);
|
|
197
|
-
P = toPrimitive(P, true);
|
|
198
|
-
anObject(Attributes);
|
|
199
|
-
if (IE8_DOM_DEFINE) try {
|
|
200
|
-
return nativeDefineProperty(O, P, Attributes);
|
|
201
|
-
} catch (error) { /* empty */ }
|
|
202
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
|
203
|
-
if ('value' in Attributes) O[P] = Attributes.value;
|
|
204
|
-
return O;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
/***/ }),
|
|
209
|
-
/* 9 */
|
|
210
|
-
/***/ (function(module, exports) {
|
|
211
|
-
|
|
212
|
-
module.exports = function (bitmap, value) {
|
|
213
|
-
return {
|
|
214
|
-
enumerable: !(bitmap & 1),
|
|
215
|
-
configurable: !(bitmap & 2),
|
|
216
|
-
writable: !(bitmap & 4),
|
|
217
|
-
value: value
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
/***/ }),
|
|
223
|
-
/* 10 */
|
|
224
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
225
|
-
|
|
226
|
-
// toObject with fallback for non-array-like ES3 strings
|
|
227
|
-
var IndexedObject = __webpack_require__(34);
|
|
228
|
-
var requireObjectCoercible = __webpack_require__(14);
|
|
229
|
-
|
|
230
|
-
module.exports = function (it) {
|
|
231
|
-
return IndexedObject(requireObjectCoercible(it));
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
/***/ }),
|
|
236
|
-
/* 11 */
|
|
237
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
238
|
-
|
|
239
|
-
var global = __webpack_require__(0);
|
|
240
|
-
var createNonEnumerableProperty = __webpack_require__(6);
|
|
241
|
-
|
|
242
|
-
module.exports = function (key, value) {
|
|
243
|
-
try {
|
|
244
|
-
createNonEnumerableProperty(global, key, value);
|
|
245
|
-
} catch (error) {
|
|
246
|
-
global[key] = value;
|
|
247
|
-
} return value;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
/***/ }),
|
|
252
|
-
/* 12 */
|
|
253
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
254
|
-
|
|
255
|
-
var global = __webpack_require__(0);
|
|
256
|
-
var getOwnPropertyDescriptor = __webpack_require__(23).f;
|
|
257
|
-
var createNonEnumerableProperty = __webpack_require__(6);
|
|
258
|
-
var redefine = __webpack_require__(16);
|
|
259
|
-
var setGlobal = __webpack_require__(11);
|
|
260
|
-
var copyConstructorProperties = __webpack_require__(46);
|
|
261
|
-
var isForced = __webpack_require__(53);
|
|
262
|
-
|
|
263
|
-
/*
|
|
264
|
-
options.target - name of the target object
|
|
265
|
-
options.global - target is the global object
|
|
266
|
-
options.stat - export as static methods of target
|
|
267
|
-
options.proto - export as prototype methods of target
|
|
268
|
-
options.real - real prototype method for the `pure` version
|
|
269
|
-
options.forced - export even if the native feature is available
|
|
270
|
-
options.bind - bind methods to the target, required for the `pure` version
|
|
271
|
-
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
272
|
-
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
273
|
-
options.sham - add a flag to not completely full polyfills
|
|
274
|
-
options.enumerable - export as enumerable property
|
|
275
|
-
options.noTargetGet - prevent calling a getter on target
|
|
276
|
-
*/
|
|
277
|
-
module.exports = function (options, source) {
|
|
278
|
-
var TARGET = options.target;
|
|
279
|
-
var GLOBAL = options.global;
|
|
280
|
-
var STATIC = options.stat;
|
|
281
|
-
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
282
|
-
if (GLOBAL) {
|
|
283
|
-
target = global;
|
|
284
|
-
} else if (STATIC) {
|
|
285
|
-
target = global[TARGET] || setGlobal(TARGET, {});
|
|
286
|
-
} else {
|
|
287
|
-
target = (global[TARGET] || {}).prototype;
|
|
288
|
-
}
|
|
289
|
-
if (target) for (key in source) {
|
|
290
|
-
sourceProperty = source[key];
|
|
291
|
-
if (options.noTargetGet) {
|
|
292
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
293
|
-
targetProperty = descriptor && descriptor.value;
|
|
294
|
-
} else targetProperty = target[key];
|
|
295
|
-
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
296
|
-
// contained in target
|
|
297
|
-
if (!FORCED && targetProperty !== undefined) {
|
|
298
|
-
if (typeof sourceProperty === typeof targetProperty) continue;
|
|
299
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
300
|
-
}
|
|
301
|
-
// add a flag to not completely full polyfills
|
|
302
|
-
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
303
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
304
|
-
}
|
|
305
|
-
// extend global
|
|
306
|
-
redefine(target, key, sourceProperty, options);
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/***/ }),
|
|
312
|
-
/* 13 */
|
|
313
|
-
/***/ (function(module, exports) {
|
|
314
|
-
|
|
315
|
-
var toString = {}.toString;
|
|
316
|
-
|
|
317
|
-
module.exports = function (it) {
|
|
318
|
-
return toString.call(it).slice(8, -1);
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
/***/ }),
|
|
323
|
-
/* 14 */
|
|
324
|
-
/***/ (function(module, exports) {
|
|
325
|
-
|
|
326
|
-
// `RequireObjectCoercible` abstract operation
|
|
327
|
-
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
|
|
328
|
-
module.exports = function (it) {
|
|
329
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
|
330
|
-
return it;
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
/***/ }),
|
|
335
|
-
/* 15 */
|
|
336
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
337
|
-
|
|
338
|
-
var isObject = __webpack_require__(5);
|
|
339
|
-
|
|
340
|
-
// `ToPrimitive` abstract operation
|
|
341
|
-
// https://tc39.github.io/ecma262/#sec-toprimitive
|
|
342
|
-
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
|
343
|
-
// and the second argument - flag - preferred type is a string
|
|
344
|
-
module.exports = function (input, PREFERRED_STRING) {
|
|
345
|
-
if (!isObject(input)) return input;
|
|
346
|
-
var fn, val;
|
|
347
|
-
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
|
348
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
|
349
|
-
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
|
350
|
-
throw TypeError("Can't convert object to primitive value");
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
/***/ }),
|
|
355
|
-
/* 16 */
|
|
356
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
357
|
-
|
|
358
|
-
var global = __webpack_require__(0);
|
|
359
|
-
var createNonEnumerableProperty = __webpack_require__(6);
|
|
360
|
-
var has = __webpack_require__(1);
|
|
361
|
-
var setGlobal = __webpack_require__(11);
|
|
362
|
-
var inspectSource = __webpack_require__(28);
|
|
363
|
-
var InternalStateModule = __webpack_require__(36);
|
|
364
|
-
|
|
365
|
-
var getInternalState = InternalStateModule.get;
|
|
366
|
-
var enforceInternalState = InternalStateModule.enforce;
|
|
367
|
-
var TEMPLATE = String(String).split('String');
|
|
368
|
-
|
|
369
|
-
(module.exports = function (O, key, value, options) {
|
|
370
|
-
var unsafe = options ? !!options.unsafe : false;
|
|
371
|
-
var simple = options ? !!options.enumerable : false;
|
|
372
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
373
|
-
if (typeof value == 'function') {
|
|
374
|
-
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
|
|
375
|
-
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
|
376
|
-
}
|
|
377
|
-
if (O === global) {
|
|
378
|
-
if (simple) O[key] = value;
|
|
379
|
-
else setGlobal(key, value);
|
|
380
|
-
return;
|
|
381
|
-
} else if (!unsafe) {
|
|
382
|
-
delete O[key];
|
|
383
|
-
} else if (!noTargetGet && O[key]) {
|
|
384
|
-
simple = true;
|
|
385
|
-
}
|
|
386
|
-
if (simple) O[key] = value;
|
|
387
|
-
else createNonEnumerableProperty(O, key, value);
|
|
388
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
389
|
-
})(Function.prototype, 'toString', function toString() {
|
|
390
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/***/ }),
|
|
395
|
-
/* 17 */
|
|
396
|
-
/***/ (function(module, exports) {
|
|
397
|
-
|
|
398
|
-
module.exports = false;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
/***/ }),
|
|
402
|
-
/* 18 */
|
|
403
|
-
/***/ (function(module, exports) {
|
|
404
|
-
|
|
405
|
-
module.exports = {};
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
/***/ }),
|
|
409
|
-
/* 19 */
|
|
410
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
411
|
-
|
|
412
|
-
var toInteger = __webpack_require__(20);
|
|
413
|
-
|
|
414
|
-
var min = Math.min;
|
|
415
|
-
|
|
416
|
-
// `ToLength` abstract operation
|
|
417
|
-
// https://tc39.github.io/ecma262/#sec-tolength
|
|
418
|
-
module.exports = function (argument) {
|
|
419
|
-
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
/***/ }),
|
|
424
|
-
/* 20 */
|
|
425
|
-
/***/ (function(module, exports) {
|
|
426
|
-
|
|
427
|
-
var ceil = Math.ceil;
|
|
428
|
-
var floor = Math.floor;
|
|
429
|
-
|
|
430
|
-
// `ToInteger` abstract operation
|
|
431
|
-
// https://tc39.github.io/ecma262/#sec-tointeger
|
|
432
|
-
module.exports = function (argument) {
|
|
433
|
-
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
/***/ }),
|
|
438
|
-
/* 21 */
|
|
439
|
-
/***/ (function(module, exports) {
|
|
440
|
-
|
|
441
|
-
// IE8- don't enum bug keys
|
|
442
|
-
module.exports = [
|
|
443
|
-
'constructor',
|
|
444
|
-
'hasOwnProperty',
|
|
445
|
-
'isPrototypeOf',
|
|
446
|
-
'propertyIsEnumerable',
|
|
447
|
-
'toLocaleString',
|
|
448
|
-
'toString',
|
|
449
|
-
'valueOf'
|
|
450
|
-
];
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
/***/ }),
|
|
454
|
-
/* 22 */,
|
|
455
|
-
/* 23 */
|
|
456
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
457
|
-
|
|
458
|
-
var DESCRIPTORS = __webpack_require__(4);
|
|
459
|
-
var propertyIsEnumerableModule = __webpack_require__(41);
|
|
460
|
-
var createPropertyDescriptor = __webpack_require__(9);
|
|
461
|
-
var toIndexedObject = __webpack_require__(10);
|
|
462
|
-
var toPrimitive = __webpack_require__(15);
|
|
463
|
-
var has = __webpack_require__(1);
|
|
464
|
-
var IE8_DOM_DEFINE = __webpack_require__(27);
|
|
465
|
-
|
|
466
|
-
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
467
|
-
|
|
468
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
469
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
|
|
470
|
-
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
471
|
-
O = toIndexedObject(O);
|
|
472
|
-
P = toPrimitive(P, true);
|
|
473
|
-
if (IE8_DOM_DEFINE) try {
|
|
474
|
-
return nativeGetOwnPropertyDescriptor(O, P);
|
|
475
|
-
} catch (error) { /* empty */ }
|
|
476
|
-
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
/***/ }),
|
|
481
|
-
/* 24 */
|
|
482
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
483
|
-
|
|
484
|
-
var shared = __webpack_require__(37);
|
|
485
|
-
var uid = __webpack_require__(38);
|
|
486
|
-
|
|
487
|
-
var keys = shared('keys');
|
|
488
|
-
|
|
489
|
-
module.exports = function (key) {
|
|
490
|
-
return keys[key] || (keys[key] = uid(key));
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
/***/ }),
|
|
495
|
-
/* 25 */,
|
|
496
|
-
/* 26 */,
|
|
497
|
-
/* 27 */
|
|
498
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
499
|
-
|
|
500
|
-
var DESCRIPTORS = __webpack_require__(4);
|
|
501
|
-
var fails = __webpack_require__(2);
|
|
502
|
-
var createElement = __webpack_require__(35);
|
|
503
|
-
|
|
504
|
-
// Thank's IE8 for his funny defineProperty
|
|
505
|
-
module.exports = !DESCRIPTORS && !fails(function () {
|
|
506
|
-
return Object.defineProperty(createElement('div'), 'a', {
|
|
507
|
-
get: function () { return 7; }
|
|
508
|
-
}).a != 7;
|
|
509
|
-
});
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
/***/ }),
|
|
513
|
-
/* 28 */
|
|
514
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
515
|
-
|
|
516
|
-
var store = __webpack_require__(29);
|
|
517
|
-
|
|
518
|
-
var functionToString = Function.toString;
|
|
519
|
-
|
|
520
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
|
521
|
-
if (typeof store.inspectSource != 'function') {
|
|
522
|
-
store.inspectSource = function (it) {
|
|
523
|
-
return functionToString.call(it);
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
module.exports = store.inspectSource;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
/***/ }),
|
|
531
|
-
/* 29 */
|
|
532
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
533
|
-
|
|
534
|
-
var global = __webpack_require__(0);
|
|
535
|
-
var setGlobal = __webpack_require__(11);
|
|
536
|
-
|
|
537
|
-
var SHARED = '__core-js_shared__';
|
|
538
|
-
var store = global[SHARED] || setGlobal(SHARED, {});
|
|
539
|
-
|
|
540
|
-
module.exports = store;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
/***/ }),
|
|
544
|
-
/* 30 */
|
|
545
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
546
|
-
|
|
547
|
-
var path = __webpack_require__(48);
|
|
548
|
-
var global = __webpack_require__(0);
|
|
549
|
-
|
|
550
|
-
var aFunction = function (variable) {
|
|
551
|
-
return typeof variable == 'function' ? variable : undefined;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
module.exports = function (namespace, method) {
|
|
555
|
-
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
|
|
556
|
-
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
/***/ }),
|
|
561
|
-
/* 31 */
|
|
562
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
563
|
-
|
|
564
|
-
var has = __webpack_require__(1);
|
|
565
|
-
var toIndexedObject = __webpack_require__(10);
|
|
566
|
-
var indexOf = __webpack_require__(50).indexOf;
|
|
567
|
-
var hiddenKeys = __webpack_require__(18);
|
|
568
|
-
|
|
569
|
-
module.exports = function (object, names) {
|
|
570
|
-
var O = toIndexedObject(object);
|
|
571
|
-
var i = 0;
|
|
572
|
-
var result = [];
|
|
573
|
-
var key;
|
|
574
|
-
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
|
575
|
-
// Don't enum bug & hidden keys
|
|
576
|
-
while (names.length > i) if (has(O, key = names[i++])) {
|
|
577
|
-
~indexOf(result, key) || result.push(key);
|
|
578
|
-
}
|
|
579
|
-
return result;
|
|
580
|
-
};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
/***/ }),
|
|
584
|
-
/* 32 */,
|
|
585
|
-
/* 33 */
|
|
586
|
-
/***/ (function(module, exports) {
|
|
587
|
-
|
|
588
|
-
var g;
|
|
589
|
-
|
|
590
|
-
// This works in non-strict mode
|
|
591
|
-
g = (function() {
|
|
592
|
-
return this;
|
|
593
|
-
})();
|
|
594
|
-
|
|
595
|
-
try {
|
|
596
|
-
// This works if eval is allowed (see CSP)
|
|
597
|
-
g = g || new Function("return this")();
|
|
598
|
-
} catch (e) {
|
|
599
|
-
// This works if the window reference is available
|
|
600
|
-
if (typeof window === "object") g = window;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
// g can still be undefined, but nothing to do about it...
|
|
604
|
-
// We return undefined, instead of nothing here, so it's
|
|
605
|
-
// easier to handle this case. if(!global) { ...}
|
|
606
|
-
|
|
607
|
-
module.exports = g;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
/***/ }),
|
|
611
|
-
/* 34 */
|
|
612
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
613
|
-
|
|
614
|
-
var fails = __webpack_require__(2);
|
|
615
|
-
var classof = __webpack_require__(13);
|
|
616
|
-
|
|
617
|
-
var split = ''.split;
|
|
618
|
-
|
|
619
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
620
|
-
module.exports = fails(function () {
|
|
621
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
622
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
623
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
624
|
-
}) ? function (it) {
|
|
625
|
-
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
|
626
|
-
} : Object;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
/***/ }),
|
|
630
|
-
/* 35 */
|
|
631
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
632
|
-
|
|
633
|
-
var global = __webpack_require__(0);
|
|
634
|
-
var isObject = __webpack_require__(5);
|
|
635
|
-
|
|
636
|
-
var document = global.document;
|
|
637
|
-
// typeof document.createElement is 'object' in old IE
|
|
638
|
-
var EXISTS = isObject(document) && isObject(document.createElement);
|
|
639
|
-
|
|
640
|
-
module.exports = function (it) {
|
|
641
|
-
return EXISTS ? document.createElement(it) : {};
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
/***/ }),
|
|
646
|
-
/* 36 */
|
|
647
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
648
|
-
|
|
649
|
-
var NATIVE_WEAK_MAP = __webpack_require__(45);
|
|
650
|
-
var global = __webpack_require__(0);
|
|
651
|
-
var isObject = __webpack_require__(5);
|
|
652
|
-
var createNonEnumerableProperty = __webpack_require__(6);
|
|
653
|
-
var objectHas = __webpack_require__(1);
|
|
654
|
-
var sharedKey = __webpack_require__(24);
|
|
655
|
-
var hiddenKeys = __webpack_require__(18);
|
|
656
|
-
|
|
657
|
-
var WeakMap = global.WeakMap;
|
|
658
|
-
var set, get, has;
|
|
659
|
-
|
|
660
|
-
var enforce = function (it) {
|
|
661
|
-
return has(it) ? get(it) : set(it, {});
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
var getterFor = function (TYPE) {
|
|
665
|
-
return function (it) {
|
|
666
|
-
var state;
|
|
667
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
668
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
|
669
|
-
} return state;
|
|
670
|
-
};
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
if (NATIVE_WEAK_MAP) {
|
|
674
|
-
var store = new WeakMap();
|
|
675
|
-
var wmget = store.get;
|
|
676
|
-
var wmhas = store.has;
|
|
677
|
-
var wmset = store.set;
|
|
678
|
-
set = function (it, metadata) {
|
|
679
|
-
wmset.call(store, it, metadata);
|
|
680
|
-
return metadata;
|
|
681
|
-
};
|
|
682
|
-
get = function (it) {
|
|
683
|
-
return wmget.call(store, it) || {};
|
|
684
|
-
};
|
|
685
|
-
has = function (it) {
|
|
686
|
-
return wmhas.call(store, it);
|
|
687
|
-
};
|
|
688
|
-
} else {
|
|
689
|
-
var STATE = sharedKey('state');
|
|
690
|
-
hiddenKeys[STATE] = true;
|
|
691
|
-
set = function (it, metadata) {
|
|
692
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
693
|
-
return metadata;
|
|
694
|
-
};
|
|
695
|
-
get = function (it) {
|
|
696
|
-
return objectHas(it, STATE) ? it[STATE] : {};
|
|
697
|
-
};
|
|
698
|
-
has = function (it) {
|
|
699
|
-
return objectHas(it, STATE);
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
module.exports = {
|
|
704
|
-
set: set,
|
|
705
|
-
get: get,
|
|
706
|
-
has: has,
|
|
707
|
-
enforce: enforce,
|
|
708
|
-
getterFor: getterFor
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
/***/ }),
|
|
713
|
-
/* 37 */
|
|
714
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
715
|
-
|
|
716
|
-
var IS_PURE = __webpack_require__(17);
|
|
717
|
-
var store = __webpack_require__(29);
|
|
718
|
-
|
|
719
|
-
(module.exports = function (key, value) {
|
|
720
|
-
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
721
|
-
})('versions', []).push({
|
|
722
|
-
version: '3.6.4',
|
|
723
|
-
mode: IS_PURE ? 'pure' : 'global',
|
|
724
|
-
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
/***/ }),
|
|
729
|
-
/* 38 */
|
|
730
|
-
/***/ (function(module, exports) {
|
|
731
|
-
|
|
732
|
-
var id = 0;
|
|
733
|
-
var postfix = Math.random();
|
|
734
|
-
|
|
735
|
-
module.exports = function (key) {
|
|
736
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
/***/ }),
|
|
741
|
-
/* 39 */,
|
|
742
|
-
/* 40 */,
|
|
743
|
-
/* 41 */
|
|
744
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
745
|
-
|
|
746
|
-
"use strict";
|
|
747
|
-
|
|
748
|
-
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
|
749
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
750
|
-
|
|
751
|
-
// Nashorn ~ JDK8 bug
|
|
752
|
-
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
|
753
|
-
|
|
754
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
755
|
-
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
|
|
756
|
-
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
757
|
-
var descriptor = getOwnPropertyDescriptor(this, V);
|
|
758
|
-
return !!descriptor && descriptor.enumerable;
|
|
759
|
-
} : nativePropertyIsEnumerable;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
/***/ }),
|
|
763
|
-
/* 42 */
|
|
764
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
765
|
-
|
|
766
|
-
var internalObjectKeys = __webpack_require__(31);
|
|
767
|
-
var enumBugKeys = __webpack_require__(21);
|
|
768
|
-
|
|
769
|
-
// `Object.keys` method
|
|
770
|
-
// https://tc39.github.io/ecma262/#sec-object.keys
|
|
771
|
-
module.exports = Object.keys || function keys(O) {
|
|
772
|
-
return internalObjectKeys(O, enumBugKeys);
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
/***/ }),
|
|
777
|
-
/* 43 */,
|
|
778
|
-
/* 44 */,
|
|
779
|
-
/* 45 */
|
|
780
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
781
|
-
|
|
782
|
-
var global = __webpack_require__(0);
|
|
783
|
-
var inspectSource = __webpack_require__(28);
|
|
784
|
-
|
|
785
|
-
var WeakMap = global.WeakMap;
|
|
786
|
-
|
|
787
|
-
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
/***/ }),
|
|
791
|
-
/* 46 */
|
|
792
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
793
|
-
|
|
794
|
-
var has = __webpack_require__(1);
|
|
795
|
-
var ownKeys = __webpack_require__(47);
|
|
796
|
-
var getOwnPropertyDescriptorModule = __webpack_require__(23);
|
|
797
|
-
var definePropertyModule = __webpack_require__(8);
|
|
798
|
-
|
|
799
|
-
module.exports = function (target, source) {
|
|
800
|
-
var keys = ownKeys(source);
|
|
801
|
-
var defineProperty = definePropertyModule.f;
|
|
802
|
-
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
803
|
-
for (var i = 0; i < keys.length; i++) {
|
|
804
|
-
var key = keys[i];
|
|
805
|
-
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
/***/ }),
|
|
811
|
-
/* 47 */
|
|
812
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
813
|
-
|
|
814
|
-
var getBuiltIn = __webpack_require__(30);
|
|
815
|
-
var getOwnPropertyNamesModule = __webpack_require__(49);
|
|
816
|
-
var getOwnPropertySymbolsModule = __webpack_require__(52);
|
|
817
|
-
var anObject = __webpack_require__(7);
|
|
818
|
-
|
|
819
|
-
// all object keys, includes non-enumerable and symbols
|
|
820
|
-
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
821
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
822
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
823
|
-
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
/***/ }),
|
|
828
|
-
/* 48 */
|
|
829
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
830
|
-
|
|
831
|
-
var global = __webpack_require__(0);
|
|
832
|
-
|
|
833
|
-
module.exports = global;
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
/***/ }),
|
|
837
|
-
/* 49 */
|
|
838
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
839
|
-
|
|
840
|
-
var internalObjectKeys = __webpack_require__(31);
|
|
841
|
-
var enumBugKeys = __webpack_require__(21);
|
|
842
|
-
|
|
843
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
844
|
-
|
|
845
|
-
// `Object.getOwnPropertyNames` method
|
|
846
|
-
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
847
|
-
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
848
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
/***/ }),
|
|
853
|
-
/* 50 */
|
|
854
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
855
|
-
|
|
856
|
-
var toIndexedObject = __webpack_require__(10);
|
|
857
|
-
var toLength = __webpack_require__(19);
|
|
858
|
-
var toAbsoluteIndex = __webpack_require__(51);
|
|
859
|
-
|
|
860
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
861
|
-
var createMethod = function (IS_INCLUDES) {
|
|
862
|
-
return function ($this, el, fromIndex) {
|
|
863
|
-
var O = toIndexedObject($this);
|
|
864
|
-
var length = toLength(O.length);
|
|
865
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
866
|
-
var value;
|
|
867
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
868
|
-
// eslint-disable-next-line no-self-compare
|
|
869
|
-
if (IS_INCLUDES && el != el) while (length > index) {
|
|
870
|
-
value = O[index++];
|
|
871
|
-
// eslint-disable-next-line no-self-compare
|
|
872
|
-
if (value != value) return true;
|
|
873
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
874
|
-
} else for (;length > index; index++) {
|
|
875
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
876
|
-
} return !IS_INCLUDES && -1;
|
|
877
|
-
};
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
module.exports = {
|
|
881
|
-
// `Array.prototype.includes` method
|
|
882
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
|
|
883
|
-
includes: createMethod(true),
|
|
884
|
-
// `Array.prototype.indexOf` method
|
|
885
|
-
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
|
|
886
|
-
indexOf: createMethod(false)
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
/***/ }),
|
|
891
|
-
/* 51 */
|
|
892
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
893
|
-
|
|
894
|
-
var toInteger = __webpack_require__(20);
|
|
895
|
-
|
|
896
|
-
var max = Math.max;
|
|
897
|
-
var min = Math.min;
|
|
898
|
-
|
|
899
|
-
// Helper for a popular repeating case of the spec:
|
|
900
|
-
// Let integer be ? ToInteger(index).
|
|
901
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
902
|
-
module.exports = function (index, length) {
|
|
903
|
-
var integer = toInteger(index);
|
|
904
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
/***/ }),
|
|
909
|
-
/* 52 */
|
|
910
|
-
/***/ (function(module, exports) {
|
|
911
|
-
|
|
912
|
-
exports.f = Object.getOwnPropertySymbols;
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
/***/ }),
|
|
916
|
-
/* 53 */
|
|
917
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
918
|
-
|
|
919
|
-
var fails = __webpack_require__(2);
|
|
920
|
-
|
|
921
|
-
var replacement = /#|\.prototype\./;
|
|
922
|
-
|
|
923
|
-
var isForced = function (feature, detection) {
|
|
924
|
-
var value = data[normalize(feature)];
|
|
925
|
-
return value == POLYFILL ? true
|
|
926
|
-
: value == NATIVE ? false
|
|
927
|
-
: typeof detection == 'function' ? fails(detection)
|
|
928
|
-
: !!detection;
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
var normalize = isForced.normalize = function (string) {
|
|
932
|
-
return String(string).replace(replacement, '.').toLowerCase();
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
var data = isForced.data = {};
|
|
936
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
937
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
938
|
-
|
|
939
|
-
module.exports = isForced;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
/***/ }),
|
|
943
|
-
/* 54 */,
|
|
944
|
-
/* 55 */,
|
|
945
|
-
/* 56 */,
|
|
946
|
-
/* 57 */,
|
|
947
|
-
/* 58 */,
|
|
948
|
-
/* 59 */,
|
|
949
|
-
/* 60 */,
|
|
950
|
-
/* 61 */,
|
|
951
|
-
/* 62 */,
|
|
952
|
-
/* 63 */,
|
|
953
|
-
/* 64 */,
|
|
954
|
-
/* 65 */,
|
|
955
|
-
/* 66 */,
|
|
956
|
-
/* 67 */,
|
|
957
|
-
/* 68 */,
|
|
958
|
-
/* 69 */,
|
|
959
|
-
/* 70 */,
|
|
960
|
-
/* 71 */,
|
|
961
|
-
/* 72 */,
|
|
962
|
-
/* 73 */,
|
|
963
|
-
/* 74 */,
|
|
964
|
-
/* 75 */,
|
|
965
|
-
/* 76 */,
|
|
966
|
-
/* 77 */,
|
|
967
|
-
/* 78 */,
|
|
968
|
-
/* 79 */,
|
|
969
|
-
/* 80 */,
|
|
970
|
-
/* 81 */,
|
|
971
|
-
/* 82 */,
|
|
972
|
-
/* 83 */,
|
|
973
|
-
/* 84 */,
|
|
974
|
-
/* 85 */,
|
|
975
|
-
/* 86 */,
|
|
976
|
-
/* 87 */,
|
|
977
|
-
/* 88 */,
|
|
978
|
-
/* 89 */,
|
|
979
|
-
/* 90 */,
|
|
980
|
-
/* 91 */,
|
|
981
|
-
/* 92 */,
|
|
982
|
-
/* 93 */,
|
|
983
|
-
/* 94 */,
|
|
984
|
-
/* 95 */,
|
|
985
|
-
/* 96 */,
|
|
986
|
-
/* 97 */,
|
|
987
|
-
/* 98 */,
|
|
988
|
-
/* 99 */,
|
|
989
|
-
/* 100 */,
|
|
990
|
-
/* 101 */,
|
|
991
|
-
/* 102 */,
|
|
992
|
-
/* 103 */,
|
|
993
|
-
/* 104 */,
|
|
994
|
-
/* 105 */,
|
|
995
|
-
/* 106 */,
|
|
996
|
-
/* 107 */,
|
|
997
|
-
/* 108 */,
|
|
998
|
-
/* 109 */,
|
|
999
|
-
/* 110 */
|
|
1000
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1001
|
-
|
|
1002
|
-
"use strict";
|
|
1003
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1004
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateCSSColorVariables", function() { return generateCSSColorVariables; });
|
|
1005
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setCustomColors", function() { return setCustomColors; });
|
|
1006
|
-
/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(111);
|
|
1007
|
-
/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1008
4
|
|
|
1009
5
|
/**
|
|
1010
6
|
* Generate CSS variables for the given color palette.
|
|
1011
7
|
*/
|
|
1012
8
|
function generateCSSColorVariables(palette) {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
var _Object$entries2$_i = _Object$entries2[_i2],
|
|
1021
|
-
variantName = _Object$entries2$_i[0],
|
|
1022
|
-
colorValue = _Object$entries2$_i[1];
|
|
1023
|
-
output += "--lumx-color-" + color + "-" + variantName + ": " + colorValue + ";\n";
|
|
9
|
+
let output = '';
|
|
10
|
+
for (const [color, variants] of Object.entries(palette)) {
|
|
11
|
+
if (!variants)
|
|
12
|
+
continue;
|
|
13
|
+
for (const [variantName, colorValue] of Object.entries(variants)) {
|
|
14
|
+
output += `--lumx-color-${color}-${variantName}: ${colorValue};\n`;
|
|
15
|
+
}
|
|
1024
16
|
}
|
|
1025
|
-
|
|
1026
|
-
return output;
|
|
17
|
+
return output;
|
|
1027
18
|
}
|
|
1028
|
-
|
|
1029
19
|
/**
|
|
1030
20
|
* Add a css rule in a given sheet.
|
|
1031
21
|
*
|
|
@@ -1035,13 +25,13 @@ function generateCSSColorVariables(palette) {
|
|
|
1035
25
|
* @param index The css rule index.
|
|
1036
26
|
*/
|
|
1037
27
|
function _addCSSRule(sheet, selector, rules, index) {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
28
|
+
if ('insertRule' in sheet) {
|
|
29
|
+
sheet.insertRule(`${selector}{${rules}}`, index);
|
|
30
|
+
}
|
|
31
|
+
else if ('addRule' in sheet) {
|
|
32
|
+
sheet.addRule(selector, rules, index);
|
|
33
|
+
}
|
|
1043
34
|
}
|
|
1044
|
-
|
|
1045
35
|
/**
|
|
1046
36
|
* Set primary and secondary custom colors.
|
|
1047
37
|
*
|
|
@@ -1049,67 +39,10 @@ function _addCSSRule(sheet, selector, rules, index) {
|
|
|
1049
39
|
* @param colorPalette The custom color palette.
|
|
1050
40
|
* @param selector The selector used to scope the custom colors (defaults to ':root').
|
|
1051
41
|
*/
|
|
1052
|
-
function setCustomColors(sheet, colorPalette, selector) {
|
|
1053
|
-
|
|
1054
|
-
selector
|
|
1055
|
-
}
|
|
1056
|
-
var rules = generateCSSColorVariables(colorPalette);
|
|
1057
|
-
_addCSSRule(sheet, selector, rules, 0);
|
|
42
|
+
function setCustomColors(sheet, colorPalette, selector = ':root') {
|
|
43
|
+
const rules = generateCSSColorVariables(colorPalette);
|
|
44
|
+
_addCSSRule(sheet, selector, rules, 0);
|
|
1058
45
|
}
|
|
1059
46
|
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1063
|
-
|
|
1064
|
-
var $ = __webpack_require__(12);
|
|
1065
|
-
var $entries = __webpack_require__(112).entries;
|
|
1066
|
-
|
|
1067
|
-
// `Object.entries` method
|
|
1068
|
-
// https://tc39.github.io/ecma262/#sec-object.entries
|
|
1069
|
-
$({ target: 'Object', stat: true }, {
|
|
1070
|
-
entries: function entries(O) {
|
|
1071
|
-
return $entries(O);
|
|
1072
|
-
}
|
|
1073
|
-
});
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
/***/ }),
|
|
1077
|
-
/* 112 */
|
|
1078
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1079
|
-
|
|
1080
|
-
var DESCRIPTORS = __webpack_require__(4);
|
|
1081
|
-
var objectKeys = __webpack_require__(42);
|
|
1082
|
-
var toIndexedObject = __webpack_require__(10);
|
|
1083
|
-
var propertyIsEnumerable = __webpack_require__(41).f;
|
|
1084
|
-
|
|
1085
|
-
// `Object.{ entries, values }` methods implementation
|
|
1086
|
-
var createMethod = function (TO_ENTRIES) {
|
|
1087
|
-
return function (it) {
|
|
1088
|
-
var O = toIndexedObject(it);
|
|
1089
|
-
var keys = objectKeys(O);
|
|
1090
|
-
var length = keys.length;
|
|
1091
|
-
var i = 0;
|
|
1092
|
-
var result = [];
|
|
1093
|
-
var key;
|
|
1094
|
-
while (length > i) {
|
|
1095
|
-
key = keys[i++];
|
|
1096
|
-
if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {
|
|
1097
|
-
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
return result;
|
|
1101
|
-
};
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
module.exports = {
|
|
1105
|
-
// `Object.entries` method
|
|
1106
|
-
// https://tc39.github.io/ecma262/#sec-object.entries
|
|
1107
|
-
entries: createMethod(true),
|
|
1108
|
-
// `Object.values` method
|
|
1109
|
-
// https://tc39.github.io/ecma262/#sec-object.values
|
|
1110
|
-
values: createMethod(false)
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
/***/ })
|
|
1115
|
-
/******/ ]);
|
|
47
|
+
exports.generateCSSColorVariables = generateCSSColorVariables;
|
|
48
|
+
exports.setCustomColors = setCustomColors;
|