@rspress/shared 2.0.8 → 2.0.9
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/dist/584.js +710 -0
- package/dist/github-slugger.d.ts +47 -0
- package/dist/github-slugger.js +29 -0
- package/dist/gray-matter.d.ts +14 -0
- package/dist/gray-matter.js +2772 -0
- package/dist/gray-matter.js.LICENSE.txt +13 -0
- package/dist/index.d.ts +11 -0
- package/dist/lodash-es.d.ts +14 -0
- package/dist/lodash-es.js +678 -0
- package/dist/node-utils.d.ts +11 -0
- package/dist/node-utils.js +4 -6
- package/dist/rslib-runtime.js +38 -0
- package/package.json +18 -5
- package/LICENSE +0 -21
package/dist/584.js
ADDED
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
function listCacheClear() {
|
|
2
|
+
this.__data__ = [];
|
|
3
|
+
this.size = 0;
|
|
4
|
+
}
|
|
5
|
+
const _listCacheClear = listCacheClear;
|
|
6
|
+
function eq(value, other) {
|
|
7
|
+
return value === other || value !== value && other !== other;
|
|
8
|
+
}
|
|
9
|
+
const lodash_es_eq = eq;
|
|
10
|
+
function assocIndexOf(array, key) {
|
|
11
|
+
var length = array.length;
|
|
12
|
+
while(length--)if (lodash_es_eq(array[length][0], key)) return length;
|
|
13
|
+
return -1;
|
|
14
|
+
}
|
|
15
|
+
const _assocIndexOf = assocIndexOf;
|
|
16
|
+
var arrayProto = Array.prototype;
|
|
17
|
+
var splice = arrayProto.splice;
|
|
18
|
+
function listCacheDelete(key) {
|
|
19
|
+
var data = this.__data__, index = _assocIndexOf(data, key);
|
|
20
|
+
if (index < 0) return false;
|
|
21
|
+
var lastIndex = data.length - 1;
|
|
22
|
+
if (index == lastIndex) data.pop();
|
|
23
|
+
else splice.call(data, index, 1);
|
|
24
|
+
--this.size;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
const _listCacheDelete = listCacheDelete;
|
|
28
|
+
function listCacheGet(key) {
|
|
29
|
+
var data = this.__data__, index = _assocIndexOf(data, key);
|
|
30
|
+
return index < 0 ? void 0 : data[index][1];
|
|
31
|
+
}
|
|
32
|
+
const _listCacheGet = listCacheGet;
|
|
33
|
+
function listCacheHas(key) {
|
|
34
|
+
return _assocIndexOf(this.__data__, key) > -1;
|
|
35
|
+
}
|
|
36
|
+
const _listCacheHas = listCacheHas;
|
|
37
|
+
function listCacheSet(key, value) {
|
|
38
|
+
var data = this.__data__, index = _assocIndexOf(data, key);
|
|
39
|
+
if (index < 0) {
|
|
40
|
+
++this.size;
|
|
41
|
+
data.push([
|
|
42
|
+
key,
|
|
43
|
+
value
|
|
44
|
+
]);
|
|
45
|
+
} else data[index][1] = value;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
const _listCacheSet = listCacheSet;
|
|
49
|
+
function ListCache(entries) {
|
|
50
|
+
var index = -1, length = null == entries ? 0 : entries.length;
|
|
51
|
+
this.clear();
|
|
52
|
+
while(++index < length){
|
|
53
|
+
var entry = entries[index];
|
|
54
|
+
this.set(entry[0], entry[1]);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
ListCache.prototype.clear = _listCacheClear;
|
|
58
|
+
ListCache.prototype['delete'] = _listCacheDelete;
|
|
59
|
+
ListCache.prototype.get = _listCacheGet;
|
|
60
|
+
ListCache.prototype.has = _listCacheHas;
|
|
61
|
+
ListCache.prototype.set = _listCacheSet;
|
|
62
|
+
const _ListCache = ListCache;
|
|
63
|
+
function stackClear() {
|
|
64
|
+
this.__data__ = new _ListCache;
|
|
65
|
+
this.size = 0;
|
|
66
|
+
}
|
|
67
|
+
const _stackClear = stackClear;
|
|
68
|
+
function stackDelete(key) {
|
|
69
|
+
var data = this.__data__, result = data['delete'](key);
|
|
70
|
+
this.size = data.size;
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
const _stackDelete = stackDelete;
|
|
74
|
+
function stackGet(key) {
|
|
75
|
+
return this.__data__.get(key);
|
|
76
|
+
}
|
|
77
|
+
const _stackGet = stackGet;
|
|
78
|
+
function stackHas(key) {
|
|
79
|
+
return this.__data__.has(key);
|
|
80
|
+
}
|
|
81
|
+
const _stackHas = stackHas;
|
|
82
|
+
var freeGlobal = 'object' == typeof global && global && global.Object === Object && global;
|
|
83
|
+
const _freeGlobal = freeGlobal;
|
|
84
|
+
var freeSelf = 'object' == typeof self && self && self.Object === Object && self;
|
|
85
|
+
var root = _freeGlobal || freeSelf || Function('return this')();
|
|
86
|
+
const _root = root;
|
|
87
|
+
var Symbol = _root.Symbol;
|
|
88
|
+
const _Symbol = Symbol;
|
|
89
|
+
var objectProto = Object.prototype;
|
|
90
|
+
var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;
|
|
91
|
+
var nativeObjectToString = objectProto.toString;
|
|
92
|
+
var symToStringTag = _Symbol ? _Symbol.toStringTag : void 0;
|
|
93
|
+
function getRawTag(value) {
|
|
94
|
+
var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
95
|
+
try {
|
|
96
|
+
value[symToStringTag] = void 0;
|
|
97
|
+
var unmasked = true;
|
|
98
|
+
} catch (e) {}
|
|
99
|
+
var result = nativeObjectToString.call(value);
|
|
100
|
+
if (unmasked) if (isOwn) value[symToStringTag] = tag;
|
|
101
|
+
else delete value[symToStringTag];
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
const _getRawTag = getRawTag;
|
|
105
|
+
var _objectToString_objectProto = Object.prototype;
|
|
106
|
+
var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;
|
|
107
|
+
function objectToString(value) {
|
|
108
|
+
return _objectToString_nativeObjectToString.call(value);
|
|
109
|
+
}
|
|
110
|
+
const _objectToString = objectToString;
|
|
111
|
+
var nullTag = '[object Null]', undefinedTag = '[object Undefined]';
|
|
112
|
+
var _baseGetTag_symToStringTag = _Symbol ? _Symbol.toStringTag : void 0;
|
|
113
|
+
function baseGetTag(value) {
|
|
114
|
+
if (null == value) return void 0 === value ? undefinedTag : nullTag;
|
|
115
|
+
return _baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value) ? _getRawTag(value) : _objectToString(value);
|
|
116
|
+
}
|
|
117
|
+
const _baseGetTag = baseGetTag;
|
|
118
|
+
function isObject(value) {
|
|
119
|
+
var type = typeof value;
|
|
120
|
+
return null != value && ('object' == type || 'function' == type);
|
|
121
|
+
}
|
|
122
|
+
const lodash_es_isObject = isObject;
|
|
123
|
+
var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]';
|
|
124
|
+
function isFunction(value) {
|
|
125
|
+
if (!lodash_es_isObject(value)) return false;
|
|
126
|
+
var tag = _baseGetTag(value);
|
|
127
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
128
|
+
}
|
|
129
|
+
const lodash_es_isFunction = isFunction;
|
|
130
|
+
var coreJsData = _root["__core-js_shared__"];
|
|
131
|
+
const _coreJsData = coreJsData;
|
|
132
|
+
var maskSrcKey = function() {
|
|
133
|
+
var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
|
|
134
|
+
return uid ? 'Symbol(src)_1.' + uid : '';
|
|
135
|
+
}();
|
|
136
|
+
function isMasked(func) {
|
|
137
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
138
|
+
}
|
|
139
|
+
const _isMasked = isMasked;
|
|
140
|
+
var funcProto = Function.prototype;
|
|
141
|
+
var funcToString = funcProto.toString;
|
|
142
|
+
function toSource(func) {
|
|
143
|
+
if (null != func) {
|
|
144
|
+
try {
|
|
145
|
+
return funcToString.call(func);
|
|
146
|
+
} catch (e) {}
|
|
147
|
+
try {
|
|
148
|
+
return func + '';
|
|
149
|
+
} catch (e) {}
|
|
150
|
+
}
|
|
151
|
+
return '';
|
|
152
|
+
}
|
|
153
|
+
const _toSource = toSource;
|
|
154
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
155
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
156
|
+
var _baseIsNative_funcProto = Function.prototype, _baseIsNative_objectProto = Object.prototype;
|
|
157
|
+
var _baseIsNative_funcToString = _baseIsNative_funcProto.toString;
|
|
158
|
+
var _baseIsNative_hasOwnProperty = _baseIsNative_objectProto.hasOwnProperty;
|
|
159
|
+
var reIsNative = RegExp('^' + _baseIsNative_funcToString.call(_baseIsNative_hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
|
|
160
|
+
function baseIsNative(value) {
|
|
161
|
+
if (!lodash_es_isObject(value) || _isMasked(value)) return false;
|
|
162
|
+
var pattern = lodash_es_isFunction(value) ? reIsNative : reIsHostCtor;
|
|
163
|
+
return pattern.test(_toSource(value));
|
|
164
|
+
}
|
|
165
|
+
const _baseIsNative = baseIsNative;
|
|
166
|
+
function getValue(object, key) {
|
|
167
|
+
return null == object ? void 0 : object[key];
|
|
168
|
+
}
|
|
169
|
+
const _getValue = getValue;
|
|
170
|
+
function getNative(object, key) {
|
|
171
|
+
var value = _getValue(object, key);
|
|
172
|
+
return _baseIsNative(value) ? value : void 0;
|
|
173
|
+
}
|
|
174
|
+
const _getNative = getNative;
|
|
175
|
+
var Map = _getNative(_root, 'Map');
|
|
176
|
+
const _Map = Map;
|
|
177
|
+
var nativeCreate = _getNative(Object, 'create');
|
|
178
|
+
const _nativeCreate = nativeCreate;
|
|
179
|
+
function hashClear() {
|
|
180
|
+
this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
|
|
181
|
+
this.size = 0;
|
|
182
|
+
}
|
|
183
|
+
const _hashClear = hashClear;
|
|
184
|
+
function hashDelete(key) {
|
|
185
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
186
|
+
this.size -= result ? 1 : 0;
|
|
187
|
+
return result;
|
|
188
|
+
}
|
|
189
|
+
const _hashDelete = hashDelete;
|
|
190
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
191
|
+
var _hashGet_objectProto = Object.prototype;
|
|
192
|
+
var _hashGet_hasOwnProperty = _hashGet_objectProto.hasOwnProperty;
|
|
193
|
+
function hashGet(key) {
|
|
194
|
+
var data = this.__data__;
|
|
195
|
+
if (_nativeCreate) {
|
|
196
|
+
var result = data[key];
|
|
197
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
198
|
+
}
|
|
199
|
+
return _hashGet_hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
200
|
+
}
|
|
201
|
+
const _hashGet = hashGet;
|
|
202
|
+
var _hashHas_objectProto = Object.prototype;
|
|
203
|
+
var _hashHas_hasOwnProperty = _hashHas_objectProto.hasOwnProperty;
|
|
204
|
+
function hashHas(key) {
|
|
205
|
+
var data = this.__data__;
|
|
206
|
+
return _nativeCreate ? void 0 !== data[key] : _hashHas_hasOwnProperty.call(data, key);
|
|
207
|
+
}
|
|
208
|
+
const _hashHas = hashHas;
|
|
209
|
+
var _hashSet_HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
210
|
+
function hashSet(key, value) {
|
|
211
|
+
var data = this.__data__;
|
|
212
|
+
this.size += this.has(key) ? 0 : 1;
|
|
213
|
+
data[key] = _nativeCreate && void 0 === value ? _hashSet_HASH_UNDEFINED : value;
|
|
214
|
+
return this;
|
|
215
|
+
}
|
|
216
|
+
const _hashSet = hashSet;
|
|
217
|
+
function Hash(entries) {
|
|
218
|
+
var index = -1, length = null == entries ? 0 : entries.length;
|
|
219
|
+
this.clear();
|
|
220
|
+
while(++index < length){
|
|
221
|
+
var entry = entries[index];
|
|
222
|
+
this.set(entry[0], entry[1]);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
Hash.prototype.clear = _hashClear;
|
|
226
|
+
Hash.prototype['delete'] = _hashDelete;
|
|
227
|
+
Hash.prototype.get = _hashGet;
|
|
228
|
+
Hash.prototype.has = _hashHas;
|
|
229
|
+
Hash.prototype.set = _hashSet;
|
|
230
|
+
const _Hash = Hash;
|
|
231
|
+
function mapCacheClear() {
|
|
232
|
+
this.size = 0;
|
|
233
|
+
this.__data__ = {
|
|
234
|
+
hash: new _Hash,
|
|
235
|
+
map: new (_Map || _ListCache),
|
|
236
|
+
string: new _Hash
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
const _mapCacheClear = mapCacheClear;
|
|
240
|
+
function isKeyable(value) {
|
|
241
|
+
var type = typeof value;
|
|
242
|
+
return 'string' == type || 'number' == type || 'symbol' == type || 'boolean' == type ? '__proto__' !== value : null === value;
|
|
243
|
+
}
|
|
244
|
+
const _isKeyable = isKeyable;
|
|
245
|
+
function getMapData(map, key) {
|
|
246
|
+
var data = map.__data__;
|
|
247
|
+
return _isKeyable(key) ? data['string' == typeof key ? 'string' : 'hash'] : data.map;
|
|
248
|
+
}
|
|
249
|
+
const _getMapData = getMapData;
|
|
250
|
+
function mapCacheDelete(key) {
|
|
251
|
+
var result = _getMapData(this, key)['delete'](key);
|
|
252
|
+
this.size -= result ? 1 : 0;
|
|
253
|
+
return result;
|
|
254
|
+
}
|
|
255
|
+
const _mapCacheDelete = mapCacheDelete;
|
|
256
|
+
function mapCacheGet(key) {
|
|
257
|
+
return _getMapData(this, key).get(key);
|
|
258
|
+
}
|
|
259
|
+
const _mapCacheGet = mapCacheGet;
|
|
260
|
+
function mapCacheHas(key) {
|
|
261
|
+
return _getMapData(this, key).has(key);
|
|
262
|
+
}
|
|
263
|
+
const _mapCacheHas = mapCacheHas;
|
|
264
|
+
function mapCacheSet(key, value) {
|
|
265
|
+
var data = _getMapData(this, key), size = data.size;
|
|
266
|
+
data.set(key, value);
|
|
267
|
+
this.size += data.size == size ? 0 : 1;
|
|
268
|
+
return this;
|
|
269
|
+
}
|
|
270
|
+
const _mapCacheSet = mapCacheSet;
|
|
271
|
+
function MapCache(entries) {
|
|
272
|
+
var index = -1, length = null == entries ? 0 : entries.length;
|
|
273
|
+
this.clear();
|
|
274
|
+
while(++index < length){
|
|
275
|
+
var entry = entries[index];
|
|
276
|
+
this.set(entry[0], entry[1]);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
MapCache.prototype.clear = _mapCacheClear;
|
|
280
|
+
MapCache.prototype['delete'] = _mapCacheDelete;
|
|
281
|
+
MapCache.prototype.get = _mapCacheGet;
|
|
282
|
+
MapCache.prototype.has = _mapCacheHas;
|
|
283
|
+
MapCache.prototype.set = _mapCacheSet;
|
|
284
|
+
const _MapCache = MapCache;
|
|
285
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
286
|
+
function stackSet(key, value) {
|
|
287
|
+
var data = this.__data__;
|
|
288
|
+
if (data instanceof _ListCache) {
|
|
289
|
+
var pairs = data.__data__;
|
|
290
|
+
if (!_Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
291
|
+
pairs.push([
|
|
292
|
+
key,
|
|
293
|
+
value
|
|
294
|
+
]);
|
|
295
|
+
this.size = ++data.size;
|
|
296
|
+
return this;
|
|
297
|
+
}
|
|
298
|
+
data = this.__data__ = new _MapCache(pairs);
|
|
299
|
+
}
|
|
300
|
+
data.set(key, value);
|
|
301
|
+
this.size = data.size;
|
|
302
|
+
return this;
|
|
303
|
+
}
|
|
304
|
+
const _stackSet = stackSet;
|
|
305
|
+
function Stack(entries) {
|
|
306
|
+
var data = this.__data__ = new _ListCache(entries);
|
|
307
|
+
this.size = data.size;
|
|
308
|
+
}
|
|
309
|
+
Stack.prototype.clear = _stackClear;
|
|
310
|
+
Stack.prototype['delete'] = _stackDelete;
|
|
311
|
+
Stack.prototype.get = _stackGet;
|
|
312
|
+
Stack.prototype.has = _stackHas;
|
|
313
|
+
Stack.prototype.set = _stackSet;
|
|
314
|
+
const _Stack = Stack;
|
|
315
|
+
var defineProperty = function() {
|
|
316
|
+
try {
|
|
317
|
+
var func = _getNative(Object, 'defineProperty');
|
|
318
|
+
func({}, '', {});
|
|
319
|
+
return func;
|
|
320
|
+
} catch (e) {}
|
|
321
|
+
}();
|
|
322
|
+
const _defineProperty = defineProperty;
|
|
323
|
+
function baseAssignValue(object, key, value) {
|
|
324
|
+
if ('__proto__' == key && _defineProperty) _defineProperty(object, key, {
|
|
325
|
+
configurable: true,
|
|
326
|
+
enumerable: true,
|
|
327
|
+
value: value,
|
|
328
|
+
writable: true
|
|
329
|
+
});
|
|
330
|
+
else object[key] = value;
|
|
331
|
+
}
|
|
332
|
+
const _baseAssignValue = baseAssignValue;
|
|
333
|
+
function assignMergeValue(object, key, value) {
|
|
334
|
+
if (void 0 !== value && !lodash_es_eq(object[key], value) || void 0 === value && !(key in object)) _baseAssignValue(object, key, value);
|
|
335
|
+
}
|
|
336
|
+
const _assignMergeValue = assignMergeValue;
|
|
337
|
+
function createBaseFor(fromRight) {
|
|
338
|
+
return function(object, iteratee, keysFunc) {
|
|
339
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
340
|
+
while(length--){
|
|
341
|
+
var key = props[fromRight ? length : ++index];
|
|
342
|
+
if (false === iteratee(iterable[key], key, iterable)) break;
|
|
343
|
+
}
|
|
344
|
+
return object;
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
const _createBaseFor = createBaseFor;
|
|
348
|
+
var baseFor = _createBaseFor();
|
|
349
|
+
const _baseFor = baseFor;
|
|
350
|
+
var freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports;
|
|
351
|
+
var freeModule = freeExports && 'object' == typeof module && module && !module.nodeType && module;
|
|
352
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
353
|
+
var Buffer = moduleExports ? _root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
354
|
+
function cloneBuffer(buffer, isDeep) {
|
|
355
|
+
if (isDeep) return buffer.slice();
|
|
356
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
357
|
+
buffer.copy(result);
|
|
358
|
+
return result;
|
|
359
|
+
}
|
|
360
|
+
const _cloneBuffer = cloneBuffer;
|
|
361
|
+
var Uint8Array = _root.Uint8Array;
|
|
362
|
+
const _Uint8Array = Uint8Array;
|
|
363
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
364
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
365
|
+
new _Uint8Array(result).set(new _Uint8Array(arrayBuffer));
|
|
366
|
+
return result;
|
|
367
|
+
}
|
|
368
|
+
const _cloneArrayBuffer = cloneArrayBuffer;
|
|
369
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
370
|
+
var buffer = isDeep ? _cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
371
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
372
|
+
}
|
|
373
|
+
const _cloneTypedArray = cloneTypedArray;
|
|
374
|
+
function copyArray(source, array) {
|
|
375
|
+
var index = -1, length = source.length;
|
|
376
|
+
array || (array = Array(length));
|
|
377
|
+
while(++index < length)array[index] = source[index];
|
|
378
|
+
return array;
|
|
379
|
+
}
|
|
380
|
+
const _copyArray = copyArray;
|
|
381
|
+
var objectCreate = Object.create;
|
|
382
|
+
var baseCreate = function() {
|
|
383
|
+
function object() {}
|
|
384
|
+
return function(proto) {
|
|
385
|
+
if (!lodash_es_isObject(proto)) return {};
|
|
386
|
+
if (objectCreate) return objectCreate(proto);
|
|
387
|
+
object.prototype = proto;
|
|
388
|
+
var result = new object;
|
|
389
|
+
object.prototype = void 0;
|
|
390
|
+
return result;
|
|
391
|
+
};
|
|
392
|
+
}();
|
|
393
|
+
const _baseCreate = baseCreate;
|
|
394
|
+
function overArg(func, transform) {
|
|
395
|
+
return function(arg) {
|
|
396
|
+
return func(transform(arg));
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
const _overArg = overArg;
|
|
400
|
+
var getPrototype = _overArg(Object.getPrototypeOf, Object);
|
|
401
|
+
const _getPrototype = getPrototype;
|
|
402
|
+
var _isPrototype_objectProto = Object.prototype;
|
|
403
|
+
function isPrototype(value) {
|
|
404
|
+
var Ctor = value && value.constructor, proto = 'function' == typeof Ctor && Ctor.prototype || _isPrototype_objectProto;
|
|
405
|
+
return value === proto;
|
|
406
|
+
}
|
|
407
|
+
const _isPrototype = isPrototype;
|
|
408
|
+
function initCloneObject(object) {
|
|
409
|
+
return 'function' != typeof object.constructor || _isPrototype(object) ? {} : _baseCreate(_getPrototype(object));
|
|
410
|
+
}
|
|
411
|
+
const _initCloneObject = initCloneObject;
|
|
412
|
+
function isObjectLike(value) {
|
|
413
|
+
return null != value && 'object' == typeof value;
|
|
414
|
+
}
|
|
415
|
+
const lodash_es_isObjectLike = isObjectLike;
|
|
416
|
+
var argsTag = '[object Arguments]';
|
|
417
|
+
function baseIsArguments(value) {
|
|
418
|
+
return lodash_es_isObjectLike(value) && _baseGetTag(value) == argsTag;
|
|
419
|
+
}
|
|
420
|
+
const _baseIsArguments = baseIsArguments;
|
|
421
|
+
var isArguments_objectProto = Object.prototype;
|
|
422
|
+
var isArguments_hasOwnProperty = isArguments_objectProto.hasOwnProperty;
|
|
423
|
+
var propertyIsEnumerable = isArguments_objectProto.propertyIsEnumerable;
|
|
424
|
+
var isArguments = _baseIsArguments(function() {
|
|
425
|
+
return arguments;
|
|
426
|
+
}()) ? _baseIsArguments : function(value) {
|
|
427
|
+
return lodash_es_isObjectLike(value) && isArguments_hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
|
|
428
|
+
};
|
|
429
|
+
const lodash_es_isArguments = isArguments;
|
|
430
|
+
var isArray = Array.isArray;
|
|
431
|
+
const lodash_es_isArray = isArray;
|
|
432
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
433
|
+
function isLength(value) {
|
|
434
|
+
return 'number' == typeof value && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
435
|
+
}
|
|
436
|
+
const lodash_es_isLength = isLength;
|
|
437
|
+
function isArrayLike(value) {
|
|
438
|
+
return null != value && lodash_es_isLength(value.length) && !lodash_es_isFunction(value);
|
|
439
|
+
}
|
|
440
|
+
const lodash_es_isArrayLike = isArrayLike;
|
|
441
|
+
function isArrayLikeObject(value) {
|
|
442
|
+
return lodash_es_isObjectLike(value) && lodash_es_isArrayLike(value);
|
|
443
|
+
}
|
|
444
|
+
const lodash_es_isArrayLikeObject = isArrayLikeObject;
|
|
445
|
+
function stubFalse() {
|
|
446
|
+
return false;
|
|
447
|
+
}
|
|
448
|
+
const lodash_es_stubFalse = stubFalse;
|
|
449
|
+
var isBuffer_freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports;
|
|
450
|
+
var isBuffer_freeModule = isBuffer_freeExports && 'object' == typeof module && module && !module.nodeType && module;
|
|
451
|
+
var isBuffer_moduleExports = isBuffer_freeModule && isBuffer_freeModule.exports === isBuffer_freeExports;
|
|
452
|
+
var isBuffer_Buffer = isBuffer_moduleExports ? _root.Buffer : void 0;
|
|
453
|
+
var nativeIsBuffer = isBuffer_Buffer ? isBuffer_Buffer.isBuffer : void 0;
|
|
454
|
+
var isBuffer = nativeIsBuffer || lodash_es_stubFalse;
|
|
455
|
+
const lodash_es_isBuffer = isBuffer;
|
|
456
|
+
var objectTag = '[object Object]';
|
|
457
|
+
var isPlainObject_funcProto = Function.prototype, isPlainObject_objectProto = Object.prototype;
|
|
458
|
+
var isPlainObject_funcToString = isPlainObject_funcProto.toString;
|
|
459
|
+
var isPlainObject_hasOwnProperty = isPlainObject_objectProto.hasOwnProperty;
|
|
460
|
+
var objectCtorString = isPlainObject_funcToString.call(Object);
|
|
461
|
+
function isPlainObject(value) {
|
|
462
|
+
if (!lodash_es_isObjectLike(value) || _baseGetTag(value) != objectTag) return false;
|
|
463
|
+
var proto = _getPrototype(value);
|
|
464
|
+
if (null === proto) return true;
|
|
465
|
+
var Ctor = isPlainObject_hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
466
|
+
return 'function' == typeof Ctor && Ctor instanceof Ctor && isPlainObject_funcToString.call(Ctor) == objectCtorString;
|
|
467
|
+
}
|
|
468
|
+
const lodash_es_isPlainObject = isPlainObject;
|
|
469
|
+
var _baseIsTypedArray_argsTag = '[object Arguments]', arrayTag = '[object Array]', boolTag = '[object Boolean]', dateTag = '[object Date]', errorTag = '[object Error]', _baseIsTypedArray_funcTag = '[object Function]', mapTag = '[object Map]', numberTag = '[object Number]', _baseIsTypedArray_objectTag = '[object Object]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', weakMapTag = '[object WeakMap]';
|
|
470
|
+
var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]';
|
|
471
|
+
var typedArrayTags = {};
|
|
472
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
473
|
+
typedArrayTags[_baseIsTypedArray_argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[_baseIsTypedArray_funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[_baseIsTypedArray_objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
474
|
+
function baseIsTypedArray(value) {
|
|
475
|
+
return lodash_es_isObjectLike(value) && lodash_es_isLength(value.length) && !!typedArrayTags[_baseGetTag(value)];
|
|
476
|
+
}
|
|
477
|
+
const _baseIsTypedArray = baseIsTypedArray;
|
|
478
|
+
function baseUnary(func) {
|
|
479
|
+
return function(value) {
|
|
480
|
+
return func(value);
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
const _baseUnary = baseUnary;
|
|
484
|
+
var _nodeUtil_freeExports = 'object' == typeof exports && exports && !exports.nodeType && exports;
|
|
485
|
+
var _nodeUtil_freeModule = _nodeUtil_freeExports && 'object' == typeof module && module && !module.nodeType && module;
|
|
486
|
+
var _nodeUtil_moduleExports = _nodeUtil_freeModule && _nodeUtil_freeModule.exports === _nodeUtil_freeExports;
|
|
487
|
+
var freeProcess = _nodeUtil_moduleExports && _freeGlobal.process;
|
|
488
|
+
var nodeUtil = function() {
|
|
489
|
+
try {
|
|
490
|
+
var types = _nodeUtil_freeModule && _nodeUtil_freeModule.require && _nodeUtil_freeModule.require('util').types;
|
|
491
|
+
if (types) return types;
|
|
492
|
+
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
493
|
+
} catch (e) {}
|
|
494
|
+
}();
|
|
495
|
+
const _nodeUtil = nodeUtil;
|
|
496
|
+
var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
|
|
497
|
+
var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
|
|
498
|
+
const lodash_es_isTypedArray = isTypedArray;
|
|
499
|
+
function safeGet(object, key) {
|
|
500
|
+
if ('constructor' === key && 'function' == typeof object[key]) return;
|
|
501
|
+
if ('__proto__' == key) return;
|
|
502
|
+
return object[key];
|
|
503
|
+
}
|
|
504
|
+
const _safeGet = safeGet;
|
|
505
|
+
var _assignValue_objectProto = Object.prototype;
|
|
506
|
+
var _assignValue_hasOwnProperty = _assignValue_objectProto.hasOwnProperty;
|
|
507
|
+
function assignValue(object, key, value) {
|
|
508
|
+
var objValue = object[key];
|
|
509
|
+
if (!(_assignValue_hasOwnProperty.call(object, key) && lodash_es_eq(objValue, value)) || void 0 === value && !(key in object)) _baseAssignValue(object, key, value);
|
|
510
|
+
}
|
|
511
|
+
const _assignValue = assignValue;
|
|
512
|
+
function copyObject(source, props, object, customizer) {
|
|
513
|
+
var isNew = !object;
|
|
514
|
+
object || (object = {});
|
|
515
|
+
var index = -1, length = props.length;
|
|
516
|
+
while(++index < length){
|
|
517
|
+
var key = props[index];
|
|
518
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
519
|
+
if (void 0 === newValue) newValue = source[key];
|
|
520
|
+
if (isNew) _baseAssignValue(object, key, newValue);
|
|
521
|
+
else _assignValue(object, key, newValue);
|
|
522
|
+
}
|
|
523
|
+
return object;
|
|
524
|
+
}
|
|
525
|
+
const _copyObject = copyObject;
|
|
526
|
+
function baseTimes(n, iteratee) {
|
|
527
|
+
var index = -1, result = Array(n);
|
|
528
|
+
while(++index < n)result[index] = iteratee(index);
|
|
529
|
+
return result;
|
|
530
|
+
}
|
|
531
|
+
const _baseTimes = baseTimes;
|
|
532
|
+
var _isIndex_MAX_SAFE_INTEGER = 9007199254740991;
|
|
533
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
534
|
+
function isIndex(value, length) {
|
|
535
|
+
var type = typeof value;
|
|
536
|
+
length = null == length ? _isIndex_MAX_SAFE_INTEGER : length;
|
|
537
|
+
return !!length && ('number' == type || 'symbol' != type && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
538
|
+
}
|
|
539
|
+
const _isIndex = isIndex;
|
|
540
|
+
var _arrayLikeKeys_objectProto = Object.prototype;
|
|
541
|
+
var _arrayLikeKeys_hasOwnProperty = _arrayLikeKeys_objectProto.hasOwnProperty;
|
|
542
|
+
function arrayLikeKeys(value, inherited) {
|
|
543
|
+
var isArr = lodash_es_isArray(value), isArg = !isArr && lodash_es_isArguments(value), isBuff = !isArr && !isArg && lodash_es_isBuffer(value), isType = !isArr && !isArg && !isBuff && lodash_es_isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? _baseTimes(value.length, String) : [], length = result.length;
|
|
544
|
+
for(var key in value)if ((inherited || _arrayLikeKeys_hasOwnProperty.call(value, key)) && !(skipIndexes && ('length' == key || isBuff && ('offset' == key || 'parent' == key) || isType && ('buffer' == key || 'byteLength' == key || 'byteOffset' == key) || _isIndex(key, length)))) result.push(key);
|
|
545
|
+
return result;
|
|
546
|
+
}
|
|
547
|
+
const _arrayLikeKeys = arrayLikeKeys;
|
|
548
|
+
function nativeKeysIn(object) {
|
|
549
|
+
var result = [];
|
|
550
|
+
if (null != object) for(var key in Object(object))result.push(key);
|
|
551
|
+
return result;
|
|
552
|
+
}
|
|
553
|
+
const _nativeKeysIn = nativeKeysIn;
|
|
554
|
+
var _baseKeysIn_objectProto = Object.prototype;
|
|
555
|
+
var _baseKeysIn_hasOwnProperty = _baseKeysIn_objectProto.hasOwnProperty;
|
|
556
|
+
function baseKeysIn(object) {
|
|
557
|
+
if (!lodash_es_isObject(object)) return _nativeKeysIn(object);
|
|
558
|
+
var isProto = _isPrototype(object), result = [];
|
|
559
|
+
for(var key in object)if (!('constructor' == key && (isProto || !_baseKeysIn_hasOwnProperty.call(object, key)))) result.push(key);
|
|
560
|
+
return result;
|
|
561
|
+
}
|
|
562
|
+
const _baseKeysIn = baseKeysIn;
|
|
563
|
+
function keysIn(object) {
|
|
564
|
+
return lodash_es_isArrayLike(object) ? _arrayLikeKeys(object, true) : _baseKeysIn(object);
|
|
565
|
+
}
|
|
566
|
+
const lodash_es_keysIn = keysIn;
|
|
567
|
+
function toPlainObject(value) {
|
|
568
|
+
return _copyObject(value, lodash_es_keysIn(value));
|
|
569
|
+
}
|
|
570
|
+
const lodash_es_toPlainObject = toPlainObject;
|
|
571
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
572
|
+
var objValue = _safeGet(object, key), srcValue = _safeGet(source, key), stacked = stack.get(srcValue);
|
|
573
|
+
if (stacked) return void _assignMergeValue(object, key, stacked);
|
|
574
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : void 0;
|
|
575
|
+
var isCommon = void 0 === newValue;
|
|
576
|
+
if (isCommon) {
|
|
577
|
+
var isArr = lodash_es_isArray(srcValue), isBuff = !isArr && lodash_es_isBuffer(srcValue), isTyped = !isArr && !isBuff && lodash_es_isTypedArray(srcValue);
|
|
578
|
+
newValue = srcValue;
|
|
579
|
+
if (isArr || isBuff || isTyped) if (lodash_es_isArray(objValue)) newValue = objValue;
|
|
580
|
+
else if (lodash_es_isArrayLikeObject(objValue)) newValue = _copyArray(objValue);
|
|
581
|
+
else if (isBuff) {
|
|
582
|
+
isCommon = false;
|
|
583
|
+
newValue = _cloneBuffer(srcValue, true);
|
|
584
|
+
} else if (isTyped) {
|
|
585
|
+
isCommon = false;
|
|
586
|
+
newValue = _cloneTypedArray(srcValue, true);
|
|
587
|
+
} else newValue = [];
|
|
588
|
+
else if (lodash_es_isPlainObject(srcValue) || lodash_es_isArguments(srcValue)) {
|
|
589
|
+
newValue = objValue;
|
|
590
|
+
if (lodash_es_isArguments(objValue)) newValue = lodash_es_toPlainObject(objValue);
|
|
591
|
+
else if (!lodash_es_isObject(objValue) || lodash_es_isFunction(objValue)) newValue = _initCloneObject(srcValue);
|
|
592
|
+
} else isCommon = false;
|
|
593
|
+
}
|
|
594
|
+
if (isCommon) {
|
|
595
|
+
stack.set(srcValue, newValue);
|
|
596
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
597
|
+
stack['delete'](srcValue);
|
|
598
|
+
}
|
|
599
|
+
_assignMergeValue(object, key, newValue);
|
|
600
|
+
}
|
|
601
|
+
const _baseMergeDeep = baseMergeDeep;
|
|
602
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
603
|
+
if (object === source) return;
|
|
604
|
+
_baseFor(source, function(srcValue, key) {
|
|
605
|
+
stack || (stack = new _Stack);
|
|
606
|
+
if (lodash_es_isObject(srcValue)) _baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
607
|
+
else {
|
|
608
|
+
var newValue = customizer ? customizer(_safeGet(object, key), srcValue, key + '', object, source, stack) : void 0;
|
|
609
|
+
if (void 0 === newValue) newValue = srcValue;
|
|
610
|
+
_assignMergeValue(object, key, newValue);
|
|
611
|
+
}
|
|
612
|
+
}, lodash_es_keysIn);
|
|
613
|
+
}
|
|
614
|
+
const _baseMerge = baseMerge;
|
|
615
|
+
function identity(value) {
|
|
616
|
+
return value;
|
|
617
|
+
}
|
|
618
|
+
const lodash_es_identity = identity;
|
|
619
|
+
function apply(func, thisArg, args) {
|
|
620
|
+
switch(args.length){
|
|
621
|
+
case 0:
|
|
622
|
+
return func.call(thisArg);
|
|
623
|
+
case 1:
|
|
624
|
+
return func.call(thisArg, args[0]);
|
|
625
|
+
case 2:
|
|
626
|
+
return func.call(thisArg, args[0], args[1]);
|
|
627
|
+
case 3:
|
|
628
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
629
|
+
}
|
|
630
|
+
return func.apply(thisArg, args);
|
|
631
|
+
}
|
|
632
|
+
const _apply = apply;
|
|
633
|
+
var nativeMax = Math.max;
|
|
634
|
+
function overRest(func, start, transform) {
|
|
635
|
+
start = nativeMax(void 0 === start ? func.length - 1 : start, 0);
|
|
636
|
+
return function() {
|
|
637
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
638
|
+
while(++index < length)array[index] = args[start + index];
|
|
639
|
+
index = -1;
|
|
640
|
+
var otherArgs = Array(start + 1);
|
|
641
|
+
while(++index < start)otherArgs[index] = args[index];
|
|
642
|
+
otherArgs[start] = transform(array);
|
|
643
|
+
return _apply(func, this, otherArgs);
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
const _overRest = overRest;
|
|
647
|
+
function constant(value) {
|
|
648
|
+
return function() {
|
|
649
|
+
return value;
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
const lodash_es_constant = constant;
|
|
653
|
+
var baseSetToString = _defineProperty ? function(func, string) {
|
|
654
|
+
return _defineProperty(func, 'toString', {
|
|
655
|
+
configurable: true,
|
|
656
|
+
enumerable: false,
|
|
657
|
+
value: lodash_es_constant(string),
|
|
658
|
+
writable: true
|
|
659
|
+
});
|
|
660
|
+
} : lodash_es_identity;
|
|
661
|
+
const _baseSetToString = baseSetToString;
|
|
662
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
663
|
+
var nativeNow = Date.now;
|
|
664
|
+
function shortOut(func) {
|
|
665
|
+
var count = 0, lastCalled = 0;
|
|
666
|
+
return function() {
|
|
667
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
668
|
+
lastCalled = stamp;
|
|
669
|
+
if (remaining > 0) {
|
|
670
|
+
if (++count >= HOT_COUNT) return arguments[0];
|
|
671
|
+
} else count = 0;
|
|
672
|
+
return func.apply(void 0, arguments);
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
const _shortOut = shortOut;
|
|
676
|
+
var setToString = _shortOut(_baseSetToString);
|
|
677
|
+
const _setToString = setToString;
|
|
678
|
+
function baseRest(func, start) {
|
|
679
|
+
return _setToString(_overRest(func, start, lodash_es_identity), func + '');
|
|
680
|
+
}
|
|
681
|
+
const _baseRest = baseRest;
|
|
682
|
+
function isIterateeCall(value, index, object) {
|
|
683
|
+
if (!lodash_es_isObject(object)) return false;
|
|
684
|
+
var type = typeof index;
|
|
685
|
+
if ('number' == type ? lodash_es_isArrayLike(object) && _isIndex(index, object.length) : 'string' == type && index in object) return lodash_es_eq(object[index], value);
|
|
686
|
+
return false;
|
|
687
|
+
}
|
|
688
|
+
const _isIterateeCall = isIterateeCall;
|
|
689
|
+
function createAssigner(assigner) {
|
|
690
|
+
return _baseRest(function(object, sources) {
|
|
691
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
692
|
+
customizer = assigner.length > 3 && 'function' == typeof customizer ? (length--, customizer) : void 0;
|
|
693
|
+
if (guard && _isIterateeCall(sources[0], sources[1], guard)) {
|
|
694
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
695
|
+
length = 1;
|
|
696
|
+
}
|
|
697
|
+
object = Object(object);
|
|
698
|
+
while(++index < length){
|
|
699
|
+
var source = sources[index];
|
|
700
|
+
if (source) assigner(object, source, index, customizer);
|
|
701
|
+
}
|
|
702
|
+
return object;
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
const _createAssigner = createAssigner;
|
|
706
|
+
var mergeWith = _createAssigner(function(object, source, srcIndex, customizer) {
|
|
707
|
+
_baseMerge(object, source, srcIndex, customizer);
|
|
708
|
+
});
|
|
709
|
+
const lodash_es_mergeWith = mergeWith;
|
|
710
|
+
export { _Map, _MapCache, _Stack, _Symbol, _Uint8Array, _arrayLikeKeys, _baseAssignValue, _baseFor, _baseGetTag, _getNative, _isIndex, _isIterateeCall, _isPrototype, _overArg, _root, _toSource, lodash_es_eq, lodash_es_identity, lodash_es_isArguments, lodash_es_isArray, lodash_es_isArrayLike, lodash_es_isBuffer, lodash_es_isLength, lodash_es_isObject, lodash_es_isObjectLike, lodash_es_isTypedArray, lodash_es_mergeWith as mergeWith };
|