@ruan-cat/utils 1.3.3 → 1.3.5
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/index.cjs +1002 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +963 -0
- package/dist/index.js.map +1 -0
- package/package.json +2 -2
package/dist/index.js
ADDED
|
@@ -0,0 +1,963 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
2
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
3
|
+
var freeGlobal_default = freeGlobal;
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
|
|
6
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
7
|
+
var root = freeGlobal_default || freeSelf || Function("return this")();
|
|
8
|
+
var root_default = root;
|
|
9
|
+
|
|
10
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
|
|
11
|
+
var Symbol = root_default.Symbol;
|
|
12
|
+
var Symbol_default = Symbol;
|
|
13
|
+
|
|
14
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
|
|
15
|
+
var objectProto = Object.prototype;
|
|
16
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
17
|
+
var nativeObjectToString = objectProto.toString;
|
|
18
|
+
var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
|
|
19
|
+
function getRawTag(value) {
|
|
20
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
21
|
+
try {
|
|
22
|
+
value[symToStringTag] = void 0;
|
|
23
|
+
var unmasked = true;
|
|
24
|
+
} catch (e) {
|
|
25
|
+
}
|
|
26
|
+
var result = nativeObjectToString.call(value);
|
|
27
|
+
if (unmasked) {
|
|
28
|
+
if (isOwn) {
|
|
29
|
+
value[symToStringTag] = tag;
|
|
30
|
+
} else {
|
|
31
|
+
delete value[symToStringTag];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
var getRawTag_default = getRawTag;
|
|
37
|
+
|
|
38
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
|
|
39
|
+
var objectProto2 = Object.prototype;
|
|
40
|
+
var nativeObjectToString2 = objectProto2.toString;
|
|
41
|
+
function objectToString(value) {
|
|
42
|
+
return nativeObjectToString2.call(value);
|
|
43
|
+
}
|
|
44
|
+
var objectToString_default = objectToString;
|
|
45
|
+
|
|
46
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
|
|
47
|
+
var nullTag = "[object Null]";
|
|
48
|
+
var undefinedTag = "[object Undefined]";
|
|
49
|
+
var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
|
|
50
|
+
function baseGetTag(value) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
53
|
+
}
|
|
54
|
+
return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
|
|
55
|
+
}
|
|
56
|
+
var baseGetTag_default = baseGetTag;
|
|
57
|
+
|
|
58
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
59
|
+
function isObjectLike(value) {
|
|
60
|
+
return value != null && typeof value == "object";
|
|
61
|
+
}
|
|
62
|
+
var isObjectLike_default = isObjectLike;
|
|
63
|
+
|
|
64
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
|
|
65
|
+
var symbolTag = "[object Symbol]";
|
|
66
|
+
function isSymbol(value) {
|
|
67
|
+
return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
|
|
68
|
+
}
|
|
69
|
+
var isSymbol_default = isSymbol;
|
|
70
|
+
|
|
71
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
|
|
72
|
+
function arrayMap(array, iteratee) {
|
|
73
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
74
|
+
while (++index < length) {
|
|
75
|
+
result[index] = iteratee(array[index], index, array);
|
|
76
|
+
}
|
|
77
|
+
return result;
|
|
78
|
+
}
|
|
79
|
+
var arrayMap_default = arrayMap;
|
|
80
|
+
|
|
81
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
82
|
+
var isArray = Array.isArray;
|
|
83
|
+
var isArray_default = isArray;
|
|
84
|
+
|
|
85
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
|
|
86
|
+
var INFINITY = 1 / 0;
|
|
87
|
+
var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
|
|
88
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
89
|
+
function baseToString(value) {
|
|
90
|
+
if (typeof value == "string") {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
if (isArray_default(value)) {
|
|
94
|
+
return arrayMap_default(value, baseToString) + "";
|
|
95
|
+
}
|
|
96
|
+
if (isSymbol_default(value)) {
|
|
97
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
98
|
+
}
|
|
99
|
+
var result = value + "";
|
|
100
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
101
|
+
}
|
|
102
|
+
var baseToString_default = baseToString;
|
|
103
|
+
|
|
104
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
|
|
105
|
+
function isObject(value) {
|
|
106
|
+
var type = typeof value;
|
|
107
|
+
return value != null && (type == "object" || type == "function");
|
|
108
|
+
}
|
|
109
|
+
var isObject_default = isObject;
|
|
110
|
+
|
|
111
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js
|
|
112
|
+
function identity(value) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
var identity_default = identity;
|
|
116
|
+
|
|
117
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
|
|
118
|
+
var asyncTag = "[object AsyncFunction]";
|
|
119
|
+
var funcTag = "[object Function]";
|
|
120
|
+
var genTag = "[object GeneratorFunction]";
|
|
121
|
+
var proxyTag = "[object Proxy]";
|
|
122
|
+
function isFunction(value) {
|
|
123
|
+
if (!isObject_default(value)) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
var tag = baseGetTag_default(value);
|
|
127
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
128
|
+
}
|
|
129
|
+
var isFunction_default = isFunction;
|
|
130
|
+
|
|
131
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
|
|
132
|
+
var coreJsData = root_default["__core-js_shared__"];
|
|
133
|
+
var coreJsData_default = coreJsData;
|
|
134
|
+
|
|
135
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js
|
|
136
|
+
var maskSrcKey = function() {
|
|
137
|
+
var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
|
|
138
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
139
|
+
}();
|
|
140
|
+
function isMasked(func) {
|
|
141
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
142
|
+
}
|
|
143
|
+
var isMasked_default = isMasked;
|
|
144
|
+
|
|
145
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
|
|
146
|
+
var funcProto = Function.prototype;
|
|
147
|
+
var funcToString = funcProto.toString;
|
|
148
|
+
function toSource(func) {
|
|
149
|
+
if (func != null) {
|
|
150
|
+
try {
|
|
151
|
+
return funcToString.call(func);
|
|
152
|
+
} catch (e) {
|
|
153
|
+
}
|
|
154
|
+
try {
|
|
155
|
+
return func + "";
|
|
156
|
+
} catch (e) {
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return "";
|
|
160
|
+
}
|
|
161
|
+
var toSource_default = toSource;
|
|
162
|
+
|
|
163
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js
|
|
164
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
165
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
166
|
+
var funcProto2 = Function.prototype;
|
|
167
|
+
var objectProto3 = Object.prototype;
|
|
168
|
+
var funcToString2 = funcProto2.toString;
|
|
169
|
+
var hasOwnProperty2 = objectProto3.hasOwnProperty;
|
|
170
|
+
var reIsNative = RegExp(
|
|
171
|
+
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
172
|
+
);
|
|
173
|
+
function baseIsNative(value) {
|
|
174
|
+
if (!isObject_default(value) || isMasked_default(value)) {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
|
|
178
|
+
return pattern.test(toSource_default(value));
|
|
179
|
+
}
|
|
180
|
+
var baseIsNative_default = baseIsNative;
|
|
181
|
+
|
|
182
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js
|
|
183
|
+
function getValue(object, key) {
|
|
184
|
+
return object == null ? void 0 : object[key];
|
|
185
|
+
}
|
|
186
|
+
var getValue_default = getValue;
|
|
187
|
+
|
|
188
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js
|
|
189
|
+
function getNative(object, key) {
|
|
190
|
+
var value = getValue_default(object, key);
|
|
191
|
+
return baseIsNative_default(value) ? value : void 0;
|
|
192
|
+
}
|
|
193
|
+
var getNative_default = getNative;
|
|
194
|
+
|
|
195
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
|
|
196
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
197
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
198
|
+
function isIndex(value, length) {
|
|
199
|
+
var type = typeof value;
|
|
200
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
201
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
202
|
+
}
|
|
203
|
+
var isIndex_default = isIndex;
|
|
204
|
+
|
|
205
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
|
|
206
|
+
function eq(value, other) {
|
|
207
|
+
return value === other || value !== value && other !== other;
|
|
208
|
+
}
|
|
209
|
+
var eq_default = eq;
|
|
210
|
+
|
|
211
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
|
|
212
|
+
var MAX_SAFE_INTEGER2 = 9007199254740991;
|
|
213
|
+
function isLength(value) {
|
|
214
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
215
|
+
}
|
|
216
|
+
var isLength_default = isLength;
|
|
217
|
+
|
|
218
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
|
|
219
|
+
function isArrayLike(value) {
|
|
220
|
+
return value != null && isLength_default(value.length) && !isFunction_default(value);
|
|
221
|
+
}
|
|
222
|
+
var isArrayLike_default = isArrayLike;
|
|
223
|
+
|
|
224
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
|
|
225
|
+
var objectProto4 = Object.prototype;
|
|
226
|
+
function isPrototype(value) {
|
|
227
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto4;
|
|
228
|
+
return value === proto;
|
|
229
|
+
}
|
|
230
|
+
var isPrototype_default = isPrototype;
|
|
231
|
+
|
|
232
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
|
|
233
|
+
function baseTimes(n, iteratee) {
|
|
234
|
+
var index = -1, result = Array(n);
|
|
235
|
+
while (++index < n) {
|
|
236
|
+
result[index] = iteratee(index);
|
|
237
|
+
}
|
|
238
|
+
return result;
|
|
239
|
+
}
|
|
240
|
+
var baseTimes_default = baseTimes;
|
|
241
|
+
|
|
242
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
|
|
243
|
+
var argsTag = "[object Arguments]";
|
|
244
|
+
function baseIsArguments(value) {
|
|
245
|
+
return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
|
|
246
|
+
}
|
|
247
|
+
var baseIsArguments_default = baseIsArguments;
|
|
248
|
+
|
|
249
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
|
|
250
|
+
var objectProto5 = Object.prototype;
|
|
251
|
+
var hasOwnProperty3 = objectProto5.hasOwnProperty;
|
|
252
|
+
var propertyIsEnumerable = objectProto5.propertyIsEnumerable;
|
|
253
|
+
var isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
|
|
254
|
+
return arguments;
|
|
255
|
+
}()) ? baseIsArguments_default : function(value) {
|
|
256
|
+
return isObjectLike_default(value) && hasOwnProperty3.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
257
|
+
};
|
|
258
|
+
var isArguments_default = isArguments;
|
|
259
|
+
|
|
260
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
|
|
261
|
+
function stubFalse() {
|
|
262
|
+
return false;
|
|
263
|
+
}
|
|
264
|
+
var stubFalse_default = stubFalse;
|
|
265
|
+
|
|
266
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
|
|
267
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
268
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
269
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
270
|
+
var Buffer = moduleExports ? root_default.Buffer : void 0;
|
|
271
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
272
|
+
var isBuffer = nativeIsBuffer || stubFalse_default;
|
|
273
|
+
var isBuffer_default = isBuffer;
|
|
274
|
+
|
|
275
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
|
|
276
|
+
var argsTag2 = "[object Arguments]";
|
|
277
|
+
var arrayTag = "[object Array]";
|
|
278
|
+
var boolTag = "[object Boolean]";
|
|
279
|
+
var dateTag = "[object Date]";
|
|
280
|
+
var errorTag = "[object Error]";
|
|
281
|
+
var funcTag2 = "[object Function]";
|
|
282
|
+
var mapTag = "[object Map]";
|
|
283
|
+
var numberTag = "[object Number]";
|
|
284
|
+
var objectTag = "[object Object]";
|
|
285
|
+
var regexpTag = "[object RegExp]";
|
|
286
|
+
var setTag = "[object Set]";
|
|
287
|
+
var stringTag = "[object String]";
|
|
288
|
+
var weakMapTag = "[object WeakMap]";
|
|
289
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
290
|
+
var dataViewTag = "[object DataView]";
|
|
291
|
+
var float32Tag = "[object Float32Array]";
|
|
292
|
+
var float64Tag = "[object Float64Array]";
|
|
293
|
+
var int8Tag = "[object Int8Array]";
|
|
294
|
+
var int16Tag = "[object Int16Array]";
|
|
295
|
+
var int32Tag = "[object Int32Array]";
|
|
296
|
+
var uint8Tag = "[object Uint8Array]";
|
|
297
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
298
|
+
var uint16Tag = "[object Uint16Array]";
|
|
299
|
+
var uint32Tag = "[object Uint32Array]";
|
|
300
|
+
var typedArrayTags = {};
|
|
301
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
302
|
+
typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
303
|
+
function baseIsTypedArray(value) {
|
|
304
|
+
return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
|
|
305
|
+
}
|
|
306
|
+
var baseIsTypedArray_default = baseIsTypedArray;
|
|
307
|
+
|
|
308
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
|
|
309
|
+
function baseUnary(func) {
|
|
310
|
+
return function(value) {
|
|
311
|
+
return func(value);
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
var baseUnary_default = baseUnary;
|
|
315
|
+
|
|
316
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
|
|
317
|
+
var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
318
|
+
var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
|
|
319
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
320
|
+
var freeProcess = moduleExports2 && freeGlobal_default.process;
|
|
321
|
+
var nodeUtil = function() {
|
|
322
|
+
try {
|
|
323
|
+
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
|
324
|
+
if (types) {
|
|
325
|
+
return types;
|
|
326
|
+
}
|
|
327
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
328
|
+
} catch (e) {
|
|
329
|
+
}
|
|
330
|
+
}();
|
|
331
|
+
var nodeUtil_default = nodeUtil;
|
|
332
|
+
|
|
333
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
|
|
334
|
+
var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
|
|
335
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
|
|
336
|
+
var isTypedArray_default = isTypedArray;
|
|
337
|
+
|
|
338
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
|
|
339
|
+
var objectProto6 = Object.prototype;
|
|
340
|
+
var hasOwnProperty4 = objectProto6.hasOwnProperty;
|
|
341
|
+
function arrayLikeKeys(value, inherited) {
|
|
342
|
+
var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
|
|
343
|
+
for (var key in value) {
|
|
344
|
+
if ((inherited || hasOwnProperty4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
345
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
346
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
347
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
348
|
+
isIndex_default(key, length)))) {
|
|
349
|
+
result.push(key);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return result;
|
|
353
|
+
}
|
|
354
|
+
var arrayLikeKeys_default = arrayLikeKeys;
|
|
355
|
+
|
|
356
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
357
|
+
function nativeKeysIn(object) {
|
|
358
|
+
var result = [];
|
|
359
|
+
if (object != null) {
|
|
360
|
+
for (var key in Object(object)) {
|
|
361
|
+
result.push(key);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return result;
|
|
365
|
+
}
|
|
366
|
+
var nativeKeysIn_default = nativeKeysIn;
|
|
367
|
+
|
|
368
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
|
|
369
|
+
var objectProto7 = Object.prototype;
|
|
370
|
+
var hasOwnProperty5 = objectProto7.hasOwnProperty;
|
|
371
|
+
function baseKeysIn(object) {
|
|
372
|
+
if (!isObject_default(object)) {
|
|
373
|
+
return nativeKeysIn_default(object);
|
|
374
|
+
}
|
|
375
|
+
var isProto = isPrototype_default(object), result = [];
|
|
376
|
+
for (var key in object) {
|
|
377
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty5.call(object, key)))) {
|
|
378
|
+
result.push(key);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return result;
|
|
382
|
+
}
|
|
383
|
+
var baseKeysIn_default = baseKeysIn;
|
|
384
|
+
|
|
385
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
|
|
386
|
+
function keysIn(object) {
|
|
387
|
+
return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
|
|
388
|
+
}
|
|
389
|
+
var keysIn_default = keysIn;
|
|
390
|
+
|
|
391
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
|
|
392
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
393
|
+
var reIsPlainProp = /^\w*$/;
|
|
394
|
+
function isKey(value, object) {
|
|
395
|
+
if (isArray_default(value)) {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
var type = typeof value;
|
|
399
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value)) {
|
|
400
|
+
return true;
|
|
401
|
+
}
|
|
402
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
403
|
+
}
|
|
404
|
+
var isKey_default = isKey;
|
|
405
|
+
|
|
406
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
|
|
407
|
+
var nativeCreate = getNative_default(Object, "create");
|
|
408
|
+
var nativeCreate_default = nativeCreate;
|
|
409
|
+
|
|
410
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
411
|
+
function hashClear() {
|
|
412
|
+
this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
|
|
413
|
+
this.size = 0;
|
|
414
|
+
}
|
|
415
|
+
var hashClear_default = hashClear;
|
|
416
|
+
|
|
417
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
|
|
418
|
+
function hashDelete(key) {
|
|
419
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
420
|
+
this.size -= result ? 1 : 0;
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
var hashDelete_default = hashDelete;
|
|
424
|
+
|
|
425
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
|
|
426
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
427
|
+
var objectProto8 = Object.prototype;
|
|
428
|
+
var hasOwnProperty6 = objectProto8.hasOwnProperty;
|
|
429
|
+
function hashGet(key) {
|
|
430
|
+
var data = this.__data__;
|
|
431
|
+
if (nativeCreate_default) {
|
|
432
|
+
var result = data[key];
|
|
433
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
434
|
+
}
|
|
435
|
+
return hasOwnProperty6.call(data, key) ? data[key] : void 0;
|
|
436
|
+
}
|
|
437
|
+
var hashGet_default = hashGet;
|
|
438
|
+
|
|
439
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
|
|
440
|
+
var objectProto9 = Object.prototype;
|
|
441
|
+
var hasOwnProperty7 = objectProto9.hasOwnProperty;
|
|
442
|
+
function hashHas(key) {
|
|
443
|
+
var data = this.__data__;
|
|
444
|
+
return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty7.call(data, key);
|
|
445
|
+
}
|
|
446
|
+
var hashHas_default = hashHas;
|
|
447
|
+
|
|
448
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
|
|
449
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
|
|
450
|
+
function hashSet(key, value) {
|
|
451
|
+
var data = this.__data__;
|
|
452
|
+
this.size += this.has(key) ? 0 : 1;
|
|
453
|
+
data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
|
|
454
|
+
return this;
|
|
455
|
+
}
|
|
456
|
+
var hashSet_default = hashSet;
|
|
457
|
+
|
|
458
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
|
|
459
|
+
function Hash(entries) {
|
|
460
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
461
|
+
this.clear();
|
|
462
|
+
while (++index < length) {
|
|
463
|
+
var entry = entries[index];
|
|
464
|
+
this.set(entry[0], entry[1]);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
Hash.prototype.clear = hashClear_default;
|
|
468
|
+
Hash.prototype["delete"] = hashDelete_default;
|
|
469
|
+
Hash.prototype.get = hashGet_default;
|
|
470
|
+
Hash.prototype.has = hashHas_default;
|
|
471
|
+
Hash.prototype.set = hashSet_default;
|
|
472
|
+
var Hash_default = Hash;
|
|
473
|
+
|
|
474
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
|
|
475
|
+
function listCacheClear() {
|
|
476
|
+
this.__data__ = [];
|
|
477
|
+
this.size = 0;
|
|
478
|
+
}
|
|
479
|
+
var listCacheClear_default = listCacheClear;
|
|
480
|
+
|
|
481
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
|
|
482
|
+
function assocIndexOf(array, key) {
|
|
483
|
+
var length = array.length;
|
|
484
|
+
while (length--) {
|
|
485
|
+
if (eq_default(array[length][0], key)) {
|
|
486
|
+
return length;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return -1;
|
|
490
|
+
}
|
|
491
|
+
var assocIndexOf_default = assocIndexOf;
|
|
492
|
+
|
|
493
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
|
|
494
|
+
var arrayProto = Array.prototype;
|
|
495
|
+
var splice = arrayProto.splice;
|
|
496
|
+
function listCacheDelete(key) {
|
|
497
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
498
|
+
if (index < 0) {
|
|
499
|
+
return false;
|
|
500
|
+
}
|
|
501
|
+
var lastIndex = data.length - 1;
|
|
502
|
+
if (index == lastIndex) {
|
|
503
|
+
data.pop();
|
|
504
|
+
} else {
|
|
505
|
+
splice.call(data, index, 1);
|
|
506
|
+
}
|
|
507
|
+
--this.size;
|
|
508
|
+
return true;
|
|
509
|
+
}
|
|
510
|
+
var listCacheDelete_default = listCacheDelete;
|
|
511
|
+
|
|
512
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
|
|
513
|
+
function listCacheGet(key) {
|
|
514
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
515
|
+
return index < 0 ? void 0 : data[index][1];
|
|
516
|
+
}
|
|
517
|
+
var listCacheGet_default = listCacheGet;
|
|
518
|
+
|
|
519
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
|
|
520
|
+
function listCacheHas(key) {
|
|
521
|
+
return assocIndexOf_default(this.__data__, key) > -1;
|
|
522
|
+
}
|
|
523
|
+
var listCacheHas_default = listCacheHas;
|
|
524
|
+
|
|
525
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
|
|
526
|
+
function listCacheSet(key, value) {
|
|
527
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
528
|
+
if (index < 0) {
|
|
529
|
+
++this.size;
|
|
530
|
+
data.push([key, value]);
|
|
531
|
+
} else {
|
|
532
|
+
data[index][1] = value;
|
|
533
|
+
}
|
|
534
|
+
return this;
|
|
535
|
+
}
|
|
536
|
+
var listCacheSet_default = listCacheSet;
|
|
537
|
+
|
|
538
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
|
|
539
|
+
function ListCache(entries) {
|
|
540
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
541
|
+
this.clear();
|
|
542
|
+
while (++index < length) {
|
|
543
|
+
var entry = entries[index];
|
|
544
|
+
this.set(entry[0], entry[1]);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
ListCache.prototype.clear = listCacheClear_default;
|
|
548
|
+
ListCache.prototype["delete"] = listCacheDelete_default;
|
|
549
|
+
ListCache.prototype.get = listCacheGet_default;
|
|
550
|
+
ListCache.prototype.has = listCacheHas_default;
|
|
551
|
+
ListCache.prototype.set = listCacheSet_default;
|
|
552
|
+
var ListCache_default = ListCache;
|
|
553
|
+
|
|
554
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
|
|
555
|
+
var Map2 = getNative_default(root_default, "Map");
|
|
556
|
+
var Map_default = Map2;
|
|
557
|
+
|
|
558
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
|
|
559
|
+
function mapCacheClear() {
|
|
560
|
+
this.size = 0;
|
|
561
|
+
this.__data__ = {
|
|
562
|
+
"hash": new Hash_default(),
|
|
563
|
+
"map": new (Map_default || ListCache_default)(),
|
|
564
|
+
"string": new Hash_default()
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
var mapCacheClear_default = mapCacheClear;
|
|
568
|
+
|
|
569
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
|
|
570
|
+
function isKeyable(value) {
|
|
571
|
+
var type = typeof value;
|
|
572
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
573
|
+
}
|
|
574
|
+
var isKeyable_default = isKeyable;
|
|
575
|
+
|
|
576
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
|
|
577
|
+
function getMapData(map, key) {
|
|
578
|
+
var data = map.__data__;
|
|
579
|
+
return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
580
|
+
}
|
|
581
|
+
var getMapData_default = getMapData;
|
|
582
|
+
|
|
583
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
|
|
584
|
+
function mapCacheDelete(key) {
|
|
585
|
+
var result = getMapData_default(this, key)["delete"](key);
|
|
586
|
+
this.size -= result ? 1 : 0;
|
|
587
|
+
return result;
|
|
588
|
+
}
|
|
589
|
+
var mapCacheDelete_default = mapCacheDelete;
|
|
590
|
+
|
|
591
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
|
|
592
|
+
function mapCacheGet(key) {
|
|
593
|
+
return getMapData_default(this, key).get(key);
|
|
594
|
+
}
|
|
595
|
+
var mapCacheGet_default = mapCacheGet;
|
|
596
|
+
|
|
597
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
|
|
598
|
+
function mapCacheHas(key) {
|
|
599
|
+
return getMapData_default(this, key).has(key);
|
|
600
|
+
}
|
|
601
|
+
var mapCacheHas_default = mapCacheHas;
|
|
602
|
+
|
|
603
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
|
|
604
|
+
function mapCacheSet(key, value) {
|
|
605
|
+
var data = getMapData_default(this, key), size = data.size;
|
|
606
|
+
data.set(key, value);
|
|
607
|
+
this.size += data.size == size ? 0 : 1;
|
|
608
|
+
return this;
|
|
609
|
+
}
|
|
610
|
+
var mapCacheSet_default = mapCacheSet;
|
|
611
|
+
|
|
612
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
|
|
613
|
+
function MapCache(entries) {
|
|
614
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
615
|
+
this.clear();
|
|
616
|
+
while (++index < length) {
|
|
617
|
+
var entry = entries[index];
|
|
618
|
+
this.set(entry[0], entry[1]);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
MapCache.prototype.clear = mapCacheClear_default;
|
|
622
|
+
MapCache.prototype["delete"] = mapCacheDelete_default;
|
|
623
|
+
MapCache.prototype.get = mapCacheGet_default;
|
|
624
|
+
MapCache.prototype.has = mapCacheHas_default;
|
|
625
|
+
MapCache.prototype.set = mapCacheSet_default;
|
|
626
|
+
var MapCache_default = MapCache;
|
|
627
|
+
|
|
628
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js
|
|
629
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
630
|
+
function memoize(func, resolver) {
|
|
631
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
632
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
633
|
+
}
|
|
634
|
+
var memoized = function() {
|
|
635
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
636
|
+
if (cache.has(key)) {
|
|
637
|
+
return cache.get(key);
|
|
638
|
+
}
|
|
639
|
+
var result = func.apply(this, args);
|
|
640
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
641
|
+
return result;
|
|
642
|
+
};
|
|
643
|
+
memoized.cache = new (memoize.Cache || MapCache_default)();
|
|
644
|
+
return memoized;
|
|
645
|
+
}
|
|
646
|
+
memoize.Cache = MapCache_default;
|
|
647
|
+
var memoize_default = memoize;
|
|
648
|
+
|
|
649
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js
|
|
650
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
651
|
+
function memoizeCapped(func) {
|
|
652
|
+
var result = memoize_default(func, function(key) {
|
|
653
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
654
|
+
cache.clear();
|
|
655
|
+
}
|
|
656
|
+
return key;
|
|
657
|
+
});
|
|
658
|
+
var cache = result.cache;
|
|
659
|
+
return result;
|
|
660
|
+
}
|
|
661
|
+
var memoizeCapped_default = memoizeCapped;
|
|
662
|
+
|
|
663
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js
|
|
664
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
665
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
666
|
+
var stringToPath = memoizeCapped_default(function(string) {
|
|
667
|
+
var result = [];
|
|
668
|
+
if (string.charCodeAt(0) === 46) {
|
|
669
|
+
result.push("");
|
|
670
|
+
}
|
|
671
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
672
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
673
|
+
});
|
|
674
|
+
return result;
|
|
675
|
+
});
|
|
676
|
+
var stringToPath_default = stringToPath;
|
|
677
|
+
|
|
678
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
|
|
679
|
+
function toString(value) {
|
|
680
|
+
return value == null ? "" : baseToString_default(value);
|
|
681
|
+
}
|
|
682
|
+
var toString_default = toString;
|
|
683
|
+
|
|
684
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js
|
|
685
|
+
function castPath(value, object) {
|
|
686
|
+
if (isArray_default(value)) {
|
|
687
|
+
return value;
|
|
688
|
+
}
|
|
689
|
+
return isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
|
|
690
|
+
}
|
|
691
|
+
var castPath_default = castPath;
|
|
692
|
+
|
|
693
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
|
|
694
|
+
var INFINITY2 = 1 / 0;
|
|
695
|
+
function toKey(value) {
|
|
696
|
+
if (typeof value == "string" || isSymbol_default(value)) {
|
|
697
|
+
return value;
|
|
698
|
+
}
|
|
699
|
+
var result = value + "";
|
|
700
|
+
return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
|
|
701
|
+
}
|
|
702
|
+
var toKey_default = toKey;
|
|
703
|
+
|
|
704
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js
|
|
705
|
+
function baseHasIn(object, key) {
|
|
706
|
+
return object != null && key in Object(object);
|
|
707
|
+
}
|
|
708
|
+
var baseHasIn_default = baseHasIn;
|
|
709
|
+
|
|
710
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js
|
|
711
|
+
function hasPath(object, path, hasFunc) {
|
|
712
|
+
path = castPath_default(path, object);
|
|
713
|
+
var index = -1, length = path.length, result = false;
|
|
714
|
+
while (++index < length) {
|
|
715
|
+
var key = toKey_default(path[index]);
|
|
716
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
object = object[key];
|
|
720
|
+
}
|
|
721
|
+
if (result || ++index != length) {
|
|
722
|
+
return result;
|
|
723
|
+
}
|
|
724
|
+
length = object == null ? 0 : object.length;
|
|
725
|
+
return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object));
|
|
726
|
+
}
|
|
727
|
+
var hasPath_default = hasPath;
|
|
728
|
+
|
|
729
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js
|
|
730
|
+
function hasIn(object, path) {
|
|
731
|
+
return object != null && hasPath_default(object, path, baseHasIn_default);
|
|
732
|
+
}
|
|
733
|
+
var hasIn_default = hasIn;
|
|
734
|
+
|
|
735
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
|
|
736
|
+
function createBaseFor(fromRight) {
|
|
737
|
+
return function(object, iteratee, keysFunc) {
|
|
738
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
739
|
+
while (length--) {
|
|
740
|
+
var key = props[fromRight ? length : ++index];
|
|
741
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return object;
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
var createBaseFor_default = createBaseFor;
|
|
749
|
+
|
|
750
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
|
|
751
|
+
var baseFor = createBaseFor_default();
|
|
752
|
+
var baseFor_default = baseFor;
|
|
753
|
+
|
|
754
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.js
|
|
755
|
+
function castFunction(value) {
|
|
756
|
+
return typeof value == "function" ? value : identity_default;
|
|
757
|
+
}
|
|
758
|
+
var castFunction_default = castFunction;
|
|
759
|
+
|
|
760
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forIn.js
|
|
761
|
+
function forIn(object, iteratee) {
|
|
762
|
+
return object == null ? object : baseFor_default(object, castFunction_default(iteratee), keysIn_default);
|
|
763
|
+
}
|
|
764
|
+
var forIn_default = forIn;
|
|
765
|
+
|
|
766
|
+
// ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqueId.js
|
|
767
|
+
var idCounter = 0;
|
|
768
|
+
function uniqueId(prefix) {
|
|
769
|
+
var id = ++idCounter;
|
|
770
|
+
return toString_default(prefix) + id;
|
|
771
|
+
}
|
|
772
|
+
var uniqueId_default = uniqueId;
|
|
773
|
+
|
|
774
|
+
// src/rmmv-class-expand-tools.ts
|
|
775
|
+
var defaultHandleStrategy = "source-first";
|
|
776
|
+
function isSourceFirst(handleStrategy) {
|
|
777
|
+
return handleStrategy === "source-first";
|
|
778
|
+
}
|
|
779
|
+
function isUserCodeCoverSource(handleStrategy) {
|
|
780
|
+
return handleStrategy === "userCode-cover-source";
|
|
781
|
+
}
|
|
782
|
+
function isUserCodeFirst(handleStrategy) {
|
|
783
|
+
return handleStrategy === "userCode-first";
|
|
784
|
+
}
|
|
785
|
+
var functionAlias = /* @__PURE__ */ new Map();
|
|
786
|
+
function generateFunctionAliasId(key) {
|
|
787
|
+
return uniqueId_default(`FunctionAliasId_${key}_`);
|
|
788
|
+
}
|
|
789
|
+
function rmmvClassExpandTools(params) {
|
|
790
|
+
const { source, userCode, config } = params;
|
|
791
|
+
const handleStrategyConfig = config;
|
|
792
|
+
function getHandleStrategy(key) {
|
|
793
|
+
return handleStrategyConfig?.[key] ?? defaultHandleStrategy;
|
|
794
|
+
}
|
|
795
|
+
const sourcePrototype = source.prototype;
|
|
796
|
+
function isInSourcePrototype(key) {
|
|
797
|
+
return hasIn_default(sourcePrototype, key);
|
|
798
|
+
}
|
|
799
|
+
function isInitialize(key) {
|
|
800
|
+
return key === "initialize";
|
|
801
|
+
}
|
|
802
|
+
forIn_default(userCode, function(value, key, object) {
|
|
803
|
+
console.log(` value, key, object `, value, key);
|
|
804
|
+
if (isInSourcePrototype(key)) {
|
|
805
|
+
if (isFunction_default(object[key])) {
|
|
806
|
+
const handleStrategy = getHandleStrategy(key);
|
|
807
|
+
if (isUserCodeCoverSource(handleStrategy)) {
|
|
808
|
+
sourcePrototype[key] = value;
|
|
809
|
+
}
|
|
810
|
+
if (isInitialize(key) || isSourceFirst(handleStrategy)) {
|
|
811
|
+
const functionAliasId = generateFunctionAliasId(key);
|
|
812
|
+
functionAlias.set(functionAliasId, sourcePrototype[key]);
|
|
813
|
+
sourcePrototype[key] = function() {
|
|
814
|
+
console.log(` \u8FDB\u5165\u5230\u4E8C\u6B21\u5C01\u88C5\u7684\u51FD\u6570 \u51FD\u6570id = `, functionAliasId);
|
|
815
|
+
functionAlias.get(functionAliasId).apply(this, arguments);
|
|
816
|
+
value.apply(this, arguments);
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
if (isUserCodeFirst(handleStrategy)) {
|
|
820
|
+
const functionAliasId = generateFunctionAliasId(key);
|
|
821
|
+
functionAlias.set(functionAliasId, sourcePrototype[key]);
|
|
822
|
+
sourcePrototype[key] = function() {
|
|
823
|
+
console.log(` \u8FDB\u5165\u5230\u4E8C\u6B21\u5C01\u88C5\u7684\u51FD\u6570 \u51FD\u6570id = `, functionAliasId);
|
|
824
|
+
value.apply(this, arguments);
|
|
825
|
+
functionAlias.get(functionAliasId).apply(this, arguments);
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
} else {
|
|
830
|
+
if (isFunction_default(object[key])) {
|
|
831
|
+
sourcePrototype[key] = value;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// src/conditions.ts
|
|
838
|
+
function isConditionsEvery(conditions) {
|
|
839
|
+
return conditions.every((condition) => condition());
|
|
840
|
+
}
|
|
841
|
+
function isConditionsSome(conditions) {
|
|
842
|
+
return conditions.some((condition) => condition());
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
// src/unplugin-vue-router/index.ts
|
|
846
|
+
var getRouteName = function _getRouteName(node) {
|
|
847
|
+
if (!node.parent) {
|
|
848
|
+
return "";
|
|
849
|
+
}
|
|
850
|
+
const last = _getRouteName(node.parent);
|
|
851
|
+
const connector = last === "" ? "" : "-";
|
|
852
|
+
const current = node.value.rawSegment === "index" ? "" : `${connector}${node.value.rawSegment}`;
|
|
853
|
+
return last + current;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
// src/define-promise-tasks.ts
|
|
857
|
+
var taskTypes = ["single", "parallel", "queue"];
|
|
858
|
+
function isSingleTasks(config) {
|
|
859
|
+
return config.type === "single";
|
|
860
|
+
}
|
|
861
|
+
function isParallelTasks(config) {
|
|
862
|
+
return config.type === "parallel";
|
|
863
|
+
}
|
|
864
|
+
function isQueueTasks(config) {
|
|
865
|
+
return config.type === "queue";
|
|
866
|
+
}
|
|
867
|
+
function isSimpleAsyncTask(config) {
|
|
868
|
+
return typeof config === "function";
|
|
869
|
+
}
|
|
870
|
+
function definePromiseTasks(config) {
|
|
871
|
+
return config;
|
|
872
|
+
}
|
|
873
|
+
async function executePromiseTasks(config, lastParams = null) {
|
|
874
|
+
if (isSingleTasks(config)) {
|
|
875
|
+
if (isSimpleAsyncTask(config.tasks)) {
|
|
876
|
+
return await config.tasks(lastParams);
|
|
877
|
+
}
|
|
878
|
+
return await executePromiseTasks(config.tasks, lastParams);
|
|
879
|
+
}
|
|
880
|
+
if (isParallelTasks(config)) {
|
|
881
|
+
return await Promise.all(
|
|
882
|
+
config.tasks.map((task) => {
|
|
883
|
+
if (isSimpleAsyncTask(task)) {
|
|
884
|
+
return task(lastParams);
|
|
885
|
+
}
|
|
886
|
+
return executePromiseTasks(task, lastParams);
|
|
887
|
+
})
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
if (isQueueTasks(config)) {
|
|
891
|
+
let res;
|
|
892
|
+
for await (const task of config.tasks) {
|
|
893
|
+
if (isSimpleAsyncTask(task)) {
|
|
894
|
+
res = await task(lastParams);
|
|
895
|
+
lastParams = res;
|
|
896
|
+
} else {
|
|
897
|
+
res = await executePromiseTasks(task, lastParams);
|
|
898
|
+
lastParams = res;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return res;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// src/simple-promise-tools.ts
|
|
906
|
+
function generateSimpleAsyncTask(func) {
|
|
907
|
+
return function(...args) {
|
|
908
|
+
return new Promise((resolve, reject) => {
|
|
909
|
+
resolve(func(...args));
|
|
910
|
+
});
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
var initFlag = "initFlag";
|
|
914
|
+
async function runPromiseByQueue(promises) {
|
|
915
|
+
let response = initFlag;
|
|
916
|
+
for await (const promise of promises) {
|
|
917
|
+
response = await promise(response);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
async function runPromiseByConcurrency(promises) {
|
|
921
|
+
await Promise.all(promises.map((promise) => promise()));
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// src/vueuse/useAxios.ts
|
|
925
|
+
import { useAxios } from "@vueuse/integrations/useAxios";
|
|
926
|
+
function useAxiosWrapper(params) {
|
|
927
|
+
const {
|
|
928
|
+
config: { url },
|
|
929
|
+
config,
|
|
930
|
+
instance,
|
|
931
|
+
options
|
|
932
|
+
} = params;
|
|
933
|
+
return useAxios(url, config, instance, options);
|
|
934
|
+
}
|
|
935
|
+
export {
|
|
936
|
+
defaultHandleStrategy,
|
|
937
|
+
definePromiseTasks,
|
|
938
|
+
executePromiseTasks,
|
|
939
|
+
generateSimpleAsyncTask,
|
|
940
|
+
getRouteName,
|
|
941
|
+
initFlag,
|
|
942
|
+
isConditionsEvery,
|
|
943
|
+
isConditionsSome,
|
|
944
|
+
rmmvClassExpandTools,
|
|
945
|
+
runPromiseByConcurrency,
|
|
946
|
+
runPromiseByQueue,
|
|
947
|
+
taskTypes,
|
|
948
|
+
useAxiosWrapper
|
|
949
|
+
};
|
|
950
|
+
/*! Bundled license information:
|
|
951
|
+
|
|
952
|
+
lodash-es/lodash.js:
|
|
953
|
+
(**
|
|
954
|
+
* @license
|
|
955
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
956
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
957
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
958
|
+
* Released under MIT license <https://lodash.com/license>
|
|
959
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
960
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
961
|
+
*)
|
|
962
|
+
*/
|
|
963
|
+
//# sourceMappingURL=index.js.map
|