backend-management-ui 1.4.5 → 1.4.7
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/backend-management-ui.common.js +826 -892
- package/backend-management-ui.common.js.map +1 -1
- package/backend-management-ui.umd.js +2037 -2114
- package/backend-management-ui.umd.js.map +1 -1
- package/backend-management-ui.umd.min.js +2 -12
- package/backend-management-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("vue"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["vue"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["Vue"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(Object(typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__154__) {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
2
12
|
/******/ var __webpack_modules__ = ({
|
|
3
13
|
|
|
4
14
|
/***/ 34:
|
|
@@ -35,6 +45,14 @@ module.exports = function (argument, usingIterator) {
|
|
|
35
45
|
};
|
|
36
46
|
|
|
37
47
|
|
|
48
|
+
/***/ }),
|
|
49
|
+
|
|
50
|
+
/***/ 154:
|
|
51
|
+
/***/ (function(module) {
|
|
52
|
+
|
|
53
|
+
"use strict";
|
|
54
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
55
|
+
|
|
38
56
|
/***/ }),
|
|
39
57
|
|
|
40
58
|
/***/ 283:
|
|
@@ -283,6 +301,75 @@ module.exports = function (it) {
|
|
|
283
301
|
};
|
|
284
302
|
|
|
285
303
|
|
|
304
|
+
/***/ }),
|
|
305
|
+
|
|
306
|
+
/***/ 936:
|
|
307
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
308
|
+
|
|
309
|
+
"use strict";
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
313
|
+
value: true
|
|
314
|
+
}));
|
|
315
|
+
exports.copy = exports.isBuffer = void 0;
|
|
316
|
+
const isBufferExists = typeof Buffer !== 'undefined';
|
|
317
|
+
const isBufferFromExists = isBufferExists && typeof Buffer.from !== 'undefined';
|
|
318
|
+
const isBuffer = isBufferExists ?
|
|
319
|
+
/**
|
|
320
|
+
* is value is Buffer?
|
|
321
|
+
*
|
|
322
|
+
* @param {*} value
|
|
323
|
+
* @return {boolean}
|
|
324
|
+
*/
|
|
325
|
+
function isBuffer(value) {
|
|
326
|
+
return Buffer.isBuffer(value);
|
|
327
|
+
} :
|
|
328
|
+
/**
|
|
329
|
+
* return false
|
|
330
|
+
*
|
|
331
|
+
* NOTE: for Buffer unsupported
|
|
332
|
+
*
|
|
333
|
+
* @return {boolean}
|
|
334
|
+
*/
|
|
335
|
+
function isBuffer() {
|
|
336
|
+
return false;
|
|
337
|
+
};
|
|
338
|
+
exports.isBuffer = isBuffer;
|
|
339
|
+
const copy = isBufferFromExists ?
|
|
340
|
+
/**
|
|
341
|
+
* copy Buffer
|
|
342
|
+
*
|
|
343
|
+
* @param {Buffer} value
|
|
344
|
+
* @return {Buffer}
|
|
345
|
+
*/
|
|
346
|
+
function copy(value) {
|
|
347
|
+
return Buffer.from(value);
|
|
348
|
+
} : isBufferExists ?
|
|
349
|
+
/**
|
|
350
|
+
* copy Buffer
|
|
351
|
+
*
|
|
352
|
+
* NOTE: for old node.js
|
|
353
|
+
*
|
|
354
|
+
* @param {Buffer} value
|
|
355
|
+
* @return {Buffer}
|
|
356
|
+
*/
|
|
357
|
+
function copy(value) {
|
|
358
|
+
return new Buffer(value);
|
|
359
|
+
} :
|
|
360
|
+
/**
|
|
361
|
+
* shallow copy
|
|
362
|
+
*
|
|
363
|
+
* NOTE: for Buffer unsupported
|
|
364
|
+
*
|
|
365
|
+
* @param {*}
|
|
366
|
+
* @return {*}
|
|
367
|
+
*/
|
|
368
|
+
function copy(value) {
|
|
369
|
+
return value;
|
|
370
|
+
};
|
|
371
|
+
exports.copy = copy;
|
|
372
|
+
|
|
286
373
|
/***/ }),
|
|
287
374
|
|
|
288
375
|
/***/ 1072:
|
|
@@ -462,6 +549,41 @@ module.exports = function (iters, kind, value) {
|
|
|
462
549
|
};
|
|
463
550
|
|
|
464
551
|
|
|
552
|
+
/***/ }),
|
|
553
|
+
|
|
554
|
+
/***/ 1476:
|
|
555
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
556
|
+
|
|
557
|
+
"use strict";
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
561
|
+
value: true
|
|
562
|
+
}));
|
|
563
|
+
exports.detectType = detectType;
|
|
564
|
+
var _typeDetect = _interopRequireDefault(__webpack_require__(4438));
|
|
565
|
+
var _buffer = __webpack_require__(936);
|
|
566
|
+
function _interopRequireDefault(obj) {
|
|
567
|
+
return obj && obj.__esModule ? obj : {
|
|
568
|
+
default: obj
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* detect type of value
|
|
574
|
+
*
|
|
575
|
+
* @param {*} value
|
|
576
|
+
* @return {string}
|
|
577
|
+
*/
|
|
578
|
+
function detectType(value) {
|
|
579
|
+
// NOTE: isBuffer must execute before type-detect,
|
|
580
|
+
// because type-detect returns 'Uint8Array'.
|
|
581
|
+
if ((0, _buffer.isBuffer)(value)) {
|
|
582
|
+
return 'Buffer';
|
|
583
|
+
}
|
|
584
|
+
return (0, _typeDetect.default)(value);
|
|
585
|
+
}
|
|
586
|
+
|
|
465
587
|
/***/ }),
|
|
466
588
|
|
|
467
589
|
/***/ 1548:
|
|
@@ -658,6 +780,13 @@ module.exports = function (target, name, descriptor) {
|
|
|
658
780
|
};
|
|
659
781
|
|
|
660
782
|
|
|
783
|
+
/***/ }),
|
|
784
|
+
|
|
785
|
+
/***/ 2129:
|
|
786
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
787
|
+
|
|
788
|
+
module.exports = __webpack_require__(5496)["default"];
|
|
789
|
+
|
|
661
790
|
/***/ }),
|
|
662
791
|
|
|
663
792
|
/***/ 2140:
|
|
@@ -1596,6 +1725,149 @@ module.exports = {
|
|
|
1596
1725
|
};
|
|
1597
1726
|
|
|
1598
1727
|
|
|
1728
|
+
/***/ }),
|
|
1729
|
+
|
|
1730
|
+
/***/ 4438:
|
|
1731
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1732
|
+
|
|
1733
|
+
__webpack_require__(6573);
|
|
1734
|
+
__webpack_require__(8100);
|
|
1735
|
+
__webpack_require__(7936);
|
|
1736
|
+
__webpack_require__(7642);
|
|
1737
|
+
__webpack_require__(8004);
|
|
1738
|
+
__webpack_require__(3853);
|
|
1739
|
+
__webpack_require__(5876);
|
|
1740
|
+
__webpack_require__(2475);
|
|
1741
|
+
__webpack_require__(5024);
|
|
1742
|
+
__webpack_require__(1698);
|
|
1743
|
+
(function (global, factory) {
|
|
1744
|
+
true ? module.exports = factory() : 0;
|
|
1745
|
+
})(this, function () {
|
|
1746
|
+
'use strict';
|
|
1747
|
+
|
|
1748
|
+
var promiseExists = typeof Promise === 'function';
|
|
1749
|
+
var globalObject = function (Obj) {
|
|
1750
|
+
if (typeof globalThis === 'object') {
|
|
1751
|
+
return globalThis;
|
|
1752
|
+
}
|
|
1753
|
+
Object.defineProperty(Obj, 'typeDetectGlobalObject', {
|
|
1754
|
+
get: function get() {
|
|
1755
|
+
return this;
|
|
1756
|
+
},
|
|
1757
|
+
configurable: true
|
|
1758
|
+
});
|
|
1759
|
+
var global = typeDetectGlobalObject;
|
|
1760
|
+
delete Obj.typeDetectGlobalObject;
|
|
1761
|
+
return global;
|
|
1762
|
+
}(Object.prototype);
|
|
1763
|
+
var symbolExists = typeof Symbol !== 'undefined';
|
|
1764
|
+
var mapExists = typeof Map !== 'undefined';
|
|
1765
|
+
var setExists = typeof Set !== 'undefined';
|
|
1766
|
+
var weakMapExists = typeof WeakMap !== 'undefined';
|
|
1767
|
+
var weakSetExists = typeof WeakSet !== 'undefined';
|
|
1768
|
+
var dataViewExists = typeof DataView !== 'undefined';
|
|
1769
|
+
var symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';
|
|
1770
|
+
var symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';
|
|
1771
|
+
var setEntriesExists = setExists && typeof Set.prototype.entries === 'function';
|
|
1772
|
+
var mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';
|
|
1773
|
+
var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());
|
|
1774
|
+
var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());
|
|
1775
|
+
var arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';
|
|
1776
|
+
var arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());
|
|
1777
|
+
var stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';
|
|
1778
|
+
var stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());
|
|
1779
|
+
var toStringLeftSliceLength = 8;
|
|
1780
|
+
var toStringRightSliceLength = -1;
|
|
1781
|
+
function typeDetect(obj) {
|
|
1782
|
+
var typeofObj = typeof obj;
|
|
1783
|
+
if (typeofObj !== 'object') {
|
|
1784
|
+
return typeofObj;
|
|
1785
|
+
}
|
|
1786
|
+
if (obj === null) {
|
|
1787
|
+
return 'null';
|
|
1788
|
+
}
|
|
1789
|
+
if (obj === globalObject) {
|
|
1790
|
+
return 'global';
|
|
1791
|
+
}
|
|
1792
|
+
if (Array.isArray(obj) && (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))) {
|
|
1793
|
+
return 'Array';
|
|
1794
|
+
}
|
|
1795
|
+
if (typeof window === 'object' && window !== null) {
|
|
1796
|
+
if (typeof window.location === 'object' && obj === window.location) {
|
|
1797
|
+
return 'Location';
|
|
1798
|
+
}
|
|
1799
|
+
if (typeof window.document === 'object' && obj === window.document) {
|
|
1800
|
+
return 'Document';
|
|
1801
|
+
}
|
|
1802
|
+
if (typeof window.navigator === 'object') {
|
|
1803
|
+
if (typeof window.navigator.mimeTypes === 'object' && obj === window.navigator.mimeTypes) {
|
|
1804
|
+
return 'MimeTypeArray';
|
|
1805
|
+
}
|
|
1806
|
+
if (typeof window.navigator.plugins === 'object' && obj === window.navigator.plugins) {
|
|
1807
|
+
return 'PluginArray';
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
if ((typeof window.HTMLElement === 'function' || typeof window.HTMLElement === 'object') && obj instanceof window.HTMLElement) {
|
|
1811
|
+
if (obj.tagName === 'BLOCKQUOTE') {
|
|
1812
|
+
return 'HTMLQuoteElement';
|
|
1813
|
+
}
|
|
1814
|
+
if (obj.tagName === 'TD') {
|
|
1815
|
+
return 'HTMLTableDataCellElement';
|
|
1816
|
+
}
|
|
1817
|
+
if (obj.tagName === 'TH') {
|
|
1818
|
+
return 'HTMLTableHeaderCellElement';
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
var stringTag = symbolToStringTagExists && obj[Symbol.toStringTag];
|
|
1823
|
+
if (typeof stringTag === 'string') {
|
|
1824
|
+
return stringTag;
|
|
1825
|
+
}
|
|
1826
|
+
var objPrototype = Object.getPrototypeOf(obj);
|
|
1827
|
+
if (objPrototype === RegExp.prototype) {
|
|
1828
|
+
return 'RegExp';
|
|
1829
|
+
}
|
|
1830
|
+
if (objPrototype === Date.prototype) {
|
|
1831
|
+
return 'Date';
|
|
1832
|
+
}
|
|
1833
|
+
if (promiseExists && objPrototype === Promise.prototype) {
|
|
1834
|
+
return 'Promise';
|
|
1835
|
+
}
|
|
1836
|
+
if (setExists && objPrototype === Set.prototype) {
|
|
1837
|
+
return 'Set';
|
|
1838
|
+
}
|
|
1839
|
+
if (mapExists && objPrototype === Map.prototype) {
|
|
1840
|
+
return 'Map';
|
|
1841
|
+
}
|
|
1842
|
+
if (weakSetExists && objPrototype === WeakSet.prototype) {
|
|
1843
|
+
return 'WeakSet';
|
|
1844
|
+
}
|
|
1845
|
+
if (weakMapExists && objPrototype === WeakMap.prototype) {
|
|
1846
|
+
return 'WeakMap';
|
|
1847
|
+
}
|
|
1848
|
+
if (dataViewExists && objPrototype === DataView.prototype) {
|
|
1849
|
+
return 'DataView';
|
|
1850
|
+
}
|
|
1851
|
+
if (mapExists && objPrototype === mapIteratorPrototype) {
|
|
1852
|
+
return 'Map Iterator';
|
|
1853
|
+
}
|
|
1854
|
+
if (setExists && objPrototype === setIteratorPrototype) {
|
|
1855
|
+
return 'Set Iterator';
|
|
1856
|
+
}
|
|
1857
|
+
if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {
|
|
1858
|
+
return 'Array Iterator';
|
|
1859
|
+
}
|
|
1860
|
+
if (stringIteratorExists && objPrototype === stringIteratorPrototype) {
|
|
1861
|
+
return 'String Iterator';
|
|
1862
|
+
}
|
|
1863
|
+
if (objPrototype === null) {
|
|
1864
|
+
return 'Object';
|
|
1865
|
+
}
|
|
1866
|
+
return Object.prototype.toString.call(obj).slice(toStringLeftSliceLength, toStringRightSliceLength);
|
|
1867
|
+
}
|
|
1868
|
+
return typeDetect;
|
|
1869
|
+
});
|
|
1870
|
+
|
|
1599
1871
|
/***/ }),
|
|
1600
1872
|
|
|
1601
1873
|
/***/ 4449:
|
|
@@ -1805,6 +2077,56 @@ module.exports = function (object, key, value) {
|
|
|
1805
2077
|
};
|
|
1806
2078
|
|
|
1807
2079
|
|
|
2080
|
+
/***/ }),
|
|
2081
|
+
|
|
2082
|
+
/***/ 4704:
|
|
2083
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2084
|
+
|
|
2085
|
+
"use strict";
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
2089
|
+
value: true
|
|
2090
|
+
}));
|
|
2091
|
+
exports.copy = copy;
|
|
2092
|
+
var _copy_map = _interopRequireDefault(__webpack_require__(5406));
|
|
2093
|
+
var _detector = __webpack_require__(1476);
|
|
2094
|
+
function _interopRequireDefault(obj) {
|
|
2095
|
+
return obj && obj.__esModule ? obj : {
|
|
2096
|
+
default: obj
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* no operation
|
|
2102
|
+
*/
|
|
2103
|
+
function noop() {}
|
|
2104
|
+
/**
|
|
2105
|
+
* copy value
|
|
2106
|
+
*
|
|
2107
|
+
* @param {*} value
|
|
2108
|
+
* @param {string} [type=null]
|
|
2109
|
+
* @param {Function} [customizer=noop]
|
|
2110
|
+
* @return {*}
|
|
2111
|
+
*/
|
|
2112
|
+
|
|
2113
|
+
function copy(value, type = null, customizer = noop) {
|
|
2114
|
+
if (arguments.length === 2 && typeof type === 'function') {
|
|
2115
|
+
customizer = type;
|
|
2116
|
+
type = null;
|
|
2117
|
+
}
|
|
2118
|
+
const valueType = type || (0, _detector.detectType)(value);
|
|
2119
|
+
const copyFunction = _copy_map.default.get(valueType);
|
|
2120
|
+
if (valueType === 'Object') {
|
|
2121
|
+
const result = customizer(value, valueType);
|
|
2122
|
+
if (result !== undefined) {
|
|
2123
|
+
return result;
|
|
2124
|
+
}
|
|
2125
|
+
} // NOTE: TypedArray needs pass type to argument
|
|
2126
|
+
|
|
2127
|
+
return copyFunction ? copyFunction(value, valueType) : value;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
1808
2130
|
/***/ }),
|
|
1809
2131
|
|
|
1810
2132
|
/***/ 4901:
|
|
@@ -2035,6 +2357,385 @@ module.exports = function (it) {
|
|
|
2035
2357
|
};
|
|
2036
2358
|
|
|
2037
2359
|
|
|
2360
|
+
/***/ }),
|
|
2361
|
+
|
|
2362
|
+
/***/ 5406:
|
|
2363
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2364
|
+
|
|
2365
|
+
"use strict";
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
__webpack_require__(6573);
|
|
2369
|
+
__webpack_require__(8100);
|
|
2370
|
+
__webpack_require__(7936);
|
|
2371
|
+
__webpack_require__(7642);
|
|
2372
|
+
__webpack_require__(8004);
|
|
2373
|
+
__webpack_require__(3853);
|
|
2374
|
+
__webpack_require__(5876);
|
|
2375
|
+
__webpack_require__(2475);
|
|
2376
|
+
__webpack_require__(5024);
|
|
2377
|
+
__webpack_require__(1698);
|
|
2378
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
2379
|
+
value: true
|
|
2380
|
+
}));
|
|
2381
|
+
exports["default"] = void 0;
|
|
2382
|
+
var _buffer = __webpack_require__(936);
|
|
2383
|
+
var _global = __webpack_require__(5537);
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* copy ArrayBuffer
|
|
2387
|
+
*
|
|
2388
|
+
* @param {ArrayBuffer} value
|
|
2389
|
+
* @return {ArrayBuffer}
|
|
2390
|
+
*/
|
|
2391
|
+
function copyArrayBuffer(value) {
|
|
2392
|
+
return value.slice(0);
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* copy Boolean
|
|
2396
|
+
*
|
|
2397
|
+
* @param {Boolean} value
|
|
2398
|
+
* @return {Boolean}
|
|
2399
|
+
*/
|
|
2400
|
+
|
|
2401
|
+
function copyBoolean(value) {
|
|
2402
|
+
return new Boolean(value.valueOf());
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* copy DataView
|
|
2406
|
+
*
|
|
2407
|
+
* @param {DataView} value
|
|
2408
|
+
* @return {DataView}
|
|
2409
|
+
*/
|
|
2410
|
+
|
|
2411
|
+
function copyDataView(value) {
|
|
2412
|
+
// TODO: copy ArrayBuffer?
|
|
2413
|
+
return new DataView(value.buffer);
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* copy Buffer
|
|
2417
|
+
*
|
|
2418
|
+
* @param {Buffer} value
|
|
2419
|
+
* @return {Buffer}
|
|
2420
|
+
*/
|
|
2421
|
+
|
|
2422
|
+
function copyBuffer(value) {
|
|
2423
|
+
return (0, _buffer.copy)(value);
|
|
2424
|
+
}
|
|
2425
|
+
/**
|
|
2426
|
+
* copy Date
|
|
2427
|
+
*
|
|
2428
|
+
* @param {Date} value
|
|
2429
|
+
* @return {Date}
|
|
2430
|
+
*/
|
|
2431
|
+
|
|
2432
|
+
function copyDate(value) {
|
|
2433
|
+
return new Date(value.getTime());
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* copy Number
|
|
2437
|
+
*
|
|
2438
|
+
* @param {Number} value
|
|
2439
|
+
* @return {Number}
|
|
2440
|
+
*/
|
|
2441
|
+
|
|
2442
|
+
function copyNumber(value) {
|
|
2443
|
+
return new Number(value);
|
|
2444
|
+
}
|
|
2445
|
+
/**
|
|
2446
|
+
* copy RegExp
|
|
2447
|
+
*
|
|
2448
|
+
* @param {RegExp} value
|
|
2449
|
+
* @return {RegExp}
|
|
2450
|
+
*/
|
|
2451
|
+
|
|
2452
|
+
function copyRegExp(value) {
|
|
2453
|
+
return new RegExp(value.source, value.flags);
|
|
2454
|
+
}
|
|
2455
|
+
/**
|
|
2456
|
+
* copy String
|
|
2457
|
+
*
|
|
2458
|
+
* @param {String} value
|
|
2459
|
+
* @return {String}
|
|
2460
|
+
*/
|
|
2461
|
+
|
|
2462
|
+
function copyString(value) {
|
|
2463
|
+
return new String(value);
|
|
2464
|
+
}
|
|
2465
|
+
/**
|
|
2466
|
+
* copy TypedArray
|
|
2467
|
+
*
|
|
2468
|
+
* @param {*} value
|
|
2469
|
+
* @return {*}
|
|
2470
|
+
*/
|
|
2471
|
+
|
|
2472
|
+
function copyTypedArray(value, type) {
|
|
2473
|
+
const typedArray = _global.globalObject[type];
|
|
2474
|
+
if (typedArray.from) {
|
|
2475
|
+
return _global.globalObject[type].from(value);
|
|
2476
|
+
}
|
|
2477
|
+
return new _global.globalObject[type](value);
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
* shallow copy
|
|
2481
|
+
*
|
|
2482
|
+
* @param {*} value
|
|
2483
|
+
* @return {*}
|
|
2484
|
+
*/
|
|
2485
|
+
|
|
2486
|
+
function shallowCopy(value) {
|
|
2487
|
+
return value;
|
|
2488
|
+
}
|
|
2489
|
+
/**
|
|
2490
|
+
* get empty Array
|
|
2491
|
+
*
|
|
2492
|
+
* @return {Array}
|
|
2493
|
+
*/
|
|
2494
|
+
|
|
2495
|
+
function getEmptyArray() {
|
|
2496
|
+
return [];
|
|
2497
|
+
}
|
|
2498
|
+
/**
|
|
2499
|
+
* get empty Map
|
|
2500
|
+
*
|
|
2501
|
+
* @return {Map}
|
|
2502
|
+
*/
|
|
2503
|
+
|
|
2504
|
+
function getEmptyMap() {
|
|
2505
|
+
return new Map();
|
|
2506
|
+
}
|
|
2507
|
+
/**
|
|
2508
|
+
* get empty Object
|
|
2509
|
+
*
|
|
2510
|
+
* @return {Object}
|
|
2511
|
+
*/
|
|
2512
|
+
|
|
2513
|
+
function getEmptyObject() {
|
|
2514
|
+
return {};
|
|
2515
|
+
}
|
|
2516
|
+
/**
|
|
2517
|
+
* get empty Set
|
|
2518
|
+
*
|
|
2519
|
+
* @return {Set}
|
|
2520
|
+
*/
|
|
2521
|
+
|
|
2522
|
+
function getEmptySet() {
|
|
2523
|
+
return new Set();
|
|
2524
|
+
}
|
|
2525
|
+
var _default = new Map([
|
|
2526
|
+
// deep copy
|
|
2527
|
+
['ArrayBuffer', copyArrayBuffer], ['Boolean', copyBoolean], ['Buffer', copyBuffer], ['DataView', copyDataView], ['Date', copyDate], ['Number', copyNumber], ['RegExp', copyRegExp], ['String', copyString],
|
|
2528
|
+
// typed arrays
|
|
2529
|
+
// TODO: pass bound function
|
|
2530
|
+
['Float32Array', copyTypedArray], ['Float64Array', copyTypedArray], ['Int16Array', copyTypedArray], ['Int32Array', copyTypedArray], ['Int8Array', copyTypedArray], ['Uint16Array', copyTypedArray], ['Uint32Array', copyTypedArray], ['Uint8Array', copyTypedArray], ['Uint8ClampedArray', copyTypedArray],
|
|
2531
|
+
// shallow copy
|
|
2532
|
+
['Array Iterator', shallowCopy], ['Map Iterator', shallowCopy], ['Promise', shallowCopy], ['Set Iterator', shallowCopy], ['String Iterator', shallowCopy], ['function', shallowCopy], ['global', shallowCopy],
|
|
2533
|
+
// NOTE: WeakMap and WeakSet cannot get entries
|
|
2534
|
+
['WeakMap', shallowCopy], ['WeakSet', shallowCopy],
|
|
2535
|
+
// primitives
|
|
2536
|
+
['boolean', shallowCopy], ['null', shallowCopy], ['number', shallowCopy], ['string', shallowCopy], ['symbol', shallowCopy], ['undefined', shallowCopy],
|
|
2537
|
+
// collections
|
|
2538
|
+
// NOTE: return empty value, because recursively copy later.
|
|
2539
|
+
['Arguments', getEmptyArray], ['Array', getEmptyArray], ['Map', getEmptyMap], ['Object', getEmptyObject], ['Set', getEmptySet] // NOTE: type-detect returns following types
|
|
2540
|
+
// 'Location'
|
|
2541
|
+
// 'Document'
|
|
2542
|
+
// 'MimeTypeArray'
|
|
2543
|
+
// 'PluginArray'
|
|
2544
|
+
// 'HTMLQuoteElement'
|
|
2545
|
+
// 'HTMLTableDataCellElement'
|
|
2546
|
+
// 'HTMLTableHeaderCellElement'
|
|
2547
|
+
// TODO: is type-detect never return 'object'?
|
|
2548
|
+
// 'object'
|
|
2549
|
+
]);
|
|
2550
|
+
exports["default"] = _default;
|
|
2551
|
+
|
|
2552
|
+
/***/ }),
|
|
2553
|
+
|
|
2554
|
+
/***/ 5496:
|
|
2555
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2556
|
+
|
|
2557
|
+
"use strict";
|
|
2558
|
+
var __webpack_unused_export__;
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
__webpack_require__(4114);
|
|
2562
|
+
__webpack_unused_export__ = ({
|
|
2563
|
+
value: true
|
|
2564
|
+
});
|
|
2565
|
+
exports["default"] = deepcopy;
|
|
2566
|
+
var _detector = __webpack_require__(1476);
|
|
2567
|
+
var _collection = __webpack_require__(6714);
|
|
2568
|
+
var _copier = __webpack_require__(4704);
|
|
2569
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
2570
|
+
var it;
|
|
2571
|
+
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
2572
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
2573
|
+
if (it) o = it;
|
|
2574
|
+
var i = 0;
|
|
2575
|
+
var F = function F() {};
|
|
2576
|
+
return {
|
|
2577
|
+
s: F,
|
|
2578
|
+
n: function n() {
|
|
2579
|
+
if (i >= o.length) return {
|
|
2580
|
+
done: true
|
|
2581
|
+
};
|
|
2582
|
+
return {
|
|
2583
|
+
done: false,
|
|
2584
|
+
value: o[i++]
|
|
2585
|
+
};
|
|
2586
|
+
},
|
|
2587
|
+
e: function e(_e) {
|
|
2588
|
+
throw _e;
|
|
2589
|
+
},
|
|
2590
|
+
f: F
|
|
2591
|
+
};
|
|
2592
|
+
}
|
|
2593
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2594
|
+
}
|
|
2595
|
+
var normalCompletion = true,
|
|
2596
|
+
didErr = false,
|
|
2597
|
+
err;
|
|
2598
|
+
return {
|
|
2599
|
+
s: function s() {
|
|
2600
|
+
it = o[Symbol.iterator]();
|
|
2601
|
+
},
|
|
2602
|
+
n: function n() {
|
|
2603
|
+
var step = it.next();
|
|
2604
|
+
normalCompletion = step.done;
|
|
2605
|
+
return step;
|
|
2606
|
+
},
|
|
2607
|
+
e: function e(_e2) {
|
|
2608
|
+
didErr = true;
|
|
2609
|
+
err = _e2;
|
|
2610
|
+
},
|
|
2611
|
+
f: function f() {
|
|
2612
|
+
try {
|
|
2613
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
2614
|
+
} finally {
|
|
2615
|
+
if (didErr) throw err;
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
2621
|
+
if (!o) return;
|
|
2622
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
2623
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2624
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2625
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
2626
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
2627
|
+
}
|
|
2628
|
+
function _arrayLikeToArray(arr, len) {
|
|
2629
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2630
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
2631
|
+
return arr2;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* deepcopy function
|
|
2636
|
+
*
|
|
2637
|
+
* @param {*} value
|
|
2638
|
+
* @param {Object|Function} [options]
|
|
2639
|
+
* @return {*}
|
|
2640
|
+
*/
|
|
2641
|
+
function deepcopy(value, options = {}) {
|
|
2642
|
+
if (typeof options === 'function') {
|
|
2643
|
+
options = {
|
|
2644
|
+
customizer: options
|
|
2645
|
+
};
|
|
2646
|
+
}
|
|
2647
|
+
const _options = options,
|
|
2648
|
+
customizer = _options.customizer;
|
|
2649
|
+
const valueType = (0, _detector.detectType)(value);
|
|
2650
|
+
if (!(0, _collection.isCollection)(valueType)) {
|
|
2651
|
+
return recursiveCopy(value, null, null, null, customizer);
|
|
2652
|
+
}
|
|
2653
|
+
const copiedValue = (0, _copier.copy)(value, valueType, customizer);
|
|
2654
|
+
const references = new WeakMap([[value, copiedValue]]);
|
|
2655
|
+
const visited = new WeakSet([value]);
|
|
2656
|
+
return recursiveCopy(value, copiedValue, references, visited, customizer);
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* recursively copy
|
|
2660
|
+
*
|
|
2661
|
+
* @param {*} value target value
|
|
2662
|
+
* @param {*} clone clone of value
|
|
2663
|
+
* @param {WeakMap} references visited references of clone
|
|
2664
|
+
* @param {WeakSet} visited visited references of value
|
|
2665
|
+
* @param {Function} customizer user customize function
|
|
2666
|
+
* @return {*}
|
|
2667
|
+
*/
|
|
2668
|
+
|
|
2669
|
+
function recursiveCopy(value, clone, references, visited, customizer) {
|
|
2670
|
+
const type = (0, _detector.detectType)(value);
|
|
2671
|
+
const copiedValue = (0, _copier.copy)(value, type); // return if not a collection value
|
|
2672
|
+
|
|
2673
|
+
if (!(0, _collection.isCollection)(type)) {
|
|
2674
|
+
return copiedValue;
|
|
2675
|
+
}
|
|
2676
|
+
let keys;
|
|
2677
|
+
switch (type) {
|
|
2678
|
+
case 'Arguments':
|
|
2679
|
+
case 'Array':
|
|
2680
|
+
keys = Object.keys(value);
|
|
2681
|
+
break;
|
|
2682
|
+
case 'Object':
|
|
2683
|
+
keys = Object.keys(value);
|
|
2684
|
+
keys.push(...Object.getOwnPropertySymbols(value));
|
|
2685
|
+
break;
|
|
2686
|
+
case 'Map':
|
|
2687
|
+
case 'Set':
|
|
2688
|
+
keys = value.keys();
|
|
2689
|
+
break;
|
|
2690
|
+
default:
|
|
2691
|
+
} // walk within collection with iterator
|
|
2692
|
+
|
|
2693
|
+
var _iterator = _createForOfIteratorHelper(keys),
|
|
2694
|
+
_step;
|
|
2695
|
+
try {
|
|
2696
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2697
|
+
let collectionKey = _step.value;
|
|
2698
|
+
const collectionValue = (0, _collection.get)(value, collectionKey, type);
|
|
2699
|
+
if (visited.has(collectionValue)) {
|
|
2700
|
+
// for [Circular]
|
|
2701
|
+
(0, _collection.set)(clone, collectionKey, references.get(collectionValue), type);
|
|
2702
|
+
} else {
|
|
2703
|
+
const collectionValueType = (0, _detector.detectType)(collectionValue);
|
|
2704
|
+
const copiedCollectionValue = (0, _copier.copy)(collectionValue, collectionValueType); // save reference if value is collection
|
|
2705
|
+
|
|
2706
|
+
if ((0, _collection.isCollection)(collectionValueType)) {
|
|
2707
|
+
references.set(collectionValue, copiedCollectionValue);
|
|
2708
|
+
visited.add(collectionValue);
|
|
2709
|
+
}
|
|
2710
|
+
(0, _collection.set)(clone, collectionKey, recursiveCopy(collectionValue, copiedCollectionValue, references, visited, customizer), type);
|
|
2711
|
+
}
|
|
2712
|
+
} // TODO: isSealed/isFrozen/isExtensible
|
|
2713
|
+
} catch (err) {
|
|
2714
|
+
_iterator.e(err);
|
|
2715
|
+
} finally {
|
|
2716
|
+
_iterator.f();
|
|
2717
|
+
}
|
|
2718
|
+
return clone;
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
/***/ }),
|
|
2722
|
+
|
|
2723
|
+
/***/ 5537:
|
|
2724
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2725
|
+
|
|
2726
|
+
"use strict";
|
|
2727
|
+
|
|
2728
|
+
|
|
2729
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
2730
|
+
value: true
|
|
2731
|
+
}));
|
|
2732
|
+
exports.globalObject = void 0;
|
|
2733
|
+
const freeGlobalThis = typeof globalThis !== 'undefined' && globalThis !== null && globalThis.Object === Object && globalThis;
|
|
2734
|
+
const freeGlobal = typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g !== null && __webpack_require__.g.Object === Object && __webpack_require__.g;
|
|
2735
|
+
const freeSelf = typeof self !== 'undefined' && self !== null && self.Object === Object && self;
|
|
2736
|
+
const globalObject = freeGlobalThis || freeGlobal || freeSelf || Function('return this')();
|
|
2737
|
+
exports.globalObject = globalObject;
|
|
2738
|
+
|
|
2038
2739
|
/***/ }),
|
|
2039
2740
|
|
|
2040
2741
|
/***/ 5610:
|
|
@@ -2422,13 +3123,103 @@ module.exports = DESCRIPTORS ? function (object, key, value) {
|
|
|
2422
3123
|
var uncurryThis = __webpack_require__(9504);
|
|
2423
3124
|
var aCallable = __webpack_require__(9306);
|
|
2424
3125
|
|
|
2425
|
-
module.exports = function (object, key, method) {
|
|
2426
|
-
try {
|
|
2427
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2428
|
-
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
2429
|
-
} catch (error) { /* empty */ }
|
|
2430
|
-
};
|
|
3126
|
+
module.exports = function (object, key, method) {
|
|
3127
|
+
try {
|
|
3128
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3129
|
+
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
3130
|
+
} catch (error) { /* empty */ }
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
/***/ }),
|
|
3135
|
+
|
|
3136
|
+
/***/ 6714:
|
|
3137
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3138
|
+
|
|
3139
|
+
"use strict";
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
__webpack_require__(7642);
|
|
3143
|
+
__webpack_require__(8004);
|
|
3144
|
+
__webpack_require__(3853);
|
|
3145
|
+
__webpack_require__(5876);
|
|
3146
|
+
__webpack_require__(2475);
|
|
3147
|
+
__webpack_require__(5024);
|
|
3148
|
+
__webpack_require__(1698);
|
|
3149
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
3150
|
+
value: true
|
|
3151
|
+
}));
|
|
3152
|
+
exports.get = get;
|
|
3153
|
+
exports.isCollection = isCollection;
|
|
3154
|
+
exports.set = set;
|
|
3155
|
+
var _detector = __webpack_require__(1476);
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* collection types
|
|
3159
|
+
*/
|
|
3160
|
+
const collectionTypeSet = new Set(['Arguments', 'Array', 'Map', 'Object', 'Set']);
|
|
3161
|
+
/**
|
|
3162
|
+
* get value from collection
|
|
3163
|
+
*
|
|
3164
|
+
* @param {Array|Object|Map|Set} collection
|
|
3165
|
+
* @param {string|number|symbol} key
|
|
3166
|
+
* @param {string} [type=null]
|
|
3167
|
+
* @return {*}
|
|
3168
|
+
*/
|
|
3169
|
+
|
|
3170
|
+
function get(collection, key, type = null) {
|
|
3171
|
+
const valueType = type || (0, _detector.detectType)(collection);
|
|
3172
|
+
switch (valueType) {
|
|
3173
|
+
case 'Arguments':
|
|
3174
|
+
case 'Array':
|
|
3175
|
+
case 'Object':
|
|
3176
|
+
return collection[key];
|
|
3177
|
+
case 'Map':
|
|
3178
|
+
return collection.get(key);
|
|
3179
|
+
case 'Set':
|
|
3180
|
+
// NOTE: Set.prototype.keys is alias of Set.prototype.values
|
|
3181
|
+
// it means key is equals value
|
|
3182
|
+
return key;
|
|
3183
|
+
default:
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
/**
|
|
3187
|
+
* check to type string is collection
|
|
3188
|
+
*
|
|
3189
|
+
* @param {string} type
|
|
3190
|
+
*/
|
|
3191
|
+
|
|
3192
|
+
function isCollection(type) {
|
|
3193
|
+
return collectionTypeSet.has(type);
|
|
3194
|
+
}
|
|
3195
|
+
/**
|
|
3196
|
+
* set value to collection
|
|
3197
|
+
*
|
|
3198
|
+
* @param {Array|Object|Map|Set} collection
|
|
3199
|
+
* @param {string|number|symbol} key
|
|
3200
|
+
* @param {*} value
|
|
3201
|
+
* @param {string} [type=null]
|
|
3202
|
+
* @return {Array|Object|Map|Set}
|
|
3203
|
+
*/
|
|
2431
3204
|
|
|
3205
|
+
function set(collection, key, value, type = null) {
|
|
3206
|
+
const valueType = type || (0, _detector.detectType)(collection);
|
|
3207
|
+
switch (valueType) {
|
|
3208
|
+
case 'Arguments':
|
|
3209
|
+
case 'Array':
|
|
3210
|
+
case 'Object':
|
|
3211
|
+
collection[key] = value;
|
|
3212
|
+
break;
|
|
3213
|
+
case 'Map':
|
|
3214
|
+
collection.set(key, value);
|
|
3215
|
+
break;
|
|
3216
|
+
case 'Set':
|
|
3217
|
+
collection.add(value);
|
|
3218
|
+
break;
|
|
3219
|
+
default:
|
|
3220
|
+
}
|
|
3221
|
+
return collection;
|
|
3222
|
+
}
|
|
2432
3223
|
|
|
2433
3224
|
/***/ }),
|
|
2434
3225
|
|
|
@@ -2529,840 +3320,6 @@ module.exports = function (O, key, value, options) {
|
|
|
2529
3320
|
};
|
|
2530
3321
|
|
|
2531
3322
|
|
|
2532
|
-
/***/ }),
|
|
2533
|
-
|
|
2534
|
-
/***/ 6845:
|
|
2535
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2536
|
-
|
|
2537
|
-
__webpack_require__(4114);
|
|
2538
|
-
__webpack_require__(6573);
|
|
2539
|
-
__webpack_require__(8100);
|
|
2540
|
-
__webpack_require__(7936);
|
|
2541
|
-
__webpack_require__(7642);
|
|
2542
|
-
__webpack_require__(8004);
|
|
2543
|
-
__webpack_require__(3853);
|
|
2544
|
-
__webpack_require__(5876);
|
|
2545
|
-
__webpack_require__(2475);
|
|
2546
|
-
__webpack_require__(5024);
|
|
2547
|
-
__webpack_require__(1698);
|
|
2548
|
-
/*!
|
|
2549
|
-
* @license deepcopy.js Copyright(c) 2013 sasa+1
|
|
2550
|
-
* https://github.com/sasaplus1/deepcopy.js
|
|
2551
|
-
* Released under the MIT license.
|
|
2552
|
-
*
|
|
2553
|
-
* type-detect
|
|
2554
|
-
* Copyright(c) 2013 jake luer <jake@alogicalparadox.com>
|
|
2555
|
-
* MIT Licensed
|
|
2556
|
-
*/
|
|
2557
|
-
(function (global, factory) {
|
|
2558
|
-
true ? module.exports = factory() : 0;
|
|
2559
|
-
})(this, function () {
|
|
2560
|
-
'use strict';
|
|
2561
|
-
|
|
2562
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {};
|
|
2563
|
-
function createCommonjsModule(fn, module) {
|
|
2564
|
-
return module = {
|
|
2565
|
-
exports: {}
|
|
2566
|
-
}, fn(module, module.exports), module.exports;
|
|
2567
|
-
}
|
|
2568
|
-
var typeDetect = createCommonjsModule(function (module, exports) {
|
|
2569
|
-
(function (global, factory) {
|
|
2570
|
-
module.exports = factory();
|
|
2571
|
-
})(commonjsGlobal, function () {
|
|
2572
|
-
/* !
|
|
2573
|
-
* type-detect
|
|
2574
|
-
* Copyright(c) 2013 jake luer <jake@alogicalparadox.com>
|
|
2575
|
-
* MIT Licensed
|
|
2576
|
-
*/
|
|
2577
|
-
var promiseExists = typeof Promise === 'function';
|
|
2578
|
-
|
|
2579
|
-
/* eslint-disable no-undef */
|
|
2580
|
-
var globalObject = typeof self === 'object' ? self : commonjsGlobal; // eslint-disable-line id-blacklist
|
|
2581
|
-
|
|
2582
|
-
var symbolExists = typeof Symbol !== 'undefined';
|
|
2583
|
-
var mapExists = typeof Map !== 'undefined';
|
|
2584
|
-
var setExists = typeof Set !== 'undefined';
|
|
2585
|
-
var weakMapExists = typeof WeakMap !== 'undefined';
|
|
2586
|
-
var weakSetExists = typeof WeakSet !== 'undefined';
|
|
2587
|
-
var dataViewExists = typeof DataView !== 'undefined';
|
|
2588
|
-
var symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';
|
|
2589
|
-
var symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';
|
|
2590
|
-
var setEntriesExists = setExists && typeof Set.prototype.entries === 'function';
|
|
2591
|
-
var mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';
|
|
2592
|
-
var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());
|
|
2593
|
-
var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());
|
|
2594
|
-
var arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';
|
|
2595
|
-
var arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());
|
|
2596
|
-
var stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';
|
|
2597
|
-
var stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());
|
|
2598
|
-
var toStringLeftSliceLength = 8;
|
|
2599
|
-
var toStringRightSliceLength = -1;
|
|
2600
|
-
/**
|
|
2601
|
-
* ### typeOf (obj)
|
|
2602
|
-
*
|
|
2603
|
-
* Uses `Object.prototype.toString` to determine the type of an object,
|
|
2604
|
-
* normalising behaviour across engine versions & well optimised.
|
|
2605
|
-
*
|
|
2606
|
-
* @param {Mixed} object
|
|
2607
|
-
* @return {String} object type
|
|
2608
|
-
* @api public
|
|
2609
|
-
*/
|
|
2610
|
-
function typeDetect(obj) {
|
|
2611
|
-
/* ! Speed optimisation
|
|
2612
|
-
* Pre:
|
|
2613
|
-
* string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)
|
|
2614
|
-
* boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)
|
|
2615
|
-
* number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)
|
|
2616
|
-
* undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)
|
|
2617
|
-
* function x 2,556,769 ops/sec ±1.73% (77 runs sampled)
|
|
2618
|
-
* Post:
|
|
2619
|
-
* string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)
|
|
2620
|
-
* boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)
|
|
2621
|
-
* number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)
|
|
2622
|
-
* undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)
|
|
2623
|
-
* function x 31,296,870 ops/sec ±0.96% (83 runs sampled)
|
|
2624
|
-
*/
|
|
2625
|
-
var typeofObj = typeof obj;
|
|
2626
|
-
if (typeofObj !== 'object') {
|
|
2627
|
-
return typeofObj;
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
/* ! Speed optimisation
|
|
2631
|
-
* Pre:
|
|
2632
|
-
* null x 28,645,765 ops/sec ±1.17% (82 runs sampled)
|
|
2633
|
-
* Post:
|
|
2634
|
-
* null x 36,428,962 ops/sec ±1.37% (84 runs sampled)
|
|
2635
|
-
*/
|
|
2636
|
-
if (obj === null) {
|
|
2637
|
-
return 'null';
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
/* ! Spec Conformance
|
|
2641
|
-
* Test: `Object.prototype.toString.call(window)``
|
|
2642
|
-
* - Node === "[object global]"
|
|
2643
|
-
* - Chrome === "[object global]"
|
|
2644
|
-
* - Firefox === "[object Window]"
|
|
2645
|
-
* - PhantomJS === "[object Window]"
|
|
2646
|
-
* - Safari === "[object Window]"
|
|
2647
|
-
* - IE 11 === "[object Window]"
|
|
2648
|
-
* - IE Edge === "[object Window]"
|
|
2649
|
-
* Test: `Object.prototype.toString.call(this)``
|
|
2650
|
-
* - Chrome Worker === "[object global]"
|
|
2651
|
-
* - Firefox Worker === "[object DedicatedWorkerGlobalScope]"
|
|
2652
|
-
* - Safari Worker === "[object DedicatedWorkerGlobalScope]"
|
|
2653
|
-
* - IE 11 Worker === "[object WorkerGlobalScope]"
|
|
2654
|
-
* - IE Edge Worker === "[object WorkerGlobalScope]"
|
|
2655
|
-
*/
|
|
2656
|
-
if (obj === globalObject) {
|
|
2657
|
-
return 'global';
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
|
-
/* ! Speed optimisation
|
|
2661
|
-
* Pre:
|
|
2662
|
-
* array literal x 2,888,352 ops/sec ±0.67% (82 runs sampled)
|
|
2663
|
-
* Post:
|
|
2664
|
-
* array literal x 22,479,650 ops/sec ±0.96% (81 runs sampled)
|
|
2665
|
-
*/
|
|
2666
|
-
if (Array.isArray(obj) && (symbolToStringTagExists === false || !(Symbol.toStringTag in obj))) {
|
|
2667
|
-
return 'Array';
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
// Not caching existence of `window` and related properties due to potential
|
|
2671
|
-
// for `window` to be unset before tests in quasi-browser environments.
|
|
2672
|
-
if (typeof window === 'object' && window !== null) {
|
|
2673
|
-
/* ! Spec Conformance
|
|
2674
|
-
* (https://html.spec.whatwg.org/multipage/browsers.html#location)
|
|
2675
|
-
* WhatWG HTML$7.7.3 - The `Location` interface
|
|
2676
|
-
* Test: `Object.prototype.toString.call(window.location)``
|
|
2677
|
-
* - IE <=11 === "[object Object]"
|
|
2678
|
-
* - IE Edge <=13 === "[object Object]"
|
|
2679
|
-
*/
|
|
2680
|
-
if (typeof window.location === 'object' && obj === window.location) {
|
|
2681
|
-
return 'Location';
|
|
2682
|
-
}
|
|
2683
|
-
|
|
2684
|
-
/* ! Spec Conformance
|
|
2685
|
-
* (https://html.spec.whatwg.org/#document)
|
|
2686
|
-
* WhatWG HTML$3.1.1 - The `Document` object
|
|
2687
|
-
* Note: Most browsers currently adher to the W3C DOM Level 2 spec
|
|
2688
|
-
* (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-26809268)
|
|
2689
|
-
* which suggests that browsers should use HTMLTableCellElement for
|
|
2690
|
-
* both TD and TH elements. WhatWG separates these.
|
|
2691
|
-
* WhatWG HTML states:
|
|
2692
|
-
* > For historical reasons, Window objects must also have a
|
|
2693
|
-
* > writable, configurable, non-enumerable property named
|
|
2694
|
-
* > HTMLDocument whose value is the Document interface object.
|
|
2695
|
-
* Test: `Object.prototype.toString.call(document)``
|
|
2696
|
-
* - Chrome === "[object HTMLDocument]"
|
|
2697
|
-
* - Firefox === "[object HTMLDocument]"
|
|
2698
|
-
* - Safari === "[object HTMLDocument]"
|
|
2699
|
-
* - IE <=10 === "[object Document]"
|
|
2700
|
-
* - IE 11 === "[object HTMLDocument]"
|
|
2701
|
-
* - IE Edge <=13 === "[object HTMLDocument]"
|
|
2702
|
-
*/
|
|
2703
|
-
if (typeof window.document === 'object' && obj === window.document) {
|
|
2704
|
-
return 'Document';
|
|
2705
|
-
}
|
|
2706
|
-
if (typeof window.navigator === 'object') {
|
|
2707
|
-
/* ! Spec Conformance
|
|
2708
|
-
* (https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray)
|
|
2709
|
-
* WhatWG HTML$8.6.1.5 - Plugins - Interface MimeTypeArray
|
|
2710
|
-
* Test: `Object.prototype.toString.call(navigator.mimeTypes)``
|
|
2711
|
-
* - IE <=10 === "[object MSMimeTypesCollection]"
|
|
2712
|
-
*/
|
|
2713
|
-
if (typeof window.navigator.mimeTypes === 'object' && obj === window.navigator.mimeTypes) {
|
|
2714
|
-
return 'MimeTypeArray';
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
/* ! Spec Conformance
|
|
2718
|
-
* (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)
|
|
2719
|
-
* WhatWG HTML$8.6.1.5 - Plugins - Interface PluginArray
|
|
2720
|
-
* Test: `Object.prototype.toString.call(navigator.plugins)``
|
|
2721
|
-
* - IE <=10 === "[object MSPluginsCollection]"
|
|
2722
|
-
*/
|
|
2723
|
-
if (typeof window.navigator.plugins === 'object' && obj === window.navigator.plugins) {
|
|
2724
|
-
return 'PluginArray';
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
if ((typeof window.HTMLElement === 'function' || typeof window.HTMLElement === 'object') && obj instanceof window.HTMLElement) {
|
|
2728
|
-
/* ! Spec Conformance
|
|
2729
|
-
* (https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray)
|
|
2730
|
-
* WhatWG HTML$4.4.4 - The `blockquote` element - Interface `HTMLQuoteElement`
|
|
2731
|
-
* Test: `Object.prototype.toString.call(document.createElement('blockquote'))``
|
|
2732
|
-
* - IE <=10 === "[object HTMLBlockElement]"
|
|
2733
|
-
*/
|
|
2734
|
-
if (obj.tagName === 'BLOCKQUOTE') {
|
|
2735
|
-
return 'HTMLQuoteElement';
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
|
-
/* ! Spec Conformance
|
|
2739
|
-
* (https://html.spec.whatwg.org/#htmltabledatacellelement)
|
|
2740
|
-
* WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableDataCellElement`
|
|
2741
|
-
* Note: Most browsers currently adher to the W3C DOM Level 2 spec
|
|
2742
|
-
* (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)
|
|
2743
|
-
* which suggests that browsers should use HTMLTableCellElement for
|
|
2744
|
-
* both TD and TH elements. WhatWG separates these.
|
|
2745
|
-
* Test: Object.prototype.toString.call(document.createElement('td'))
|
|
2746
|
-
* - Chrome === "[object HTMLTableCellElement]"
|
|
2747
|
-
* - Firefox === "[object HTMLTableCellElement]"
|
|
2748
|
-
* - Safari === "[object HTMLTableCellElement]"
|
|
2749
|
-
*/
|
|
2750
|
-
if (obj.tagName === 'TD') {
|
|
2751
|
-
return 'HTMLTableDataCellElement';
|
|
2752
|
-
}
|
|
2753
|
-
|
|
2754
|
-
/* ! Spec Conformance
|
|
2755
|
-
* (https://html.spec.whatwg.org/#htmltableheadercellelement)
|
|
2756
|
-
* WhatWG HTML$4.9.9 - The `td` element - Interface `HTMLTableHeaderCellElement`
|
|
2757
|
-
* Note: Most browsers currently adher to the W3C DOM Level 2 spec
|
|
2758
|
-
* (https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-82915075)
|
|
2759
|
-
* which suggests that browsers should use HTMLTableCellElement for
|
|
2760
|
-
* both TD and TH elements. WhatWG separates these.
|
|
2761
|
-
* Test: Object.prototype.toString.call(document.createElement('th'))
|
|
2762
|
-
* - Chrome === "[object HTMLTableCellElement]"
|
|
2763
|
-
* - Firefox === "[object HTMLTableCellElement]"
|
|
2764
|
-
* - Safari === "[object HTMLTableCellElement]"
|
|
2765
|
-
*/
|
|
2766
|
-
if (obj.tagName === 'TH') {
|
|
2767
|
-
return 'HTMLTableHeaderCellElement';
|
|
2768
|
-
}
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
|
|
2772
|
-
/* ! Speed optimisation
|
|
2773
|
-
* Pre:
|
|
2774
|
-
* Float64Array x 625,644 ops/sec ±1.58% (80 runs sampled)
|
|
2775
|
-
* Float32Array x 1,279,852 ops/sec ±2.91% (77 runs sampled)
|
|
2776
|
-
* Uint32Array x 1,178,185 ops/sec ±1.95% (83 runs sampled)
|
|
2777
|
-
* Uint16Array x 1,008,380 ops/sec ±2.25% (80 runs sampled)
|
|
2778
|
-
* Uint8Array x 1,128,040 ops/sec ±2.11% (81 runs sampled)
|
|
2779
|
-
* Int32Array x 1,170,119 ops/sec ±2.88% (80 runs sampled)
|
|
2780
|
-
* Int16Array x 1,176,348 ops/sec ±5.79% (86 runs sampled)
|
|
2781
|
-
* Int8Array x 1,058,707 ops/sec ±4.94% (77 runs sampled)
|
|
2782
|
-
* Uint8ClampedArray x 1,110,633 ops/sec ±4.20% (80 runs sampled)
|
|
2783
|
-
* Post:
|
|
2784
|
-
* Float64Array x 7,105,671 ops/sec ±13.47% (64 runs sampled)
|
|
2785
|
-
* Float32Array x 5,887,912 ops/sec ±1.46% (82 runs sampled)
|
|
2786
|
-
* Uint32Array x 6,491,661 ops/sec ±1.76% (79 runs sampled)
|
|
2787
|
-
* Uint16Array x 6,559,795 ops/sec ±1.67% (82 runs sampled)
|
|
2788
|
-
* Uint8Array x 6,463,966 ops/sec ±1.43% (85 runs sampled)
|
|
2789
|
-
* Int32Array x 5,641,841 ops/sec ±3.49% (81 runs sampled)
|
|
2790
|
-
* Int16Array x 6,583,511 ops/sec ±1.98% (80 runs sampled)
|
|
2791
|
-
* Int8Array x 6,606,078 ops/sec ±1.74% (81 runs sampled)
|
|
2792
|
-
* Uint8ClampedArray x 6,602,224 ops/sec ±1.77% (83 runs sampled)
|
|
2793
|
-
*/
|
|
2794
|
-
var stringTag = symbolToStringTagExists && obj[Symbol.toStringTag];
|
|
2795
|
-
if (typeof stringTag === 'string') {
|
|
2796
|
-
return stringTag;
|
|
2797
|
-
}
|
|
2798
|
-
var objPrototype = Object.getPrototypeOf(obj);
|
|
2799
|
-
/* ! Speed optimisation
|
|
2800
|
-
* Pre:
|
|
2801
|
-
* regex literal x 1,772,385 ops/sec ±1.85% (77 runs sampled)
|
|
2802
|
-
* regex constructor x 2,143,634 ops/sec ±2.46% (78 runs sampled)
|
|
2803
|
-
* Post:
|
|
2804
|
-
* regex literal x 3,928,009 ops/sec ±0.65% (78 runs sampled)
|
|
2805
|
-
* regex constructor x 3,931,108 ops/sec ±0.58% (84 runs sampled)
|
|
2806
|
-
*/
|
|
2807
|
-
if (objPrototype === RegExp.prototype) {
|
|
2808
|
-
return 'RegExp';
|
|
2809
|
-
}
|
|
2810
|
-
|
|
2811
|
-
/* ! Speed optimisation
|
|
2812
|
-
* Pre:
|
|
2813
|
-
* date x 2,130,074 ops/sec ±4.42% (68 runs sampled)
|
|
2814
|
-
* Post:
|
|
2815
|
-
* date x 3,953,779 ops/sec ±1.35% (77 runs sampled)
|
|
2816
|
-
*/
|
|
2817
|
-
if (objPrototype === Date.prototype) {
|
|
2818
|
-
return 'Date';
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
/* ! Spec Conformance
|
|
2822
|
-
* (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag)
|
|
2823
|
-
* ES6$25.4.5.4 - Promise.prototype[@@toStringTag] should be "Promise":
|
|
2824
|
-
* Test: `Object.prototype.toString.call(Promise.resolve())``
|
|
2825
|
-
* - Chrome <=47 === "[object Object]"
|
|
2826
|
-
* - Edge <=20 === "[object Object]"
|
|
2827
|
-
* - Firefox 29-Latest === "[object Promise]"
|
|
2828
|
-
* - Safari 7.1-Latest === "[object Promise]"
|
|
2829
|
-
*/
|
|
2830
|
-
if (promiseExists && objPrototype === Promise.prototype) {
|
|
2831
|
-
return 'Promise';
|
|
2832
|
-
}
|
|
2833
|
-
|
|
2834
|
-
/* ! Speed optimisation
|
|
2835
|
-
* Pre:
|
|
2836
|
-
* set x 2,222,186 ops/sec ±1.31% (82 runs sampled)
|
|
2837
|
-
* Post:
|
|
2838
|
-
* set x 4,545,879 ops/sec ±1.13% (83 runs sampled)
|
|
2839
|
-
*/
|
|
2840
|
-
if (setExists && objPrototype === Set.prototype) {
|
|
2841
|
-
return 'Set';
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2844
|
-
/* ! Speed optimisation
|
|
2845
|
-
* Pre:
|
|
2846
|
-
* map x 2,396,842 ops/sec ±1.59% (81 runs sampled)
|
|
2847
|
-
* Post:
|
|
2848
|
-
* map x 4,183,945 ops/sec ±6.59% (82 runs sampled)
|
|
2849
|
-
*/
|
|
2850
|
-
if (mapExists && objPrototype === Map.prototype) {
|
|
2851
|
-
return 'Map';
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
/* ! Speed optimisation
|
|
2855
|
-
* Pre:
|
|
2856
|
-
* weakset x 1,323,220 ops/sec ±2.17% (76 runs sampled)
|
|
2857
|
-
* Post:
|
|
2858
|
-
* weakset x 4,237,510 ops/sec ±2.01% (77 runs sampled)
|
|
2859
|
-
*/
|
|
2860
|
-
if (weakSetExists && objPrototype === WeakSet.prototype) {
|
|
2861
|
-
return 'WeakSet';
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
/* ! Speed optimisation
|
|
2865
|
-
* Pre:
|
|
2866
|
-
* weakmap x 1,500,260 ops/sec ±2.02% (78 runs sampled)
|
|
2867
|
-
* Post:
|
|
2868
|
-
* weakmap x 3,881,384 ops/sec ±1.45% (82 runs sampled)
|
|
2869
|
-
*/
|
|
2870
|
-
if (weakMapExists && objPrototype === WeakMap.prototype) {
|
|
2871
|
-
return 'WeakMap';
|
|
2872
|
-
}
|
|
2873
|
-
|
|
2874
|
-
/* ! Spec Conformance
|
|
2875
|
-
* (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag)
|
|
2876
|
-
* ES6$24.2.4.21 - DataView.prototype[@@toStringTag] should be "DataView":
|
|
2877
|
-
* Test: `Object.prototype.toString.call(new DataView(new ArrayBuffer(1)))``
|
|
2878
|
-
* - Edge <=13 === "[object Object]"
|
|
2879
|
-
*/
|
|
2880
|
-
if (dataViewExists && objPrototype === DataView.prototype) {
|
|
2881
|
-
return 'DataView';
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
/* ! Spec Conformance
|
|
2885
|
-
* (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag)
|
|
2886
|
-
* ES6$23.1.5.2.2 - %MapIteratorPrototype%[@@toStringTag] should be "Map Iterator":
|
|
2887
|
-
* Test: `Object.prototype.toString.call(new Map().entries())``
|
|
2888
|
-
* - Edge <=13 === "[object Object]"
|
|
2889
|
-
*/
|
|
2890
|
-
if (mapExists && objPrototype === mapIteratorPrototype) {
|
|
2891
|
-
return 'Map Iterator';
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
/* ! Spec Conformance
|
|
2895
|
-
* (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag)
|
|
2896
|
-
* ES6$23.2.5.2.2 - %SetIteratorPrototype%[@@toStringTag] should be "Set Iterator":
|
|
2897
|
-
* Test: `Object.prototype.toString.call(new Set().entries())``
|
|
2898
|
-
* - Edge <=13 === "[object Object]"
|
|
2899
|
-
*/
|
|
2900
|
-
if (setExists && objPrototype === setIteratorPrototype) {
|
|
2901
|
-
return 'Set Iterator';
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
/* ! Spec Conformance
|
|
2905
|
-
* (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag)
|
|
2906
|
-
* ES6$22.1.5.2.2 - %ArrayIteratorPrototype%[@@toStringTag] should be "Array Iterator":
|
|
2907
|
-
* Test: `Object.prototype.toString.call([][Symbol.iterator]())``
|
|
2908
|
-
* - Edge <=13 === "[object Object]"
|
|
2909
|
-
*/
|
|
2910
|
-
if (arrayIteratorExists && objPrototype === arrayIteratorPrototype) {
|
|
2911
|
-
return 'Array Iterator';
|
|
2912
|
-
}
|
|
2913
|
-
|
|
2914
|
-
/* ! Spec Conformance
|
|
2915
|
-
* (http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag)
|
|
2916
|
-
* ES6$21.1.5.2.2 - %StringIteratorPrototype%[@@toStringTag] should be "String Iterator":
|
|
2917
|
-
* Test: `Object.prototype.toString.call(''[Symbol.iterator]())``
|
|
2918
|
-
* - Edge <=13 === "[object Object]"
|
|
2919
|
-
*/
|
|
2920
|
-
if (stringIteratorExists && objPrototype === stringIteratorPrototype) {
|
|
2921
|
-
return 'String Iterator';
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
|
-
/* ! Speed optimisation
|
|
2925
|
-
* Pre:
|
|
2926
|
-
* object from null x 2,424,320 ops/sec ±1.67% (76 runs sampled)
|
|
2927
|
-
* Post:
|
|
2928
|
-
* object from null x 5,838,000 ops/sec ±0.99% (84 runs sampled)
|
|
2929
|
-
*/
|
|
2930
|
-
if (objPrototype === null) {
|
|
2931
|
-
return 'Object';
|
|
2932
|
-
}
|
|
2933
|
-
return Object.prototype.toString.call(obj).slice(toStringLeftSliceLength, toStringRightSliceLength);
|
|
2934
|
-
}
|
|
2935
|
-
return typeDetect;
|
|
2936
|
-
});
|
|
2937
|
-
});
|
|
2938
|
-
const isBufferExists = typeof Buffer !== 'undefined';
|
|
2939
|
-
const isBufferFromExists = isBufferExists && typeof Buffer.from !== 'undefined';
|
|
2940
|
-
const isBuffer = isBufferExists ?
|
|
2941
|
-
/**
|
|
2942
|
-
* is value is Buffer?
|
|
2943
|
-
*
|
|
2944
|
-
* @param {*} value
|
|
2945
|
-
* @return {boolean}
|
|
2946
|
-
*/
|
|
2947
|
-
function isBuffer(value) {
|
|
2948
|
-
return Buffer.isBuffer(value);
|
|
2949
|
-
} :
|
|
2950
|
-
/**
|
|
2951
|
-
* return false
|
|
2952
|
-
*
|
|
2953
|
-
* NOTE: for Buffer unsupported
|
|
2954
|
-
*
|
|
2955
|
-
* @return {boolean}
|
|
2956
|
-
*/
|
|
2957
|
-
function isBuffer() {
|
|
2958
|
-
return false;
|
|
2959
|
-
};
|
|
2960
|
-
const copy = isBufferFromExists ?
|
|
2961
|
-
/**
|
|
2962
|
-
* copy Buffer
|
|
2963
|
-
*
|
|
2964
|
-
* @param {Buffer} value
|
|
2965
|
-
* @return {Buffer}
|
|
2966
|
-
*/
|
|
2967
|
-
function copy(value) {
|
|
2968
|
-
return Buffer.from(value);
|
|
2969
|
-
} : isBufferExists ?
|
|
2970
|
-
/**
|
|
2971
|
-
* copy Buffer
|
|
2972
|
-
*
|
|
2973
|
-
* NOTE: for old node.js
|
|
2974
|
-
*
|
|
2975
|
-
* @param {Buffer} value
|
|
2976
|
-
* @return {Buffer}
|
|
2977
|
-
*/
|
|
2978
|
-
function copy(value) {
|
|
2979
|
-
return new Buffer(value);
|
|
2980
|
-
} :
|
|
2981
|
-
/**
|
|
2982
|
-
* shallow copy
|
|
2983
|
-
*
|
|
2984
|
-
* NOTE: for Buffer unsupported
|
|
2985
|
-
*
|
|
2986
|
-
* @param {*}
|
|
2987
|
-
* @return {*}
|
|
2988
|
-
*/
|
|
2989
|
-
function copy(value) {
|
|
2990
|
-
return value;
|
|
2991
|
-
};
|
|
2992
|
-
|
|
2993
|
-
/**
|
|
2994
|
-
* detect type of value
|
|
2995
|
-
*
|
|
2996
|
-
* @param {*} value
|
|
2997
|
-
* @return {string}
|
|
2998
|
-
*/
|
|
2999
|
-
function detectType(value) {
|
|
3000
|
-
// NOTE: isBuffer must execute before type-detect,
|
|
3001
|
-
// because type-detect returns 'Uint8Array'.
|
|
3002
|
-
if (isBuffer(value)) {
|
|
3003
|
-
return 'Buffer';
|
|
3004
|
-
}
|
|
3005
|
-
return typeDetect(value);
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
/**
|
|
3009
|
-
* collection types
|
|
3010
|
-
*/
|
|
3011
|
-
const collectionTypeSet = new Set(['Arguments', 'Array', 'Map', 'Object', 'Set']);
|
|
3012
|
-
|
|
3013
|
-
/**
|
|
3014
|
-
* get value from collection
|
|
3015
|
-
*
|
|
3016
|
-
* @param {Array|Object|Map|Set} collection
|
|
3017
|
-
* @param {string|number|symbol} key
|
|
3018
|
-
* @param {string} [type=null]
|
|
3019
|
-
* @return {*}
|
|
3020
|
-
*/
|
|
3021
|
-
function get(collection, key, type = null) {
|
|
3022
|
-
const valueType = type || detectType(collection);
|
|
3023
|
-
switch (valueType) {
|
|
3024
|
-
case 'Arguments':
|
|
3025
|
-
case 'Array':
|
|
3026
|
-
case 'Object':
|
|
3027
|
-
return collection[key];
|
|
3028
|
-
case 'Map':
|
|
3029
|
-
return collection.get(key);
|
|
3030
|
-
case 'Set':
|
|
3031
|
-
// NOTE: Set.prototype.keys is alias of Set.prototype.values
|
|
3032
|
-
// it means key is equals value
|
|
3033
|
-
return key;
|
|
3034
|
-
}
|
|
3035
|
-
}
|
|
3036
|
-
|
|
3037
|
-
/**
|
|
3038
|
-
* check to type string is collection
|
|
3039
|
-
*
|
|
3040
|
-
* @param {string} type
|
|
3041
|
-
*/
|
|
3042
|
-
function isCollection(type) {
|
|
3043
|
-
return collectionTypeSet.has(type);
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3046
|
-
/**
|
|
3047
|
-
* set value to collection
|
|
3048
|
-
*
|
|
3049
|
-
* @param {Array|Object|Map|Set} collection
|
|
3050
|
-
* @param {string|number|symbol} key
|
|
3051
|
-
* @param {*} value
|
|
3052
|
-
* @param {string} [type=null]
|
|
3053
|
-
* @return {Array|Object|Map|Set}
|
|
3054
|
-
*/
|
|
3055
|
-
function set(collection, key, value, type = null) {
|
|
3056
|
-
const valueType = type || detectType(collection);
|
|
3057
|
-
switch (valueType) {
|
|
3058
|
-
case 'Arguments':
|
|
3059
|
-
case 'Array':
|
|
3060
|
-
case 'Object':
|
|
3061
|
-
collection[key] = value;
|
|
3062
|
-
break;
|
|
3063
|
-
case 'Map':
|
|
3064
|
-
collection.set(key, value);
|
|
3065
|
-
break;
|
|
3066
|
-
case 'Set':
|
|
3067
|
-
collection.add(value);
|
|
3068
|
-
break;
|
|
3069
|
-
}
|
|
3070
|
-
return collection;
|
|
3071
|
-
}
|
|
3072
|
-
const freeGlobalThis = typeof globalThis !== 'undefined' && globalThis !== null && globalThis.Object === Object && globalThis;
|
|
3073
|
-
const freeGlobal = typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g !== null && __webpack_require__.g.Object === Object && __webpack_require__.g;
|
|
3074
|
-
const freeSelf = typeof self !== 'undefined' && self !== null && self.Object === Object && self;
|
|
3075
|
-
const globalObject = freeGlobalThis || freeGlobal || freeSelf || Function('return this')();
|
|
3076
|
-
|
|
3077
|
-
/**
|
|
3078
|
-
* copy ArrayBuffer
|
|
3079
|
-
*
|
|
3080
|
-
* @param {ArrayBuffer} value
|
|
3081
|
-
* @return {ArrayBuffer}
|
|
3082
|
-
*/
|
|
3083
|
-
function copyArrayBuffer(value) {
|
|
3084
|
-
return value.slice(0);
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
/**
|
|
3088
|
-
* copy Boolean
|
|
3089
|
-
*
|
|
3090
|
-
* @param {Boolean} value
|
|
3091
|
-
* @return {Boolean}
|
|
3092
|
-
*/
|
|
3093
|
-
function copyBoolean(value) {
|
|
3094
|
-
return new Boolean(value.valueOf());
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
/**
|
|
3098
|
-
* copy DataView
|
|
3099
|
-
*
|
|
3100
|
-
* @param {DataView} value
|
|
3101
|
-
* @return {DataView}
|
|
3102
|
-
*/
|
|
3103
|
-
function copyDataView(value) {
|
|
3104
|
-
// TODO: copy ArrayBuffer?
|
|
3105
|
-
return new DataView(value.buffer);
|
|
3106
|
-
}
|
|
3107
|
-
|
|
3108
|
-
/**
|
|
3109
|
-
* copy Buffer
|
|
3110
|
-
*
|
|
3111
|
-
* @param {Buffer} value
|
|
3112
|
-
* @return {Buffer}
|
|
3113
|
-
*/
|
|
3114
|
-
function copyBuffer(value) {
|
|
3115
|
-
return copy(value);
|
|
3116
|
-
}
|
|
3117
|
-
|
|
3118
|
-
/**
|
|
3119
|
-
* copy Date
|
|
3120
|
-
*
|
|
3121
|
-
* @param {Date} value
|
|
3122
|
-
* @return {Date}
|
|
3123
|
-
*/
|
|
3124
|
-
function copyDate(value) {
|
|
3125
|
-
return new Date(value.getTime());
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* copy Number
|
|
3130
|
-
*
|
|
3131
|
-
* @param {Number} value
|
|
3132
|
-
* @return {Number}
|
|
3133
|
-
*/
|
|
3134
|
-
function copyNumber(value) {
|
|
3135
|
-
return new Number(value);
|
|
3136
|
-
}
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* copy RegExp
|
|
3140
|
-
*
|
|
3141
|
-
* @param {RegExp} value
|
|
3142
|
-
* @return {RegExp}
|
|
3143
|
-
*/
|
|
3144
|
-
function copyRegExp(value) {
|
|
3145
|
-
return new RegExp(value.source, value.flags);
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
|
-
/**
|
|
3149
|
-
* copy String
|
|
3150
|
-
*
|
|
3151
|
-
* @param {String} value
|
|
3152
|
-
* @return {String}
|
|
3153
|
-
*/
|
|
3154
|
-
function copyString(value) {
|
|
3155
|
-
return new String(value);
|
|
3156
|
-
}
|
|
3157
|
-
|
|
3158
|
-
/**
|
|
3159
|
-
* copy TypedArray
|
|
3160
|
-
*
|
|
3161
|
-
* @param {*} value
|
|
3162
|
-
* @return {*}
|
|
3163
|
-
*/
|
|
3164
|
-
function copyTypedArray(value, type) {
|
|
3165
|
-
const typedArray = globalObject[type];
|
|
3166
|
-
if (typedArray.from) {
|
|
3167
|
-
return globalObject[type].from(value);
|
|
3168
|
-
}
|
|
3169
|
-
return new globalObject[type](value);
|
|
3170
|
-
}
|
|
3171
|
-
|
|
3172
|
-
/**
|
|
3173
|
-
* shallow copy
|
|
3174
|
-
*
|
|
3175
|
-
* @param {*} value
|
|
3176
|
-
* @return {*}
|
|
3177
|
-
*/
|
|
3178
|
-
function shallowCopy(value) {
|
|
3179
|
-
return value;
|
|
3180
|
-
}
|
|
3181
|
-
|
|
3182
|
-
/**
|
|
3183
|
-
* get empty Array
|
|
3184
|
-
*
|
|
3185
|
-
* @return {Array}
|
|
3186
|
-
*/
|
|
3187
|
-
function getEmptyArray() {
|
|
3188
|
-
return [];
|
|
3189
|
-
}
|
|
3190
|
-
|
|
3191
|
-
/**
|
|
3192
|
-
* get empty Map
|
|
3193
|
-
*
|
|
3194
|
-
* @return {Map}
|
|
3195
|
-
*/
|
|
3196
|
-
function getEmptyMap() {
|
|
3197
|
-
return new Map();
|
|
3198
|
-
}
|
|
3199
|
-
|
|
3200
|
-
/**
|
|
3201
|
-
* get empty Object
|
|
3202
|
-
*
|
|
3203
|
-
* @return {Object}
|
|
3204
|
-
*/
|
|
3205
|
-
function getEmptyObject() {
|
|
3206
|
-
return {};
|
|
3207
|
-
}
|
|
3208
|
-
|
|
3209
|
-
/**
|
|
3210
|
-
* get empty Set
|
|
3211
|
-
*
|
|
3212
|
-
* @return {Set}
|
|
3213
|
-
*/
|
|
3214
|
-
function getEmptySet() {
|
|
3215
|
-
return new Set();
|
|
3216
|
-
}
|
|
3217
|
-
var copyMap = new Map([
|
|
3218
|
-
// deep copy
|
|
3219
|
-
['ArrayBuffer', copyArrayBuffer], ['Boolean', copyBoolean], ['Buffer', copyBuffer], ['DataView', copyDataView], ['Date', copyDate], ['Number', copyNumber], ['RegExp', copyRegExp], ['String', copyString],
|
|
3220
|
-
// typed arrays
|
|
3221
|
-
// TODO: pass bound function
|
|
3222
|
-
['Float32Array', copyTypedArray], ['Float64Array', copyTypedArray], ['Int16Array', copyTypedArray], ['Int32Array', copyTypedArray], ['Int8Array', copyTypedArray], ['Uint16Array', copyTypedArray], ['Uint32Array', copyTypedArray], ['Uint8Array', copyTypedArray], ['Uint8ClampedArray', copyTypedArray],
|
|
3223
|
-
// shallow copy
|
|
3224
|
-
['Array Iterator', shallowCopy], ['Map Iterator', shallowCopy], ['Promise', shallowCopy], ['Set Iterator', shallowCopy], ['String Iterator', shallowCopy], ['function', shallowCopy], ['global', shallowCopy],
|
|
3225
|
-
// NOTE: WeakMap and WeakSet cannot get entries
|
|
3226
|
-
['WeakMap', shallowCopy], ['WeakSet', shallowCopy],
|
|
3227
|
-
// primitives
|
|
3228
|
-
['boolean', shallowCopy], ['null', shallowCopy], ['number', shallowCopy], ['string', shallowCopy], ['symbol', shallowCopy], ['undefined', shallowCopy],
|
|
3229
|
-
// collections
|
|
3230
|
-
// NOTE: return empty value, because recursively copy later.
|
|
3231
|
-
['Arguments', getEmptyArray], ['Array', getEmptyArray], ['Map', getEmptyMap], ['Object', getEmptyObject], ['Set', getEmptySet]
|
|
3232
|
-
|
|
3233
|
-
// NOTE: type-detect returns following types
|
|
3234
|
-
// 'Location'
|
|
3235
|
-
// 'Document'
|
|
3236
|
-
// 'MimeTypeArray'
|
|
3237
|
-
// 'PluginArray'
|
|
3238
|
-
// 'HTMLQuoteElement'
|
|
3239
|
-
// 'HTMLTableDataCellElement'
|
|
3240
|
-
// 'HTMLTableHeaderCellElement'
|
|
3241
|
-
|
|
3242
|
-
// TODO: is type-detect never return 'object'?
|
|
3243
|
-
// 'object'
|
|
3244
|
-
]);
|
|
3245
|
-
|
|
3246
|
-
/**
|
|
3247
|
-
* no operation
|
|
3248
|
-
*/
|
|
3249
|
-
function noop() {}
|
|
3250
|
-
|
|
3251
|
-
/**
|
|
3252
|
-
* copy value
|
|
3253
|
-
*
|
|
3254
|
-
* @param {*} value
|
|
3255
|
-
* @param {string} [type=null]
|
|
3256
|
-
* @param {Function} [customizer=noop]
|
|
3257
|
-
* @return {*}
|
|
3258
|
-
*/
|
|
3259
|
-
function copy$1(value, type = null, customizer = noop) {
|
|
3260
|
-
if (arguments.length === 2 && typeof type === 'function') {
|
|
3261
|
-
customizer = type;
|
|
3262
|
-
type = null;
|
|
3263
|
-
}
|
|
3264
|
-
const valueType = type || detectType(value);
|
|
3265
|
-
const copyFunction = copyMap.get(valueType);
|
|
3266
|
-
if (valueType === 'Object') {
|
|
3267
|
-
const result = customizer(value, valueType);
|
|
3268
|
-
if (result !== undefined) {
|
|
3269
|
-
return result;
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
|
|
3273
|
-
// NOTE: TypedArray needs pass type to argument
|
|
3274
|
-
return copyFunction ? copyFunction(value, valueType) : value;
|
|
3275
|
-
}
|
|
3276
|
-
|
|
3277
|
-
/**
|
|
3278
|
-
* deepcopy function
|
|
3279
|
-
*
|
|
3280
|
-
* @param {*} value
|
|
3281
|
-
* @param {Object|Function} [options]
|
|
3282
|
-
* @return {*}
|
|
3283
|
-
*/
|
|
3284
|
-
function deepcopy(value, options = {}) {
|
|
3285
|
-
if (typeof options === 'function') {
|
|
3286
|
-
options = {
|
|
3287
|
-
customizer: options
|
|
3288
|
-
};
|
|
3289
|
-
}
|
|
3290
|
-
const {
|
|
3291
|
-
// TODO: before/after customizer
|
|
3292
|
-
customizer
|
|
3293
|
-
// TODO: max depth
|
|
3294
|
-
// depth = Infinity,
|
|
3295
|
-
} = options;
|
|
3296
|
-
const valueType = detectType(value);
|
|
3297
|
-
if (!isCollection(valueType)) {
|
|
3298
|
-
return recursiveCopy(value, null, null, null);
|
|
3299
|
-
}
|
|
3300
|
-
const copiedValue = copy$1(value, valueType, customizer);
|
|
3301
|
-
const references = new WeakMap([[value, copiedValue]]);
|
|
3302
|
-
const visited = new WeakSet([value]);
|
|
3303
|
-
return recursiveCopy(value, copiedValue, references, visited);
|
|
3304
|
-
}
|
|
3305
|
-
|
|
3306
|
-
/**
|
|
3307
|
-
* recursively copy
|
|
3308
|
-
*
|
|
3309
|
-
* @param {*} value target value
|
|
3310
|
-
* @param {*} clone clone of value
|
|
3311
|
-
* @param {WeakMap} references visited references of clone
|
|
3312
|
-
* @param {WeakSet} visited visited references of value
|
|
3313
|
-
* @param {Function} customizer user customize function
|
|
3314
|
-
* @return {*}
|
|
3315
|
-
*/
|
|
3316
|
-
function recursiveCopy(value, clone, references, visited, customizer) {
|
|
3317
|
-
const type = detectType(value);
|
|
3318
|
-
const copiedValue = copy$1(value, type);
|
|
3319
|
-
|
|
3320
|
-
// return if not a collection value
|
|
3321
|
-
if (!isCollection(type)) {
|
|
3322
|
-
return copiedValue;
|
|
3323
|
-
}
|
|
3324
|
-
let keys;
|
|
3325
|
-
switch (type) {
|
|
3326
|
-
case 'Arguments':
|
|
3327
|
-
case 'Array':
|
|
3328
|
-
keys = Object.keys(value);
|
|
3329
|
-
break;
|
|
3330
|
-
case 'Object':
|
|
3331
|
-
keys = Object.keys(value);
|
|
3332
|
-
keys.push(...Object.getOwnPropertySymbols(value));
|
|
3333
|
-
break;
|
|
3334
|
-
case 'Map':
|
|
3335
|
-
case 'Set':
|
|
3336
|
-
keys = value.keys();
|
|
3337
|
-
break;
|
|
3338
|
-
}
|
|
3339
|
-
|
|
3340
|
-
// walk within collection with iterator
|
|
3341
|
-
for (let collectionKey of keys) {
|
|
3342
|
-
const collectionValue = get(value, collectionKey, type);
|
|
3343
|
-
if (visited.has(collectionValue)) {
|
|
3344
|
-
// for [Circular]
|
|
3345
|
-
set(clone, collectionKey, references.get(collectionValue), type);
|
|
3346
|
-
} else {
|
|
3347
|
-
const collectionValueType = detectType(collectionValue);
|
|
3348
|
-
const copiedCollectionValue = copy$1(collectionValue, collectionValueType);
|
|
3349
|
-
|
|
3350
|
-
// save reference if value is collection
|
|
3351
|
-
if (isCollection(collectionValueType)) {
|
|
3352
|
-
references.set(collectionValue, copiedCollectionValue);
|
|
3353
|
-
visited.add(collectionValue);
|
|
3354
|
-
}
|
|
3355
|
-
set(clone, collectionKey, recursiveCopy(collectionValue, copiedCollectionValue, references, visited), type);
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
|
|
3359
|
-
// TODO: isSealed/isFrozen/isExtensible
|
|
3360
|
-
|
|
3361
|
-
return clone;
|
|
3362
|
-
}
|
|
3363
|
-
return deepcopy;
|
|
3364
|
-
});
|
|
3365
|
-
|
|
3366
3323
|
/***/ }),
|
|
3367
3324
|
|
|
3368
3325
|
/***/ 6955:
|
|
@@ -3907,7 +3864,7 @@ __webpack_require__(8237);
|
|
|
3907
3864
|
*/
|
|
3908
3865
|
|
|
3909
3866
|
(function (global, factory) {
|
|
3910
|
-
true ? module.exports = factory(__webpack_require__(
|
|
3867
|
+
true ? module.exports = factory(__webpack_require__(154)) : 0;
|
|
3911
3868
|
})(this, function (Vue) {
|
|
3912
3869
|
'use strict';
|
|
3913
3870
|
|
|
@@ -5645,14 +5602,6 @@ module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
|
5645
5602
|
};
|
|
5646
5603
|
|
|
5647
5604
|
|
|
5648
|
-
/***/ }),
|
|
5649
|
-
|
|
5650
|
-
/***/ 9588:
|
|
5651
|
-
/***/ (function(module) {
|
|
5652
|
-
|
|
5653
|
-
"use strict";
|
|
5654
|
-
module.exports = require("vue");
|
|
5655
|
-
|
|
5656
5605
|
/***/ }),
|
|
5657
5606
|
|
|
5658
5607
|
/***/ 9617:
|
|
@@ -5803,17 +5752,6 @@ module.exports = function (METHOD_NAME) {
|
|
|
5803
5752
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
5804
5753
|
/******/ }();
|
|
5805
5754
|
/******/
|
|
5806
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
5807
|
-
/******/ !function() {
|
|
5808
|
-
/******/ // define __esModule on exports
|
|
5809
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
5810
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
5811
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5812
|
-
/******/ }
|
|
5813
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5814
|
-
/******/ };
|
|
5815
|
-
/******/ }();
|
|
5816
|
-
/******/
|
|
5817
5755
|
/******/ /* webpack/runtime/publicPath */
|
|
5818
5756
|
/******/ !function() {
|
|
5819
5757
|
/******/ __webpack_require__.p = "";
|
|
@@ -5824,21 +5762,14 @@ var __webpack_exports__ = {};
|
|
|
5824
5762
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
5825
5763
|
!function() {
|
|
5826
5764
|
"use strict";
|
|
5827
|
-
// ESM COMPAT FLAG
|
|
5828
|
-
__webpack_require__.r(__webpack_exports__);
|
|
5829
5765
|
|
|
5830
5766
|
// EXPORTS
|
|
5831
5767
|
__webpack_require__.d(__webpack_exports__, {
|
|
5832
|
-
|
|
5833
|
-
UiBtns: function() { return /* reexport */ ui_btns; },
|
|
5834
|
-
UiDialog: function() { return /* reexport */ ui_dialog; },
|
|
5835
|
-
UiForm: function() { return /* reexport */ ui_form; },
|
|
5836
|
-
UiTable: function() { return /* reexport */ ui_table; },
|
|
5837
|
-
UiVirtualSelect: function() { return /* reexport */ ui_virtual_select; },
|
|
5838
|
-
"default": function() { return /* binding */ entry_lib; },
|
|
5839
|
-
install: function() { return /* reexport */ install; }
|
|
5768
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
5840
5769
|
});
|
|
5841
5770
|
|
|
5771
|
+
// UNUSED EXPORTS: Status, UiBtns, UiDialog, UiForm, UiTable, UiVirtualSelect
|
|
5772
|
+
|
|
5842
5773
|
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
5843
5774
|
/* eslint-disable no-var */
|
|
5844
5775
|
// This file is imported into lib/wc client bundles.
|
|
@@ -5857,6 +5788,10 @@ if (typeof window !== 'undefined') {
|
|
|
5857
5788
|
// Indicate to webpack that this file can be concatenated
|
|
5858
5789
|
/* harmony default export */ var setPublicPath = (null);
|
|
5859
5790
|
|
|
5791
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
5792
|
+
var es_iterator_constructor = __webpack_require__(8111);
|
|
5793
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.for-each.js
|
|
5794
|
+
var es_iterator_for_each = __webpack_require__(7588);
|
|
5860
5795
|
;// ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/elementConfig/ui-form/index.vue?vue&type=template&id=2113491c
|
|
5861
5796
|
var render = function render() {
|
|
5862
5797
|
var _vm = this,
|
|
@@ -5928,14 +5863,10 @@ var render = function render() {
|
|
|
5928
5863
|
};
|
|
5929
5864
|
var staticRenderFns = [];
|
|
5930
5865
|
|
|
5931
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|
|
5932
|
-
var es_iterator_constructor = __webpack_require__(8111);
|
|
5933
5866
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.every.js
|
|
5934
5867
|
var es_iterator_every = __webpack_require__(1148);
|
|
5935
|
-
// EXTERNAL MODULE: ./node_modules/
|
|
5936
|
-
var
|
|
5937
|
-
// EXTERNAL MODULE: ./node_modules/deepcopy/umd/deepcopy.js
|
|
5938
|
-
var deepcopy = __webpack_require__(6845);
|
|
5868
|
+
// EXTERNAL MODULE: ./node_modules/deepcopy/index.js
|
|
5869
|
+
var deepcopy = __webpack_require__(2129);
|
|
5939
5870
|
var deepcopy_default = /*#__PURE__*/__webpack_require__.n(deepcopy);
|
|
5940
5871
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/elementConfig/ui-form/index.vue?vue&type=script&lang=js
|
|
5941
5872
|
|
|
@@ -7139,37 +7070,38 @@ var ui_virtual_select_component = normalizeComponent(
|
|
|
7139
7070
|
;// ./src/elementConfig/index.js
|
|
7140
7071
|
|
|
7141
7072
|
|
|
7073
|
+
// import Vue from 'vue';
|
|
7142
7074
|
|
|
7143
7075
|
|
|
7144
7076
|
|
|
7145
7077
|
|
|
7146
|
-
|
|
7078
|
+
|
|
7079
|
+
|
|
7080
|
+
const components = [ui_form, ui_table, ui_btns, business_status, ui_dialog, ui_virtual_select].filter(component => component && component.name);
|
|
7147
7081
|
|
|
7148
7082
|
// 单独定义install函数
|
|
7149
|
-
const install = function (
|
|
7083
|
+
const install = function (VueInstance) {
|
|
7084
|
+
if (!VueInstance || !VueInstance.component) {
|
|
7085
|
+
console.warn('backend-management-ui: VueInstance is required');
|
|
7086
|
+
return;
|
|
7087
|
+
}
|
|
7150
7088
|
if (install.installed) return;
|
|
7151
7089
|
install.installed = true;
|
|
7152
7090
|
components.forEach(component => {
|
|
7153
|
-
|
|
7091
|
+
const comp = component.__esModule ? component.default : component;
|
|
7092
|
+
VueInstance.component(comp.name, comp);
|
|
7154
7093
|
});
|
|
7155
7094
|
};
|
|
7156
7095
|
if (typeof window !== 'undefined' && window.Vue) {
|
|
7157
7096
|
install(window.Vue);
|
|
7158
7097
|
}
|
|
7159
7098
|
|
|
7160
|
-
// 直接创建并导出插件对象
|
|
7161
|
-
const elementConfig_plugin = {
|
|
7162
|
-
install
|
|
7163
|
-
};
|
|
7164
|
-
|
|
7165
|
-
// 导出所有组件
|
|
7166
|
-
|
|
7167
7099
|
|
|
7168
7100
|
// 导出插件对象作为默认导出
|
|
7169
|
-
/* harmony default export */ var elementConfig = (
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7101
|
+
/* harmony default export */ var elementConfig = ({
|
|
7102
|
+
version: '1.4.6',
|
|
7103
|
+
install
|
|
7104
|
+
});
|
|
7173
7105
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
7174
7106
|
|
|
7175
7107
|
|
|
@@ -7177,7 +7109,9 @@ const elementConfig_plugin = {
|
|
|
7177
7109
|
|
|
7178
7110
|
|
|
7179
7111
|
}();
|
|
7180
|
-
|
|
7112
|
+
__webpack_exports__ = __webpack_exports__["default"];
|
|
7113
|
+
/******/ return __webpack_exports__;
|
|
7181
7114
|
/******/ })()
|
|
7182
7115
|
;
|
|
7116
|
+
});
|
|
7183
7117
|
//# sourceMappingURL=backend-management-ui.common.js.map
|